/* ==========================================
   SETTINGS PAGE
========================================== */

.settings-page{
    max-width:1400px;
    margin:40px auto;
    padding:0 32px;
}

/* ==========================================
   HERO
========================================== */

.hero{
    margin-bottom:30px;
}

.hero h1{
    font-size:3rem;
    color:#f2eee4;
    margin-bottom:10px;
}

.hero p{
    color:#8e9a89;
    font-size:1.05rem;
}

/* ==========================================
   PROFILE CARD
========================================== */

.profile-card{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#17291f;

    border-radius:20px;

    padding:28px;

    margin-bottom:30px;

    box-shadow:0 12px 30px rgba(0,0,0,.25);

}

.profile-left{

    display:flex;

    align-items:center;

    gap:22px;

}

.avatar{

    width:72px;

    height:72px;

    border-radius:50%;

    background:linear-gradient(135deg,#b89a70,#a68a62);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:1.5rem;

    font-weight:700;

    color:var(--on-primary);

}

.profile-left h2{

    color:white;

    margin-bottom:6px;

    font-size:1.6rem;

}

.profile-left p{

    color:#8e9a89;

}

/* ==========================================
   SETTINGS GRID
========================================== */

.settings-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(380px,1fr));

    gap:24px;

}

.settings-card{

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:20px;

    padding:26px;

    box-shadow:var(--shadow);

}

.settings-card h3{

    margin-bottom:24px;

    color:var(--text);

    font-size:1.3rem;

}

.settings-btn{

    padding:11px 20px;

    border:1px solid var(--border);

    border-radius:12px;

    background:var(--primary);

    color:#0f2019;

    font-size:.9rem;

    font-weight:700;

    font-family:inherit;

    cursor:pointer;

    transition:.2s;

}

.settings-btn:hover{

    background:var(--primary-light);

}

/* ==========================================
   SETTING ROW
========================================== */

.setting-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 0;

    border-bottom:1px solid var(--border);

}

.setting-row:last-child{

    border-bottom:none;

}

.setting-row span:first-child{

    color:var(--text);

    font-weight:500;

}

.setting-row span:last-child{

    color:var(--text-secondary);

}

/* ==========================================
   INPUTS
========================================== */

select,
input[type="text"],
input[type="number"]{

    padding:10px 14px;

    border-radius:10px;

    border:1px solid var(--border);

    background:var(--surface-light);

    color:var(--text);

    min-width:140px;

    font-size:.95rem;

}

select:focus,
input:focus{

    outline:none;

    border-color:var(--primary);

}

/* ==========================================
   CHECKBOXES
========================================== */

input[type="checkbox"]{

    width:20px;

    height:20px;

    cursor:pointer;

}

/* ==========================================
   CONNECTIONS
========================================== */

.connection{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:16px 0;

    border-bottom:1px solid var(--border);

}

.connection:last-child{

    border-bottom:none;

}

.connection strong{

    color:var(--text);

    display:block;

    margin-bottom:4px;

}

.connection p{

    color:var(--text-secondary);

    font-size:.9rem;

}

.connection button{

    padding:10px 18px;

    border:none;

    border-radius:10px;

    background:var(--surface-light);

    color:var(--muted);

    cursor:not-allowed;

    font-weight:600;

}

/* ==========================================
   BUTTON
========================================== */

.primary-btn{

    margin-top:24px;

    width:100%;

    padding:14px;

    border:none;

    border-radius:12px;

    background:var(--primary-dark);

    color:var(--on-primary);

    font-size:1rem;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.primary-btn:hover{

    background:var(--primary);

}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:900px){

    .settings-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:650px){

    .settings-page{

        padding:20px;

    }

    .hero h1{

        font-size:2.2rem;

    }

    .profile-card{

        flex-direction:column;

        align-items:flex-start;

        gap:20px;

    }

    .setting-row{

        flex-direction:column;

        align-items:flex-start;

        gap:10px;

    }

    .connection{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

    .connection button{

        width:100%;

    }

}
