/* Crafty Admin — "Crafty Precision" design system (bkz. New-Design/crafty_identity_system_1/DESIGN.md) */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,400;8..144,500;8..144,700&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
  --font: 'Roboto Flex', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-icon: 'Material Symbols Outlined';

  /* Crafty Precision — kanonik paleti (bkz. DESIGN.md) */
  --primary: #00221a;
  --primary-container: #10382e;
  --on-primary: #ffffff;
  --on-primary-container: #7aa295;
  --accent-lime: #e7ff35;
  --accent-lime-hover: #d9f522;
  --secondary: #46645c;
  --secondary-container: #c8eadf;

  --surface: #f9f9f7;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f4f4f1;
  --surface-container: #eeeeec;
  --surface-container-high: #e8e8e6;
  --surface-variant: #e2e3e0;

  --on-surface: #1a1c1b;
  --on-surface-variant: #414845;
  --outline: #717975;
  --outline-variant: #c1c8c4;
  --border-muted: #dde5e0;

  --success-green: #059669;
  --success-bg: #d1fae5;
  --error-red: #e11d48;
  --error-bg: #ffe4e6;
  --warning: #ed6c02;
  --warning-bg: #fff3e0;

  --sidebar-w: 260px;
  --topbar-h: 72px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-card: 20px;
  --shadow-sm: 0 4px 12px rgba(16, 56, 46, 0.05);
  --shadow: 0 8px 24px rgba(16, 56, 46, 0.08);
  --shadow-md: 0 16px 40px rgba(16, 56, 46, 0.12);

  /* Geriye dönük uyumluluk — eski değişken adları yeni palete eşlenir,
     böylece dokunulmayan sayfalar sınıf adları değişmeden yeni temaya geçer. */
  --bg: var(--surface);
  --bg-white: var(--surface-container-lowest);
  --sidebar-bg: rgba(255, 255, 255, 0.92);

  --surface-muted: var(--surface-container-low);
  --surface-hover: var(--surface-container-low);

  --border: var(--border-muted);
  --border-light: var(--surface-variant);

  --text: var(--on-surface);
  --text-muted: var(--outline);
  --text-faint: var(--outline);

  --accent-chat: #2f6df6;
  --accent-chat-hover: #2458ce;
  --accent-chat-bg: #edf5ff;
  --accent-recovery: var(--primary-container);
  --accent-recovery-hover: #0a2922;
  --accent-recovery-bg: var(--secondary-container);

  --success: var(--success-green);
  --danger: var(--error-red);
  --danger-bg: var(--error-bg);

  /* New-Design/dashboard mockup'undan tamamlanan tokenlar */
  --surface-tint: #40665a;
  --inverse-primary: #a6cfc1;
  --shadow-premium: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-premium-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --whatsapp-green: #25d366;
  --lime-ink: #8b990f;

  /* Portal sidebar — MODÜLLER grubu ikon renkleri (bkz. New-Design mockup) */
  --nav-icon-recovery: #0ea5e9;
  --nav-icon-spinwheel: #ff6b3d;
  --nav-icon-messaging: var(--whatsapp-green);
  --nav-icon-assistant: #7c3aed;
  --nav-icon-image-studio: #0891b2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}

.material-symbols-outlined {
  font-family: var(--font-icon);
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Layout */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  border-right: 1px solid var(--border-muted);
  background: var(--surface-container-lowest);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 22px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-lime);
  letter-spacing: -0.02em;
  box-shadow: 0 8px 20px rgba(16, 56, 46, 0.22);
}

.brand-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-sub {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 1px;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 0 12px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* Kendi içinde kaymaz: eskiden `flex:1; min-height:0; overflow-y:auto` ile küçük bir iç kaydırma
   alanıydı; menü uzayınca (grup ayırıcıları + alt menü) YÖNETİM grubu görünmez oluyor ve kaydırma
   ipucu da bulunmuyordu. Artık içerik akıyor, kaydırmayı tek noktadan `.sidebar` yapıyor. */
.nav-products {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.16s, color 0.16s, transform 0.16s, box-shadow 0.16s;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: var(--surface);
  color: var(--primary-container);
}

.nav-link.active,
.nav-link.active[data-product="chat"],
.nav-link.active[data-product="recovery"] {
  background: var(--surface-container-low);
  color: var(--primary-container);
  font-weight: 500;
  box-shadow: none;
  border-color: transparent;
}

/* SVG ikonlar (admin/assets/layout.js sidebar'ı) — eski format, korunuyor */
svg.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-link.active svg.nav-icon { opacity: 1; }

/* Material Symbols ikonlar (portal/assets/portal-layout.js sidebar'ı) */
span.nav-icon.material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  line-height: 1;
}

/* MODÜLLER grubu — marka rengi.
   Seçici, yukarıdaki `span.nav-icon.material-symbols-outlined` (0,2,1) kuralını aşacak
   özgüllükte olmalı; yalnızca `.nav-icon--x` (0,1,0) yazılırsa ikonlar gri kalır. */
span.nav-icon.material-symbols-outlined.nav-icon--recovery { color: var(--nav-icon-recovery); }
span.nav-icon.material-symbols-outlined.nav-icon--spinwheel { color: var(--nav-icon-spinwheel); }
span.nav-icon.material-symbols-outlined.nav-icon--messaging { color: var(--nav-icon-messaging); }
span.nav-icon.material-symbols-outlined.nav-icon--assistant { color: var(--nav-icon-assistant); }
span.nav-icon.material-symbols-outlined.nav-icon--image-studio { color: var(--nav-icon-image-studio); }

/* Aktif menü öğesi — ikon rengi modül renginin üzerine yazılır (modül kuralından daha özgül) */
.nav-link.active span.nav-icon.material-symbols-outlined,
.nav-link.active span.nav-icon.material-symbols-outlined[class*="nav-icon--"] {
  color: var(--primary-container);
}

.nav-link-text {
  flex: 1;
  min-width: 0;
}

.nav-chevron {
  font-size: 18px;
  color: var(--text-muted);
  margin-left: auto;
  border-radius: 6px;
  padding: 1px;
  transition: background 0.12s;
}

.nav-chevron:hover {
  background: var(--surface-container-high);
}

.nav-group + .nav-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-muted);
}

.nav-group-label {
  margin-bottom: 6px;
}

.nav-group-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Modül alt menüsü — aktif modülün sayfa içi sekmelerine derin link (bkz. portal-layout.js) */
.nav-item-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-sublinks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px 34px;
}

.nav-sublink {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.nav-sublink:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.nav-sublink.active {
  background: var(--surface-muted);
  color: var(--primary-container);
  font-weight: 600;
}

.nav-link.disabled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  cursor: default;
  color: var(--text-faint);
  opacity: 0.7;
}

.nav-badge-soon {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--on-surface-variant);
  background: var(--surface-container);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.sidebar-foot {
  flex-shrink: 0;
  padding: 16px 12px 0;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--error-red);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s;
}

.sidebar-logout:hover { background: var(--error-bg); }

.sidebar-logout .material-symbols-outlined { font-size: 18px; }

/* Destek linki — çıkış butonuyla aynı desen, ama destructive (kırmızı) değil */
.sidebar-support {
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 4px;
}

.sidebar-support:hover { background: var(--surface-container-low); color: var(--text); }

.main {
  flex: 1;
  min-width: 0;
  padding: 42px 52px 64px;
  width: 100%;
  max-width: min(1500px, calc(100vw - var(--sidebar-w) - 56px));
}

body[data-page="recovery"] .main {
  max-width: min(1360px, calc(100vw - var(--sidebar-w) - 48px));
}

body[data-page="docs"] .main {
  max-width: min(1200px, calc(100vw - var(--sidebar-w) - 56px));
}

.page-header {
  margin-bottom: 24px;
  padding: 4px 0 6px;
  border-bottom: none;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 7px;
  color: var(--text);
}

.page-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.55;
}

/* Salt-okunur (editor) rol uyarı bandı — bkz. portal-layout.js applyReadOnly() */
.readonly-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
}

.readonly-banner .material-symbols-outlined {
  font-size: 20px;
}

/* Topbar — layout.js / portal-layout.js tarafından .main içine, page-header'ın üstüne render edilir */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--topbar-h);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.topbar-search {
  position: relative;
  width: min(420px, 40vw);
}

.topbar-search .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline);
  font-size: 18px;
  pointer-events: none;
}

.topbar-search input[type="text"] {
  height: 40px;
  padding-left: 38px;
  background: var(--surface-container-low);
  border-color: transparent;
}

.topbar-search input:focus {
  background: var(--surface-container-lowest);
}

.topbar-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--outline);
  cursor: pointer;
  user-select: none;
}

.topbar-lang span[data-active="true"] { color: var(--primary-container); }
.topbar-lang .topbar-lang-sep { color: var(--border-muted); }

.topbar-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.topbar-icon-btn:hover:not(:disabled) {
  background: var(--surface-container-low);
  color: var(--primary-container);
  transform: none;
}

.topbar-icon-btn .topbar-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--error-red);
  border: 1.5px solid var(--surface-container-lowest);
}

.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid var(--border-muted);
  text-decoration: none;
}

.notif-wrap {
  position: relative;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 50;
}

.notif-panel[hidden] {
  display: none;
}

.notif-panel-empty {
  padding: 26px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.notif-item {
  padding: 10px 12px;
  border-radius: 10px;
}

.notif-item:hover {
  background: var(--surface-container-low);
}

.notif-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.notif-item-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-item-time {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .topbar-search { display: none; }
}

@media (max-width: 768px) {
  .topbar { height: auto; padding: 14px 0; flex-wrap: wrap; }
}

/* Cards */
.card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-premium);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium-hover);
  border-color: var(--border-muted);
}

/* Form/tablo ağırlıklı sayfalarda hover-lift rahatsız ediyorsa opt-out */
.card--static:hover {
  transform: none;
  box-shadow: var(--shadow-premium);
  border-color: var(--surface-variant);
}

/* Hafif vurgulu kart varyantı — ör. Genel Bakış İçgörüler/AI Copilot kartı */
.card-highlight {
  border: 1.5px solid var(--primary-container);
  box-shadow: 0 4px 20px rgba(16, 56, 46, 0.08);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-title,
.section-heading {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card-header--tight {
  margin-bottom: 18px;
}

.card-header--tight .section-heading,
.card-header--tight .card-title {
  margin-bottom: 4px;
}

.card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* Form */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }

label, .label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 6px;
  line-height: 1.45;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  transition: border-color 0.14s, box-shadow 0.14s, background 0.14s;
}

/* Devre dışı form alanları — butonlarda zaten :disabled stili vardı, alanlarda yoktu; bu yüzden
   salt-okunur (editor) rolünde kilitli alanlar normal görünüyordu (görsel doğrulamada tespit). */
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-container-low);
  color: var(--text-faint);
  border-color: var(--surface-variant);
  cursor: not-allowed;
  opacity: 0.75;
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled,
input[type="color"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input[type="date"],
input[type="datetime-local"] {
  min-height: 40px;
  color-scheme: light;
  cursor: pointer;
}

input[type="date"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0;
  padding: 0;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
  font-family: var(--font);
  color: var(--text);
  padding: 0 2px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  padding: 4px;
  margin-left: 2px;
  border-radius: 4px;
  transition: opacity 0.12s, background 0.12s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background: var(--surface-hover);
}

textarea {
  height: auto;
  min-height: 96px;
  padding: 11px 13px;
  resize: vertical;
  line-height: 1.5;
}

input:hover, select:hover, textarea:hover {
  border-color: var(--outline-variant);
  background: var(--surface-container-lowest);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-container);
  box-shadow: 0 0 0 4px rgba(231, 255, 53, 0.2);
}

select { cursor: pointer; }

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--border-light);
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary-container);
  cursor: pointer;
}

.checkbox-row .checkbox-label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
}

/* Report date filter */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-bar-head {
  margin-bottom: 2px;
}

.filter-bar-title {
  margin-bottom: 4px;
}

.filter-bar-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.date-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 480px;
}

.field-date {
  margin-bottom: 0;
}

.field-date label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}

.field-date input[type="date"] {
  font-variant-numeric: tabular-nums;
}

.filter-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 768px) {
  .date-range-grid {
    max-width: none;
    grid-template-columns: 1fr;
  }
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .main { padding: 24px 20px 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  align-items: center;
}

button, .btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s, color 0.14s, box-shadow 0.14s, transform 0.14s;
}

button:hover:not(:disabled),
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled),
.btn:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Primary — lime zemin, koyu yeşil metin (Crafty Precision) */
.btn-primary {
  background: var(--accent-lime);
  color: var(--primary-container);
  border-color: var(--accent-lime);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(231, 255, 53, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-lime-hover);
  border-color: var(--accent-lime-hover);
  box-shadow: 0 6px 16px rgba(231, 255, 53, 0.32);
}

.btn-accent-chat {
  background: linear-gradient(135deg, #2f6df6 0%, #5d8cff 100%);
  color: #fff;
  border-color: var(--accent-chat);
  box-shadow: var(--shadow-sm);
}

.btn-accent-chat:hover:not(:disabled) {
  background: var(--accent-chat-hover);
  border-color: var(--accent-chat-hover);
}

/* Secondary — koyu yeşil zemin, beyaz metin */
.btn-secondary,
.btn-accent-recovery {
  background: var(--primary-container);
  color: var(--on-primary);
  border-color: var(--primary-container);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled),
.btn-accent-recovery:hover:not(:disabled) {
  background: var(--accent-recovery-hover);
  border-color: var(--accent-recovery-hover);
}

/* Ghost — outline */
.btn-ghost {
  background: var(--surface-container-lowest);
  color: var(--on-surface-variant);
  border-color: var(--border-muted);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-container-low);
  color: var(--on-surface);
  border-color: var(--outline-variant);
}

.btn-danger {
  background: var(--error-bg);
  color: var(--error-red);
  border-color: #fda4af;
}

.btn-danger:hover:not(:disabled) {
  background: #ffd6dd;
  border-color: #fb7185;
}

.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; font-weight: 700; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 12px; }

.input-row { display: flex; gap: 10px; align-items: stretch; }
.input-row input, .input-row select { flex: 1; }
.input-row button { flex-shrink: 0; margin-top: 0; }

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.stat-grid.stat-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .stat-grid.stat-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .stat-grid.stat-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

.stat-card.stat-revenue {
  border-color: #b8ded0;
  background: linear-gradient(135deg, var(--secondary-container) 0%, #ffffff 100%);
}

.stat-card.stat-revenue .stat-value {
  color: var(--accent-recovery);
}

.nav-sub { margin-bottom: 8px; }

.nav-link-sub {
  font-size: 13px;
  padding: 7px 12px 7px 36px;
}

.nav-link-sub.active {
  background: var(--accent-recovery-bg);
  color: var(--accent-recovery);
}

.sidebar-foot-note {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
  margin-top: 4px;
}

/* Docs viewer */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
}

.doc-content {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.doc-content h1 { font-size: 22px; margin: 0 0 16px; font-weight: 600; }
.doc-content h2 { font-size: 17px; margin: 28px 0 12px; font-weight: 600; border-bottom: 1px solid var(--border-light); padding-bottom: 8px; }
.doc-content h3 { font-size: 15px; margin: 20px 0 8px; font-weight: 600; }
.doc-content p { margin-bottom: 12px; }
.doc-content ul, .doc-content ol { margin: 0 0 14px 20px; }
.doc-content li { margin-bottom: 6px; }
.doc-content code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-muted);
  padding: 2px 6px;
  border-radius: 4px;
}
.doc-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.5;
}
.doc-content pre code { background: none; padding: 0; color: inherit; }
.doc-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
.doc-content th, .doc-content td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.doc-content th { background: var(--surface-muted); font-weight: 600; }
.doc-content a { color: var(--accent-chat); }

/* KPI kart sistemi — Crafty Precision (bkz. New-Design/crafty_kpi_*) */
.stat-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

/* NOT: Sparkline'ı olmayan kartlarda alttaki boşluğu kapatmak için içerik bir ara dikeyde
   ortalanmıştı (justify-content:center); bu, aynı satırdaki kartların ikon/etiket hizasını
   bozduğu için geri alındı (görsel doğrulamada ikonlar 383/383/428/402 px'e dağılmıştı).
   Kartlar üstten hizalı kalır; alttaki boşluk, hizasız satırdan daha az rahatsız edici. */

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-lime);
  box-shadow: 0 8px 24px rgba(16, 56, 46, 0.08);
}

.stat-hint {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
  line-height: 1.35;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--primary-container);
}

.stat-label {
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 600;
  margin-top: 5px;
}

.stat-card.accent-chat .stat-value { color: var(--accent-chat); }
.stat-card.accent-recovery .stat-value { color: var(--accent-recovery); }

/* Hero varyant — koyu yeşil zemin, lime vurgular */
.stat-card--hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #15463a, var(--primary-container));
  border-color: var(--primary-container);
  color: var(--on-primary);
}

.stat-card--hero .stat-value { color: var(--on-primary); }
.stat-card--hero .stat-label { color: rgba(255, 255, 255, 0.68); }
.stat-card--hero .stat-hint { color: rgba(255, 255, 255, 0.5); }
.stat-card--hero:hover { border-color: var(--accent-lime); }

/* Dekoratif blur blob — içerik üstte kalsın diye direkt çocuklar relative+z-index */
.stat-card--hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent-lime);
  opacity: 0.08;
  filter: blur(60px);
  pointer-events: none;
}

.stat-card--hero > * {
  position: relative;
  z-index: 1;
}

/* İkon kutusu */
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-container-high);
  color: var(--primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card--hero .stat-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-lime);
}

/* İkon doğrudan kart içinde (stat-card-head sarmalayıcısı olmadan) dizilmişse alt boşluk gerekir */
.stat-card > .stat-icon { margin-bottom: 12px; }

/* Trend rozetleri */
.stat-badge-up,
.stat-badge-down {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.stat-badge-up { background: var(--success-bg); color: var(--success-green); }
.stat-badge-down { background: var(--error-bg); color: var(--error-red); }

/* Sparkline alanı */
.stat-sparkline {
  margin-top: 12px;
  height: 40px;
  width: 100%;
  color: var(--primary-container);
}

.stat-card--hero .stat-sparkline { color: var(--accent-lime); }

/* Progress */
.progress-track {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin: 18px 0 10px;
}

.progress-bar {
  height: 100%;
  background: var(--accent-chat);
  border-radius: 3px;
  transition: width 0.35s ease;
  width: 0%;
}

.progress-meta {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* Çoklu seri çizgi grafiği (bkz. admin/assets/chart.js) */
.chart-plot {
  height: 220px;
}

.chart-plot svg { display: block; width: 100%; height: 100%; }

.chart-grid-line {
  stroke: var(--border-light);
  stroke-width: 1;
}

.chart-hover-line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-muted);
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 8px 10px;
  font-size: 12px;
  pointer-events: none;
  min-width: 140px;
  white-space: nowrap;
}

.chart-tooltip-date {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.chart-tooltip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  line-height: 1.6;
}

.chart-tooltip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill-ready {
  background: var(--success-bg);
  color: var(--success);
  border-color: #a7f3d0;
}

.pill-crawling {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #fde68a;
}

.pill-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #fecaca;
}

.pill-sent {
  background: var(--success-bg);
  color: var(--success);
  border-color: #a7f3d0;
}

.pill-failed {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #fecaca;
}

.pill-skipped {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #fde68a;
}

.pill-pending {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #fde68a;
}

.pill-paid {
  background: var(--success-bg);
  color: var(--success);
  border-color: #a7f3d0;
}

.pill-cancelled {
  background: var(--surface-muted);
  color: var(--text-muted);
  border-color: var(--border);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.package-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(145deg, #ffffff, #f7fbfc);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.package-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.package-card .package-price {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-recovery);
}

.package-card .package-credits {
  font-size: 13px;
  color: var(--text-muted);
}

.package-card--off {
  opacity: 0.72;
  background: var(--surface-muted);
}

.sb-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.sb-module-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #ffffff, #f8fcfc);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.sb-module-card:hover {
  border-color: #bdd5df;
  box-shadow: var(--shadow-sm);
}

.sb-module-card:has(input:checked) {
  border-color: var(--accent-recovery);
  background: var(--accent-recovery-bg);
}

.sb-module-card input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-recovery);
}

.sb-module-card strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.sb-module-card small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  line-height: 1.35;
}

.credit-balance-hero {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent-recovery);
  font-variant-numeric: tabular-nums;
}

/* Lists */
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: border-color 0.12s, box-shadow 0.12s;
}

.list-item:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.list-item-title {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.list-item-meta {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}

.list-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--text-muted);
  font-size: 14px;
  background: linear-gradient(145deg, #f8fcfc, #ffffff);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Code block */
.code-block {
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 100px 16px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: #374151;
  word-break: break-all;
  white-space: pre-wrap;
}

.code-block .btn-copy {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  width: fit-content;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.tab.active {
  background: var(--bg-white);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.panel { display: none; }
.panel.active { display: block; }

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 14px;
}

th {
  text-align: left;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  background: #f5fafb;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

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

tr:hover td { background: #f8fcfc; }

/* Log / kod tabloları — ilk sütun monospace */
.table-wrap--mono td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.table-empty td {
  text-align: center;
  padding: 24px 16px !important;
  color: var(--text-faint) !important;
  font-size: 14px;
}

th.col-num,
.col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

th.col-money,
.col-money {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 28px 0;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 18px;
  background: #102033;
  color: #fff;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden { display: none !important; }

/* [hidden] özniteliği taşıyan HER eleman gizlenmeli — .stat-badge-up/.stat-badge-down gibi
   display:flex/inline-flex kuralları [hidden]'ı ezip boş rozet kutucuğu bırakabiliyordu
   (Genel Bakış KPI kartlarında doğrulandı). Bu genel kural her zaman en son eşleşir. */
[hidden] { display: none !important; }

/* Automation cards */
.auto-card {
  padding: 18px 20px;
  background: var(--surface-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  transition: border-color 0.12s;
}

.auto-card:hover { border-color: var(--border); }

.auto-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.auto-card-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.channel-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-white);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Otomasyon şablon kartları */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 12px 0 20px;
}

.template-card {
  padding: 16px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.template-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* Akış adımları (tetikleyici → gecikme → kanal) */
.flow-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.flow-step {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.flow-arrow {
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1;
}

/* Otomasyon kart metrikleri */
.auto-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.auto-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auto-metric-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.auto-metric-label {
  font-size: 11px;
  color: var(--text-faint);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  color: #374151;
}

/* Fresh auth screens */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 28px;
}

.auth-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: stretch;
}

.auth-visual {
  min-height: 460px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 159, 143, 0.25), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(47, 109, 246, 0.22), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(240, 249, 251, 0.9));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-recovery);
  font-size: 12px;
  font-weight: 700;
}

.auth-visual h1 {
  max-width: 12ch;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin-top: 18px;
}

.auth-visual p {
  max-width: 42ch;
  color: var(--text-muted);
  margin-top: 14px;
}

.auth-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.auth-mini-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.auth-mini-card strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  margin-bottom: 2px;
}

.login-box {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.login-box h1 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.login-box p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.login-box .field { margin-bottom: 16px; }
.login-box button { width: 100%; margin-top: 8px; }
.err { color: var(--danger); font-size: 13px; margin-top: 12px; display: none; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: auto; }
}

@media (max-width: 768px) {
  .main { padding: 28px 18px 42px; }
  .page-title { font-size: 25px; }
  .card { padding: 20px; }
}
