@import url('/css/fonts.css');

/* CellHEALTH chat surface: 100% pure black ChatGPT standard */
.chat-page {
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: row;
  width: 100vw;
  background: var(--bg) !important;
  color: var(--text);
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  overflow: hidden;
  box-sizing: border-box;
}

/* Monokrom / Siyah-Beyaz Standart: Emojiler ve Simgeler */
.icon,
.emoji,
.chat-icon,
.tab-icon,
.entry-icon,
.nav-icon,
.metric-icon,
.panel-icon,
.chat-context-tab-btn,
.chat-context-tabs,
.chat-drawer-reminder-cat,
.chat-drawer-reminder-item,
.chat-drawer-reminders-list,
.chat-reminder-card,
.chat-reminder-card-date,
.chat-reminder-card-header,
.chat-starter-chip,
.chat-starter-chips,
.clinical-flow-step,
.tab,
.tab-item,
.topbar-tab,
.timeline-card,
.entry,
.category-badge,
.risk-stat-item,
.doctor-view-banner,
.doctor-modal-container,
.ai-import-jump-btn,
.ai-import-filter-pill,
.ai-insights-col,
.wizard-choice-card,
.risk-level-badge,
.reminders-ai-tag,
span[role="img"],
[data-emoji],
svg.icon,
svg.chat-icon,
svg.nav-icon,
svg.tab-icon {
  filter: grayscale(100%) brightness(1.1) !important;
  -webkit-filter: grayscale(100%) brightness(1.1) !important;
}

/* Animasyon & Etkileşim Frekansı Standardı (Raycast Sıfır Gecikme Kuralı) */
.command-palette,
.quick-search,
.keyboard-nav,
[data-keyboard-action],
kbd {
  transition: none !important;
  animation: none !important;
}

/* Yüksek frekanslı buton, sekme ve liste geçişleri: Ultra hızlı (<= 0.1s) */
button,
.tab,
.quick-card,
.entry,
.chat-history-item {
  transition-duration: 0.1s !important;
}

.chat-history-group-title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding: 4px 8px 2px;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-header-panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  background-color: var(--accent-surface) !important;
  background-image: 
    linear-gradient(180deg, rgba(13, 192, 223, 0.14) 0%, transparent 60%),
    linear-gradient(0deg,   rgba(13, 192, 223, 0.08) 0%, transparent 60%),
    linear-gradient(90deg,  rgba(13, 192, 223, 0.11) 0%, transparent 50%),
    linear-gradient(270deg, rgba(13, 192, 223, 0.11) 0%, transparent 50%) !important;
  border: 1px solid rgba(13, 192, 223, 0.20) !important;
  color: var(--on-accent) !important;
  font-family: var(--font-body, "Inter", sans-serif) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(var(--shadow-rgb), calc(0.5 * var(--shadow-k))), inset 0 0 10px rgba(13, 192, 223, 0.11) !important;
  transition: transform 100ms cubic-bezier(0.23, 1, 0.32, 1), background-color 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease;
}
.chat-header-panel-btn:hover {
  background-color: #0a0e16 !important;
  border-color: rgba(13, 192, 223, 0.35) !important;
  color: var(--on-accent) !important;
  box-shadow: 0 6px 20px rgba(var(--shadow-rgb), calc(0.6 * var(--shadow-k))), inset 0 0 14px rgba(13, 192, 223, 0.17) !important;
  transform: translateY(-1px);
}
.chat-header-panel-btn:active {
  background-color: var(--surf-e) !important;
  transform: translateY(1px) scale(0.98);
}
.chat-header-panel-btn .panel-btn-icon,
.chat-header-panel-btn .btn-panel-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.15) !important;
  flex-shrink: 0;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.1s ease;
}
.chat-header-panel-btn:hover .panel-btn-icon,
.chat-header-panel-btn:hover .btn-panel-icon {
  opacity: 1;
}
.chat-context-icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ov-rgb), 0.08);
  background: var(--bg-panel) !important;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.1s ease, color 0.1s ease, background 0.1s ease;
}
.chat-context-icon-toggle:hover {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.21);
  color: var(--text-white);
}
.chat-context-icon-toggle.is-active {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.21);
  color: var(--text-white);
}
.chat-context-icon-toggle:active {
  transform: scale(0.96);
}
.chat-context-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ov-rgb), 0.08);
  background: var(--bg-panel) !important;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  margin-top: 1px;
  transition: border-color 0.1s ease, background 0.1s ease, color 0.1s ease;
}
.chat-context-collapse-btn:hover {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.21);
  color: var(--text-white);
}
.chat-context-collapse-btn:active {
  transform: scale(0.96);
}
.chat-context-title-wrap {
  flex: 1;
  min-width: 0;
}

.chat-history-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  color: var(--text-soft) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transition: border-color 0.1s ease, background 0.1s ease, color 0.1s ease;
}
.chat-history-item:hover,
.chat-history-item.menu-active {
  background: #0d1017 !important;
  background-color: #0d1017 !important;
  border-color: rgba(var(--ov-rgb), 0.08) !important;
  color: var(--on-accent) !important;
}
.chat-history-item.active {
  background: var(--surf-d) !important;
  background-color: var(--surf-d) !important;
  border-color: rgba(var(--ov-rgb), 0.14) !important;
  color: var(--text-white) !important;
  box-shadow: none !important;
}
.chat-history-item.active:hover {
  border-color: rgba(var(--ov-rgb), 0.21) !important;
}

.chat-history-btn {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--text-soft) !important;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.chat-history-item:hover .chat-history-btn,
.chat-history-item.menu-active .chat-history-btn,
.chat-history-item.active .chat-history-btn {
  color: var(--text-white) !important;
}
.chat-history-item.active .chat-history-btn {
  font-weight: 500;
}
.chat-thread-title {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  line-height: 1.35;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: inherit !important;
}

.chat-page.sidebar-collapsed {
  grid-template-columns: 0px minmax(0, 1fr) 400px;
}
.chat-page.context-closed {
  grid-template-columns: 280px minmax(0, 1fr) 0px;
}
.chat-page.sidebar-collapsed.context-closed {
  grid-template-columns: 0px minmax(0, 1fr) 0px;
}
.chat-context-panel.is-closed {
  display: none !important;
}

.chat-user-profile-wrap {
  position: relative;
  width: 100%;
}
.chat-user-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.chat-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.18);
  color: var(--text-white);
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-settings-gear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ov-rgb), 0.08);
  background: var(--bg-panel) !important;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease, transform 0.1s ease;
}
.chat-settings-gear-btn:hover,
.chat-settings-gear-btn.active {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.24);
  color: var(--text-white);
}
.chat-settings-gear-btn:active {
  transform: scale(0.96);
}
.chat-user-settings-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.14);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(var(--shadow-rgb), calc(0.95 * var(--shadow-k)));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-popover-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-popover-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 6px;
}
.chat-popover-lang-group {
  display: flex;
  gap: 4px;
}
.chat-popover-lang-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 6px;
  border: 1px solid rgba(var(--ov-rgb), 0.08);
  background: var(--bg) !important;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}
.chat-popover-lang-btn:hover {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.2);
  color: var(--text-white);
}
.chat-popover-lang-btn.active {
  background: linear-gradient(180deg, var(--surf-g) 0%, var(--surf-f) 100%) !important;
  border-color: rgba(var(--ov-rgb), 0.22) !important;
  color: var(--text-white) !important;
  font-weight: 700;
}
.chat-popover-lang-flag {
  font-size: 0.82rem;
}
.chat-popover-check {
  font-size: 0.72rem;
  color: #60a5fa;
}
.chat-popover-divider {
  height: 1px;
  background: rgba(var(--ov-rgb), 0.08);
  margin: 4px 0;
}
.chat-popover-item-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}
.chat-popover-item-btn:hover {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.12);
  color: var(--text-white);
}
.chat-popover-logout {
  color: var(--danger-text) !important;
}
.chat-popover-logout:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: var(--danger-text) !important;
}

:root {
  color-scheme: dark;

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-human: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --line-height-body: 1.6;
  --font-scale: 1;

  /* Celtt Official Brand & Plan Logos */
  --logo-main: url('/celtt-logo-v4.png');
  --logo-free: url('/logo-free.png');
  --logo-pro: url('/logo-pro.png');
  --logo-max: url('/logo-max.png');
  --logo-clinic: url('/logo-clinic.png');
  --logo-corporate: url('/logo-clinic.png');
  --logo-favicon: url('/favicon.png');

  /* Section & Panel Text Sizes */
  --section-heading-size: 1.05rem;
  --section-desc-size: 0.8rem;
  --tab-group-label-size: 0.7rem;
  --entry-title-size: 0.9rem;
  --entry-meta-size: 0.75rem;
  --entry-value-size: 0.85rem;
  --stat-label-size: 0.7rem;
  --stat-value-size: 1.1rem;
  --timeline-card-title-size: 0.9rem;
  --timeline-card-sub-size: 0.78rem;
  --timeline-group-label-size: 1.05rem;
  --chat-message-size: 0.88rem;
  --form-label-size: 0.75rem;
  --form-input-size: 0.85rem;

  /* Pure Neutral Dark Slate Palette (AGENTS.md - No Green) */
  --bg: #000000;
  --bg-panel: #090b10;
  --bg-raised: #131722;
  --ov-rgb: 255, 255, 255;
  --panel-rgb: 9, 11, 16;
  --on-accent: #ffffff;
  --on-accent-muted: #8a94a6;
  --inv-bg: #ffffff;
  --inv-text: #000000;
  --ov-text-k: 1;
  --s-0d111a: #0d111a;
  --s-111726: #111726;
  --s-0e121a: #0e121a;
  --s-141720: #141720;
  --s-182232: #182232;
  --s-0b0f17: #0b0f17;
  --s-0f1520: #0f1520;
  --s-080b11: #080b11;
  --s-0d1117: #0d1117;
  --s-0d121c: #0d121c;
  --s-0c0f17: #0c0f17;
  --s-06080c: #06080c;
  --s-0c1017: #0c1017;
  --s-141923: #141923;
  --s-11141d: #11141d;
  --s-0a0d14: #0a0d14;
  --s-0d1017: #0d1017;
  --s-0e1e24: #0e1e24;
  --s-0b1a13: #0b1a13;
  --s-2a1113: #2a1113;
  --s-0e1218: #0e1218;
  --s-0e1e30: #0e1e30;
  --s-0d2318: #0d2318;
  --s-141a24: #141a24;
  --s-181d26: #181d26;
  --s-0c1018: #0c1018;
  --s-0e131d: #0e131d;
  --s-081528: #081528;
  --s-0b0e14: #0b0e14;
  --accent-surface: #090b10;
  --shadow-rgb: 0, 0, 0;
  --shadow-k: 1;
  --text-soft: #cbd5e1;
  --text-subtle: #94a3b8;
  --danger-text: #fca5a5;
  --danger-text-hi: #fecaca;
  --good-text: #86efac;
  --warn-text: #fbbf24;
  --info-text: #93c5fd;
  --accent-text: #0dc0df;
  --surf-a: #0a0e16;
  --surf-b: #0e1118;
  --surf-c: #0c0f16;
  --surf-d: #14171f;
  --surf-e: #05070a;
  --surf-f: #172131;
  --surf-g: #2b3952;
  --panel: #090b10;
  --panel-border: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e2e8f0;
  --text-muted: #8a94a6;
  --text-white: #ffffff;

  /* Accent & Status Tokens */
  --accent: #090b10;
  --accent-bright: #34496e;
  --burgundy: #7a2f34;
  --danger: #7a2f34;
  --good: #166534;
  --success: #166534;
  --warning: #7a2f34;

  /* Gölge & Cam Efektleri */
  --shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.2);
  --blur: none;

  /* Geometri: Fibonacci ölçeği 0 / 4 / 8 / 13 / 21 / 34 / 55 */
  --btn-padding-y: 8px;
  --btn-padding-x: 13px;
  --btn-radius: 8px;
  --btn-font-size: 0.9rem;
  --btn-gap: 8px;

  /* Tab Bar Değişkenleri */
  --tabbar-gap: 4px;
  --tabbar-padding: 4px;
  --tabbar-radius: 13px;
  --tab-gap: 8px;
  --tab-radius: 8px;
  --tab-padding-y: 8px;
  --tab-padding-x: 13px;
  --tab-font-size: 0.9rem;

  /* Layout & Grid (Fibonacci Standartları) */
  --container-max: 1600px;
  --fluid-pad: clamp(13px, 2.5vw, 34px);
  --fluid-gap: clamp(8px, 1.5vw, 21px);
  --peek-ratio: 23.6%;
  --grid-gap: 8px;
  --panel-padding: 21px;
  --panel-radius: 13px;
  --app-frame-padding-x: 16px;
  --app-frame-padding-y: 13px;
  --section-heading-margin-bottom: 13px;
  --topbar-padding-y: 13px;
  --topbar-padding-top: 8px;
  --topbar-padding-bottom: 8px;
  --topbar-padding-x: 21px;
  --topbar-min-height: 55px;
  --topbar-radius: 13px;
  --topbar-content-gap: 8px;
  --topbar-border-width: 1px;
  --topbar-margin-top: 0px;
  --topbar-margin-bottom: 8px;
}

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

html {
  font-size: calc(16px * var(--font-scale, 1));
}

html,
body,
#root {
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Monokrom / Siyah-Beyaz Standart: Emojiler ve Simgeler */
.icon,
.emoji,
.chat-icon,
.tab-icon,
.entry-icon,
.nav-icon,
.metric-icon,
.panel-icon,
span[role="img"],
[data-emoji],
svg.icon,
svg.chat-icon,
svg.nav-icon,
svg.tab-icon {
  filter: grayscale(100%) !important;
  -webkit-filter: grayscale(100%) !important;
}

/* Animasyon & Etkileşim Frekansı Standardı (Raycast Sıfır Gecikme Kuralı) */
.command-palette,
.quick-search,
.keyboard-nav,
[data-keyboard-action],
kbd {
  transition: none !important;
  animation: none !important;
}

/* Yüksek frekanslı buton, sekme ve liste geçişleri: Ultra hızlı (<= 0.1s) */
button,
.tab,
.quick-card,
.entry,
.chat-history-item {
  transition-duration: 0.1s !important;
}

/* App Layout Frame & Global Responsive Architecture */
.app-frame {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  padding: var(--app-frame-padding-y, 13px) var(--app-frame-padding-x, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap, 13px);
  box-sizing: border-box;
}

/* 💻 PC Masaüstü Ekranları (Viewport > 1024px) */
@media (min-width: 1025px) {
  html:not([data-device="mobile"]):not([data-device="tablet"]) .app-frame {
    min-height: 100vh;
    padding: 24px 24px 12px 24px;
  }

  html:not([data-device="mobile"]):not([data-device="tablet"]) .dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--grid-gap, 21px);
    flex: 1;
    min-height: 0;
    overflow: hidden;
    align-content: stretch;
  }

  html:not([data-device="mobile"]):not([data-device="tablet"]) .dashboard-left-col,
  html:not([data-device="mobile"]):not([data-device="tablet"]) .dashboard-right-col {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap, 21px);
    height: 100%;
    overflow-y: auto;
    padding-right: 6px;
  }

  html:not([data-device="mobile"]):not([data-device="tablet"]) .entry-list {
    max-height: calc(100vh - 390px);
    overflow-y: auto;
    padding-right: 8px;
  }
}

/* 📱 Tablet Ekranları (Viewport 768px - 1024px veya data-device="tablet") */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .app-frame {
    padding: 16px 14px !important;
    gap: 16px !important;
    height: auto !important;
    min-height: 100vh;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .topbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 20px 18px !important;
  }

  .topbar-right {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .dashboard-left-col,
  .dashboard-right-col {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding-right: 0 !important;
    gap: 16px !important;
  }

  .panel {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .tab-bar,
  .tabbar-grouped {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 !important;
    box-sizing: border-box !important;
  }

  .tab-item {
    flex-shrink: 0 !important;
    min-height: 44px !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
  }

  .btn {
    min-height: 44px !important;
  }

  .entry-list {
    max-height: 450px !important;
    overflow-y: auto !important;
  }
}

html[data-device="tablet"] .app-frame {
  padding: 16px;
  gap: 16px;
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}

/* 📲 Mobil Telefon Ekranları (Viewport < 768px veya data-device="mobile") */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .app-frame {
    padding: 12px 10px !important;
    gap: 12px !important;
    height: auto !important;
    min-height: 100vh;
    overflow-x: hidden !important;
  }

  .topbar {
    padding: 16px 14px !important;
    border-radius: 13px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .topbar h1 {
    font-size: 1.6rem !important;
  }

  .topbar-right {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .dashboard-left-col,
  .dashboard-right-col {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding-right: 0 !important;
    gap: 12px !important;
  }

  .panel {
    padding: 16px 14px !important;
    border-radius: 13px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tab-bar {
    display: flex !important;
    overflow-x: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 4px !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .tab-item {
    scroll-snap-align: start;
    flex-shrink: 0 !important;
    min-height: 44px !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
  }

  .btn {
    min-height: 44px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .entry-list {
    max-height: 380px !important;
    overflow-y: auto !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="number"],
  textarea,
  select {
    min-height: 44px !important;
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }
}

html[data-device="mobile"] .app-frame {
  padding: 12px 10px !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 100vh;
  overflow-x: hidden !important;
}

/* Premium Custom Scrollbars */
.dashboard-grid::-webkit-scrollbar,
.page-shell::-webkit-scrollbar,
.entry-list::-webkit-scrollbar,
.chat::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.dashboard-grid::-webkit-scrollbar-track,
.page-shell::-webkit-scrollbar-track,
.entry-list::-webkit-scrollbar-track,
.chat::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-grid::-webkit-scrollbar-thumb,
.page-shell::-webkit-scrollbar-thumb,
.entry-list::-webkit-scrollbar-thumb,
.chat::-webkit-scrollbar-thumb {
  background: rgba(var(--ov-rgb), 0.08);
  border-radius: 10px;
}

.dashboard-grid::-webkit-scrollbar-thumb:hover,
.page-shell::-webkit-scrollbar-thumb:hover,
.entry-list::-webkit-scrollbar-thumb:hover,
.chat::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--ov-rgb), 0.15);
}


/* Header & Typography */
/* Header & Typography - Barış Design (Fibonacci: 0, 4, 8, 13, 21, 34, 55px) */
.topbar {
  min-height: 55px !important;
  border-radius: 13px !important;
  padding: 8px 21px !important;
  margin-top: 0px !important;
  margin-bottom: 13px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 13px !important;
  border: 1px solid var(--panel-border) !important;
  background: var(--panel) !important;
  backdrop-filter: var(--blur) !important;
  box-shadow: var(--shadow) !important;
}

.topbar .eyebrow {
  font-size: calc(var(--topbar-eyebrow-size, 0.75rem) * 0.6);
  margin-bottom: var(--topbar-content-gap, 6px);
}

.topbar .trust-badge {
  font-size: 0.6rem;
}

.topbar h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--topbar-title-size, 2.25rem);
  background: linear-gradient(135deg, var(--text-white) 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: var(--topbar-content-gap, 6px);
}

.topbar p {
  font-family: var(--font-human);
  color: var(--text-muted);
  font-size: var(--topbar-subtitle-size, 0.95rem);
  line-height: 1.5;
  max-width: 600px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}

.version-badge {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ov-rgb), 0.12);
  background: rgba(var(--ov-rgb), 0.05);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

/* Barış Design - Başlık ve Vurgu Standartları */
h1.hero-title,
.hero-title {
  color: var(--text-white);
  font-family: var(--font-heading);
  font-style: italic;
}

h1.hero-title .highlight,
.hero-title .highlight,
h1 .highlight,
h2 .highlight,
span.highlight {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 10%, #94a3b8 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Barış Design - AI & Panel Icon Standards */
.btn-ai-icon,
.btn-panel-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.15) !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  pointer-events: none;
}
.btn-ai-icon-large,
.btn-panel-icon-large {
  width: 21px;
  height: 21px;
}
.card-spotlight-icon,
.spotlight-card .icon-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.15) !important;
  display: block;
  pointer-events: none;
}
.panel-btn-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.15) !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  pointer-events: none;
}

/* Status Chips */
.status-chip {
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--ov-rgb), 0.02);
  white-space: nowrap;
}

.status-chip.ready {
  color: var(--good);
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.status-chip.offline,
.status-chip.checking {
  color: var(--text-muted);
}

/* Tabs & Navigation */
.tabbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center !important;
  gap: 13px !important;
  padding: 8px 13px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(var(--ov-rgb), 0.08) !important;
  background: var(--bg-panel) !important;
}

.tab {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: var(--text-muted) !important;
  padding: 8px 13px !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px !important;
  transition: none !important;
  animation: none !important;
}

.tab svg {
  stroke: currentColor;
  opacity: 0.85;
}

.tab:hover {
  color: var(--text-white) !important;
  background: var(--surf-b) !important;
  border-color: rgba(var(--ov-rgb), 0.12) !important;
}

.tab.active {
  color: var(--text-white) !important;
  background: var(--bg) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.22) !important;
  box-shadow: none !important;
}

/* Priority Tab: Health Documents Highlight (Pure Dark Slate + Storm Accent) */
.tab.tab-priority {
  color: var(--text) !important;
  background: rgba(52, 73, 110, 0.22) !important;
  border: 1px solid rgba(52, 73, 110, 0.55) !important;
  font-weight: 600 !important;
}

.tab.tab-priority svg {
  stroke: var(--text) !important;
  opacity: 1 !important;
}

.tab.tab-priority:hover {
  color: var(--text-white) !important;
  background: rgba(52, 73, 110, 0.38) !important;
  border-color: rgba(52, 73, 110, 0.8) !important;
}

.tab.tab-priority.active {
  color: var(--text-white) !important;
  background: var(--bg) !important;
  border: 1px solid #34496e !important;
  box-shadow: 0 0 12px rgba(52, 73, 110, 0.35) !important;
}

.tab.tab-priority.active svg {
  stroke: var(--text-white) !important;
}



.tabbar-grouped {
  align-items: flex-start;
  gap: 4px;
}

.tab-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 8px;
  border-right: 1px solid rgba(var(--ov-rgb), 0.08) !important;
}

.tab-group:last-child {
  border-right: none !important;
}

.tab-group-label {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted) !important;
  padding: 0 4px;
}

.tab-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tab-gap);
}

/* Panels */
.panel {
  border-radius: var(--panel-radius, 13px);
  padding: var(--panel-padding);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.panel:hover {
  border-color: rgba(var(--ov-rgb), 0.09);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--grid-gap, 13px);
  margin-bottom: var(--section-heading-margin-bottom, 13px);
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: var(--section-heading-size, 1.5rem);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.section-heading p {
  font-family: var(--font-human);
  color: var(--text-muted);
  font-size: var(--section-desc-size, 0.9rem);
  line-height: 1.5;
  margin-top: 4px;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

/* Hero Panel & Highlight/Stats */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-image: 
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 45%),
    linear-gradient(to bottom, var(--panel), var(--panel));
}

.hero-copy h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-copy p {
  font-family: var(--font-human);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 8px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

/* Stat Cards */
.stat-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(var(--ov-rgb), 0.02);
  border: 1px solid rgba(var(--ov-rgb), 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  background: rgba(var(--ov-rgb), 0.04);
  transform: translateY(-3px);
  border-color: rgba(var(--ov-rgb), 0.07);
  box-shadow: 0 12px 24px -10px rgba(var(--shadow-rgb), calc(0.4 * var(--shadow-k)));
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--ov-rgb), 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-label-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: var(--stat-label-size, 0.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--ov-rgb), 0.04);
  color: var(--text-white);
  font-size: 1.1rem;
}

.stat-card:nth-child(1) .stat-icon { color: var(--accent-rose); background: rgba(244, 63, 94, 0.08); }
.stat-card:nth-child(2) .stat-icon { color: var(--accent-cyan); background: rgba(6, 182, 212, 0.08); }
.stat-card:nth-child(3) .stat-icon { color: var(--accent-violet); background: rgba(139, 92, 246, 0.08); }
.stat-card:nth-child(4) .stat-icon { color: var(--good); background: rgba(16, 185, 129, 0.08); }

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--stat-value-size, 1.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-white);
  line-height: 1.2;
}

.stat-hint {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Quick Links Panel */
.quick-links {
  display: flex;
  flex-direction: column;
}

.quick-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(var(--ov-rgb), 0.03);
  background: rgba(var(--ov-rgb), 0.015);
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.1s ease, background 0.1s ease, transform 0.1s ease;
  cursor: pointer;
  text-align: left;
}

.quick-card:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.15);
  transform: translateX(4px);
}

.quick-card strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.quick-card span {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  transition: color 0.1s ease, opacity 0.1s ease;
}

.quick-card:hover span {
  background: var(--accent-cyan);
  color: var(--bg);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Highlights Grid */
.highlights-panel,
.summary-panel {
  grid-column: 1 / -1;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.highlight-card {
  border-radius: 18px;
  border: 1px solid rgba(var(--ov-rgb), 0.03);
  background: rgba(var(--ov-rgb), 0.01);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 110px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  background: rgba(var(--ov-rgb), 0.02);
  border-color: rgba(var(--ov-rgb), 0.06);
  transform: translateY(-2px);
}

.highlight-card.accent {
  border-color: rgba(6, 182, 212, 0.15);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.04) 0%, rgba(var(--ov-rgb), 0.01) 100%);
}

.highlight-card.accent:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.07) 0%, rgba(var(--ov-rgb), 0.02) 100%);
}

.highlight-card span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.highlight-card strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-white);
  line-height: 1.4;
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.summary-item {
  border-radius: 18px;
  border: 1px solid rgba(var(--ov-rgb), 0.03);
  background: rgba(var(--ov-rgb), 0.01);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-item:hover {
  background: rgba(var(--ov-rgb), 0.02);
  border-color: rgba(var(--ov-rgb), 0.06);
}

.summary-item span {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.summary-item strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-white);
}

/* Page Shell & Form Editor */
.page-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form Styles */
.editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  background: rgba(5, 8, 16, 0.3);
  border: 1px solid rgba(var(--ov-rgb), 0.04);
  padding: 20px;
  border-radius: 20px;
  align-items: end;
}

.editor-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.editor input,
.editor select,
.editor textarea {
  background: rgba(var(--panel-rgb), 0.7);
  border: 1px solid rgba(var(--ov-rgb), 0.07);
  border-radius: 12px;
  color: var(--text-white);
  padding: 12px 16px;
  font-size: var(--form-input-size, 0.9rem);
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.editor input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-error {
  color: var(--danger);
  font-size: 0.75rem;
  padding-left: 2px;
}

.editor input:focus, 
.editor select:focus, 
.editor textarea:focus {
  border-color: var(--accent);
  background: rgba(var(--panel-rgb), 0.9);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.editor button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  grid-column: span 1;
}

/* Inputs, Textareas and Dropdowns in general */
button, input, select, textarea {
  font-family: var(--font-body);
}

input[type="file"] {
  border-radius: 12px;
  border: 1px dashed rgba(var(--ov-rgb), 0.15);
  background: rgba(5, 8, 16, 0.4);
  color: var(--text-muted);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="file"]:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.03);
}

/* Entry Lists */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 0 4px;
}

.list-header strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-white);
}

.list-header span {
  font-size: 0.85rem;
  background: rgba(var(--ov-rgb), 0.04);
  padding: 2px 10px;
  border-radius: 20px;
  color: var(--text-muted);
  font-weight: 600;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(var(--ov-rgb), 0.03);
  background: rgba(var(--ov-rgb), 0.01);
  transition: border-color 0.1s ease, background 0.1s ease, transform 0.1s ease;
}

.entry:hover {
  background: rgba(var(--ov-rgb), 0.02);
  border-color: rgba(var(--ov-rgb), 0.06);
  transform: translateX(3px);
}

.entry strong {
  font-family: var(--font-heading);
  font-size: var(--entry-title-size, 1.1rem);
  color: var(--text-white);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.entry .meta {
  font-size: var(--entry-meta-size, 0.85rem);
  color: var(--text-muted);
}

.entry-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.entry-actions span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.06);
  padding: 4px 10px;
  border-radius: 12px;
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  border-radius: 18px;
  border: 1px dashed rgba(var(--ov-rgb), 0.08);
  background: rgba(var(--ov-rgb), 0.005);
}

.load-more-btn {
  align-self: center;
  margin-top: 4px;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px dashed rgba(var(--ov-rgb), 0.12);
  background: rgba(var(--ov-rgb), 0.02);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.load-more-btn:hover {
  background: rgba(var(--ov-rgb), 0.05);
  color: var(--text-white);
}

/* Button Colors. `.m-btn` (mobile app components, src/mobile/mobile.css) opts out and owns its look. */
button:not(.tab):not(.ghost):not(.danger):not(.m-btn) {
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid rgba(var(--ov-rgb), 0.14);
  box-shadow: 0 4px 14px rgba(var(--shadow-rgb), calc(0.3 * var(--shadow-k)));
  transition: border-color 0.1s ease, background 0.1s ease, transform 0.1s ease;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
}

button:not(.tab):not(.ghost):not(.danger):not(.m-btn):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  filter: brightness(1.08);
}

button:not(.tab):not(.ghost):not(.danger):not(.m-btn):active {
  transform: translateY(1px);
}

.ghost {
  color: var(--text);
  background: rgba(var(--ov-rgb), 0.02);
  border: 1px solid rgba(var(--ov-rgb), 0.07);
  transition: color 0.1s ease, opacity 0.1s ease;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  font-weight: 600;
}

.ghost:hover {
  background: rgba(var(--ov-rgb), 0.05);
  border-color: rgba(var(--ov-rgb), 0.15);
}

.danger {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-rose), #ff6b87);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.2);
  transition: color 0.1s ease, opacity 0.1s ease;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.danger:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
  transform: translateY(-1px);
}

/* Chat (Ollama) Panel */
.chat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: rgba(var(--ov-rgb), 0.01);
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(var(--ov-rgb), 0.03);
  margin-bottom: 16px;
}

.chat-toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chat-toolbar select {
  width: auto;
  min-width: 160px;
  background: rgba(var(--panel-rgb), 0.7);
  border: 1px solid rgba(var(--ov-rgb), 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text-white);
}

.chat-toolbar .helper {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(5, 8, 16, 0.4);
  border: 1px solid rgba(var(--ov-rgb), 0.03);
}

.bubble {
  max-width: 80%;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: var(--chat-message-size, 0.92rem);
  line-height: 1.45;
  border: 1px solid rgba(var(--ov-rgb), 0.03);
  white-space: pre-wrap;
}

.bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  border-bottom-right-radius: 4px;
  color: var(--text-white);
}

.bubble.assistant {
  align-self: flex-start;
  background: rgba(var(--ov-rgb), 0.015);
  border-color: rgba(var(--ov-rgb), 0.04);
  border-bottom-left-radius: 4px;
}

.bubble-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .typing-dot {
    animation: none !important;
    opacity: 0.6 !important;
  }
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-templates {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.templates-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.templates-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.templates-pills::-webkit-scrollbar {
  height: 4px;
}

.templates-pills::-webkit-scrollbar-track {
  background: transparent;
}

.templates-pills::-webkit-scrollbar-thumb {
  background: rgba(var(--ov-rgb), 0.06);
  border-radius: 10px;
}

.template-pill {
  background: rgba(var(--ov-rgb), 0.02);
  border: 1px solid rgba(var(--ov-rgb), 0.04);
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.template-pill:hover {
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  color: var(--text-white) !important;
}

.template-pill:active {
  transform: scale(0.97);
}

.chat-compose {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: stretch;
}

.chat-compose textarea {
  flex: 1;
  min-height: 50px;
  height: 50px;
  background: rgba(var(--panel-rgb), 0.7);
  border: 1px solid rgba(var(--ov-rgb), 0.08);
  border-radius: 12px;
  color: var(--text-white);
  padding: 12px 16px;
  outline: none;
  resize: none;
  transition: color 0.1s ease, opacity 0.1s ease;
}

.chat-compose textarea:focus {
  border-color: var(--accent);
  background: rgba(var(--panel-rgb), 0.9);
}

.chat-compose button {
  height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Footer & Subtitles */
.footer-note {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.8rem;
  padding: 12px 0 20px;
  border-top: 1px solid rgba(var(--ov-rgb), 0.03);
  margin-top: 12px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .upload-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-frame {
    padding: 24px 16px;
  }
  
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
  }
  
  .topbar h1 {
    font-size: 1.8rem;
  }
  
  .editor {
    grid-template-columns: 1fr;
  }
  
  .editor button {
    grid-column: 1 / -1;
  }
  
  .tabbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab {
    white-space: nowrap;
    padding: 10px 16px;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  
  .entry {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .entry-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 10px;
  }
}

/* Cihaza özel görünüm rotaları: /panel/ (PC), /panel/tablet/, /panel/mobile/ */
html[data-device="tablet"] .hero-stats,
html[data-device="mobile"] .hero-stats {
  grid-template-columns: repeat(2, 1fr);
}

html[data-device="tablet"] .highlight-grid,
html[data-device="mobile"] .highlight-grid {
  grid-template-columns: repeat(2, 1fr);
}

html[data-device="tablet"] .upload-panel,
html[data-device="mobile"] .upload-panel {
  grid-template-columns: 1fr;
}

html[data-device="mobile"] .summary-grid,
html[data-device="mobile"] .metrics-summary-grid,
html[data-device="mobile"] .hero-stats,
html[data-device="mobile"] .highlight-grid {
  grid-template-columns: 1fr;
}

/* Telefon rotası her zaman tek sütun + doğal sayfa kaydırma kullanır,
   pencere geniş olsa bile (masaüstü kabuğu min-width:1025px'te !important ile kilitli). */
html[data-device="mobile"] .app-frame {
  padding: 24px 16px;
  height: auto;
  min-height: 100vh;
  display: grid;
  overflow: visible;
}

html[data-device="mobile"] .dashboard-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  flex: initial;
  overflow: visible;
}

html[data-device="mobile"] .dashboard-left-col,
html[data-device="mobile"] .dashboard-right-col {
  height: auto;
  overflow-y: visible;
}

html[data-device="mobile"] .topbar {
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 24px;
}

html[data-device="mobile"] .topbar h1 {
  font-size: 1.8rem;
}

html[data-device="mobile"] .topbar-right {
  width: 100%;
  justify-content: space-between;
  margin-top: 12px;
}

html[data-device="mobile"] .sync-section {
  align-items: flex-start;
}

html[data-device="mobile"] .sync-error-text,
html[data-device="mobile"] .sync-success-text {
  text-align: left;
}

html[data-device="mobile"] .editor {
  grid-template-columns: 1fr;
}

html[data-device="mobile"] .editor button {
  grid-column: 1 / -1;
}

html[data-device="tablet"] .tabbar,
html[data-device="mobile"] .tabbar {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

html[data-device="tablet"] .tab,
html[data-device="mobile"] .tab {
  white-space: nowrap;
  padding: 10px 16px;
}

html[data-device="mobile"] .entry {
  flex-direction: column;
  align-items: flex-start;
}

html[data-device="mobile"] .entry-actions {
  width: 100%;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Sync Section Styles */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sync-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  gap: 4px;
}

.sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent)) !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.2) !important;
  color: var(--on-accent);
  border: none;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  transition: border-color 0.1s ease, background 0.1s ease, transform 0.1s ease;
}

.sync-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35) !important;
  filter: brightness(1.08);
}

.sync-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.sync-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.sync-icon {
  flex-shrink: 0;
}

.spin {
  animation: spin 1.2s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .spin {
    animation-duration: 3s !important;
    animation-iteration-count: infinite !important;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.sync-progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(var(--ov-rgb), 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: absolute;
  bottom: -6px;
  left: 0;
}

.sync-progress-bar {
  height: 100%;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.sync-error-text {
  font-size: 0.75rem;
  color: var(--accent-rose);
  margin-top: 2px;
  max-width: 250px;
  text-align: right;
}

.sync-success-text {
  font-size: 0.75rem;
  color: var(--good);
  margin-top: 2px;
  text-align: right;
}

@media (max-width: 768px) {
  .topbar-right {
    width: 100%;
    justify-content: space-between;
    margin-top: 12px;
  }
  .sync-section {
    align-items: flex-start;
  }
  .sync-error-text,
  .sync-success-text {
    text-align: left;
  }
}

/* Metrics Tabs Styles */
.metrics-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(var(--ov-rgb), 0.08);
  background: rgba(var(--ov-rgb), 0.02);
}

.badge.steps {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.15);
}

.badge.heart-rate {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.06);
  border-color: rgba(244, 63, 94, 0.15);
}

.badge.sleep {
  color: var(--accent-violet);
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.15);
}

.heart-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-rose);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.2s infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .heart-pulse-dot {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.8 !important;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7);
  }
  100% {
    transform: scale(1.2);
    box-shadow: 0 0 8px 3px rgba(244, 63, 94, 0);
  }
}

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

.clear-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 63, 94, 0.05) !important;
  color: var(--accent-rose) !important;
  border: 1px solid rgba(244, 63, 94, 0.2) !important;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  transition: border-color 0.1s ease, background 0.1s ease, transform 0.1s ease;
  box-shadow: none !important;
}

.settings-menu-wrap {
  position: relative;
}

.settings-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  flex: 0 0 40px;
  color: var(--text) !important;
  background: rgba(var(--ov-rgb), 0.06) !important;
  border: 1px solid var(--panel-border) !important;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.topbar-right .settings-icon-btn {
  min-width: 40px;
  max-width: 40px;
  white-space: nowrap;
}

.settings-icon-btn:hover,
.settings-icon-btn[aria-expanded="true"] {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.35);
}

.settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  padding: 10px !important;
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 36px rgba(var(--shadow-rgb), calc(0.95 * var(--shadow-k))) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

.settings-user-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  padding: 4px 6px 6px !important;
}

.settings-user-label {
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.settings-user-email {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--text-white) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.settings-divider {
  height: 1px !important;
  background: rgba(var(--ov-rgb), 0.08) !important;
  margin: 2px 0 !important;
}

.settings-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.settings-section-label {
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  padding: 2px 4px !important;
}

.settings-lang-group {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.settings-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 6px 2px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(var(--ov-rgb), 0.08) !important;
  background: var(--bg) !important;
  color: var(--text-soft) !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease !important;
  white-space: nowrap !important;
}

.settings-lang-btn:hover {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.2) !important;
  color: var(--text-white) !important;
}

.settings-lang-btn.active {
  background: linear-gradient(180deg, var(--surf-g) 0%, var(--surf-f) 100%) !important;
  border-color: rgba(var(--ov-rgb), 0.22) !important;
  color: var(--text-white) !important;
  font-weight: 700 !important;
}

.settings-lang-flag {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  opacity: 0.8 !important;
}

.settings-lang-text {
  font-size: 0.74rem !important;
}

.settings-lang-check {
  font-size: 0.7rem !important;
  color: #60a5fa !important;
}

.settings-menu-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 8px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--text) !important;
  font: inherit !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background 0.1s ease, color 0.1s ease !important;
}

.settings-menu-item svg {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

.settings-menu-item span {
  flex: 0 1 auto !important;
  text-align: left !important;
  margin: 0 !important;
}

.settings-menu-item:hover {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.12);
  color: var(--text-white);
}

.settings-clear-item {
  color: var(--warn-text) !important;
}

.settings-clear-item:hover {
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  color: #fef08a !important;
}

.settings-logout-item {
  color: var(--danger-text) !important;
}

.settings-logout-item:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: var(--danger-text) !important;
}

/* Klinik Zaman Çizelgesi (swimlane) — klinik Timeline paneli piksel ölçülerine hizalandı
   (bkz. share data/Klinik_Arayuz_Ebat_Butunlesik_Rapor.md §3.2 ve §5) */
.clinical-swimlane {
  display: flex;
  flex-direction: column;
  min-width: 640px;
}

.swimlane-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  background: rgba(var(--ov-rgb), 0.015);
  border: 1px solid var(--panel-border);
}

.swimlane-header strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
}

.swimlane-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.swimlane-row {
  display: flex;
  border: 1px solid var(--panel-border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  margin-bottom: 4px;
  overflow: hidden;
}

.swimlane-row:first-child {
  border-top: 1px solid var(--panel-border);
  border-radius: 6px 6px 0 0;
}

.swimlane-row-last {
  margin-bottom: 0;
}

.swimlane-label-col {
  flex-shrink: 0;
  width: 180px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-right: 1px solid var(--panel-border);
  background: rgba(var(--ov-rgb), 0.015);
}

.swimlane-label-col strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-white);
}

.swimlane-label-sub {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

.swimlane-chart-col {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
}

.swimlane-download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.8rem;
}

.swimlane-download-label {
  color: var(--text-muted);
  font-weight: 600;
}

.swimlane-download-link {
  display: inline-flex;
  align-items: center;
  padding: 3.2px 9.6px;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  background: rgba(var(--ov-rgb), 0.02);
  color: var(--text-white);
  font-size: 0.78rem;
  transition: background 0.1s, border-color 0.1s;
}

.swimlane-download-link:hover {
  background: rgba(var(--ov-rgb), 0.06);
  border-color: var(--accent-cyan);
}

.chart-mark {
  cursor: pointer;
  outline: none;
}

.chart-mark:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.chart-tooltip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: var(--bg-darker);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.76rem;
  box-shadow: var(--shadow);
  max-width: 220px;
}

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

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

.chart-tooltip-row + .chart-tooltip-row {
  margin-top: 2px;
}

.chart-tooltip-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.chart-tooltip-label {
  color: var(--text-muted);
}

.chart-tooltip-value {
  margin-left: auto;
  font-weight: 600;
  color: var(--text);
}

/* Style Customizer Panel */
.theme-customizer-toggle {
  display: none !important;
}

.theme-customizer-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(var(--ov-rgb), 0.08);
  box-shadow: -10px 0 40px rgba(var(--shadow-rgb), calc(0.7 * var(--shadow-k)));
  z-index: 10000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .theme-customizer-toggle {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .theme-customizer-drawer {
    width: 100vw;
    right: -100vw;
  }
}

.theme-customizer-drawer.open {
  right: 0;
}

.theme-customizer-header {
  padding: 24px;
  border-bottom: 1px solid rgba(var(--ov-rgb), 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-customizer-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
}

.theme-customizer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.1s ease, background 0.1s ease;
}

.theme-customizer-close:hover {
  color: var(--text-white);
  background: rgba(var(--ov-rgb), 0.05);
}

.theme-customizer-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.theme-customizer-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.theme-customizer-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 8px;
  margin-bottom: 4px;
}

.theme-customizer-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-customizer-control-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.theme-customizer-control-label span.value {
  color: var(--text-white);
  font-family: monospace;
  font-weight: 600;
}

.theme-customizer-control input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(var(--ov-rgb), 0.1);
  outline: none;
  transition: background 0.3s;
}

.theme-customizer-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  transition: transform 0.1s, background-color 0.2s;
}

.theme-customizer-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--text-white);
}

.theme-customizer-control-color {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(var(--ov-rgb), 0.02);
  border: 1px solid rgba(var(--ov-rgb), 0.05);
  padding: 8px 12px;
  border-radius: 10px;
}

.theme-customizer-control-color input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  background: none;
}

.theme-customizer-control-color input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.theme-customizer-control-color input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(var(--ov-rgb), 0.15);
  border-radius: 6px;
}

.theme-customizer-control-color span {
  font-size: 0.85rem;
  color: var(--text-white);
}

.theme-customizer-footer {
  padding: 24px;
  border-top: 1px solid rgba(var(--ov-rgb), 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-customizer-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem !important;
}

.theme-customizer-btn.secondary {
  background: rgba(var(--ov-rgb), 0.05) !important;
  color: var(--text-white) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.1) !important;
}

.theme-customizer-btn.secondary:hover {
  background: rgba(var(--ov-rgb), 0.1) !important;
}

/* CSS Code Export Area */
.theme-customizer-code-box {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(var(--ov-rgb), 0.05);
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #34d399;
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  user-select: all;
}

/* Panel Controls Overlay */
.panel-header-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.15;
  transition: opacity 0.2s;
  z-index: 10;
}

.panel:hover .panel-header-controls {
  opacity: 1;
}

.panel-span-toggle {
  background: rgba(var(--ov-rgb), 0.03) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.08) !important;
  color: var(--text-muted) !important;
  padding: 4px 8px !important;
  font-size: 0.72rem !important;
  border-radius: 6px !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.1s ease, color 0.1s ease;
  font-weight: 600;
}

.panel-span-toggle:hover {
  background: rgba(var(--ov-rgb), 0.08) !important;
  color: var(--text-white) !important;
  border-color: rgba(var(--ov-rgb), 0.15) !important;
}

.panel-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: grab;
  padding: 4px;
  border-radius: 6px;
  background: rgba(var(--ov-rgb), 0.03);
  border: 1px solid rgba(var(--ov-rgb), 0.08);
  transition: background 0.2s, color 0.2s;
}

.panel-drag-handle:hover {
  background: rgba(var(--ov-rgb), 0.08);
  color: var(--text-white);
}

.panel-drag-handle:active {
  cursor: grabbing;
}

/* Customizer Tab Bar Styles */
.theme-customizer-tabs {
  display: flex;
  border-bottom: 1px solid rgba(var(--ov-rgb), 0.08);
  margin-bottom: 16px;
}

.theme-customizer-tab-btn {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  padding: 12px 6px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-align: center;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: color 0.1s ease, background 0.1s ease, border-color 0.1s ease;
}

.theme-customizer-tab-btn:hover {
  color: var(--text-white) !important;
  background: rgba(var(--ov-rgb), 0.02) !important;
  transform: none !important;
}

.theme-customizer-tab-btn.active {
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
}




/* Consent gate (KVKK + tıbbi feragatname) */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1, 3, 10, 0.85);
  backdrop-filter: var(--blur);
}

.consent-modal {
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--panel-padding);
  border-radius: var(--panel-radius);
  border: 1px solid var(--panel-border);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.consent-modal h2 {
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.consent-intro {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.consent-text {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
  margin-bottom: 16px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.85rem;
}

.consent-text h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.consent-text p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.9rem;
}

.consent-checkbox input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.consent-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.consent-accept-btn {
  width: 100%;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--btn-font-size);
  font-weight: 600;
  cursor: pointer;
}

.consent-accept-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.consent-settings h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.consent-settings p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.consent-settings-actions {
  display: flex;
  gap: 10px;
}

.consent-withdraw-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--danger);
  background: transparent;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
}

.consent-withdraw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.consent-cancel-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* Evrensel sağlık belgesi modeli - Barış Design (Pure Dark Slate) */
.document-safety-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px !important;
  border: 1px solid rgba(var(--ov-rgb), 0.08) !important;
  border-left: 3px solid rgba(var(--ov-rgb), 0.24) !important;
  border-radius: 8px !important;
  background: var(--bg) !important;
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
}

.document-safety-note strong { color: var(--text-white) !important; font-weight: 600; white-space: nowrap; }
.document-safety-note span { color: var(--text-muted) !important; }
.document-safety-note.compact { font-size: 0.8rem !important; padding: 8px 13px !important; }

.health-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 13px;
}

.health-category-card {
  min-height: 174px;
  padding: 21px !important;
  border: 1px solid rgba(var(--ov-rgb), 0.08) !important;
  border-radius: 8px !important;
  background: var(--bg-panel) !important;
  display: flex;
  flex-direction: column;
  transition: border-color 0.1s ease, background 0.1s ease;
}

.health-category-card:hover {
  border-color: rgba(var(--ov-rgb), 0.18) !important;
  background: var(--surf-b) !important;
  transform: none !important;
}

.health-category-card.priority {
  border-color: rgba(var(--ov-rgb), 0.14) !important;
  background: var(--bg-panel) !important;
}

.health-category-topline, .health-category-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.health-category-icon {
  color: var(--text) !important;
  font-size: 1.25rem !important;
  filter: grayscale(100%) !important;
}

.health-category-order {
  color: var(--text-muted) !important;
  font: 600 0.75rem var(--font-body);
  letter-spacing: 0.1em;
}

.health-category-card h3 {
  margin: 13px 0 6px !important;
  color: var(--text-white) !important;
  font: 600 0.96rem/1.3 var(--font-heading);
}

.health-category-card p {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
  line-height: 1.5;
}

.health-category-footer {
  margin-top: auto;
  padding-top: 13px;
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
}

.health-category-card .text-button,
.text-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 13px !important;
  border-radius: 8px !important;
  background: var(--bg) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.14) !important;
  color: var(--text-white) !important;
  font: 500 0.8rem var(--font-body) !important;
  cursor: pointer !important;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease !important;
  text-decoration: none !important;
}

.health-category-card .text-button:hover,
.text-button:hover {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.28) !important;
  color: var(--text-white) !important;
}

.document-records { margin-top: 21px; }


@media (max-width: 800px) {
  .health-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .health-category-grid { grid-template-columns: 1fr; }
  .document-safety-note { flex-direction: column; gap: 4px; }
}

/* AI Import Styles - Barış Design (Pure Dark Slate & Fibonacci) */
.ai-import-header-action {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ai-import-header-action label {
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
}

#ai-model-select {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 8px !important;
  background: var(--bg) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.14) !important;
  color: var(--text-white) !important;
  font-size: 0.85rem !important;
  font-family: var(--font-body) !important;
  outline: none !important;
  cursor: pointer !important;
}

.ai-cloud-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}

.ai-cloud-badge .cloud-dot {
  color: #166534 !important;
  font-size: 0.7rem !important;
}

.ai-import-container {
  display: flex;
  flex-direction: column;
  gap: 13px !important;
}

.ai-import-dropzone {
  border: 1px dashed rgba(var(--ov-rgb), 0.18) !important;
  border-radius: 8px !important;
  padding: 34px 21px !important;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.14s cubic-bezier(0.16, 1, 0.3, 1), background 0.14s ease-out, transform 0.12s ease-out !important;
  background: var(--bg) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ai-import-dropzone:hover,
.ai-import-dropzone.drag-over {
  border-color: rgba(var(--ov-rgb), 0.32) !important;
  background: var(--surf-b) !important;
}

.ai-import-dropzone:active {
  transform: scale(0.99) !important;
}

.ai-import-dropzone svg {
  stroke: var(--text-muted) !important;
  opacity: 0.7 !important;
  margin-bottom: 8px !important;
}

.ai-import-dropzone p strong {
  color: var(--text-white) !important;
  font-size: 0.95rem !important;
}

.ai-import-dropzone p {
  color: var(--text-muted) !important;
  margin: 2px 0 !important;
}

.ai-import-status {
  padding: 8px 13px !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.08) !important;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-import-status.busy {
  border: 1px solid rgba(var(--ov-rgb), 0.24) !important;
}

.ai-import-status.done {
  border: 1px solid var(--good, #166534) !important;
  color: var(--text-white) !important;
}

.ai-import-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-import-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-import-category-group h4 {
  font-family: var(--font-heading);
}

.ai-import-editable-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin-top: 6px; }
.ai-import-editable-fields label { display: grid; gap: 3px; color: var(--text-muted); font-size: 0.68rem; }
.ai-import-editable-fields input { min-width: 0; padding: 5px 7px; border: 1px solid var(--panel-border); border-radius: 6px; background: rgba(0, 0, 0, 0.18); color: var(--text); font: inherit; }
.ai-import-uncertainty { margin-top: 8px; color: var(--warn-text); font-size: 0.75rem; }

.ai-import-item {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px !important;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.ai-import-item.approved {
  border-left: 3px solid var(--good);
}

.ai-import-item.needs_review {
  border-left: 3px solid #fbbf24;
  background: rgba(251, 191, 36, 0.06);
}

.ai-import-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(var(--ov-rgb), 0.03);
}

.ai-import-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ai-import-action-divider {
  width: 1px;
  height: 24px;
  margin: 0 2px;
  background: var(--panel-border);
}

.ai-import-add-button {
  background: var(--good) !important;
  color: #07110b !important;
  font-weight: 700;
}

.ai-import-checkbox {
  display: flex;
  align-items: center;
  padding-top: 2px;
}

.ai-import-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.confidence-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.confidence-badge.high {
  background: rgba(16, 185, 129, 0.15);
  color: var(--good);
}

.confidence-badge.medium {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warn-text);
}

.confidence-badge.low {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.typing-dot-group {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.ai-import-dropzone p {
  margin: 0;
  color: var(--text);
}

/* Onboarding Modal */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.onboarding-modal {
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.14) !important;
  border-radius: 16px !important;
  padding: 34px 28px !important;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(var(--shadow-rgb), calc(0.95 * var(--shadow-k))) !important;
  color: var(--text);
}

.onboarding-header {
  text-align: center;
  margin-bottom: 24px;
}

.onboarding-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-white) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.onboarding-header p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.profile-questions-modal {
  max-width: 480px;
  padding: 34px 28px !important;
}

.profile-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.profile-progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(var(--ov-rgb), 0.04);
  border: 1px solid rgba(var(--ov-rgb), 0.06);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.profile-progress-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(var(--ov-rgb), 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-progress-step.active {
  background: var(--bg-raised);
  border-color: rgba(var(--ov-rgb), 0.2);
  color: var(--text-white);
  font-weight: 600;
}

.profile-progress-step.active span {
  background: linear-gradient(180deg, var(--surf-g) 0%, var(--surf-f) 100%);
  color: var(--text-white);
  box-shadow: none;
}

.profile-question-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-question-content label,
.profile-label {
  color: var(--text-white);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-question-content label span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.profile-question-content input[type="text"],
.profile-question-content input[type="number"],
.profile-question-content input:not([type]) {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-white);
  background: var(--bg) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.14) !important;
  border-radius: 10px !important;
  outline: none;
  transition: border-color 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.profile-question-content input:focus {
  border-color: rgba(var(--ov-rgb), 0.35) !important;
  background: var(--bg) !important;
  box-shadow: 0 0 0 3px rgba(52, 73, 110, 0.4) !important;
}

#profile-age {
  min-height: 52px;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  margin-top: 4px;
  max-width: 140px;
  margin-left: auto;
  margin-right: auto;
}

.profile-helper {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  margin: 4px 0 0;
}

.gender-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.gender-option {
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid rgba(var(--ov-rgb), 0.12);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
  display: flex;
  align-items: center;
}

.gender-option:hover {
  background: var(--bg-raised);
  border-color: rgba(var(--ov-rgb), 0.22);
  color: var(--text-white);
}

.gender-option.selected {
  background: linear-gradient(180deg, var(--surf-g) 0%, var(--surf-f) 100%) !important;
  border-color: rgba(var(--ov-rgb), 0.28) !important;
  color: var(--text-white) !important;
  box-shadow: none !important;
}

.profile-error {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(122, 47, 52, 0.2);
  border: 1px solid rgba(122, 47, 52, 0.6);
  color: var(--danger-text);
  font-size: 0.82rem;
  font-weight: 500;
}

.profile-question-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.profile-question-actions button {
  min-height: 42px;
  padding: 10px 21px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.profile-question-actions button:not(.ghost) {
  flex: 1;
  background: linear-gradient(180deg, var(--surf-g) 0%, var(--surf-f) 100%) !important;
  color: var(--text-white) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.22) !important;
  box-shadow: none !important;
  text-align: center;
}

.profile-question-actions button:not(.ghost):hover:not(:disabled) {
  background: linear-gradient(180deg, #354766 0%, #1e2a3e 100%) !important;
  border-color: rgba(var(--ov-rgb), 0.3) !important;
  transform: none !important;
}

.profile-question-actions button:not(.ghost):active:not(:disabled) {
  transform: translateY(1px) scale(0.98) !important;
}

.profile-question-actions button.ghost {
  background: var(--bg);
  color: var(--text-soft);
  border: 1px solid rgba(var(--ov-rgb), 0.12);
  min-width: 90px;
}

.profile-question-actions button.ghost:hover:not(:disabled) {
  background: var(--bg-raised);
  border-color: rgba(var(--ov-rgb), 0.2);
  color: var(--text-white);
}

.profile-question-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.onboarding-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 21px;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.onboarding-step .step-number {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(var(--ov-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.onboarding-step.active .step-number {
  background: linear-gradient(180deg, var(--surf-g) 0%, var(--surf-f) 100%);
  color: var(--text-white);
  border: 1px solid rgba(var(--ov-rgb), 0.22);
}

.onboarding-step.active {
  color: var(--text-white);
  font-weight: 600;
}

.onboarding-files {
  margin-top: 16px;
}

.onboarding-status {
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.onboarding-status.error {
  color: var(--danger-text);
}

.onboarding-results {
  text-align: center;
  margin-top: 16px;
}

.onboarding-results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.onboarding-badge {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid rgba(var(--ov-rgb), 0.14);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.onboarding-footer {
  margin-top: 16px;
  text-align: center;
  padding-top: 13px;
  border-top: 1px solid rgba(var(--ov-rgb), 0.08);
}

/* ===== ZAMAN ÇİZELGESİ (TIMELINE) ===== */
.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}

.timeline-header {
  margin-bottom: 32px;
}

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

.timeline-header-top h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-white) !important;
}

.timeline-header-top p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted) !important;
}

.timeline-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.timeline-zoom-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(var(--ov-rgb), 0.14) !important;
  background: var(--bg) !important;
  color: var(--text-white) !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.1s ease, background 0.1s ease;
}

.timeline-zoom-btn:hover {
  border-color: rgba(var(--ov-rgb), 0.28) !important;
  background: var(--bg-raised) !important;
}

.timeline-zoom-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted) !important;
  min-width: 36px;
  text-align: center;
}

.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-filter-chip {
  padding: 6px 13px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  background: var(--bg) !important;
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
  font-weight: 500;
  cursor: pointer;
  transition: none !important;
  animation: none !important;
}

.timeline-filter-chip:hover {
  background: var(--surf-b) !important;
  border-color: rgba(var(--ov-rgb), 0.22) !important;
  color: var(--text-white) !important;
}

.timeline-filter-chip.active {
  background: var(--bg-raised) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.28) !important;
  color: var(--text-white) !important;
  font-weight: 600 !important;
}

.timeline-body {
  position: relative;
}

.timeline-empty {
  text-align: center;
  padding: 55px 21px;
  color: var(--text-muted) !important;
  font-size: 0.9rem;
}

/* Devam Eden Tedaviler */
.timeline-ongoing {
  margin-bottom: 34px;
  padding-bottom: 21px;
  border-bottom: 1px solid rgba(var(--ov-rgb), 0.08) !important;
}

.timeline-ongoing-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 13px;
}

.timeline-ongoing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 13px;
}

.timeline-ongoing-card {
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.08) !important;
  border-radius: 8px !important;
  padding: 13px 21px !important;
  transition: border-color 0.1s ease, background 0.1s ease;
}

.timeline-ongoing-card:hover {
  background: var(--surf-b) !important;
  border-color: rgba(var(--ov-rgb), 0.18) !important;
}

/* Zaman Grupları */
.timeline-group {
  margin-bottom: 28px;
}

.timeline-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(var(--ov-rgb), 0.08) !important;
}

.timeline-group-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50%;
  background: #ffffff !important;
  flex-shrink: 0;
}

.timeline-group-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white) !important;
}

.timeline-group-count {
  font-size: 0.72rem;
  color: var(--text-muted) !important;
  background: var(--bg) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.08) !important;
  padding: 2px 8px;
  border-radius: 8px !important;
}

/* Timeline Items (Alternating Cards) */
.timeline-items {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.timeline-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50%;
  background: #ffffff !important;
  box-shadow: none !important;
  z-index: 2;
  margin-top: 6px;
}

.timeline-item:hover .timeline-dot {
  transform: none !important;
}

.timeline-card {
  flex: 1;
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.08) !important;
  border-radius: 8px !important;
  padding: 13px 21px !important;
  transition: border-color 0.1s ease, background 0.1s ease;
  cursor: default;
}

.timeline-card:hover {
  background: var(--surf-b) !important;
  border-color: rgba(var(--ov-rgb), 0.18) !important;
  transform: none !important;
}

.timeline-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.timeline-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px !important;
  border-radius: 8px !important;
  background: var(--bg) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  color: var(--text) !important;
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  white-space: nowrap;
  font-weight: 500;
}

.timeline-card-title {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: var(--text-white) !important;
  margin-bottom: 2px;
}

.timeline-card-subtitle {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  line-height: 1.4;
}

.timeline-card-detail {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(var(--ov-rgb), 0.06);
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 640px) {
  .timeline-container {
    padding: 16px 10px;
  }
  .timeline-header-top {
    flex-direction: column;
  }
  .timeline-ongoing-grid {
    grid-template-columns: 1fr;
  }
  .timeline-items {
    padding-left: 24px;
  }
  .timeline-dot {
    left: -18px;
    width: 10px;
    height: 10px;
  }
}

/* Drag reorder handle */
.timeline-reorder-handle {
  cursor: grab;
  color: var(--text-tertiary, #4b5563);
  font-size: 0.85rem;
  user-select: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.timeline-group-header:hover .timeline-reorder-handle,
.timeline-ongoing-header:hover .timeline-reorder-handle {
  opacity: 1;
}

.timeline-reorder-handle:active {
  cursor: grabbing;
}

/* Tooltip */
.timeline-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  background: rgba(3, 7, 18, 0.95);
  border: 1px solid rgba(var(--ov-rgb), 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 260px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(var(--shadow-rgb), calc(0.5 * var(--shadow-k)));
  animation: timelineTooltipIn 0.15s ease-out;
}

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

.timeline-tooltip-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-tooltip-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 2px;
}

.timeline-tooltip-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.timeline-tooltip-date {
  font-size: 0.7rem;
  color: var(--text-tertiary, #6b7280);
  margin-top: 4px;
}

.timeline-tooltip-detail {
  font-size: 0.72rem;
  color: var(--text-tertiary, #6b7280);
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(var(--ov-rgb), 0.06);
}

/* Text-Only Frameless Button Utility */
.btn-text, .btn-frameless, button.btn-text, button.btn-frameless {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--accent) !important;
  padding: 8px 14px;
  font-weight: 600;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s;
}

.btn-text:hover, .btn-frameless:hover, button.btn-text:hover, button.btn-frameless:hover {
  background: rgba(99, 102, 241, 0.08) !important;
  color: var(--accent) !important;
}

.btn-text:active, .btn-frameless:active, button.btn-text:active, button.btn-frameless:active {
  transform: scale(0.97) !important;
}

/* ==========================================================================
   Clerk Custom Auth Modal Styling (CellHealth Theme)
   ========================================================================== */
.cl-card, .clerk-custom-card {
  background: rgba(11, 17, 32, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  box-shadow: 0 25px 50px -12px rgba(var(--shadow-rgb), calc(0.8 * var(--shadow-k))), 0 0 30px rgba(16, 185, 129, 0.1) !important;
  border-radius: 24px !important;
}

.cl-headerTitle {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-white) !important;
}

.cl-headerSubtitle {
  font-family: var(--font-human) !important;
  color: var(--text-subtle) !important;
}

.cl-card, .clerk-custom-card {
  background: rgba(19, 23, 34, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  box-shadow: 0 25px 50px -12px rgba(var(--shadow-rgb), calc(0.8 * var(--shadow-k))), 0 0 30px rgba(44, 58, 87, 0.2) !important;
  border-radius: 24px !important;
}

.cl-formButtonPrimary, .clerk-custom-button {
  font-family: var(--font-heading) !important;
  background: linear-gradient(135deg, #2c3a57, #34496e) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  color: var(--text-white) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(44, 58, 87, 0.35) !important;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease !important;
}

.cl-formButtonPrimary:hover, .clerk-custom-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(52, 73, 110, 0.5) !important;
  opacity: 0.95 !important;
}

.cl-socialButtonsBlockButton, .clerk-social-button {
  font-family: var(--font-body) !important;
  background: rgba(var(--ov-rgb), 0.05) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  color: #f3f4f6 !important;
  border-radius: 12px !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

.cl-socialButtonsBlockButton:hover, .clerk-social-button:hover {
  background: rgba(var(--ov-rgb), 0.1) !important;
  border-color: rgba(52, 73, 110, 0.4) !important;
}

.cl-formFieldInput {
  font-family: var(--font-body) !important;
  background: rgba(19, 23, 34, 0.7) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.1) !important;
  color: var(--text-white) !important;
  border-radius: 10px !important;
}

.cl-formFieldInput:focus {
  border-color: #34496e !important;
  box-shadow: 0 0 0 2px rgba(52, 73, 110, 0.3) !important;
}

/* Hide Development Mode Warning Banner & Clean Footer */
[class*="developmentModeWarning"],
[class*="devModeWarning"],
.cl-internal-development-mode-warning,
.cl-internal-1dauvgg {
  display: none !important;
}

/* ==========================================================================
   Custom Native Auth Modal Styling (CellHealth Theme)
   ========================================================================== */
.custom-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--panel-rgb), 0.88);
  backdrop-filter: blur(20px);
  padding: 20px;
  animation: authOverlayFadeIn 0.16s ease-out;
}

@keyframes authOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.custom-auth-modal {
  width: 100%;
  max-width: 377px;
  background: rgba(var(--panel-rgb), 0.98);
  border: 1px solid rgba(var(--ov-rgb), 0.08);
  border-radius: 21px;
  box-shadow: 0 21px 34px -8px rgba(var(--shadow-rgb), calc(0.85 * var(--shadow-k)));
  padding: 34px 21px 21px;
  color: var(--text-white);
  font-family: var(--font-body, "Inter", sans-serif);
  box-sizing: border-box;
  animation: authModalPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.custom-auth-header {
  text-align: center;
  margin-bottom: 21px;
}

.custom-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
}

.custom-auth-logo-img {
  height: 34px;
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

.custom-auth-header h2 {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.34rem;
  color: var(--text-white);
  margin: 0;
  letter-spacing: -0.01em;
}

.custom-auth-error {
  background: rgba(122, 47, 52, 0.2);
  border: 1px solid rgba(122, 47, 52, 0.4);
  color: var(--danger-text);
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 13px;
  text-align: center;
}

.custom-auth-google-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 13px;
  min-height: 40px;
  width: 100%;
}

.custom-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 13px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-body, "Inter", sans-serif);
}

.custom-auth-divider::before,
.custom-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(var(--ov-rgb), 0.08);
}

.custom-auth-divider span {
  padding: 0 13px;
}

.custom-auth-email-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  min-height: 40px;
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.14) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  font-family: var(--font-body, "Inter", sans-serif) !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
  box-sizing: border-box;
  padding: 8px 13px;
}

.custom-auth-email-toggle-btn:hover {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.25) !important;
  color: var(--text-white) !important;
}

.custom-auth-email-toggle-btn svg {
  flex-shrink: 0;
  color: var(--text-muted);
  filter: grayscale(100%) !important;
}

.custom-auth-email-toggle-btn:hover svg {
  color: var(--text-white);
}

.custom-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-auth-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d1d5db;
}

.custom-auth-field input {
  background: rgba(19, 23, 34, 0.7);
  border: 1px solid rgba(var(--ov-rgb), 0.1);
  color: var(--text-white);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  outline: none;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.custom-auth-field input:focus {
  border-color: #34496e;
  box-shadow: 0 0 0 3px rgba(52, 73, 110, 0.3);
}

.custom-auth-submit-btn {
  background: linear-gradient(135deg, #2c3a57, #34496e);
  color: var(--text-white);
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(44, 58, 87, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  margin-top: 4px;
}

.custom-auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52, 73, 110, 0.5);
}

.custom-auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.custom-auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.auth-toggle-btn {
  background: transparent;
  border: none;
  color: #34496e;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 4px;
}

/* Medical Disclaimer Footer & Notice - Barış Design (Pure Dark Slate) */
.panel-footer-disclaimer {
  margin-top: 34px;
  margin-bottom: 21px;
  width: 100%;
}

.global-disclaimer-banner {
  background: var(--bg-panel) !important;
  border: 1px solid rgba(122, 47, 52, 0.5) !important;
  border-radius: 13px !important;
  padding: 13px 21px !important;
  color: var(--text) !important;
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  line-height: 1.5 !important;
}

.global-disclaimer-banner .disclaimer-icon {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  stroke: var(--text) !important;
}

.global-disclaimer-banner .disclaimer-text {
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: var(--text-soft) !important;
  letter-spacing: 0.01em;
}

.global-disclaimer-banner strong,
.global-disclaimer-banner b {
  color: var(--text-white) !important;
  font-weight: 700 !important;
}

/* Timeline Sekmesi: Tıbbi Uyarı Metnini 3'te 1 Boyutuna Küçültme (Barış Design & Typography) */
.app-frame.timeline-active .panel-footer-disclaimer {
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  padding: 0 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.app-frame.timeline-active .global-disclaimer-banner {
  padding: 3px 8px !important;
  gap: 6px !important;
  min-height: 20px !important;
  border-radius: 4px !important;
  background: rgba(var(--panel-rgb), 0.8) !important;
  border: 1px solid rgba(122, 47, 52, 0.25) !important;
  line-height: 1.2 !important;
  justify-content: center !important;
}

.app-frame.timeline-active .global-disclaimer-banner .disclaimer-icon {
  width: 10px !important;
  height: 10px !important;
  stroke: var(--text-muted) !important;
  opacity: 0.7 !important;
}

.app-frame.timeline-active .global-disclaimer-banner .disclaimer-text {
  font-family: var(--font-body, "Inter", sans-serif) !important;
  font-size: 0.62rem !important; /* 9.5px - 10px: Orijinal 0.92rem (~15px)'in 3'te 1 hacmi */
  font-weight: 400 !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.custom-auth-disclaimer {
  background: var(--bg-panel) !important;
  border: 1px solid rgba(122, 47, 52, 0.4) !important;
  border-radius: 8px !important;
  padding: 8px 13px !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-top: 13px !important;
  text-align: center !important;
  line-height: 1.4 !important;
}
/* Admin: restricted Pure Dark Slate workspace (Barış Design) */
.admin-shell { min-height: 100dvh; background: var(--bg) !important; color: var(--text); padding: 34px clamp(13px, 4vw, 55px) 55px; font-family: var(--font-body, "Inter", -apple-system, sans-serif); }
.admin-auth-shell { display: grid; place-items: center; }
.admin-login-card { width: min(100%, 420px); padding: 34px; background: var(--bg-panel); border: 1px solid rgba(var(--ov-rgb), 0.08); border-radius: 13px; box-shadow: 0 34px 89px rgba(var(--shadow-rgb), calc(0.9 * var(--shadow-k))); }
.admin-mark, .admin-kicker { color: var(--text-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-family: var(--font-heading, "Montserrat", sans-serif); }
.admin-login-card h1, .admin-header h1 { margin: 8px 0 4px; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.03em; color: var(--text-white); font-family: var(--font-heading, "Montserrat", sans-serif); font-style: italic; font-weight: 700; text-align: left; }
.admin-muted { color: var(--text-muted); line-height: 1.5; font-size: 13px; }
.admin-form { display: grid; gap: 13px; margin-top: 21px; }
.admin-form label { display: grid; gap: 6px; color: var(--text-soft); font-size: 13px; font-weight: 500; }
.admin-form input, .admin-form select, .admin-form textarea { min-height: 40px; padding: 8px 13px; color: var(--text-white); background: var(--bg); border: 1px solid rgba(var(--ov-rgb), 0.14); border-radius: 8px; outline: none; font: inherit; font-size: 13px; transition: border-color 0.1s ease; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: rgba(var(--ov-rgb), 0.34); }
.admin-primary-button, .admin-danger-button, .admin-quiet-button, .admin-delete-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; min-height: 36px; padding: 0 13px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; transition: background 0.1s ease, border-color 0.1s ease; }
.admin-primary-button { background-color: var(--accent-surface) !important; background-image: linear-gradient(180deg, rgba(13, 192, 223, 0.14) 0%, transparent 60%), linear-gradient(0deg, rgba(13, 192, 223, 0.08) 0%, transparent 60%), linear-gradient(90deg, rgba(13, 192, 223, 0.11) 0%, transparent 50%), linear-gradient(270deg, rgba(13, 192, 223, 0.11) 0%, transparent 50%) !important; border: 1px solid rgba(13, 192, 223, 0.20) !important; color: var(--on-accent) !important; font-family: var(--font-body, "Inter", sans-serif) !important; font-size: 12px; font-weight: 600; box-shadow: 0 4px 14px rgba(var(--shadow-rgb), calc(0.5 * var(--shadow-k))), inset 0 0 10px rgba(13, 192, 223, 0.11) !important; transition: transform 100ms cubic-bezier(0.23, 1, 0.32, 1), background-color 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease; }
.admin-primary-button:hover:not(:disabled) { background-color: #0a0e16 !important; border-color: rgba(13, 192, 223, 0.35) !important; color: var(--on-accent) !important; box-shadow: 0 6px 20px rgba(var(--shadow-rgb), calc(0.6 * var(--shadow-k))), inset 0 0 14px rgba(13, 192, 223, 0.17) !important; transform: translateY(-1px); }
.admin-primary-button:active:not(:disabled) { background-color: var(--surf-e) !important; transform: translateY(1px) scale(0.98); }
.admin-quiet-button { background: var(--bg-panel); color: var(--text); border-color: rgba(var(--ov-rgb), 0.12); }
.admin-quiet-button:hover:not(:disabled) { background: var(--bg-raised); border-color: rgba(var(--ov-rgb), 0.25); color: var(--text-white); }
.admin-danger-button, .admin-delete-button { background: var(--bg-panel); border-color: rgba(122, 47, 52, 0.5); color: var(--danger-text); }
.admin-danger-button:hover:not(:disabled), .admin-delete-button:hover:not(:disabled) { background: #7a2f34; color: var(--on-accent); border-color: #7a2f34; }
.admin-primary-button:disabled, .admin-danger-button:disabled, .admin-quiet-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 21px; max-width: 1600px; margin: 0 auto 34px; }
.admin-header-actions { display: flex; gap: 12px; align-items: center; }
.admin-session { color: var(--text-muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1600px; margin: 0 auto 24px; border: 1px solid rgba(var(--ov-rgb), 0.08); border-radius: 12px; overflow: hidden; background: var(--bg-panel); }
.admin-summary-grid div { padding: 18px 20px; border-right: 1px solid rgba(var(--ov-rgb), 0.08); }
.admin-summary-grid div:last-child { border-right: 0; }
.admin-summary-grid span { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 10px; }
.admin-summary-grid strong { font: 600 22px ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; color: var(--text-white); }
.admin-toolbar, .admin-table-wrap { max-width: 1600px; margin: 0 auto; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 16px; }
.admin-scope-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-scope-tabs button { background: transparent; color: var(--text-muted); border: 1px solid transparent; border-radius: 7px; padding: 10px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.admin-scope-tabs button.active { color: var(--on-accent); background: #0e1e24; border-color: rgba(13, 192, 223, 0.4); }
.admin-upload { display: flex; gap: 8px; align-items: center; }
.admin-file-button { max-width: 250px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 10px 12px; border: 1px dashed rgba(var(--ov-rgb), 0.2); border-radius: 7px; color: #aab3bc; font-size: 12px; cursor: pointer; }
.admin-file-button input { display: none; }
.admin-notice, .admin-banner { max-width: 1600px; margin: 0 auto 16px; padding: 12px 14px; border-radius: 8px; font-size: 13px; }
.admin-notice { color: #c6f1dc; background: var(--s-0b1a13); border: 1px solid #166534; }
.admin-error { color: var(--danger-text); }
.admin-banner { background: var(--s-2a1113); border: 1px solid #7a2f34; }
.admin-table-wrap { background: var(--bg-panel); border: 1px solid rgba(var(--ov-rgb), 0.08); border-radius: 12px; overflow: hidden; }
.admin-table-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 16px; }
.admin-table-head h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.03em; color: var(--text-white); }
.admin-table-scroll { overflow-x: auto; }
.admin-table-scroll table { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 12px; }
.admin-table-scroll th { color: var(--text-muted); text-align: left; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 12px 16px; border-top: 1px solid rgba(var(--ov-rgb), 0.08); border-bottom: 1px solid rgba(var(--ov-rgb), 0.08); white-space: nowrap; }
.admin-table-scroll td { padding: 14px 16px; color: var(--text-soft); border-bottom: 1px solid rgba(var(--ov-rgb), 0.05); vertical-align: top; white-space: nowrap; }
.admin-table-scroll tr:hover td { background: var(--s-0e1218); }
.admin-table-scroll small { display: block; margin-top: 4px; color: var(--text-muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-source, .admin-status { display: inline-block; padding: 5px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.admin-source.synthetic { color: var(--info-text); background: var(--s-0e1e30); border: 1px solid rgba(59, 130, 246, 0.3); }
.admin-source.real { color: var(--good-text); background: var(--s-0d2318); border: 1px solid rgba(34, 197, 94, 0.3); }
.admin-status.ok { color: var(--good-text); background: var(--s-0d2318); border: 1px solid rgba(34, 197, 94, 0.3); }
.admin-status.bad { color: var(--danger-text); background: var(--s-2a1113); border: 1px solid rgba(122, 47, 52, 0.4); }
.admin-status.neutral { color: var(--text-soft); background: var(--bg-raised); }
.admin-empty { text-align: center; padding: 55px !important; color: var(--text-muted) !important; }
.admin-record-details summary { color: var(--info-text); cursor: pointer; font-weight: 700; }
.admin-record-details pre { max-width: 420px; max-height: 260px; overflow: auto; margin: 8px 0 0; padding: 10px; color: var(--text-soft); background: var(--bg); border: 1px solid rgba(var(--ov-rgb), 0.08); border-radius: 6px; white-space: pre-wrap; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); font-family: var(--font-body); }
.admin-confirm-modal { width: min(100%, 440px); padding: 26px; background: var(--bg-panel); border: 1px solid rgba(var(--ov-rgb), 0.12); border-radius: 12px; box-shadow: 0 30px 80px rgba(var(--shadow-rgb), calc(.9 * var(--shadow-k))); }
.admin-confirm-modal h2 { margin: 6px 0 12px; font-size: 24px; letter-spacing: -.04em; color: var(--text-white); }
.admin-confirm-modal p { color: #adb5bd; line-height: 1.55; }
.admin-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
@media (max-width: 800px) { .admin-header, .admin-toolbar { align-items: flex-start; flex-direction: column; } .admin-summary-grid { grid-template-columns: repeat(2, 1fr); } .admin-summary-grid div:nth-child(2) { border-right: 0; } .admin-summary-grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(var(--ov-rgb), 0.08); } .admin-upload { width: 100%; } .admin-file-button { flex: 1; } }

/* ==========================================================================
   Topbar Right Actions - Barış Design (Pure Dark Slate & Fibonacci 34px)
   ========================================================================== */
.topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.topbar-right .lang-toggle-container {
  display: inline-flex !important;
  align-items: center !important;
}

.topbar-right .lang-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  background: var(--bg-panel) !important;
  color: var(--text-white) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease !important;
}

.topbar-right .lang-toggle-btn:hover,
.topbar-right .lang-toggle-container.is-open .lang-toggle-btn {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.24) !important;
  color: var(--text-white) !important;
}

.topbar-right .chat-launch-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(13, 192, 223, 0.20) !important;
  background-color: var(--accent-surface) !important;
  background-image: 
    linear-gradient(180deg, rgba(13, 192, 223, 0.14) 0%, transparent 60%),
    linear-gradient(0deg,   rgba(13, 192, 223, 0.08) 0%, transparent 60%),
    linear-gradient(90deg,  rgba(13, 192, 223, 0.11) 0%, transparent 50%),
    linear-gradient(270deg, rgba(13, 192, 223, 0.11) 0%, transparent 50%) !important;
  color: var(--on-accent) !important;
  font-family: var(--font-body, "Inter", sans-serif) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(var(--shadow-rgb), calc(0.5 * var(--shadow-k))), inset 0 0 10px rgba(13, 192, 223, 0.11) !important;
  transition: transform 100ms cubic-bezier(0.23, 1, 0.32, 1), background-color 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease !important;
}

.topbar-right .chat-launch-link .chat-launch-icon {
  width: 15px !important;
  height: 15px !important;
  object-fit: contain !important;
  filter: grayscale(100%) !important;
  opacity: 0.9 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  pointer-events: none !important;
  transition: opacity 0.1s ease, transform 0.1s ease !important;
}

.topbar-right .chat-launch-link:hover {
  background-color: #0a0e16 !important;
  border-color: rgba(13, 192, 223, 0.35) !important;
  color: var(--on-accent) !important;
  box-shadow: 0 6px 20px rgba(var(--shadow-rgb), calc(0.6 * var(--shadow-k))), inset 0 0 14px rgba(13, 192, 223, 0.17) !important;
  transform: translateY(-1px) !important;
}

.topbar-right .chat-launch-link:hover .chat-launch-icon {
  opacity: 1 !important;
}

.topbar-right .chat-launch-link:active {
  background-color: var(--surf-e) !important;
  transform: translateY(1px) scale(0.98) !important;
}

.topbar-right .user-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  background: var(--bg-panel) !important;
  box-sizing: border-box !important;
}

.topbar-right .user-badge-email {
  font-size: 0.85rem !important;
  color: var(--text) !important;
  font-weight: 500 !important;
}

.topbar-right .user-badge-logout {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: color 0.1s ease !important;
}

.topbar-right .user-badge-logout:hover {
  color: var(--text-white) !important;
}

.topbar-right .settings-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  background: var(--bg-panel) !important;
  color: var(--text) !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease !important;
}

.topbar-right .settings-icon-btn:hover,
.topbar-right .settings-icon-btn[aria-expanded="true"] {
  background: var(--bg-raised) !important;
  border-color: rgba(var(--ov-rgb), 0.24) !important;
  color: var(--text-white) !important;
}

.topbar-right .settings-icon-btn svg {
  width: 16px !important;
  height: 16px !important;
}

/* Language Toggle UI */
.lang-toggle-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1000;
}

.lang-toggle-container.is-open {
  z-index: 100000;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px !important;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(var(--ov-rgb), 0.1));
  background: rgba(var(--ov-rgb), 0.05);
  color: var(--text, var(--text));
  font-family: var(--font-body, inherit);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}

.lang-toggle-btn:hover,
.lang-toggle-btn:focus-visible,
.lang-toggle-container.is-open .lang-toggle-btn {
  background: rgba(var(--ov-rgb), 0.12);
  border-color: var(--accent-bright, rgba(var(--ov-rgb), 0.2));
  color: var(--text-white, var(--text-white));
}

.lang-toggle-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

.lang-code-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted, var(--text-muted));
  transition: color 0.15s ease;
}

.lang-toggle-btn:hover .lang-code-text,
.lang-toggle-container.is-open .lang-code-text {
  color: var(--text-white, var(--text-white));
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 144px;
  background: var(--bg-darker, var(--s-0d1117));
  border: 1px solid var(--panel-border, rgba(var(--ov-rgb), 0.12));
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(var(--shadow-rgb), calc(0.6 * var(--shadow-k))), 0 0 0 1px rgba(var(--ov-rgb), 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: dropdownPop 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Chat sidebar footer positioning: open upwards and to the right */
.chat-sidebar .lang-dropdown-menu {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: auto;
}

/* Header & nav stacking contexts to prevent being covered */
header.top,
.top,
.topbar,
.corporate-nav,
.admin-header,
.chat-header,
nav.main-nav {
  position: relative;
  z-index: 1000;
}

.topbar-right,
.admin-header-actions,
.corporate-nav-actions,
.chat-header-actions {
  position: relative;
  z-index: 1001;
}

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

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted, var(--text-subtle));
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
  text-align: left;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text, var(--text-white));
  outline: none;
}

.lang-option.active {
  background: rgba(99, 102, 241, 0.25);
  color: var(--text-white, var(--text-white));
}

.lang-flag,
.settings-lang-flag,
.chat-popover-lang-flag {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;
  filter: grayscale(100%) !important;
  -webkit-filter: grayscale(100%) !important;
}

.lang-label {
  flex: 1;
  white-space: nowrap;
}

.lang-check {
  color: var(--accent-bright, #34496e);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   Topbar Brand & User Profile Group - Barış Design (Pure Dark Slate & Fibonacci)
   ========================================================================== */
.topbar-brand-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 13px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1rem !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.topbar-brand-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  line-height: 0 !important;
  transition: none !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.topbar-emblem {
  height: 30px !important;
  max-height: 34px !important;
  width: auto !important;
  aspect-ratio: 1303 / 1538 !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.topbar-logo {
  height: 26px !important;
  max-height: 30px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.brand-logo,
.topbar-logo,
.chat-sidebar-brand-img,
.about-brand-img,
.corporate-brand-img,
.research-brand-img,
.page-loader__logo,
.custom-auth-logo-img,
.topbar-brand-link img,
.corporate-brand img,
.brand img,
.admin-mark img {
  filter: none !important;
  -webkit-filter: none !important;
}

.brand-logo,
.brand img {
  height: 55px !important;
  max-height: 55px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.topbar-logo {
  height: 34px !important;
  max-height: 38px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.topbar-user-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 13px !important;
  border-radius: 21px !important;
  background: rgba(var(--ov-rgb), 0.04) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.08) !important;
  line-height: 1.4 !important;
  transition: none !important;
}

.topbar-user-name {
  color: var(--text-white) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.topbar-user-sep {
  color: var(--text-muted) !important;
  opacity: 0.5 !important;
  font-weight: 400 !important;
  user-select: none !important;
}

.topbar-user-meta {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}

/* ==========================================================================
   Topbar Module Selector (Dikey Açılır Modül Seçici) - Barış Design (Pure Dark Slate & Fibonacci)
   ========================================================================== */
.topbar-sep-vertical {
  width: 1px !important;
  height: 21px !important;
  background: rgba(var(--ov-rgb), 0.12) !important;
  margin: 0 4px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.topbar-module-picker {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.topbar-module-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 34px !important;
  padding: 0 13px !important;
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  border-radius: 8px !important;
  color: var(--text-white) !important;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Inter", sans-serif) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: none !important;
  outline: none !important;
  user-select: none !important;
  white-space: nowrap !important;
}

.topbar-module-trigger:hover,
.topbar-module-trigger.is-open {
  background: var(--surf-a) !important;
  border-color: rgba(13, 192, 223, 0.40) !important;
  box-shadow: inset 0 0 8px rgba(13, 192, 223, 0.12) !important;
}

.topbar-module-trigger-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--accent-text) !important;
  flex-shrink: 0 !important;
}

.topbar-module-trigger-icon svg {
  width: 15px !important;
  height: 15px !important;
  display: block !important;
  filter: grayscale(100%) !important;
}

.topbar-module-trigger-label {
  color: var(--text-white) !important;
  letter-spacing: -0.01em !important;
}

.topbar-module-chevron {
  color: var(--text-muted) !important;
  margin-left: 2px !important;
  transition: transform 0.12s ease !important;
  flex-shrink: 0 !important;
}

.topbar-module-trigger.is-open .topbar-module-chevron {
  transform: rotate(180deg) !important;
  color: var(--accent-text) !important;
}

.topbar-module-dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  min-width: 280px !important;
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.14) !important;
  border-radius: 13px !important;
  box-shadow: 0 13px 34px rgba(var(--shadow-rgb), calc(0.75 * var(--shadow-k))), 0 0 0 1px rgba(13, 192, 223, 0.12) !important;
  padding: 8px !important;
  z-index: 10050 !important;
  backdrop-filter: blur(21px) !important;
  animation: none !important;
  transition: none !important;
}

.topbar-module-dropdown-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 8px 8px 8px !important;
  border-bottom: 1px solid rgba(var(--ov-rgb), 0.06) !important;
  margin-bottom: 6px !important;
}

.topbar-module-dropdown-title {
  font-family: var(--font-heading, "Montserrat", sans-serif) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--text-muted) !important;
}

.topbar-module-dropdown-hint {
  font-size: 0.70rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  color: var(--text-muted) !important;
  opacity: 0.7 !important;
}

.topbar-module-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.topbar-module-item {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text) !important;
  cursor: pointer !important;
  text-align: left !important;
  width: 100% !important;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Inter", sans-serif) !important;
  transition: none !important;
  outline: none !important;
}

.topbar-module-item:hover {
  background: rgba(var(--ov-rgb), 0.06) !important;
  border-color: rgba(var(--ov-rgb), 0.08) !important;
  color: var(--text-white) !important;
}

.topbar-module-item.is-active {
  background: rgba(13, 192, 223, 0.09) !important;
  border-color: rgba(13, 192, 223, 0.30) !important;
  box-shadow: inset 0 0 10px rgba(13, 192, 223, 0.11) !important;
  color: var(--text-white) !important;
}

.topbar-module-item-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  background: rgba(var(--ov-rgb), 0.04) !important;
  color: var(--text-muted) !important;
  flex-shrink: 0 !important;
}

.topbar-module-item-icon svg {
  filter: grayscale(100%) !important;
}

.topbar-module-item.is-active .topbar-module-item-icon {
  background: rgba(13, 192, 223, 0.16) !important;
  color: var(--accent-text) !important;
}

.topbar-module-item-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.topbar-module-item-label {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--text-white) !important;
  line-height: 1.2 !important;
}

.topbar-module-item-desc {
  font-size: 0.72rem !important;
  color: var(--text-muted) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.topbar-module-item.is-active .topbar-module-item-desc {
  color: #a0aec0 !important;
}

.topbar-module-item-meta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.topbar-module-item-key {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  background: rgba(var(--ov-rgb), 0.05) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.10) !important;
  font-size: 0.65rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  color: var(--text-muted) !important;
}

.topbar-module-item-check {
  color: var(--accent-text) !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  .topbar-sep-vertical {
    display: none !important;
  }
  .topbar-module-trigger-label {
    max-width: 110px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 480px) {
  .topbar-module-trigger {
    padding: 0 8px !important;
  }
  .topbar-module-trigger-label {
    display: none !important;
  }
  .topbar-module-dropdown {
    min-width: 250px !important;
    left: -20px !important;
  }
}

.ai-import-process-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 21px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(var(--ov-rgb), 0.14) !important;
  background: linear-gradient(180deg, var(--surf-g) 0%, var(--surf-f) 100%) !important;
  color: var(--text-white) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(var(--shadow-rgb), calc(0.35 * var(--shadow-k))), inset 0 1px 0 rgba(var(--ov-rgb), 0.15) !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
}

.ai-import-process-btn .ai-import-btn-icon {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  filter: grayscale(100%) !important;
  opacity: 0.9 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  pointer-events: none !important;
  transition: opacity 0.1s ease, transform 0.1s ease !important;
}

.ai-import-process-btn:hover {
  background: linear-gradient(180deg, #354766 0%, #1e2a3e 100%) !important;
  border-color: rgba(var(--ov-rgb), 0.3) !important;
  color: var(--text-white) !important;
  box-shadow: 0 6px 18px rgba(var(--shadow-rgb), calc(0.45 * var(--shadow-k))), inset 0 1px 0 rgba(var(--ov-rgb), 0.25) !important;
  transform: translateY(-1px) !important;
}

.ai-import-process-btn:hover .ai-import-btn-icon {
  opacity: 1 !important;
}

.ai-import-process-btn:active {
  transform: translateY(1px) scale(0.98) !important;
}

.ai-import-process-btn:disabled {
  opacity: 0.6 !important;
  transform: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* Upgrade Button (Barış Design & Typography Standardı) */
.topbar-upgrade-btn,
.chat-header-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid rgba(var(--ov-rgb), 0.18);
  color: var(--text-white);
  padding: 6px 13px;
  border-radius: 8px;
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s ease, border-color 0.1s ease, transform 0.1s ease;
  white-space: nowrap;
}

.topbar-upgrade-btn:hover,
.chat-header-upgrade-btn:hover {
  background: rgba(52, 73, 110, 0.25);
  border-color: rgba(var(--ov-rgb), 0.35);
  color: var(--text-white);
  transform: translateY(-1px);
}

.topbar-upgrade-btn:active,
.chat-header-upgrade-btn:active {
  transform: translateY(1px) scale(0.98);
}

.topbar-upgrade-btn svg,
.chat-header-upgrade-btn svg {
  filter: grayscale(100%) brightness(1.1) !important;
}



/* ==========================================================================
   Barış Design: Kanonik Dış Web Sitesi Üst Bar (Scoped & Isolated)
   (Pure Dark Slate + Fibonacci + Raycast Standartları)
   NOT: İç Sağlık Paneli (.tabbar, .topbar) stilleri ile asla karışmaz!
   ========================================================================== */

.site-header-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: env(safe-area-inset-top, 0px) 0 0 0 !important;
  box-sizing: border-box !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(var(--panel-rgb), 0.85) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(var(--ov-rgb), 0.08) !important;
}

.site-navbar,
header.top,
.corporate-nav,
.about-nav,
.research-nav {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 13px 21px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  position: relative !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;
}

/* 1. Left (Brand / Logo) */
.brand,
.site-brand-container,
.corporate-brand,
.about-brand,
.research-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}

.site-brand-link,
.brand-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.site-brand-emblem,
.brand-emblem {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  aspect-ratio: 1303 / 1538 !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.home-brand-container .site-brand-emblem,
body[data-bg-id="landing-hero"] .site-brand-emblem {
  height: 40px !important;
  max-height: 40px !important;
}

.brand-logo,
.site-brand-img,
.corporate-brand-img,
.about-brand-img,
.research-brand-img {
  height: 34px !important;
  max-height: 40px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Sadece Ana Sayfada Logo */
.home-brand-container .site-brand-img,
.home-brand-img,
body[data-bg-id="landing-hero"] .site-brand-img,
body[data-bg-id="landing-hero"] .brand-logo {
  height: 34px !important;
  max-height: 40px !important;
  width: auto !important;
}

.home-brand-container,
body[data-bg-id="landing-hero"] .site-brand-container,
body[data-bg-id="landing-hero"] .brand {
  margin: 0 !important;
}

/* 2. Right Nav Cluster (Links + Actions tightly grouped) */
.main-nav-cluster,
.site-nav-cluster {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* Center: Nav Links - Centered in 3-point grid (Barış Design) */
.site-nav-links,
nav.main-nav-links,
.main-nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  gap: clamp(4px, 0.45vw, 6px) !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  flex: 0 1 auto !important;
  margin: 0 auto !important;
}

/* Action Buttons & Language */
.site-nav-actions,
.main-nav-actions,
.corporate-nav-actions,
.about-nav-actions,
.research-nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 1001 !important;
}

/* Standard Nav Links (Strictly Scoped & Compact) */
.main-nav-links a,
.site-nav-links a,
.site-nav-link,
.corporate-nav-actions a:not(.nav-chat):not(.btn-nav-primary),
.about-nav-actions a:not(.nav-chat):not(.btn-nav-primary),
.research-nav-actions a:not(.nav-chat):not(.btn-nav-primary) {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif) !important;
  font-weight: 500 !important;
  font-size: clamp(0.82rem, 0.88vw, 0.88rem) !important;
  letter-spacing: 0.01em !important;
  padding: 5px clamp(5px, 0.55vw, 8px) !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  white-space: nowrap !important;
  transition: color 0.1s ease, background 0.1s ease, border-color 0.1s ease !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
}
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  white-space: nowrap !important;
  transition: color 0.1s ease, background 0.1s ease, border-color 0.1s ease !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
}

.main-nav-links a:hover,
.site-nav-links a:hover,
.site-nav-links a.active,
.site-nav-link:hover,
.site-nav-link.active,
.corporate-nav-actions a:not(.nav-chat):not(.btn-nav-primary):hover,
.about-nav-actions a:not(.nav-chat):not(.btn-nav-primary):hover,
.research-nav-actions a:not(.nav-chat):not(.btn-nav-primary):hover {
  color: var(--text-white) !important;
  background: rgba(var(--ov-rgb), 0.05) !important;
  border-color: rgba(var(--ov-rgb), 0.08) !important;
}

/* Baris Design: Celtt Score Refined Nav Item */
.site-nav-link.site-nav-link-score,
.site-nav-link[data-route-key="/celtt-score"] {
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  color: var(--text-muted) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.site-nav-link.site-nav-link-score:hover,
.site-nav-link[data-route-key="/celtt-score"]:hover,
.site-nav-link.site-nav-link-score.active,
.site-nav-link[data-route-key="/celtt-score"].active {
  color: var(--text-white) !important;
  background: rgba(var(--ov-rgb), 0.05) !important;
  border-color: rgba(var(--ov-rgb), 0.08) !important;
}

.site-nav-score-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #5a78a6 !important;
  display: inline-block !important;
  margin-right: 6px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 5px rgba(90, 120, 166, 0.6) !important;
  transition: background-color 0.1s ease, box-shadow 0.1s ease, transform 0.1s ease !important;
  vertical-align: middle !important;
}

.site-nav-link.site-nav-link-score:hover .site-nav-score-dot,
.site-nav-link.site-nav-link-score.active .site-nav-score-dot,
.site-nav-link[data-route-key="/celtt-score"]:hover .site-nav-score-dot,
.site-nav-link[data-route-key="/celtt-score"].active .site-nav-score-dot {
  background: #ffffff !important;
  box-shadow: 0 0 8px rgba(var(--ov-rgb), 0.95) !important;
  transform: scale(1.15) !important;
}

/* AI Chat Button (38px Standard) */
.nav-chat,
.site-btn-chat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 11px !important;
  border-radius: 8px !important;
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  background: rgba(var(--ov-rgb), 0.04) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background 0.1s ease, border-color 0.1s ease, color 0.1s ease !important;
}

.nav-chat:hover,
.site-btn-chat:hover {
  background: rgba(var(--ov-rgb), 0.08) !important;
  border-color: rgba(var(--ov-rgb), 0.22) !important;
  color: var(--text-white) !important;
}

.nav-chat:active,
.site-btn-chat:active {
  transform: scale(0.97) !important;
}

/* Panel Login Button (Navbar - 38px Standard) */
.nav-login,
.site-btn-panel,
.btn-nav-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--on-accent) !important;
  background-color: var(--accent-surface) !important;
  background-image: 
    linear-gradient(180deg, rgba(13, 192, 223, 0.14) 0%, transparent 60%),
    linear-gradient(0deg,   rgba(13, 192, 223, 0.08) 0%, transparent 60%),
    linear-gradient(90deg,  rgba(13, 192, 223, 0.11) 0%, transparent 50%),
    linear-gradient(270deg, rgba(13, 192, 223, 0.11) 0%, transparent 50%) !important;
  border: 1px solid rgba(13, 192, 223, 0.20) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 14px rgba(var(--shadow-rgb), calc(0.5 * var(--shadow-k))), inset 0 0 10px rgba(13, 192, 223, 0.11) !important;
  cursor: pointer !important;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background-color 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease, color 0.1s ease !important;
}

.nav-login:hover,
.site-btn-panel:hover,
.btn-nav-primary:hover {
  background-color: #0a0e16 !important;
  border-color: rgba(13, 192, 223, 0.35) !important;
  box-shadow: 0 6px 20px rgba(var(--shadow-rgb), calc(0.6 * var(--shadow-k))), inset 0 0 14px rgba(13, 192, 223, 0.17) !important;
  color: var(--on-accent) !important;
}

.nav-login:active,
.site-btn-panel:active,
.btn-nav-primary:active {
  transform: scale(0.97) !important;
}

/* Grayscale Monochrome Icons */
.btn-ai-icon,
.btn-panel-icon,
.site-btn-icon {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  filter: grayscale(100%) brightness(1.15) !important;
  -webkit-filter: grayscale(100%) brightness(1.15) !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

/* Navbar Scoped Language Toggle Button (38px height - Matched) */
.site-nav-actions .lang-toggle-btn,
.main-nav-actions .lang-toggle-btn,
.corporate-nav-actions .lang-toggle-btn,
.about-nav-actions .lang-toggle-btn,
.research-nav-actions .lang-toggle-btn {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.80rem !important;
  font-weight: 600 !important;
  gap: 6px !important;
}

.site-nav-actions .lang-toggle-btn svg,
.main-nav-actions .lang-toggle-btn svg,
.corporate-nav-actions .lang-toggle-btn svg,
.about-nav-actions .lang-toggle-btn svg,
.research-nav-actions .lang-toggle-btn svg {
  width: 16px !important;
  height: 16px !important;
}

/* Hamburger Toggle Button */
.site-mobile-toggle,
.mobile-nav-toggle {
  display: none !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  background: var(--bg-panel) !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  z-index: 1002 !important;
  transition: transform 100ms cubic-bezier(0.23, 1, 0.32, 1), background 0.1s ease, border-color 0.1s ease !important;
}

.site-mobile-toggle:active,
.mobile-nav-toggle:active {
  transform: scale(0.92) !important;
}

.site-mobile-bar,
.mobile-nav-bar {
  width: 16px !important;
  height: 2px !important;
  background: var(--text-white) !important;
  border-radius: 1px !important;
  transition: transform 0.1s ease, opacity 0.1s ease !important;
}

/* Mobile Drawer Backdrop */
.site-mobile-backdrop,
.mobile-nav-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 2000 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1), visibility 220ms ease !important;
}

.site-mobile-backdrop.is-open,
.mobile-nav-backdrop.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Mobile Drawer */
.site-mobile-drawer,
.mobile-nav-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(320px, 85vw) !important;
  background: var(--bg-panel) !important;
  border-left: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  box-shadow: -8px 0 32px rgba(var(--shadow-rgb), calc(0.85 * var(--shadow-k))) !important;
  z-index: 2001 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 21px 18px !important;
  box-sizing: border-box !important;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), visibility 220ms !important;
}

.site-mobile-drawer.is-open,
.mobile-nav-drawer.is-open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.site-mobile-drawer-header,
.mobile-nav-drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 13px !important;
  border-bottom: 1px solid rgba(var(--ov-rgb), 0.08) !important;
}

.site-mobile-close,
.mobile-nav-close {
  background: transparent !important;
  border: 1px solid rgba(var(--ov-rgb), 0.12) !important;
  color: var(--text-white) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background 0.1s ease, border-color 0.1s ease !important;
}

.site-mobile-close:hover,
.mobile-nav-close:hover {
  background: rgba(var(--ov-rgb), 0.08) !important;
  border-color: rgba(var(--ov-rgb), 0.24) !important;
}

.site-mobile-close:active,
.mobile-nav-close:active {
  transform: scale(0.92) !important;
}

.site-mobile-nav-list,
.mobile-nav-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 21px 0 !important;
  flex-grow: 1 !important;
  overflow-y: auto !important;
}

.site-mobile-nav-link,
.mobile-nav-drawer a.mobile-link {
  display: block !important;
  padding: 10px 13px !important;
  color: var(--text) !important;
  text-decoration: none !important;
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: rgba(var(--ov-rgb), 0.02) !important;
}

.site-mobile-nav-link:hover,
.site-mobile-nav-link.active,
.mobile-nav-drawer a.mobile-link:hover {
  color: var(--text-white) !important;
  background: rgba(var(--ov-rgb), 0.06) !important;
  border-color: rgba(var(--ov-rgb), 0.1) !important;
}

.site-mobile-drawer-footer,
.mobile-nav-drawer-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding-top: 13px !important;
  border-top: 1px solid rgba(var(--ov-rgb), 0.08) !important;
}

.site-btn-mobile-full {
  width: 100% !important;
  justify-content: center !important;
  height: 38px !important;
}

/* Intermediate Desktop & Laptop Screens (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .site-navbar,
  header.top,
  .corporate-nav,
  .about-nav,
  .research-nav {
    padding: 10px 13px !important;
  }

  .site-nav-links,
  nav.main-nav-links,
  .main-nav-links {
    gap: 3px !important;
  }

  .main-nav-links a,
  .site-nav-links a,
  .site-nav-link {
    padding: 5px 6px !important;
    font-size: 0.80rem !important;
  }

  .site-nav-actions {
    gap: 6px !important;
  }

  .nav-chat,
  .site-btn-chat {
    padding: 0 8px !important;
    font-size: 0.78rem !important;
  }

  .nav-login,
  .site-btn-panel,
  .btn-nav-primary {
    padding: 0 9px !important;
    font-size: 0.78rem !important;
  }

  .site-nav-actions .lang-toggle-btn {
    padding: 0 7px !important;
    font-size: 0.76rem !important;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .site-navbar,
  header.top,
  .corporate-nav,
  .about-nav,
  .research-nav {
    padding: 8px 13px !important;
  }

  .site-nav-links,
  nav.main-nav-links,
  .main-nav-links {
    gap: 2px !important;
  }

  .main-nav-links a,
  .site-nav-links a,
  .site-nav-link {
    padding: 4px 5px !important;
    font-size: 0.77rem !important;
  }

  .site-nav-actions {
    gap: 5px !important;
  }

  .nav-chat,
  .site-btn-chat {
    padding: 0 8px !important;
    font-size: 0.76rem !important;
  }

  .nav-login,
  .site-btn-panel,
  .btn-nav-primary {
    padding: 0 8px !important;
    font-size: 0.76rem !important;
  }

  .site-nav-actions .lang-toggle-btn {
    padding: 0 6px !important;
    font-size: 0.74rem !important;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-chat span,
  .site-btn-chat span {
    display: none !important;
  }
  .nav-chat,
  .site-btn-chat {
    padding: 0 10px !important;
    min-width: 38px !important;
    justify-content: center !important;
  }
}

/* Responsive Rules: Tablets and Mobile Screens (<= 1024px) */
@media (max-width: 1024px) {
  .site-header-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: env(safe-area-inset-top, 0px) 0 0 0 !important;
    margin: 0 !important;
    z-index: 1000 !important;
  }

  .site-navbar,
  header.top,
  .corporate-nav,
  .about-nav,
  .research-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    padding: 8px 13px !important;
  }

  .site-nav-links,
  nav.main-nav > a:not(.nav-chat):not(.nav-login):not(.btn-nav-primary),
  nav:not(.panel-chat-switch) > a:not(.nav-chat):not(.nav-login):not(.btn-nav-primary),
  .corporate-nav-actions > a:not(.nav-chat):not(.btn-nav-primary),
  .about-nav-actions > a:not(.nav-chat):not(.btn-nav-primary),
  .research-nav-actions > a:not(.nav-chat):not(.btn-nav-primary) {
    display: none !important;
  }

  .site-mobile-toggle,
  .mobile-nav-toggle {
    display: inline-flex !important;
  }

  .site-nav-actions {
    gap: 6px !important;
  }
}

/* Pazarlama üst barı 9 bağlantı (2026-12-01, Sağlık Ajanı eklendi).
   Ölçüm (TR, en uzun): 1025px'te 144px, 1280px'te ~100px taşma → 1025–1280 çekmeceye geçer.
   ≥1281: logo 168px / aksiyonlar 276–376px eşit değil; eşit yan kolon ~200px israf ettiği için orta kolon esnek. */
@media (min-width: 1025px) and (max-width: 1280px) {
  .site-navbar {
    display: flex !important;
    justify-content: space-between !important;
    grid-template-columns: none !important;
    padding: 8px 13px !important;
  }

  .site-navbar .site-nav-links {
    display: none !important;
  }

  .site-navbar .site-mobile-toggle {
    display: inline-flex !important;
  }
}

@media (min-width: 1281px) {
  .site-navbar {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    column-gap: 13px !important;
  }
}

/* ≥1441: font 0.88rem'e büyüyünce (1600px+) nav 1400px'te sabit kaldığı için 31px taşıyordu */
@media (min-width: 1441px) {
  .site-navbar .site-nav-link {
    font-size: clamp(0.80rem, 0.88vw, 0.84rem) !important;
    padding: 5px 6px !important;
  }
}

@media (min-width: 1281px) and (max-width: 1440px) {
  .site-navbar .site-nav-links {
    gap: 3px !important;
  }

  .site-navbar .site-nav-link {
    padding: 5px 6px !important;
    font-size: 0.80rem !important;
  }

  .site-navbar .site-btn-chat span {
    display: none !important;
  }

  .site-navbar .site-btn-chat {
    padding: 0 10px !important;
    min-width: 38px !important;
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .nav-chat span,
  .site-btn-chat span {
    display: none !important;
  }

  .nav-chat,
  .site-btn-chat {
    padding: 0 10px !important;
    min-width: 38px !important;
    justify-content: center !important;
  }

  .nav-login,
  .site-btn-panel,
  .btn-nav-primary {
    padding: 0 10px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 540px) {
  .nav-login span,
  .site-btn-panel span,
  .btn-nav-primary span {
    display: none !important;
  }

  .nav-login,
  .site-btn-panel,
  .btn-nav-primary {
    padding: 0 10px !important;
    min-width: 38px !important;
    justify-content: center !important;
  }

  .site-nav-actions .lang-toggle-btn {
    padding: 0 8px !important;
  }
}

/* ≤420px: aksiyonlar (5 öğe) + 168px logo sığmıyor; 375px'te hamburger 31px ekran dışındaydı (2026-12-01).
   Yazı logosu gizlenir, amblem kalır. */
@media (max-width: 420px) {
  .site-navbar .site-brand-container .site-brand-img {
    display: none !important;
  }
}

/* ==========================================================================
   Baris Design - Canonical FAQ & Accordion System (Pure Dark Slate Standard)
   ========================================================================== */
.faq-accordion-item {
  border: 1px solid rgba(var(--ov-rgb), 0.08);
  border-radius: 13px;
  background: var(--panel, var(--bg-panel));
  margin-bottom: 13px;
  overflow: hidden;
  transition: border-color 0.1s ease, background-color 0.1s ease;
}

.faq-accordion-item:hover {
  border-color: rgba(var(--ov-rgb), 0.18);
}

.faq-accordion-item.is-open {
  border-color: rgba(var(--ov-rgb), 0.22);
  background: var(--surf-c);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-size: 1.18rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
  gap: 16px;
  transition: color 0.1s ease;
}

.faq-trigger:hover {
  color: var(--text-white);
}

.faq-question-text {
  flex: 1;
}

.faq-icon-wrapper {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(var(--ov-rgb), 0.04);
  border: 1px solid rgba(var(--ov-rgb), 0.1);
  color: var(--text-white);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.faq-accordion-item.is-open .faq-icon-wrapper {
  transform: rotate(180deg);
  background: rgba(var(--ov-rgb), 0.1);
  border-color: rgba(var(--ov-rgb), 0.24);
}

.faq-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  display: block;
}

.faq-content {
  padding: 0 24px 24px 24px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
  border-top: 1px solid rgba(var(--ov-rgb), 0.06);
  padding-top: 16px;
  margin-top: 4px;
  white-space: normal;
}

.faq-content p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
  font-family: var(--font-body, "Inter", sans-serif);
}

@media (max-width: 768px) {
  .faq-trigger {
    padding: 16px 18px;
    font-size: 1.06rem;
  }
  .faq-content {
    padding: 0 18px 18px 18px;
    font-size: 0.98rem;
  }
  .faq-content p {
    font-size: 0.98rem;
  }
}

/* ==========================================================================
   Fibonacci 23.6% Storytelling Section Flow Standard
   Yalnızca dikey kart yığını veya yatay kaydırma bileşenleri için mikro önizleme payı.
   Genel sayfa bölümleri (section/hero) bu kuraldan muaftır.
   ========================================================================== */
.peek-preview-stage,
.peek-preview-card {
  min-height: clamp(380px, calc(100dvh * 0.764), 880px);
  position: relative;
  box-sizing: border-box;
}

.peek-preview-stage:last-child,
.peek-preview-card:last-child {
  margin-bottom: 0 !important;
}

.chat-starter-chip {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Barış Design: Mobile & Tablet App Notice (Modal & Overlays)
   Pure Dark Slate (#000000 / #090b10), Fibonacci Spacing, Grayscale Icons
   ========================================================================== */
.celtt-mobile-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.12s ease-out;
}

.celtt-mobile-notice-overlay.celtt-mobile-notice-closing {
  opacity: 0;
  pointer-events: none;
}

.celtt-mobile-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.celtt-mobile-notice-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-panel);
  border: 1px solid rgba(var(--ov-rgb), 0.12);
  border-radius: 21px;
  padding: 21px;
  box-shadow: 0 21px 55px rgba(var(--shadow-rgb), calc(0.95 * var(--shadow-k))), 0 0 0 1px rgba(var(--ov-rgb), 0.04);
  display: flex;
  flex-direction: column;
  gap: 21px;
  box-sizing: border-box;
  animation: celttNoticePopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.celtt-mobile-notice-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.celtt-mobile-notice-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.celtt-mobile-notice-logo-img {
  height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

.celtt-mobile-notice-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--ov-rgb), 0.05);
  border: 1px solid rgba(var(--ov-rgb), 0.1);
  border-radius: 13px;
  padding: 4px 13px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  color: var(--text);
}

.celtt-mobile-hourglass-emoji {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  filter: grayscale(100%) !important;
  -webkit-filter: grayscale(100%) !important;
}

.celtt-mobile-notice-title {
  margin: 0;
  text-align: left;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  color: var(--text-white);
  line-height: 1.15;
}

.celtt-mobile-notice-desc {
  margin: 0;
  text-align: left;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.5;
}

.celtt-mobile-notice-stores-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.celtt-mobile-notice-stores {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
}

@media (min-width: 380px) {
  .celtt-mobile-notice-stores {
    gap: 13px;
  }
}

.celtt-store-badge {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid rgba(var(--ov-rgb), 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  box-sizing: border-box;
  user-select: none;
  opacity: 0.92;
}

.celtt-store-icon {
  flex-shrink: 0;
  color: var(--text-white);
  filter: grayscale(100%) !important;
  -webkit-filter: grayscale(100%) !important;
}

.celtt-store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.celtt-store-badge-sub {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.celtt-store-badge-main {
  font-family: var(--font-heading, 'Montserrat', var(--font-body, 'Inter', sans-serif));
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-white);
  white-space: nowrap;
}

.celtt-store-hourglass {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid rgba(var(--ov-rgb), 0.14);
  border-radius: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.celtt-mobile-notice-footer {
  margin-top: 4px;
}

.celtt-mobile-notice-continue-btn {
  width: 100%;
  display: block;
  background: rgba(var(--ov-rgb), 0.04);
  border: 1px solid rgba(var(--ov-rgb), 0.12);
  border-radius: 13px;
  color: var(--text-muted);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 13px 21px;
  text-align: center;
  cursor: pointer;
  transition: background 0.08s ease, color 0.08s ease, border-color 0.08s ease;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.celtt-mobile-notice-continue-btn:hover,
.celtt-mobile-notice-continue-btn:focus-visible {
  background: rgba(var(--ov-rgb), 0.08);
  color: var(--text-white);
  border-color: rgba(var(--ov-rgb), 0.2);
  outline: none;
}

.celtt-mobile-notice-continue-btn:active {
  transform: scale(0.99);
}

/* Global A11y Focus Rings (Barış Design Cyan Standard) */
:focus-visible {
  outline: 2px solid rgba(13, 192, 223, 0.75) !important;
  outline-offset: 2px !important;
}

/* Global Reduced Motion (WCAG 2.2 AA) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .typing-dot {
    animation: none !important;
    opacity: 0.6 !important;
  }

  .heart-pulse-dot {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.8 !important;
  }

  /* Durum göstergeleri (spinner): sadeleştirilmiş durum göstergesi */
  .spin,
  .doctor-spinner {
    animation-duration: 3s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ==========================================================================
   FLOATING AREA SWITCH (SAĞ ALT KÖŞE CHAT / PORTAL / INDEX HIZLI GEÇİŞİ)
   Barış Standartları: Pure Dark Slate, 4-Eksenli Mat Cyan Gradient, Fibonacci
   ========================================================================== */
.floating-area-switch-container {
  position: fixed;
  bottom: 34px;
  right: 34px;
  z-index: 9999;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.floating-area-switch-btn {
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 13px;
  background: var(--bg-panel);
  border: 1px solid rgba(var(--ov-rgb), 0.12);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(var(--shadow-rgb), calc(0.7 * var(--shadow-k))), 0 0 0 1px rgba(var(--ov-rgb), 0.04);
  color: var(--text-white);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: none !important;
  animation: none !important;
}

.floating-area-switch-btn:hover {
  background-color: #0a0e16;
  background-image:
    radial-gradient(at 0% 0%, rgba(13, 192, 223, 0.14) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(13, 192, 223, 0.10) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(13, 192, 223, 0.12) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(13, 192, 223, 0.08) 0px, transparent 50%);
  border-color: rgba(13, 192, 223, 0.35);
  box-shadow: 0 12px 32px rgba(var(--shadow-rgb), calc(0.9 * var(--shadow-k))), inset 0 0 10px rgba(13, 192, 223, 0.11);
  color: var(--on-accent);
}

.floating-area-switch-btn:active {
  transform: scale(0.97);
}

.floating-switch-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%) !important;
}

.floating-switch-label {
  letter-spacing: -0.01em;
}

.floating-switch-arrow {
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
}

.floating-dual-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.floating-icon-divider {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .chat-page .floating-area-switch-container {
    bottom: 89px;
    right: 21px;
  }

  .floating-area-switch-container {
    bottom: calc(34px + env(safe-area-inset-bottom, 0px));
    right: 21px;
  }

  .floating-area-switch-btn {
    height: 42px;
    padding: 0 13px 0 10px;
    font-size: 0.80rem;
  }
}

.area-switch-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(21px);
  -webkit-backdrop-filter: blur(21px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 21px;
  box-sizing: border-box;
  animation: fadeIn 0.15s ease-out;
}

.area-switch-modal-close {
  position: fixed;
  top: 21px;
  right: 21px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(var(--ov-rgb), 0.16);
  background: rgba(var(--panel-rgb), 0.7);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: none !important;
  z-index: 100001;
}

.area-switch-modal-close:hover {
  background: var(--accent-surface);
  border-color: rgba(13, 192, 223, 0.45);
  color: var(--on-accent);
}

/* İki Büyük Yuvarlak Taşıyıcı (Kutucuksuz — Doğrudan Arka Plan Üzerinde) */
.area-switch-circles-wrap {
  display: flex;
  gap: 55px; /* Fibonacci 55px */
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
}

.area-switch-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  cursor: pointer;
  width: 190px;
  transition: none !important;
}

/* Büyük Yuvarlak Buton (165px Genişletilmiş Çap) */
.area-switch-big-circle {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid rgba(var(--ov-rgb), 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 21px 55px rgba(var(--shadow-rgb), calc(0.9 * var(--shadow-k))), inset 0 0 15px rgba(var(--ov-rgb), 0.02);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.area-switch-big-circle .circle-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: grayscale(100%) !important;
  transition: transform 0.15s ease;
}

/* Hover Efekti: 4 Eksenli Cyan Hale & Büyüme */
.area-switch-circle-card:hover .area-switch-big-circle {
  border-color: rgba(13, 192, 223, 0.65);
  background-color: var(--surf-a);
  background-image:
    radial-gradient(at 0% 0%, rgba(13, 192, 223, 0.18) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(13, 192, 223, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(13, 192, 223, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(13, 192, 223, 0.10) 0px, transparent 50%);
  box-shadow: 0 0 44px rgba(13, 192, 223, 0.40), inset 0 0 25px rgba(13, 192, 223, 0.22);
  transform: scale(1.05);
}

.area-switch-circle-card:hover .circle-icon {
  transform: scale(1.08);
  filter: grayscale(100%) brightness(1.25) !important;
}

.area-switch-circle-card:active .area-switch-big-circle {
  transform: scale(0.98);
}

/* Alt Metinler */
.circle-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.circle-title {
  font-family: var(--font-heading, Montserrat, sans-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-white);
  transition: color 0.1s ease;
}

.area-switch-circle-card:hover .circle-title {
  color: var(--accent-text);
}

.circle-sub {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 170px;
}

/* Küçük Ekranlarda Yuvarlak Boyutları ve Boşluklar */
@media (max-width: 600px) {
  .area-switch-modal-close {
    top: 13px;
    right: 13px;
    width: 34px;
    height: 34px;
  }

  .area-switch-circles-wrap {
    gap: 21px; /* Fibonacci 21px */
  }

  .area-switch-circle-card {
    width: 135px;
    gap: 12px;
  }

  .area-switch-big-circle {
    width: 125px;
    height: 125px;
  }

  .area-switch-big-circle .circle-icon {
    width: 48px;
    height: 48px;
  }

  .circle-title {
    font-size: 1.05rem;
  }

  .circle-sub {
    font-size: 0.72rem;
    max-width: 130px;
  }
}

@media (max-width: 360px) {
  .area-switch-circles-wrap {
    gap: 13px;
  }

  .area-switch-circle-card {
    width: 115px;
  }

  .area-switch-big-circle {
    width: 105px;
    height: 105px;
  }

  .area-switch-big-circle .circle-icon {
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   AÇIK TEMA (Light) — html[data-theme="light"]
   Kaynak: prototype-light (keten #ecede1 + beyaz + klinik mavi).
   Koyu tema :root'ta kalır; burada yalnızca token override edilir.
   Birincil buton bilinçli olarak koyu kalır (--accent #090b10 + --on-accent).
   ============================================================ */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ecede1;
  --bg-panel: #ffffff;
  --panel: #ffffff;
  --bg-raised: #f4f5ec;
  --panel-rgb: 255, 255, 255;
  --ov-rgb: 8, 21, 40;
  --panel-border: rgba(8, 21, 40, 0.12);
  --border: rgba(8, 21, 40, 0.12);
  --text: #1e293b;
  --text-muted: #475569;
  --text-white: #081528;
  --on-accent: #ffffff;
  --on-accent-muted: #aab4c3;
  --inv-bg: #081528;
  --inv-text: #ffffff;
  --ov-text-k: 1.9;
  --s-0d111a: #eff0e6;
  --s-111726: #e3e8f0;
  --s-0e121a: #eff0e6;
  --s-141720: #eff0e6;
  --s-182232: #e3e8f0;
  --s-0b0f17: #eff0e6;
  --s-0f1520: #eff0e6;
  --s-080b11: #eff0e6;
  --s-0d1117: #eff0e6;
  --s-0d121c: #eff0e6;
  --s-0c0f17: #eff0e6;
  --s-06080c: #eff0e6;
  --s-0c1017: #eff0e6;
  --s-141923: #eff0e6;
  --s-11141d: #eff0e6;
  --s-0a0d14: #eff0e6;
  --s-0d1017: #eff0e6;
  --s-0e1e24: #e3e8f0;
  --s-0b1a13: #eff0e6;
  --s-2a1113: #eff0e6;
  --s-0e1218: #eff0e6;
  --s-0e1e30: #e3e8f0;
  --s-0d2318: #eff0e6;
  --s-141a24: #eff0e6;
  --s-181d26: #eff0e6;
  --s-0c1018: #eff0e6;
  --s-0e131d: #eff0e6;
  --s-081528: #e3e8f0;
  --s-0b0e14: #eff0e6;
  --shadow-rgb: 31, 41, 55;
  --shadow-k: 0.22;
  --text-soft: #334155;
  --text-subtle: #4f5c73;
  --danger-text: #b91c1c;
  --danger-text-hi: #7f1d1d;
  --panel-hover: #f6f7f0;
  --panel-active: #eef0e4;
  --border-active: rgba(8, 21, 40, 0.34);
  --good-text: #15803d;
  --warn-text: #b45309;
  --info-text: #1d4ed8;
  --accent-text: #0e7490;
  --surf-a: #f6f7f0;
  --surf-b: #eff0e6;
  --surf-c: #f6f7f0;
  --surf-d: #eff0e6;
  --surf-e: #f6f7f0;
  --surf-f: #e3e8f0;
  --surf-g: #d5dde9;
  --accent-cyan: #0e7490;
  --accent-bright: #34496e;
  --shadow: 0 8px 24px -8px rgba(45, 52, 60, 0.14);
}
/* Logolardaki beyaz kısımlar açık zeminde görünür kalsın: beyaz→koyu, camgöbeği→camgöbeği */
:root[data-theme="light"] img[src*="logo"]:not([src*="emblem"]) {
  filter: invert(1) hue-rotate(180deg) !important;
}
:root[data-theme="light"] .site-btn-chat .site-btn-icon,
:root[data-theme="light"] .btn-ai-icon {
  filter: invert(1) grayscale(1) !important;
}

/* Koyu bölge: fotoğraf/video üstündeki alanlar açık temada da koyu token kullanır (hero vb.) */
:root[data-theme="light"] :is(.theme-dark-zone) {
  color-scheme: dark;
  --bg: #000000;
  --bg-panel: #090b10;
  --panel: rgba(9, 11, 16, 0.95);
  --bg-raised: #131722;
  --panel-border: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --ov-rgb: 255, 255, 255;
  --panel-rgb: 9, 11, 16;
  --text: #e2e8f0;
  --text-muted: #8a94a6;
  --text-white: #ffffff;
  --text-soft: #cbd5e1;
  --text-subtle: #94a3b8;
  --danger-text: #fca5a5;
  --good-text: #86efac;
  --warn-text: #fbbf24;
  --info-text: #93c5fd;
  --accent-text: #0dc0df;
  --accent-cyan: #0DC0DF;
  --surf-a: #0a0e16;
  --surf-b: #0e1118;
  --surf-c: #0c0f16;
  --surf-d: #14171f;
  --surf-e: #05070a;
  --surf-f: #172131;
  --surf-g: #2b3952;
  --shadow-rgb: 0, 0, 0;
  --shadow-k: 1;
  color: var(--text);
}
:root[data-theme="light"] :is(.theme-dark-zone) img[src*="logo"] { filter: none; }
/* Açık temada koyu duran dil/tema düğmelerinde okunur etiket */
:root[data-theme="light"] .lang-toggle-btn .lang-code-text { color: #cbd5e1; }

/* Açık tema: SVG sunum özniteliklerindeki (koyu temaya göre yazılmış) sabit renkleri token'a çevir */
:root[data-theme="light"] :is(svg [stroke="#ffffff" i], svg [stroke="white"]) { stroke: var(--text-white); }
:root[data-theme="light"] :is(svg [fill="#ffffff" i], svg [fill="white"]) { fill: var(--text-white); }
:root[data-theme="light"] svg [fill="#090b10" i] { fill: var(--bg-panel); }
:root[data-theme="light"] svg [stroke="#090b10" i] { stroke: var(--bg-panel); }
:root[data-theme="light"] :is(svg [fill="#8a94a6" i], svg [fill="#94a3b8" i]) { fill: var(--text-muted); }
:root[data-theme="light"] :is(svg [stroke="#8a94a6" i], svg [stroke="#94a3b8" i]) { stroke: var(--text-muted); }
:root[data-theme="light"] :is(svg [fill="#e2e8f0" i], svg [fill="#cbd5e1" i]) { fill: var(--text); }
:root[data-theme="light"] :is(svg [stroke="#e2e8f0" i], svg [stroke="#cbd5e1" i]) { stroke: var(--text); }
:root[data-theme="light"] :is(svg [stroke^="rgba(255, 255, 255, 0.0"], svg [stroke^="rgba(255,255,255,0.0"], svg [stroke="rgba(255, 255, 255, 0.10)"], svg [stroke="rgba(255, 255, 255, 0.1)"]) { stroke: rgba(var(--ov-rgb), 0.12); }
:root[data-theme="light"] :is(svg [stroke^="rgba(255, 255, 255, 0.2"], svg [stroke^="rgba(255, 255, 255, 0.3"], svg [stroke^="rgba(255, 255, 255, 0.4"], svg [stroke^="rgba(255, 255, 255, 0.5"], svg [stroke^="rgba(255, 255, 255, 0.6"], svg [stroke^="rgba(255, 255, 255, 0.7"], svg [stroke^="rgba(255,255,255,"]) { stroke: rgba(var(--ov-rgb), calc(0.4 * var(--ov-text-k))); }
:root[data-theme="light"] :is(svg [fill^="rgba(255, 255, 255, 0.5"], svg [fill^="rgba(255, 255, 255, 0.8"]) { fill: rgba(var(--ov-rgb), calc(0.6 * var(--ov-text-k))); }

/* Açık tema kontrast güçlendirmeleri */
:root[data-theme="light"] .panel-chat-switch-item .switch-icon { opacity: 0.9 !important; }
/* Parçacık skor halkası canvas'ı bilinçli koyu: içindeki metin koyu token'lara döner */
:root[data-theme="light"] .particle-score-container {
  background: #000000;
  --text-white: #ffffff; --text: #e2e8f0; --text-muted: #8a94a6; --text-soft: #cbd5e1; --text-subtle: #94a3b8; --ov-rgb: 255, 255, 255; --ov-text-k: 1;
}
:root[data-theme="light"] .celttscore-footer p { opacity: 1; color: var(--text-muted); }

/* Tema değiştirme: kök çapraz geçişi 180ms ease-out (yalnızca View Transition destekli tarayıcılarda) */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease-out;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0s; }
}

/* Açık tema: landing kontrast düzeltmeleri */
:root[data-theme="light"] .discount-badge { color: #14532d; }
:root[data-theme="light"] .celttscore-footer p { opacity: 1 !important; }
:root[data-theme="light"] .lang-toggle-btn {
  background: var(--accent-surface) !important;
  border-color: rgba(var(--ov-rgb), 0.14) !important;
  color: var(--on-accent) !important;
}
/* Fiyat karşılaştırma tablosu: "dahil değil" işareti AA (koyuda #4b5563 → 2.6:1 idi) */
.tier-cell .dash-icon { color: var(--text-subtle); }
