.profile-main{
    width:min(1160px,94%);
    margin:0 auto;
    padding:34px 0 110px;
}

.profile-hero,
.profile-panel,
.address-card,
.empty-address,
.auth-standalone-card{
    border-radius:34px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.12), transparent 34%),
        var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow2);
}

.profile-hero{
    padding:32px;
    margin-bottom:24px;
}

.back-link{
    display:inline-flex;
    text-decoration:none;
    color:var(--text);
    background:var(--soft);
    border:1px solid var(--border);
    padding:11px 15px;
    border-radius:16px;
    font-weight:900;
    margin-bottom:18px;
}

.profile-hero h1{
    font-size:clamp(38px,5vw,64px);
    line-height:1;
    letter-spacing:-2.5px;
    margin-bottom:12px;
}

.profile-hero p,
.panel-heading p{
    color:var(--muted);
    line-height:1.7;
}

.profile-alert{
    padding:15px 18px;
    border-radius:16px;
    margin-bottom:20px;
}

.success-alert{
    color:#166534;
    background:rgba(22,163,74,.12);
    border:1px solid rgba(22,163,74,.22);
}

.error-alert{
    color:#7f1d1d;
    background:rgba(239,68,68,.13);
    border:1px solid rgba(239,68,68,.22);
}

html[data-theme="dark"] .success-alert{
    color:#bbf7d0;
}

html[data-theme="dark"] .error-alert{
    color:#fecdd3;
}

.profile-panel{
    padding:26px;
}

.panel-heading{
    margin-bottom:20px;
}

.panel-heading h2{
    font-size:28px;
    letter-spacing:-1px;
    margin-bottom:7px;
}

.profile-form .form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.profile-form .input-group.full{
    grid-column:1 / -1;
}

.profile-form .input-group label{
    display:block;
    color:var(--muted);
    font-size:13px;
    margin-bottom:8px;
}

.profile-form .input-group input,
.profile-form .input-group textarea,
.profile-form .input-group select{
    width:100%;
    border:none;
    outline:none;
    color:var(--text);
    background:var(--surface2);
    border:1px solid var(--border);
    border-radius:18px;
    font-family:inherit;
}

.profile-form .input-group input,
.profile-form .input-group select{
    height:56px;
    padding:0 16px;
}

.profile-form .input-group textarea{
    min-height:120px;
    resize:vertical;
    padding:16px;
    line-height:1.7;
}

.profile-form .input-group input:focus,
.profile-form .input-group textarea:focus,
.profile-form .input-group select:focus{
    border-color:rgba(212,175,55,.65);
    box-shadow:0 0 0 4px rgba(212,175,55,.10);
}

.location-btn,
.profile-submit{
    width:100%;
    min-height:56px;
    border:none;
    cursor:pointer;
    border-radius:18px;
    font-family:inherit;
    font-weight:900;
    margin-top:15px;
}

.location-btn{
    color:var(--text);
    background:var(--soft);
    border:1px solid var(--border);
}

.profile-submit{
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2),#b88a1e);
    box-shadow:0 16px 34px rgba(212,175,55,.24);
}

.location-status{
    color:var(--muted);
    line-height:1.6;
    font-size:13px;
    margin-top:10px;
}

/* Addresses */
.address-layout{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:24px;
    align-items:start;
}

.address-list{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.address-card{
    padding:22px;
}

.address-top{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-bottom:14px;
}

.address-top span{
    color:var(--muted);
    font-size:12px;
}

.address-top h3{
    color:var(--gold);
    font-size:25px;
    margin-top:5px;
}

.address-top b{
    height:max-content;
    padding:8px 12px;
    border-radius:999px;
    color:#052e16;
    background:linear-gradient(135deg,#34d399,#bbf7d0);
    font-size:12px;
}

.address-card p{
    color:var(--muted);
    line-height:1.7;
    margin-bottom:14px;
}

.address-meta{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-bottom:14px;
}

.address-meta div{
    padding:13px;
    border-radius:17px;
    background:var(--surface2);
    border:1px solid var(--border);
}

.address-meta span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:5px;
}

.address-meta strong{
    color:var(--text);
    word-break:break-word;
}

.address-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.small-gold-btn,
.small-danger-btn{
    min-height:44px;
    border:none;
    cursor:pointer;
    border-radius:15px;
    padding:0 15px;
    font-family:inherit;
    font-weight:900;
}

.small-gold-btn{
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
}

.small-danger-btn{
    color:#7f1d1d;
    background:rgba(239,68,68,.14);
}

.empty-address{
    text-align:center;
    padding:55px 20px;
}

.empty-address div{
    width:76px;
    height:76px;
    border-radius:26px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    margin:0 auto 18px;
    font-size:32px;
}

.empty-address h3{
    font-size:28px;
    margin-bottom:8px;
}

.empty-address p{
    color:var(--muted);
}

/* Forgot / Reset */
.auth-standalone-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.16), transparent 32%),
        var(--bg);
}

.auth-standalone-card{
    width:min(560px,96vw);
    padding:34px;
    text-align:center;
}

.auth-standalone-card img{
    width:82px;
    height:82px;
    object-fit:contain;
    margin-bottom:18px;
}

.auth-standalone-card h1{
    font-size:38px;
    letter-spacing:-1.5px;
    margin-bottom:10px;
}

.auth-standalone-card p{
    color:var(--muted);
    line-height:1.7;
    margin-bottom:22px;
}

.auth-standalone-card .profile-form{
    text-align:left;
}

.plain-link{
    min-height:48px;
    margin-top:13px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--text);
    text-decoration:none;
    background:var(--soft);
    border:1px solid var(--border);
    font-weight:900;
}

@media(max-width:900px){
    .address-layout{
        grid-template-columns:1fr;
    }
}

@media(max-width:680px){
    .profile-main{
        width:94%;
        padding-top:22px;
    }

    .profile-hero,
    .profile-panel,
    .address-card{
        border-radius:28px;
    }

    .profile-form .form-grid{
        grid-template-columns:1fr;
    }

    .profile-form .input-group.full{
        grid-column:auto;
    }

    .auth-standalone-card{
        padding:26px;
        border-radius:28px;
    }

    .auth-standalone-card h1{
        font-size:31px;
    }
}