/* Inter font self-host (Google Fonts v20, latin + latin-ext subsets)
   Türkçe karakterler latin-ext range'inde (Ç Ğ İ Ö Ş Ü) */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../lib/inter/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../lib/inter/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../lib/inter/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../lib/inter/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../lib/inter/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../lib/inter/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../lib/inter/inter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../lib/inter/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   ExtraDepo Mobile PWA - v10 açık tema + Indigo (2026-05-15)
   - Yüksek kontrast slate text + krem zemin
   - Büyük dokunma alanları (min 56px)
   - Inter font + 15.2px body
   ============================================================ */

:root {
    /* Brand — Indigo + Slate (2026-05-15: kırmızıdan değiştirildi) */
    --brand-indigo: #4338CA;       /* indigo-700, primary */
    --brand-indigo-hover: #3730A3; /* indigo-800 */
    --brand-indigo-soft: #EEF2FF;  /* indigo-50, badge/tint */
    --brand-slate: #1E293B;        /* slate-800, koyu text/accent */

    /* Backward-compat alias'lar — razor inline <style>'ları kırılmasın (eski --brand-red* kullananlar) */
    --brand-red: var(--brand-indigo);
    --brand-red-hover: var(--brand-indigo-hover);
    --brand-red-soft: var(--brand-indigo-soft);
    --brand-gray: var(--brand-slate);

    /* Yüzeyler — açık tema, krem zemin (RMS Odoo paleti) */
    --bg: #F8F8F6;                 /* krem zemin */
    --surface: #FFFFFF;            /* kart yüzeyi */
    --surface-2: #F1F0EE;          /* alt katman / hover */
    --surface-3: #E8E6E3;          /* aktif */
    --border: #E2E1DD;
    --border-strong: #C5C2BC;
    --text: #1F2937;               /* gray-800 */
    --text-muted: #6B7280;         /* gray-500 */
    --text-subtle: #9CA3AF;        /* gray-400 */

    /* Vurgu — markaya bağlı */
    --primary: var(--brand-indigo);
    --primary-hover: var(--brand-indigo-hover);
    --primary-text: #ffffff;
    --accent: #0EA5E9;             /* sky-500, sekonder mavi (link/info) */

    /* Durum renkleri — açık tema kontrastlı */
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;

    /* Sistem — radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Shadow seviyeleri (5 seviye) — açık tema soft slate */
    --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 1px rgba(17, 24, 39, 0.04);
    --shadow: 0 2px 6px rgba(17, 24, 39, 0.08), 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-lg: 0 8px 24px rgba(17, 24, 39, 0.10), 0 2px 6px rgba(17, 24, 39, 0.06);
    --shadow-xl: 0 20px 40px rgba(17, 24, 39, 0.14), 0 6px 14px rgba(17, 24, 39, 0.08);

    /* Type scale — 1.2 modüler oran */
    --text-micro: 0.7rem;          /* 11.2px — KAPSEL etiketler */
    --text-caption: 0.78rem;       /* 12.5px — ikincil bilgi */
    --text-body: 0.95rem;          /* 15.2px — gövde */
    --text-base: 1rem;             /* 16px — varsayılan */
    --text-h2: 1.15rem;            /* 18.4px — alt başlık */
    --text-h1: 1.4rem;             /* 22.4px — başlık */
    --text-display: 1.8rem;        /* 28.8px — büyük vurgu (login, splash) */
    --text-display-lg: 2.4rem;     /* 38.4px — sayısal vurgu (toplam, KPI) */

    /* Font weight scale */
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-black: 800;

    /* Letter-spacing presets */
    --tracking-tight: -0.02em;     /* başlıklar */
    --tracking-normal: 0;
    --tracking-wide: 0.04em;       /* küçük caps */
    --tracking-wider: 0.08em;      /* uppercase label */
    --tracking-widest: 0.16em;     /* uppercase tag */

    /* Spacing scale (4px tabanlı) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Etkileşim */
    --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

    /* Focus ring (klavye + accessibility) — Indigo rgba */
    --focus-ring: 0 0 0 3px rgba(67, 56, 202, 0.35);

    /* Font family — Inter self-host (offline) + system fallback */
    --font-family-base: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Consolas', 'SF Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-family-base);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    user-select: none;
}

#app { height: 100%; display: flex; flex-direction: column; }

a, .btn-link { color: var(--primary); text-decoration: none; }

/* Modal close button — eldiven dostu 44x44 */
.modal-close {
    min-height: 44px;
    min-width: 44px;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}
.modal-close:hover { color: var(--text); }

/* Buttons — ripple destekli, focus ring'li */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 var(--space-6);
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition-fast),
                border-color var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition);
    user-select: none;
    background: var(--surface-2);
    color: var(--text);
    -webkit-appearance: none;
    overflow: hidden;
    isolation: isolate;
}
.btn:hover:not(:disabled) { background: var(--surface-3); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Ripple efekti — :active sonrası yayılan halka */
.btn::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, currentColor 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
    z-index: -1;
}
.btn:active::after { opacity: 0.18; transition: opacity 0s; }

.btn-primary {
    background: var(--primary); color: var(--primary-text);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-block { width: 100%; }

.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #B91C1C; }
.btn-ghost { background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }

/* Form inputs */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.form-label {
    font-size: var(--text-caption);
    font-weight: var(--weight-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}
.form-input {
    width: 100%;
    height: 56px;
    padding: 0 var(--space-4);
    font-size: 1.1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                background-color var(--transition-fast);
    -webkit-appearance: none;
    user-select: text;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
    background: var(--surface);
}
.form-input::placeholder { color: var(--text-subtle); }

/* === Picker-field & cari kartı (sipariş + stok fiş ortak) === */
button.picker-field {
    width: 100%;
    height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    padding: 0 var(--space-4);
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
}
button.picker-field:hover { background: var(--surface); }
.picker-field-empty .picker-field-placeholder { color: var(--text-subtle); }
.picker-field-chevron { color: var(--text-muted); font-size: .9rem; opacity: .7; }

.client-card {
    display: flex; align-items: stretch; gap: 8px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.client-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.client-card-code {
    font-family: var(--font-mono, ui-monospace, Consolas, monospace);
    font-size: .75rem; color: var(--text-muted); letter-spacing: .02em;
}
.client-card-name {
    font-size: .95rem; font-weight: 600; color: var(--text);
    line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.client-card-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border-radius: var(--radius);
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn-danger { color: var(--danger); font-size: 1.4rem; line-height: 1; font-weight: 700; }

/* === Tipografi yardımcıları === */
.t-display    { font-size: var(--text-display); font-weight: var(--weight-black); line-height: 1.1; letter-spacing: var(--tracking-tight); }
.t-h1         { font-size: var(--text-h1); font-weight: var(--weight-bold); line-height: 1.2; letter-spacing: var(--tracking-tight); }
.t-h2         { font-size: var(--text-h2); font-weight: var(--weight-semibold); line-height: 1.3; }
.t-body       { font-size: var(--text-body); line-height: 1.45; }
.t-caption    { font-size: var(--text-caption); color: var(--text-muted); line-height: 1.4; }
.t-micro      { font-size: var(--text-micro); color: var(--text-subtle); line-height: 1.3; }
.t-label      { font-size: var(--text-micro); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--text-muted); }
.t-tag        { font-size: var(--text-micro); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-widest); }
.t-mono       { font-family: 'Consolas', 'SF Mono', monospace; }
.t-num        { font-variant-numeric: tabular-nums; }

/* ============================================================
   Ortak SCAN giriş satırı — StockFc / OrderFc / Dispatch hepsinde
   aynı görünüm. Scanner Enter ile gönderir; manuel yazımda da Enter
   ile gönderilir; sağdaki liste butonu (varsa) modal item-picker'ı açar.
   ============================================================ */
.scan-input-row {
    display: flex;
    gap: var(--space-2);
    align-items: stretch;
}
.scan-input {
    flex: 1;
    height: 64px;
    font-size: var(--text-h2);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-tight);
}
/* Sağdaki liste butonu — modal item-picker açar. Inline SVG ikon kullanılır. */
.scan-list-btn {
    width: 64px;
    min-width: 64px;
    height: 64px;
    padding: 0;
    background: var(--surface);
    color: var(--brand-indigo);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
    -webkit-appearance: none;
    flex-shrink: 0;
}
.scan-list-btn:hover:not(:disabled) {
    background: var(--brand-indigo-soft);
    border-color: var(--brand-indigo);
}
.scan-list-btn:active:not(:disabled) { transform: scale(0.97); }
.scan-list-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.scan-list-btn svg { width: 26px; height: 26px; display: block; }

/* === Standart kart sistemi (Faz 3) === */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition), transform var(--transition);
}
.card-elevated { box-shadow: var(--shadow); }
.card-interactive { cursor: pointer; }
.card-interactive:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-interactive:active { transform: scale(0.995); }
.card-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border);
}
.card-body { padding: var(--space-4); }
.card-foot {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Üst kenar renk şeridi (modül rengi) */
.card-accent {
    border-top: 3px solid var(--accent-color, var(--primary));
    border-radius: var(--radius-lg);
}
.card-accent-red       { --accent-color: var(--primary); }
.card-accent-green     { --accent-color: var(--success); }
.card-accent-blue      { --accent-color: var(--accent); }
.card-accent-orange    { --accent-color: var(--warning); }
.card-accent-gray      { --accent-color: var(--brand-slate); }

/* === Status badge sistemi (tutarlı) === */
.badge {
    display: inline-flex; align-items: center; gap: var(--space-1);
    padding: 3px var(--space-2);
    border-radius: 999px;
    font-size: var(--text-micro);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    line-height: 1.2;
    white-space: nowrap;
}
.badge-success  { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.badge-warning  { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.badge-danger   { background: #FEE2E2; color: #B91C1C; border: 1px solid #FECACA; }
.badge-info     { background: #E0F2FE; color: #0369A1; border: 1px solid #BAE6FD; }
.badge-neutral  { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.badge-brand    { background: var(--brand-indigo-soft); color: var(--brand-indigo-hover); border: 1px solid #C7D2FE; }

/* Layout shell */
.app-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.app-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    z-index: 10;
}
.app-header-title { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; }
.app-header-meta { font-size: 0.78rem; color: var(--text-muted); }
.app-content { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }

/* Login screen — marka odaklı, açık tema */
.login-page {
    display: flex; flex-direction: column; justify-content: center;
    min-height: 100vh; padding: 24px;
    background:
        radial-gradient(ellipse at top, rgba(67, 56, 202, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(14, 165, 233, 0.04) 0%, transparent 50%),
        linear-gradient(170deg, #F8F8F6 0%, #EFEFEC 100%);
    position: relative;
    overflow: hidden;
}
/* Hafif barkod desen overlay - dekoratif */
.login-page::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(30, 41, 59, 0.025) 0px, rgba(30, 41, 59, 0.025) 1px,
        transparent 1px, transparent 8px
    );
    opacity: .5;
}
.login-card {
    position: relative;
    width: 100%; max-width: 420px; margin: 0 auto;
    padding: 36px 28px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.login-card::before {
    content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 0 0 3px 3px;
}
.login-brand { text-align: center; margin-bottom: 32px; }
.login-brand-logo {
    display: block; margin: 0 auto 14px;
    max-width: 220px; height: auto;
}
.login-brand-name {
    font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em;
    line-height: 1;
}
.login-brand-name .b-extra { color: var(--primary); }
.login-brand-name .b-depo  { color: var(--text); }
.login-brand-tag {
    margin-top: 6px; font-size: 0.74rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.18em;
}

/* Alerts */
.alert { padding: 12px 14px; border-radius: 8px; font-size: 0.9rem; line-height: 1.4; margin-bottom: 12px; }
.alert-error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

/* === Animasyon sözlüğü === */
@keyframes fade-in       { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up      { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-down    { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop-in        { 0% { transform: scale(0.94); opacity: 0; } 60% { transform: scale(1.02); opacity: 1; } 100% { transform: scale(1); } }
@keyframes flash-success { 0% { background-color: rgba(46,160,67,.0); } 30% { background-color: rgba(46,160,67,.18); } 100% { background-color: rgba(46,160,67,.0); } }
@keyframes pulse-soft    { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }

.anim-fade { animation: fade-in var(--transition) ease both; }
.anim-slide-up { animation: slide-up var(--transition-slow) ease both; }
.anim-pop { animation: pop-in var(--transition-slow) ease both; }
.anim-flash-success { animation: flash-success 0.9s ease both; }

/* Modal pencere standardı */
.modal-backdrop {
    animation: fade-in var(--transition) ease both;
}
.modal-card,
.msg-card {
    animation: pop-in var(--transition-slow) ease both;
}

/* Loading splash — marka odaklı, açık tema */
.loading-splash {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100vh; height: 100dvh;
    background: linear-gradient(170deg, #F8F8F6 0%, #EFEFEC 100%);
    color: var(--text-muted); gap: 18px;
}
.loading-logo {
    max-width: 240px;
    height: auto;
    margin-bottom: 8px;
    animation: fadeIn 0.6s ease;
}
.loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
.loading-text {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-subtle);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* PWA güncelleme bildirim banner'ı */
#app-update-banner {
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    max-width: 480px;
    margin: 0 auto;
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    animation: slide-up var(--transition-slow) ease both;
}
#app-update-banner button {
    min-height: 40px;
    padding: 0 18px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-weight: var(--weight-bold);
    font-size: var(--text-body);
    cursor: pointer;
}

/* Blazor error UI */
#blazor-error-ui {
    background: var(--danger); color: white; bottom: 0;
    box-shadow: 0 -1px 4px rgba(17, 24, 39, 0.18);
    display: none; left: 0; padding: 12px 16px;
    position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 12px; top: 12px; }
