.account-profile-page,
.register-premium-page {
    width: 100%;
}

.profile-hero,
.register-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(80, 153, 255, 0.22);
    background:
        radial-gradient(circle at top right, rgba(80, 153, 255, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(46, 232, 137, 0.12), transparent 34%),
        linear-gradient(145deg, #081426, #07111f 58%, #050b15);
    box-shadow: 0 22px 48px rgba(0,0,0,.28);
    margin-bottom: 18px;
    padding: 22px 18px;
}

.profile-hero h1,
.register-hero h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 1000;
    letter-spacing: -0.7px;
}

.profile-hero p,
.register-hero p {
    margin: 0;
    color: #d4e3ff;
    font-size: 15px;
    line-height: 1.5;
}

.profile-card,
.register-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.055), transparent 28%),
        linear-gradient(145deg, rgba(12,24,44,.96), rgba(8,18,34,.98));
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 18px 36px rgba(0,0,0,.22);
}

.profile-grid,
.register-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.profile-section-title,
.register-section-title {
    margin: 20px 0 12px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 1000;
}

.profile-avatar-box,
.register-avatar-box {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    margin-bottom: 16px;
}

.profile-avatar-preview,
.register-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 26px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(255, 208, 92, .18), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    border: 1px solid rgba(255, 208, 92, .25);
    color: #ffffff;
    font-size: 40px;
    font-weight: 1000;
}

.profile-avatar-preview img,
.register-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-help,
.register-help {
    color: #9fb7dc;
    font-size: 13px;
    line-height: 1.45;
}

.field input[readonly],
.field input:disabled {
    opacity: .82;
    cursor: not-allowed;
    background: rgba(255,255,255,.035);
}

.checkbox-premium {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    margin-bottom: 12px;
}

.checkbox-premium input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #22c55e;
}

.checkbox-premium span {
    color: #d8e6ff;
    font-size: 14px;
    line-height: 1.45;
}

.form-actions-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.btn-premium-main {
    min-height: 48px;
    border-radius: 999px;
    border: 0;
    padding: 0 18px;
    font-weight: 1000;
    color: #06111f;
    background: linear-gradient(135deg, #ffdf82, #35e792);
    cursor: pointer;
}

.btn-premium-secondary {
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(98,146,220,.28);
    padding: 0 18px;
    font-weight: 1000;
    color: #eef6ff;
    background: linear-gradient(180deg, rgba(12,26,48,.98), rgba(8,18,34,.98));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 760px) {
    .profile-grid,
    .register-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-avatar-box,
    .register-avatar-box {
        grid-template-columns: 110px minmax(0,1fr);
    }

    .profile-hero h1,
    .register-hero h1 {
        font-size: 40px;
    }
}

/* ===== Exclusão de perfil ===== */
.profile-danger-zone{
    margin-top:26px;
    padding:22px;
    border-radius:28px;
    border:1px solid rgba(248,113,113,.35);
    background:
        radial-gradient(circle at top right,rgba(248,113,113,.16),transparent 34%),
        linear-gradient(145deg,rgba(20,8,18,.98),rgba(7,16,31,.98));
    box-shadow:0 20px 44px rgba(0,0,0,.28);
}

.profile-danger-head span{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 12px;
    border-radius:999px;
    color:#fecaca;
    background:rgba(248,113,113,.12);
    border:1px solid rgba(248,113,113,.30);
    font-size:12px;
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:.07em;
}

.profile-danger-head h2{
    margin:12px 0 8px;
    color:#fff;
    font-size:30px;
    line-height:1.05;
}

.profile-danger-head p{
    margin:0;
    color:#ffd6d6;
    line-height:1.55;
}

.profile-danger-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-top:18px;
}

.profile-danger-card{
    padding:18px;
    border-radius:22px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.10);
}

.profile-danger-card--confirm{
    border-color:rgba(248,113,113,.26);
}

.profile-danger-card h3{
    margin:0 0 10px;
    color:#fff;
    font-size:20px;
}

.profile-danger-card p{
    margin:0 0 16px;
    color:#d7e6ff;
    line-height:1.5;
}

.profile-danger-card p strong{
    color:#ffdf82;
}

.danger-outline-button,
.danger-delete-button{
    width:100%;
    min-height:46px;
    border-radius:999px;
    font-weight:1000;
    cursor:pointer;
}

.danger-outline-button{
    color:#fecaca;
    background:rgba(248,113,113,.08);
    border:1px solid rgba(248,113,113,.28);
}

.danger-delete-button{
    margin-top:14px;
    color:#fff;
    background:linear-gradient(135deg,#ef4444,#991b1b);
    border:0;
}

.danger-terms-check{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-top:12px;
    padding:14px;
    border-radius:18px;
    color:#ffd6d6;
    line-height:1.45;
    background:rgba(248,113,113,.08);
    border:1px solid rgba(248,113,113,.22);
}

.danger-terms-check input{
    margin-top:4px;
}

.danger-terms-check strong{
    color:#fff;
}

@media (max-width:760px){
    .profile-danger-grid{
        grid-template-columns:1fr;
    }
}

/* ===== Toggle da zona vermelha ===== */
.profile-danger-toggle-wrap{
    margin-top:18px;
    padding-top:4px;
}

.profile-danger-toggle{
    appearance:none;
    background:none;
    border:0;
    padding:0;
    color:#ef4444;
    font-size:18px;
    font-weight:900;
    line-height:1.2;
    cursor:pointer;
    text-decoration:none;
    transition:color .18s ease, transform .18s ease, text-shadow .18s ease;
}

.profile-danger-toggle:hover{
    color:#f87171;
    text-shadow:0 0 18px rgba(239,68,68,.26);
    transform:translateX(2px);
}

.profile-danger-toggle[aria-expanded="true"]{
    color:#fecaca;
}

.profile-danger-zone--collapsed{
    display:none;
}

.profile-danger-mini-note{
    margin-top:8px !important;
    padding:10px 12px;
    border-radius:14px;
    color:#ffd6d6 !important;
    background:rgba(248,113,113,.08);
    border:1px solid rgba(248,113,113,.18);
    font-size:13px;
    line-height:1.45;
}

/* ==================================================
   FCBF - Botão premium para upload de foto
   ================================================== */

.profile-avatar-box input[type="file"],
.register-avatar-box input[type="file"] {
    width: 100%;
    max-width: 100%;
    color: #d8e6ff;
    font-weight: 800;
    font-size: 13px;
}

.profile-avatar-box input[type="file"]::file-selector-button,
.register-avatar-box input[type="file"]::file-selector-button {
    min-height: 42px;
    margin-right: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #06111f;
    font-weight: 1000;
    letter-spacing: .01em;
    cursor: pointer;
    background:
        linear-gradient(135deg, #ffdf82 0%, #35e792 100%);
    box-shadow:
        0 12px 26px rgba(53, 231, 146, .20),
        inset 0 1px 0 rgba(255, 255, 255, .45);
    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease;
}

.profile-avatar-box input[type="file"]::file-selector-button:hover,
.register-avatar-box input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow:
        0 16px 34px rgba(53, 231, 146, .28),
        inset 0 1px 0 rgba(255, 255, 255, .55);
}

.profile-avatar-box input[type="file"]::file-selector-button:active,
.register-avatar-box input[type="file"]::file-selector-button:active {
    transform: translateY(1px) scale(.99);
}

@media (max-width: 600px) {
    .profile-avatar-box input[type="file"],
    .register-avatar-box input[type="file"] {
        font-size: 12px;
    }

    .profile-avatar-box input[type="file"]::file-selector-button,
    .register-avatar-box input[type="file"]::file-selector-button {
        min-height: 40px;
        padding: 0 14px;
        margin-right: 8px;
    }
}


/* ==================================================
   FCBF - Botões premium sem estilo pílula
   ================================================== */

.profile-avatar-box input[type="file"]::file-selector-button,
.register-avatar-box input[type="file"]::file-selector-button {
    min-height: 42px !important;
    margin-right: 10px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 220, 120, .55) !important;
    color: #071322 !important;
    font-weight: 1000 !important;
    letter-spacing: .01em !important;
    cursor: pointer !important;
    background:
        linear-gradient(135deg, #ffe27a 0%, #38e58f 100%) !important;
    box-shadow:
        0 8px 18px rgba(34, 197, 94, .18),
        inset 0 1px 0 rgba(255, 255, 255, .50) !important;
}

.profile-avatar-box input[type="file"]::file-selector-button:hover,
.register-avatar-box input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.06) !important;
    box-shadow:
        0 12px 24px rgba(34, 197, 94, .26),
        inset 0 1px 0 rgba(255, 255, 255, .55) !important;
}

.btn-premium-main {
    min-height: 48px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 220, 120, .55) !important;
    padding: 0 20px !important;
    font-weight: 1000 !important;
    color: #071322 !important;
    background:
        linear-gradient(135deg, #ffe27a 0%, #38e58f 100%) !important;
    box-shadow:
        0 10px 24px rgba(34, 197, 94, .20),
        inset 0 1px 0 rgba(255, 255, 255, .50) !important;
}

.btn-premium-secondary {
    min-height: 48px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(77, 184, 255, .35) !important;
    padding: 0 20px !important;
    font-weight: 1000 !important;
    color: #eef6ff !important;
    background:
        linear-gradient(180deg, rgba(13, 32, 58, .98), rgba(6, 16, 32, .98)) !important;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.btn-premium-main:hover,
.btn-premium-secondary:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.06) !important;
}

.form-actions-premium {
    gap: 12px !important;
}

@media (max-width: 600px) {
    .btn-premium-main,
    .btn-premium-secondary {
        width: 100% !important;
        justify-content: center !important;
        border-radius: 14px !important;
    }

    .profile-avatar-box input[type="file"]::file-selector-button,
    .register-avatar-box input[type="file"]::file-selector-button {
        border-radius: 12px !important;
    }
}


/* ==================================================
   FCBF - Botão Excluir meu perfil centralizado
   ================================================== */

.profile-danger-toggle-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 24px auto 18px auto !important;
    padding: 0 16px !important;
}

.profile-danger-toggle {
    width: min(100%, 280px) !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    border-radius: 14px !important;
    border: 1px solid rgba(255, 72, 96, .55) !important;

    color: #fff4f6 !important;
    font-weight: 1000 !important;
    font-size: 15px !important;
    letter-spacing: .01em !important;

    background:
        linear-gradient(180deg, rgba(95, 18, 32, .96), rgba(42, 8, 18, .98)) !important;

    box-shadow:
        0 12px 28px rgba(255, 50, 80, .16),
        inset 0 1px 0 rgba(255, 255, 255, .10) !important;

    cursor: pointer !important;
}

.profile-danger-toggle::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 15px;
}

.profile-danger-toggle:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.08) !important;
    box-shadow:
        0 16px 34px rgba(255, 50, 80, .22),
        inset 0 1px 0 rgba(255, 255, 255, .14) !important;
}

.profile-danger-toggle[aria-expanded="true"] {
    background:
        linear-gradient(180deg, rgba(130, 24, 42, .98), rgba(54, 8, 20, .98)) !important;
    border-color: rgba(255, 95, 120, .70) !important;
}

