:root {
    --bg-dark: #080a10;
    --bg-glass: rgba(25, 27, 40, 0.65);
    --bg-glass-hover: rgba(38, 42, 60, 0.85);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-active: rgba(176, 38, 255, 0.4);
    --text-main: #eef0f5;
    --text-muted: #8a9199;
    --accent-purple: #b026ff;
    --accent-blue: #00d4ff;
    --accent-red: #ff3366;
    --accent-green: #00e676;
    --accent-orange: #ff9100;
    --gradient-primary: linear-gradient(135deg, #b026ff, #00d4ff);
    --gradient-danger: linear-gradient(135deg, #ff3366, #ff6b35);
    --font: 'Outfit', sans-serif;
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition: all 0.28s var(--ease);
    --radius: 14px;
    --shadow-glow: 0 0 24px rgba(176, 38, 255, 0.18);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 10% 50%, rgba(176, 38, 255, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 20%, rgba(0, 212, 255, 0.07) 0%, transparent 55%);
}

/* ─────────── UTILITIES ─────────── */
.text-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.text-red { color: var(--accent-red) !important; }
.text-green { color: var(--accent-green) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-purple { color: var(--accent-purple) !important; }
.mt-3 { margin-top: .9rem; }
.mt-4 { margin-top: 1.4rem; }
.mt-5 { margin-top: 2rem; }
.pt-4 { padding-top: 1.4rem; }
.w-full { width: 100%; }

code {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-blue);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.88em;
}

/* ─────────── BUTTONS ─────────── */
.btn {
    font-family: var(--font);
    padding: 10px 20px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 18px rgba(176, 38, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(176, 38, 255, 0.5); }
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}
.btn-outline:hover { background: var(--bg-glass-hover); border-color: rgba(255,255,255,0.2); }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-large { padding: 14px 28px; font-size: 1.05rem; }

.btn-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-icon:hover { background: var(--bg-glass-hover); color: var(--accent-blue); }
.btn-icon.active { background: var(--gradient-primary); border-color: transparent; }
.btn-icon[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ─────────── LOGIN PAGE ─────────── */
.login-page {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    background: var(--bg-dark);
    overflow: hidden;
}
.login-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: floatOrb 8s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; background: rgba(176,38,255,0.35); top: -10%; left: -8%; animation-delay: 0s; }
.orb-2 { width: 350px; height: 350px; background: rgba(0,212,255,0.25); bottom: -5%; right: -5%; animation-delay: 3s; }
.orb-3 { width: 240px; height: 240px; background: rgba(255,51,102,0.15); top: 40%; left: 60%; animation-delay: 5s; }
@keyframes floatOrb {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(20px,-30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.97); }
}

.login-box {
    background: rgba(18, 20, 30, 0.9);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 24px;
    padding: 50px 44px;
    width: 100%; max-width: 440px;
    position: relative; z-index: 10;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), var(--shadow-glow);
    animation: popIn 0.5s var(--ease) both;
}
@keyframes popIn { from { opacity:0; transform: scale(0.93) translateY(20px); } to { opacity:1; transform: scale(1) translateY(0); } }

.login-brand {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 6px;
    justify-content: center;
}
.login-brand i { font-size: 2.2rem; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.login-brand h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: 1px; }

.login-subtitle {
    text-align: center; color: var(--text-muted); margin-bottom: 36px; font-size: 0.95rem;
}

.input-icon-wrap {
    position: relative; display: flex; align-items: center;
}
.input-icon-wrap > i:first-child {
    position: absolute; left: 14px; color: var(--text-muted); font-size: 0.95rem; pointer-events: none;
}
.input-icon-wrap input {
    width: 100%;
    padding: 12px 44px 12px 42px;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border-glass);
    border-radius: 9px;
    color: var(--text-main);
    font-family: var(--font); font-size: 0.98rem;
    transition: var(--transition);
    outline: none;
}
.input-icon-wrap input:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(176,38,255,0.15); }
.toggle-pass {
    position: absolute; right: 12px;
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 0.95rem; transition: var(--transition);
}
.toggle-pass:hover { color: var(--accent-blue); }

.login-error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--accent-red);
    padding: 10px 14px; border-radius: 8px;
    font-size: 0.9rem; margin-bottom: 14px;
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.btn-login { padding: 13px; font-size: 1rem; font-weight: 600; margin-top: 8px; }
.login-hint { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 22px; }
.login-hint code { color: var(--accent-green); background: rgba(0,230,118,0.1); }

/* ─────────── LAYOUT ─────────── */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ─────────── SIDEBAR ─────────── */
.sidebar {
    width: 272px; min-width: 272px;
    background: rgba(8, 10, 18, 0.92);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    display: flex; flex-direction: column;
    padding: 28px 20px;
    z-index: 10;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 38px; padding: 0 8px;
}
.brand-icon { font-size: 1.7rem; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: 1px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-btn {
    background: transparent; border: none;
    color: var(--text-muted);
    padding: 12px 16px; border-radius: 12px;
    text-align: left; font-family: inherit; font-size: 0.98rem; font-weight: 500;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 12px;
    position: relative;
}
.nav-btn i { font-size: 1.1rem; width: 22px; text-align: center; }
.nav-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.nav-btn.active { color: white; background: var(--gradient-primary); box-shadow: 0 4px 20px rgba(176,38,255,0.25); }

.sidebar-footer {
    margin-top: auto; padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    display: flex; align-items: center; gap: 10px;
}
.user-mini { display: flex; align-items: center; gap: 10px; flex: 1; overflow: hidden; }
.user-mini .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-glass-hover); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-glass); flex-shrink: 0; }
.user-info { display: flex; flex-direction: column; overflow: hidden; }
.user-name { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow:ellipsis; }
.user-role { font-size: 0.77rem; color: var(--accent-blue); }

.btn-logout { background: rgba(255,51,102,0.1); border: 1px solid rgba(255,51,102,0.2); color: var(--accent-red); width: 36px; height: 36px; border-radius: 9px; cursor: pointer; transition: var(--transition); flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.btn-logout:hover { background: rgba(255,51,102,0.25); }

/* ─────────── MAIN CONTENT ─────────── */
.main-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; position: relative; }

.top-header {
    height: 74px; min-height: 74px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 36px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(8, 10, 18, 0.6);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 5;
}
#page-title { font-size: 1.3rem; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 16px; }

.search-bar {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: 20px; padding: 8px 18px; width: 280px;
    transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(176,38,255,0.12); }
.search-bar i { color: var(--text-muted); margin-right: 10px; }
.search-bar input { background: transparent; border: none; color: var(--text-main); width: 100%; outline: none; font-family: inherit; font-size: 0.92rem; }

.bell-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border-glass); color: var(--text-main); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: var(--transition); }
.bell-btn:hover { color: var(--accent-purple); border-color: var(--accent-purple); }

.content-area { padding: 36px; flex: 1; }

.view-section { display: none; animation: fadeUp 0.35s var(--ease) both; }
.view-section.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ─────────── DASHBOARD ─────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 18px; margin-bottom: 28px; }

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 24px; display: flex; align-items: center; gap: 18px;
    transition: var(--transition); cursor: default;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.14); background: var(--bg-glass-hover); }
.stat-icon { width: 58px; height: 58px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; flex-shrink: 0; }
.stat-icon.purple { background: rgba(176,38,255,0.12); color: var(--accent-purple); }
.stat-icon.blue   { background: rgba(0,212,255,0.12); color: var(--accent-blue); }
.stat-icon.red    { background: rgba(255,51,102,0.12); color: var(--accent-red); }
.stat-icon.green  { background: rgba(0,230,118,0.12); color: var(--accent-green); }
.stat-details h3 { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.stat-details p { font-size: 1.9rem; font-weight: 700; }

.dashboard-hero {
    background: linear-gradient(135deg, rgba(176,38,255,0.14), rgba(0,212,255,0.1));
    border: 1px solid rgba(176,38,255,0.25);
    border-radius: 20px; padding: 40px 44px;
    display: flex; align-items: center; justify-content: space-between;
    overflow: hidden; position: relative;
}
.hero-content { max-width: 580px; position: relative; z-index: 2; }
.hero-content h2 { font-size: 1.9rem; margin-bottom: 14px; font-weight: 700; }
.hero-content p { color: #c8d0dc; line-height: 1.65; margin-bottom: 26px; }
.hero-illustration { font-size: 160px; position: absolute; right: 30px; bottom: -20px; opacity: 0.08; color: white; pointer-events: none; }

/* ─────────── CARDS ─────────── */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    box-shadow: 0 6px 30px rgba(0,0,0,0.25);
}
.card { padding: 28px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.card-header h3 { font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.count-badge { background: rgba(176,38,255,0.15); color: var(--accent-purple); padding: 2px 10px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; }

/* ─────────── NAWALA ─────────── */
.nawala-check-card { text-align: center; padding: 50px 36px; max-width: 860px; margin: 0 auto; }
.nawala-check-card h3 { font-size: 1.75rem; margin-bottom: 10px; }
.subtitle { color: var(--text-muted); margin-bottom: 20px; font-size: 1rem; }

.nawala-info-box {
    background: rgba(0,212,255,0.07);
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.87rem;
    color: #a0d8ef;
    margin-bottom: 28px;
    text-align: left;
    display: flex; gap: 10px; align-items: flex-start;
}
.nawala-info-box i { margin-top: 2px; color: var(--accent-blue); flex-shrink: 0; }

.input-group {
    display: flex; max-width: 620px; margin: 0 auto;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--accent-blue);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 0 20px rgba(0,212,255,0.1);
}
.input-group input { flex: 1; background: transparent; border: none; padding: 15px 22px; color: white; font-family: inherit; font-size: 1rem; outline: none; }
.input-group .btn { border-radius: 0; padding: 15px 30px; flex-shrink: 0; }

.nawala-results { margin-top: 40px; text-align: left; }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; border-bottom: 1px solid var(--border-glass); padding-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.result-header h4 { font-size: 1.15rem; }
.scan-status { background: rgba(0,230,118,0.12); color: var(--accent-green); padding: 5px 14px; border-radius: 20px; font-size: 0.83rem; font-weight: 600; }
.scan-status.scanning { background: rgba(0,212,255,0.12); color: var(--accent-blue); }

.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 14px; }

.provider-card {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-glass);
    border-radius: 12px; padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    transition: var(--transition);
    animation: fadeUp 0.35s var(--ease) both;
}
.provider-card:hover { border-color: rgba(255,255,255,0.14); background: var(--bg-glass-hover); }
.provider-info { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.93rem; }
.provider-logo { width: 34px; height: 34px; border-radius: 7px; background: white; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #111; font-size: 0.62rem; text-align: center; flex-shrink: 0; line-height: 1.2; }

.status-badge { padding: 4px 11px; border-radius: 7px; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.status-badge.aman    { background: rgba(0,230,118,0.14); color: var(--accent-green); }
.status-badge.blocked { background: rgba(255,51,102,0.14); color: var(--accent-red); }
.status-badge.checking { background: rgba(0,212,255,0.10); color: var(--accent-blue); }

/* ─────────── DOMAIN TABLE ─────────── */
.table-container { overflow-x: auto; margin-bottom: 20px; }
.domain-table { width: 100%; border-collapse: collapse; }
.domain-table th { text-align: left; padding: 12px 16px; color: var(--text-muted); font-weight: 500; font-size: 0.86rem; border-bottom: 1px solid var(--border-glass); letter-spacing: 0.03em; text-transform: uppercase; }
.domain-table tr { transition: var(--transition); }
.domain-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.domain-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-glass); font-size: 0.93rem; vertical-align: middle; }
.domain-table td:first-child { color: var(--text-muted); font-size: 0.85rem; }

.domain-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.domain-name small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.8rem; margin-top: 2px; }

.td-actions { display: flex; gap: 8px; align-items: center; }
.action-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--border-glass); color: var(--text-muted); width: 32px; height: 32px; border-radius: 7px; cursor: pointer; transition: var(--transition); font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.action-btn:hover { background: var(--bg-glass-hover); color: var(--accent-blue); border-color: rgba(0,212,255,0.3); }
.action-btn.del:hover { color: var(--accent-red); border-color: rgba(255,51,102,0.3); }
.action-btn.rotator:hover { color: var(--accent-green); border-color: rgba(0,230,118,0.3); }

.pagination { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.88rem; padding-top: 16px; flex-wrap: wrap; gap: 10px; }
.page-controls { display: flex; gap: 6px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; display: block; }
.empty-state p { font-size: 1rem; }

/* ─────────── FORMS ─────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #cdd2da; font-size: 0.93rem; }
.form-group input:not([type=checkbox]):not([type=radio]),
.form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border-glass);
    border-radius: 9px;
    padding: 11px 16px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
.form-group input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(0,212,255,0.12); }
.form-group small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.82rem; }
.helper-text { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.55; }

.styled-select {
    width: 100%; background: rgba(0,0,0,0.35); border: 1px solid var(--border-glass);
    border-radius: 9px; padding: 11px 16px; color: white;
    font-family: inherit; font-size: 0.95rem; outline: none; cursor: pointer;
    transition: var(--transition);
}
.styled-select:focus { border-color: var(--accent-blue); }
.styled-select option { background: #1a1d28; }

.alias-input { display: flex; align-items: center; background: rgba(0,0,0,0.35); border: 1px solid var(--border-glass); border-radius: 9px; overflow: hidden; transition: var(--transition); }
.alias-input:focus-within { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(0,212,255,0.12); }
.alias-input .prefix { padding: 11px 16px; background: rgba(255,255,255,0.05); border-right: 1px solid var(--border-glass); color: var(--text-muted); white-space:nowrap; }
.alias-input input { border: none; border-radius: 0; background: transparent; box-shadow: none !important; }

.rotator-list { display: flex; flex-direction: column; gap: 10px; }
.rotator-item { display: flex; align-items: center; gap: 10px; animation: fadeUp 0.25s ease both; }
.rotator-item input { flex: 1; margin-bottom: 0; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: rgba(176,38,255,0.15); border: 1px solid rgba(176,38,255,0.3); display: flex; justify-content: center; align-items: center; font-size: 0.8rem; font-weight: 700; color: var(--accent-purple); flex-shrink: 0; }

/* ─────────── SHORTLINK PAGE ─────────── */
.two-col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.shortlink-list { display: flex; flex-direction: column; gap: 12px; max-height: 500px; overflow-y: auto; padding-right: 4px; }
.shortlink-list::-webkit-scrollbar { width: 5px; }
.shortlink-list::-webkit-scrollbar-thumb { background: var(--border-glass); border-radius: 10px; }

.shortlink-item {
    background: rgba(0,0,0,0.25); border: 1px solid var(--border-glass);
    border-radius: 12px; padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; transition: var(--transition);
}
.shortlink-item:hover { border-color: rgba(255,255,255,0.12); background: var(--bg-glass-hover); }
.sl-info { flex: 1; overflow: hidden; }
.sl-alias { font-weight: 700; color: var(--accent-blue); font-size: 0.97rem; }
.sl-domains { color: var(--text-muted); font-size: 0.82rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-actions { display: flex; gap: 8px; }

/* Flow Diagram */
.flow-diagram { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.flow-step { text-align: center; max-width: 130px; }
.flow-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 10px; }
.flow-icon.blue   { background: rgba(0,212,255,0.12); color: var(--accent-blue); }
.flow-icon.purple { background: rgba(176,38,255,0.12); color: var(--accent-purple); }
.flow-icon.red    { background: rgba(255,51,102,0.12); color: var(--accent-red); }
.flow-icon.green  { background: rgba(0,230,118,0.12); color: var(--accent-green); }
.flow-step p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.flow-arrow { color: var(--text-muted); font-size: 1.3rem; margin: 0 4px; }

/* ─────────── PROFILE ─────────── */
.profile-card { max-width: 820px; margin: 0 auto; }
.profile-layout { display: flex; gap: 40px; margin-top: 24px; }
.profile-avatar-section { flex: 0 0 190px; display: flex; flex-direction: column; align-items: center; text-align: center; border-right: 1px solid var(--border-glass); padding-right: 40px; }
.avatar-large { width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg, rgba(176,38,255,0.2), rgba(0,212,255,0.2)); border: 2px solid rgba(176,38,255,0.4); display: flex; align-items: center; justify-content: center; font-size: 2.8rem; color: var(--text-muted); margin-bottom: 16px; }
.badge { background: rgba(0,212,255,0.12); color: var(--accent-blue); padding: 4px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.profile-stats { display: flex; gap: 20px; margin-top: 24px; }
.pstat { text-align: center; }
.pstat strong { display: block; font-size: 1.4rem; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.pstat span { font-size: 0.78rem; color: var(--text-muted); }
.profile-form-section { flex: 1; }
.section-title { margin-bottom: 22px; font-size: 1.1rem; font-weight: 600; }
.pass-feedback-ok { color: var(--accent-green); }
.pass-feedback-err { color: var(--accent-red); }

/* ─────────── MODALS ─────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeBg 0.25s ease both;
}
@keyframes fadeBg { from { opacity:0; } to { opacity:1; } }

.modal-box {
    background: rgba(18, 20, 32, 0.98);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    width: 100%; max-width: 480px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), var(--shadow-glow);
    animation: popIn 0.3s var(--ease) both;
    overflow: hidden;
}
.modal-wide { max-width: 600px; }
.modal-sm { max-width: 400px; }

.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--border-glass); }
.modal-header h3 { font-size: 1.1rem; font-weight: 600; }
.modal-close { background: rgba(255,255,255,0.06); border: 1px solid var(--border-glass); color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; transition: var(--transition); font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,51,102,0.15); color: var(--accent-red); border-color: rgba(255,51,102,0.3); }
.modal-body { padding: 26px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--border-glass); }

/* ─────────── TOAST ─────────── */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(20, 22, 34, 0.98);
    border: 1px solid var(--border-glass);
    border-radius: 12px; padding: 13px 24px;
    font-size: 0.93rem; font-weight: 500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 9999; white-space: nowrap;
    animation: toastIn 0.35s var(--ease) both;
}
.toast.success { border-color: rgba(0,230,118,0.3); }
.toast.error   { border-color: rgba(255,51,102,0.3); }
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(14px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 1100px) {
    .two-col-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .profile-layout { flex-direction: column; align-items: center; }
    .profile-avatar-section { border-right: none; border-bottom: 1px solid var(--border-glass); padding-right: 0; padding-bottom: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .sidebar { display: none; }
    .content-area { padding: 20px; }
    .top-header { padding: 0 20px; }
    .search-bar { width: 200px; }
}
