﻿@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* 🚀 Dinamik Geçişler ve Yükleme Efektleri */
.tab-content {
  animation: tabFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.data-updating {
  animation: pulseOpacity 1s infinite alternate;
}

@keyframes pulseOpacity {
  from { opacity: 1; }
  to { opacity: 0.7; }
}

:root {
  --bg-base: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F1F5F9;
  --border-light: rgba(0,0,0,0.04);
  --border: #E2E8F0;
  --primary: #F97316;
  --primary-hover: #EA580C;
  --primary-glow: rgba(249, 115, 22, 0.15);
  --text-high: #0F172A;
  --text-med: #475569;
  --text-low: #94A3B8;
  
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --bg-soft: #F8FAFC;
  --bg-muted: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.92);
  
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: 'Manrope', var(--font-sans);

  /* SuperAdmin Aliases */
  --bg-main: var(--bg-base);
  --bg-card: var(--bg-surface);
}

[data-theme="dark"] {
  --bg-base: #0f1115;
  --bg-surface: #16181d;
  --bg-surface-hover: #1e2028;
  --border-light: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);
  --text-high: #F8FAFC;
  --text-med: #CBD5E1;
  --text-low: #94A3B8;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --bg-soft: rgba(255, 255, 255, 0.03);
  --bg-muted: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(22, 24, 29, 0.92);

  --bg-main: var(--bg-base);
  --bg-card: var(--bg-surface);
}

* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-high);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografi (Yazı Tipleri) Ayarları */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); margin: 0; }

/* Mobil ve Masaüstü Cihazlara Özel Gizleme/Gösterme Sınıfları */
.mobile-hide, .mobile-hide-flex, .mobile-hide-inline { }

@media (max-width: 900px) {
  .mobile-hide, .mobile-hide-flex, .mobile-hide-inline { display: none !important; }
  .desktop-hide { display: block !important; }
}

.desktop-hide { display: none !important; }

/* Ortak Buton Stilleri */
button { font-family: var(--font-sans); cursor: pointer; border: none; background: transparent; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
button:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.1px;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; pointer-events: none; }

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-high);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}
.btn-outline:hover {
  border-color: var(--primary); color: var(--primary); background: var(--bg-surface-hover);
}

/* Temel Sayfa Düzeni (Layout) */
.admin-layout { display: flex; height: 100vh; overflow: hidden; }

/* Sol Menü (Sidebar) Yapısı */
.sidebar {
  width: 270px;
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 50;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.02);
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  color: inherit !important;
}

.brand-content {
  display: flex;
  flex-direction: column;
}

.brand-layer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 5px;
  box-shadow: 0 0 15px var(--primary-glow);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-high);
  letter-spacing: -0.8px;
  line-height: 1;
}

.brand-sub {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-low);
  letter-spacing: 1.8px;
  margin-top: 4px;
  opacity: 0.8;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-low);
  padding: 18px 12px 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.8;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--text-med);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: var(--bg-surface-hover);
  color: var(--text-high);
  transform: translateX(3px);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(249,115,22,0.05));
  color: var(--primary);
  font-weight: 800;
  border: 1px solid rgba(249,115,22,0.15);
  box-shadow: 0 4px 12px rgba(249,115,22,0.05);
}

.nav-link.active .nav-icon {
  color: var(--primary);
  transform: scale(1.1);
}

.nav-icon {
  font-size: 18px;
  transition: transform 0.2s;
  color: inherit;
  opacity: 0.9;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  margin-top: auto;
}

.btn-logout-premium {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: #fff;
  color: #ef4444;
  border: 1.5px solid #fee2e2;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
}

.btn-logout-premium:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}

.btn-logout-premium i {
  font-size: 18px;
}

.sidebar-close-btn {
  display: none;
  width: 38px;
  height: 38px;
  background: var(--bg-surface-hover);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--text-high);
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s;
}

/* Ana İçerik Alanı (Main Content) */
.main-content { flex: 1; display: flex; flex-direction: column; background: var(--bg-base); overflow: hidden; }

/* Üst Bilgi Barı (Topbar) */
.topbar {
  height: 80px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; z-index: 40;
}
[data-theme="dark"] .topbar { background: rgba(22, 24, 29, 0.8); }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.menu-toggle-btn { display: none; font-size: 24px; color: var(--text-high); }
/* Mobil alt navigasyon (uygulama hissi) — masaüstünde gizli */
.mobile-bottom-nav { display: none; }
.page-title { font-family: var(--font-sans); margin: 0; display: flex; align-items: center; font-size: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }

/* Sayfa İçerik Taşıyıcısı (Content Wrapper) */
.content-wrapper { flex: 1; overflow-y: auto; padding: 32px 32px 100px 32px; scroll-behavior: smooth; }
.page-section { display: none; animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.page-section.active { display: block; }

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Cards & Blocks */
.block-card, .dash-card {
  background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.block-card:hover, .dash-card:hover { box-shadow: var(--shadow-md); border-color: var(--border); }
.block-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); }
.block-title { font-size: 16px; font-weight: 700; color: var(--text-high); display: flex; align-items: center; gap: 8px; }
.block-body { padding: 24px; }

/* Dash Hero */
.dash-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: none; border-radius: var(--radius-xl); padding: 48px;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1); position: relative; overflow: hidden;
}
.dash-hero::after {
  content: ''; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%); opacity: 0.8; pointer-events: none;
}
.dash-hero-title { font-size: 32px; font-weight: 800; color: #FFFFFF; margin-bottom: 12px; letter-spacing: -1px; }
.dash-hero-desc { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 500px; line-height: 1.6; }
.dash-hero-btn { z-index: 1; padding: 14px 28px; border-radius: var(--radius-md); background: var(--primary); color: #FFFFFF; font-weight: 700; display: flex; align-items: center; gap: 8px; font-size: 14px; box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3); }
.dash-hero-btn:hover { background: var(--text-med); transform: translateY(-2px); }

/* Stats Grid Modern */
.stats-grid-modern { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 32px; }
.stat-card-modern {
  background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: var(--shadow-xs); transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card-modern:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(255,107,53,0.3); }
.stat-icon-box {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px;
}
.stat-revenue .stat-icon-box { background: rgba(56, 189, 248, 0.1); color: #38bdf8; }
.stat-orders .stat-icon-box { background: rgba(167, 139, 250, 0.1); color: #a855f7; }
.stat-pending .stat-icon-box { background: rgba(250, 204, 21, 0.1); color: #eab308; }
.stat-tables .stat-icon-box { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.stat-label-modern { font-size: 13px; font-weight: 600; color: var(--text-low); margin-bottom: 6px; }
.stat-value-modern { font-size: 28px; font-weight: 800; color: var(--text-high); font-family: var(--font-head); margin-bottom: 4px; }

/* Quick Actions */
.btn-quick-action {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-base); border-radius: var(--radius-md);
  margin-bottom: 12px; color: var(--text-high); font-weight: 600; border: 1px solid var(--border); transition: all 0.2s;
}
.btn-quick-action:hover { background: var(--bg-surface); border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.btn-quick-action i { color: var(--primary); font-size: 18px; }
.btn-quick-action .arrow { margin-left: auto; color: var(--text-low); font-size: 14px; }

/* ═══ Sub Badge — KARE İKON KUTULU MODERN PLAN ROZETİ ═══
   Yapı: [ikon kutusu][label]  · sol kutu plan rengi (full saturated),
   sağ taraf soft renkli zemin. Tutarlı kare köşeli (radius 12px). */
.sub-badge-premium {
  display: inline-flex; align-items: center; gap: 0;
  padding: 0;
  background: linear-gradient(135deg, rgba(255,107,53,0.10), rgba(255,107,53,0.04));
  border: 1px solid rgba(255,107,53,0.22);
  border-radius: 12px;
  overflow: hidden;
  cursor: default;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(255,107,53,0.10);
}
.sub-badge-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,107,53,0.20);
}
.sub-badge-premium .sub-badge-icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FF6B35, #EA580C);
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.sub-badge-premium .sub-badge-label {
  padding: 0 12px 0 10px;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.5px;
  color: #ea580c;
  text-transform: uppercase;
  line-height: 30px;
}

/* ── KURUMSAL (Enterprise) ── altın/amber */
.sub-badge-premium.enterprise,
.sub-badge-premium.kurumsal {
  background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(251,191,36,0.04));
  border-color: rgba(251,191,36,0.28);
  box-shadow: 0 2px 8px rgba(251,191,36,0.12);
}
.sub-badge-premium.enterprise:hover,
.sub-badge-premium.kurumsal:hover {
  box-shadow: 0 6px 16px rgba(251,191,36,0.22);
}
.sub-badge-premium.enterprise .sub-badge-icon,
.sub-badge-premium.kurumsal .sub-badge-icon {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.sub-badge-premium.enterprise .sub-badge-label,
.sub-badge-premium.kurumsal .sub-badge-label {
  color: #b45309;
}

/* ── DENEME (Trial) ── mor */
.sub-badge-premium.trial {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(139,92,246,0.04));
  border-color: rgba(139,92,246,0.28);
  box-shadow: 0 2px 8px rgba(139,92,246,0.12);
}
.sub-badge-premium.trial:hover {
  box-shadow: 0 6px 16px rgba(139,92,246,0.22);
}
.sub-badge-premium.trial .sub-badge-icon {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  animation: badgePulse 2s ease-in-out infinite;
}
.sub-badge-premium.trial .sub-badge-label {
  color: #6d28d9;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 0 0 rgba(139,92,246,0.4); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 0 6px rgba(139,92,246,0); }
}

/* ── BAŞLANGIÇ (Basic) ── indigo */
.sub-badge-premium.basic {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(99,102,241,0.04));
  border-color: rgba(99,102,241,0.28);
  box-shadow: 0 2px 8px rgba(99,102,241,0.12);
}
.sub-badge-premium.basic:hover {
  box-shadow: 0 6px 16px rgba(99,102,241,0.22);
}
.sub-badge-premium.basic .sub-badge-icon {
  background: linear-gradient(135deg, #818cf8, #4f46e5);
}
.sub-badge-premium.basic .sub-badge-label {
  color: #4338ca;
}

/* ── ÜYE (Member) ── slate gri (ücretsiz/pasif) */
.sub-badge-premium.member {
  background: linear-gradient(135deg, rgba(100,116,139,0.10), rgba(100,116,139,0.03));
  border-color: rgba(100,116,139,0.20);
  box-shadow: 0 2px 6px rgba(100,116,139,0.08);
}
.sub-badge-premium.member .sub-badge-icon {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}
.sub-badge-premium.member .sub-badge-label {
  color: #475569;
}

/* ── SÜRE DOLDU (Expired) ── kırmızı uyarı */
.sub-badge-premium.expired {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.04));
  border-color: rgba(239,68,68,0.30);
  box-shadow: 0 2px 8px rgba(239,68,68,0.15);
  animation: expiredShake 0.5s ease-in-out 0s 1;
}
.sub-badge-premium.expired .sub-badge-icon {
  background: linear-gradient(135deg, #f87171, #dc2626);
}
.sub-badge-premium.expired .sub-badge-label {
  color: #b91c1c;
}
@keyframes expiredShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* Mobil — sadece ikon kutusu görünür, label gizli */
@media (max-width: 768px) {
  .sub-badge-premium .sub-badge-label { display: none; }
  .sub-badge-premium { border-radius: 10px; }
  .sub-badge-premium .sub-badge-icon { width: 32px; height: 32px; font-size: 15px; }
}

/* Grid items */
.dash-row-split { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

/* Ayarlar Sayfası Düzeni */
.settings-container-premium {
  display: flex !important;
  flex-direction: row !important;
  gap: 32px !important;
  align-items: flex-start !important;
  width: 100% !important;
}

.settings-nav-sidebar {
  width: 260px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-lg) !important;
  padding: 12px !important;
  box-shadow: var(--shadow-sm) !important;
  position: sticky !important;
  top: 20px !important;
}

.settings-content-wrapper {
  flex: 1 !important;
  min-width: 0 !important;
  display: block !important;
}

.settings-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 18px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--text-med) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
}

.settings-nav-item:hover { 
  background: var(--bg-surface-hover) !important; 
  color: var(--text-high) !important; 
}

.settings-nav-item.active {
  background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(255,107,53,0.04)) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  border-color: rgba(255,107,53,0.2) !important;
  box-shadow: inset 0 0 0 1px rgba(255,107,53,0.1) !important;
}

.settings-pane { 
  display: none; 
  width: 100% !important;
}

.settings-pane.active { 
  display: block !important; 
}

.settings-glass-card {
  background: var(--bg-surface) !important;
  padding: 32px !important;
  border-radius: var(--radius-xl) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.settings-pane-header {
  display: flex !important;
  gap: 16px !important;
  align-items: center !important;
  margin-bottom: 32px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.settings-pane-icon {
  width: 56px !important;
  height: 56px !important;
  background: rgba(255,107,53,0.08) !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--primary) !important;
  font-size: 28px !important;
  border: 1px solid rgba(255,107,53,0.15) !important;
  flex-shrink: 0 !important;
}

.settings-pane-title { 
  font-size: 20px !important; 
  font-weight: 800 !important; 
  color: var(--text-high) !important; 
  margin-bottom: 4px !important; 
}

.settings-card-desc { 
  font-size: 14px !important; 
  color: var(--text-low) !important; 
  margin: 0 !important; 
}

.settings-field-group { 
  margin-bottom: 28px !important; 
}

.settings-label-premium { 
  display: block !important; 
  font-size: 14px !important; 
  font-weight: 700 !important; 
  color: var(--text-high) !important; 
  margin-bottom: 10px !important; 
}

.settings-input-container { 
  position: relative !important; 
  width: 100% !important;
}
.settings-input-premium, .login-input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px 12px 48px; font-family: inherit; font-size: 14px; background: var(--bg-surface); color: var(--text-high); transition: 0.2s;
}
.settings-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-low); font-size: 18px; }
.settings-input-premium:focus, .login-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); outline: none; }

/* Inputs with no icon offset */
.login-input { padding: 14px 16px; }

/* Toggle Switch - Tek ve doğru implementasyon aşağıda (line ~1677) */

/* Login Modal Fixed overlapping */
.login-overlay { position: fixed; inset: 0; background: var(--bg-base); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-overlay.hidden { display: none; }
.login-card { width: 100%; max-width: 500px; background: var(--bg-surface); padding: 48px 52px; border-radius: 28px; box-shadow: 0 24px 80px rgba(0,0,0,0.12); border: 1px solid var(--border-light); z-index: 10000; overflow-y: auto; max-height: 95vh; }
.login-logo-box { width: 80px; height: 80px; margin: 0 auto 28px; display: flex; align-items: center; justify-content: center; }
.login-logo-box img { width: 100%; height: 100%; border-radius: 20px; box-shadow: 0 12px 28px var(--primary-glow); }
.login-title { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; color: var(--text-high); }
.login-subtitle { font-size: 14px; color: var(--text-med); text-align: center; margin-bottom: 32px; }
.login-form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text-low); margin-bottom: 8px; }
.login-form-group.checkbox-group { flex-direction: row !important; align-items: flex-start !important; gap: 12px; margin-top: 10px; }
.login-form-group.checkbox-group label { margin-bottom: 0; font-weight: 500; text-transform: none; line-height: 1.5; cursor: pointer; color: var(--text-med); }
.login-form-group.checkbox-group input { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.login-btn { background: var(--primary); color: #fff; width: 100%; padding: 14px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 14px var(--primary-glow); border: none; cursor: pointer; transition: 0.2s; }
.login-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }
.login-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }

.login-btn-outline { background: transparent; color: var(--text-med); width: 100%; padding: 14px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--border); cursor: pointer; transition: 0.2s; }
.login-btn-outline:hover { background: var(--bg-surface-hover); color: var(--text-high); border-color: var(--text-low); }

/* Admin Loader screen fixed */
#admin-loader-screen {
  position: fixed; inset: 0; z-index: 99999; background: var(--bg-base); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; transition: opacity 0.5s ease; opacity: 1;
}
#admin-loader-screen.fade-out { opacity: 0; pointer-events: none; }
.loader-logo-wrap { display: flex; align-items: center; justify-content: center; animation: loaderPulse 1.5s ease-in-out infinite; }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.premium-loader-spinner { width: 36px; height: 36px; border: 3px solid rgba(255, 127, 80, 0.15); border-top-color: var(--primary); border-radius: 50%; animation: adminSpin 0.85s linear infinite; }
@keyframes adminSpin { to { transform: rotate(360deg); } }

/* QR Card */
.qr-premium-card { background: var(--bg-surface); border: 1px solid var(--border-light); padding: 32px; border-radius: var(--radius-xl); display: flex; gap: 32px; align-items: center; margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.genel-qr-wrap { width: 140px; height: 140px; background: #fff; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }

/* Menu Products Grid */
.menu-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }

/* ═════ JS GENERATED UI CLASSES (Menü & Yönlendirme) ═════ */
/* Category Filters */
.cat-filter-pill-modern {
  display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; 
  border-radius: 100px; border: 1px solid var(--border-light); 
  background: var(--bg-surface); cursor: pointer; transition: 0.2s;
  flex-shrink: 0; box-shadow: var(--shadow-sm); height: 44px;
}
.cat-filter-pill-modern:hover { border-color: var(--primary); transform: translateY(-1px); }
.cat-filter-pill-modern.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-filter-pill-modern.active .cat-pill-name-modern, .cat-filter-pill-modern.active .cat-pill-count-modern { color: #fff; }
.cat-pill-img-wrap { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #fff; display: flex; align-items: center; justify-content: center; }
.cat-pill-name-modern { font-size: 13px; font-weight: 700; color: var(--text-high); white-space: nowrap; }
.cat-pill-count-modern { font-size: 11px; font-weight: 700; color: var(--text-low); background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 10px; }
.cat-filter-pill-modern.active .cat-pill-count-modern { background: rgba(255,255,255,0.2); }

/* Product Cards */
.product-card-saas {
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: 0.3s; cursor: pointer; position: relative;
}
.product-card-saas:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.product-card-saas.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255,107,53,0.2); }
.product-card-saas .bulk-check { position:absolute; top:10px; left:10px; z-index:5; width:28px; height:28px; border-radius:8px; background:rgba(255,255,255,.92); border:1.5px solid var(--border); display:none; align-items:center; justify-content:center; backdrop-filter:blur(4px); color:transparent; font-size:16px; font-weight:900; transition:.18s; pointer-events:none; }
.product-card-saas.bulk-mode .bulk-check { display:flex; }
.product-card-saas.bulk-mode { cursor:pointer; }
.product-card-saas.bulk-mode:hover { transform:translateY(-2px); }
.product-card-saas.bulk-checked { border-color:var(--primary); box-shadow: 0 0 0 2px rgba(255,107,53,.35); }
.product-card-saas.bulk-checked .bulk-check { background:var(--primary); border-color:var(--primary); color:#fff; }
.product-card-saas.bulk-mode .saas-card-img-wrap::after { content:''; position:absolute; inset:0; background:rgba(15,23,42,.06); pointer-events:none; }
.product-card-saas.bulk-mode.bulk-checked .saas-card-img-wrap::after { background:rgba(255,107,53,.18); }
#btn-bulk-select.bulk-active { background:var(--primary); color:#fff; border-color:var(--primary); }
.saas-card-img-wrap { width: 100%; aspect-ratio: 16/9; position: relative; background: #f1f5f9; overflow: hidden; }
.saas-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card-saas:hover .saas-card-img { transform: scale(1.05); }
.saas-status-badge {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.9);
  color: var(--text-high); font-size: 11px; font-weight: 800; padding: 4px 8px;
  border-radius: 6px; backdrop-filter: blur(4px); box-shadow: var(--shadow-sm);
}
.saas-status-badge.active { background: #22c55e; color: #fff; }
.saas-card-content { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.saas-card-cat { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.5px; }
.saas-card-title { font-size: 15px; font-weight: 800; color: var(--text-high); margin-bottom: 6px; line-height: 1.3; }
.saas-card-desc { font-size: 12px; color: var(--text-med); opacity: 0.8; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.saas-card-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border-light); }
.saas-card-price { font-size: 18px; font-weight: 800; color: var(--text-high); }

/* Sidebar Product Detail */
.sidebar-empty-state-modern { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; flex: 1; min-height: 300px; }
.sidebar-modern-animate { animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.sidebar-close-mobile { display: none; position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-surface-hover); align-items: center; justify-content: center; cursor: pointer; color: var(--text-high); z-index: 10; }
.detail-sidebar-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.detail-sidebar-title { font-size: 24px; font-weight: 800; color: var(--text-high); margin-bottom: 8px; letter-spacing: -0.5px; }
.detail-sidebar-cat { font-size: 14px; color: var(--text-med); font-weight: 500; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.availability-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--bg-surface-hover); border-radius: var(--radius-md); margin-bottom: 24px; border: 1px solid var(--border-light); }
.sidebar-action-btns { display: flex; gap: 12px; margin-bottom: 24px; }
.btn-sidebar-modern { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--radius-md); font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: 0.2s; }
.btn-sidebar-modern.primary { background: rgba(255,107,53,0.1); color: var(--primary); border-color: rgba(255,107,53,0.2); }
.btn-sidebar-modern.primary:hover { background: rgba(255,107,53,0.2); }
.btn-sidebar-modern.danger:hover { background: rgba(239,68,68,0.2); }
.sidebar-section-title { font-size: 14px; font-weight: 800; color: var(--text-high); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Dashboard Cards (Quick blocks styling if missing) */
.dash-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); overflow: hidden; position: relative; }
.block-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.block-header { padding: 16px 20px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; background: var(--bg-surface-hover); }
.block-title { font-size: 14px; font-weight: 800; color: var(--text-high); display: flex; align-items: center; gap: 8px; }
.block-title i { color: var(--primary); }
.btn-quick-action { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px; background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius-md); font-size: 14px; font-weight: 700; color: var(--text-high); cursor: pointer; transition: 0.2s; margin-bottom: 12px; }
.btn-quick-action:hover { background: var(--bg-surface-hover); border-color: var(--text-med); transform: translateY(-1px); }

/* 4. Plan Cards (Subscription) - PREMIUM REFINEMENT */
.plan-card {
  padding: 40px 32px;
  display: flex !important;
  flex-direction: column;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: default;
  /* .dash-card'ın overflow:hidden'ını ez: rozetin görünmesi için gerekli */
  overflow: visible !important;
}

.plan-card:hover { 
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12), 0 0 0 1px var(--primary);
  border-color: var(--primary) !important;
}

#plan-card-premium {
  z-index: 10;
}

.plan-card.active-plan {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 20px 40px rgba(255,107,53,0.15);
}

#plan-card-enterprise.active-plan {
  border: 2px solid #FFC107 !important;
  box-shadow: 0 20px 40px rgba(255,193,7,0.15);
}

.plan-card ul li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 2px;
}

.plan-card .btn-primary, .plan-card .btn-outline {
  transition: all 0.3s ease;
}

.sidebar-section-title { font-size: 14px; font-weight: 800; color: var(--text-high); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }

/* 1. Action Sticky Bar */
.action-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 270px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 16px 32px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.action-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.action-sticky-bar {
  opacity: 0;
  pointer-events: none;
}
[data-theme="dark"] .action-sticky-bar { background: rgba(22, 24, 29, 0.95); }

.info-status-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-surface-hover); padding: 8px 16px;
  border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--text-med);
}
.status-indicator-dot { width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }

.btn-secondary-modern {
  padding: 12px 24px; border: 1px solid var(--border); background: var(--bg-surface);
  color: var(--text-high); font-weight: 700; border-radius: var(--radius-md); font-size: 14px;
}
.btn-secondary-modern:hover { background: var(--bg-surface-hover); border-color: var(--text-low); }

/* 2. Menu Dashboard Sidebar */
.menu-detail-sidebar-sticky {
  position: sticky; top: 32px;
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); padding: 32px; min-height: 400px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}

/* 3. QR Wraps */
.genel-qr-wrap canvas, .genel-qr-wrap img {
  max-width: 100% !important; height: auto !important; object-fit: contain; margin: 0 auto;
}

/* Restaurants & Categories */
.restaurants-grid-modern { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.category-filter-scroll-premium {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: none;
  /* Grid/flex parent içinde 1fr kolonunda overflow için zorunlu —
     min-width:0 olmadan içerik dışarı taşıyıp scroll'u kilitliyordu. */
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.category-filter-scroll-premium::-webkit-scrollbar { display: none; }
.category-filter-scroll-premium > * { flex-shrink: 0; scroll-snap-align: start; }
/* Sağ kenarda fade efekti — daha fazla kategori olduğunu görsel olarak ipuçlar */
.menu-search-row { position: relative; }
.menu-search-row::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 8px;
  width: 40px;
  background: linear-gradient(to left, var(--bg-base, #F8FAFC) 20%, transparent);
  pointer-events: none;
}

/* Responsive Overrides */

/* Notification & Topbar Actions */
.notif-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-med);
  font-size: 18px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-btn:hover {
  background: rgba(255, 107, 53, 0.05);
  border-color: rgba(255, 107, 53, 0.2);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.notif-badge.pulse {
  animation: notifPulse 1.5s infinite;
}

@keyframes notifPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}


@media (max-width: 900px) {
  .sidebar { 
    position: fixed; 
    top: 0; 
    bottom: 0; 
    left: -290px; 
    z-index: 1000;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    background: var(--bg-surface) !important;
    border-right: 1px solid var(--border) !important;
  }
  .sidebar.open { 
    transform: translateX(290px);
    visibility: visible;
    box-shadow: 20px 0 60px rgba(0,0,0,0.15);
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 999;
    display: none;
    transition: all 0.4s ease;
    pointer-events: none;
  }

  .mobile-backdrop.open {
    display: block !important;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto;
  }

  .menu-toggle-btn { display: block; }

  /* ─── MOBİL ALT NAVİGASYON ─── */
  .mobile-bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
    background: var(--bg-surface); border-top: 1px solid var(--border-light);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) 4px;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
  }
  .mbn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 7px 2px; background: none; border: none; cursor: pointer;
    color: var(--text-low); font-size: 10px; font-weight: 700; border-radius: 14px;
    transition: color .2s, background .2s; -webkit-tap-highlight-color: transparent;
  }
  .mbn-item i { font-size: 21px; line-height: 1; }
  .mbn-item.active { color: var(--primary); background: var(--primary-glow); }

  /* ─── EKRANA TAM OTURMA: yatay taşma / kayma önleme ─── */
  html, body { overflow-x: hidden; max-width: 100%; }
  .main-content { max-width: 100vw; overflow-x: hidden; }
  .content-wrapper { overflow-x: hidden; max-width: 100%; }
  .content-wrapper img { max-width: 100%; height: auto; }
  /* Geniş esnek/iki sütunlu inline grid'leri tek sütuna indir (taşmasın) */
  .content-wrapper [style*="minmax(200px"],
  .content-wrapper [style*="minmax(220px"],
  .content-wrapper [style*="minmax(240px"],
  .content-wrapper [style*="minmax(260px"],
  .content-wrapper [style*="minmax(280px"],
  .content-wrapper [style*="minmax(300px"],
  .content-wrapper [style*="minmax(340px"],
  .content-wrapper [style*="minmax(360px"],
  .content-wrapper [style*="grid-template-columns: 2fr"],
  .content-wrapper [style*="grid-template-columns:2fr"],
  .content-wrapper [style*="grid-template-columns: 1fr 1fr"],
  .content-wrapper [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  /* Tablo sarmalları sayfayı taşırmasın, kendi içinde kaysın */
  .content-wrapper table { width: 100%; max-width: 100%; }
  .topbar { padding: 0 12px; height: 64px; gap: 8px; }
  .topbar-left { gap: 8px; }
  .topbar-actions { gap: 8px; }

  /* Notification Panel Modern UI */
  .notif-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px;
    border-bottom: 1px solid var(--border-light); transition: all 0.2s;
    cursor: default;
  }
  .notif-item:hover { background: var(--bg-surface-hover); }
  .notif-item:last-child { border-bottom: none; }
  
  .notif-icon-box {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
  }
  
  .notif-content { flex: 1; min-width: 0; }
  .notif-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
  .notif-table { font-size: 13px; font-weight: 800; color: var(--text-high); }
  .notif-time { font-size: 11px; font-weight: 600; color: var(--text-low); }
  .notif-label { font-size: 12px; font-weight: 600; color: var(--text-med); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  
  .notif-complete-btn {
    width: 32px; height: 32px; border-radius: 8px; background: var(--bg-surface);
    border: 1px solid var(--border-light); color: var(--text-med);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    transition: all 0.2s;
  }
  .notif-complete-btn:hover {
    background: #22C55E; border-color: #22C55E; color: white; transform: scale(1.05); box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
  }
  
  .notif-clear-all {
    font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-glow);
    padding: 6px 10px; border-radius: 8px; border: none; transition: 0.2s;
    cursor: pointer;
  }
  .notif-clear-all:hover { background: var(--primary); color: white; }
  
  /* Mobil badge yeni yapıdaki @media (max-width: 768px) tarafından yönetiliyor */
  
  .notif-btn { width: 38px; height: 38px; }
  
  .page-title { font-size: 14px; overflow: hidden; gap: 4px; }
  .page-title-text { 
    max-width: 140px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
  }
  
  .content-wrapper { padding: 16px 16px 100px 16px; }
  .settings-layout, .settings-container-premium, .dash-row-split, .qr-premium-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 20px;
  }
  .settings-nav-sidebar { position: static; }
  .settings-content-wrapper { width: 100%; }

  .sidebar-close-btn {
    display: flex;
    width: 38px;
    height: 38px;
    background: var(--bg-surface-hover);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: var(--text-high);
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
  }
  .sidebar-close-btn:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px 20px 24px;
  }

  .action-sticky-bar {
    left: 0 !important;
    padding: 12px 20px;
  }
}

/* MODALS & OVERLAYS BASE FIXES */
.modal-overlay, .crop-modal-overlay, .rest-modal {
  display: none;
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
  z-index: 100000;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.active, .modal-overlay.open, .crop-modal-overlay.active, .crop-modal-overlay.open, .rest-modal.active, .modal-overlay[style*="display: flex"], .rest-modal[style*="display: flex"] {
  display: flex !important;
}
.modal-content, .crop-modal, .rest-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%; max-width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ════ CROP MODAL ═══════════════════════════════════════════════ */
.crop-modal {
  background: #161b2e !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  padding: 24px !important;
  max-width: 460px !important;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5) !important;
}

.crop-canvas-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  background: #0b0f1e;
  border-radius: 14px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.crop-canvas-wrap:active { cursor: grabbing; }

#crop-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#crop-frame {
  position: absolute !important;
  inset: 20px !important;
  border: 2px solid rgba(255,107,53,0.95) !important;
  border-radius: 14px !important;
  pointer-events: none !important;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.62) !important;
}

#crop-zoom {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  flex: 1;
}
#crop-zoom::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FF6B35;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255,107,53,0.4);
}
#crop-zoom::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FF6B35;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(255,107,53,0.4);
}
.modal-header, .rest-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header h2, .rest-modal-title { font-size: 20px; font-weight: 800; color: var(--text-high); }
.modal-close-btn, .rest-modal-close {
  background: rgba(0,0,0,0.04); border: none; width: 32px; height: 32px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-med); font-size: 16px; transition: 0.2s;
}
.modal-close-btn:hover, .rest-modal-close:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-grid > .form-group { min-width: 0; }

/* Ürün modalı — görsel yükleme alanı */
.product-image-group .product-img-zone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.product-img-preview {
  width: 100%;
  max-height: 140px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-surface-hover);
  flex-shrink: 0;
}
.product-img-preview.is-hidden { display: none !important; }
.product-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-img-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: 2px dashed var(--border-light);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-surface-hover);
  min-height: 120px;
  transition: border-color 0.2s, background 0.2s;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-med);
  text-align: center;
}
.product-img-dropzone i { font-size: 24px; color: var(--text-low); }
.product-img-dropzone:hover { border-color: var(--primary); background: rgba(255, 107, 53, 0.04); }
.product-image-group.has-preview .product-img-dropzone {
  min-height: 64px;
  padding: 12px 16px;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-high); margin-bottom: 8px; }
.form-control {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 16px; font-family: inherit; font-size: 14px;
  background: var(--bg-surface); color: var(--text-high); transition: 0.2s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); outline: none; }

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Toast — Modern Premium */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  left: auto;
  transform: translateX(120%);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 1000000;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  color: #0f172a;
}
[data-theme="dark"] .toast {
  background: rgba(22, 24, 29, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}
.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: currentColor;
  opacity: 0.4;
}
.toast-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.toast-body { flex: 1; }
.toast-title { font-weight: 800; font-size: 13px; margin-bottom: 2px; }
.toast-msg   { font-size: 13px; opacity: 0.75; font-weight: 500; }
.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  border-radius: 0 0 16px 16px;
  animation: toastProgress 3s linear forwards;
}
@keyframes toastProgress {
  from { width: 100%; } to { width: 0%; }
}
/* Tip renkleri */
.toast.success { color: #16a34a; }
.toast.success .toast-icon  { background: rgba(22,163,74,0.1); }
.toast.success .toast-progress { background: #22c55e; }
.toast.success::before { background: #22c55e; opacity: 1; }

.toast.error { color: #dc2626; }
.toast.error .toast-icon    { background: rgba(220,38,38,0.1); }
.toast.error .toast-progress { background: #ef4444; }
.toast.error::before { background: #ef4444; opacity: 1; }

.toast.warning { color: #d97706; }
.toast.warning .toast-icon  { background: rgba(217,119,6,0.1); }
.toast.warning .toast-progress { background: #f59e0b; }
.toast.warning::before { background: #f59e0b; opacity: 1; }

.toast.info { color: #2563eb; }
.toast.info .toast-icon     { background: rgba(37,99,235,0.1); }
.toast.info .toast-progress { background: #3b82f6; }
.toast.info::before { background: #3b82f6; opacity: 1; }

.toast.show { transform: translateX(0); opacity: 1; pointer-events: auto; }

/* ═══════════════════════════════════════════════════════════════
   KAMPANYA KARTLARI — Premium Design
   ═══════════════════════════════════════════════════════════════ */

/* Kart */
.camp-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.camp-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }

.camp-card-header { display: flex; align-items: flex-start; gap: 12px; }
.camp-type-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.camp-card-title-wrap { flex: 1; }
.camp-type-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.camp-card-title { font-size: 16px; font-weight: 800; color: var(--text-high); margin: 0; }

.camp-card-desc { font-size: 13px; color: var(--text-med); line-height: 1.55; margin: 0; }

.camp-card-meta { display: flex; flex-direction: column; gap: 6px; }
.camp-meta-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-med); font-weight: 600; }

.camp-card-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border-light); padding-top: 14px; }

/* Badge'lar */
.camp-badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px; letter-spacing: 0.3px; }
.camp-badge-active  { background: rgba(34,197,94,0.12);  color: #22c55e; }
.camp-badge-off     { background: rgba(148,163,184,0.1); color: #94a3b8; }
.camp-badge-expired { background: rgba(239,68,68,0.1);   color: #ef4444; }
.camp-badge-pending { background: rgba(245,158,11,0.1);  color: #f59e0b; }

.camp-discount-pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px; }

.camp-delete-btn {
  margin-left: auto; width: 32px; height: 32px; border-radius: 10px;
  border: 1px solid rgba(239,68,68,0.2); background: rgba(239,68,68,0.05);
  color: #ef4444; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.camp-delete-btn:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); }

/* Modal — Kampanya Tipi Seçici */
.camp-type-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; }
.camp-type-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 8px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--bg-surface);
  font-size: 12px; font-weight: 700; color: var(--text-med);
  transition: 0.2s; text-align: center;
}
.camp-type-card i { font-size: 20px; }
.camp-type-card:hover { border-color: var(--primary); color: var(--primary); }
.camp-type-card.active { border-color: var(--primary); background: rgba(255,107,53,0.08); color: var(--primary); }

/* Gün Chip'leri */
.day-chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip {
  display: flex; align-items: center; gap: 5px; padding: 6px 12px;
  border-radius: 10px; border: 1.5px solid var(--border); cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--text-med); transition: 0.2s;
}
.day-chip:has(input:checked) { border-color: #6366f1; background: rgba(99,102,241,0.1); color: #6366f1; }
.day-chip input { display: none; }

/* Kampanya Hedefleme Çipleri */
.target-type-chip {
  flex: 1; height: 40px; border-radius: 12px; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-med); cursor: pointer;
  transition: 0.2s; background: var(--bg-surface);
}
.target-type-chip.active {
  border-color: var(--primary); background: rgba(255,107,53,0.08); color: var(--primary);
}

.campaign-product-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.campaign-product-item:hover { background: rgba(0,0,0,0.04); }
.campaign-product-item input[type="checkbox"] {
  width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border);
  appearance: none; -webkit-appearance: none; outline: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.campaign-product-item input[type="checkbox"]:checked {
  background: var(--primary); border-color: var(--primary);
}
.campaign-product-item input[type="checkbox"]:checked::after {
  content: '\F26E'; font-family: "bootstrap-icons"; color: white; font-size: 12px;
}
.campaign-product-item span { font-size: 13px; font-weight: 600; color: var(--text-high); }

/* Kampanya Düzenleme Butonu */
.camp-edit-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--bg-surface); color: var(--text-med);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 0.2s; margin-left: auto;
}
.camp-edit-btn:hover { border-color: #6366f1; color: #6366f1; background: rgba(99,102,241,0.05); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modern Ekleme Butonu (Yeni Kampanya vb.) */
.modern-add-btn {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #FF6B35 0%, #FF4D00 100%);
  border: none; padding: 0 24px; height: 52px;
  border-radius: 16px; font-weight: 800; color: #fff;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.35);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  font-size: 15px;
}
.modern-add-btn i { font-size: 18px; }
.modern-add-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.5);
  filter: brightness(1.1);
}
.modern-add-btn:active { transform: translateY(-1px) scale(0.98); }

/* ═══════════════════════════════════════════════════════════════
   SUPER ADMIN PANEL — v4.0 Premium Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Tab Hide/Show (KRİTİK — Bu olmazsa tüm tablar görünür) ── */
.sa-tab-content          { display: none !important; }
.sa-tab-content.active   { display: block !important; }

/* ── Genel Sayfa ─────────────────────────────────────────────── */
#section-superadmin {
  background: var(--bg-main);
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────── */
.sa-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.sa-header-info h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-high);
  letter-spacing: -0.5px;
  margin: 0 0 4px;
}
.sa-header-info p {
  font-size: 13px;
  color: var(--text-low);
  margin: 0;
}
.sa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
}
.status-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.dot-green  { background:#22c55e; box-shadow:0 0 8px rgba(34,197,94,.5); animation: pulse-green 2s infinite; }
@keyframes pulse-green {
  0%, 100% { opacity: 1; } 50% { opacity: 0.5; }
}

/* ── Metrik Kartlar ──────────────────────────────────────────── */
.sa-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.sa-stat-card {
  padding: 20px 24px 16px !important;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sa-stat-card:hover { transform: translateY(-3px); }
.sa-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-low);
  margin-bottom: 8px;
}
.sa-stat-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-high);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 12px;
}
.sa-stat-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}
.sa-stat-spark div {
  flex: 1;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(255,107,53,.3) 100%);
  border-radius: 3px 3px 0 0;
  transition: height 0.3s ease;
  min-width: 0;
}

/* ── Sekmeler (Tabs) ─────────────────────────────────────────── */
.sa-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.sa-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 11px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-low);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.sa-tab-btn i { font-size: 14px; }
.sa-tab-btn:hover {
  background: rgba(255,107,53,.08);
  color: var(--primary);
}
.sa-tab-btn.active {
  background: linear-gradient(135deg, var(--primary), #E04B2A);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255,107,53,.3);
}

/* ── Section Başlıkları ──────────────────────────────────────── */
.sa-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-high);
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}
.sa-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.sa-tab-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Arama & Select ──────────────────────────────────────────── */
.sa-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-main);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 220px;
}
.sa-search-wrap i { color: var(--text-low); font-size: 14px; }
.sa-modern-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-high);
  font-family: inherit;
  width: 100%;
  min-width: 100px;
}
.sa-modern-select {
  background: var(--bg-main);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-high);
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

/* ── Üye Özet Kartları ───────────────────────────────────────── */
.sa-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.sa-summary-tile {
  padding: 16px 20px;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.2s;
}
.sa-summary-tile:hover { transform: translateY(-2px); }
.sa-summary-tile.trial  { background:rgba(245,158,11,.08);  border:1px solid rgba(245,158,11,.2); }
.sa-summary-tile.active { background:rgba(34,197,94,.08);   border:1px solid rgba(34,197,94,.2); }
.sa-summary-tile.expired{ background:rgba(239,68,68,.08);   border:1px solid rgba(239,68,68,.2); }
.sa-summary-tile.total  { background:rgba(99,102,241,.08);  border:1px solid rgba(99,102,241,.2); }
.sa-tile-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-high);
  line-height: 1;
  margin-bottom: 4px;
}
.sa-tile-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── Mini Loglar ─────────────────────────────────────────────── */
.sa-mini-logs {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ── Badge'ler ───────────────────────────────────────────────── */
.sa-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sa-badge-success { background:rgba(34,197,94,.12);  color:#16a34a; }
.sa-badge-warning { background:rgba(245,158,11,.12); color:#d97706; }
.sa-badge-danger  { background:rgba(239,68,68,.12);  color:#dc2626; }

/* ── Table Utility ───────────────────────────────────────────── */
/* ─── LIVE TABLES GRID ────────────────────────── */
.admin-lt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.admin-lt-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.admin-lt-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px -6px rgba(0,0,0,0.08);
}

.admin-lt-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-lt-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-high);
}

.admin-lt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.admin-lt-card.empty .admin-lt-dot { background: #10b981; }
.admin-lt-card.occupied .admin-lt-dot { background: var(--primary); }
.admin-lt-card.alert .admin-lt-dot { background: #f59e0b; animation: pulse-alert 1.5s infinite; }
.admin-lt-card.bill .admin-lt-dot { background: #ef4444; animation: pulse-bill 1.5s infinite; }

.admin-lt-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-lt-amount {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-high);
}

.lt-legend-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-med);
}

.lt-legend-pill span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.lt-legend-pill.empty span { background: #10b981; }
.lt-legend-pill.occupied span { background: var(--primary); }
.lt-legend-pill.alert span { background: #f59e0b; }
.lt-legend-pill.bill span { background: #ef4444; }

@keyframes pulse-alert {
    0% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

@keyframes pulse-bill {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.sa-table-row-error td { background: rgba(239,68,68,.04); }

/* ── Realtime Badge ──────────────────────────────────────────── */
.sa-realtime-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 6px 14px;
}
.sa-live-indicator {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

/* ── Link Btn ────────────────────────────────────────────────── */
.sa-link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

/* ── Pagination ──────────────────────────────────────────────── */
.sa-pagination-modern {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 4px;
  flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sa-metrics-grid  { grid-template-columns: repeat(2, 1fr); }
  .sa-summary-row   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sa-metrics-grid  { grid-template-columns: 1fr; }
  .sa-summary-row   { grid-template-columns: repeat(2, 1fr); }
  .sa-header-modern { flex-direction: column; align-items: flex-start; }
  .sa-tabs          { gap: 4px; }
  .sa-tab-btn       { padding: 8px 12px; font-size: 12px; }
}

/* ── Boş Durum (Empty State) ─────────────────────────────────── */
.dash-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}
.empty-state-icon {
  font-size: 40px;
  color: var(--primary);
  opacity: 0.25;
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}
.empty-state-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-high);
  opacity: 0.6;
}
.empty-state-desc {
  font-size: 12px;
  color: var(--text-low);
  max-width: 260px;
  line-height: 1.6;
}

/* SUCCESS MODAL PREMIUM (v4.0) */
.success-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 200000;
  align-items: center; justify-content: center;
  padding: 20px;
}

.success-modal-overlay.open { display: flex !important; }

.success-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  width: 100%; max-width: 440px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: cardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; overflow: hidden;
}

.success-icon-wrap {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
  border-radius: 50%;
  margin: 0 auto 32px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 48px;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
  animation: iconPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.success-title {
  font-size: 28px; font-weight: 800;
  color: var(--text-high); margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.success-text {
  font-size: 15px; color: var(--text-med);
  line-height: 1.6; margin-bottom: 32px;
}

.success-btn {
  background: var(--primary);
  color: #fff; border: none;
  width: 100%; height: 56px;
  border-radius: 18px; font-weight: 800;
  font-size: 16px; cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
}

.success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.3);
  filter: brightness(1.1);
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.8) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes iconPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Confetti Simulation */
.confetti {
  position: absolute; width: 8px; height: 8px;
  border-radius: 2px;
}


/* ── PREMIUM DROPDOWNS & CORE POSITIONING ─────────────────── */
.dropdown-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.985); /* Arkadaki içeriği maskelemek için yüksek opaklık */
  backdrop-filter: blur(45px) saturate(210%);
  -webkit-backdrop-filter: blur(45px) saturate(210%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.02);
  display: none;
  flex-direction: column;
  z-index: 2000;
  overflow: hidden;
  transform-origin: top right;
  animation: premiumFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.active { display: flex; }

@keyframes premiumFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── DROPDOWNS COMPONENTS (CONSOLIDATED) ──────────────────── */
.dropdown-header {
  padding: 14px 18px 8px;
  font-size: 10.5px;
  font-weight: 850;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.6;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-med);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-high);
}

.dropdown-item i {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: 0.25s;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  margin: 8px 0;
}

/* ── PROFILE & NOTIFICATION SPECIFICS ─────────────────────── */
#profile-dropdown { width: 320px !important; }

/* Profile dropdown menü ikonları — tutarlı, modern, anlamı uyumlu palette */
#profile-dropdown .profile-menu-list .dropdown-item {
  padding: 11px 16px;
  margin: 2px 8px;
  border-radius: 12px;
}
#profile-dropdown .profile-menu-list .dropdown-item > i:first-child {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.2s;
}

/* Ayarlar — slate gri (nötr araç) */
#profile-dropdown .dropdown-item.settings > i:first-child {
  color: #475569;
  background: linear-gradient(135deg, rgba(71,85,105,0.10), rgba(71,85,105,0.04));
  border: 1px solid rgba(71,85,105,0.08);
}
#profile-dropdown .dropdown-item.settings:hover > i:first-child {
  color: #fff;
  background: linear-gradient(135deg, #475569, #334155);
  border-color: transparent;
}

/* Abonelik & Faturalama — yeşil (para/billing) */
#profile-dropdown .dropdown-item.billing > i:first-child {
  color: #059669;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04));
  border: 1px solid rgba(16,185,129,0.15);
}
#profile-dropdown .dropdown-item.billing:hover > i:first-child {
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: transparent;
}

/* Planı Yükselt — brand turuncu gradient (yükseltme = brand momentum) */
#profile-dropdown .dropdown-item.upgrade > i:first-child {
  color: #ea580c;
  background: linear-gradient(135deg, rgba(255,107,53,0.14), rgba(255,107,53,0.04));
  border: 1px solid rgba(255,107,53,0.18);
}
#profile-dropdown .dropdown-item.upgrade:hover > i:first-child {
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #ea580c);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

/* Çıkış — soft kırmızı (yıkıcı eylem, ama saldırgan değil) */
#profile-dropdown .dropdown-item.logout > i:first-child {
  color: #dc2626;
  background: linear-gradient(135deg, rgba(239,68,68,0.10), rgba(239,68,68,0.03));
  border: 1px solid rgba(239,68,68,0.12);
}
#profile-dropdown .dropdown-item.logout:hover > i:first-child {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: transparent;
}

/* Hover: hafif zemin + sola kayma (item-arrow zaten görünür)  */
#profile-dropdown .profile-menu-list .dropdown-item:hover {
  background: rgba(15,23,42,0.03);
  transform: translateX(0);
}

/* ── PROFİL MENÜSÜ — MODERN SAAS TASARIM ───────────── */
.profile-menu { width: 320px !important; padding: 0; border-radius: 18px !important; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,0.16), 0 4px 12px rgba(15,23,42,0.06) !important; border: 1px solid rgba(15,23,42,0.06) !important; }

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px 18px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}
/* Plan-bazlı dekoratif accent — sağ üstte parıltı */
.profile-card::before {
  content: "";
  position: absolute;
  top: -60%; right: -20%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,107,53,0.35), transparent 65%);
  pointer-events: none;
  transition: background 0.3s;
}
.profile-card::after {
  content: "";
  position: absolute;
  bottom: -50%; left: -10%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,107,53,0.18), transparent 65%);
  pointer-events: none;
}
.profile-card.enterprise::before { background: radial-gradient(circle, rgba(251,191,36,0.4), transparent 65%); }
.profile-card.enterprise::after  { background: radial-gradient(circle, rgba(251,191,36,0.2), transparent 65%); }
.profile-card.kurumsal::before   { background: radial-gradient(circle, rgba(251,191,36,0.4), transparent 65%); }
.profile-card.kurumsal::after    { background: radial-gradient(circle, rgba(251,191,36,0.2), transparent 65%); }
.profile-card.trial::before      { background: radial-gradient(circle, rgba(139,92,246,0.4), transparent 65%); }
.profile-card.trial::after       { background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 65%); }
.profile-card.basic::before      { background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 65%); }
.profile-card.basic::after       { background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 65%); }

.profile-card-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35 0%, #ea580c 100%);
  border: 2px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(255,107,53,0.35);
}
.profile-card-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-card.enterprise .profile-card-avatar,
.profile-card.kurumsal .profile-card-avatar { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); box-shadow: 0 6px 16px rgba(251,191,36,0.35); }
.profile-card.trial .profile-card-avatar { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); box-shadow: 0 6px 16px rgba(139,92,246,0.35); }
.profile-card.basic .profile-card-avatar { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); box-shadow: 0 6px 16px rgba(99,102,241,0.35); }

.profile-card-info { min-width: 0; flex: 1; position: relative; z-index: 2; }
.profile-card-name {
  font-size: 15px; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.3px;
}
.profile-card-email {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.65);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 3px;
}

/* Plan rozeti — premium SaaS hissi, plan rengiyle harmoni */
.profile-plan-pill {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 20px 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(255,107,53,0.02));
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: 12px;
  font-size: 12.5px; font-weight: 800;
  color: var(--text-high);
  letter-spacing: -0.2px;
  transition: all 0.2s;
}
.profile-plan-pill i { color: var(--primary); font-size: 15px; }
.profile-plan-pill.enterprise,
.profile-plan-pill.kurumsal {
  background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(251,191,36,0.02));
  border-color: rgba(251,191,36,0.25);
}
.profile-plan-pill.enterprise i,
.profile-plan-pill.kurumsal i { color: #d97706; }
.profile-plan-pill.trial {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(139,92,246,0.02));
  border-color: rgba(139,92,246,0.25);
}
.profile-plan-pill.trial i { color: #7c3aed; }
.profile-plan-pill.basic {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(99,102,241,0.02));
  border-color: rgba(99,102,241,0.25);
}
.profile-plan-pill.basic i { color: #4f46e5; }

[data-theme="dark"] .profile-plan-pill { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }

/* Nav'daki plan badge (sidebar/topbar üzeri) — modern animasyonlu */
.nav-plan-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(255,107,53,0.14), rgba(255,107,53,0.05));
  border: 1px solid rgba(255,107,53,0.25);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: default;
}
.nav-plan-badge i { font-size: 11px; }
.nav-plan-badge.enterprise,
.nav-plan-badge.kurumsal {
  background: linear-gradient(135deg, rgba(251,191,36,0.16), rgba(251,191,36,0.04));
  border-color: rgba(251,191,36,0.3);
  color: #d97706;
}
.nav-plan-badge.trial {
  background: linear-gradient(135deg, rgba(139,92,246,0.16), rgba(139,92,246,0.04));
  border-color: rgba(139,92,246,0.3);
  color: #7c3aed;
}
.nav-plan-badge.basic {
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(99,102,241,0.04));
  border-color: rgba(99,102,241,0.3);
  color: #4f46e5;
}

.profile-menu-list { padding: 14px 8px 10px; }
.profile-menu .dropdown-item {
  border-radius: 12px;
  margin: 2px 0;
  position: relative;
}
.profile-menu .dropdown-item .item-arrow {
  margin-left: auto;
  width: auto; height: auto;
  background: none !important;
  font-size: 11px; color: var(--text-low);
  opacity: 0; transform: translateX(-4px);
  transition: all 0.2s ease;
}
.profile-menu .dropdown-item:hover .item-arrow { opacity: 0.6; transform: translateX(0); }
.profile-menu .dropdown-item:hover { transform: translateX(2px); }

[data-theme="dark"] .profile-plan-pill { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }

#notif-dropdown { width: 360px !important; }

.notif-item {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: 0.2s;
}

.notif-item:last-child { border-bottom: none; }

.notif-item:hover {
  background: rgba(0, 0, 0, 0.02) !important;
  transform: scale(0.995);
}

.notif-icon-box {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-muted);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

.notif-content { flex: 1; }
.notif-title { font-size: 13.5px; font-weight: 800; color: var(--text-high); margin-bottom: 2px; }
.notif-time { font-size: 10.5px; font-weight: 600; color: var(--text-low); }

/* ── TOPBAR REFINEMENT (CONSOLIDATED) ─────────────────────── */
.topbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.profile-trigger {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 4px 10px 4px 14px !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xs);
}

.profile-trigger:hover {
  background: var(--bg-surface-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── DARK MODE OVERRIDES (CONSOLIDATED) ───────────────────── */
[data-theme="dark"] .dropdown-menu {
  background: rgba(26, 28, 32, 0.985) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .dropdown-divider { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .dropdown-header { color: rgba(255, 255, 255, 0.4); }
[data-theme="dark"] .dropdown-item:hover { background: rgba(255, 255, 255, 0.04) !important; }
[data-theme="dark"] .profile-trigger { background: var(--bg-surface) !important; border-color: var(--border-light); }
[data-theme="dark"] .notif-item { border-bottom-color: rgba(255, 255, 255, 0.05); }
/* ─── YENİ NESİL BİLEŞENLER (SAAS & PREMIUM) ─────────────────── */

.dash-tab-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-low);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.dash-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.saas-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.saas-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-glow);
}

/* Toggle Switch Premium - Ana Implementasyon */
.toggle-switch-wrap { display: flex; align-items: center; gap: 12px; }
.toggle-status-label { font-size: 12px; font-weight: 700; color: var(--text-low); letter-spacing: 0.5px; }

.toggle-switch {
  position: relative;
  display: inline-block !important;
  width: 48px !important;
  height: 26px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex-basis: 48px !important;
  border-radius: 999px !important;
  overflow: visible;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
}

.toggle-track {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 999px !important;
  border: 1.5px solid rgba(0,0,0,0.06);
  box-sizing: border-box;
}

.toggle-track:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

input:checked + .toggle-track {
  background-color: var(--primary);
  border-color: var(--primary);
  border-radius: 999px !important;
  /* Yumuşak halo — sert "0 0 0 3px" ring kare kutu gibi görünüyordu */
  box-shadow: 0 2px 10px var(--primary-glow);
}

input:checked + .toggle-track:before {
  transform: translateX(22px);
}

/* Dark Mode Refinements */
[data-theme="dark"] .saas-card {
  background: var(--bg-surface);
  border-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .dash-tab-btn:not(.active) {
  background: rgba(255,255,255,0.02);
  color: var(--text-low);
}

[data-theme="dark"] .section-header-wrap {
  background: var(--bg-surface) !important;
  border-color: var(--border-light) !important;
}


.msg-container::-webkit-scrollbar,
.modal-body-scroll::-webkit-scrollbar {
  width: 6px;
}

.msg-container::-webkit-scrollbar-thumb,
.modal-body-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* ?? Modern Masa Kart� Tasar�mlar� */
.modern-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  width: 100%;
}

.modern-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.modern-table-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary, #FF6B35), rgba(255, 107, 53, 0.4));
  opacity: 0; transition: opacity 0.25s;
}

.modern-table-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
  border-color: rgba(255, 107, 53, 0.35);
}
.modern-table-card:hover::before { opacity: 1; }

.modern-table-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modern-table-card .table-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.modern-table-card .table-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 107, 53, 0.05));
  color: var(--primary, #FF6B35);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.modern-table-card .table-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-high);
  letter-spacing: -0.2px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-table-card .table-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-low, #94a3b8);
  margin-top: 2px;
  letter-spacing: 0.2px;
}

.modern-table-card .status-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.modern-table-card .status-dot {
  width: 5px;
  height: 5px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.55; }
  100% { transform: scale(1); opacity: 1; }
}

.modern-table-card .card-actions {
  display: flex;
  gap: 8px;
}

.modern-table-card .btn-qr {
  flex: 1;
  background: rgba(255, 107, 53, 0.08);
  color: var(--primary, #FF6B35);
  border: 1px solid rgba(255, 107, 53, 0.18);
  padding: 9px 12px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.modern-table-card .btn-qr:hover {
  background: var(--primary, #FF6B35);
  color: #fff;
  border-color: var(--primary, #FF6B35);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.32);
}

.modern-table-card .btn-delete {
  width: 38px;
  height: 38px;
  background: transparent;
  color: var(--text-low, #94a3b8);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.modern-table-card .btn-delete:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}


/* ?? SuperAdmin VIP Modu (Kompakt) */
#nav-superadmin.nav-superadmin-special {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(251, 191, 36, 0.2) !important;
  display: none;
  align-items: center !important;
  padding: 0 16px !important;
  height: 44px !important;
  gap: 12px !important;
  margin: 10px 15px 0 15px !important;
  transition: all 0.3s ease !important;
}
#nav-superadmin.nav-superadmin-special:hover { border-color: #fbbf24 !important; background: #0f172a !important; transform: translateX(5px) !important; }
#nav-superadmin.nav-superadmin-special i { color: #fbbf24 !important; font-size: 18px !important; }
#nav-superadmin.nav-superadmin-special span { color: #fbbf24 !important; font-weight: 700 !important; font-size: 13px !important; }

/* ?? Sidebar Modernizasyon & Scrollbar */
.sidebar {
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  background: transparent;
}

.sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.nav-section-label {
  padding: 15px 25px 8px 25px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: var(--text-low) !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  opacity: 0.6;
}

.nav-link {
  margin: 2px 15px !important;
  border-radius: 12px !important;
  padding: 10px 15px !important;
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.02) !important;
}

.nav-link.active {
  background: var(--primary-glow) !important;
  color: var(--primary) !important;
}

.nav-icon {
  font-size: 18px !important;
  margin-right: 12px !important;
}

/* ?? Premium UI Components */
.sidebar {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  box-shadow: 10px 0 30px rgba(0,0,0,0.02);
}

.topbar {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  height: 70px;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.card, .stat-card, .modern-table-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-premium) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card:hover, .stat-card:hover, .modern-table-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06) !important;
  border-color: var(--primary-glow) !important;
}

/* ?? Modern Buttons */
button {
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  box-shadow: 0 4px 14px 0 hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.39);
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.23);
}

/* ?? Topbar Premium Actions */
.btn-topbar-action {
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-med);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-topbar-action:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.premium-badge-v2 {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8E64 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

.premium-badge-v2 i {
  font-size: 12px;
  animation: starPulse 2s infinite;
}

@keyframes starPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* ??? Global & Sidebar Modern Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 0px; /* Alttaki �ubu�u global olarak kapat�r */
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* Sidebar �zel D�zeltme */
.sidebar {
  overflow-x: hidden !important;
  overflow-y: overlay !important; /* ��eri�in �zerine biner, geni�li�i daraltmaz */
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.03);
}

.sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
}

/* ?? S�per Admin - Di�erleriyle Uyumlu Yeni Nesil Tasar�m */
#nav-superadmin.nav-superadmin-special {
  /* Di�er nav-linklerle ayn� temel yap� */
  display: none; /* JS ile flex yap�lacak */
  align-items: center !important;
  padding: 10px 15px !important;
  margin: 4px 15px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  gap: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  
  /* Sadece renk ve vurgu fark� */
  background: rgba(79, 70, 229, 0.08) !important; /* Hafif �ndigo/Mor arka plan */
  color: #6366f1 !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
}

#nav-superadmin.nav-superadmin-special:hover {
  background: #6366f1 !important;
  color: white !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
}

#nav-superadmin.nav-superadmin-special i {
  color: inherit !important; /* Yaz� rengiyle ayn� olsun */
  font-size: 18px !important;
}

#nav-superadmin.nav-superadmin-special span {
  color: inherit !important;
  font-weight: 700 !important;
}

/* ═══ RAPORLAR (Enterprise) ═══ */
.report-stat-card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.report-stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  opacity: 0.9;
}
.report-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.10);
}
.report-stat-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.report-stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-high);
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.report-chart-card {
  padding: 22px 24px;
  border-radius: 18px;
}
.report-chart-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-high);
  margin: 0 0 18px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-chart-title::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.report-chart-wrap {
  position: relative;
  height: 280px;
}
.report-table-card {
  padding: 22px 24px;
  margin-bottom: 20px;
  border-radius: 18px;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.report-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}
.report-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-high);
}
.report-table tr:last-child td {
  border-bottom: none;
}
.report-review-item {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
}
.report-review-rating {
  color: #f59e0b;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.report-review-text {
  font-size: 14px;
  color: var(--text-high);
  line-height: 1.5;
}
.report-review-date {
  font-size: 12px;
  color: var(--text-low);
  margin-top: 6px;
}

/* ════════════════════════════════════════════════════════════
   MOBİL POLİSH — modal full-screen, dokunma alanları, form
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Modal'lar telefon boyutunda full-screen'e yakın */
  .modal-overlay .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 95vh !important;
    margin: 0 8px;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px !important;
  }
  /* Modal'lar alttan açılsın hissi */
  .modal-overlay.active {
    align-items: flex-end !important;
  }
  /* Modal başlık çok büyük olmasın */
  .modal-header h2 { font-size: 16px !important; }
  .modal-close-btn { width: 36px !important; height: 36px !important; }

  /* Form input'lar dokunma için yeterli boyut */
  .form-control, input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="number"], input[type="date"], select, textarea {
    font-size: 16px !important;  /* iOS zoom önler */
    min-height: 44px;
  }
  .form-group { margin-bottom: 14px; }
  .form-group label { font-size: 13px; }

  /* Butonlar dokunma için yeterli */
  .btn-primary, .btn-outline, .btn-secondary-modern {
    min-height: 44px;
    padding: 0 16px !important;
  }

  /* Tablo satır aksiyonları dikey kayma yerine wrap */
  .row-extras { flex-wrap: wrap !important; gap: 6px !important; }
  td .btn-icon { min-width: 36px; min-height: 36px; }

  /* Ayarlar yan menü → üst yatay kayan tab bar */
  .settings-nav-sidebar {
    display: flex !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .settings-nav-sidebar::-webkit-scrollbar { display: none; }
  .settings-nav-item {
    flex-shrink: 0;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-size: 13px;
  }

  /* Sticky aksiyon barlar mobil bottom nav'ı kapatmasın */
  .action-sticky-bar, #settings-action-bar {
    bottom: 70px !important;  /* mobil bottom nav 60px civarı + 10px boşluk */
  }

  /* Topbar daha kompakt */
  .page-title { font-size: 15px !important; }
  .topbar-actions > * { margin: 0 !important; }

  /* Premium hero başlıklar telefon boyutunda küçülsün */
  .dash-hero-content h1,
  .section-header-wrap h2 { font-size: 22px !important; line-height: 1.2 !important; }

  /* Drawer (yan panel) telefon boyutunda full-screen */
  .drawer { width: 100% !important; max-width: 100% !important; }
}

/* Çok küçük ekranlar (375px ve altı) için ekstra optimizasyon */
@media (max-width: 380px) {
  .content-wrapper { padding: 12px 12px 90px 12px; }
  .saas-card { padding: 14px !important; }
  .modal-overlay .modal-content { padding: 14px 12px !important; }
}

/* ═════════════════════════════════════════════════════
   TABLET OPTİMİZASYONU (768px – 1024px)
   ═════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Sidebar daha dar */
  .sidebar { width: 80px !important; }
  .sidebar .nav-text,
  .sidebar .nav-section-label,
  .sidebar-foot .btn span { display: none !important; }
  .sidebar .nav-link { justify-content: center !important; padding: 12px !important; }

  /* Main content tüm genişliği kullansın */
  .content-wrapper { padding: 20px !important; }

  /* Dashboard grid'leri 2 sütun */
  .saas-grid-top,
  .saas-grid-bottom { grid-template-columns: 1fr 1fr !important; }

  /* Profile dropdown menüleri */
  .profile-menu { width: 300px !important; }
}

/* ═════════════════════════════════════════════════════
   HERO KART RESPONSIVE (Online Sipariş)
   ═════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .wd-hero-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .wd-hero-icon { display: none !important; }
}

/* Profile card mobil daha kompakt */
@media (max-width: 480px) {
  .profile-menu { width: calc(100vw - 32px) !important; max-width: 360px !important; }
  .profile-card { padding: 18px 16px 14px !important; }
  .profile-card-avatar { width: 44px !important; height: 44px !important; font-size: 18px !important; }
  .profile-plan-pill { margin: 12px 16px 10px !important; padding: 9px 12px !important; }
}

/* ═════════════════════════════════════════════════════
   YAYIN ÖNCESİ KAPSAMLI MOBİL/TABLET OVERHAUL (2026-06-17)
   Tüm hero kartları, modaller, gridler ve panellerde sıkışma fix'i.
   ═════════════════════════════════════════════════════ */

/* Tüm hero kartları (grid: 1fr auto) telefonda 1 sütun yığ */
@media (max-width: 768px) {
  #wd-card,
  #section-insights > div:first-child,
  .menu-management-header,
  .section-header-wrap {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  #wd-card { padding: 22px 20px !important; }
  #wd-card .wd-hero-cta,
  #wd-card > div:nth-child(4) {
    min-width: 0 !important;
    width: 100% !important;
    margin-top: 18px;
  }
  /* İçgörüler hero sağ ikon kutusunu gizle */
  .insights-hero-icon { display: none !important; }
  #section-insights > div:first-child { padding: 22px 20px !important; }
  #section-insights h1 { font-size: 22px !important; }

  /* Menü Yönetimi header — butonlar yığılsın */
  .menu-management-header > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }
  .menu-management-header > div:last-child > button {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    height: 42px !important;
  }
}

/* Settings paneli — mobilde sol nav üstte horizontal scroll */
@media (max-width: 900px) {
  .settings-container-premium {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  .settings-nav-sidebar {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding: 8px !important;
    margin-bottom: 16px !important;
    scrollbar-width: none;
  }
  .settings-nav-sidebar::-webkit-scrollbar { display: none; }
  .settings-nav-item {
    flex-shrink: 0 !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
  .settings-glass-card { padding: 20px !important; }
  .settings-pane-header { gap: 12px !important; margin-bottom: 16px !important; }
}

/* Modal-content telefonda full-width + scroll */
@media (max-width: 600px) {
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .modal-content {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 20px !important;
    margin: 0 !important;
  }
  .modal-content .modal-header {
    padding: 0 0 12px 0 !important;
  }
  .modal-body-scroll {
    max-height: calc(80vh - 100px) !important;
  }
}

/* Dashboard — KPI/widget'lar mobilde 1 sütun */
@media (max-width: 600px) {
  .saas-grid-top,
  .saas-grid-bottom,
  .dash-grid-3,
  .dash-grid-2,
  .restaurants-grid-modern {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .kpi-card,
  .saas-card {
    padding: 16px !important;
  }
  .kpi-value { font-size: 22px !important; }
}

/* Raporlar PDF butonları + range selector — mobilde wrap */
@media (max-width: 600px) {
  #section-reports > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  #section-reports select,
  #btn-export-pdf,
  #btn-clear-report-data {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Topbar — telefonda kompakt + plan badge gizle */
@media (max-width: 600px) {
  .topbar { padding: 10px 14px !important; }
  .topbar-rest-name {
    max-width: 140px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 14px !important;
  }
  #sub-status-badge { display: none !important; }
  .notif-btn { width: 36px !important; height: 36px !important; }
}

/* Menü/Ürün grid — mobilde 1 sütun */
@media (max-width: 600px) {
  .menu-products-grid,
  .menu-dashboard-layout {
    grid-template-columns: 1fr !important;
  }
  .menu-detail-sidebar-sticky {
    position: static !important;
    margin-top: 18px !important;
  }
  .menu-search-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Tablo / liste — overflow-x scroll mobilde (admin tablolar) */
@media (max-width: 700px) {
  .data-table-wrap,
  table.admin-table {
    overflow-x: auto !important;
    display: block !important;
    width: 100% !important;
  }
  table.admin-table { min-width: 600px !important; }
}

/* iOS safe-area inset desteği — bottom nav notch-üstü kal */
@supports (padding: env(safe-area-inset-bottom)) {
  .sidebar.mobile-bottom-nav,
  .bottom-nav-mobile {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
  .content-wrapper {
    padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  }
}

/* ═════════════════════════════════════════════════════
   ABONELIK SAYFASI — Plan kartları cilası (2026-06-17)
   ═════════════════════════════════════════════════════ */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px !important;
  padding: 28px !important;
  border: 1.5px solid var(--border-light, #e2e8f0) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease !important;
  overflow: visible !important;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  border-color: rgba(255,107,53,0.25) !important;
}
.plan-card#plan-card-premium {
  border-color: rgba(255,107,53,0.35) !important;
  box-shadow: 0 12px 32px rgba(255,107,53,0.12);
  transform: translateY(-4px); /* Premium kartı varsayılan yukarı çıkık */
}
.plan-card#plan-card-premium:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(255,107,53,0.22);
  border-color: rgba(255,107,53,0.5) !important;
}
.plan-card#plan-card-enterprise:hover {
  border-color: rgba(255,193,7,0.4) !important;
  box-shadow: 0 16px 40px rgba(255,193,7,0.15);
}
.plan-card.active-plan {
  border-color: #10b981 !important;
  box-shadow: 0 12px 36px rgba(16,185,129,0.18) !important;
}
.plan-card.active-plan::before {
  content: '✓ AKTİF';
  position: absolute;
  top: -14px; right: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 5px 12px;
  border-radius: 12px;
  letter-spacing: 0.6px;
  box-shadow: 0 6px 14px rgba(16,185,129,0.35);
  z-index: 2;
}
.plan-card .plan-cta {
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.plan-card .plan-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.plan-card .plan-cta:active:not(:disabled) {
  transform: translateY(0);
}

/* Abonelik sayfası mobile: plan kartları stack */
@media (max-width: 900px) {
  #section-subscription > div:nth-child(4) {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding-top: 32px !important;
  }
  .plan-card#plan-card-premium {
    transform: none !important;
  }
}

/* ═════════════════════════════════════════════════════
   RESTORAN YOK DURUMU — Sidebar nav kısıtlaması (2026-06-17)
   Restoran yokken kullanıcı yalnız: Restoranlarım + Abonelik + Ayarlar
   görür. Diğer linkler görsel olarak grileşir ve tıklanamaz.
   ═════════════════════════════════════════════════════ */
.nav-link.disabled-no-restaurant,
.mbn-item.disabled-no-restaurant {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  position: relative;
}
.nav-link.disabled-no-restaurant::after {
  content: '🔒';
  position: absolute;
  right: 16px;
  font-size: 11px;
  opacity: 0.7;
}
/* Tablet'te sidebar dar olduğunda ikon küçük */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-link.disabled-no-restaurant::after { right: 4px; font-size: 9px; }
}
/* Restoran yokken üst uyarı banner */
.no-restaurant-banner {
  display: none;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
  border: 1.5px solid rgba(245,158,11,0.3);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 24px;
  align-items: center;
  gap: 16px;
  color: var(--text-high, #1e293b);
}
body.no-restaurant-mode .no-restaurant-banner { display: flex; }
.no-restaurant-banner .nrb-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.no-restaurant-banner .nrb-text {
  flex: 1; min-width: 0;
}
.no-restaurant-banner .nrb-title {
  font-size: 14px; font-weight: 800;
  color: #92400e;
  margin: 0 0 4px;
}
.no-restaurant-banner .nrb-sub {
  font-size: 13px;
  color: var(--text-med, #64748b);
  margin: 0;
  line-height: 1.5;
}
.no-restaurant-banner .nrb-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(245,158,11,0.3);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .no-restaurant-banner { flex-wrap: wrap; }
  .no-restaurant-banner .nrb-cta { width: 100%; justify-content: center; }
}
