/* ==========================================================================
   OtoKolik CRM — Kırmızı, Siyah, Beyaz Prestijli Tasarım Sistemi
   ========================================================================== */

:root {
  /* Ana Renk Paleti (Kırmızı, Siyah, Beyaz) */
  --red-primary:   #E11D48; /* Canlı Yarış Kırmızısı */
  --red-hover:     #BE123C;
  --red-active:    #9F1239;
  --red-soft:      #FFF1F2;
  --red-mid:       #FFE4E6;
  --red-border:    rgba(225, 29, 72, 0.25);
  --red-glow:      0 0 24px rgba(225, 29, 72, 0.35);

  /* Siyah & Koyu Tonlar (Obsidyen & Karbon) */
  --black-pitch:   #05070A;
  --black-surface: #0A0D14;
  --black-card:    #111622;
  --black-muted:   #1A2130;
  --black-line:    #242D3D;

  /* Beyaz & Açık Tonlar */
  --white:         #FFFFFF;
  --bg-light:      #F8FAFC;
  --surface-light: #FFFFFF;
  --card-light:    #FFFFFF;
  --line-light:    #E2E8F0;
  --line-subtle:   #F1F5F9;

  /* Dinamik Zemin & Metin Değişkenleri (Varsayılan: Açık Mod - Kırmızı/Siyah Vurgulu) */
  --bg:            var(--bg-light);
  --surface:       var(--surface-light);
  --card-bg:       var(--card-light);
  --line:          var(--line-light);
  --ink-1:         #0A0D14; /* Koyu Siyah Başlıklar */
  --ink-2:         #334155; /* Gövde Metni */
  --ink-3:         #64748B; /* Yardımcı Metin */
  --ink-4:         #94A3B8; /* Soluk İpuçları */

  /* Sidebar (Her iki modda da zengin, derin Karbon Siyahı) */
  --sb-bg:         linear-gradient(180deg, #090C12 0%, #0F1420 100%);
  --sb-line:       rgba(255, 255, 255, 0.08);
  --sb-text:       rgba(255, 255, 255, 0.75);
  --sb-text-hover: #FFFFFF;
  --sb-active-bg:  linear-gradient(90deg, rgba(225, 29, 72, 0.16) 0%, rgba(225, 29, 72, 0.04) 100%);
  --sb-active-border: #E11D48;

  /* Durum Renkleri */
  --green:         #10B981;
  --green-soft:    #ECFDF5;
  --green-border:  rgba(16, 185, 129, 0.25);
  --orange:        #F59E0B;
  --orange-soft:   #FFFBEB;
  --orange-border: rgba(245, 158, 11, 0.25);
  --blue:          #3B82F6;
  --blue-soft:     #EFF6FF;
  --blue-border:   rgba(59, 130, 246, 0.25);

  /* Köşe Radius & Gölgeler */
  --r-xl: 18px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 6px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(10, 13, 20, 0.04);
  --shadow-md: 0 4px 14px rgba(10, 13, 20, 0.06), 0 1px 3px rgba(10, 13, 20, 0.04);
  --shadow-lg: 0 12px 30px rgba(10, 13, 20, 0.10), 0 2px 8px rgba(10, 13, 20, 0.04);
  --shadow-xl: 0 24px 48px rgba(10, 13, 20, 0.16);
  --shadow-red: 0 8px 24px rgba(225, 29, 72, 0.28);

  /* Tipografi */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ===================================================
   RESET & TEMEL STİLLER
   =================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  transition: all .18s cubic-bezier(.4,0,.2,1);
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}

/* ===================================================
   UYGULAMA KABUĞU (APP SHELL)
   =================================================== */
.app {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ===================================================
   SIDEBAR (SOL MENÜ - PREMİUM SİYAH & KIRMIZI)
   =================================================== */
.sidebar {
  width: 268px;
  flex: none;
  background: var(--sb-bg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  border-right: 1px solid var(--sb-line);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Logo Alanı */
.logo-area {
  padding: 22px 18px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--sb-line);
  position: relative;
}

.logo-box {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: #FFFFFF;
  display: grid;
  place-items: center;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.2);
  flex: none;
  transition: transform .2s ease;
}

.logo-box:hover {
  transform: scale(1.05);
}

.brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-primary);
}

.brand-tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Canlı Durum Rozeti */
.sidebar-status {
  margin: 14px 16px 8px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseGreen 2s infinite;
  flex: none;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.badge-mini {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(225, 29, 72, 0.25);
  border: 1px solid rgba(225, 29, 72, 0.4);
  padding: 2px 7px;
  border-radius: var(--r-full);
}

/* Menü Öğeleri */
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  flex: 1;
}

.nav-section-title {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sb-text);
  position: relative;
  transition: all .18s ease;
}

.nav-item svg {
  color: rgba(255, 255, 255, 0.45);
  transition: all .18s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sb-text-hover);
  transform: translateX(2px);
}

.nav-item:hover svg {
  color: #FFFFFF;
  transform: scale(1.08);
}

.nav-item.active {
  background: var(--sb-active-bg);
  color: #FFFFFF;
  font-weight: 600;
  border-left: 3px solid var(--sb-active-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-item.active svg {
  color: var(--red-primary);
  filter: drop-shadow(0 0 6px rgba(225, 29, 72, 0.5));
}

.nav-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
}
.nav-pill.red {
  background: var(--red-primary);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
}

/* Sidebar Alt Kısmı */
.sidebar-foot {
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sb-line);
  background: rgba(0, 0, 0, 0.2);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .18s ease;
}

.user-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-primary) 0%, #9F1239 100%);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  flex: none;
}

.user-chip-info {
  flex: 1;
  min-width: 0;
}

.user-chip-info b {
  display: block;
  font-size: 13px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip-info span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-arrow svg {
  color: rgba(255, 255, 255, 0.3);
  width: 16px;
  height: 16px;
}

.sidebar-overlay {
  display: none;
}

/* ===================================================
   ANA ALAN & TOPBAR (ÜST BAR)
   =================================================== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  height: 68px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.topbar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.03em;
}

/* Genel Arama Alanı */
.search-box {
  flex: 1;
  max-width: 440px;
  margin: 0 auto 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 12px;
  height: 42px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
  transition: all .2s ease;
}

.search-box:focus-within {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.search-ic {
  color: var(--ink-4);
  width: 17px;
  height: 17px;
}

.search-box:focus-within .search-ic {
  color: var(--red-primary);
}

.search-box input {
  border: none;
  outline: none;
  background: none;
  flex: 1;
  font-size: 13.5px;
  color: var(--ink-1);
}

.search-box input::placeholder {
  color: var(--ink-4);
}

.shortcut-key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-4);
  background: var(--line-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Üst Bar Aksiyonları */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: all .18s ease;
  position: relative;
}

.icon-btn:hover {
  background: var(--line-subtle);
  color: var(--ink-1);
  border-color: var(--line);
  transform: translateY(-1px);
}

.icon-btn.badge-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  background: var(--red-primary);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

/* Hızlı İşlem Açılır Menü */
.quick-add-wrap {
  position: relative;
}

.quick-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 6px;
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 80;
  animation: popIn .16s ease;
}

.quick-dropdown.show {
  display: flex;
}

.quick-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-1);
  text-align: left;
  transition: all .15s ease;
}

.quick-dropdown button svg {
  width: 17px;
  height: 17px;
  color: var(--red-primary);
}

.quick-dropdown button:hover {
  background: var(--red-soft);
  color: var(--red-primary);
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  cursor: pointer;
  background: #FFFFFF;
  transition: all .18s ease;
  margin-left: 4px;
}

.topbar-user:hover {
  border-color: var(--red-primary);
  box-shadow: var(--shadow-sm);
}

.topbar-user .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-primary) 0%, #9F1239 100%);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.topbar-user-info b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.2;
}

.topbar-user-info span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
}

.menu-btn {
  display: none;
}

/* ===================================================
   SAYFA İÇERİĞİ (VIEW) & GENEL BİLEŞENLER
   =================================================== */
.view {
  padding: 26px 32px 60px;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  animation: fadeIn .2s cubic-bezier(.2,.7,.3,1);
}

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

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-head p {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===================================================
   BUTONLAR
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all .18s cubic-bezier(.4,0,.2,1);
}

.btn:active {
  transform: translateY(1px);
}

/* Kırmızı Birincil Buton */
.btn.primary {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-hover) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-red);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--red-hover) 0%, var(--red-active) 100%);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.4);
  transform: translateY(-1px);
}

/* Siyah İkincil Buton */
.btn.dark {
  background: var(--black-surface);
  color: #FFFFFF;
  border-color: var(--black-line);
}

.btn.dark:hover {
  background: #000000;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Beyaz / Hayalet Buton */
.btn.ghost {
  background: #FFFFFF;
  color: var(--ink-1);
  border-color: var(--line);
}

.btn.ghost:hover {
  background: var(--line-subtle);
  border-color: var(--ink-4);
  transform: translateY(-1px);
}

/* Tehlike Butonu */
.btn.danger-soft {
  background: #FFF1F2;
  color: var(--red-primary);
  border-color: rgba(225, 29, 72, 0.2);
}

.btn.danger-soft:hover {
  background: var(--red-primary);
  color: #FFFFFF;
  border-color: var(--red-primary);
}

.btn.sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--r-sm);
}

/* ===================================================
   METRİK KARTLARI (KPI CARDS)
   =================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(10, 13, 20, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 13, 20, 0.10);
  border-color: rgba(225, 29, 72, 0.3);
}

/* Kartların Canlı Renk Gradyan Zeminleri & İnce Vurguları */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: transparent;
  transition: background .2s ease;
}

.card-red {
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.05) 0%, var(--card-bg) 70%);
  border-color: rgba(225, 29, 72, 0.22);
}
.card-red::before   { background: linear-gradient(90deg, #E11D48, #FF2E63); }

.card-green {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.06) 0%, var(--card-bg) 70%);
  border-color: rgba(16, 185, 129, 0.25);
}
.card-green::before { background: linear-gradient(90deg, #10B981, #059669); }

.card-blue {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.06) 0%, var(--card-bg) 70%);
  border-color: rgba(59, 130, 246, 0.25);
}
.card-blue::before  { background: linear-gradient(90deg, #3B82F6, #6366F1); }

.card-slate {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.04) 0%, var(--card-bg) 70%);
  border-color: rgba(15, 23, 42, 0.15);
}
.card-slate::before { background: linear-gradient(90deg, #0F172A, #334155); }

.card .ic {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform .2s ease;
}

.card:hover .ic {
  transform: scale(1.08) rotate(-2deg);
}

.card .ic.red   { background: rgba(225, 29, 72, 0.12); color: #E11D48; border: 1.5px solid rgba(225, 29, 72, 0.3); box-shadow: 0 4px 12px rgba(225, 29, 72, 0.18); }
.card .ic.green { background: rgba(16, 185, 129, 0.12); color: #10B981; border: 1.5px solid rgba(16, 185, 129, 0.3); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18); }
.card .ic.blue  { background: rgba(59, 130, 246, 0.12); color: #2563EB; border: 1.5px solid rgba(59, 130, 246, 0.3); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.18); }
.card .ic.slate { background: rgba(15, 23, 42, 0.08); color: var(--ink-1); border: 1.5px solid rgba(15, 23, 42, 0.15); }

.card small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-1);
  line-height: 1.15;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.card .sub {
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card .sub.up   { color: #10B981; }
.card .sub.down { color: #E11D48; }
.card .sub.mut  { color: var(--ink-3); }

/* ===================================================
   PANELLER & TABLOLAR
   =================================================== */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.panel {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s ease;
}

.panel:hover {
  border-color: rgba(0,0,0,0.12);
}

.panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FAFAFA;
}

.panel-head h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}

.panel-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--red-primary);
}

.panel-head a:hover {
  text-decoration: underline;
}

.panel-body {
  padding: 0;
  overflow-x: auto;
}

/* Tablolar */
.tbl {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.tbl th {
  padding: 11px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #F8FAFC;
  border-bottom: 1px solid var(--line);
}

.tbl td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-subtle);
  color: var(--ink-2);
  vertical-align: middle;
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl tr.clickable {
  cursor: pointer;
  transition: background .12s ease;
}

.tbl tr.clickable:hover {
  background: #F8FAFC;
}

.firm-cell b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
}

.firm-cell span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}

/* ===================================================
   DURUM ROZETLERİ (PILLS & BADGES)
   =================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pill::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pill.green  { background: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16, 185, 129, 0.35); font-weight: 800; }
.pill.red    { background: rgba(225, 29, 72, 0.12); color: #E11D48; border: 1px solid rgba(225, 29, 72, 0.35); font-weight: 800; }
.pill.orange { background: rgba(245, 158, 11, 0.12); color: #D97706; border: 1px solid rgba(245, 158, 11, 0.35); font-weight: 800; }
.pill.blue   { background: rgba(59, 130, 246, 0.12); color: #2563EB; border: 1px solid rgba(59, 130, 246, 0.35); font-weight: 800; }
.pill.gray   { background: rgba(148, 163, 184, 0.12); color: #334155; border: 1px solid rgba(148, 163, 184, 0.3); font-weight: 700; }

.pill.plain::before {
  display: none;
}

/* ===================================================
   ÜRÜN KATALOĞU (GRID & KART GÖRÜNÜMÜ)
   =================================================== */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}

.filter-pill:hover {
  border-color: var(--ink-2);
  color: var(--ink-1);
}

.filter-pill.active {
  background: var(--black-surface);
  color: #FFFFFF;
  border-color: var(--black-surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(225, 29, 72, 0.3);
}

.p-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.p-img-box {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: #F8FAFC;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}

.p-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-info {
  flex: 1;
  min-width: 0;
}

.p-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.p-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.3;
  margin-top: 2px;
}

.p-barcode {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  display: block;
  margin-top: 2px;
}

.p-pricing {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.p-cost {
  font-size: 12px;
  color: var(--ink-3);
}

.p-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-1);
}

.p-stock-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stock-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stock-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #F1F5F9;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
}

.stock-btn:hover {
  background: var(--red-soft);
  color: var(--red-primary);
  border-color: var(--red-border);
}

/* ===================================================
   FİRMA DETAY KARTI & CARİ ÖZET
   =================================================== */
.detail-head {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.detail-head .avatar {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.detail-head h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-1);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-head .meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 6px;
  flex-wrap: wrap;
}

.detail-head .meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance-box {
  margin-left: auto;
  text-align: right;
  padding: 10px 18px;
  border-radius: var(--r-md);
  background: var(--red-soft);
  border: 1px solid var(--red-border);
}

.balance-box small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--red-primary);
  text-transform: uppercase;
}

.balance-box b {
  font-size: 22px;
  font-weight: 800;
  color: var(--red-primary);
}

/* ===================================================
   SİPARİŞ KARTLARI
   =================================================== */
.order-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px;
}

.order-card {
  background: #FAFAFA;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  transition: all .18s ease;
}

.order-card:hover {
  background: #FFFFFF;
  border-color: var(--red-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.oc-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oc-firma {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.oc-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.oc-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-1);
}

/* ===================================================
   MODALLAR & FORMLAR
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--r-xl);
  padding: 26px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: modalScale .3s cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] .modal {
  background: rgba(17, 22, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
  background: #FFFFFF;
  color: var(--ink-1);
  outline: none;
  transition: all .18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.line-item {
  display: grid;
  grid-template-columns: 2fr 80px 100px 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.line-item select,
.line-item input {
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  background: #FFFFFF;
}

.order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 14px;
}

.order-total b {
  font-size: 22px;
  color: var(--red-primary);
}

/* ===================================================
   TOAST BİLDİRİMLERİ
   =================================================== */
.toast-wrap {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--black-pitch);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn .22s cubic-bezier(.16,1,.3,1);
}

.toast svg {
  color: var(--green);
  width: 17px;
  height: 17px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}

/* ===================================================
   BOŞ DURUM (EMPTY STATE)
   =================================================== */
.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--ink-3);
}

.empty svg {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  opacity: 0.35;
  color: var(--red-primary);
}

.empty b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 4px;
}

/* ===================================================
   KOYU MOD (DARK MODE — PREMİUM SİYAH & KIRMIZI)
   =================================================== */
body.dark {
  --bg:            #070A0F;
  --surface:       #0F141E;
  --card-bg:       #121824;
  --line:          #1C2433;
  --line-subtle:   #151C28;
  --ink-1:         #FFFFFF;
  --ink-2:         #E2E8F0;
  --ink-3:         #94A3B8;
  --ink-4:         #475569;

  --sb-bg:         linear-gradient(180deg, #05070B 0%, #0A0E17 100%);
  --sb-line:       rgba(255, 255, 255, 0.06);
}

body.dark .topbar {
  background: rgba(7, 10, 15, 0.85);
  border-bottom-color: var(--line);
}

body.dark .topbar-user {
  background: var(--card-bg);
  border-color: var(--line);
}

body.dark .search-box {
  background: #0B0F17;
  border-color: var(--line);
}

body.dark .search-box input {
  color: #FFFFFF;
}

body.dark .quick-dropdown {
  background: #111622;
  border-color: var(--line);
}

body.dark .quick-dropdown button {
  color: #FFFFFF;
}

body.dark .quick-dropdown button:hover {
  background: rgba(225, 29, 72, 0.15);
}

body.dark .card,
body.dark .panel,
body.dark .product-card,
body.dark .detail-head {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body.dark .panel-head {
  background: #0D121B;
}

body.dark .tbl th {
  background: #0B0E15;
}

body.dark .tbl tr.clickable:hover {
  background: #151D2C;
}

body.dark .order-card {
  background: #0E131C;
}

body.dark .order-card:hover {
  background: #151C28;
}

body.dark .filter-pill {
  background: #121824;
  border-color: var(--line);
  color: var(--ink-3);
}

body.dark .filter-pill.active {
  background: var(--red-primary);
  color: #FFFFFF;
  border-color: var(--red-primary);
}

body.dark .field input,
body.dark .field select,
body.dark .field textarea,
body.dark .line-item input,
body.dark .line-item select {
  background: #0B0F17;
  border-color: var(--line);
  color: #FFFFFF;
}

body.dark .modal {
  background: #0F141E;
  border-color: var(--line);
}

body.dark .btn.ghost {
  background: #121824;
  border-color: var(--line);
  color: #FFFFFF;
}

body.dark .btn.ghost:hover {
  background: #1A2232;
}

body.dark .stock-btn {
  background: #1A2232;
  border-color: var(--line);
  color: #FFFFFF;
}

body.dark .order-total {
  background: #0B0F17;
}

/* ===================================================
   MOBİL & DUYARLILIK (RESPONSIVE)
   =================================================== */
.hide-desktop {
  display: none;
}

.bottom-nav {
  display: none;
}

@media (max-width: 1200px) {
  .sidebar { width: 230px; }
  .cards   { grid-template-columns: repeat(2, 1fr); }
  .panels  { grid-template-columns: 1fr; }
  .order-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform .24s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-xl);
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 10, 0.65);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  .sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-btn { display: grid; }
  .hide-desktop { display: flex; }
  .hide-m { display: none !important; }

  .mobile-logo-img {
    height: 32px;
    width: auto;
  }

  .topbar {
    padding: 0 12px;
    height: 56px;
    gap: 8px;
  }

  .topbar-title { display: none; }
  .search-box {
    max-width: none;
    margin: 0;
    height: 36px;
    padding: 0 10px;
  }
  .shortcut-key { display: none; }

  .topbar-actions {
    gap: 4px;
  }
  .topbar-actions .icon-btn {
    width: 36px;
    height: 36px;
  }

  .view {
    padding: 14px 14px calc(84px + env(safe-area-inset-bottom));
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  .page-head .btn-row {
    width: 100%;
  }
  .page-head .btn-row .btn {
    flex: 1;
    justify-content: center;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .order-cards {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .detail-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }
  .balance-box {
    width: 100%;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .catalog-toolbar .search-box {
    max-width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .line-item {
    grid-template-columns: 1fr 60px 75px 32px;
    gap: 6px;
  }

  .panel-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tbl th, .tbl td {
    padding: 10px 12px;
    white-space: nowrap;
  }
  .tbl th.firm-cell, .tbl td.firm-cell {
    white-space: normal;
    min-width: 140px;
  }

  /* Mobil Modallar (Bottom-Sheet Stili) */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    max-width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 90vh;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
    animation: slideUpMobile .22s cubic-bezier(.16, 1, .3, 1);
  }
  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  /* Mobil Alt Navigasyon (Bottom Nav) */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #0A0D14;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    padding: 4px 0;
  }
  .bottom-nav a svg {
    width: 20px;
    height: 20px;
  }
  .bottom-nav a.active {
    color: var(--red-primary);
    font-weight: 700;
  }
  .bottom-nav .fab-item .fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-primary) 0%, #BE123C 100%);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    margin-top: -24px;
    box-shadow: var(--shadow-red);
    border: 3px solid #0A0D14;
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 14px;
  }
}

/* ===================================================
   YAZDIRMA & RESMİ BELGE (A4 ÇIKTILAR)
   =================================================== */
#print-area {
  display: none;
}

@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .app, .bottom-nav, .toast-wrap, .modal-overlay {
    display: none !important;
  }
  #print-area {
    display: block !important;
    padding: 20px;
  }
  #print-area * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ===================================================
   KULLANICI MENÜSÜ & OTURUM / GİRİŞ SİSTEMİ
   =================================================== */
.logout-mini-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.4);
  transition: all .15s ease;
}
.logout-mini-btn:hover {
  background: rgba(225, 29, 72, 0.2);
  color: var(--red-primary);
}
.logout-mini-btn svg {
  width: 16px;
  height: 16px;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 85;
  animation: popIn .16s ease;
}
.user-dropdown.show {
  display: flex;
}
body.dark .user-dropdown {
  background: #111622;
  border-color: var(--line);
}
.user-dd-head {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.user-dd-head b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-1);
}
.user-dd-head span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
}
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  text-align: left;
  transition: all .15s ease;
}
.user-dropdown button:hover {
  background: var(--line-subtle);
}
body.dark .user-dropdown button:hover {
  background: #1A2232;
}
.user-dropdown button svg {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}

/* ===================================================
   GİRİŞ / KİLİT EKRANI (LOGIN SCREEN)
   =================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #121826 0%, #05070B 100%);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 410px;
  background: #0D121B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 36px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(225, 29, 72, 0.2);
  text-align: center;
  position: relative;
  animation: modalScale .25s cubic-bezier(.16, 1, .3, 1);
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}
.login-logo-box {
  width: 76px;
  height: 76px;
  border-radius: var(--r-lg);
  background: #FFFFFF;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.login-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.login-title {
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.login-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 22px;
}
.login-user-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}
.login-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  background: #06090F;
  color: #FFFFFF;
  font-size: 16px;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-align: center;
  outline: none;
  transition: all .2s ease;
  margin-bottom: 12px;
}
.login-input:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25);
}
.login-input::placeholder {
  letter-spacing: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}
.login-err {
  font-size: 12px;
  color: var(--red-primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: none;
}

/* ===================================================
   PWA UYGULAMAYI YÜKLE (WEB-TO-APP) STİLLERİ
   =================================================== */
.pwa-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(244, 63, 94, 0.08));
  color: var(--red-light);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.15);
}
.pwa-top-btn:hover {
  background: var(--red-primary);
  color: #FFFFFF;
  border-color: var(--red-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}
.pwa-top-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.sb-pwa-card {
  margin: 10px 14px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.12), rgba(10, 13, 20, 0.9));
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-pwa-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.sb-pwa-head img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}
.sb-pwa-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}
.sb-pwa-desc {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.3;
}
.sb-pwa-action {
  width: 100%;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--red-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s ease;
}
.sb-pwa-action:hover {
  background: var(--red-hover);
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
}
.sb-pwa-action svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* Yükleme Bilgilendirme Modal */
.pwa-modal-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  background: var(--bg-hover);
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.pwa-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red-primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pwa-step-content b {
  display: block;
  font-size: 13px;
  color: var(--ink-1);
  margin-bottom: 2px;
}
.pwa-step-content p {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.4;
}

/* Demo Modu Temizleme Butonu (Topbar) */
.demo-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-md);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #D97706;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-top-btn:hover {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: #F59E0B;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.demo-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseOrange 2s infinite;
}
@keyframes pulseOrange {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Grafik Etkileşim & Canlılık */
.chart-group:hover .chart-hover-col {
  opacity: 1 !important;
}
.chart-group rect:hover {
  filter: drop-shadow(0 6px 14px rgba(225, 29, 72, 0.35)) brightness(1.1) !important;
}

/* Ürün Kataloğu Grid & Kart Tasarımı (2026 Modern SaaS) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red-border);
}
.p-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.p-img-box {
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.product-card:hover .p-img-box img {
  transform: scale(1.08);
}
.p-info {
  flex: 1;
  min-width: 0;
}
.p-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red-primary);
  margin-bottom: 3px;
  letter-spacing: .4px;
}
.p-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.35;
  margin-bottom: 4px;
}
.p-barcode {
  display: block;
  font-size: 11px;
  color: var(--ink-4);
  font-family: var(--font-mono);
}
.p-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.p-cost {
  font-size: 12px;
  color: var(--ink-3);
}
.p-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-1);
}
.p-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stock-control {
  display: flex;
  align-items: center;
  gap: 4px;
}
.stock-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.stock-btn:hover {
  background: var(--red-primary);
  color: #FFFFFF;
  border-color: var(--red-primary);
}



