/* ---------- Setting ---------- */

/* ============================================================
   Setting — STYLES
   Keep page/component styles in logical sections below.
   ============================================================ */

/* =========================================================
   APEMART.LK — ACCOUNT SETTINGS PAGE POLISH
   Matches the rounded account-page surface used by
   My Ads, My Promotions, Messages, Notifications and Profile.
   All existing element IDs are preserved for setting.js.
========================================================= */

.settings-page{
    width:100%;
    min-height:calc(100vh - 150px);
    box-sizing:border-box;
}

.settings-shell{
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:18px 24px 58px;
    box-sizing:border-box;
}

.settings-breadcrumb{
    display:flex;
    align-items:center;
    gap:9px;
    min-height:28px;
    margin:0 4px 14px;
    color:#7a818b;
    font-size:13px;
    font-weight:600;
}

.settings-breadcrumb a{
    color:#6f7782;
    text-decoration:none;
    transition:color .2s ease;
}

.settings-breadcrumb a:hover{color:#ff6b00}
.settings-breadcrumb .current{color:#ff6b00}

.settings-hero{
    background:rgba(255,255,255,.94);
    border:1px solid rgba(15,23,42,.06);
    border-radius:22px;
    box-shadow:0 10px 30px rgba(15,23,42,.07);
    padding:30px 34px;
    margin-bottom:20px;
}

.settings-heading{
    display:flex;
    align-items:center;
    gap:18px;
}

.settings-icon{
    width:58px;
    height:58px;
    flex:0 0 58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:17px;
    background:#fff4e9;
    border:1px solid #ffe0c7;
    font-size:27px;
}

.settings-eyebrow{
    margin-bottom:5px;
    color:#ef6c22;
    font-size:11px;
    font-weight:800;
    letter-spacing:.16em;
}

.settings-hero h1{
    margin:0;
    color:#171a1f;
    font-size:32px;
    line-height:1.2;
    font-weight:800;
}

.settings-hero p{
    margin:7px 0 0;
    color:#68717d;
    font-size:14px;
    line-height:1.5;
}

.settings-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.settings-grid > .card{
    width:100%;
    min-width:0;
    box-sizing:border-box;
    padding:23px 24px;
    margin:0;
    background:rgba(255,255,255,.96);
    border:1px solid rgba(15,23,42,.06);
    border-radius:18px;
    box-shadow:0 7px 22px rgba(15,23,42,.055);
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.settings-grid > .card:hover{
    transform:translateY(-2px);
    border-color:#ffd9bf;
    box-shadow:0 11px 28px rgba(15,23,42,.08);
}

.settings-grid > .card h2{
    margin:0 0 7px;
    color:#20242a;
    font-size:18px;
    line-height:1.35;
    font-weight:800;
}

.settings-grid > .card p{
    margin:0 0 15px;
    color:#707782;
    font-size:13px;
    line-height:1.6;
}

.settings-grid > .card button{
    min-height:42px;
    box-sizing:border-box;
    padding:10px 17px;
    background:#ff6b00;
    color:#fff;
    border:0;
    border-radius:10px;
    cursor:pointer;
    font-size:13px;
    font-weight:800;
    box-shadow:0 4px 10px rgba(255,107,0,.15);
    transition:background .2s ease,transform .2s ease,box-shadow .2s ease;
}

.settings-grid > .card button:hover{
    background:#e85d00;
    transform:translateY(-1px);
    box-shadow:0 6px 14px rgba(255,107,0,.2);
}

.settings-grid > .card select{
    width:100%;
    min-height:44px;
    padding:9px 12px;
    box-sizing:border-box;
    border:1px solid #e2e6eb;
    border-radius:11px;
    outline:none;
    background:#fbfcfd;
    color:#262b31;
    font-size:13px;
    font-weight:600;
}

.settings-grid > .card select:focus{
    border-color:#ffb27c;
    box-shadow:0 0 0 3px rgba(255,107,0,.08);
}

.settings-grid > .card label{
    display:flex;
    align-items:center;
    gap:10px;
    color:#3f4650;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}

.settings-grid > .card input[type="checkbox"]{
    width:20px;
    height:20px;
    margin:0;
    accent-color:#ff6b00;
    cursor:pointer;
}

/* Communication settings */
.communication-card,
.blocked-users-card{
    grid-column:1 / -1 !important;
}

.privacy-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:17px;
}

.privacy-grid label{
    justify-content:space-between;
    padding:14px 15px;
    border:1px solid #edf0f3;
    border-radius:13px;
    background:#fafbfc;
    transition:.2s ease;
}

.privacy-grid label:hover{
    border-color:#ffd2b3;
    background:#fffaf6;
}

.privacy-grid input{
    width:20px !important;
    height:20px !important;
}

.settings-card-heading{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:15px;
}

.blocked-count{
    min-width:36px;
    height:36px;
    padding:0 8px;
    box-sizing:border-box;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#fff0e8;
    color:#ff6b00;
    font-weight:800;
}

.blocked-users-list{
    margin-top:17px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.blocked-user-item{
    display:flex;
    align-items:center;
    gap:13px;
    padding:12px;
    border:1px solid #edf0f3;
    border-radius:14px;
    background:#fff;
    box-shadow:0 3px 10px rgba(15,23,42,.03);
}

.blocked-user-item img{
    width:46px;
    height:46px;
    border-radius:50%;
    object-fit:cover;
}

.blocked-user-info{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.blocked-user-info strong{
    color:#252a31;
    font-size:13px;
}

.blocked-user-info small{
    color:#8a929d;
    font-size:11px;
}

.unblock-btn{
    min-height:36px !important;
    padding:8px 13px !important;
    background:#fff !important;
    color:#555d68 !important;
    border:1px solid #dfe3e8 !important;
    box-shadow:none !important;
    font-size:12px !important;
}

.unblock-btn:hover{
    color:#ff6b00 !important;
    border-color:#ffb27c !important;
    background:#fffaf6 !important;
}

.blocked-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
    padding:32px 20px;
    color:#8a929d;
    text-align:center;
    border:1px dashed #dfe4ea;
    border-radius:14px;
    background:#fbfcfd;
}

.blocked-empty span{font-size:28px}
.blocked-empty strong{color:#444c56;font-size:14px}

#deleteAccountBtn{
    background:#dc3545 !important;
    box-shadow:0 4px 10px rgba(220,53,69,.12) !important;
}

#deleteAccountBtn:hover{background:#bb2d3b !important}

/* Dark mode */
body.dark-mode .settings-hero,
body.dark-mode .settings-grid > .card,
html[data-theme="dark"] .settings-hero,
html[data-theme="dark"] .settings-grid > .card{
    background:#18202d;
    border-color:#2d3748;
    color:#f3f4f6;
}

body.dark-mode .settings-hero h1,
body.dark-mode .settings-grid > .card h2,
html[data-theme="dark"] .settings-hero h1,
html[data-theme="dark"] .settings-grid > .card h2{color:#f3f4f6}

body.dark-mode .settings-hero p,
body.dark-mode .settings-grid > .card p,
body.dark-mode .settings-grid > .card label,
html[data-theme="dark"] .settings-hero p,
html[data-theme="dark"] .settings-grid > .card p,
html[data-theme="dark"] .settings-grid > .card label{color:#aeb6c2}

body.dark-mode .settings-breadcrumb a,
html[data-theme="dark"] .settings-breadcrumb a{color:#aeb6c2}
body.dark-mode .settings-breadcrumb .current,
html[data-theme="dark"] .settings-breadcrumb .current{color:#ff8a3d}

body.dark-mode .settings-icon,
html[data-theme="dark"] .settings-icon{background:#2b211a;border-color:#5a3824}

body.dark-mode .settings-grid > .card select,
html[data-theme="dark"] .settings-grid > .card select{
    background:#141b26;
    border-color:#354052;
    color:#f3f4f6;
}

body.dark-mode .privacy-grid label,
html[data-theme="dark"] .privacy-grid label{
    background:#141b26;
    border-color:#354052;
}

body.dark-mode .privacy-grid label:hover,
html[data-theme="dark"] .privacy-grid label:hover{background:#211c18;border-color:#6b452d}

body.dark-mode .blocked-user-item,
html[data-theme="dark"] .blocked-user-item{background:#141b26;border-color:#354052}
body.dark-mode .blocked-user-info strong,
html[data-theme="dark"] .blocked-user-info strong{color:#f3f4f6}
body.dark-mode .blocked-user-info small,
html[data-theme="dark"] .blocked-user-info small{color:#aeb6c2}
body.dark-mode .blocked-empty,
html[data-theme="dark"] .blocked-empty{background:#141b26;border-color:#354052}
body.dark-mode .blocked-empty strong,
html[data-theme="dark"] .blocked-empty strong{color:#f3f4f6}

@media(max-width:768px){
    .settings-shell{padding:14px 14px 38px}
    .settings-breadcrumb{margin:0 2px 12px;font-size:12px}
    .settings-hero{padding:22px 18px;border-radius:18px;margin-bottom:14px}
    .settings-heading{align-items:flex-start;gap:13px}
    .settings-icon{width:48px;height:48px;flex-basis:48px;border-radius:14px;font-size:23px}
    .settings-eyebrow{font-size:10px}
    .settings-hero h1{font-size:25px}
    .settings-hero p{font-size:13px}
    .settings-grid{grid-template-columns:1fr;gap:13px}
    .settings-grid > .card{padding:18px 16px;border-radius:15px}
    .settings-grid > .card h2{font-size:17px}
    .settings-grid > .card p{font-size:12px}
    .settings-grid > .card button{width:100%}
    .privacy-grid{grid-template-columns:1fr}
    .communication-card,.blocked-users-card{grid-column:1 !important}
    .blocked-user-item{align-items:flex-start}
    .unblock-btn{margin-left:auto;width:auto !important}
}

@media(max-width:480px){
    .settings-hero h1{font-size:23px}
    .settings-heading{gap:11px}
    .settings-grid > .card{padding:17px 14px}
}
