/* ==========================================================================
   Bilişsel Akademi — Premium SaaS Tasarım Sistemi (V6 Redesign)
   Konsept: Yüksek Kontrastlı, Açık Renkli, Profesyonel SaaS Teması
   ========================================================================== */

:root {
  /* Renk Paleti - Görsel Kolonlarından Seçilen Seçkin Tonlar */
  --primary: #7C3AED;          /* Menekşe Moru (Kolon 2) */
  --primary-600: #6D28D9;
  --primary-700: #5B21B6;
  --primary-800: #4C1D95;
  --primary-900: #1E1B4B;
  --primary-050: #F5F3FF;      /* Açık Mor Yıkama */
  --primary-100: #EDE9FE;
  --primary-mid: #8B5CF6;

  --gold: #F97316;             /* Günbatımı Turuncusu (Kolon 6) */
  --gold-2: #EA580C;
  --gold-hi: #FDBA74;
  --gold-soft: #FFEDD5;
  --accent: #F97316;
  --accent-600: #EA580C;

  --sky:  #2563EB;             /* Kurumsal Kraliyet Mavisi (Kolon 3) */
  --sky-600: #1D4ED8;
  --sky-bg: #EFF6FF;

  --teal: #0D9488;             /* Turkuaz / Teal (Kolon 4) */
  --teal-bg: #F0FDFA;

  --mint: #10B981;             /* Zümrüt Yeşili (Kolon 5) */
  --mint-600: #059669;
  --mint-bg: #ECFDF5;

  --rose: #EF4444;             /* Mercan Kırmızısı (Kolon 1) */
  --rose-bg: #FEF2F2;
  --amber: #F59E0B;
  --amber-bg: #FEF3C7;

  /* Nötrler (Kolon 7) */
  --ink-900: #0F172A;          /* Obsidian Siyahı */
  --ink-800: #1E293B;
  --ink-700: #334155;
  --slate-700: #475569;
  --slate-600: #64748B;
  --slate-500: #94A3B8;
  --slate-400: #CBD5E1;
  --slate-300: #E2E8F0;
  --slate-200: #F1F5F9;
  --slate-100: #F8FAFC;

  /* Durumlar */
  --success: #059669;
  --success-bg: #D1FAE5;
  --warning: #D97706;
  --warning-bg: #FEF3C7;
  --danger: #DC2626;
  --danger-bg: #FEE2E2;
  --info: #1D4ED8;
  --info-bg: #EFF6FF;

  /* Yüzeyler & Gölgeler */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-solid: #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-3: #EDE9FE;
  --border: #E2E8F0;
  --border-strong: rgba(124, 58, 237, 0.15);

  /* Yazı Renkleri */
  --text-main: #1E293B;
  --text-muted: #475569;
  --text-soft: #64748B;

  /* Premium Gölgeler */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  --shadow: 0 12px 32px -8px rgba(124, 58, 237, 0.08), 0 4px 12px -4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 20px 40px -12px rgba(15, 23, 42, 0.08);
  --ring: 0 0 0 4px rgba(124, 58, 237, 0.15);

  /* Köşe Yuvarlama */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Fontlar */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", "Outfit", "Segoe UI", system-ui, sans-serif;

  /* Boşluklar */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2.25rem; --sp-7: 4rem;
  --content-w: 1200px;
}

/* ==========================================================================
   Global Resets
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 15%, rgba(124, 58, 237, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(37, 99, 235, 0.03) 0%, transparent 45%),
    #F8FAFC;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
ul { margin: 0; }
::selection { background: rgba(124, 58, 237, 0.15); color: var(--primary-800); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ==========================================================================
   App Shell & Sidebar Layout System
   ========================================================================== */
.app-shell { min-height: 100vh; display: grid; }

/* 1) Sidebar Layout Mode (Logged-in Pages) */
.app-shell.layout-sidebar {
  grid-template-columns: 260px 1fr;
}

.app-sidebar {
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  height: 100vh;
  position: sticky; top: 0;
  display: flex; flex-direction: column;
  z-index: 150;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.01);
}

.sidebar-brand {
  padding: 1.5rem 1.6rem;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
}
.sidebar-brand .brand { display: flex; align-items: center; gap: 0.5rem; }
.sidebar-brand .brand-logo { height: 40px; width: auto; }
.sidebar-brand .brand-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.2rem;
}

.sidebar-nav {
  padding: 1.5rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  flex: 1; overflow-y: auto;
}
.sidebar-nav .nav-section {
  font-size: 0.75rem; font-weight: 800; color: var(--slate-500); text-transform: uppercase;
  letter-spacing: 0.06em; padding-left: 1.1rem; margin-bottom: 0.5rem;
}
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  color: var(--slate-600);
  font-size: 0.92rem; font-weight: 700;
  transition: all 150ms ease;
}
.sidebar-nav .nav-link:hover {
  color: var(--primary);
  background: var(--slate-100);
}
.sidebar-nav .nav-link.is-active {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  font-weight: 800;
  box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.25);
}
.sidebar-nav .nav-link .nav-indicator { display: none; }

/* Menü ikon kutucukları (Site.Master .nav-ic / .nav-tx render eder) */
.sidebar-nav .nav-link .nav-ic {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--slate-100); border: 1px solid var(--border);
  color: var(--slate-500); transition: all 150ms ease;
}
.sidebar-nav .nav-link .nav-ic svg { width: 18px; height: 18px; }
.sidebar-nav .nav-link .nav-tx { flex: 1; min-width: 0; }
.sidebar-nav .nav-link:hover .nav-ic { background: #fff; color: var(--primary); border-color: var(--primary-100); }
.sidebar-nav .nav-link.is-active .nav-ic {
  background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.35); color: #fff;
}
/* İnce, zarif kenar menü scrollbar'ı (admin dokunuşu) */
.sidebar-nav { scrollbar-width: thin; scrollbar-color: var(--slate-300) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 999px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

.sidebar-footer {
  padding: 1rem 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--slate-100);
}
.sidebar-footer .user-chip {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sidebar-footer .user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff; font-weight: 700; font-size: 0.82rem;
  flex-shrink: 0;
}
.sidebar-footer .user-meta { display: flex; flex-direction: column; line-height: 1.25; font-size: 0.82rem; font-weight: 800; color: var(--ink-900); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer .user-meta small { font-weight: 600; color: var(--text-soft); font-size: 0.72rem; }

.btn-logout {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  color: var(--slate-600); background: transparent; border: 1px solid var(--border);
  transition: all 150ms ease; flex-shrink: 0;
}
.btn-logout:hover {
  background: var(--rose-bg); color: var(--rose); border-color: rgba(239, 68, 68, 0.2);
}

/* Right content inside sidebar shell */
.app-shell.layout-sidebar .app-container {
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.app-shell.layout-sidebar .app-main {
  width: min(var(--content-w), calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
  flex: 1;
}

/* 2) Wide Layout Mode (Landing Page) */
.app-shell.layout-wide {
  display: block;
}
.app-shell.layout-wide .app-sidebar {
  display: none;
}
.app-shell.layout-wide .top-bar {
  display: none;
}
.app-shell.layout-wide .app-container {
  margin: 0; padding: 0; min-height: 100vh;
  display: flex; flex-direction: column;
}
.app-shell.layout-wide .app-main {
  width: 100%; max-width: none; margin: 0; padding: 0; flex: 1;
}

/* ==========================================================================
   Header / Top Bar Components
   ========================================================================== */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 2rem;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
  position: sticky; top: 0; z-index: 100;
}
.top-bar-title {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; font-weight: 700; color: var(--slate-600);
}
.top-bar-title .breadcrumb-root { font-weight: 800; color: var(--slate-700); }
.top-bar-title .breadcrumb-separator { color: var(--slate-300); }
.top-bar-title .breadcrumb-current { color: var(--primary); font-weight: 800; }

.top-bar-actions {
  display: flex; align-items: center; gap: 1rem;
}
.alert-indicator {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  background: var(--mint-bg); border: 1px solid rgba(16, 185, 129, 0.12);
}
.alert-indicator .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  position: relative;
}
.alert-indicator .pulse-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid var(--mint); animation: pulse 1.5s infinite;
}
.alert-indicator .indicator-text { font-size: 0.72rem; font-weight: 800; color: var(--mint-600); text-transform: uppercase; letter-spacing: 0.04em; }

/* Üst bar: bildirim ikonu + kullanıcı avatarı */
.tb-icon {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--slate-600);
  transition: all 150ms ease;
}
.tb-icon:hover { color: var(--primary); border-color: var(--primary-100); background: var(--primary-050); }
.tb-icon svg { width: 19px; height: 19px; }
.tb-icon .tb-dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--surface);
}
.tb-user { display: flex; align-items: center; }
.tb-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  color: #fff; font-weight: 800; font-size: 0.82rem;
  box-shadow: 0 4px 12px -3px rgba(124, 58, 237, 0.4);
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.nav-toggle {
  display: none; width: 2.3rem; height: 2.3rem;
  border: 1px solid var(--border); border-radius: 8px; background: #FFFFFF;
  padding: 0.6rem; flex-direction: column; justify-content: center; gap: 0.25rem; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink-800); border-radius: 2px; }

/* Sticky Public Header for Landing Page */
.pub-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.pub-header-inner {
  width: min(var(--content-w), calc(100% - 3rem));
  margin: 0 auto; height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.pub-logo { display: flex; align-items: center; }
.pub-logo img { height: 42px; width: auto; }

.pub-nav { display: flex; align-items: center; gap: 1.8rem; }
.pub-nav a { font-size: 0.92rem; font-weight: 700; color: var(--slate-600); transition: color 150ms ease; }
.pub-nav a:hover { color: var(--primary); text-decoration: none; }

.pub-actions { display: flex; align-items: center; gap: 0.75rem; }

.app-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-soft); font-size: 0.85rem;
}
.app-footer strong { color: var(--slate-700); font-weight: 700; }

/* ==========================================================================
   Buttons (Butonlar)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 0.7rem 1.3rem;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; line-height: 1.25;
  cursor: pointer; transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1.5px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  color: #FFFFFF;
  border-color: var(--primary-600);
  box-shadow: 0 4px 14px -3px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
  box-shadow: 0 6px 18px -2px rgba(124, 58, 237, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #FFFFFF;
  border-color: var(--gold-2);
  box-shadow: 0 4px 14px -3px rgba(249, 115, 22, 0.3);
}
.btn-accent:hover {
  box-shadow: 0 6px 18px -2px rgba(249, 115, 22, 0.4);
}

.btn-outline {
  background: #FFFFFF; color: var(--primary);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-050);
}

.btn-ghost {
  background: transparent; color: var(--slate-700);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--slate-100);
  color: var(--ink-900);
}
/* Koyu bantlar (home) üzerindeki ghost butonlar beyaz-okunur olmalı */
.home-cta-band .btn-ghost,
.lux-band .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.34);
}
.home-cta-band .btn-ghost:hover,
.lux-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Page Hero & Welcome Headers
   ========================================================================== */
.page-hero { margin-bottom: var(--sp-5); }
.page-hero h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--ink-900);
}
.page-hero p { color: var(--text-muted); font-size: 0.96rem; max-width: 46rem; }

.welcome-banner {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: var(--sp-6); color: var(--ink-900);
  background: linear-gradient(135deg, var(--primary-050) 0%, #FFFFFF 62%);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.welcome-banner::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, 0.10), transparent 70%);
  pointer-events: none;
}
.welcome-eyebrow {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
  background: var(--primary-050);
  padding: 0.25rem 0.75rem; border-radius: var(--radius-pill); margin-bottom: 1rem;
}
.welcome-banner h1 {
  position: relative;
  font-size: 1.8rem; font-weight: 800; margin-bottom: 0.6rem; letter-spacing: -0.02em;
  color: var(--ink-900);
}
.welcome-banner p { position: relative; color: var(--text-muted); font-size: 0.96rem; max-width: 42rem; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }

/* ==========================================================================
   Cards & Surface Containers
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 250ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px -8px rgba(124, 58, 237, 0.12);
}

.shell-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.shell-panel h2 { font-size: 1.25rem; color: var(--ink-900); font-weight: 800; margin-bottom: 0.35rem; }
.shell-panel p { color: var(--text-muted); font-size: 0.9rem; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1.25rem; }
.section-head h2 { font-size: 1.35rem; font-weight: 800; color: var(--ink-900); letter-spacing: -0.01em; }
.section-head p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.1rem; }

.dash-grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: var(--sp-5); align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   KPI & Stat Cards
   ========================================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.stat-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow);
  transition: all 250ms ease; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--_c, var(--primary));
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px -8px rgba(124, 58, 237, 0.12);
}

.stat-card .stat-ico {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 0.85rem;
  color: var(--primary); background: var(--primary-050);
}
.stat-card .stat-ico svg { width: 20px; height: 20px; }

.stat-card .stat-value { font-size: 1.85rem; font-weight: 800; color: var(--ink-900); line-height: 1.2; letter-spacing: -0.02em; }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 700; margin-top: 0.25rem; }
.stat-card .stat-trend {
  display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.74rem; font-weight: 700;
  margin-top: 0.75rem; padding: 0.15rem 0.5rem; border-radius: var(--radius-pill);
}

/* ==========================================================================
   Dashboard Modules
   ========================================================================== */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-4); }
.module-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); transition: all 250ms ease;
}
.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px -8px rgba(124, 58, 237, 0.12);
}

.module-ico {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 10px -2px rgba(124, 58, 237, 0.3);
}
.module-ico svg { width: 20px; height: 20px; }

.module-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--ink-800); }
.module-card p { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 0.5rem; }
.module-card .module-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--primary); font-weight: 700; font-size: 0.86rem;
}
.module-card .module-link svg { width: 14px; height: 14px; transition: transform 150ms ease; }
.module-card:hover .module-link svg { transform: translateX(3px); }

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill); font-size: 0.74rem; font-weight: 700; line-height: 1.2;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-soon { background: var(--warning-bg); color: #92400E; }   /* koyu amber — açık zeminde okunur */
.badge-live { background: var(--success-bg); color: #065F46; }   /* koyu zümrüt */
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--primary-050); color: var(--primary-700); }

/* Boş durum panelleri (ör. "Yakında gelen modüller") — ikon sınırlandırıldı */
.empty-state {
  text-align: center; padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--surface-2);
}
.empty-state .es-ico {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 14px; display: grid; place-items: center;
  color: var(--primary); background: var(--primary-050);
}
.empty-state .es-ico svg { width: 26px; height: 26px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 800; color: var(--ink-900); margin-bottom: 0.4rem; }
.empty-state p { color: var(--text-muted); max-width: 34rem; margin: 0 auto; font-size: 0.9rem; }

/* ==========================================================================
   Lists & Timeline
   ========================================================================== */
.list-panel { display: flex; flex-direction: column; }
.list-panel .list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-bottom: 0.85rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.list-panel .list-head h3 { font-size: 1.05rem; color: var(--ink-900); font-weight: 800; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0.85rem 0 0.85rem 1.6rem; border-bottom: 1px dashed var(--border); }
.timeline li:last-child { border-bottom: none; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.timeline .t-time { font-size: 0.74rem; color: var(--text-soft); font-weight: 700; }
.timeline .t-title { font-weight: 700; color: var(--ink-800); font-size: 0.92rem; }
.timeline .t-desc { font-size: 0.86rem; color: var(--text-muted); }

.data-list { list-style: none; padding: 0; }
.data-list li { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.data-list li:last-child { border-bottom: none; }
.data-list .di-avatar {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: var(--primary-050); color: var(--primary); font-weight: 700; font-size: 0.84rem; flex-shrink: 0;
}
.data-list .di-body { flex: 1; min-width: 0; }
.data-list .di-title { font-weight: 700; color: var(--ink-800); font-size: 0.88rem; }
.data-list .di-sub { font-size: 0.8rem; color: var(--text-soft); }

.progress { height: 6px; background: var(--slate-200); border-radius: var(--radius-pill); overflow: hidden; margin-top: 0.4rem; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: var(--radius-pill); }

.quick-actions { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.quick-actions a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  transition: all 180ms ease;
}
.quick-actions a:hover { border-color: var(--primary); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.quick-actions .qa-ico {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: var(--primary-050); color: var(--primary); flex-shrink: 0;
}
.quick-actions .qa-ico svg { width: 16px; height: 16px; }
.quick-actions .qa-title { font-weight: 700; font-size: 0.86rem; color: var(--ink-800); }
.quick-actions .qa-sub { font-size: 0.76rem; color: var(--text-soft); }

/* ==========================================================================
   HOME PAGE (Default.aspx)
   ========================================================================== */
.home-hero {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
  color: var(--ink-900);
}
.home-hero-inner {
  width: min(var(--content-w), calc(100% - 3rem));
  margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.home-logo { height: 46px; margin-bottom: 1.25rem; }
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--ink-900); margin-bottom: 1rem; line-height: 1.15; font-weight: 800; }
.home-hero h1 .accent-word { color: var(--primary); }
.home-hero .lead { color: var(--text-muted); font-size: 1.06rem; margin-bottom: 1.8rem; line-height: 1.6; }
.home-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.home-trust {
  display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.5rem; padding-top: 1.8rem;
  border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.88rem;
}
.home-trust .ht-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.home-trust span { display: block; font-size: 0.8rem; margin-top: 0.2rem; }

/* Hero mockup on the right */
.home-mockup {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 1.5rem; position: relative;
}
.home-mockup .m-title { font-weight: 800; font-size: 0.95rem; color: var(--ink-900); margin-bottom: 0.75rem; }
.home-mockup .m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.home-mockup .m-tile { background: var(--slate-100); border: 1px solid var(--border); padding: 0.8rem; border-radius: 10px; }
.home-mockup .m-tile.p { border-top: 3px solid var(--primary); }
.home-mockup .m-tile.o { border-top: 3px solid var(--gold); }
.home-mockup .m-tile .v { font-size: 1.5rem; font-weight: 800; color: var(--ink-900); line-height: 1; }
.home-mockup .m-tile .l { font-size: 0.74rem; color: var(--text-soft); margin-top: 0.2rem; }
.home-mockup .m-row { display: flex; align-items: center; gap: 0.65rem; background: var(--slate-100); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.75rem; margin-bottom: 0.5rem; }
.home-mockup .m-row .ic { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--primary-050); color: var(--primary); }
.home-mockup .m-row .ic svg { width: 14px; height: 14px; }
.home-mockup .m-row .tx { flex: 1; font-size: 0.82rem; font-weight: 700; }
.home-mockup .m-row .tx span { display: block; font-size: 0.72rem; color: var(--text-soft); font-weight: 500; }

.home-section { width: min(var(--content-w), calc(100% - 2.5rem)); margin: 0 auto; padding: 4.5rem 0; }
.home-section h2 { font-size: 1.7rem; color: var(--ink-900); margin-bottom: 0.4rem; font-weight: 800; }
.home-section > .sub { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: all 200ms ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature-card .fc-ico {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary-050); color: var(--primary); margin-bottom: 1rem;
}
.feature-card .fc-ico svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 1.1rem; color: var(--ink-900); margin-bottom: 0.35rem; font-weight: 800; }
.feature-card p { color: var(--text-muted); font-size: 0.88rem; }

.audience-band {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; box-shadow: var(--shadow-sm);
}
.audience-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; list-style: none; padding: 0; margin-top: 1.25rem; }
.audience-list li {
  padding: 0.55rem 1.1rem; border-radius: var(--radius-pill); background: var(--slate-100);
  border: 1px solid var(--border); font-size: 0.88rem; font-weight: 700; color: var(--slate-700);
}

.lux-band {
  border-radius: var(--radius);
  padding: 2.5rem; color: var(--primary-800);
  background: var(--primary-050);
  border: 1px solid var(--border-strong);
}
.lux-band .lux-quote { font-size: 1.35rem; line-height: 1.45; color: var(--ink-900); font-weight: 700; }
.lux-band .lux-by { color: var(--slate-600); font-size: 0.82rem; font-weight: 700; margin-top: 1rem; }

.home-cta-band {
  text-align: center; border-radius: var(--radius);
  padding: 3rem 2rem; color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary) 100%);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.home-cta-band h2 { font-size: 1.6rem; margin-bottom: 0.5rem; font-weight: 800; color: #FFFFFF; }
.home-cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.5rem; font-size: 0.96rem; }
.home-cta-band .btn-outline { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.4); }
.home-cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #FFFFFF; }

/* ==========================================================================
   Login & Registration Layouts
   ========================================================================== */
.login-body { background: var(--slate-100); }
.login-body form { display: flex; flex-direction: column; min-height: 100vh; width: 100%; margin: 0; }
.login-container { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 100vh; width: 100%; }

.login-sidebar {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem); color: #FFFFFF;
  background-color: #110C24; /* Fallback for variable/gradient failure */
  background: linear-gradient(135deg, #1E1B4B 0%, #110C24 50%, #4C1D95 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.ls-glow-1 {
  position: absolute; border-radius: 50%; width: 450px; height: 450px; top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 70%); filter: blur(50px); pointer-events: none; z-index: 1;
}
.ls-glow-2 {
  position: absolute; border-radius: 50%; width: 380px; height: 380px; bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14), transparent 70%); filter: blur(50px); pointer-events: none; z-index: 1;
}
.ls-content { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 3rem; flex: 1; justify-content: center; }
.ls-brand { margin-bottom: 1rem; }
.logo-box {
  background: #FFFFFF; padding: 0.65rem 1.4rem; border-radius: var(--radius);
  border: 1px solid rgba(124, 58, 237, 0.1); box-shadow: var(--shadow); width: fit-content;
}
.logo-box img { height: 40px; width: auto; display: block; }
.ls-hero-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: #FFFFFF; }
.ls-hero-text p { color: rgba(241, 245, 249, 0.82); font-size: 1.05rem; margin-top: 0.75rem; font-weight: 500; max-width: 32rem; }

.ls-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.ls-features li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; font-weight: 700; color: rgba(241, 245, 249, 0.95); }
.ls-features .feat-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--mint); font-size: 0.85rem; font-weight: 900;
}

.ls-stats { display: flex; gap: 3rem; }
.ls-stats .stat-item { display: flex; flex-direction: column; gap: 0.15rem; }
.ls-stats .stat-num { font-size: 1.85rem; font-weight: 800; color: var(--gold-hi); line-height: 1; }
.ls-stats .stat-lbl { font-size: 0.8rem; color: rgba(241, 245, 249, 0.65); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.ls-footer { position: relative; z-index: 10; font-size: 0.82rem; color: rgba(241, 245, 249, 0.5); font-weight: 700; }

.login-main-panel { display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; background: #FAF9FE; flex: 1; }
.login-stage { width: min(440px, 100%); }

.login-card {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.25rem 2rem; box-shadow: var(--shadow-md); width: 100%;
}
.mobile-logo { display: none; text-align: center; margin-bottom: 1.5rem; }
.mobile-logo img { height: 42px; width: auto; margin: 0 auto; display: block; }
.login-card .lc-head { text-align: center; margin-bottom: 1.5rem; }
.login-card .lc-head h1 { font-size: 1.45rem; color: var(--ink-900); font-weight: 800; margin-bottom: 0.25rem; }
.login-card .lc-head p { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   Form Fields
   ========================================================================== */
.field { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.84rem; font-weight: 700; color: var(--slate-700); }
.field input[type="text"], .field input[type="password"], .field .asp-input {
  width: 100%; border: 1px solid var(--slate-300); border-radius: 8px;
  padding: 0.7rem 0.95rem; font: inherit; outline: none; transition: border-color 150ms ease, box-shadow 150ms ease;
  background: #FFFFFF; color: var(--text-main);
}
.field input:focus, .field .asp-input:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
}
.login-actions { margin-top: 1.5rem; }
.login-actions .btn { border-color: var(--border-strong); }

.remember { display: inline-flex; align-items: center; gap: 0.35rem; }
.remember span { display: inline-flex; align-items: center; gap: 0.35rem; }
.remember input[type="checkbox"], .remember span input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; margin: 0; }
.remember label, .remember span label { font-size: 0.88rem; font-weight: 700; color: var(--slate-700); cursor: pointer; user-select: none; }

.forgot-link { font-size: 0.88rem; font-weight: 700; color: var(--primary); }
.forgot-link:hover { text-decoration: underline; }

.alert { border-radius: 8px; padding: 0.8rem; margin-bottom: 1.25rem; font-size: 0.88rem; font-weight: 600; display: flex; align-items: flex-start; gap: 0.5rem; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.2); }

.role-toggle { display: flex; flex-wrap: wrap; gap: 4px; padding: 0.25rem; background: var(--slate-100); border: 1px solid var(--border); border-radius: var(--radius-pill); }
.role-toggle span { display: contents; }
.role-toggle input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.role-toggle label {
  flex: 1; text-align: center; padding: 0.55rem 1rem; border-radius: var(--radius-pill);
  color: var(--slate-600); font-size: 0.86rem; font-weight: 700; cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.role-toggle label:hover { background: var(--slate-200); }
.role-toggle input[type="radio"]:checked + label { background: var(--primary); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.role-toggle input[type="radio"]:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }

.form-subsection {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--primary-050); padding: 1.1rem 1.1rem 0.2rem; margin-bottom: 1.25rem;
}
.form-subsection .fs-title { font-size: 0.8rem; font-weight: 800; color: var(--primary-700); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.9rem; }
.form-subsection .fs-hint { color: var(--text-muted); font-size: 0.82rem; margin: -0.4rem 0 1rem; }

.login-hint { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); }
.login-hint code { background: var(--gold-soft); color: var(--gold-2); padding: 0.1rem 0.35rem; border-radius: 4px; font-weight: 700; }
.login-home-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.25rem; color: var(--slate-600); font-size: 0.88rem; font-weight: 700; }
.login-home-link:hover { color: var(--primary); }

/* ==========================================================================
   Admin & Management Interfaces
   ========================================================================== */
.subnav {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--sp-5);
  padding: 0.25rem; background: var(--slate-100); border: 1px solid var(--border);
  border-radius: var(--radius-pill); width: fit-content; max-width: 100%;
}
.subnav a {
  padding: 0.45rem 1.1rem; border-radius: var(--radius-pill); color: var(--slate-600); font-size: 0.86rem; font-weight: 700;
}
.subnav a:hover { background: var(--slate-200); text-decoration: none; }
.subnav a.is-active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.field textarea.asp-input { min-height: 80px; }

select.asp-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem;
}

.table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  background: #FFFFFF; box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th, .table td { padding: 0.85rem 1.15rem; }

.table thead th {
  background: var(--slate-100); color: var(--slate-700);
  font-weight: 700; font-size: 0.74rem; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.table tbody tr { border-bottom: 1px solid var(--border); }
.table tbody tr:hover { background: var(--primary-050); }

/* Content Trees */
.content-tree .ct-top {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem; margin-bottom: 0.85rem; box-shadow: var(--shadow-sm);
}
.content-tree .ct-top > .ct-head .ct-title { font-weight: 800; color: var(--ink-900); }
.content-tree .ct-child {
  border-left: 3px solid var(--gold); background: var(--slate-100);
  border-radius: 6px; margin-bottom: 0.45rem; padding: 0.6rem 0.85rem;
}

.status-msg { padding: 0.8rem 1.1rem; border-radius: 8px; margin-bottom: var(--sp-4); font-weight: 600; font-size: 0.9rem; }
.status-ok { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-err { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.2); }

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .app-shell.layout-sidebar {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    position: fixed; left: -260px; top: 0; bottom: 0; width: 260px;
    z-index: 1000; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100vh;
  }
  .app-sidebar.is-open {
    transform: translateX(260px);
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.15);
  }
  .nav-toggle { display: inline-flex; }
  
  .app-shell.layout-sidebar .app-container {
    width: 100%;
  }
  .app-shell.layout-sidebar .app-main {
    width: min(var(--content-w), calc(100% - 1.5rem));
    padding: 1.5rem 0 3rem;
  }
  .home-hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .home-cta { justify-content: center; }
  .home-trust { justify-content: center; }
  .pub-nav { display: none; }
  .pub-header-inner { width: calc(100% - 2rem); }
}

/* ==========================================================================
   Coaching Activity Icons & Legend Statuses
   ========================================================================== */
.act-strip { display: inline-flex; align-items: center; gap: 0.3rem; }
.act-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 6px; font-size: 0.95rem;
  border: 1px solid var(--border); background: #FFFFFF; text-decoration: none;
}
.act-ico sup { font-size: 0.58rem; }

.act-passive  { opacity: 0.4; }
.act-assigned { border-color: var(--gold); background: var(--gold-soft); }
.act-waiting  { border-color: var(--slate-400); background: var(--slate-100); }
.act-approved { border-color: var(--mint-600); background: var(--mint-bg); }
.act-rejected { border-color: var(--rose); background: var(--rose-bg); }

/* Modal overlay configurations */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start;
  justify-content: center; padding: 5vh 1rem; background: rgba(0, 0, 0, 0.3);
}
.modal-box {
  width: 100%; max-width: 500px; background: #FFFFFF; border-radius: var(--radius);
  padding: 1.4rem; border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.modal-head h3 { color: var(--ink-900); font-size: 1.15rem; font-weight: 800; }
.modal-x { font-size: 1rem; color: var(--slate-500); }
.modal-x:hover { background: var(--slate-100); }

/* Password Field Wrapper & Visibility Toggle */
.pw-wrap { position: relative; display: block; }
.pw-wrap .asp-input { padding-right: 3.5rem; }
.pw-toggle {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; cursor: pointer; font-size: 0.8rem; font-weight: 700;
  color: var(--primary); padding: 0.25rem 0.5rem; border-radius: 4px;
}
.pw-toggle:hover { background: var(--slate-200); }

/* Database Updater Log Console */
.db-wrap { width: min(760px, calc(100% - 2rem)); margin: 3rem auto; }
.db-out { background:#0f172a; color:#e2e8f0; border-radius:12px; padding:1rem 1.15rem; font-family:Consolas,Menlo,monospace; font-size:0.85rem; line-height:1.5; white-space:pre-wrap; word-break:break-word; max-height:420px; overflow:auto; }
.db-out .ok { color:#7ee2a8; }
.db-out .err { color:#ff9b8a; }

/* ==========================================================================
   KARANLIK MOD (prefers-color-scheme: dark)
   Menekşe + turuncu marka korunur; yüzeyler koyulaşır.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8B5CF6; --primary-600: #7C3AED; --primary-700: #6D28D9; --primary-800: #5B21B6;
    --primary-050: #211B3A; --primary-100: #2D2555; --primary-mid: #A78BFA;
    --gold: #FB923C; --gold-2: #F97316; --gold-hi: #FDBA74; --gold-soft: #3A2410;
    --accent: #FB923C; --accent-600: #F97316;
    --sky: #60A5FA; --sky-600: #3B82F6; --sky-bg: #16233F;
    --teal: #2DD4BF; --teal-bg: #0F2A2A;
    --mint: #34D399; --mint-600: #10B981; --mint-bg: #0F2A20;
    --rose: #F87171; --rose-bg: #3A1A1A; --amber: #FBBF24; --amber-bg: #33280F;
    --info: #60A5FA; --info-bg: #16233F;
    --ink-900: #F1F5F9; --ink-800: #E2E8F0; --ink-700: #CBD5E1;
    --slate-700: #CBD5E1; --slate-600: #A3AEC2; --slate-500: #8A97AE; --slate-400: #64748B;
    --slate-300: #3A465C; --slate-200: #1F2A3D; --slate-100: #182235;
    --success: #34D399; --success-bg: #0F2A20; --warning: #FBBF24; --warning-bg: #33280F;
    --danger: #F87171; --danger-bg: #3A1A1A;
    --bg: #0B1120; --surface: #131C2E; --surface-solid: #131C2E; --surface-2: #0F1626; --surface-3: #211B3A;
    --border: #253248; --border-strong: rgba(139, 92, 246, 0.4);
    --text-main: #E2E8F0; --text-muted: #97A3B8; --text-soft: #6B7890;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    --shadow: 0 12px 32px -8px rgba(0,0,0,0.5);
    --shadow-md: 0 20px 40px -12px rgba(0,0,0,0.55);
    --ring: 0 0 0 4px rgba(139, 92, 246, 0.3);
  }
  body {
    background:
      radial-gradient(circle at 10% 15%, rgba(139, 92, 246, 0.10) 0%, transparent 45%),
      radial-gradient(circle at 90% 85%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
      var(--bg);
  }
  /* Sabit beyaz yüzeyleri koyulaştır */
  .app-sidebar, .sidebar-brand, .top-bar, .nav-toggle, .tb-icon, .btn-outline,
  .sidebar-footer .user-chip, .card, .stat-card, .module-card, .feature-card,
  .shell-panel, .audience-band, .home-mockup, .modal-box, .login-card, .table-wrap,
  .content-tree .ct-top, .m-row, .m-tile, .act-ico, .quick-actions a { background: var(--surface); }
  .sidebar-footer { background: var(--surface-2); }
  .sidebar-nav .nav-link:hover .nav-ic { background: var(--surface-2); }
  .pub-header { background: rgba(11, 17, 32, 0.85); }
  .app-footer { background: rgba(15, 22, 38, 0.6); }
  .home-hero { background: linear-gradient(180deg, #14102A 0%, var(--bg) 100%); }
  .empty-state { background: var(--surface-2); }
  .login-body, .login-main { background: var(--bg); }
  /* Form kontrolleri */
  .field input[type="text"], .field input[type="password"], .field .asp-input,
  .asp-input, textarea.asp-input, select.asp-input {
    background: var(--surface-2); color: var(--text-main); border-color: var(--border);
  }
  select.asp-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2397A3B8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
  .table thead th { background: var(--surface-2); }
  .table tbody tr:hover { background: var(--primary-050); }
  /* Karanlıkta rozet metinleri parlak (koyu zemin üstünde okunur) */
  .badge-soon { color: var(--warning); }
  .badge-live { color: var(--success); }
  .badge-primary { color: var(--primary-mid); }
  /* Karşılama banner'ı: karanlıkta düz koyu yüzey (açık gradyan yerine) */
  .welcome-banner { background: var(--surface); border-color: var(--border); }
  .welcome-eyebrow { color: var(--primary-mid); border-color: var(--primary-100); background: var(--primary-050); }
}
