/* ============================================================
   WaPanel — Tema
   Tasarım token'ları + modernize bileşen stilleri
   ============================================================ */

:root {
  /* Marka (WhatsApp yeşili aksanlı) */
  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-300: #6ee7b7;
  --brand-400: #34d399;
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;

  /* Nötr */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;

  /* Sidebar karanlık */
  --sb-bg: #0b1220;
  --sb-bg-2: #111a2c;
  --sb-border: rgba(255, 255, 255, 0.06);
  --sb-text: #cbd5e1;
  --sb-text-dim: #94a3b8;
  --sb-text-strong: #f8fafc;
  --sb-hover: rgba(255, 255, 255, 0.06);
  --sb-active-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.05));
  --sb-active-text: #ffffff;
  --sb-active-indicator: var(--brand-400);

  /* Yüzeyler */
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --page-bg: #f4f6fb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  /* Gölge */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.15);

  /* Radius */
  --r-sm: 0.375rem;
  --r-md: 0.55rem;
  --r-lg: 0.85rem;
  --r-xl: 1.1rem;

  /* Boyut */
  --sidebar-w: 248px;
  --sidebar-w-compact: 68px;
  --topbar-h: 60px;

  /* Durum renkleri */
  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #0ea5e9;
}

/* ---------- Temeller ---------- */
html {
  font-size: 15px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.app-body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink-900);
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 90%, rgba(14, 165, 233, 0.10), transparent 60%),
    linear-gradient(145deg, #0b1220 0%, #111a2c 55%, #0b1220 100%);
  color: #e2e8f0;
}

a { color: var(--brand-600); }
a:hover { color: var(--brand-700); }

/* ---------- App Shell ---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  --sidebar-width: var(--sidebar-w);
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--sb-bg) 0%, var(--sb-bg-2) 100%);
  color: var(--sb-text);
  display: flex;
  flex-direction: column;
  padding: 1rem 0 0.75rem;
  overflow: hidden;
  position: relative;
  transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease,
              box-shadow 0.22s ease, opacity 0.2s ease, transform 0.25s ease,
              border-right-width 0.25s ease;
  border-right: 1px solid var(--sb-border);
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.sidebar-brand {
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.25rem 1rem 0.9rem;
  margin: 0 0.5rem 0.5rem;
  border-bottom: 1px solid var(--sb-border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sb-text-strong);
}

.sidebar-brand-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar-brand-logo {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: #ffffff;
  flex-shrink: 0;
  padding: 4px;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sidebar-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
  min-width: 0;
}

.sidebar-brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--sb-text-strong);
}

.sidebar-brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 0.5rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-md);
  color: var(--sb-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  position: relative;
}

.sidebar-link-icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-link-text {
  white-space: nowrap;
}

.sidebar-link:hover {
  background: var(--sb-hover);
  color: var(--sb-text-strong);
}

.sidebar-link:hover .sidebar-link-icon {
  opacity: 1;
}

.sidebar-link.active {
  background: var(--sb-active-bg);
  color: var(--sb-active-text);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.sidebar-link.active::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: var(--sb-active-indicator);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.55);
}

.sidebar-link.active .sidebar-link-icon {
  color: var(--brand-300);
  opacity: 1;
}

.sidebar-section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--sb-text-dim);
  padding: 0.9rem 0.85rem 0.35rem;
  font-weight: 600;
}

.sidebar-footer {
  padding: 0.75rem 0.75rem 0;
  border-top: 1px solid var(--sb-border);
  margin: 0.5rem 0.5rem 0;
}

.sidebar-footer-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.sidebar-footer-badges .badge {
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.sidebar-logout-form {
  margin: 0.35rem 0 0;
}

.sidebar-logout-btn {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  color: var(--sb-text-dim) !important;
  width: 100%;
  padding: 0.55rem 0.25rem !important;
  border-radius: var(--r-md);
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}

.sidebar-logout-btn:hover {
  color: #fff !important;
  background: rgba(239, 68, 68, 0.12);
}

/* ---------- Mobil sidebar (dar şerit) ---------- */
@media (max-width: 991.98px) {
  .app-shell { --sidebar-width: var(--sidebar-w-compact); }

  .app-shell.sidebar-expanded {
    --sidebar-width: var(--sidebar-w);
  }

  .app-shell.sidebar-expanded .sidebar {
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1020;
  }

  .app-shell:not(.sidebar-expanded) .sidebar-brand-text,
  .app-shell:not(.sidebar-expanded) .sidebar-brand-subtitle,
  .app-shell:not(.sidebar-expanded) .sidebar-link-text,
  .app-shell:not(.sidebar-expanded) .sidebar-section-label,
  .app-shell:not(.sidebar-expanded) .sidebar-footer-badges {
    display: none;
  }

  .app-shell:not(.sidebar-expanded) .sidebar-brand,
  .app-shell:not(.sidebar-expanded) .sidebar-footer {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .app-shell:not(.sidebar-expanded) .sidebar-link,
  .app-shell:not(.sidebar-expanded) .sidebar-logout-btn {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .app-shell:not(.sidebar-expanded) .sidebar-link.active::before {
    left: 0.2rem;
  }

  /* Scroll ile sidebar tamamen gizlensin */
  .app-shell.sidebar-hidden {
    --sidebar-width: 0px;
  }

  .app-shell.sidebar-hidden .sidebar {
    width: 0;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    border-right-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
  }

  /* Gizlendiğinde topbar'da sticky bir davranışla hamburger görünür kalsın */
  .app-shell.sidebar-hidden .app-topbar {
    padding-left: 0.9rem;
  }
}

/* ---------- Masaüstü sidebar ---------- */
@media (min-width: 992px) {
  .app-shell.sidebar-collapsed { --sidebar-width: var(--sidebar-w-compact); }

  .app-shell.sidebar-collapsed .sidebar-brand-text,
  .app-shell.sidebar-collapsed .sidebar-brand-subtitle,
  .app-shell.sidebar-collapsed .sidebar-link-text,
  .app-shell.sidebar-collapsed .sidebar-section-label,
  .app-shell.sidebar-collapsed .sidebar-footer-badges {
    display: none;
  }

  .app-shell.sidebar-collapsed .sidebar-brand,
  .app-shell.sidebar-collapsed .sidebar-footer {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .app-shell.sidebar-collapsed .sidebar-link,
  .app-shell.sidebar-collapsed .sidebar-logout-btn {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ---------- Ana alan ---------- */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--page-bg);
}

/* ---------- Topbar ---------- */
.app-topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.85rem;
  max-width: 260px;
}

.topbar-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.topbar-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-700);
  border-radius: var(--r-md);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-toggle:hover {
  background: var(--ink-100);
  color: var(--ink-900);
}

.sidebar-toggle:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

/* ---------- İçerik ---------- */
.app-content {
  max-width: 1600px;
  width: 100%;
  padding: 1.5rem 1.5rem 2.5rem;
}

@media (max-width: 575.98px) {
  .app-content { padding: 1rem 0.9rem 2rem; }
}

.page-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.page-sub {
  color: var(--ink-500);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header .page-title { margin-bottom: 0.25rem; }
.page-header .page-sub   { margin-bottom: 0; }

/* ---------- Kart ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.card.shadow-sm { box-shadow: var(--shadow-sm); }

.card-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.25rem;
  box-shadow: var(--shadow-xs);
}

/* Stat kartları */
.stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 110px;
}

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-200);
}

.stat-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: var(--brand-50);
  color: var(--brand-700);
}

.stat-icon.is-success { background: var(--brand-50);  color: var(--brand-700); }
.stat-icon.is-info    { background: #e0f2fe;          color: #0369a1; }
.stat-icon.is-warning { background: #fef3c7;          color: #b45309; }
.stat-icon.is-neutral { background: var(--ink-100);   color: var(--ink-700); }

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 0.15rem;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.stat-hint {
  color: var(--ink-500);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* Quick action kartı */
.quick-card {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 14px 30px -14px rgba(5, 150, 105, 0.55);
  min-height: 110px;
  justify-content: space-between;
}

.quick-card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0;
}

.quick-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  margin: 0;
}

.quick-card .btn {
  align-self: flex-start;
}

/* ---------- Butonlar ---------- */
.btn {
  --bs-btn-padding-y: 0.5rem;
  --bs-btn-padding-x: 0.95rem;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: transform 0.08s ease, box-shadow 0.2s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn-primary {
  --bs-btn-bg: var(--brand-600);
  --bs-btn-border-color: var(--brand-600);
  --bs-btn-hover-bg: var(--brand-700);
  --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-bg: var(--brand-700);
  --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-focus-shadow-rgb: 16, 185, 129;
  box-shadow: 0 6px 14px -6px rgba(16, 185, 129, 0.55);
}

.btn-outline-primary {
  --bs-btn-color: var(--brand-700);
  --bs-btn-border-color: var(--brand-600);
  --bs-btn-hover-bg: var(--brand-600);
  --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-bg: var(--brand-700);
  --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-focus-shadow-rgb: 16, 185, 129;
}

.btn-link {
  --bs-btn-color: var(--brand-700);
  text-decoration: none;
  font-weight: 500;
}

.btn-link:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

.btn-sm { --bs-btn-padding-y: 0.3rem; --bs-btn-padding-x: 0.6rem; font-size: 0.82rem; }

/* ---------- Formlar ---------- */
.form-label {
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  background-color: var(--surface);
  color: var(--ink-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  outline: none;
}

.form-text {
  color: var(--ink-500);
  font-size: 0.82rem;
}

.form-check-input:checked {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
}

.form-check-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ---------- Tablo ---------- */
.table {
  --bs-table-bg: var(--surface);
  margin-bottom: 0;
  color: var(--ink-800);
  font-size: 0.93rem;
}

.table-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.table-surface .table-responsive { margin: 0; }

.table thead th {
  background: var(--ink-50);
  border-bottom: 1px solid var(--border);
  color: var(--ink-500);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.7rem 1rem;
}

.table tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: middle;
}

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

.table-hover tbody tr:hover {
  background-color: var(--ink-50);
}

.table code {
  background: var(--ink-100);
  color: var(--ink-800);
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.82rem;
}

.table-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-actions form { display: inline; }

/* ---------- Durum rozetleri ---------- */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ink-700);
}

.status-dot::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--ink-400);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.status-dot.is-open::before {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.status-dot.is-connecting::before {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.status-dot.is-close::before,
.status-dot.is-closed::before {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

/* ---------- Alert ---------- */
.alert {
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
}

.alert-success { background: var(--brand-50);  color: var(--brand-700); border-color: var(--brand-200); }
.alert-info    { background: #e0f2fe;          color: #075985;          border-color: #bae6fd; }
.alert-warning { background: #fef3c7;          color: #92400e;          border-color: #fde68a; }
.alert-danger  { background: #fee2e2;          color: #991b1b;          border-color: #fecaca; }
.alert-secondary { background: var(--ink-50);  color: var(--ink-700);   border-color: var(--ink-200); }

/* ---------- Badges ---------- */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 999px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.badge.text-bg-primary {
  background: var(--brand-700) !important;
  color: #fff !important;
}

.badge.text-bg-secondary {
  background: var(--brand-400) !important;
  color: #fff !important;
}

.badge.text-bg-warning {
  background: var(--brand-600) !important;
  color: #fff !important;
}

.badge.text-bg-success {
  background: var(--success) !important;
  color: #fff !important;
}

.badge.text-bg-danger {
  background: var(--danger) !important;
  color: #fff !important;
}

.badge.text-bg-info {
  background: var(--info) !important;
  color: #fff !important;
}

.badge.text-bg-dark {
  background: var(--ink-800) !important;
  color: #fff !important;
}

.badge.text-bg-light {
  background: var(--ink-100) !important;
  color: var(--ink-700) !important;
  border-color: var(--ink-200) !important;
}

/* Badge'in border yardımcı sınıfı (bilgi bankası kategori etiketleri vb.) */
.badge.border {
  border: 1px solid var(--ink-200) !important;
}

/* ---------- Onay Modal ---------- */
.app-confirm-modal {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.app-confirm-modal .modal-header {
  border-bottom: 1px solid var(--ink-100);
  padding: 1rem 1.25rem;
}

.app-confirm-modal .modal-title {
  font-weight: 600;
  color: var(--ink-900);
  font-size: 1.05rem;
}

.app-confirm-modal .modal-body {
  padding: 1.25rem;
  color: var(--ink-700);
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-confirm-modal .modal-footer {
  border-top: 1px solid var(--ink-100);
  padding: 0.85rem 1.25rem;
  gap: 0.5rem;
}

.app-confirm-modal .btn-outline-secondary {
  color: var(--ink-700);
  border-color: var(--border-strong);
  background: transparent;
}

.app-confirm-modal .btn-outline-secondary:hover {
  background: var(--ink-50);
  color: var(--ink-900);
}

/* ---------- Auth Kartı ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--r-xl);
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e2e8f0;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 14px 30px -8px rgba(16, 185, 129, 0.55);
  margin-bottom: 1rem;
}

.auth-logo-img {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 18px 40px -10px rgba(16, 185, 129, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.auth-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-card h1 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}

.auth-card .lead {
  font-size: 0.92rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.auth-card .form-label {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.auth-card .form-control {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
}

.auth-card .form-control::placeholder { color: #64748b; }

.auth-card .form-control:focus {
  background: rgba(15, 23, 42, 0.75);
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  color: #fff;
}

.auth-card .form-check-label { color: #cbd5e1; }

.auth-card .link-light {
  color: #cbd5e1 !important;
}

.auth-card .link-light:hover { color: var(--brand-300) !important; }

.auth-card .btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border: none;
  padding: 0.65rem 1rem;
  font-weight: 600;
  box-shadow: 0 12px 24px -10px rgba(16, 185, 129, 0.65);
}

.auth-card .btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-600), #065f46);
}

/* ---------- Kodlu textarea (AI agent) ---------- */
.ai-editor {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  background: #0b1220;
  color: #e2e8f0;
  border-color: #1e293b;
}

.ai-editor:focus {
  background: #0b1220;
  color: #f8fafc;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* ---------- Empty state ---------- */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--ink-600);
}

.empty-state .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-500);
  margin-bottom: 0.9rem;
}

.empty-state h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 0.35rem;
}

.empty-state p { margin-bottom: 1rem; font-size: 0.92rem; }

/* ---------- QR kartı ---------- */
.qr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 400px;
  margin: 0 auto;
}

.qr-card img {
  max-width: 260px;
  width: 100%;
  height: auto;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.qr-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.qr-card p.text-muted { margin-bottom: 1rem; font-size: 0.9rem; }

.pairing-code {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.6rem 1rem;
  background: var(--ink-100);
  border-radius: var(--r-md);
  color: var(--ink-900);
}

/* ---------- Müşterilerim sayfası ---------- */
.customers-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.6rem 0.8rem;
  box-shadow: var(--shadow-xs);
}

.customers-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}

.customers-search svg {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
}

.customers-search .form-control {
  padding-left: 2.2rem;
}

.customers-filter {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem;
  flex-wrap: wrap;
}

.customers-filter-btn {
  border: none;
  background: transparent;
  color: var(--ink-600);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.customers-filter-btn:hover {
  color: var(--ink-900);
  background: rgba(15, 23, 42, 0.04);
}

.customers-filter-btn.active {
  background: var(--surface);
  color: var(--brand-700);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--brand-200);
}

.customers-toolbar-extra {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.customers-remarketing-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.customers-filter-btn .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  padding: 0 0.35rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-600);
  font-size: 0.72rem;
  font-weight: 600;
}

.customers-filter-btn.active .count {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* ---------- Müşteri liste + accordion ---------- */
.customer-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.customer-row {
  position: relative;
  border-top: 1px solid var(--ink-100);
  transition: background 0.2s ease;
}

.customer-row:first-child { border-top: none; }

.customer-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.customer-row[data-status="active"]::before    { background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); }
.customer-row[data-status="completed"]::before { background: linear-gradient(180deg, #38bdf8, #0369a1); }
.customer-row[data-status="passive"]::before   { background: linear-gradient(180deg, var(--ink-200), var(--ink-300)); }

.customer-row.open {
  background: linear-gradient(180deg, var(--brand-50), transparent 80%);
}

.customer-row-head {
  display: grid;
  grid-template-columns: 4.76rem minmax(200px, 1.4fr) minmax(0, 1.6fr) auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.95rem 1.1rem 0.95rem 1.3rem;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: background 0.15s ease;
}

.customer-row-head:hover {
  background: var(--ink-50);
}

.customer-row.open .customer-row-head:hover {
  background: transparent;
}

.customer-row-head:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: -2px;
}

.customer-row-avatar {
  width: 4.08rem;
  height: 4.08rem;
  border-radius: 1.19rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.394rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 10px -4px rgba(16, 185, 129, 0.45);
  position: relative;
  overflow: hidden;
}

.customer-row-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}

.customer-row-avatar.has-photo .customer-row-avatar-fallback {
  visibility: hidden;
}

.customer-row[data-status="passive"] .customer-row-avatar {
  background: linear-gradient(135deg, var(--ink-400), var(--ink-600));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 10px -4px rgba(15, 23, 42, 0.2);
}

.customer-row[data-status="completed"] .customer-row-avatar {
  background: linear-gradient(135deg, #38bdf8, #0369a1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 10px -4px rgba(3, 105, 161, 0.45);
}

.customer-row-primary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.customer-row-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 0.2rem;
}

.customer-row-name {
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}

.customer-pushname-badge {
  display: inline-flex;
  align-items: center;
  max-width: 10rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0c4a6e;
  border: 1px solid #7dd3fc;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.customer-pushname-badge::before {
  content: "@";
  margin-right: 0.2rem;
  font-weight: 600;
  color: #0369a1;
  opacity: 0.85;
}

.customer-row-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  font-size: 0.78rem;
  color: var(--ink-500);
}

.customer-row-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-700);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.customer-row-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-600);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.customer-row-chip--lang {
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  letter-spacing: 0.06em;
}

.customer-row-subject {
  min-width: 0;
  color: var(--ink-700);
  font-size: 0.88rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.customer-row-subject > span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-row-right {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.customer-row-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--ink-500);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  font-variant-numeric: tabular-nums;
}

.customer-row-chevron {
  color: var(--ink-400);
  transition: transform 0.2s ease, color 0.15s ease;
  flex-shrink: 0;
}

.customer-row.open .customer-row-chevron {
  transform: rotate(180deg);
  color: var(--brand-600);
}

/* Accordion panel */
.customer-row-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.customer-row-panel-inner {
  padding: 0.25rem 1.3rem 1.4rem 1.3rem;
  border-top: 1px dashed var(--ink-100);
  margin-top: 0;
}

/* Kontrol barı (switch'ler) */
.customer-control-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.control-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  user-select: none;
}

.control-toggle:hover {
  border-color: var(--ink-200);
  box-shadow: var(--shadow-xs);
}

.control-toggle.is-on {
  background: linear-gradient(135deg, var(--brand-50) 0%, #f0fdf4 100%);
  border-color: var(--brand-200);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.06), var(--shadow-xs);
}

.control-toggle.is-on.control-toggle--remarketing {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08), var(--shadow-xs);
}

.control-toggle.control-toggle--remarketing .app-switch input:checked + .app-switch-track {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.control-toggle.is-on.control-toggle--sold {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-color: #fcd34d;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08), var(--shadow-xs);
}

.control-toggle-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: var(--ink-100);
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.control-toggle.is-on .control-toggle-icon {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 10px -4px rgba(16, 185, 129, 0.55);
}

.control-toggle.is-on.control-toggle--remarketing .control-toggle-icon {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 10px -4px rgba(139, 92, 246, 0.55);
}

.control-toggle.is-on.control-toggle--sold .control-toggle-icon {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 10px -4px rgba(245, 158, 11, 0.55);
}

.control-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.control-toggle-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  font-weight: 600;
}

.control-toggle-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.2;
}

.control-toggle.is-on .control-toggle-value {
  color: var(--brand-700);
}

.control-toggle.is-on.control-toggle--sold .control-toggle-value {
  color: #b45309;
}

/* Flash / saving state */
.control-toggle.is-saving {
  opacity: 0.85;
  pointer-events: none;
}

.control-toggle.is-success-flash {
  animation: toggle-flash-success 0.9s ease;
}

.control-toggle.is-error {
  animation: toggle-flash-error 0.9s ease;
  border-color: var(--danger) !important;
}

@keyframes toggle-flash-success {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  40%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.20); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes toggle-flash-error {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* App switch (toggle) */
.app-switch {
  position: relative;
  display: inline-block;
  width: 2.6rem;
  height: 1.45rem;
  flex-shrink: 0;
  cursor: pointer;
}

.app-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.app-switch-track {
  position: absolute;
  inset: 0;
  background: var(--ink-300);
  border-radius: 999px;
  transition: background 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.app-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.45rem - 4px);
  height: calc(1.45rem - 4px);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

.app-switch input:checked + .app-switch-track {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
}

.control-toggle.control-toggle--sold .app-switch input:checked + .app-switch-track {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.app-switch input:checked + .app-switch-track .app-switch-thumb {
  transform: translateX(calc(2.6rem - 1.45rem));
}

.app-switch input:focus-visible + .app-switch-track {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.app-switch input:disabled + .app-switch-track {
  opacity: 0.6;
}

/* Detay grid — daha ferah */
.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.customer-detail {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.customer-detail:hover {
  border-color: var(--brand-200);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.customer-detail-head {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-700);
  margin-bottom: 0.5rem;
}

.customer-detail-body {
  color: var(--ink-800);
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.customer-detail--empty {
  grid-column: 1 / -1;
  text-align: center;
  background: transparent;
  border-style: dashed;
  padding: 1.25rem 1rem;
}

/* Paylaşılan görseller (n8n dosya kökü) */
.customer-shared-media {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.06), var(--surface-2) 45%, var(--surface));
  box-shadow: var(--shadow-xs);
}

.customer-shared-media__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.customer-shared-media__title {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.customer-shared-media__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(16, 185, 129, 0.45);
}

.customer-shared-media__heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.customer-shared-media__sub {
  font-size: 0.72rem;
  color: var(--ink-500);
  margin: 0.15rem 0 0 0;
  line-height: 1.35;
}

.customer-shared-media__count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-800);
  border: 1px solid var(--brand-200);
}

.customer-shared-media__loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-600);
}

.customer-shared-media__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--ink-200);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: customer-shared-spin 0.7s linear infinite;
}

@keyframes customer-shared-spin {
  to { transform: rotate(360deg); }
}

.customer-shared-media__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.55rem;
}

.customer-shared-media__item {
  position: relative;
}

.customer-shared-media__delete {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  z-index: 2;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: rgba(185, 28, 28, 0.88);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.customer-shared-media__item:hover .customer-shared-media__delete,
.customer-shared-media__item:focus-within .customer-shared-media__delete {
  opacity: 1;
  transform: scale(1);
}

.customer-shared-media__delete:hover {
  background: rgba(153, 27, 27, 0.96);
}

.customer-shared-media__delete:focus-visible {
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.customer-shared-media__cell {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 0.65rem;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--ink-100);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.customer-shared-media__cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.35);
}

.customer-shared-media__cell:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.customer-shared-media__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.customer-shared-media__cell--pdf {
  cursor: pointer;
  background: linear-gradient(160deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem;
}

.customer-shared-media__pdf-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #991b1b;
  background: #fff;
  border-radius: 0.35rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid #fca5a5;
}

.customer-shared-media__pdf-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: #7f1d1d;
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.customer-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.customer-media-lightbox[hidden] {
  display: none !important;
}

.customer-media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.customer-media-lightbox__frame {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  max-height: 92vh;
  margin: auto;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: #0f172a;
}

.customer-media-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.customer-media-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  opacity: 0.9;
}

.customer-media-lightbox.is-open .customer-media-lightbox__frame {
  animation: customer-lightbox-in 0.22s ease-out;
}

@keyframes customer-lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.customer-meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem 1.25rem;
  margin: 1.25rem 0 0 0;
  padding: 1rem 0 0 0;
  border-top: 1px dashed var(--ink-100);
  font-size: 0.8rem;
}

.customer-meta-list > div {
  min-width: 0;
}

.customer-meta-list dt {
  color: var(--ink-500);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}

.customer-meta-list dd {
  color: var(--ink-800);
  margin: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-meta-list code {
  background: var(--ink-100);
  color: var(--ink-700);
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.78rem;
}

/* Status chip (listede kullanılıyor) */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.status-chip::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.status-chip.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-200);
}

.status-chip.is-completed {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.status-chip.is-passive {
  background: var(--ink-100);
  color: var(--ink-600);
  border-color: var(--ink-200);
}

/* Responsive — mobilde her satır ayrı bir kart (aralarında boşluk) */
@media (max-width: 767.98px) {
  /* Liste kabı şeffaf — kartlar kendi gölgesini taşır */
  .customer-list {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .customer-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
  }

  .customer-row:first-child,
  .customer-row:last-child {
    border-top: 1px solid var(--border);
  }

  .customer-row::before {
    border-radius: var(--r-md) 0 0 var(--r-md);
  }

  .customer-row.open {
    background: linear-gradient(180deg, var(--brand-50), var(--surface) 60%);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
  }

  /* İki satırlı düzen: üstte avatar+isim+durum, altta konu */
  .customer-row-head {
    grid-template-columns: 3.74rem 1fr auto;
    grid-template-areas:
      "avatar primary right"
      "subject subject subject";
    row-gap: 0.4rem;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem 0.7rem 0.95rem;
  }
  .customer-row-avatar    { grid-area: avatar; width: 3.74rem; height: 3.74rem; border-radius: 1.02rem; font-size: 1.326rem; }
  .customer-row-primary   { grid-area: primary; }
  .customer-row-subject   { grid-area: subject; white-space: normal; font-size: 0.82rem; line-height: 1.35; }
  .customer-row-subject > span {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .customer-row-right     { grid-area: right; gap: 0.35rem; }
  .customer-row-time      { display: none; }

  /* Başlık — daha ufak tipografi */
  .customer-row-name { font-size: 0.9rem; }
  .customer-row-title { gap: 0.35rem; }
  .customer-pushname-badge { font-size: 0.68rem; padding: 0.05rem 0.4rem; max-width: 7.5rem; }

  /* Alt meta rozet boşlukları daralsın */
  .customer-row-sub { gap: 0.2rem 0.4rem; font-size: 0.72rem; }
  .customer-row-chip { padding: 0.05rem 0.4rem; font-size: 0.68rem; }
  .customer-row-phone { font-size: 0.72rem; }

  /* Accordion paneli — daha kompakt */
  .customer-row-panel-inner {
    padding: 0.2rem 0.85rem 1rem 0.95rem;
  }
  .customer-control-bar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.8rem;
  }
  .control-toggle { padding: 0.65rem 0.8rem; gap: 0.7rem; }
  .control-toggle-icon { width: 2rem; height: 2rem; border-radius: 0.55rem; }
  .control-toggle-title { font-size: 0.65rem; }
  .control-toggle-value { font-size: 0.85rem; }
  .app-switch { width: 2.3rem; height: 1.3rem; }
  .app-switch-thumb { width: calc(1.3rem - 4px); height: calc(1.3rem - 4px); }
  .app-switch input:checked + .app-switch-track .app-switch-thumb {
    transform: translateX(calc(2.3rem - 1.3rem));
  }

  .customer-panel-actions { margin-top: 0.8rem; }
  .customer-chat-btn { font-size: 0.78rem; padding: 0.35rem 0.65rem; }

  .customer-detail-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 0.8rem;
  }
  .customer-detail { padding: 0.6rem 0.75rem; }
  .customer-detail-head { font-size: 0.65rem; margin-bottom: 0.3rem; }
  .customer-detail-body { font-size: 0.82rem; line-height: 1.45; }

  .customer-meta-list {
    grid-template-columns: 1fr;
    gap: 0.35rem 0;
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    font-size: 0.72rem;
  }
  .customer-meta-list dt { font-size: 0.65rem; }

  /* Durum chip'i daha minik */
  .status-chip {
    font-size: 0.6rem;
    padding: 0.12rem 0.45rem;
    letter-spacing: 0.02em;
  }

  /* İstatistik & araç çubuğu da kompakt */
  .customers-toolbar { padding: 0.5rem 0.6rem; gap: 0.5rem; }
  .customers-filter-btn { font-size: 0.74rem; padding: 0.3rem 0.6rem; }
}

@media (max-width: 479.98px) {
  .customer-row-head { padding: 0.65rem 0.8rem 0.65rem 0.9rem; gap: 0.6rem; }
  .customer-row-panel-inner { padding: 0.15rem 0.8rem 0.95rem 0.9rem; }
  .customer-row-name { font-size: 0.88rem; }
  .customer-pushname-badge { max-width: 6.5rem; }
}

/* ---------- Accordion içi eylem butonları ---------- */
.customer-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-bottom: 0.2rem;
}

.customer-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Yazışma modali ---------- */
.chat-modal .modal-dialog {
  max-width: 780px;
}

.chat-modal .modal-content {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-modal-header {
  background: linear-gradient(135deg, #0b1220 0%, #111a2c 70%, #064e3b 130%);
  color: #f8fafc;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  gap: 0.75rem;
}

.chat-modal-header .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.7;
}

.chat-modal-header .btn-close:hover {
  opacity: 1;
}

.chat-modal-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.chat-modal-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px -4px rgba(16, 185, 129, 0.55);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.chat-modal-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}

.chat-modal-avatar.has-photo .chat-modal-avatar-fallback {
  visibility: hidden;
}

.chat-modal-contact-text {
  min-width: 0;
}

.chat-modal-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.chat-modal-sub {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.75);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.1rem;
  flex-wrap: wrap;
}

.chat-modal-phone {
  font-variant-numeric: tabular-nums;
}

.chat-modal-count {
  color: var(--brand-300);
  font-weight: 500;
}

.chat-modal-body {
  padding: 0;
  background:
    radial-gradient(1200px 400px at 20% 0%, rgba(16, 185, 129, 0.06), transparent 55%),
    radial-gradient(900px 400px at 90% 100%, rgba(14, 165, 233, 0.05), transparent 60%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
  max-height: 70vh;
  overflow-y: auto;
}

.chat-modal-body::-webkit-scrollbar { width: 10px; }
.chat-modal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.chat-modal-body::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: padding-box; }

.chat-modal-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.65rem 1.1rem;
}

/* Yükleme / hata / boş durumlar */
.chat-loading,
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  color: var(--ink-500);
  text-align: center;
}

.chat-empty svg { color: var(--ink-300); }

.chat-empty h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-700);
}

.chat-spinner {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 3px solid var(--ink-200);
  border-top-color: var(--brand-500);
  animation: chat-spin 0.75s linear infinite;
}

@keyframes chat-spin {
  to { transform: rotate(360deg); }
}

.chat-error {
  margin: 1rem;
  border-radius: var(--r-md);
}

/* Timeline */
.chat-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.25rem;
}

.chat-day-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.6rem 0 0.2rem;
  position: relative;
}

.chat-day-divider::before,
.chat-day-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
}

.chat-day-divider span {
  background: rgba(255, 255, 255, 0.85);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin: 0 0.55rem;
  white-space: nowrap;
}

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.chat-msg--human { justify-content: flex-end; }
.chat-msg--ai,
.chat-msg--ai_call,
.chat-msg--tool,
.chat-msg--unknown { justify-content: flex-start; }

.chat-avatar-ai,
.chat-avatar-tool {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 6px -2px rgba(15, 23, 42, 0.25);
}

.chat-avatar-ai {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}

.chat-avatar-tool {
  background: linear-gradient(135deg, #64748b, #334155);
}

.chat-bubble {
  max-width: 78%;
  padding: 0.55rem 0.75rem 0.35rem;
  border-radius: 1rem;
  position: relative;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 1px rgba(15, 23, 42, 0.04);
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chat-bubble-body {
  white-space: pre-wrap;
  color: inherit;
}

.chat-bubble-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-bubble-time {
  font-size: 0.68rem;
  font-weight: 500;
  margin-top: 0.2rem;
  text-align: right;
  letter-spacing: 0.02em;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

/* Human — yeşil (WhatsApp tarzı) */
.chat-bubble--human {
  background: linear-gradient(180deg, #dcf8c6 0%, #c8f1ae 100%);
  color: #0f3b1f;
  border-top-right-radius: 0.3rem;
}

.chat-bubble--human::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: 0;
  width: 10px;
  height: 12px;
  background: #c8f1ae;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.chat-bubble--human .chat-bubble-time { color: #1a5f32; }

/* AI — beyaz */
.chat-bubble--ai {
  background: var(--surface);
  color: var(--ink-800);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-top-left-radius: 0.3rem;
}

.chat-bubble--ai::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 0;
  width: 10px;
  height: 12px;
  background: var(--surface);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.chat-bubble--ai .chat-bubble-time { color: var(--ink-500); }

.chat-bubble--unknown {
  background: var(--ink-100);
  color: var(--ink-700);
  font-style: italic;
}

/* AI tool call notice — mini chip */
.chat-tool-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px dashed rgba(15, 23, 42, 0.12);
  color: var(--ink-600);
  font-size: 0.78rem;
  max-width: 78%;
}

.chat-tool-call strong {
  color: var(--ink-800);
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
}

.chat-tool-time {
  margin-left: auto;
  color: var(--ink-400);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  padding-left: 0.4rem;
}

/* Tool result — collapsible */
.chat-tool-result {
  max-width: 78%;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.chat-tool-result summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-600);
  user-select: none;
}

.chat-tool-result summary::-webkit-details-marker { display: none; }
.chat-tool-result summary::marker { content: ""; }

.chat-tool-result summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--ink-400);
  border-bottom: 1.5px solid var(--ink-400);
  transform: rotate(-45deg);
  display: inline-block;
  transition: transform 0.15s ease;
}

.chat-tool-result[open] summary::before {
  transform: rotate(45deg);
}

.chat-tool-result summary strong {
  color: var(--ink-800);
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
}

.chat-tool-result pre {
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: #0b1220;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  max-height: 320px;
  overflow: auto;
  border-top: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .chat-bubble,
  .chat-tool-call,
  .chat-tool-result { max-width: 88%; }
  .chat-timeline { padding: 0.8rem 0.7rem 1rem; }
  .chat-modal-header { padding: 0.7rem 0.8rem; }
}

/* ---------- Yardımcı ---------- */
.muted-sep { color: var(--ink-400); }

hr {
  border-color: var(--border);
  opacity: 1;
  margin: 1.5rem 0;
}

/* ---------- Scrollbar (global hafif) ---------- */
.app-main ::-webkit-scrollbar { width: 10px; height: 10px; }
.app-main ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 2px solid var(--page-bg); }
.app-main ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   LANDING / Pazarlama sitesi
   _LandingLayout, hero, demo phone, features, pricing, faq
   ============================================================ */

body.landing-body {
  margin: 0;
  background: #ffffff;
  color: var(--ink-900);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.landing-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.landing-narrow {
  max-width: 820px;
}

/* ---------- NAV ---------- */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.landing-nav.is-scrolled {
  border-bottom-color: rgba(15,23,42,0.06);
  box-shadow: 0 4px 18px -10px rgba(15,23,42,0.18);
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.landing-brand-logo {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 4px 12px -6px rgba(15,23,42,0.18);
  overflow: hidden;
  padding: 4px;
}

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

.landing-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.landing-brand-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.landing-brand-subtitle {
  font-size: 0.72rem;
  color: var(--ink-500);
  font-weight: 500;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.landing-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color .15s ease, background .15s ease;
}

.landing-nav-link:hover {
  color: var(--ink-900);
  background: rgba(15,23,42,0.04);
}

.landing-nav-link.active {
  color: var(--brand-700);
  background: var(--brand-50);
}

.landing-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  margin-left: 0.5rem;
  box-shadow: 0 4px 14px -4px rgba(15,23,42,0.4);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.landing-nav-cta:hover {
  transform: translateY(-1px);
  background: var(--brand-700);
  box-shadow: 0 8px 20px -6px rgba(16,185,129,0.45);
}

.landing-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 10px;
  cursor: pointer;
}

.landing-nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.landing-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.landing-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.landing-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .landing-nav-toggle { display: inline-flex; }
  .landing-nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 12px 24px -16px rgba(15,23,42,0.18);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .landing-nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .landing-nav-link { width: 100%; padding: 0.7rem 0.9rem; }
  .landing-nav-cta { margin-left: 0; justify-content: center; }
}

/* ---------- SECTION ---------- */
.landing-section {
  padding: 5rem 0;
  position: relative;
}

.landing-section-soft {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.landing-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.landing-section-title,
.landing-page-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 1rem;
}

.landing-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.landing-section-sub {
  font-size: 1.05rem;
  color: var(--ink-600);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 680px;
}

/* ---------- HERO ---------- */
.landing-hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}

.landing-hero-glow-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(16,185,129,0.45), transparent 70%);
  top: -120px; left: -120px;
}

.landing-hero-glow-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(14,165,233,0.35), transparent 70%);
  bottom: -120px; right: -100px;
}

.landing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
  opacity: 0.6;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 980px) {
  .landing-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.landing-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.landing-hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0 0 1.25rem;
}

.landing-hero-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  margin-top: 1rem;
}

.landing-hero-sub {
  font-size: 1.1rem;
  color: var(--ink-600);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 0 2rem;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.landing-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.82rem;
  box-shadow: var(--shadow-xs);
}

.landing-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
  flex-shrink: 0;
}

/* ---------- BUTTONS ---------- */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.landing-btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(16,185,129,0.55);
}

.landing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(16,185,129,0.65);
  color: #fff;
}

.landing-btn-ghost {
  background: rgba(15,23,42,0.04);
  color: var(--ink-900);
}

.landing-btn-ghost:hover {
  background: rgba(15,23,42,0.08);
  color: var(--ink-900);
}

.landing-btn-outline {
  background: #fff;
  color: var(--ink-900);
  border-color: rgba(15,23,42,0.12);
}

.landing-btn-outline:hover {
  background: var(--ink-50);
  border-color: rgba(15,23,42,0.2);
  color: var(--ink-900);
}

.landing-btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

.w-100 { width: 100%; }

/* ---------- DEMO PHONE ---------- */
.landing-hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-phone {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: linear-gradient(180deg, #1e293b 0%, #0b1220 100%);
  padding: 14px;
  box-shadow:
    0 50px 80px -30px rgba(15,23,42,0.45),
    0 30px 60px -20px rgba(16,185,129,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.landing-phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #0b1220;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.landing-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: #efeae2;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' opacity='0.08'%3E%3Cpath fill='%23054640' d='M40 40c8 0 14-6 14-14S48 12 40 12s-14 6-14 14 6 14 14 14zm0 4c-12 0-22 6-22 14v6h44v-6c0-8-10-14-22-14z'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: #008069;
  color: #fff;
}

.wa-back-icon { color: rgba(255,255,255,0.85); }

.wa-avatar {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.wa-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.wa-online-dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid #008069;
}

.wa-headinfo {
  flex: 1;
  min-width: 0;
}

.wa-headname {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.1;
}

.wa-headstatus {
  font-size: 0.74rem;
  opacity: 0.85;
  margin-top: 2px;
}

.wa-headicons {
  display: flex;
  gap: 0.7rem;
  color: rgba(255,255,255,0.85);
}

.wa-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  scroll-behavior: smooth;
}

.wa-body::-webkit-scrollbar { width: 4px; }
.wa-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }

.wa-date-chip {
  align-self: center;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.85);
  color: #54656f;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.wa-msg {
  display: flex;
  margin: 0;
}

.wa-msg-bot { justify-content: flex-start; }
.wa-msg-user { justify-content: flex-end; }

.wa-msg-bubble {
  max-width: 78%;
  padding: 0.45rem 0.6rem 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #111b21;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(11,20,26,0.13);
  word-wrap: break-word;
}

.wa-msg-bot .wa-msg-bubble {
  background: #fff;
  border-top-left-radius: 0;
}

.wa-msg-user .wa-msg-bubble {
  background: #d9fdd3;
  border-top-right-radius: 0;
}

.wa-msg-time {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  color: rgba(0,0,0,0.45);
  margin-left: 0.5rem;
  float: right;
  margin-top: 4px;
}

.wa-typing {
  padding: 0 0.6rem 0.4rem;
}

.wa-typing-bubble {
  display: inline-flex;
  gap: 4px;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border-radius: 8px;
  border-top-left-radius: 0;
  box-shadow: 0 1px 0.5px rgba(11,20,26,0.13);
}

.wa-typing-bubble span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: wa-typing 1.2s infinite ease-in-out;
}

.wa-typing-bubble span:nth-child(2) { animation-delay: .15s; }
.wa-typing-bubble span:nth-child(3) { animation-delay: .3s; }

@keyframes wa-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.wa-system-chip {
  align-self: center;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.85);
  color: #54656f;
  font-size: 0.74rem;
  text-align: center;
  margin: 0.4rem 0;
  max-width: 90%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.wa-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem;
  background: #f0f2f5;
}

.wa-input-icon {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #54656f;
  cursor: pointer;
  border-radius: 50%;
}

.wa-input-field {
  flex: 1;
  background: #fff;
  border: 0;
  border-radius: 18px;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  color: #111b21;
  min-width: 0;
}

.wa-input-field:focus {
  outline: 2px solid #008069;
  outline-offset: 1px;
}

.wa-input-counter {
  font-size: 0.65rem;
  color: #54656f;
  white-space: nowrap;
  padding: 0 0.25rem;
}

.wa-input-send {
  width: 36px; height: 36px;
  border: 0;
  background: #008069;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s ease, background .15s ease;
}

.wa-input-send:hover { background: #00604f; transform: scale(1.05); }
.wa-input-send:disabled { background: #b3c4c1; cursor: not-allowed; transform: none; }

.landing-demo-caption {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.2rem;
  max-width: 360px;
}

.landing-demo-pill {
  flex-shrink: 0;
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.landing-demo-tip {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-600);
  line-height: 1.5;
}

/* ---------- SOCIAL PROOF BAR ---------- */
.landing-tinybar {
  padding: 1rem 0;
  border-top: 1px solid rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  background: #fff;
}

.landing-tinybar-text {
  margin: 0;
  text-align: center;
  color: var(--ink-500);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- FEATURES GRID ---------- */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.landing-feature-card {
  --accent: var(--brand-500);
  background: #fff;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}

.landing-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  opacity: 0.85;
}

.landing-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15,23,42,0.1);
  box-shadow: 0 24px 40px -20px rgba(15,23,42,0.18);
}

.landing-feature-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  margin-bottom: 1rem;
}

.landing-feature-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--ink-900);
}

.landing-feature-text {
  font-size: 0.95rem;
  color: var(--ink-600);
  line-height: 1.55;
  margin: 0;
}

/* ---------- WHY ITEMS ---------- */
.landing-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.landing-why-item {
  background: #fff;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.06);
  position: relative;
}

.landing-why-num {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-600);
  margin-bottom: 0.6rem;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--brand-50);
  letter-spacing: 0.05em;
}

.landing-why-item h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
  color: var(--ink-900);
}

.landing-why-item p {
  font-size: 0.92rem;
  color: var(--ink-600);
  line-height: 1.55;
  margin: 0;
}

/* ---------- PRICING ---------- */
.landing-price-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 999px;
  padding: 4px;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.landing-price-toggle-btn {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-600);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-price-toggle-btn.active {
  background: var(--ink-900);
  color: #fff;
}

.landing-price-toggle-badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.7rem;
  font-weight: 700;
}

.landing-price-toggle-btn.active .landing-price-toggle-badge {
  background: var(--brand-500);
  color: #fff;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.landing-plan {
  position: relative;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.08);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.landing-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -20px rgba(15,23,42,0.18);
  border-color: rgba(15,23,42,0.12);
}

.landing-plan.is-highlighted {
  border-color: var(--brand-500);
  box-shadow:
    0 24px 40px -20px rgba(16,185,129,0.4),
    0 0 0 1px var(--brand-500);
}

.landing-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 16px -6px rgba(16,185,129,0.55);
}

.landing-plan-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink-900);
  margin: 0 0 0.3rem;
}

.landing-plan-sub {
  font-size: 0.88rem;
  color: var(--ink-500);
  margin: 0 0 1.25rem;
  min-height: 2.5em;
}

.landing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.landing-plan-price-currency {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink-700);
}

.landing-plan-price-amount {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.02em;
}

.landing-plan-price-period {
  font-size: 0.92rem;
  color: var(--ink-500);
  font-weight: 500;
}

.landing-plan-price-custom {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--ink-900);
}

.landing-plan-billing {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin: 0 0 1.25rem;
}

.landing-plan-quotas {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--ink-50);
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-700);
}

.landing-plan-quotas strong {
  color: var(--ink-900);
  font-weight: 700;
}

.landing-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.landing-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-700);
  line-height: 1.45;
}

.landing-plan-features li svg {
  flex-shrink: 0;
  color: var(--brand-600);
  margin-top: 4px;
}

.landing-pricing-note {
  text-align: center;
  color: var(--ink-500);
  font-size: 0.86rem;
  margin: 2.5rem auto 0;
  max-width: 720px;
}

/* ---------- TESTIMONIALS ---------- */
.landing-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.landing-testimonial {
  background: #fff;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing-testimonial-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.landing-testimonial-text {
  font-size: 0.97rem;
  color: var(--ink-700);
  line-height: 1.55;
  margin: 0;
}

.landing-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}

.landing-testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.landing-testimonial-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-900);
}

.landing-testimonial-meta {
  font-size: 0.78rem;
  color: var(--ink-500);
}

/* ---------- FAQ ---------- */
.landing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 820px;
  margin: 0 auto;
}

.landing-faq-item {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.landing-faq-item[open] {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 6px 18px -10px rgba(16,185,129,0.25);
}

.landing-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-900);
  gap: 1rem;
  user-select: none;
}

.landing-faq-item summary::-webkit-details-marker { display: none; }

.landing-faq-chev {
  flex-shrink: 0;
  color: var(--ink-500);
  transition: transform .2s ease, color .2s ease;
}

.landing-faq-item[open] .landing-faq-chev {
  transform: rotate(180deg);
  color: var(--brand-600);
}

.landing-faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- CTA ---------- */
.landing-cta-section {
  padding-bottom: 6rem;
}

.landing-cta-card {
  background: linear-gradient(135deg, #0b1220 0%, #111a2c 50%, #0b1220 100%);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.landing-cta-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.3), transparent 70%);
  filter: blur(60px);
}

.landing-cta-card > div {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 280px;
}

.landing-cta-card h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}

.landing-cta-card p {
  color: rgba(255,255,255,0.75);
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.landing-cta-card .landing-btn {
  position: relative;
  z-index: 1;
}

/* ---------- CONTACT ---------- */
.landing-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.landing-contact-card {
  --accent: var(--brand-500);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.landing-contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 30px -16px rgba(15,23,42,0.18);
  color: inherit;
}

.landing-contact-card-static { cursor: default; }
.landing-contact-card-static:hover { transform: none; border-color: rgba(15,23,42,0.08); box-shadow: none; }

.landing-contact-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.landing-contact-card h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: var(--ink-900);
}

.landing-contact-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-600);
  word-break: break-word;
}

/* ---------- PROSE (privacy etc.) ---------- */
.landing-prose {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-700);
}
.landing-prose h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink-900);
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
}
.landing-prose ul { padding-left: 1.25rem; }
.landing-prose li { margin: 0.4rem 0; }
.landing-prose a { color: var(--brand-600); text-decoration: none; font-weight: 500; }
.landing-prose a:hover { color: var(--brand-700); text-decoration: underline; }

/* ---------- FOOTER ---------- */
.landing-footer {
  margin-top: 0;
  background: #0b1220;
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .landing-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .landing-footer-grid {
    grid-template-columns: 1fr;
  }
}

.landing-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-footer-col h6 {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.landing-footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .15s ease;
  width: fit-content;
}

.landing-footer-col a:hover { color: var(--brand-400); }

.landing-footer-text {
  color: #94a3b8;
  font-size: 0.9rem;
}

.landing-footer-brand .landing-brand-title { color: #f8fafc; }
.landing-footer-brand .landing-brand-subtitle { color: #94a3b8; }

.landing-footer-about {
  margin: 0.75rem 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.landing-footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.landing-footer-social a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
}
.landing-footer-social a:hover {
  background: var(--brand-500);
  color: #fff;
}

.landing-footer-logout {
  margin-top: 0;
}

.landing-footer-link-button {
  background: transparent;
  border: 0;
  color: #94a3b8;
  padding: 0;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}
.landing-footer-link-button:hover { color: var(--brand-400); }

.landing-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

.landing-footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
}
.landing-footer-bottom a:hover { color: #f8fafc; }

.landing-page-hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ---------- SİTE YÖNETİMİ (admin CMS) ---------- */
.cms-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cms-tab {
  padding: 0.65rem 1rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-600);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}

.cms-tab:hover { color: var(--ink-900); }

.cms-tab.active {
  color: var(--brand-700);
  border-bottom-color: var(--brand-500);
  font-weight: 600;
}

.cms-brand-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.cms-brand-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-700);
  text-decoration: none;
  background: #fff;
}

.cms-brand-pill:hover {
  border-color: var(--brand-400);
  color: var(--brand-700);
}

.cms-brand-pill.active {
  background: var(--brand-50);
  border-color: var(--brand-500);
  color: var(--brand-700);
  font-weight: 600;
}

.cms-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.cms-section h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--ink-900);
}

.cms-section .cms-section-sub {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-500);
}

.cms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.cms-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cms-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
}

.cms-field small {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.cms-field input,
.cms-field textarea,
.cms-field select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  background: #fff;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cms-field textarea {
  min-height: 90px;
  resize: vertical;
  font-family: inherit;
}

.cms-field input:focus,
.cms-field textarea:focus,
.cms-field select:focus {
  outline: 0;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}

.cms-table {
  width: 100%;
  border-collapse: collapse;
}

.cms-table th, .cms-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: middle;
}

.cms-table th {
  background: var(--ink-50);
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cms-row-actions {
  display: inline-flex;
  gap: 0.4rem;
}

.cms-row-actions .btn { padding: 0.35rem 0.7rem; font-size: 0.82rem; }

.cms-form-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
}

.cms-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.cms-pill-on { background: var(--brand-50); color: var(--brand-700); }
.cms-pill-off { background: var(--ink-100); color: var(--ink-500); }

.cms-helper-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cms-helper-row .btn { font-size: 0.85rem; }





/* ====== AI Mesaj Kotası - Progress / Widget ====== */
.quota-progress {
  width: 100%;
  height: 10px;
  background: var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.quota-progress.quota-progress-sm {
  height: 6px;
}

.quota-progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
  border-radius: 999px;
  transition: width 220ms ease-out;
  min-width: 4px;
}

.quota-progress-bar.is-warning {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.quota-progress-bar.is-critical {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.quota-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.quota-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--ink-100);
}

.quota-summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quota-summary-label {
  color: var(--ink-500);
}

.quota-summary-value {
  font-weight: 600;
  color: var(--ink-800);
}

.quota-widget {
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
  border: 1px solid #d1fae5;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.quota-widget.is-warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fcd34d;
}

.quota-widget.is-critical {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #fecaca;
}

.quota-widget.is-unlimited {
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  border-color: #ddd6fe;
}

.quota-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.quota-widget-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 0.3rem;
}

.quota-widget-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.1;
}

.quota-widget-sub {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 0.2rem;
}

.quota-widget-percent {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-700);
  white-space: nowrap;
}

.quota-widget.is-warning .quota-widget-percent { color: #b45309; }
.quota-widget.is-critical .quota-widget-percent { color: #b91c1c; }

/* ---------- Remarketing ---------- */
.remarketing-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.remarketing-header-actions {
  flex-shrink: 0;
}

.remarketing-owner-hint {
  font-size: 0.88rem;
  color: var(--ink-600);
}

.remarketing-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1rem;
}

.remarketing-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.remarketing-list-toolbar .remarketing-filter-bar {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.remarketing-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 240px;
  max-width: min(100%, 28rem);
}

.remarketing-search-form .form-control {
  flex: 1 1 12rem;
  min-width: 0;
}

.remarketing-page-size-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-shrink: 0;
}

.remarketing-page-size-select {
  width: auto;
  min-width: 4.25rem;
}

.remarketing-queue-shell__badge-page {
  font-weight: 500;
  color: var(--ink-600);
}

.remarketing-pagination-wrap .pagination {
  gap: 0.15rem;
}

.remarketing-forms-row {
  margin-top: 0.25rem;
}

.remarketing-panel--fill {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.remarketing-panel--bulk.remarketing-panel--fill .remarketing-bulk-textarea {
  min-height: 168px;
  resize: vertical;
}

.remarketing-preview-textarea {
  font-size: 0.88rem;
  resize: vertical;
  min-height: 4.5rem;
}

.remarketing-note-cell {
  max-width: 400px;
  vertical-align: top;
}

.remarketing-note-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 400px;
}

.remarketing-note-text {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-700);
  word-break: break-word;
}

.remarketing-note-inline:not(.is-expanded) .remarketing-note-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.remarketing-note-inline.is-expanded .remarketing-note-text {
  white-space: pre-wrap;
}

.remarketing-note-expand-btn {
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0;
  min-width: auto;
  line-height: 1;
  color: var(--ink-500) !important;
  text-decoration: none !important;
  opacity: 0.85;
}

.remarketing-note-expand-btn:hover,
.remarketing-note-expand-btn:focus-visible {
  color: var(--brand-600) !important;
  opacity: 1;
}

.remarketing-note-expand-btn:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.remarketing-queue-shell {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.remarketing-queue-shell__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--ink-50) 0%, var(--surface) 100%);
}

.remarketing-queue-shell__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  width: 100%;
}

.remarketing-queue-shell__title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.remarketing-queue-shell__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-900);
}

.remarketing-queue-shell__badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #5b21b6;
}

.remarketing-queue-shell__hint {
  flex: 1 1 220px;
  max-width: min(100%, 26rem);
  text-align: right;
  line-height: 1.4;
}

.remarketing-queue-shell .remarketing-queue-list-controls.remarketing-search-form {
  width: 100%;
  max-width: none;
  flex: none;
  align-items: flex-end;
}

.remarketing-queue-shell .remarketing-queue-list-controls .form-control[type="search"] {
  flex: 1 1 18rem;
  min-width: 12rem;
}

@media (max-width: 767.98px) {
  .remarketing-queue-shell__hint {
    text-align: left;
    max-width: none;
    flex-basis: 100%;
  }
}

.remarketing-queue-shell__body {
  padding: 0;
}

.remarketing-table-wrap--in-shell {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.remarketing-empty--in-shell {
  border: none;
  box-shadow: none;
  background: transparent;
}

.remarketing-filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-600);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.remarketing-filter-btn:hover {
  color: var(--ink-900);
  border-color: var(--ink-200);
  background: var(--ink-50);
}

.remarketing-filter-btn.active {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #5b21b6;
  border-color: #c4b5fd;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.remarketing-filter-btn .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  padding: 0 0.35rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
}

.remarketing-filter-btn.active .count {
  background: rgba(91, 33, 182, 0.12);
  color: #5b21b6;
}

.remarketing-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-xs);
  height: 100%;
}

.remarketing-panel--collapsible {
  padding: 0;
  height: auto;
}

.remarketing-panel--collapsible.remarketing-panel--fill {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.remarketing-panel__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  margin: 0;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
  border-radius: var(--r-lg);
  transition: background 0.15s ease;
}

.remarketing-panel__toggle:hover {
  background: var(--ink-50);
}

.remarketing-panel__toggle:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: -2px;
}

.remarketing-panel__toggle-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--ink-500);
}

.remarketing-panel__toggle[aria-expanded="true"] .remarketing-panel__toggle-chevron {
  transform: rotate(180deg);
}

.remarketing-panel__collapse {
  padding: 0 1.25rem 1.15rem;
}

.remarketing-panel__collapse.show {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.remarketing-panel--bulk .remarketing-bulk-textarea {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}

.remarketing-panel--api {
  border-style: dashed;
}

.remarketing-panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-900);
}

.remarketing-panel-sub {
  margin: 0 0 0.25rem;
}

.remarketing-export-box {
  max-width: min(100%, 400px);
}

.remarketing-export-url {
  display: block;
  font-size: 0.72rem;
  word-break: break-all;
  padding: 0.5rem 0.65rem;
  background: var(--ink-50);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.remarketing-table-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.remarketing-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.remarketing-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  border-bottom-width: 1px;
}

.remarketing-table tbody td {
  vertical-align: middle;
}

.remarketing-done-at-cell {
  white-space: nowrap;
}

.remarketing-phone {
  font-weight: 600;
  color: var(--ink-900);
}

.remarketing-col-avatar {
  width: 3rem;
  padding-inline-end: 0.35rem !important;
}

.remarketing-row-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 8px -3px rgba(16, 185, 129, 0.4);
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}

.remarketing-row-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}

.remarketing-row-avatar.has-photo .remarketing-row-avatar-fallback {
  visibility: hidden;
}

.remarketing-jid-cell {
  max-width: 220px;
}

.remarketing-jid {
  white-space: normal;
  word-break: break-all;
}

.remarketing-badge {
  font-weight: 600;
}

.remarketing-evo-cell {
  max-width: 11rem;
  vertical-align: middle;
}

.remarketing-evo-name {
  word-break: break-word;
  white-space: normal;
}

.remarketing-col-actions .btn-group {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.remarketing-empty .icon {
  color: #8b5cf6;
}

.app-switch--table .app-switch-track {
  transform: scale(0.92);
  transform-origin: left center;
}


