@charset "UTF-8";
/* =========================================================================
   ZYRONSAN · Ortak Ticaret Paneli — Design System v3
   Premium · Minimalist · Kurumsal · UTF-8
   ========================================================================= */

/* ──────────────────── 1. DESIGN TOKENS ──────────────────── */
:root {
    /* ── Renk Paleti: Koyu Tema (Varsayılan) ── */
    --bg:            #0c0e14;
    --bg-2:          #111318;
    --bg-3:          #151820;
    --panel:         #181b24;
    --panel-2:       #1c2029;
    --panel-hover:   #21252f;
    --panel-active:  #262b37;
    --border:        #252a36;
    --border-soft:   #1e222d;
    --border-hover:  #353b4a;

    --text:          #e8ecf4;
    --text-soft:     #9ca3b4;
    --text-mute:     #5c6478;
    --text-faint:    #3d4555;

    /* ── Marka Renkleri ── */
    --brand:         #7c6ef0;
    --brand-hover:   #8d81f5;
    --brand-soft:    rgba(124,110,240,0.12);
    --brand-muted:   rgba(124,110,240,0.06);

    /* ── Durum Renkleri ── */
    --success:       #34d399;
    --success-soft:  rgba(52,211,153,0.12);
    --warning:       #f0b429;
    --warning-soft:  rgba(240,180,41,0.10);
    --danger:        #f06565;
    --danger-soft:   rgba(240,101,101,0.10);
    --info:          #60a5fa;
    --info-soft:     rgba(96,165,250,0.10);

    /* ── Ortak Renkleri ── */
    --zyron:         #a78bfa;
    --zyron-soft:    rgba(167,139,250,0.12);
    --bayraksan:     #f59e42;
    --bayraksan-soft:rgba(245,158,66,0.12);

    /* ── Tipografi ── */
    --font:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono:          "JetBrains Mono", "Cascadia Code", "Fira Code", monospace;

    /* ── Boşluk ── */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;  --sp-10: 40px;

    /* ── Köşe Yuvarlama ── */
    --radius-xs:  6px;
    --radius-sm:  8px;
    --radius:     12px;
    --radius-lg:  16px;
    --radius-xl:  20px;
    --radius-full:999px;

    /* ── Gölgeler ── */
    --shadow-xs:   0 1px 2px rgba(0,0,0,0.15);
    --shadow-sm:   0 2px 6px rgba(0,0,0,0.18);
    --shadow:      0 4px 16px rgba(0,0,0,0.22);
    --shadow-lg:   0 12px 40px rgba(0,0,0,0.30);
    --shadow-xl:   0 24px 60px rgba(0,0,0,0.40);

    /* ── Geçişler ── */
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast:    0.12s;
    --dur:         0.18s;
    --dur-slow:    0.28s;

    /* ── Sidebar ── */
    --sidebar-w:   252px;
}

/* ── Açık Tema ── */
[data-theme="light"] {
    --bg:            #f4f6fa;
    --bg-2:          #edf0f6;
    --bg-3:          #e6eaf2;
    --panel:         #ffffff;
    --panel-2:       #fafbfd;
    --panel-hover:   #f2f4f9;
    --panel-active:  #e9ecf3;
    --border:        #dfe3ed;
    --border-soft:   #eaecf4;
    --border-hover:  #c9cdd9;

    --text:          #111827;
    --text-soft:     #4b5563;
    --text-mute:     #9ca3af;
    --text-faint:    #c4c9d4;

    --brand-soft:    rgba(124,110,240,0.08);
    --brand-muted:   rgba(124,110,240,0.04);
    --success-soft:  rgba(16,185,129,0.08);
    --warning-soft:  rgba(240,180,41,0.08);
    --danger-soft:   rgba(240,101,101,0.08);
    --info-soft:     rgba(96,165,250,0.08);
    --zyron-soft:    rgba(167,139,250,0.08);
    --bayraksan-soft:rgba(245,158,66,0.08);

    --shadow-xs:   0 1px 2px rgba(15,23,42,0.04);
    --shadow-sm:   0 2px 6px rgba(15,23,42,0.06);
    --shadow:      0 4px 16px rgba(15,23,42,0.08);
    --shadow-lg:   0 12px 40px rgba(15,23,42,0.10);
    --shadow-xl:   0 24px 60px rgba(15,23,42,0.14);
}

/* ── Firma Teması: Zyron Ajans (kırmızı) ── */
[data-partner="zyron"] {
    --brand:         #e53e3e;
    --brand-hover:   #f05252;
    --brand-soft:    rgba(229,62,62,0.12);
    --brand-muted:   rgba(229,62,62,0.06);
}
[data-partner="zyron"][data-theme="light"] {
    --brand-soft:    rgba(229,62,62,0.08);
    --brand-muted:   rgba(229,62,62,0.04);
}

/* ── Firma Teması: Bayraksan Tekstil (turuncu) ── */
[data-partner="bayraksan"] {
    --brand:         #e67e22;
    --brand-hover:   #f09030;
    --brand-soft:    rgba(230,126,34,0.12);
    --brand-muted:   rgba(230,126,34,0.06);
}
[data-partner="bayraksan"][data-theme="light"] {
    --brand-soft:    rgba(230,126,34,0.08);
    --brand-muted:   rgba(230,126,34,0.04);
}


/* ──────────────────── 2. RESET & BASE ──────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
    height: 100%;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02","cv03","cv04","cv11";
}

.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
img,svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul,ol { list-style: none; }


/* ──────────────────── 3. GİRİŞ EKRANI ──────────────────── */
.auth-screen {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: var(--sp-6);
    background:
        radial-gradient(ellipse 800px 400px at 30% 20%, rgba(124,110,240,0.08), transparent),
        radial-gradient(ellipse 600px 300px at 70% 80%, rgba(167,139,250,0.06), transparent),
        var(--bg);
}
.auth-card {
    width: 420px; max-width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
}
.auth-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.brand-mark {
    width: 44px; height: 44px; border-radius: var(--radius);
    background: linear-gradient(135deg, #7c6ef0 0%, #a78bfa 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(124,110,240,0.30);
    flex-shrink: 0;
}
.brand-mark.sm { width: 34px; height: 34px; font-size: 12px; border-radius: var(--radius-sm); }
.brand-title { font-weight: 700; font-size: 17px; letter-spacing: 0.6px; }
.brand-title.sm { font-size: 13px; }
.brand-sub { font-size: 11px; color: var(--text-mute); letter-spacing: 1.2px; text-transform: uppercase; margin-top: 1px; }
.brand-sub.sm { font-size: 9px; letter-spacing: 1px; }

.auth-form label, .form label {
    display: block; margin-bottom: var(--sp-4); font-size: 12px;
    color: var(--text-soft); font-weight: 500; letter-spacing: 0.01em;
}
.auth-form input, .form input, .form select, .form textarea {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-top: 5px;
    outline: none;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    font-family: var(--font);
    line-height: 1.4;
}
[data-theme="light"] .auth-form input,
[data-theme="light"] .form input,
[data-theme="light"] .form select,
[data-theme="light"] .form textarea {
    background: #fff;
}
.auth-form input:focus, .form input:focus, .form select:focus, .form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.form input[readonly], .form input:disabled, .form select:disabled {
    opacity: 0.55; cursor: not-allowed;
}
.form input[type="color"] { height: 42px; padding: 4px 6px; cursor: pointer; }
.form textarea { min-height: 80px; resize: vertical; }

.auth-hint {
    margin-top: 24px; font-size: 12px; color: var(--text-soft); text-align: center;
    line-height: 1.8; padding: 14px; background: var(--bg-2); border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
}
.auth-hint code {
    background: var(--panel-hover); padding: 2px 7px; border-radius: 4px;
    font-family: var(--mono); font-size: 11px;
}
.form-error { color: var(--danger); font-size: 12px; margin-top: 10px; min-height: 16px; font-weight: 500; }


/* ──────────────────── 4. LAYOUT ──────────────────── */
#app-view {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    background: var(--panel);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: var(--sp-5) var(--sp-3);
    position: sticky; top: 0;
    height: 100vh;
    z-index: 30;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-brand {
    display: flex; gap: 11px; align-items: center;
    padding: var(--sp-1) var(--sp-3) var(--sp-5) var(--sp-3);
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
}
.sidebar-section-label {
    font-size: 10px; color: var(--text-mute); text-transform: uppercase;
    letter-spacing: 1.3px; padding: 20px 12px 6px; font-weight: 600;
    flex-shrink: 0;
}
.sidebar-nav {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1; overflow-y: auto; overflow-x: hidden;
    margin-top: var(--sp-1);
    padding-right: 2px;
}
.sidebar-nav a {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: all var(--dur-fast) var(--ease);
    position: relative;
    white-space: nowrap;
}
.sidebar-nav a:hover { background: var(--panel-hover); color: var(--text); }
.sidebar-nav a.active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}
.sidebar-nav a.active::before {
    content: ''; position: absolute; left: -12px; top: 6px; bottom: 6px;
    width: 3px; background: var(--brand); border-radius: 0 3px 3px 0;
}
.sidebar-nav .nav-icon {
    width: 20px; height: 20px; display: inline-flex;
    align-items: center; justify-content: center;
    flex-shrink: 0; opacity: 0.7;
}
.sidebar-nav a.active .nav-icon { opacity: 1; }
.sidebar-nav .nav-icon svg { width: 18px; height: 18px; }
.sidebar-footer {
    border-top: 1px solid var(--border-soft);
    padding-top: var(--sp-4);
    flex-shrink: 0;
}
.user-chip {
    padding: 10px 12px; background: var(--bg-2); border-radius: var(--radius-sm);
    font-size: 12px; margin-bottom: var(--sp-2);
    display: flex; flex-direction: column; gap: 2px;
    border: 1px solid var(--border-soft);
}
.user-chip .role { color: var(--text-mute); font-size: 11px; }

/* ── Main Content ── */
.main {
    display: flex; flex-direction: column; min-width: 0;
}
.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 32px 16px;
    position: sticky; top: 0; z-index: 20;
    background: rgba(12,14,20,0.8);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
}
[data-theme="light"] .topbar { background: rgba(244,246,250,0.85); }
.topbar h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.page-sub { font-size: 13px; color: var(--text-mute); margin-top: 2px; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.page-root { padding: 24px 32px 80px; max-width: 1440px; }


/* ──────────────────── 5. BUTONLAR ──────────────────── */
.btn {
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
    font-family: var(--font);
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    line-height: 1.4;
    position: relative;
}
.btn:hover { background: var(--panel-hover); border-color: var(--border-hover); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn.loading {
    opacity: 0.55; pointer-events: none;
}

.btn-primary {
    background: var(--brand); border-color: transparent; color: #fff;
    box-shadow: 0 2px 8px rgba(124,110,240,0.25);
}
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 4px 14px rgba(124,110,240,0.35); }
.btn-secondary {
    background: var(--brand-soft); border-color: rgba(124,110,240,0.2); color: var(--brand);
}
.btn-secondary:hover { background: rgba(124,110,240,0.18); }
.btn-danger  { background: var(--danger); border-color: transparent; color: #fff; }
.btn-danger:hover { background: #e54545; }
.btn-success { background: var(--success); border-color: transparent; color: #fff; }
.btn-success:hover { background: #2bc48a; }
.btn-warn    { background: var(--warning); border-color: transparent; color: #111; font-weight: 600; }
.btn-ghost   { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--panel-hover); }

.btn-sm    { padding: 5px 10px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-lg    { padding: 11px 22px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon  { padding: 7px; aspect-ratio: 1; justify-content: center; }
.btn-icon.sm { padding: 4px; }

/* Loading spinner */
.btn.loading::after {
    content: ''; width: 14px; height: 14px;
    border: 2px solid transparent; border-top-color: currentColor; border-right-color: currentColor;
    border-radius: 50%; animation: spin 0.5s linear infinite;
    margin-left: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ──────────────────── 6. GRID ──────────────────── */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }


/* ──────────────────── 7. KPI / STAT KARTLARI ──────────────────── */
.kpi {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--dur) var(--ease);
}
.kpi:hover { box-shadow: var(--shadow-sm); }
.kpi .label {
    color: var(--text-mute); font-size: 11px;
    text-transform: uppercase; letter-spacing: 1px;
    font-weight: 600;
}
.kpi .value {
    font-size: 24px; font-weight: 700; margin-top: 8px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.kpi .sub { color: var(--text-mute); font-size: 12px; margin-top: 4px; font-weight: 400; }

/* Accent stripe */
.kpi::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--border); opacity: 0;
}
.kpi.accent-primary::before { background: var(--brand); opacity: 1; }
.kpi.accent-success::before { background: var(--success); opacity: 1; }
.kpi.accent-warn::before    { background: var(--warning); opacity: 1; }
.kpi.accent-danger::before  { background: var(--danger); opacity: 1; }
.kpi.accent-info::before    { background: var(--info); opacity: 1; }

/* İçerideki detay satırları */
.detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 13px;
}
.detail-row + .detail-row { border-top: 1px solid var(--border-soft); }
.detail-row .label { color: var(--text-soft); font-weight: 400; }
.detail-row .value { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Divider in cards */
.kpi-divider {
    height: 1px; background: var(--border-soft);
    margin: var(--sp-3) 0;
}


/* ──────────────────── 8. SECTION KARTLARI ──────────────────── */
.section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-top: var(--sp-5);
}
.section:first-child, .section.mt-0 { margin-top: 0; }
.section h2 { font-size: 15px; font-weight: 600; color: var(--text); }
.section .section-sub { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: var(--sp-5); gap: var(--sp-3); flex-wrap: wrap;
}
.section-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }


/* ──────────────────── 9. TABLOLAR ──────────────────── */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
}
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td {
    padding: 11px 14px; text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.table tbody tr:last-child td { border-bottom: none; }
.table th {
    font-weight: 600; color: var(--text-mute); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.8px;
    background: var(--bg-2);
    position: sticky; top: 0; z-index: 1;
    white-space: nowrap;
}
.table tbody tr { transition: background var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--panel-hover); }
.table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}
.table .muted { color: var(--text-mute); }
.table .mono  { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.table .actions-cell { white-space: nowrap; text-align: right; }
.table .actions-cell .btn + .btn { margin-left: var(--sp-1); }

/* Zebra stripes (optional) */
.table-striped tbody tr:nth-child(even) { background: var(--bg-2); }
.table-striped tbody tr:nth-child(even):hover { background: var(--panel-hover); }


/* ──────────────────── 10. FORMLAR ──────────────────── */
.form .row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.form .row-3 { grid-template-columns: repeat(3, 1fr); }
.form .actions {
    display: flex; gap: var(--sp-3); justify-content: flex-end;
    margin-top: var(--sp-5); padding-top: var(--sp-4);
    border-top: 1px solid var(--border-soft);
}
.form .form-section {
    padding: var(--sp-4); background: var(--bg-2);
    border-radius: var(--radius-sm); margin: var(--sp-3) 0;
    border: 1px solid var(--border-soft);
}
.form .form-section-title {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--text-mute);
    margin-bottom: var(--sp-3);
}
/* Required indicator */
.form label.required::after {
    content: ' *'; color: var(--danger); font-weight: 600;
}
/* Validation */
.form input.error, .form select.error { border-color: var(--danger); }
.form .field-error { font-size: 11px; color: var(--danger); margin-top: 3px; }
.form .field-hint { font-size: 11px; color: var(--text-mute); margin-top: 3px; }


/* ──────────────────── 11. ROZETLER ──────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    background: var(--panel-hover); color: var(--text-soft);
    border-radius: var(--radius-full); font-size: 11px; font-weight: 600;
    white-space: nowrap; line-height: 1.4;
}
.badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; opacity: 0.7; flex-shrink: 0;
}
.badge-no-dot::before { display: none; }

.badge.success  { background: var(--success-soft); color: var(--success); }
.badge.warn     { background: var(--warning-soft); color: var(--warning); }
.badge.danger   { background: var(--danger-soft);  color: var(--danger); }
.badge.info     { background: var(--info-soft);    color: var(--info); }
.badge.primary  { background: var(--brand-soft);   color: var(--brand); }
.badge.zyron    { background: var(--zyron-soft);   color: var(--zyron); }
.badge.bayraksan{ background: var(--bayraksan-soft);color: var(--bayraksan); }
.badge.neutral  { background: var(--panel-hover);  color: var(--text-mute); }

.badge-lg { padding: 5px 14px; font-size: 12px; }
.badge-sm { padding: 2px 7px; font-size: 10px; }


/* ──────────────────── 12. MODAL ──────────────────── */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(6,8,12,0.70);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 100; padding: var(--sp-5);
    animation: fadeIn var(--dur) var(--ease);
}
[data-theme="light"] .modal-backdrop { background: rgba(15,23,42,0.35); }

.modal {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius-lg); width: 680px; max-width: 96vw;
    max-height: 90vh; overflow-y: auto; overflow-x: hidden;
    padding: 28px;
    box-shadow: var(--shadow-xl);
    animation: slideUp var(--dur-slow) var(--ease);
    position: relative;
}
.modal h3 {
    font-size: 17px; font-weight: 700;
    padding-bottom: var(--sp-4); margin-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border-soft);
    padding-right: 32px;
}
.modal-close {
    position: absolute; top: 18px; right: 18px;
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: transparent; border: none; color: var(--text-mute);
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--dur-fast) var(--ease);
    line-height: 1;
}
.modal-close:hover { background: var(--panel-hover); color: var(--text); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Closing animation */
.modal-backdrop.closing { opacity: 0; transition: opacity var(--dur) var(--ease); }
.modal-backdrop.closing .modal { transform: translateY(8px); opacity: 0; transition: all var(--dur) var(--ease); }


/* ──────────────────── 13. DRAWER (YAN PANEL) ──────────────────── */
.drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(6,8,12,0.55);
    backdrop-filter: blur(4px);
    z-index: 100;
    animation: fadeIn var(--dur) var(--ease);
}
[data-theme="light"] .drawer-backdrop { background: rgba(15,23,42,0.25); }
.drawer {
    position: fixed; top: 0; right: 0;
    width: 520px; max-width: 92vw; height: 100vh;
    background: var(--panel);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    z-index: 101;
    display: flex; flex-direction: column;
    animation: slideInFromRight var(--dur-slow) var(--ease);
}
.drawer-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-soft);
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.drawer-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.drawer-body { padding: 24px; flex: 1; overflow-y: auto; }
.drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-soft);
    display: flex; gap: var(--sp-3); justify-content: flex-end;
    flex-shrink: 0;
}
@keyframes slideInFromRight { from { transform: translateX(100%); } to { transform: translateX(0); } }


/* ──────────────────── 14. TOAST ──────────────────── */
.toast-root {
    position: fixed; right: 20px; bottom: 20px;
    display: flex; flex-direction: column-reverse; gap: var(--sp-2); z-index: 200;
    pointer-events: none;
}
.toast {
    background: var(--panel); border: 1px solid var(--border);
    padding: 12px 16px 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500;
    box-shadow: var(--shadow);
    min-width: 280px; max-width: 420px;
    animation: slideInRight var(--dur-slow) var(--ease);
    display: flex; align-items: center; gap: 10px;
    pointer-events: all; cursor: pointer;
}
.toast-icon { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.toast.success { border-left: 3px solid var(--success); }
.toast.success .toast-icon { background: var(--success-soft); color: var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.error .toast-icon { background: var(--danger-soft); color: var(--danger); }
.toast.info    { border-left: 3px solid var(--info); }
.toast.info .toast-icon { background: var(--info-soft); color: var(--info); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.warning .toast-icon { background: var(--warning-soft); color: var(--warning); }

@keyframes slideInRight { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }


/* ──────────────────── 15. ACTION MENU (DROPDOWN) ──────────────────── */
.action-menu { position: relative; display: inline-block; }
.action-trigger {
    width: 30px; height: 30px; border-radius: var(--radius-xs);
    background: transparent; border: 1px solid transparent;
    color: var(--text-mute); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; letter-spacing: 2px;
    transition: all var(--dur-fast) var(--ease);
}
.action-trigger:hover { background: var(--panel-hover); border-color: var(--border); color: var(--text-soft); }
.action-dropdown {
    position: absolute; right: 0; top: calc(100% + 4px);
    min-width: 170px;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    display: none; padding: 4px;
    animation: fadeIn var(--dur-fast) var(--ease);
}
.action-menu.open .action-dropdown { display: block; }
.action-dropdown button {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 8px 12px;
    background: none; border: none; color: var(--text);
    font-size: 13px; font-family: var(--font);
    border-radius: var(--radius-xs); cursor: pointer;
    transition: background var(--dur-fast) var(--ease);
    text-align: left;
}
.action-dropdown button:hover { background: var(--panel-hover); }
.action-dropdown button.danger { color: var(--danger); }
.action-dropdown button.danger:hover { background: var(--danger-soft); }
.action-dropdown .action-sep {
    height: 1px; background: var(--border-soft); margin: 4px 0;
}


/* ──────────────────── 16. TABS ──────────────────── */
.tabs {
    display: flex; gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-5);
    overflow-x: auto;
}
.tab {
    padding: 10px 18px;
    font-size: 13px; font-weight: 500;
    color: var(--text-mute);
    cursor: pointer; border: none; background: none;
    border-bottom: 2px solid transparent;
    transition: all var(--dur-fast) var(--ease);
    white-space: nowrap; font-family: var(--font);
}
.tab:hover { color: var(--text-soft); }
.tab.active {
    color: var(--brand); font-weight: 600;
    border-bottom-color: var(--brand);
}


/* ──────────────────── 17. FİLTRE BAR ──────────────────── */
.filter-bar {
    display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: flex-end;
    padding: var(--sp-4);
    background: var(--bg-2); border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-5);
}
.filter-bar label {
    font-size: 11px; color: var(--text-mute); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.6px;
    margin: 0; display: flex; flex-direction: column; gap: 4px;
}
.filter-bar input, .filter-bar select {
    padding: 7px 11px; font-size: 13px;
    background: var(--panel); border: 1px solid var(--border);
    color: var(--text); border-radius: var(--radius-xs);
    font-family: var(--font);
    outline: none; transition: border-color var(--dur-fast) var(--ease);
}
[data-theme="light"] .filter-bar input,
[data-theme="light"] .filter-bar select { background: #fff; }
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--brand); }
.filter-bar .filter-actions { display: flex; gap: var(--sp-2); align-items: flex-end; }


/* ──────────────────── 18. EMPTY STATE ──────────────────── */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    padding: 48px 24px; text-align: center;
}
.empty-state-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--bg-2); border: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--sp-5); color: var(--text-mute); font-size: 24px;
}
.empty-state-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: var(--sp-2); }
.empty-state-sub { font-size: 13px; color: var(--text-mute); max-width: 360px; line-height: 1.6; }
.empty-state .btn { margin-top: var(--sp-5); }


/* ──────────────────── 19. LOADING SKELETON ──────────────────── */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg-2) 30%, var(--panel-hover) 50%, var(--bg-2) 70%);
    background-size: 800px 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: var(--radius-xs);
}
.skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 4px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.lg { height: 28px; }

.skeleton-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.skeleton-card .skeleton-line { background: linear-gradient(90deg, var(--bg-2) 30%, var(--panel-hover) 50%, var(--bg-2) 70%); background-size: 800px 100%; animation: shimmer 1.6s infinite linear; }

.skeleton-table-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--sp-3); padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}


/* ──────────────────── 20. UYARI / BİLDİRİM KARTLARI ──────────────────── */
.alert {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    font-size: 13px; line-height: 1.5;
    display: flex; align-items: flex-start; gap: 10px;
}
.alert-icon { flex-shrink: 0; margin-top: 1px; font-size: 15px; }
.alert.alert-warning { background: var(--warning-soft); border-color: rgba(240,180,41,0.18); color: var(--warning); }
.alert.alert-success { background: var(--success-soft); border-color: rgba(52,211,153,0.18); color: var(--success); }
.alert.alert-danger  { background: var(--danger-soft);  border-color: rgba(240,101,101,0.18); color: var(--danger); }
.alert.alert-info    { background: var(--info-soft);    border-color: rgba(96,165,250,0.18); color: var(--info); }

/* Eski warning-card desteği */
.warning-card {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    background: var(--bg-2); border: 1px solid var(--border-soft);
    border-left: 3px solid var(--warning);
    font-size: 13px; margin-bottom: var(--sp-2);
    display: flex; align-items: center; gap: 10px;
}
.warning-card.success { border-left-color: var(--success); }
.warning-card.danger  { border-left-color: var(--danger); }
.warning-card .w-icon { font-size: 15px; flex-shrink: 0; }


/* ──────────────────── 21. PROGRESS BAR ──────────────────── */
.progress { background: var(--bg-2); height: 6px; border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; border-radius: 3px; transition: width 0.4s var(--ease); }
.progress.brand > div { background: var(--brand); }
.progress.success > div { background: var(--success); }
.progress.warning > div { background: var(--warning); }
.progress.danger > div { background: var(--danger); }

/* Eski .bar desteği */
.bar { background: var(--bg-2); height: 6px; border-radius: 3px; overflow: hidden; }
.bar > div { height: 100%; transition: width 0.4s var(--ease); border-radius: 3px; }


/* ──────────────────── 22. AUDIT TABLOSUITABLOSsI ──────────────────── */
.audit-table td { vertical-align: top; padding: 14px 12px; }
.audit-changes { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.audit-change-row {
    display: grid; grid-template-columns: 120px 1fr auto 1fr;
    gap: 8px; align-items: center;
    padding: 5px 10px; background: var(--bg-2);
    border-radius: var(--radius-xs);
}
.audit-field {
    font-family: var(--mono); font-weight: 600;
    color: var(--text-mute); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.audit-from { color: var(--danger); text-decoration: line-through; opacity: 0.8; word-break: break-word; }
.audit-to   { color: var(--success); font-weight: 500; word-break: break-word; }
.audit-arrow { color: var(--text-faint); font-weight: bold; font-family: var(--mono); }


/* ──────────────────── 23. PAGINATION ──────────────────── */
.pagination {
    display: flex; gap: 2px; align-items: center;
    justify-content: center; margin-top: var(--sp-5);
}
.pagination button {
    width: 34px; height: 34px;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
    background: transparent; color: var(--text-soft);
    font-size: 13px; font-weight: 500; font-family: var(--font);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all var(--dur-fast) var(--ease);
}
.pagination button:hover { background: var(--panel-hover); }
.pagination button.active {
    background: var(--brand-soft); color: var(--brand);
    border-color: rgba(124,110,240,0.2); font-weight: 600;
}
.pagination button:disabled { opacity: 0.35; pointer-events: none; }


/* ──────────────────── 24. CONFIRM DIALOG ──────────────────── */
.confirm-body { padding: var(--sp-5) 0; }
.confirm-body p { color: var(--text-soft); font-size: 14px; line-height: 1.6; margin: 0; }
.confirm-body .confirm-warning {
    background: var(--danger-soft); border: 1px solid rgba(240,101,101,0.15);
    border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4);
    color: var(--danger); font-size: 13px; margin-top: var(--sp-3);
}


/* ──────────────────── 25. SCROLLBAR ──────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }


/* ──────────────────── 26. YARDIMCI SINIFLAR ──────────────────── */
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-brand   { color: var(--brand) !important; }
.text-muted   { color: var(--text-mute) !important; }
.text-soft    { color: var(--text-soft) !important; }

.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

.fs-sm  { font-size: 12px !important; }
.fs-xs  { font-size: 11px !important; }
.fs-lg  { font-size: 16px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--sp-2) !important; }
.mt-4 { margin-top: var(--sp-4) !important; }
.mt-5 { margin-top: var(--sp-5) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--sp-2) !important; }
.mb-4 { margin-bottom: var(--sp-4) !important; }

.gap-2 { gap: var(--sp-2) !important; }
.gap-3 { gap: var(--sp-3) !important; }
.gap-4 { gap: var(--sp-4) !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.tabular-nums { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* İnline stat: label + value yan yana */
.stat-inline {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 6px 0; font-size: 13px;
}
.stat-inline .stat-label { color: var(--text-soft); }
.stat-inline .stat-value { font-weight: 600; font-variant-numeric: tabular-nums; }


/* ──────────────────── 27. SALE SUMMARY BOX ──────────────────── */
.sale-summary-box {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.sale-summary-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-soft);
    margin-bottom: 12px;
}
.sale-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.sale-summary-grid div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sale-summary-grid span {
    font-size: 11px;
}
.sale-summary-grid strong {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.sale-summary-divider {
    height: 1px;
    background: var(--border-soft);
    margin: 12px 0;
}
@media (max-width: 640px) {
    .sale-summary-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ──────────────────── 28. PARTNER PROFILE ──────────────────── */

/* Partner Card Grid */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--sp-4);
}

/* Partner Card */
.partner-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}
.partner-card:hover {
    border-color: var(--accent, var(--border-hover));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.partner-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 16px;
}

.partner-avatar {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.partner-info { flex: 1; min-width: 0; }
.partner-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.partner-code { font-size: 12px; color: var(--text-soft); letter-spacing: 0.5px; margin-top: 2px; }

.partner-card-actions {
    display: flex; gap: 4px; flex-shrink: 0;
}

.partner-card-stats {
    display: flex;
    padding: 16px 20px;
    background: var(--bg);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.partner-stat-block {
    flex: 1;
    text-align: center;
}
.partner-stat-label {
    font-size: 11px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.partner-stat-value {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.partner-stat-value.accent { color: var(--accent, var(--brand)); }
.partner-stat-value.success { color: var(--success); }

.partner-stat-divider {
    width: 1px;
    background: var(--border-soft);
    margin: -4px 0;
}

.partner-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}
.partner-meta {
    display: flex; gap: 12px;
    font-size: 12px; color: var(--text-soft);
}
.partner-meta span { display: flex; align-items: center; gap: 4px; }
.partner-meta svg { opacity: 0.5; }

.partner-view-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
    opacity: 0;
    transition: opacity 0.2s;
}
.partner-card:hover .partner-view-link { opacity: 1; }

/* Profile Header */
.profile-header {
    position: relative;
}
.profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}
.profile-avatar {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}
.profile-title { flex: 1; }
.profile-title h2 { margin: 0; font-size: 22px; }
.profile-subtitle {
    display: flex; gap: 12px; align-items: center;
    margin-top: 6px; font-size: 13px;
}
.profile-actions {
    display: flex; gap: 8px; flex-shrink: 0;
}

/* Sermaye tip chip'leri */
.profile-type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
}
.profile-type-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
}
.profile-type-chip span { color: var(--text-soft); }
.profile-type-chip strong {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
}
.profile-tab {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.profile-tab:hover {
    color: var(--text-main);
}
.profile-tab.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.profile-tab-content {
    padding-top: 16px;
}

/* ──────────────────── 29. GUIDE / REHBER ──────────────────── */
.guide-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: 60vh;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.guide-sidebar {
    background: var(--panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.guide-search {
    padding: 16px;
    border-bottom: 1px solid var(--border-soft);
}
.guide-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    color: var(--text);
    font-size: 13px;
    font-family: var(--font);
}
.guide-search input:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.guide-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.guide-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    border-radius: var(--radius-sm);
    text-align: left;
    transition: all 0.15s;
}
.guide-nav-item:hover {
    background: var(--panel-hover);
    color: var(--text);
}
.guide-nav-item.active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}
.guide-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
}
.guide-nav-item.active .guide-nav-icon { opacity: 1; }

.guide-content {
    padding: 32px 40px;
    overflow-y: auto;
    max-height: 80vh;
}

.guide-panel {
    display: none;
}
.guide-panel.active {
    display: block;
}
.guide-panel h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}
.guide-panel h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--text);
}
.guide-panel p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
    margin-bottom: 12px;
}
.guide-panel ul, .guide-panel ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.guide-panel li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.guide-panel li strong {
    color: var(--text);
}

.guide-highlight {
    background: var(--brand-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-soft);
}
.guide-highlight strong {
    color: var(--text);
}

.guide-example {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 16px 0;
}
.guide-example-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-mute);
    margin-bottom: 10px;
}
.guide-example p { font-size: 13px; }
.guide-example li { font-size: 13px; }

.guide-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}
.guide-step:last-child { border-bottom: none; }
.guide-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.guide-step p {
    font-size: 13px;
    margin-bottom: 4px;
}
.guide-step ul {
    margin-bottom: 0;
}
.guide-step li {
    font-size: 13px;
    margin-bottom: 2px;
}

.guide-modules {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.guide-module-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.guide-module-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.guide-module-card strong {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}
.guide-module-card p {
    font-size: 13px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.5;
}

/* ──────────────────── 30. RESPONSIVE ──────────────────── */
@media (max-width: 1200px) {
    .grid-6 { grid-template-columns: repeat(3,1fr); }
    .grid-5 { grid-template-columns: repeat(3,1fr); }
    .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 960px) {
    :root { --sidebar-w: 0px; }
    .sidebar {
        position: fixed; top: auto; bottom: 0; left: 0; right: 0;
        width: 100%; height: auto;
        flex-direction: row;
        padding: 6px 10px;
        border-right: none; border-top: 1px solid var(--border);
        overflow-x: auto; overflow-y: hidden;
        z-index: 40;
    }
    .sidebar-nav { flex-direction: row; gap: 2px; margin: 0; }
    .sidebar-nav a { padding: 8px 12px; font-size: 12px; }
    .sidebar-nav a.active::before { display: none; }
    .sidebar-brand, .sidebar-footer, .sidebar-section-label { display: none; }
    .main { margin-left: 0; padding-bottom: 60px; }
    .topbar { padding: 16px 20px; }
    .page-root { padding: 16px 20px 80px; }
    .grid-4, .grid-5, .grid-6, .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .form .row, .form .row-3 { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }
    .filter-bar label { width: 100%; }
}
@media (max-width: 640px) {
    .grid-4, .grid-5, .grid-6, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .kpi .value { font-size: 20px; }
    .modal { padding: 20px; border-radius: var(--radius); }
    .drawer { width: 100vw; max-width: 100vw; }
    .topbar h1 { font-size: 17px; }
    .partner-grid { grid-template-columns: 1fr; }
    .partner-card-stats { flex-direction: column; gap: 12px; }
    .guide-layout { grid-template-columns: 1fr; }
    .guide-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
    .guide-nav { flex-direction: row; flex-wrap: wrap; overflow-x: auto; }
    .guide-content { padding: 20px; max-height: none; }
    .partner-stat-divider { width: 100%; height: 1px; margin: 0; }
    .profile-hero { flex-direction: column; text-align: center; }
    .profile-subtitle { justify-content: center; flex-wrap: wrap; }
    .profile-actions { justify-content: center; }
    .profile-tabs { overflow-x: auto; }
}
