/* Copyright (c) 2026 Omer Bozkurt - All Rights Reserved */
@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-base: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F1F5F9;
  --border-light: rgba(0,0,0,0.06);
  --border: #E2E8F0;
  --primary: #FF6B35;
  --primary-hover: #e05e2e;
  --primary-glow: rgba(255, 107, 53, 0.25);
  --text-high: #0F172A;
  --text-med: #334155;
  --text-low: #64748B;
  
  --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;
  
  --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-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: var(--radius-md);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
  transform: translateY(-1px);
}
.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: 280px;
  height: 100vh;
  min-height: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-header { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-content { display: flex; flex-direction: column; }
.brand-layer { display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 12px; height: 12px; background: var(--primary); border-radius: 4px; box-shadow: 0 0 10px var(--primary-glow); }
.brand-text { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--text-high); letter-spacing: -0.5px; }
.brand-sub { font-size: 9px; font-weight: 700; color: var(--text-low); letter-spacing: 1.5px; margin-top: 1px; }

.sidebar-nav { flex: 1; min-height: 0; padding: 10px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.nav-link {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-med); font-weight: 600; font-size: 13px; transition: all 0.2s;
}
.nav-link:hover { background: var(--bg-surface-hover); color: var(--text-high); }
.nav-link.active {
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,107,53,0.02));
  color: var(--primary); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,107,53,0.15);
}
.nav-icon { font-size: 16px; }

.sidebar-footer { padding: 12px 12px; border-top: 1px solid var(--border-light); }

.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); }
.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, var(--bg-surface) 0%, var(--bg-surface-hover) 100%);
  border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 40px;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.dash-hero::after {
  content: ''; position: absolute; right: -50px; top: -50px; width: 400px; height: 400px; background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%); opacity: 0.5; pointer-events: none;
}
.dash-hero-content { z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 12px; background: rgba(255,107,53,0.1); color: var(--primary);
  border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-bottom: 16px;
}
.dash-hero-title { font-size: 28px; font-weight: 800; color: var(--text-high); margin-bottom: 12px; letter-spacing: -0.5px;}
.dash-hero-desc { font-size: 15px; color: var(--text-med); max-width: 500px; line-height: 1.6; }
.dash-hero-btn { z-index: 1; padding: 14px 28px; border-radius: var(--radius-md); background: var(--text-high); color: var(--bg-surface); font-weight: 600; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.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 */
.sub-badge-premium { display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,107,53,0.05)); border: 1px solid rgba(255,107,53,0.2); padding: 6px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; color: var(--primary); }

/* 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; }

/* Toggles */
.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-flex;
  width: 52px; height: 28px; border-radius: 999px;
  background: var(--border); cursor: pointer;
  transition: background 0.3s ease;
}
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; top: 4px; left: 4px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
/* Checked state - top hareket eder */
.toggle-switch input:checked + .toggle-track { transform: translateX(24px); }
/* Checked state - arka plan rengi (modern tarayici) */
.toggle-switch:has(input:checked) { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

/* 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; }
.login-overlay.hidden { display: none; }
.login-card { width: 100%; max-width: 420px; background: var(--bg-surface); padding: 40px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); z-index: 10000; }
.login-logo-box { width: 64px; height: 64px; background: var(--primary); border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 32px; margin: 0 auto 24px; box-shadow: 0 10px 20px 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); }
.login-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* 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); }
.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: 280px;
  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: all;
}
.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; padding-bottom: 8px; scrollbar-width: none; }
.category-filter-scroll-premium::-webkit-scrollbar { display: 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;
  }
  .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; }
  .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; }
  
  .sub-badge-premium { 
    padding: 6px 10px; 
    font-size: 11px; 
    gap: 4px; 
  }
  
  .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;
  }
}

/* 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, .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);
}
.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; }
.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:.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 .2s, box-shadow .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 .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 .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 .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: .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 ───────────────────────────────────────────── */
.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: 240px !important; }

#profile-dropdown .dropdown-item.settings i { color: var(--primary); background: rgba(255, 127, 80, 0.08); }
#profile-dropdown .dropdown-item.upgrade i { color: #8b5cf6; background: rgba(139, 92, 246, 0.08); }
#profile-dropdown .dropdown-item.logout i { color: #ef4444; background: rgba(239, 68, 68, 0.06); }

#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); }
