@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   KURUMSAL DESIGN TOKENS — Gelir Gider V4
═══════════════════════════════════════════════════════════════════ */
:root {
    /* Accent — Corporate Sapphire Blue */
    --accent:         #2563eb;
    --accent-hover:   #1d4ed8;
    --accent-muted:   rgba(37,99,235,.15);
    --accent-surface: rgba(37,99,235,.10);
    --accent-light:   #0f172a;
    --accent-border:  rgba(37,99,235,.30);

    /* Dark mode default - Corporate Slate Navy */
    --bg-primary:    #0b0f19;
    --bg-secondary:  #111827;
    --bg-elevated:   #1f2937;
    --bg-sidebar:    #090d16;
    --bg-hover:      rgba(255,255,255,.05);

    --border-color:  rgba(255,255,255,.09);
    --border-strong: rgba(255,255,255,.16);

    --text-primary:   #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;
    --text-faint:     #475569;

    /* Status */
    --danger:   #ef4444;
    --warning:  #f59e0b;
    --success:  #10b981;
    --info:     #06b6d4;

    /* Sidebar */
    --sidebar-text:        rgba(255,255,255,.68);
    --sidebar-text-active: #ffffff;
    --sidebar-hover:       rgba(255,255,255,.06);
    --sidebar-active:      rgba(37,99,235,.18);
    --sidebar-border:      rgba(255,255,255,.08);

    /* Layout */
    --sidebar-width:  260px;
    --topbar-height:  60px;

    /* Corporate Border Radius */
    --radius-xs:  4px;
    --radius-sm:  8px;
    --radius:    12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl:24px;

    --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Light Mode override */
[data-theme="light"] {
    --accent:         #2b7fff;
    --accent-hover:   #0055ee;
    --accent-muted:   rgba(43,127,255,.12);
    --accent-surface: rgba(43,127,255,.08);
    --accent-light:   #eff5ff;
    --accent-border:  rgba(43,127,255,.25);

    --bg-primary:    #eef2ff;
    --bg-secondary:  #ffffff;
    --bg-elevated:   #ffffff;
    --bg-sidebar:    #0f1628;
    --bg-hover:      rgba(0,0,0,.04);

    --border-color:  rgba(0,0,0,.08);
    --border-strong: rgba(0,0,0,.14);

    --text-primary:   #0d1533;
    --text-secondary: #334488;
    --text-muted:     #7788bb;
    --text-faint:     #bbc4de;

    --sidebar-text: rgba(255,255,255,.72);
    --sidebar-border: rgba(255,255,255,.09);

    --danger:   #ff4466;
    --warning:  #ff9900;
    --success:  #00b377;
    --info:     #0099ee;

    --calc-btn-bg:      #eef2ff;
    --calc-btn-func-bg: #dde6ff;

    --clay-shadow-xs:
        0 2px 4px rgba(120,120,200,.12),
        inset 0 1px 0 rgba(255,255,255,.90);
    --clay-shadow-sm:
        0 4px 12px rgba(100,100,180,.14),
        0 1px 3px rgba(100,100,180,.10),
        inset 0 1px 0 rgba(255,255,255,.95),
        inset 0 -1px 0 rgba(100,100,180,.08);
    --clay-shadow:
        0 8px 24px rgba(100,100,180,.16),
        0 2px 6px rgba(100,100,180,.10),
        inset 0 1px 0 rgba(255,255,255,.95),
        inset 0 -2px 0 rgba(100,100,180,.10);
    --clay-shadow-md:
        0 12px 32px rgba(80,80,160,.18),
        0 3px 8px rgba(80,80,160,.12),
        inset 0 1px 0 rgba(255,255,255,.95),
        inset 0 -2px 0 rgba(80,80,160,.12);
    --clay-shadow-lg:
        0 20px 48px rgba(80,80,160,.20),
        0 5px 14px rgba(80,80,160,.14),
        inset 0 1px 0 rgba(255,255,255,.95),
        inset 0 -3px 0 rgba(80,80,160,.14);
    --clay-shadow-xl:
        0 32px 64px rgba(60,60,140,.22),
        0 8px 20px rgba(60,60,140,.16),
        inset 0 1px 0 rgba(255,255,255,.95),
        inset 0 -3px 0 rgba(60,60,140,.16);

    --shadow-xs: var(--clay-shadow-xs);
    --shadow-sm: var(--clay-shadow-sm);
    --shadow:    var(--clay-shadow);
    --shadow-md: var(--clay-shadow-md);
    --shadow-lg: var(--clay-shadow-lg);
    --shadow-xl: var(--clay-shadow-xl);
}

/* Varsayılan tema açık tutulur; JavaScript yüklenmeden önce koyu ekran flaşı oluşmaz. */
html:not([data-theme]) {
    --accent: #2b7fff; --accent-hover: #0055ee; --accent-muted: rgba(43,127,255,.12);
    --accent-surface: rgba(43,127,255,.08); --accent-light: #eff5ff; --accent-border: rgba(43,127,255,.25);
    --bg-primary: #eef2ff; --bg-secondary: #ffffff; --bg-elevated: #ffffff; --bg-sidebar: #0f1628; --bg-hover: rgba(0,0,0,.04);
    --border-color: rgba(0,0,0,.08); --border-strong: rgba(0,0,0,.14);
    --text-primary: #0d1533; --text-secondary: #334488; --text-muted: #7788bb; --text-faint: #bbc4de;
    --sidebar-text: rgba(255,255,255,.72); --sidebar-border: rgba(255,255,255,.09);
    --danger: #ff4466; --warning: #ff9900; --success: #00b377; --info: #0099ee;
}

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

html { scroll-behavior: smooth; }

.scroll-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.75,.2,1); }
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .scroll-reveal { opacity:1; transform:none; transition:none; } }


body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79,157,255,.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(139,92,246,.07) 0%, transparent 60%);
}

[data-theme="light"] body {
    background-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79,157,255,.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(139,92,246,.07) 0%, transparent 60%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════
   AUTH
═══════════════════════════════════════════════════════════════════ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0e1120;
    background-image:
        radial-gradient(ellipse 60% 50% at 30% 20%, rgba(79,157,255,.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 75% 80%, rgba(139,92,246,.10) 0%, transparent 55%);
}

[data-theme="light"] .auth-page {
    background: #eef2ff;
    background-image:
        radial-gradient(ellipse 60% 50% at 30% 20%, rgba(79,157,255,.10) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 75% 80%, rgba(139,92,246,.08) 0%, transparent 55%);
}

.auth-card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--clay-shadow-xl);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6, var(--accent));
    opacity: .5;
}

.auth-logo { text-align: center; margin-bottom: 36px; }

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #4f9dff, #2b7fff);
    border-radius: var(--radius-xl);
    color: white;
    margin-bottom: 16px;
    box-shadow:
        0 8px 24px rgba(79,157,255,.35),
        inset 0 1px 0 rgba(255,255,255,.30),
        inset 0 -3px 0 rgba(0,0,0,.20);
    font-size: 1.6rem;
    font-weight: 900;
}

.auth-logo h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--text-primary); }
.auth-logo p  { font-size: .86rem; color: var(--text-muted); margin-top: 5px; }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .84rem;
    font-weight: 600;
}
.alert-error   { background: rgba(255,107,138,.08); color: var(--danger); border: 1.5px solid rgba(255,107,138,.18); border-left: 4px solid var(--danger); }
.alert-success { background: rgba(0,214,143,.08); color: var(--success); border: 1.5px solid rgba(0,214,143,.18); border-left: 4px solid var(--success); }

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: .80rem;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--text-secondary);
    letter-spacing: .01em;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0 14px;
    background: var(--bg-secondary);
    transition: border-color var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
    box-shadow: var(--clay-shadow-xs);
}
.input-wrapper svg { color: var(--text-faint); margin-right: 10px; flex-shrink: 0; }
.input-wrapper input {
    flex: 1; border: none; background: transparent;
    padding: 12px 0; font-family: inherit; font-size: .90rem;
    color: var(--text-primary); outline: none;
}
.input-wrapper input::placeholder { color: var(--text-faint); }
.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-muted), var(--clay-shadow-xs);
}
.input-wrapper:focus-within svg { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS — Clay Style
═══════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .86rem;
    cursor: pointer;
    transition:
        transform var(--t2) var(--ease),
        box-shadow var(--t2) var(--ease-out),
        background var(--t2) var(--ease),
        border-color var(--t2) var(--ease);
    border: none;
    gap: 7px;
    font-family: var(--font);
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    position: relative;
    letter-spacing: .01em;
    overflow: hidden; /* For shimmer reflection clipping */
    z-index: 1;
}

/* Glassmorphic diagonal shimmer glow */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.75s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
    pointer-events: none;
}
.btn:hover::before {
    left: 150%;
}

/* Premium Lift & Scale on Hover for all button-style interactive elements */
.btn:hover,
.hizli-btn:hover,
.action-btn:hover,
.icon-btn:hover,
.acc-btn:hover,
.topbar-icon-btn:hover,
.sidebar-info-btn:hover,
.drawer-x:hover,
.modal-close:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), var(--clay-shadow-sm);
}

.btn:active,
.hizli-btn:active,
.action-btn:active,
.icon-btn:active,
.acc-btn:active,
.topbar-icon-btn:active,
.sidebar-info-btn:active,
.drawer-x:active,
.modal-close:active {
    transform: translateY(1px) scale(0.96) !important;
    transition: transform 0.08s var(--ease);
}

.btn-primary {
    background: linear-gradient(135deg, #4f9dff, #2b7fff);
    color: #001433;
    box-shadow:
        0 6px 18px rgba(79,157,255,.35),
        inset 0 1px 0 rgba(255,255,255,.28),
        inset 0 -3px 0 rgba(0,0,0,.18);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #6fb4ff, #4f9dff);
    box-shadow:
        0 10px 28px rgba(79,157,255,.45),
        inset 0 1px 0 rgba(255,255,255,.32),
        inset 0 -3px 0 rgba(0,0,0,.20);
    color: #000e26;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    box-shadow: var(--clay-shadow-sm);
    border: 1.5px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
    box-shadow: var(--clay-shadow);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b8a, #ee2244);
    color: #fff;
    box-shadow:
        0 6px 18px rgba(255,107,138,.35),
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -3px 0 rgba(0,0,0,.18);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #ff8899, #ff4466);
    box-shadow:
        0 10px 28px rgba(255,107,138,.45),
        inset 0 1px 0 rgba(255,255,255,.26),
        inset 0 -3px 0 rgba(0,0,0,.20);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    box-shadow: none;
}
.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    box-shadow: var(--clay-shadow-xs);
    transform: translateY(-1px);
}

.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   APP LAYOUT
═══════════════════════════════════════════════════════════════════ */
.app-page { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    border-right: 1.5px solid rgba(255,255,255,.06);
    overflow: hidden;
    background-image:
        radial-gradient(ellipse 100% 60% at 0% 0%, rgba(79,157,255,.06) 0%, transparent 60%),
        radial-gradient(ellipse 80% 40% at 100% 100%, rgba(139,92,246,.05) 0%, transparent 60%);
    transition: width .24s cubic-bezier(.2,.75,.2,1), box-shadow .24s ease;
}

.sidebar-overlay { display: none; }
.mobile-menu-toggle { display: none !important; }

/* Masa başı aktiflik onayı — sayfanın ortasında dikkat çeken, erişilebilir uyarı */
.desk-check-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 8, 23, .66);
    backdrop-filter: blur(7px);
    animation: deskCheckFadeIn .22s ease-out;
}
.desk-check-dialog {
    width: min(100%, 470px);
    padding: 32px;
    border: 1px solid rgba(16, 185, 129, .42);
    border-radius: 22px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42), 0 0 0 7px rgba(16, 185, 129, .09);
    animation: deskCheckPop .3s cubic-bezier(.2, 1.25, .35, 1);
}
.desk-check-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    border-radius: 22px;
    background: rgba(16, 185, 129, .14);
    color: #059669;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 9px 24px rgba(16,185,129,.17);
}
.desk-check-dialog h2 { margin: 0; font-size: 1.32rem; letter-spacing: -.02em; }
.desk-check-dialog p { max-width: 340px; margin: 10px auto 23px; color: var(--text-secondary); font-size: .92rem; line-height: 1.55; }
.desk-check-confirm {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font: 800 .92rem var(--font, Arial);
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(5,150,105,.27);
    transition: transform .16s ease, filter .16s ease;
}
.desk-check-confirm:hover { transform: translateY(-2px); filter: brightness(1.05); }
.desk-check-confirm:focus-visible { outline: 3px solid rgba(16,185,129,.38); outline-offset: 3px; }
@keyframes deskCheckFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes deskCheckPop { from { opacity: 0; transform: scale(.9) translateY(14px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Süreli masa başı doğrulaması */
.desk-check-overlay {
    background:
        radial-gradient(circle at 50% 35%, rgba(37,99,235,.17), transparent 38%),
        rgba(2,6,23,.78);
    backdrop-filter: blur(12px) saturate(1.1);
}
.desk-check-dialog {
    position: relative;
    overflow: hidden;
    width: min(100%, 500px);
    padding: 27px 30px 23px;
    border: 1px solid rgba(96,165,250,.3);
    border-radius: 27px;
    background:
        linear-gradient(145deg, color-mix(in srgb,var(--bg-secondary) 96%,#2563eb 4%), color-mix(in srgb,var(--bg-primary) 90%,transparent));
    box-shadow: 0 34px 110px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 7px rgba(59,130,246,.055);
}
.desk-check-glow {
    position:absolute; width:240px; height:240px; top:-175px; left:50%; transform:translateX(-50%);
    border-radius:50%; background:#3b82f6; filter:blur(65px); opacity:.25; pointer-events:none;
}
.desk-check-kicker {
    position:relative; display:flex; align-items:center; justify-content:center; gap:7px;
    margin-bottom:15px; color:#60a5fa; font-size:.62rem; font-weight:850; letter-spacing:.13em;
}
.desk-check-kicker span { width:6px; height:6px; border-radius:50%; background:#3b82f6; box-shadow:0 0 0 5px rgba(59,130,246,.12),0 0 18px #3b82f6; }
.desk-check-timer {
    --desk-progress:360deg;
    position:relative; width:128px; height:128px; display:grid; place-items:center; margin:0 auto 17px;
    border-radius:50%; background:conic-gradient(#3b82f6 var(--desk-progress),rgba(148,163,184,.13) 0);
    box-shadow:0 14px 35px rgba(37,99,235,.18); transition:background .25s ease;
}
.desk-check-timer::before { content:""; position:absolute; inset:7px; border-radius:50%; background:var(--bg-secondary); box-shadow:inset 0 0 25px rgba(59,130,246,.08); }
.desk-check-timer-inner { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; }
.desk-check-timer-inner strong { color:var(--text-primary); font-size:1.62rem; line-height:1; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.desk-check-timer-inner span { margin-top:6px; color:var(--text-muted); font-size:.54rem; font-weight:850; letter-spacing:.12em; }
.desk-check-dialog h2 { position:relative; font-size:1.38rem; }
.desk-check-dialog p { position:relative; max-width:395px; margin:8px auto 14px; font-size:.8rem; line-height:1.58; }
.desk-check-facts { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:17px; color:var(--text-muted); font-size:.65rem; }
.desk-check-facts span { display:flex; align-items:center; gap:4px; }
.desk-check-facts b { color:var(--text-secondary); }
.desk-check-facts i { width:3px; height:3px; border-radius:50%; background:var(--border-strong); }
.desk-check-confirm { position:relative; display:flex; align-items:center; justify-content:center; gap:8px; min-height:50px; border-radius:14px; background:linear-gradient(135deg,#2563eb,#4f46e5); box-shadow:0 12px 26px rgba(37,99,235,.27); }
.desk-check-confirm:disabled { cursor:wait; opacity:.7; transform:none; }
.desk-check-security { display:flex; align-items:center; justify-content:center; gap:5px; margin-top:12px; color:var(--text-faint); font-size:.61rem; }
.desk-check-dialog.is-urgent { border-color:rgba(245,158,11,.5); box-shadow:0 34px 110px rgba(0,0,0,.52),0 0 0 7px rgba(245,158,11,.07); }
.desk-check-dialog.is-urgent .desk-check-timer { background:conic-gradient(#f59e0b var(--desk-progress),rgba(148,163,184,.13) 0); box-shadow:0 14px 35px rgba(245,158,11,.2); }
.desk-check-dialog.is-urgent .desk-check-kicker { color:#f59e0b; }
.desk-check-dialog.is-urgent .desk-check-kicker span { background:#f59e0b; box-shadow:0 0 0 5px rgba(245,158,11,.12),0 0 18px #f59e0b; }
.desk-check-dialog.is-expired { border-color:rgba(239,68,68,.5); }
@media(max-width:560px){
    .desk-check-overlay{padding:12px}.desk-check-dialog{padding:24px 18px 20px;border-radius:22px}.desk-check-timer{width:116px;height:116px}.desk-check-facts{gap:8px;flex-wrap:wrap}.desk-check-security{text-align:center}
}

/* Sabit/daraltılabilir sol menü */
.sidebar-collapse-toggle {
    width: 30px;
    height: 30px;
    border: 1px solid var(--sidebar-border);
    border-radius: 9px;
    background: rgba(255,255,255,.045);
    color: var(--sidebar-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background var(--t2) var(--ease), color var(--t2) var(--ease), transform var(--t2) var(--ease);
}
.sidebar-collapse-toggle:hover { background: rgba(79,157,255,.20); color: #fff; }
.sidebar-collapse-toggle.is-pinned {
    background: rgba(79,157,255,.16);
    border-color: rgba(79,157,255,.42);
    color: #a9ceff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.sidebar-collapse-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sidebar-collapse-toggle svg { transition: transform .2s var(--ease); }

body.sidebar-collapsed .sidebar { width: 76px; }
body.sidebar-collapsed .main-content { margin-left: 76px; }
body.sidebar-collapsed.sidebar-hover-open .sidebar {
    width: var(--sidebar-width);
    box-shadow: 12px 0 30px rgba(2,8,23,.25);
}
body.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-header { padding: 12px 10px; justify-content:center; }
body.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-header > a { flex: 0 0 auto; }
body.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-logo-text,
body.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-collapse-toggle,
body.sidebar-collapsed:not(.sidebar-hover-open) .nav-section-title,
body.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-folders-container,
body.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-footer .user-details { display: none; }
body.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-nav { padding: 10px 8px; }
body.sidebar-collapsed:not(.sidebar-hover-open) .nav-section { margin-bottom: 8px; }
body.sidebar-collapsed:not(.sidebar-hover-open) .nav-section + .nav-section { padding-top: 8px; }
body.sidebar-collapsed:not(.sidebar-hover-open) .nav-item {
    justify-content: center;
    gap: 0;
    padding: 10px;
    font-size: 0;
    margin-bottom: 5px;
}
body.sidebar-collapsed:not(.sidebar-hover-open) .nav-item:hover { transform: none; }
body.sidebar-collapsed:not(.sidebar-hover-open) .nav-item svg { width: 19px; height: 19px; }
body.sidebar-collapsed:not(.sidebar-hover-open) .nav-badge { display: none; }
body.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-footer { padding: 12px 10px; }
body.sidebar-collapsed:not(.sidebar-hover-open) .user-info { justify-content: center; }

.sidebar-header {
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1.5px solid var(--sidebar-border);
    min-height: var(--topbar-height);
}

.sidebar-logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #4f9dff, #2b7fff);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; font-weight: 900; color: white;
    flex-shrink: 0;
    box-shadow:
        0 4px 14px rgba(79,157,255,.40),
        inset 0 1px 0 rgba(255,255,255,.30),
        inset 0 -2px 0 rgba(0,0,0,.22);
    letter-spacing: -.02em;
}

.sidebar-logo-text {
    flex: 1;
    min-width: 0;
}
.sidebar-logo-name {
    font-size: .87rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-logo-sub {
    font-size: .67rem;
    color: rgba(255,255,255,.48);
    margin-top: 1px;
}

/* Theme toggle in sidebar header */
#theme-toggle {
    width: 30px; height: 30px;
    border: 1.5px solid var(--sidebar-border) !important;
    border-radius: var(--radius-sm) !important;
    background: rgba(255,255,255,.04) !important;
    color: var(--sidebar-text) !important;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t2) var(--ease) !important;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 !important;
    box-shadow: var(--clay-shadow-xs) !important;
}
#theme-toggle:hover {
    background: rgba(255,255,255,.10) !important;
    color: rgba(255,255,255,.9) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--clay-shadow-sm) !important;
}

.sidebar-nav { flex: 1; padding: 10px 10px; overflow-y: auto; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { width: 0; }

.nav-section { margin-bottom: 6px; }
.nav-section + .nav-section { border-top: 1.5px solid rgba(255,255,255,.04); padding-top: 4px; }

.nav-section-title {
    font-size: .62rem;
    font-weight: 800;
    color: rgba(255,255,255,.38);
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: 12px 10px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    margin-bottom: 3px;
    font-size: .87rem;
    font-weight: 600;
    transition: all var(--t2) var(--ease);
    gap: 10px;
    position: relative;
    text-decoration: none !important;
}
.nav-item svg {
    color: rgba(255,255,255,.55);
    transition: all var(--t2) var(--ease);
    flex-shrink: 0;
    stroke-width: 2.2;
    width: 18px;
    height: 18px;
}

.nav-item:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
    transform: translateX(3px);
    text-decoration: none !important;
    box-shadow:
        0 2px 8px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.06);
}
.nav-item:hover svg { color: rgba(255,255,255,.90); transform: scale(1.10); }

.nav-item.active {
    background: linear-gradient(135deg, rgba(79,157,255,.20), rgba(79,157,255,.10));
    color: #fff;
    font-weight: 700;
    box-shadow:
        0 4px 12px rgba(79,157,255,.18),
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 -1px 0 rgba(0,0,0,.12);
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px; bottom: 6px;
    width: 3px;
    background: linear-gradient(180deg, #4f9dff, #2b7fff);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px rgba(79,157,255,.60);
}
.nav-item.active svg { color: var(--accent); stroke-width: 2.3; }

.nav-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--danger), #cc1133);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    line-height: 1.4;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255,107,138,.35);
}

/* Folder tree */
.sidebar-folders-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t3) var(--ease), opacity var(--t3) var(--ease);
    opacity: 0;
}
.nav-section-notes:hover .sidebar-folders-container { max-height: 600px; opacity: 1; }

.sidebar-folders {
    padding: 3px 8px;
    border-left: 1.5px solid var(--sidebar-border);
    margin-left: 20px;
    margin-top: 3px;
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: var(--radius-sm);
    font-size: .80rem;
    color: var(--sidebar-text);
    cursor: pointer;
    transition: all var(--t1) var(--ease);
    text-decoration: none;
}
.folder-item:hover { background: var(--sidebar-hover); color: rgba(255,255,255,.85); text-decoration: none; }
.folder-dot { width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; flex-shrink: 0; box-shadow: 0 0 6px currentColor; }

/* Footer */
.sidebar-footer {
    padding: 12px 10px;
    border-top: 1.5px solid var(--sidebar-border);
    background: rgba(0,0,0,.12);
}
.user-info { display: flex; align-items: center; gap: 10px; }

.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f9dff, #2b7fff);
    display: flex; align-items: center; justify-content: center;
    font-size: .80rem; font-weight: 800; color: white;
    flex-shrink: 0;
    position: relative;
    box-shadow:
        0 4px 12px rgba(79,157,255,.35),
        inset 0 1px 0 rgba(255,255,255,.28);
}
.user-avatar-online {
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    background: #4f9dff;
    border: 2px solid var(--bg-sidebar);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(79,157,255,.60);
}
.user-details { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.user-name {
    font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.88);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
.btn-logout { color: var(--sidebar-text); font-size: .72rem; transition: color var(--t2) var(--ease); font-weight: 600; }
.btn-logout:hover { color: var(--danger); text-decoration: none; }

/* ── Main Content ── */
.main-content {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .24s cubic-bezier(.2,.75,.2,1);
}

/* Top Bar */
.top-bar {
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    flex-shrink: 0;
    gap: 16px;
    box-shadow:
        0 4px 16px rgba(0,0,0,.20),
        inset 0 -1px 0 rgba(255,255,255,.04);
}

.top-bar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    max-width: 220px;
}
.top-bar-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}
.top-bar-brand-logo,
.sidebar-logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    object-fit: contain;
    background: var(--bg-elevated);
    flex-shrink: 0;
    border: 1.5px solid var(--border-color);
}
.top-bar-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4f9dff, #2b7fff);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}
.top-bar-brand-name {
    font-size: .88rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar-search {
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 14px;
    cursor: pointer;
    transition: all var(--t2) var(--ease);
    box-shadow: var(--clay-shadow-xs);
}
.search-input-wrapper:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-muted), var(--clay-shadow-xs);
    transform: translateY(-1px);
}
.search-input-wrapper svg { color: var(--text-muted); flex-shrink: 0; }
.search-input-placeholder {
    font-size: .86rem;
    color: var(--text-muted);
    flex: 1;
    font-family: var(--font);
    font-weight: 600;
}
.search-kbd {
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px 7px;
    font-size: .70rem;
    color: var(--text-faint);
    font-family: monospace;
    white-space: nowrap;
    box-shadow: var(--clay-shadow-xs);
}

.top-bar-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; position:relative; z-index:1001; }

.topbar-icon-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t2) var(--ease);
    position: relative;
    box-shadow: var(--clay-shadow-xs);
}
.topbar-icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--clay-shadow-sm);
    border-color: var(--border-strong);
}
.topbar-notification-btn { position:relative; }
.topbar-notification-badge {
    position:absolute; top:-5px; right:-6px; min-width:17px; height:17px; padding:0 4px;
    border:2px solid var(--bg-secondary); border-radius:999px; background:var(--danger); color:#fff;
    font-size:.60rem; font-weight:800; line-height:13px; box-shadow:0 3px 9px rgba(239,68,68,.35);
}
.notification-panel,.quick-actions-panel {
    max-width:calc(100vw - 22px); padding:0 !important; overflow:hidden;
    z-index:10050 !important; text-align:left !important; isolation:isolate;
    border:1px solid color-mix(in srgb,var(--border-color) 62%,rgba(255,255,255,.7)) !important;
    border-radius:22px !important;
    background:color-mix(in srgb,var(--bg-elevated) 84%,transparent) !important;
    -webkit-backdrop-filter:blur(28px) saturate(165%); backdrop-filter:blur(28px) saturate(165%);
    box-shadow:0 26px 70px rgba(15,23,42,.20),0 6px 20px rgba(15,23,42,.09),inset 0 1px 0 rgba(255,255,255,.65) !important;
}
.notification-panel { width:410px; }
.notification-panel::before,.quick-actions-panel::before { content:""; position:absolute; inset:0 0 auto; height:110px; pointer-events:none; background:radial-gradient(circle at 20% 0,rgba(79,157,255,.18),transparent 55%),radial-gradient(circle at 90% 20%,rgba(139,92,246,.13),transparent 45%); }
.notification-panel-head { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; padding:17px 17px 9px; }
.notification-panel-title,.quick-actions-heading { display:flex; align-items:center; gap:11px; }
.notification-title-icon,.quick-actions-brand { width:38px; height:38px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; border-radius:13px; color:#fff; background:linear-gradient(145deg,#5b8cff,#7868ed); box-shadow:0 8px 18px rgba(91,140,255,.30),inset 0 1px 0 rgba(255,255,255,.4); }
.notification-title-icon svg,.quick-actions-brand svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.notification-panel-head strong,.quick-actions-head strong { display:block; font-size:.91rem; letter-spacing:-.012em; color:var(--text-primary); }
.notification-panel-head span:not(.notification-title-icon),.quick-actions-head span:not(.quick-actions-brand) { display:block; margin-top:2px; font-size:.70rem; color:var(--text-muted); }
.notification-refresh { width:32px; height:32px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(127,127,127,.12); border-radius:11px; background:rgba(255,255,255,.38); color:var(--text-muted); cursor:pointer; transition:.18s ease; }
.notification-refresh svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.notification-refresh:hover { color:var(--accent); transform:rotate(25deg); background:var(--accent-muted); }
.notification-panel-summary { position:relative; z-index:1; display:flex; gap:8px; align-items:center; padding:0 18px 11px; color:var(--text-muted); font-size:.66rem; }
.notification-panel-summary b { color:var(--text-primary); font-size:.70rem; }.notification-panel-summary i { width:3px; height:3px; border-radius:50%; background:var(--text-faint); }.notification-panel-summary .has-urgent b { color:var(--danger); }
.notification-panel-actions { position:relative; display:flex; gap:5px; align-items:center; margin:0 13px 8px; padding:4px; border:1px solid rgba(127,127,127,.10); border-radius:12px; background:rgba(127,127,127,.065); }
.notification-filter,.notification-mark-read { border:0; background:transparent; color:var(--text-muted); font:700 .69rem var(--font); padding:6px 10px; border-radius:9px; cursor:pointer; }
.notification-filter em { min-width:17px; height:17px; display:inline-flex; align-items:center; justify-content:center; margin-left:4px; border-radius:999px; background:rgba(127,127,127,.12); font-style:normal; font-size:.60rem; }
.notification-filter.is-active { color:var(--accent); background:color-mix(in srgb,var(--bg-elevated) 78%,transparent); box-shadow:0 3px 10px rgba(15,23,42,.08),inset 0 0 0 1px rgba(127,127,127,.08); }
.notification-mark-read { width:29px; height:29px; display:flex; align-items:center; justify-content:center; padding:0; margin-left:auto; color:var(--accent); }.notification-mark-read svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.notification-list { max-height:min(400px,calc(100vh - 210px)); overflow-y:auto; padding:2px 9px 8px; }
.notification-item { position:relative; display:flex; gap:11px; margin:3px 0; padding:11px; color:var(--text-primary); text-decoration:none; border:1px solid transparent; border-radius:14px; transition:all .18s ease; }
.notification-item:hover { transform:translateX(2px); background:rgba(255,255,255,.35); border-color:rgba(127,127,127,.12); box-shadow:0 7px 18px rgba(15,23,42,.07); }
.notification-item-icon { display:flex; align-items:center; justify-content:center; width:37px; height:37px; flex:0 0 37px; border-radius:12px; background:var(--accent-muted); color:var(--accent); }
.notification-item-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.85; stroke-linecap:round; stroke-linejoin:round; }
.notification-item.severity-danger .notification-item-icon { color:#ef4444; background:rgba(239,68,68,.11); }.notification-item.severity-warning .notification-item-icon { color:#e8940c; background:rgba(245,158,11,.12); }
.notification-item-body { min-width:0; display:flex; flex:1; flex-direction:column; align-items:flex-start; gap:2px; padding-right:9px; text-align:left !important; }.notification-item-body .notification-item-kicker { width:max-content; color:var(--accent); font-size:.57rem; line-height:1.35; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }.notification-item.severity-danger .notification-item-kicker { color:var(--danger); }.notification-item.severity-warning .notification-item-kicker { color:#d78a09; }.notification-item-body strong { font-size:.76rem; line-height:1.35; text-align:left !important; }.notification-item-body>span:not(.notification-item-kicker) { font-size:.71rem; line-height:1.42; color:var(--text-secondary); text-align:left !important; }.notification-item-body small { display:flex; align-items:center; gap:4px; margin-top:2px; font-size:.64rem; color:var(--text-muted); }.notification-item-body small svg { width:11px; height:11px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.notification-unread-pulse { position:absolute; top:14px; right:10px; width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 13%,transparent); }.severity-danger .notification-unread-pulse { background:var(--danger); box-shadow:0 0 0 4px rgba(239,68,68,.11); }
.notification-empty,.notification-loading { display:flex; min-height:175px; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:var(--text-muted); font-size:.72rem; text-align:center; padding:20px; }.notification-empty strong,.notification-loading strong { color:var(--text-primary); font-size:.80rem; }.notification-empty-orb { width:43px; height:43px; display:flex; align-items:center; justify-content:center; margin-bottom:5px; border-radius:15px; color:#10b981; background:rgba(16,185,129,.11); box-shadow:0 8px 24px rgba(16,185,129,.12); }.notification-empty-orb svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }.notification-loading>span { width:25px; height:25px; border:2px solid var(--accent-muted); border-top-color:var(--accent); border-radius:50%; animation:spin .75s linear infinite; }
.notification-panel-footer,.quick-actions-footer { display:flex; justify-content:space-between; align-items:center; padding:11px 15px; border-top:1px solid rgba(127,127,127,.11); background:rgba(127,127,127,.045); }.notification-panel-footer a,.notification-panel-footer button,.quick-actions-footer a,.quick-actions-footer button { display:flex; align-items:center; gap:5px; border:0; background:transparent; color:var(--accent); text-decoration:none; cursor:pointer; font:750 .70rem var(--font); }.notification-panel-footer button { padding:6px 9px; border-radius:9px; background:var(--accent-muted); }.notification-panel-footer button svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.quick-actions-panel { width:400px; }
.quick-actions-head { position:relative; z-index:1; display:flex; justify-content:space-between; align-items:center; padding:17px 16px 14px; }.quick-actions-brand { background:linear-gradient(145deg,#7c5cff,#4f9dff); }.quick-actions-search { display:flex; align-items:center; gap:5px; border:1px solid rgba(127,127,127,.16); background:color-mix(in srgb,var(--bg-primary) 82%,transparent); color:var(--text-secondary); border-radius:10px; padding:6px 7px; cursor:pointer; }.quick-actions-search svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }.quick-actions-search kbd { border:0; background:transparent; color:inherit; font:650 .61rem var(--font); }
.quick-actions-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; padding:0 11px 12px; }.quick-action { --quick-tone:var(--accent); min-height:76px; display:flex; align-items:center; gap:9px; padding:10px; border:1px solid color-mix(in srgb,var(--border-color) 85%,transparent); border-radius:15px; background:color-mix(in srgb,var(--bg-primary) 84%,transparent); text-align:left !important; color:var(--text-primary); cursor:pointer; transition:all .18s ease; position:relative; overflow:hidden; }.quick-action::after { content:""; position:absolute; width:58px; height:58px; right:-27px; bottom:-31px; border-radius:50%; background:color-mix(in srgb,var(--quick-tone) 10%,transparent); }.quick-action:hover { z-index:2; transform:translateY(-2px); border-color:color-mix(in srgb,var(--quick-tone) 48%,transparent); background:color-mix(in srgb,var(--quick-tone) 9%,var(--bg-primary)); box-shadow:0 9px 20px color-mix(in srgb,var(--quick-tone) 14%,transparent); }.quick-action-icon { width:34px; height:34px; display:flex !important; align-items:center; justify-content:center; flex:0 0 34px; margin:0 !important; border-radius:11px; color:var(--quick-tone) !important; background:color-mix(in srgb,var(--quick-tone) 14%,transparent); }.quick-action-icon svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }.quick-action-copy { min-width:0; display:block; margin:0 !important; text-align:left !important; }.quick-action-copy strong { display:block; color:var(--text-primary); font-size:.74rem; line-height:1.28; }.quick-action-copy small { display:block; margin-top:3px; color:var(--text-secondary); font-size:.64rem; line-height:1.3; }.quick-action>i { position:absolute; top:8px; right:9px; color:var(--quick-tone); opacity:0; font-style:normal; font-size:.68rem; transition:.18s ease; }.quick-action:hover>i { opacity:.85; transform:translate(1px,-1px); }.quick-action.tone-income { --quick-tone:#10b981; }.quick-action.tone-expense { --quick-tone:#ef6464; }.quick-action.tone-invoice { --quick-tone:#4f7cff; }.quick-action.tone-order { --quick-tone:#f59e0b; }.quick-action.tone-reminder { --quick-tone:#8b5cf6; }.quick-action.tone-note { --quick-tone:#06a7b8; }
.quick-actions-footer .ai-spark { color:#8b5cf6; font-size:.88rem; }
@media (prefers-reduced-motion:reduce){.notification-loading>span{animation:none}.notification-refresh:hover{transform:none}}
@media (max-width:520px){.notification-panel,.quick-actions-panel{width:min(390px,calc(100vw - 16px));right:-48px !important}.quick-actions-grid{grid-template-columns:1fr}.notification-list{max-height:55vh}}

.reminder-alarm-layer { position:fixed; top:18px; right:18px; z-index:14050; width:min(390px,calc(100vw - 28px)); display:flex; flex-direction:column; gap:9px; pointer-events:none; }
.reminder-alarm-toast { --alarm:#f59e0b; display:flex; align-items:flex-start; gap:11px; padding:13px; border:1px solid color-mix(in srgb,var(--alarm) 42%,var(--border-color)); border-radius:17px; background:color-mix(in srgb,var(--bg-elevated) 94%,transparent); color:var(--text-primary); text-align:left; box-shadow:0 22px 55px rgba(15,23,42,.24),0 0 0 1px rgba(255,255,255,.08) inset; backdrop-filter:blur(24px) saturate(150%); pointer-events:auto; opacity:0; transform:translateX(28px) scale(.97); transition:opacity .24s ease,transform .24s ease; }
.reminder-alarm-toast.is-visible { opacity:1; transform:none; }
.reminder-alarm-icon { width:40px; height:40px; display:flex; align-items:center; justify-content:center; flex:0 0 40px; border-radius:13px; color:#fff; background:linear-gradient(145deg,#f59e0b,#ef6c3e); box-shadow:0 8px 20px rgba(245,158,11,.28); animation:reminderBell 1s ease-in-out 2; }
.reminder-alarm-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.reminder-alarm-copy { min-width:0; flex:1; display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding-top:1px; }
.reminder-alarm-copy strong { font-size:.78rem; line-height:1.35; }.reminder-alarm-copy>span { max-width:220px; color:var(--text-secondary); font-size:.70rem; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.reminder-alarm-copy small { color:#d98608; font-size:.63rem; font-weight:800; }
.reminder-alarm-actions { display:flex; align-items:center; gap:3px; }.reminder-alarm-actions button { min-width:29px; height:29px; border:0; border-radius:9px; background:var(--bg-primary); color:var(--text-muted); font:750 .66rem var(--font); cursor:pointer; }.reminder-alarm-actions [data-reminder-open] { padding:0 9px; color:#d98608; background:rgba(245,158,11,.11); }.reminder-alarm-actions [data-reminder-close] { font-size:1rem; }
@keyframes reminderBell { 0%,100%{transform:rotate(0)} 20%{transform:rotate(10deg)} 40%{transform:rotate(-9deg)} 60%{transform:rotate(6deg)} 80%{transform:rotate(-4deg)} }
@media(max-width:520px){.reminder-alarm-layer{top:10px;right:10px;width:calc(100vw - 20px)}.reminder-alarm-copy>span{max-width:48vw}}
@media(prefers-reduced-motion:reduce){.reminder-alarm-toast{transition:none}.reminder-alarm-icon{animation:none}}

.topbar-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f9dff, #2b7fff);
    display: flex; align-items: center; justify-content: center;
    font-size: .83rem; font-weight: 800; color: white;
    cursor: pointer;
    position: relative;
    border: 2.5px solid var(--border-color);
    box-shadow:
        0 4px 12px rgba(79,157,255,.30),
        inset 0 1px 0 rgba(255,255,255,.26);
    transition: all var(--t2) var(--ease);
}
.topbar-avatar:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79,157,255,.40); }
.topbar-avatar.has-photo {
    background: none;
    padding: 0;
    /* Açılan profil menüsü avatarın dışına taşar; fotoğraf kendi border-radius
       kuralıyla yuvarlak kaldığından burada taşmayı gizlememek gerekir. */
    overflow: visible;
}
.topbar-avatar-img,
.user-avatar-img,
.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.topbar-avatar-dot {
    position: absolute;
    bottom: 0; right: 0;
    width: 11px; height: 11px;
    background: #4f9dff;
    border: 2.5px solid var(--bg-secondary);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(79,157,255,.60);
}

.page-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-color);
    border-radius: 100px;
    font-size: .83rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
    box-shadow: var(--clay-shadow-xs);
}
.page-indicator svg { color: var(--accent); }

.current-time {
    font-size: .80rem;
    color: var(--text-muted);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
    white-space: nowrap;
}

.content-area {
    padding: 26px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

/* Page header */
.page-header {
    margin-bottom: 24px;
}
.page-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -.025em;
    margin-bottom: 5px;
}
.page-header-title svg { color: var(--accent); }
.page-header-sub {
    font-size: .84rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(.93) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(52px) scale(.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(52px) scale(.95); }
}
@keyframes clayBounce {
    0%  { transform: scale(1); }
    40% { transform: scale(1.06); }
    70% { transform: scale(.97); }
    100%{ transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-4px); }
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS — Clay Style
═══════════════════════════════════════════════════════════════════ */
.card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--clay-shadow-sm);
    padding: 22px 24px;
    margin-bottom: 18px;
    transition: all var(--t2) var(--ease-out);
    animation: fadeIn var(--t3) var(--ease);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
    pointer-events: none;
}
.card:hover {
    box-shadow: var(--clay-shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-strong);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-title  { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; color: var(--text-primary); }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

/* Clay stat card */
.stat-card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    padding: 20px 22px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    box-shadow: var(--clay-shadow-sm);
    transition: all var(--t2) var(--ease);
    animation: fadeIn var(--t3) var(--ease);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
    pointer-events: none;
}
.stat-card:hover {
    box-shadow: var(--clay-shadow-md);
    transform: translateY(-4px);
    border-color: var(--border-strong);
    animation: clayBounce .4s var(--ease);
}

.stat-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: .67rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: .02em;
    box-shadow: var(--clay-shadow-xs);
}

.stat-card-icon {
    width: 46px; height: 46px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
    box-shadow: var(--clay-shadow-sm);
}

.stat-label {
    font-size: .69rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 7px;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -.04em;
    line-height: 1;
}
.stat-sub {
    font-size: .74rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
}

/* Badge color variants */
.badge-teal    { background: rgba(20,184,166,.14); color: #2dd4bf; box-shadow: 0 2px 6px rgba(20,184,166,.20); }
.badge-green   { background: rgba(0,214,143,.14);  color: #00d68f; box-shadow: 0 2px 6px rgba(0,214,143,.20); }
.badge-red     { background: rgba(255,107,138,.14); color: #ff6b8a; box-shadow: 0 2px 6px rgba(255,107,138,.20); }
.badge-orange  { background: rgba(255,179,71,.14);  color: #ffb347; box-shadow: 0 2px 6px rgba(255,179,71,.20); }
.badge-purple  { background: rgba(139,92,246,.16);  color: #a78bfa; box-shadow: 0 2px 6px rgba(139,92,246,.20); }
.badge-blue    { background: rgba(94,223,255,.14);  color: #5edfff; box-shadow: 0 2px 6px rgba(94,223,255,.20); }

/* Icon bg variants */
.icon-bg-teal   { background: rgba(20,184,166,.14); color: #2dd4bf; box-shadow: 0 4px 12px rgba(20,184,166,.25); }
.icon-bg-green  { background: rgba(0,214,143,.14);  color: #00d68f; box-shadow: 0 4px 12px rgba(0,214,143,.25); }
.icon-bg-red    { background: rgba(255,107,138,.14); color: #ff6b8a; box-shadow: 0 4px 12px rgba(255,107,138,.25); }
.icon-bg-orange { background: rgba(255,179,71,.14);  color: #ffb347; box-shadow: 0 4px 12px rgba(255,179,71,.25); }
.icon-bg-purple { background: rgba(139,92,246,.16);  color: #a78bfa; box-shadow: 0 4px 12px rgba(139,92,246,.25); }
.icon-bg-blue   { background: rgba(94,223,255,.14);  color: #5edfff; box-shadow: 0 4px 12px rgba(94,223,255,.25); }

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: var(--clay-shadow-xs);
}
.status-pending   { background: rgba(255,179,71,.12);  color: #ffb347; border: 1.5px solid rgba(255,179,71,.22); }
.status-completed { background: rgba(0,214,143,.12);   color: #00d68f; border: 1.5px solid rgba(0,214,143,.22); }
.status-cancelled { background: rgba(255,107,138,.12); color: #ff6b8a; border: 1.5px solid rgba(255,107,138,.22); }

/* ═══════════════════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════════════════ */
.order-table { width: 100%; border-collapse: collapse; }
.order-table th {
    text-align: left;
    padding: 11px 16px;
    border-bottom: 1.5px solid var(--border-color);
    color: var(--text-muted);
    font-size: .71rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
    background: var(--bg-primary);
}
.order-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: .88rem;
    color: var(--text-primary);
    vertical-align: middle;
    font-weight: 600;
}
.order-table tr { cursor: pointer; transition: all var(--t1) var(--ease); }
.order-table tr:hover td {
    background: var(--bg-hover);
}
.order-table tr:last-child td { border-bottom: none; }

.order-actions { display: flex; gap: 6px; }
.order-actions .btn { opacity: 0; transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease); }
.order-table tr:hover .order-actions .btn { opacity: 1; transform: translateY(-1px); }

.btn-action {
    padding: 6px 11px;
    font-size: .78rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--t1) var(--ease);
    box-shadow: var(--clay-shadow-xs);
}
.btn-action:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--clay-shadow-sm);
}
.btn-solve  {
    background: linear-gradient(135deg, #4f9dff, #2b7fff);
    color: #001433;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79,157,255,.30), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-solve:hover {
    background: linear-gradient(135deg, #6fb4ff, #4f9dff);
    box-shadow: 0 6px 18px rgba(79,157,255,.40), inset 0 1px 0 rgba(255,255,255,.26);
}
.btn-delete { color: var(--danger); border-color: transparent; background: transparent; box-shadow: none; }
.btn-delete:hover {
    background: rgba(255,107,138,.08);
    border-color: rgba(255,107,138,.22);
    box-shadow: 0 4px 12px rgba(255,107,138,.20);
}

/* ═══════════════════════════════════════════════════════════════════
   FORM CONTROLS
═══════════════════════════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="url"],
select,
textarea {
    font-family: var(--font);
    font-size: .89rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    padding: 9px 13px;
    outline: none;
    transition: all var(--t2) var(--ease);
    width: 100%;
    box-shadow: var(--clay-shadow-xs);
    font-weight: 600;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-muted), var(--clay-shadow-xs);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
select { cursor: pointer; }
textarea { resize: vertical; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════
   NOTES
═══════════════════════════════════════════════════════════════════ */
.notes-container {
    display: flex;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    height: calc(100vh - 120px);
    overflow: hidden;
    margin: 10px 26px 26px;
    box-shadow: var(--clay-shadow-md);
}

.notes-list-pane {
    width: 296px;
    border-right: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    flex-shrink: 0;
}
.pane-header {
    padding: 16px 18px;
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.note-search { padding: 11px 14px; border-bottom: 1.5px solid var(--border-color); }
.note-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-size: .86rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font);
    transition: all var(--t2) var(--ease);
    box-shadow: var(--clay-shadow-xs);
}
.note-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }

.notes-list { flex: 1; overflow-y: auto; }
.notes-list::-webkit-scrollbar { width: 3px; }
.notes-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.note-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--t1) var(--ease);
}
.note-item:hover { background: var(--bg-secondary); }
.note-item.active {
    background: var(--accent-surface);
    border-left: 4px solid var(--accent);
    padding-left: 14px;
    box-shadow: inset 0 0 12px rgba(0,214,143,.06);
}
.note-item-title { font-weight: 700; font-size: .90rem; margin-bottom: 3px; color: var(--text-primary); }
.note-item-meta  { font-size: .73rem; color: var(--text-muted); font-weight: 600; }

.note-editor-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.editor-toolbar {
    padding: 10px 20px;
    border-bottom: 1.5px solid var(--border-color);
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
    background: var(--bg-primary);
}
.toolbar-btn {
    padding: 6px 9px; background: none;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer; color: var(--text-muted);
    transition: all var(--t1) var(--ease);
    font-family: var(--font);
}
.toolbar-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--clay-shadow-xs);
    transform: translateY(-1px);
}
.toolbar-btn.active {
    background: var(--accent-surface);
    border-color: var(--accent-border);
    color: var(--accent);
    box-shadow: var(--clay-shadow-xs);
}

.editor-content-area {
    flex: 1; display: flex; flex-direction: column;
    padding: 24px 30px; overflow-y: auto;
}
.note-title-input {
    font-size: 1.7rem; font-weight: 900; border: none; outline: none;
    margin-bottom: 16px; width: 100%; background: transparent;
    color: var(--text-primary); letter-spacing: -.025em; font-family: var(--font);
}
.rich-editor {
    flex: 1; outline: none; font-size: .97rem; line-height: 1.75; color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   FOLDER GRID
═══════════════════════════════════════════════════════════════════ */
.folder-grid-pane { display: flex; flex-direction: column; padding: 24px; width: 100%; }
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.folder-card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    display: flex; align-items: center; gap: 15px;
    cursor: pointer;
    transition: all var(--t2) var(--ease);
    box-shadow: var(--clay-shadow-sm);
    animation: fadeIn var(--t3) var(--ease);
    text-decoration: none !important;
}
.folder-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--clay-shadow-md);
    transform: translateY(-3px);
}
.folder-card-icon {
    width: 44px; height: 44px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; color: white;
    flex-shrink: 0; font-size: 1.05rem;
    box-shadow: var(--clay-shadow-sm);
}
.folder-card-name { font-weight: 800; font-size: .92rem; color: var(--text-primary); }
.folder-card-count { font-size: .77rem; color: var(--text-muted); margin-top: 2px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   DIALOGS — Clay
═══════════════════════════════════════════════════════════════════ */
.dialog-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,30,.60);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn var(--t2) var(--ease);
}
.custom-dialog {
    background: var(--bg-secondary);
    width: 100%; max-width: 420px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--clay-shadow-xl);
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    animation: modalFadeIn var(--t3) var(--ease);
}
.dialog-body { padding: 30px 26px 20px; text-align: center; }
.dialog-icon {
    width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    box-shadow: var(--clay-shadow-sm);
}
.dialog-icon-warning { background: rgba(255,179,71,.14); color: var(--warning); }
.dialog-icon-danger  { background: rgba(255,107,138,.14); color: var(--danger); }
.dialog-icon-success { background: rgba(0,214,143,.14);  color: var(--success); }
.dialog-icon-info    { background: var(--accent-surface); color: var(--accent); }
.dialog-title   { font-size: 1.1rem; font-weight: 900; margin-bottom: 9px; letter-spacing: -.02em; }
.dialog-message { font-size: .90rem; color: var(--text-secondary); line-height: 1.55; font-weight: 600; }
.dialog-footer  { padding: 16px 26px 24px; display: flex; gap: 9px; justify-content: center; }
.dialog-footer .btn { min-width: 100px; }

/* ═══════════════════════════════════════════════════════════════════
   MODALS — Clay
═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,30,.60);
    backdrop-filter: blur(6px);
    z-index: 1500;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--clay-shadow-xl);
    width: 100%; max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn var(--t3) var(--ease);
    position: relative;
}
.modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #5e5fff, var(--accent));
    opacity: .6;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1.5px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: var(--bg-secondary); z-index: 1;
}
.modal-title { font-size: .97rem; font-weight: 800; color: var(--text-primary); }
.modal-close {
    width: 30px; height: 30px; border: 1.5px solid var(--border-color); background: var(--bg-elevated);
    cursor: pointer; color: var(--text-muted); border-radius: var(--radius-sm); font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t1) var(--ease);
    font-family: var(--font);
    box-shadow: var(--clay-shadow-xs);
}
.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: scale(1.08) rotate(90deg);
    box-shadow: var(--clay-shadow-sm);
}
.modal-body { padding: 22px 24px; }
.modal-footer { padding: 16px 24px 22px; display: flex; gap: 9px; justify-content: flex-end; border-top: 1.5px solid var(--border-color); }

/* ═══════════════════════════════════════════════════════════════════
   TOASTS — Clay
═══════════════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: 22px; right: 22px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 11px;
    pointer-events: none;
    width: 348px;
}
.toast {
    pointer-events: auto;
    border-radius: var(--radius-xl);
    box-shadow:
        0 12px 36px rgba(0,0,0,.36),
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -2px 0 rgba(0,0,0,.20);
    display: flex; align-items: flex-start; gap: 13px;
    padding: 16px 16px 16px 18px;
    animation: toastIn .30s cubic-bezier(.34,1.56,.64,1);
    width: 100%; box-sizing: border-box;
    color: #fff;
    font-family: var(--font);
}
.toast-success { background: linear-gradient(135deg, #00d68f, #00a06a); }
/* blue accent toast kept separate */
.toast-error   { background: linear-gradient(135deg, #ff6b8a, #cc1133); }
.toast-warning { background: linear-gradient(135deg, #ffb347, #ff8800); }
.toast-info    { background: linear-gradient(135deg, #5e5fff, #4433ee); }
.toast-icon-wrap {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.24);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,.20);
}
.toast-content { flex: 1; min-width: 0; }
.toast-title   { font-size: .90rem; font-weight: 800; margin-bottom: 2px; line-height: 1.3; }
.toast-msg     { font-size: .82rem; opacity: .90; line-height: 1.4; font-weight: 600; }
.toast-close   {
    background: transparent; border: none; color: rgba(255,255,255,.75);
    cursor: pointer; font-size: 1rem; line-height: 1; padding: 0;
    flex-shrink: 0; margin-top: 2px; font-family: var(--font);
    transition: all var(--t1) var(--ease);
}
.toast-close:hover { color: #fff; transform: scale(1.15) rotate(90deg); }

/* ═══════════════════════════════════════════════════════════════════
   TEMPLATE CUSTOMIZER
═══════════════════════════════════════════════════════════════════ */
.cz-trigger {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; background: linear-gradient(135deg, var(--accent), #2b7fff);
    color: #001433;
    border: none; border-radius: var(--radius) 0 0 var(--radius); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 1200;
    box-shadow: -4px 0 20px rgba(79,157,255,.40), inset 0 1px 0 rgba(255,255,255,.28);
    transition: all .22s var(--ease);
}
.cz-trigger:hover {
    width: 50px;
    box-shadow: -6px 0 28px rgba(79,157,255,.55), inset 0 1px 0 rgba(255,255,255,.32);
}
.cz-trigger svg { animation: czSpin 6s linear infinite; }
@keyframes czSpin { to { transform: rotate(360deg); } }

.cz-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 1299; display: none; backdrop-filter: blur(4px);
}
.cz-backdrop.open { display: block; }

.cz-panel {
    position: fixed; top: 0; right: -340px; width: 326px; height: 100vh;
    background: var(--bg-secondary); border-left: 1.5px solid var(--border-color);
    z-index: 1300; display: flex; flex-direction: column;
    transition: right .34s cubic-bezier(.22,.61,.36,1);
    box-shadow: -12px 0 48px rgba(0,0,0,.40);
}
.cz-panel.open { right: 0; }

.cz-head {
    padding: 18px 20px 14px; border-bottom: 1.5px solid var(--border-color);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 11px;
}
.cz-head-left { flex: 1; }
.cz-head-title { font-size: .97rem; font-weight: 800; color: var(--text-primary); }
.cz-head-sub   { font-size: .75rem; color: var(--text-muted); margin-top: 2px; font-weight: 600; }
.cz-head-btns  { display: flex; gap: 7px; flex-shrink: 0; }
.cz-icon-btn {
    width: 30px; height: 30px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color); background: var(--bg-elevated);
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .16s var(--ease);
    box-shadow: var(--clay-shadow-xs);
}
.cz-icon-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--clay-shadow-sm);
}

.cz-body { flex: 1; overflow-y: auto; padding: 18px 20px 26px; }
.cz-body::-webkit-scrollbar { width: 4px; }
.cz-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.cz-section-tag {
    display: inline-block; padding: 4px 12px;
    background: var(--accent-surface); color: var(--accent);
    border-radius: var(--radius); font-size: .72rem; font-weight: 800;
    margin-bottom: 15px; letter-spacing: .05em;
    box-shadow: var(--clay-shadow-xs);
}
.cz-group  { margin-bottom: 22px; }
.cz-glabel { font-size: .80rem; font-weight: 800; color: var(--text-secondary); margin-bottom: 11px; }
.cz-row    { display: flex; gap: 11px; flex-wrap: wrap; }

.cz-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.cz-thumb {
    border: 2px solid var(--border-color); border-radius: var(--radius);
    overflow: hidden; transition: all .16s var(--ease); background: var(--bg-primary);
    position: relative;
    box-shadow: var(--clay-shadow-xs);
}
.cz-opt.active .cz-thumb {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted), var(--clay-shadow-sm);
}
.cz-opt-lbl { font-size: .72rem; color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.cz-opt.active .cz-opt-lbl { color: var(--accent); font-weight: 800; }

/* Thumb sizes */
.cz-thumb-lg { width: 84px; height: 60px; }
.cz-thumb-sm { width: 74px; height: 54px; }
.cz-thumb-md { width: 78px; height: 57px; }

.cz-thumb-icon {
    width: 82px; height: 58px;
    display: flex; align-items: center; justify-content: center;
}

.czp { position: absolute; border-radius: 3px; }

/* ── Data-style effects ── */
[data-style="bordered"] .card,
[data-style="bordered"] .v4-panel,
[data-style="bordered"] .sd-card,
[data-style="bordered"] .sd-tbl-wrap,
[data-style="bordered"] .debt-table-card,
[data-style="bordered"] .v4-stat {
    border-width: 2.5px;
}

[data-style="semi-dark"] .sidebar {
    background: var(--sidebar-bg) !important;
    border-right-color: rgba(255,255,255,.07) !important;
}
[data-style="semi-dark"] .nav-item { color: rgba(255,255,255,.70) !important; }
[data-style="semi-dark"] .nav-item svg { color: rgba(255,255,255,.62) !important; }
[data-style="semi-dark"] .nav-item:hover { color: #fff !important; background: rgba(255,255,255,.08) !important; }
[data-style="semi-dark"] .nav-item.active { background: rgba(255,255,255,.18) !important; color: #fff !important; }
[data-style="semi-dark"] .sidebar-logo-sub { color: rgba(255,255,255,.5) !important; }
[data-style="semi-dark"] .nav-section-title { color: rgba(255,255,255,.46) !important; }

/* ── Navbar type ── */
[data-navbar="static"]  .top-bar { position: relative !important; top: auto !important; z-index: 1000 !important; }
[data-navbar="hidden"]  .top-bar { display: none !important; }

/* ── Content width ── */
[data-content="wide"] .content-area { max-width: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   TREND INDICATORS
═══════════════════════════════════════════════════════════════════ */
.trend-indicator {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .73rem; font-weight: 800; margin-top: 8px;
    padding: 3px 9px; border-radius: 6px;
    box-shadow: var(--clay-shadow-xs);
}
.trend-up      { color: #ff6b8a; background: rgba(255,107,138,.10); }
.trend-down    { color: #00d68f; background: rgba(0,214,143,.10); }
.trend-neutral { color: var(--text-muted); background: var(--bg-hover); }

/* ═══════════════════════════════════════════════════════════════════
   COMMAND PALETTE
═══════════════════════════════════════════════════════════════════ */
.command-palette-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,30,.65);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: none;
    align-items: flex-start; justify-content: center;
    padding-top: 10vh;
    animation: fadeIn var(--t2) var(--ease);
}
.command-palette {
    width: 100%; max-width: 580px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-2xl);
    box-shadow: var(--clay-shadow-xl);
    overflow: hidden;
    animation: modalFadeIn var(--t2) var(--ease);
}
.cp-search-wrapper {
    display: flex; align-items: center;
    padding: 16px 18px;
    border-bottom: 1.5px solid var(--border-color);
    gap: 12px;
}
.cp-search-wrapper svg { color: var(--text-muted); flex-shrink: 0; }
.cp-search-wrapper input {
    flex: 1; border: none; background: transparent;
    font-size: .97rem; color: var(--text-primary); outline: none;
    font-family: var(--font); font-weight: 700;
}
.cp-results { max-height: 368px; overflow-y: auto; padding: 7px; }
.cp-results::-webkit-scrollbar { width: 3px; }
.cp-results::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.cp-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 13px; border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--t1) var(--ease);
    color: var(--text-secondary);
}
.cp-item:hover, .cp-item.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    transform: translateX(3px);
    box-shadow: var(--clay-shadow-xs);
}
.cp-item-icon {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: .97rem;
    flex-shrink: 0;
    box-shadow: var(--clay-shadow-xs);
}
.cp-item.active .cp-item-icon { background: var(--accent-surface); box-shadow: 0 0 0 2px var(--accent-border); }
.cp-item-info { display: flex; flex-direction: column; }
.cp-item-title { font-size: .90rem; font-weight: 700; }
.cp-item-desc  { font-size: .74rem; color: var(--text-muted); font-weight: 600; }

.cp-footer {
    padding: 10px 18px;
    background: var(--bg-primary);
    border-top: 1.5px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    font-size: .73rem; color: var(--text-muted); font-weight: 600;
}
.cp-shortcuts { display: flex; gap: 11px; }
.cp-kbd {
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-color);
    padding: 2px 7px; border-radius: var(--radius-sm);
    font-family: monospace; font-weight: 800; font-size: .70rem;
    color: var(--text-secondary);
    box-shadow: var(--clay-shadow-xs);
}
.cp-group-hdr { font-size:.63rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);padding:10px 14px 4px;user-select:none; }
.cp-hint { text-align:center;font-size:.76rem;color:var(--text-muted);padding:10px 16px 14px;border-top:1px solid var(--border-color);margin-top:6px; }
.cp-all-pages { border:0; padding:0; background:transparent; color:var(--accent); font:800 inherit; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.cp-all-pages:hover, .cp-all-pages:focus-visible { color:var(--text-primary); outline:none; }
.cp-empty { text-align:center;padding:36px 16px;color:var(--text-muted); }
.cp-badge { font-size:.58rem;font-weight:800;background:var(--accent-surface);color:var(--accent);padding:2px 8px;border-radius:20px;margin-left:auto;flex-shrink:0;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap; }
.cp-item { display:flex;align-items:center; }

/* ═══════════════════════════════════════════════════════════════════
   CALENDAR
═══════════════════════════════════════════════════════════════════ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    background: var(--border-color);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--clay-shadow-sm);
}
.cal-day-header {
    background: var(--bg-primary);
    padding: 9px 4px;
    text-align: center;
    font-size: .71rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.cal-day {
    background: var(--bg-secondary);
    min-height: 84px;
    padding: 7px;
    cursor: pointer;
    transition: all var(--t1) var(--ease);
}
.cal-day:hover { background: var(--bg-hover); }
.cal-day.today { background: var(--accent-surface); }
.cal-day.other-month { background: var(--bg-primary); opacity: .55; }
.cal-day-num {
    font-size: .80rem; font-weight: 800; color: var(--text-muted);
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.cal-day.today .cal-day-num {
    background: linear-gradient(135deg, #4f9dff, #2b7fff);
    color: #001433;
    box-shadow: 0 2px 8px rgba(79,157,255,.40);
}
.cal-event {
    font-size: .70rem; font-weight: 700; padding: 2px 6px; border-radius: 4px;
    margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    cursor: pointer;
    box-shadow: var(--clay-shadow-xs);
}

/* ═══════════════════════════════════════════════════════════════════
   CALCULATOR
═══════════════════════════════════════════════════════════════════ */
.calculator-wrapper { max-width: 430px; margin: 0 auto; }
.calculator {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--clay-shadow-lg);
}
.calc-display {
    background: var(--bg-primary);
    padding: 22px 20px 16px;
    border-bottom: 1.5px solid var(--border-color);
}
.calc-expression {
    font-size: .84rem;
    color: var(--text-muted);
    text-align: right;
    min-height: 20px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}
.calc-result {
    font-size: 2.4rem;
    font-weight: 900;
    text-align: right;
    color: var(--text-primary);
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calc-buttons { padding: 12px; display: grid; gap: 7px; }
.calc-btn {
    padding: 15px 8px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--calc-btn-bg);
    color: var(--text-primary);
    font-size: .97rem;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--t1) var(--ease);
    box-shadow: var(--clay-shadow-xs);
}
.calc-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--clay-shadow-sm);
}
.calc-btn:active { transform: translateY(1px); box-shadow: var(--clay-shadow-xs); }
.calc-btn-func { background: var(--calc-btn-func-bg); color: var(--accent); font-weight: 900; }
.calc-btn-op   { background: var(--calc-btn-func-bg); color: var(--text-secondary); font-weight: 900; }
.calc-btn-eq   {
    background: linear-gradient(135deg, #4f9dff, #2b7fff);
    color: #001433; border-color: transparent;
    box-shadow: 0 4px 14px rgba(79,157,255,.35), inset 0 1px 0 rgba(255,255,255,.28);
}
.calc-btn-eq:hover {
    background: linear-gradient(135deg, #6fb4ff, #4f9dff);
    box-shadow: 0 8px 22px rgba(79,157,255,.45), inset 0 1px 0 rgba(255,255,255,.32);
}
.calc-btn-clear { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════════
   PRICE MONITOR
═══════════════════════════════════════════════════════════════════ */
.monitor-url-card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: var(--clay-shadow-sm);
    transition: all var(--t2) var(--ease);
}
.monitor-url-card:hover {
    box-shadow: var(--clay-shadow-md);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.monitor-card-header { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.monitor-card-name { font-weight: 800; font-size: .92rem; color: var(--text-primary); }
.monitor-card-url  { font-size: .76rem; color: var(--text-muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 400px; font-weight: 600; }
.monitor-price-row { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.monitor-price-item { display: flex; flex-direction: column; gap: 2px; }
.monitor-price-label { font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.monitor-price-value { font-size: .97rem; font-weight: 900; color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════════════
   AI MARKETING
═══════════════════════════════════════════════════════════════════ */
.ai-chat-area {
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 18px;
    min-height: 310px;
    max-height: 490px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 13px;
    box-shadow: var(--clay-shadow-sm);
}
.ai-chat-area::-webkit-scrollbar { width: 4px; }
.ai-chat-area::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.ai-msg { display: flex; gap: 11px; animation: fadeIn var(--t2) var(--ease); }
.ai-msg-user { flex-direction: row-reverse; }
.ai-msg-bubble {
    max-width: 70%; padding: 11px 16px; border-radius: var(--radius-xl);
    font-size: .89rem; line-height: 1.58; font-weight: 600;
    box-shadow: var(--clay-shadow-sm);
}
.ai-msg-user .ai-msg-bubble {
    background: linear-gradient(135deg, #4f9dff, #2b7fff);
    color: #001433;
    border-radius: var(--radius-xl) var(--radius-xl) var(--radius-sm) var(--radius-xl);
    box-shadow: 0 4px 14px rgba(79,157,255,.30), inset 0 1px 0 rgba(255,255,255,.24);
}
.ai-msg-ai .ai-msg-bubble {
    background: var(--bg-secondary); color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) var(--radius-sm);
}
.ai-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .77rem; font-weight: 800;
    box-shadow: var(--clay-shadow-sm);
}
.ai-avatar-bot { background: var(--accent-surface); color: var(--accent); border: 1.5px solid var(--accent-border); }
.ai-avatar-user { background: var(--bg-elevated); color: var(--text-muted); border: 1.5px solid var(--border-color); }

/* ═══════════════════════════════════════════════════════════════════
   FINANCE PAGE
═══════════════════════════════════════════════════════════════════ */
.fin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.fin-sum-card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 18px 20px;
    box-shadow: var(--clay-shadow-sm);
    transition: all var(--t2) var(--ease);
    position: relative;
    overflow: hidden;
}
.fin-sum-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
    pointer-events: none;
}
.fin-sum-card:hover { box-shadow: var(--clay-shadow-md); transform: translateY(-3px); }
.fin-sum-label {
    font-size: .69rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .09em; color: var(--text-muted); margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.fin-sum-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px currentColor; }
.fin-sum-value { font-size: 1.5rem; font-weight: 900; letter-spacing: -.025em; line-height: 1; }
.fin-sum-sub   { font-size: .73rem; color: var(--text-muted); margin-top: 5px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════════════ */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mt-4   { margin-top: 16px; }
.mb-4   { margin-bottom: 16px; }
.text-muted   { color: var(--text-muted); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-sm      { font-size: .84rem; }
.text-xs      { font-size: .74rem; }
.font-bold    { font-weight: 700; }
.w-full       { width: 100%; }
.hidden       { display: none !important; }

/* Badge */
.badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 9px; border-radius: 20px;
    font-size: .70rem; font-weight: 800; letter-spacing: .02em;
    box-shadow: var(--clay-shadow-xs);
}
.badge-green-soft  { background: rgba(0,214,143,.10);  color: #00d68f; border: 1.5px solid rgba(0,214,143,.20); }
.badge-red-soft    { background: rgba(255,107,138,.10); color: #ff6b8a; border: 1.5px solid rgba(255,107,138,.20); }
.badge-yellow-soft { background: rgba(255,179,71,.10);  color: #ffb347; border: 1.5px solid rgba(255,179,71,.20); }
.badge-purple-soft { background: rgba(139,92,246,.10);  color: #a78bfa; border: 1.5px solid rgba(139,92,246,.20); }
.badge-gray-soft   { background: var(--bg-hover); color: var(--text-muted); border: 1.5px solid var(--border-color); }

/* Divider */
.divider {
    height: 1.5px; background: var(--border-color);
    margin: 18px 0; border: none; border-radius: 2px;
}

/* Empty state */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px; padding: 48px 22px;
    color: var(--text-muted);
}
.empty-state svg { opacity: .35; animation: float 3s ease-in-out infinite; }
.empty-state-title { font-size: .94rem; font-weight: 800; color: var(--text-secondary); }
.empty-state-desc  { font-size: .84rem; text-align: center; max-width: 290px; font-weight: 600; }

/* Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border-color) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: var(--radius);
}
@keyframes skeleton-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .fin-summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        width: min(var(--sidebar-width), calc(100vw - 44px));
        transform: translateX(-100%);
        transition: transform var(--t3) var(--ease);
        z-index: 1001;
        box-shadow: 12px 0 38px rgba(2,8,23,.35);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        background: rgba(2,8,23,.58);
        transition: opacity var(--t3) var(--ease);
        -webkit-tap-highlight-color: transparent;
    }
    .sidebar-overlay.is-visible { opacity: 1; pointer-events: auto; }
    body.mobile-menu-open { overflow: hidden; }
    .mobile-menu-toggle { display: flex !important; }
    .sidebar-collapse-toggle { display: none; }
    .sidebar-mobile-close {
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--sidebar-border);
        border-radius: var(--radius-sm);
        color: var(--sidebar-text);
        background: rgba(255,255,255,.06);
        cursor: pointer;
        flex: 0 0 auto;
    }
    .top-bar { padding: 0 14px; gap: 8px; }
    .top-bar-brand { max-width: min(43vw, 190px); }
    .top-bar-right { gap: 5px; }
    .main-content { margin-left: 0; }
    body.sidebar-collapsed .sidebar,
    body.sidebar-collapsed.sidebar-hover-open .sidebar { width: var(--sidebar-width); }
    body.sidebar-collapsed .main-content { margin-left: 0; }
    .content-area { padding: 14px; }
    .notes-container { margin: 8px 14px 14px; }
    .notes-list-pane { display: none; }
    .notes-list-pane.active {
        display: flex; position: absolute;
        top: 0; left: 0; width: 100%; height: 100%; z-index: 20;
    }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .fin-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .top-bar-search { display: none; }
}

@media (min-width: 769px) {
    .sidebar-mobile-close { display: none; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .fin-summary-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 30px 22px; }
}

/* ═══════════════════════════════════════════════════════════════════
   LORDICON — Animated icons (hover triggers)
═══════════════════════════════════════════════════════════════════ */
lord-icon.lord-anim-icon,
lord-icon.nav-lord-icon,
lord-icon.btn-lord-icon,
lord-icon.topbar-lord-icon,
lord-icon.fab-lord-icon {
    display: inline-flex;
    flex-shrink: 0;
    vertical-align: middle;
    pointer-events: none;
}

.nav-item lord-icon.nav-lord-icon {
    width: 22px;
    height: 22px;
    margin-right: 0;
}

.nav-item:hover lord-icon.nav-lord-icon {
    transform: scale(1.08);
    transition: transform var(--t2) var(--ease);
}

.nav-item.active lord-icon.nav-lord-icon {
    filter: drop-shadow(0 0 6px rgba(79,157,255,.45));
}

.btn lord-icon.btn-lord-icon,
.hizli-btn lord-icon.btn-lord-icon {
    width: 18px;
    height: 18px;
}

.topbar-icon-btn lord-icon.topbar-lord-icon {
    width: 20px;
    height: 20px;
}

.ai-fab lord-icon.fab-lord-icon {
    width: 24px;
    height: 24px;
}

.btn:hover lord-icon,
.hizli-btn:hover lord-icon,
.topbar-icon-btn:hover lord-icon {
    transform: scale(1.12);
    transition: transform var(--t1) var(--ease);
}

.cz-trigger lord-icon.topbar-lord-icon {
    width: 20px;
    height: 20px;
}
