/* ═══════════════════════════════════════════════════════════════
   NURLAN TEKSTİL — GERÇEK MOBİL APP TASARIM SİSTEMİ v2.0
   Native iOS / Material Design 3 — inspired mobile UX
   ═══════════════════════════════════════════════════════════════ */

/* ── Değişkenler ─────────────────────────────────────────────── */
:root {
  --bottom-nav-h:    0px;
  --top-nav-h:       54px;
  --topbar-h:        56px;
  --sidebar-w-mob:   284px;
  --nav-active-bg:   rgba(108,99,255,.16);
  --card-radius:     16px;
  --item-radius:     14px;

  /* Gradients */
  --grad-primary: linear-gradient(145deg, #6c63ff 0%, #a78bfa 100%);
  --grad-green:   linear-gradient(145deg, #16a34a 0%, #22c55e 100%);
  --grad-blue:    linear-gradient(145deg, #2563eb 0%, #6366f1 100%);
  --grad-orange:  linear-gradient(145deg, #ea580c 0%, #f97316 100%);
  --grad-red:     linear-gradient(145deg, #dc2626 0%, #ef4444 100%);
  --grad-cyan:    linear-gradient(145deg, #0891b2 0%, #06b6d4 100%);
  --grad-teal:    linear-gradient(145deg, #0d9488 0%, #14b8a6 100%);
  --grad-pink:    linear-gradient(145deg, #be185d 0%, #ec4899 100%);
  --grad-indigo:  linear-gradient(145deg, #4338ca 0%, #818cf8 100%);
  --grad-amber:   linear-gradient(145deg, #b45309 0%, #fbbf24 100%);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9;
  opacity: 0;
  transition: opacity .28s ease;
}
.sidebar-overlay.active { display: block; opacity: 1; }

/* ── Sidebar mobil kapat butonu ── */
.sidebar-mobile-close {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text2);
  flex-shrink: 0;
  margin-left: auto;
  transition: color .15s, background .15s;
  line-height: 1;
}
.sidebar-mobile-close:hover { color: var(--text); background: var(--border); }

/* ═══════════════════════════════════════════════════════════════
   NAV İKON — SVG BOYUTLARI (masaüstü + mobil)
   ═══════════════════════════════════════════════════════════════ */
.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HAMBURGER BUTONU — KALDIRILDI
   ═══════════════════════════════════════════════════════════════ */
.topbar-hamburger { display: none !important; }

/* ── Animasyonlar ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Dashboard Shop Pill ─────────────────────────────────────── */
.ds-shop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 12px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
}
.ds-shop-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
}

/* ── Dashboard Stat Kartları ─────────────────────────────────── */
.ds-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.ds-stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
}
.ds-stat-num {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.ds-stat-lbl {
  font-size: .58rem;
  color: var(--text2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
  line-height: 1.3;
}
.ds-trend {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.ds-trend.up   { color: #22c55e; background: rgba(34,197,94,.12); }
.ds-trend.down { color: #ef4444; background: rgba(239,68,68,.12); }

/* ── Skeleton ───────────────────────────────────────────────── */
.ds-skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: ds-shimmer 1.4s infinite;
}
@keyframes ds-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Grid item — yeni kart stili ─────────────────────────────── */
.ds-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ds-icon-wrap .dash-icon {
  width: 26px; height: 26px;
}
.ds-icon-wrap .dash-icon svg { width: 26px; height: 26px; }

/* ── Yeni Sipariş FAB — sabit alt bar ──────────────────────── */
.dash-fab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 10px 18px calc(16px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 5;
}
[data-theme="light"] .dash-fab-bar {
  background: #fff;
  border-top-color: #e8eaf0;
}

/* ── Yeni Sipariş CTA Butonu ─────────────────────────────────── */
.dash-yeni-siparis-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 15px 28px;
  background: #0891b2;
  border-radius: 100px;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(8,145,178,.35);
  letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s cubic-bezier(.22,1,.36,1), box-shadow .15s;
  width: 100%;
  max-width: none;
}
.dash-yeni-siparis-btn svg { width: 20px; height: 20px; }
.dash-yeni-siparis-btn:active {
  transform: scale(.94);
  box-shadow: 0 4px 12px rgba(8,145,178,.30);
  color: #fff;
  text-decoration: none;
}
.dash-yeni-siparis-btn:hover { color: #fff; text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD BANNER AKSİYON BUTONLARI
   ═══════════════════════════════════════════════════════════════ */
.dash-banner-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.dash-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, transform .12s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}
.dash-banner-btn svg {
  width: 16px; height: 16px;
  display: block; flex-shrink: 0;
}
.dash-banner-btn:active { transform: scale(.93); background: rgba(255,255,255,.17); }
.dash-banner-btn-logout {
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.15);
  color: #fca5a5;
}
.dash-banner-btn-logout:active { background: rgba(239,68,68,.25); }

[data-theme="light"] .dash-banner-btn {
  border-color: rgba(108,99,255,.25);
  background: rgba(108,99,255,.12);
  color: #fff;
}
[data-theme="light"] .dash-banner-btn-logout {
  border-color: rgba(239,68,68,.3);
  background: rgba(239,68,68,.12);
  color: #fee2e2;
}

/* ═══════════════════════════════════════════════════════════════
   MOBİL ALT NAVİGASYON — varsayılan gizli
   ═══════════════════════════════════════════════════════════════ */
.mobile-bottom-nav { display: none; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD HEADER
   ═══════════════════════════════════════════════════════════════ */
.dash-header {
  background: linear-gradient(135deg, #0f0c1e 0%, #1a1040 50%, #0f1117 100%);
  border-radius: 20px;
  padding: 22px 20px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(108,99,255,.22);
}
.dash-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 90% at 5% 50%,  rgba(108,99,255,.32) 0%, transparent 60%),
    radial-gradient(ellipse 55% 65% at 95% 10%,  rgba(167,139,250,.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(59,130,246,.10)  0%, transparent 55%);
  pointer-events: none;
}
.dash-header::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  transparent, transparent 28px, rgba(108,99,255,.025) 28px, rgba(108,99,255,.025) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(108,99,255,.025) 28px, rgba(108,99,255,.025) 29px);
  pointer-events: none;
}
.dash-header-content {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dash-greeting {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 4px;
  letter-spacing: .06em;
}
.dash-username {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.dash-role-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  background: rgba(108,99,255,.25);
  border: 1px solid rgba(108,99,255,.4);
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dash-avatar {
  width: 56px; height: 56px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: 0 4px 20px rgba(108,99,255,.45);
  letter-spacing: -.02em;
}
.dash-section-title {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--text2);
  margin: 20px 0 12px;
}

/* ── Dashboard Grid ── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dash-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 20px 10px 18px;
  border-radius: 20px;
  text-decoration: none; color: #fff;
  font-weight: 700; font-size: .74rem;
  text-align: center; position: relative; overflow: hidden;
  cursor: pointer; border: none;
  min-height: 96px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s;
  user-select: none;
}
.dash-item:active { transform: scale(.90); }
.dash-item:hover  { text-decoration: none; color: #fff; }
.dash-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}
.dash-icon {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  width: 36px; height: 36px;
  font-size: 0;
}
.dash-icon svg { width: 30px; height: 30px; display: block; }
.dash-label { position: relative; z-index: 1; line-height: 1.25; }
.dash-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.95); color: #dc2626;
  border-radius: 10px; font-size: .6rem; font-weight: 800;
  padding: 1px 5px; min-width: 18px; text-align: center; z-index: 2;
}

/* ── Renk varyantları ── */
.dash-blue   { background: var(--grad-blue);   box-shadow: 0 6px 22px rgba(37,99,235,.42); }
.dash-purple { background: var(--grad-primary); box-shadow: 0 6px 22px rgba(108,99,255,.42); }
.dash-green  { background: var(--grad-green);   box-shadow: 0 6px 22px rgba(22,163,74,.38); }
.dash-orange { background: var(--grad-orange);  box-shadow: 0 6px 22px rgba(234,88,12,.40); }
.dash-red    { background: var(--grad-red);     box-shadow: 0 6px 22px rgba(220,38,38,.40); }
.dash-cyan   { background: var(--grad-cyan);    box-shadow: 0 6px 22px rgba(8,145,178,.40); }
.dash-teal   { background: var(--grad-teal);    box-shadow: 0 6px 22px rgba(13,148,136,.40); }
.dash-pink   { background: var(--grad-pink);    box-shadow: 0 6px 22px rgba(190,24,93,.40); }
.dash-indigo { background: var(--grad-indigo);  box-shadow: 0 6px 22px rgba(67,56,202,.42); }
.dash-amber  { background: var(--grad-amber);   box-shadow: 0 6px 22px rgba(180,83,9,.40); }

/* ═══════════════════════════════════════════════════════════════
   LOGIN — MOBİL
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Sol panel tamamen gizle */
  .login-panel-left { display: none !important; }

  /* Sağ panel — açık lavanta arka plan */
  .login-panel-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #eeeeff !important;
    position: relative;
    overflow: hidden;
  }

  /* Dekoratif arka plan daireleri */
  .login-panel-right::before {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(108,99,255,.12);
    display: block !important;
  }
  .login-panel-right::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(108,99,255,.08);
    display: block !important;
  }

  /* Form sarmalayıcı */
  .login-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  /* Form kutusu — saf beyaz kart */
  .login-box {
    background: #ffffff !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 36px 28px !important;
    box-shadow: 0 8px 40px rgba(108,99,255,.12), 0 2px 8px rgba(0,0,0,.06) !important;
    backdrop-filter: none !important;
  }

  /* Başlık — koyu siyah */
  .login-box .login-title {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: #111 !important;
    margin-bottom: 6px !important;
  }
  .login-box .login-sub {
    color: #888 !important;
    margin-bottom: 28px !important;
  }

  /* Etiketler — indigo */
  .login-box .form-group label {
    color: #4f46e5 !important;
    font-size: .65rem !important;
    letter-spacing: .1em !important;
  }

  /* Input — açık gri arka plan */
  .login-box .form-group input {
    background: #f3f4f8 !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    color: #111 !important;
    font-size: .95rem !important;
    padding: 14px 16px !important;
  }
  .login-box .form-group input::placeholder { color: #aaa !important; }
  .login-box .form-group input:focus {
    border-color: #4f46e5 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12) !important;
  }

  /* Giriş Yap butonu — dolgu indigo */
  .login-box .btn-primary {
    background: #4f46e5 !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 15px !important;
    box-shadow: 0 4px 16px rgba(79,70,229,.35) !important;
    color: #fff !important;
  }
  .login-box .btn-primary:active {
    transform: scale(.97) !important;
    box-shadow: 0 2px 8px rgba(79,70,229,.25) !important;
  }

  /* Logo — form kutusunun üstünde ortada */
  .login-logo {
    display: flex !important;
    justify-content: center;
    margin-bottom: 20px !important;
    position: relative;
  }
  /* Beyaz kutu pseudo ile — filter'dan etkilenmez */
  .login-logo::before {
    content: '';
    position: absolute;
    width: 80px; height: 80px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.06);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
  }
  .login-logo-img {
    display: block !important;
    position: relative;
    z-index: 1;
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
    padding: 14px;
    background: transparent !important;
    filter: brightness(0);
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: Tablet / Telefon (max-width: 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Scrollbar gizle ── */
  * { scrollbar-width: none; }
  *::-webkit-scrollbar { display: none; }

  /* ── Sidebar: slide-in drawer ── */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
    width: var(--sidebar-w-mob);
    z-index: 10;
    border-right: none;
    box-shadow: 8px 0 48px rgba(0,0,0,.65);
    background: var(--bg2);
  }
  .sidebar.mob-open { transform: translateX(0); }
  .sidebar-mobile-close { display: flex; }

  /* Sidebar logo alanı */
  .sidebar-logo {
    background: linear-gradient(135deg, rgba(108,99,255,.12) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
    padding: 18px 16px;
  }
  .sidebar-logo-text {
    font-size: .78rem;
    letter-spacing: .05em;
  }

  /* Sidebar nav link */
  .nav-link {
    padding: 11px 16px;
    border-radius: 10px;
    margin: 1px 8px;
    border-left: none !important;
    gap: 12px;
    font-size: .86rem;
    transition: background .15s, color .15s, transform .1s;
  }
  .nav-link:hover { background: var(--bg3); border-left: none !important; }
  .nav-link.active {
    background: rgba(108,99,255,.16);
    color: var(--accent);
    border-left: none !important;
  }
  .nav-link.active .nav-icon { color: var(--accent); }
  .nav-link:active { transform: scale(.97); }

  /* ── Main content ── */
  .main-wrap { margin-left: 0; }

  /* ── Topbar — mobilde gizli ── */
  .topbar { display: none; }
  --topbar-h: 0px;

  /* ── Toast ── */
  .toast {
    bottom: 20px;
    right: 12px; left: 12px; max-width: none;
    text-align: center; font-size: .82rem;
    border-radius: 14px; padding: 13px 18px;
  }

  /* ── Anlık bildirim ── */
  .nt-bildirim {
    top: auto !important;
    bottom: 16px !important;
    right: 12px; left: 12px;
    max-width: none; min-width: 0;
    border-radius: 16px;
  }

  /* ── Page content ── */
  .page-content {
    padding: calc(var(--top-nav-h) + 12px) 14px calc(90px + env(safe-area-inset-bottom));
  }

  /* ─────────────────────────────────────────────────────────────
     ÜST NAVİGASYON — ALT NAVBAR YUKARI TAŞINDI
     Topbar'ın hemen altında sabit tab bar
  ─────────────────────────────────────────────────────────────── */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    top: 0;
    bottom: auto;
    left: 0; right: 0;
    height: var(--top-nav-h);
    position: fixed;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
    z-index: 4;
    align-items: stretch;
    padding: 0;
  }

  /* ── Orta logo ── */
  .mobile-bottom-nav { position: fixed; }
  .mob-nav-logo-center {
    position: absolute;
    left: 0; right: 0;
    top: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
  }
  .mob-nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .9;
  }
  [data-theme="light"] .mob-nav-logo-img {
    filter: brightness(0);
    opacity: .85;
  }

  /* ── Marka yazısı ── */
  .mob-nav-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-right: 14px;
    gap: 1px;
  }
  .mob-nav-brand-title {
    font-size: .62rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: .08em;
    line-height: 1;
  }
  .mob-nav-brand-sub {
    font-size: .5rem;
    font-weight: 600;
    color: var(--text2);
    letter-spacing: .06em;
    line-height: 1;
  }
  [data-theme="light"] .mob-nav-brand-title { color: #4f46e5; }
  [data-theme="light"] .mob-nav-brand-sub   { color: #888; }

  /* ── Nav item ── */
  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 20px;
    height: var(--top-nav-h);
    color: var(--text2);
    text-decoration: none;
    font-size: .6rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s;
    font-family: inherit;
    letter-spacing: .01em;
  }
  .mob-nav-item:hover  { color: var(--text); text-decoration: none; }
  .mob-nav-item.active { color: var(--accent); }

  /* Aktif alt çizgi göstergesi */
  .mob-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 12%; right: 12%;
    height: 2.5px;
    border-radius: 2px 2px 0 0;
    background: var(--accent);
  }

  /* Pill (icon arka planı) */
  .mob-nav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 28px;
    border-radius: 14px;
    transition: background .2s cubic-bezier(.2,0,0,1);
    flex-shrink: 0;
  }
  .mob-nav-item.active .mob-nav-icon-wrap {
    background: var(--nav-active-bg);
  }
  .mob-nav-item:active .mob-nav-icon-wrap {
    background: rgba(108,99,255,.1);
  }

  .mob-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    font-size: 0;
    line-height: 1;
    color: inherit;
    transition: transform .2s cubic-bezier(.22,1,.36,1);
  }
  .mob-nav-item.active .mob-nav-icon { transform: scale(1.1); }
  .mob-nav-icon svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }

  /* Badge */
  .mob-nav-badge {
    position: absolute;
    top: 0; right: 2px;
    background: var(--red);
    color: #fff;
    border-radius: 10px;
    font-size: .5rem; font-weight: 800;
    min-width: 15px; height: 15px;
    padding: 0 3px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg2);
    line-height: 1;
  }

  /* ── FAB (Yeni Sipariş) — üstte normal item olarak ── */
  .mob-nav-fab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--top-nav-h);
  }
  .mob-nav-fab-btn {
    width: 36px; height: 36px;
    border-radius: 12px;
    background: var(--grad-primary);
    border: none;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(108,99,255,.5);
    transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
    flex-shrink: 0;
  }
  .mob-nav-fab-btn svg { width: 20px; height: 20px; display: block; }
  .mob-nav-fab-btn:active {
    transform: scale(.88);
    box-shadow: 0 2px 6px rgba(108,99,255,.35);
  }

  /* ── Form iyileştirmeleri ── */
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-group input:not([type="checkbox"]),
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 13px 14px;
    border-radius: 12px;
    min-height: 50px;
  }
  .form-group label { font-size: .82rem; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; justify-content: center; padding: 14px; border-radius: 12px; }

  /* ── Tablo ── */
  .table-wrap {
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
    overflow: hidden; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table { font-size: .8rem; }
  thead th { padding: 9px 11px; font-size: .68rem; }
  tbody td  { padding: 9px 11px; }

  /* ── Kartlar ── */
  .card {
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,.22);
  }
  .card + .card { margin-top: 12px; }

  /* ── Toolbar ── */
  .toolbar { gap: 8px; }
  .toolbar .search-input {
    min-width: 0; font-size: 16px; flex: 1;
    border-radius: 12px; padding: 10px 14px;
  }
  select.filter-select {
    font-size: 15px; padding: 10px 10px;
    border-radius: 12px;
  }

  /* ── Butonlar ── */
  .btn { padding: 10px 16px; border-radius: 10px; }
  .btn-sm { padding: 8px 12px; font-size: .8rem; }
  .btn-block { padding: 14px 16px; border-radius: 12px; font-size: 1rem; }

  /* ── Dashboard header — standalone gradient ── */
  .dash-header {
    background: linear-gradient(135deg, #1e2040 0%, #2a1a3e 100%);
    border: none;
    padding: 20px 20px 18px;
    margin-bottom: 12px;
    animation: fadeUp .4s ease;
  }
  .dash-header::before { background: none; }
  .dash-header::after  { background-image: none; }

  /* ── Dashboard grid — standalone kart stili ── */
  .dash-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .dash-item {
    background: var(--item-card-bg, var(--bg2)) !important;
    border: 1.5px solid var(--item-card-bg, var(--border)) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.08) !important;
    color: var(--text) !important;
    min-height: 100px;
    font-size: .72rem;
    padding: 16px 8px 14px;
    border-radius: 16px;
    gap: 8px;
    animation: fadeUp var(--item-anim, .3s) ease;
  }
  .dash-item::before { display: none !important; }
  .dash-item:active  { transform: scale(.93); box-shadow: 0 0 0 3px var(--ic, #6c63ff)20 !important; }
  .dash-label { color: var(--text); font-weight: 600; font-size: .69rem; line-height: 1.3; }
  .dash-badge {
    top: 7px; right: 7px;
    background: var(--ic, #6c63ff) !important;
    font-size: .58rem; min-width: 17px; height: 17px;
    padding: 0 4px; border-radius: 8px;
    color: #fff !important; font-weight: 700;
    border: none;
  }
  .ds-stat-row { animation: fadeUp .5s ease; }
  .dash-section-title { animation: fadeUp .55s ease; }
  .dash-grid         { animation: fadeUp .6s ease; }

  /* ── Stat row ── */
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* ── Modal — bottom sheet ── */
  .modal {
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    margin-top: auto;
    position: relative;
    scrollbar-width: none;
  }
  .modal::-webkit-scrollbar { display: none; }
  .modal::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 4px;
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .modal-header { padding-top: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   Küçük telefon (max-width: 480px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-item  { min-height: 90px; }
  .topbar-right { font-size: .72rem; gap: 4px; }
  .mob-nav-icon-wrap { width: 38px; }
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT TEMA
   ═══════════════════════════════════════════════════════════════ */
/* ── Light tema — standalone renkli kart stili ── */
@media (max-width: 768px) {
  [data-theme="light"] .dash-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
  }
  [data-theme="light"] .dash-item {
    background: var(--item-bg, #f1f5f9) !important;
    border-color: transparent !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
  }
  [data-theme="light"] .dash-label {
    color: #333 !important;
    font-weight: 600;
  }
  [data-theme="light"] .ds-icon-wrap {
    background: var(--item-bg, #f1f5f9);
  }
  [data-theme="light"] .ds-stat-card {
    background: #fff;
    border-color: #e8eaf0;
  }
  [data-theme="light"] .ds-stat-num { color: #111; }
  [data-theme="light"] .ds-stat-lbl { color: #666; }
  [data-theme="light"] .ds-trend.up   { color: #059669; background: #f0fdf4; }
  [data-theme="light"] .ds-trend.down { color: #dc2626; background: #fef2f2; }
  [data-theme="light"] .dash-section-title { color: #888; }
}

[data-theme="light"] .mobile-bottom-nav {
  background: #ffffff;
  border-bottom-color: #e8eaf0;
  box-shadow: 0 2px 12px rgba(108,99,255,.07);
}
[data-theme="light"] .mob-nav-item.active .mob-nav-icon-wrap {
  background: rgba(108,99,255,.12);
}
[data-theme="light"] .topbar {
  background: #ffffff;
  border-bottom-color: #e8eaf0;
  box-shadow: 0 1px 0 #e8eaf0, 0 2px 12px rgba(108,99,255,.07);
}
[data-theme="light"] .sidebar.mob-open {
  box-shadow: 8px 0 40px rgba(108,99,255,.12);
}
[data-theme="light"] .nav-link.active {
  background: rgba(108,99,255,.1);
  color: var(--accent);
}
[data-theme="light"] .card {
  box-shadow: 0 2px 12px rgba(108,99,255,.08);
}
