/* ── SETTINGS LAYOUT ─────────────────────────── */
.settings-layout{display:grid;grid-template-columns:220px 1fr;gap:22px;align-items:start}

/* TAB NAV */
.tab-nav{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);position:sticky;top:76px}
.tab-item{display:flex;align-items:center;gap:10px;padding:13px 16px;font-size:13.5px;font-weight:600;color:var(--text-2);cursor:pointer;transition:all .15s;text-decoration:none;border-left:3px solid transparent;border-bottom:1px solid var(--border)}
.tab-item:last-child{border-bottom:none}
.tab-item:hover{background:var(--green-light);color:var(--green-dark)}
.tab-item.active{background:var(--green-light);color:var(--green-dark);font-weight:800;border-left-color:var(--green)}
.tab-item.danger-tab:hover,.tab-item.danger-tab.active{background:var(--red-light);color:var(--red);border-left-color:var(--red)}
.tab-icon{font-size:16px;width:20px;text-align:center}

/* SETTINGS CARD */
.set-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-bottom:18px;box-shadow:var(--shadow);animation:fadeUp .3s ease both}
.set-head{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid var(--border);background:var(--card-2)}
.set-title{font-family:var(--ff);font-weight:800;font-size:15px;color:var(--text);display:flex;align-items:center;gap:10px}
.set-icon{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:17px}
.set-body{padding:22px}

/* FIELD */
.set-field{margin-bottom:18px}
.set-field:last-child{margin-bottom:0}
.set-label{display:flex;align-items:center;justify-content:space-between;font-size:11.5px;font-weight:700;color:var(--text-2);margin-bottom:7px;text-transform:uppercase;letter-spacing:.5px}
.set-req{color:var(--red)}
.set-hint{font-size:11.5px;color:var(--text-3);margin-top:5px}
.set-input,.set-select,.set-ta{width:100%;border:1.5px solid var(--border);border-radius:10px;padding:11px 14px;font-size:14px;font-family:var(--ff-body);color:var(--text);background:var(--card);outline:none;transition:border-color .15s,box-shadow .15s;resize:none}
.set-input:focus,.set-select:focus,.set-ta:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(46,158,62,.1)}
.set-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}

/* TOGGLE ROW */
.tog-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--border)}
.tog-row:last-child{border-bottom:none;padding-bottom:0}
.tog-info .tog-title{font-family:var(--ff);font-weight:700;font-size:14px;color:var(--text);margin-bottom:2px}
.tog-info .tog-sub{font-size:12px;color:var(--text-3);line-height:1.4}
.tog-switch{width:46px;height:26px;border-radius:13px;background:var(--border);position:relative;cursor:pointer;transition:background .2s;flex-shrink:0}
.tog-switch::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:left .2s}
.tog-switch.on{background:var(--green)}
.tog-switch.on::after{left:23px}

/* PASSWORD STRENGTH */
.pw-strength{height:4px;border-radius:2px;background:var(--border);margin-top:8px;overflow:hidden}
.pw-bar{height:100%;border-radius:2px;transition:width .3s,background .3s;width:0}

/* DANGER ZONE */
.danger-card{background:#fff8f8;border:2px solid #fca5a5;border-radius:var(--radius)}
.danger-head{background:#fef2f2;border-bottom:1.5px solid #fca5a5}
.danger-title{color:var(--red)}
.danger-item{padding:18px 22px;border-bottom:1px solid #fca5a5;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.danger-item:last-child{border-bottom:none}
.di-title{font-family:var(--ff);font-weight:800;font-size:14px;color:var(--red);margin-bottom:4px}
.di-desc{font-size:13px;color:var(--text-2);line-height:1.5;max-width:380px}

/* AVATAR SECTION */
.av-section{display:flex;align-items:center;gap:18px;padding:16px 22px;border-bottom:1px solid var(--border);background:var(--card-2)}
.av-circle{width:68px;height:68px;border-radius:50%;background:linear-gradient(135deg,var(--green),var(--green-dark));display:flex;align-items:center;justify-content:center;font-family:var(--ff);font-weight:900;font-size:26px;color:#fff;flex-shrink:0;box-shadow:0 4px 16px rgba(46,158,62,.3)}
.av-info{flex:1}
.av-name{font-family:var(--ff);font-weight:900;font-size:16px;color:var(--text)}
.av-email{font-size:12.5px;color:var(--text-2);margin-top:2px}
.av-since{font-size:11.5px;color:var(--text-3);margin-top:2px}

/* SAVE BTN */
.save-btn{width:100%;padding:13px;border-radius:11px;background:linear-gradient(135deg,var(--green),var(--green-dark));color:#fff;font-family:var(--ff);font-weight:900;font-size:15px;border:none;cursor:pointer;box-shadow:0 4px 16px rgba(46,158,62,.3);transition:all .2s;margin-top:6px}
.save-btn:hover{transform:translateY(-1px);box-shadow:0 6px 22px rgba(46,158,62,.4)}
.save-btn:active{transform:none}

/* INFO BOX */
.info-box{background:var(--blue-light);border:1px solid rgba(26,95,168,.2);border-radius:10px;padding:12px 16px;font-size:13px;color:var(--blue);display:flex;align-items:flex-start;gap:9px;margin-bottom:18px}

@media(max-width:860px){
    .settings-layout{grid-template-columns:1fr}
    .tab-nav{display:flex;flex-wrap:wrap;position:static;border-radius:var(--radius-sm)}
    .tab-item{flex:1;min-width:120px;border-bottom:none;border-left:none;border-bottom:2px solid transparent;justify-content:center;font-size:12px;padding:10px 8px}
    .tab-item.active{border-bottom-color:var(--green);border-left:none}
    .tab-item.danger-tab.active{border-bottom-color:var(--red);border-left:none}
    .set-row{grid-template-columns:1fr}
}
