:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;

  /* Beyaz + koyu mavi */
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --surface-3: #e3ebf5;
  --line: #d9e3ef;
  --line-strong: #c4d3e5;
  --muted: #64748b;
  --muted-soft: #94a3b8;
  --accent: #1e3a8a;      /* koyu mavi */
  --accent-2: #1d4ed8;    /* orta mavi */
  --accent-bright: #2563eb;
  --accent-soft: #dbeafe;
  --text: #0b1b36;
  --text-secondary: #334155;
  --good: #047857;
  --danger: #dc2626;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-width: 320px; min-height: 100dvh; margin: 0;
  background:
    radial-gradient(circle at 79% -20%, rgba(30,58,138,.08), transparent 38%),
    radial-gradient(circle at -10% 110%, rgba(29,78,216,.06), transparent 40%),
    var(--bg);
  color: var(--text);
}
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 300; top: 10px; left: 10px; transform: translateY(-160%); border-radius: 9px; padding: 10px 13px; background: var(--accent); color: #fff; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.primary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 10px; border: none;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.primary-button:hover { transform: translateY(-1px); background: var(--accent-2); box-shadow: 0 6px 16px rgba(30,58,138,.22); }
.primary-button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.app-frame { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }

.topbar {
  position: sticky; z-index: 30; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 68px; padding: 0 clamp(16px, 3.5vw, 38px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; width: 36px; height: 36px; flex: none; place-items: center;
  border-radius: 10px; background: var(--accent); color: #fff;
  font: 800 20px/1 Inter, Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(30,58,138,.25);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-copy strong { font: 800 15px/1 Inter, Arial, sans-serif; color: var(--text); letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 600; }
.topbar-account { display: flex; align-items: center; gap: 10px; }
.avatar {
  display: grid; flex: none; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font: 800 12px Inter, Arial, sans-serif;
  border: 1px solid #c7d9f5;
}
.avatar--top { width: 36px; height: 36px; }
.account-copy { min-width: 0; }
.account-copy strong { display: block; max-width: 140px; overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.main-content { width: min(1040px, 100%); flex: 1; margin: 0 auto; padding: 22px clamp(16px, 4vw, 42px) calc(112px + env(safe-area-inset-bottom)); outline: none; }
.page { width: 100%; min-width: 0; animation: page-enter .28s var(--ease) both; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 2px 0 22px; }
.page-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.page-kicker i { width: 22px; height: 1px; background: var(--accent); }
.page-heading h1 { margin: 12px 0 7px; color: var(--text); font: 800 clamp(25px, 5vw, 34px)/1.12 Inter, Arial, sans-serif; letter-spacing: -.04em; }
.page-heading h1 span { color: var(--accent); }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* WELCOME PANEL (artık görsel yok) */
.welcome-panel {
  position: relative; display: flex; min-height: 190px; align-items: center; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; padding: 26px clamp(20px, 4vw, 34px);
  background:
    linear-gradient(120deg, #ffffff, #f4f8ff 60%, #eaf1ff);
  box-shadow: 0 4px 18px rgba(15,40,90,.06);
}
.welcome-panel::before {
  position: absolute; top: -120px; right: -100px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(30,58,138,.12), transparent 70%);
  content: ''; pointer-events: none;
}
.welcome-panel-copy { position: relative; z-index: 1; max-width: 560px; }
.welcome-label, .section-label { display: block; color: var(--accent); font: 800 9px Inter, Arial, sans-serif; letter-spacing: .16em; }
.welcome-panel h2 { margin: 10px 0 8px; color: var(--text); font: 800 clamp(22px, 4vw, 28px)/1.16 Inter, Arial, sans-serif; letter-spacing: -.03em; }
.welcome-panel h2 span { color: var(--accent); }
.welcome-panel p { max-width: 460px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.welcome-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.welcome-chip {
  padding: 5px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent);
  font: 800 9px Inter, Arial, sans-serif; letter-spacing: .08em;
}
.welcome-index { position: absolute; z-index: 1; right: 16px; bottom: 12px; color: var(--muted-soft); font: 700 9px Inter, Arial, sans-serif; letter-spacing: .12em; }
.welcome-index i { margin: 0 4px; color: var(--line-strong); font-style: normal; }

.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.section-row h2 { margin: 4px 0 0; color: var(--text); font: 800 17px/1.2 Inter, Arial, sans-serif; letter-spacing: -.02em; }

.quick-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .quick-tiles { grid-template-columns: 1fr; } }

.quick-tile {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 74px; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text); text-align: left;
  transition: border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.quick-tile:hover {
  transform: translateY(-1px); border-color: var(--accent-bright);
  box-shadow: 0 6px 18px rgba(30,58,138,.08);
}
.quick-tile-icon {
  display: grid; width: 40px; height: 40px; flex: none; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
}
.quick-tile-icon svg { width: 20px; height: 20px; }
.quick-tile-copy { flex: 1; min-width: 0; }
.quick-tile-copy strong { display: block; font-size: 13px; color: var(--text); }
.quick-tile-copy small  { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.quick-tile-arrow { color: var(--muted-soft); font-size: 15px; }

/* WORKSPACE */
.workspace-panel {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 14px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(15,40,90,.04);
}
.workspace-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.workspace-stat {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  background: var(--surface-2);
}
.workspace-stat span { display: block; color: var(--muted); font: 700 9px Inter, Arial, sans-serif; letter-spacing: .1em; }
.workspace-stat strong { display: block; margin-top: 4px; color: var(--text); font: 800 15px Inter, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.workspace-stat--live strong { color: var(--good); }
.workspace-stat--dead strong { color: var(--danger); }
.workspace-stat--rate strong { color: var(--accent); }

.field-label { display: block; color: var(--muted); font: 700 9px Inter, Arial, sans-serif; letter-spacing: .1em; margin-bottom: 6px; }
.gate-select { position: relative; }
.gate-select-trigger {
  width: 100%; height: 42px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 13px; text-align: left;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.gate-select-trigger:hover { border-color: var(--line-strong); }
.gate-chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .16s var(--ease); }
.gate-select-trigger[aria-expanded="true"] .gate-chevron { transform: rotate(180deg); }
.gate-select-menu {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); padding: 6px;
  box-shadow: 0 12px 32px rgba(15,40,90,.12);
}
.gate-select-option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 0;
  background: transparent; color: var(--text); font-size: 13px; text-align: left;
}
.gate-select-option:hover { background: var(--surface-2); }
.gate-select-option.is-selected { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

.card-input textarea {
  width: 100%; min-height: 140px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.6; resize: vertical;
}
.card-input textarea:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.workspace-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-start, .btn-stop {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
  font: 800 10px Inter, Arial, sans-serif; letter-spacing: .08em;
}
.btn-start svg, .btn-stop svg { width: 14px; height: 14px; }
.btn-start { background: var(--accent); color: #fff; }
.btn-start:hover:not(:disabled) { background: var(--accent-2); }
.btn-start:disabled { opacity: .5; cursor: not-allowed; }
.btn-stop { background: #fee2e2; color: var(--danger); border-color: #fecaca; }
.btn-stop:disabled { opacity: .5; cursor: not-allowed; }
.progress-mini { flex: 1; min-width: 80px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-mini span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress-text { color: var(--muted); font: 700 11px Inter, Arial, sans-serif; font-variant-numeric: tabular-nums; }

.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (max-width: 640px) { .results-grid { grid-template-columns: 1fr; } }
.results-panel { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.results-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.results-head h3 { display: flex; align-items: center; gap: 6px; margin: 0; font: 800 11px Inter, Arial, sans-serif; color: var(--text); }
.count-pill { padding: 2px 8px; border-radius: 5px; font: 800 10px Inter, Arial, sans-serif; }
.count-pill.live { background: #d1fae5; color: var(--good); }
.count-pill.dead { background: #fee2e2; color: var(--danger); }
.live-dot, .dead-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.live-dot { background: var(--good); }
.dead-dot { background: var(--danger); }
.results-list { max-height: 280px; overflow: auto; }
.results-empty { padding: 22px 12px; text-align: center; color: var(--muted-soft); font-size: 11px; }
.results-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.results-row:last-child { border-bottom: 0; }
.results-row .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.results-row .dot.live { background: var(--good); }
.results-row .dot.dead { background: var(--danger); }
.results-row strong { display: block; font-family: ui-monospace, monospace; font-size: 11px; color: var(--text); }
.results-row small  { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }

/* HISTORY */
.history-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.history-toolbar input, .history-toolbar select {
  flex: 1; min-width: 130px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--text); font-size: 12px;
}
.history-toolbar input:focus, .history-toolbar select:focus { outline: none; border-color: var(--accent-bright); }
.subtle-button {
  height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-secondary);
  font: 700 12px Inter, Arial, sans-serif;
  transition: background .16s, border-color .16s;
}
.subtle-button:hover { background: var(--surface-2); border-color: var(--line-strong); }
.history-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.history-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.history-table th, .history-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.history-table th { background: var(--surface-2); color: var(--muted); font: 700 9px Inter, Arial, sans-serif; letter-spacing: .1em; }
.history-table td { color: var(--text-secondary); }
.history-table td.mono { font-family: ui-monospace, monospace; font-size: 11px; color: var(--text); }
.history-table .history-empty { padding: 24px; text-align: center; color: var(--muted-soft); }
.pill { padding: 3px 9px; border-radius: 5px; font: 800 9px Inter, Arial, sans-serif; }
.pill-live { background: #d1fae5; color: var(--good); }
.pill-dead { background: #fee2e2; color: var(--danger); }
.row-copy {
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-secondary);
  font-size: 10px; font-weight: 700;
}
.row-copy:hover { background: var(--surface-2); }

/* SUPPORT */
.support-panel {
  position: relative; display: flex; min-height: 220px; align-items: center; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px;
  padding: 26px clamp(20px,4vw,30px);
  background: linear-gradient(135deg, #ffffff, #eef4ff 70%, #dde8ff);
  box-shadow: 0 4px 18px rgba(15,40,90,.06);
}
.support-panel::before {
  position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(30,58,138,.12), transparent 70%);
  content: ''; pointer-events: none;
}
.support-panel-copy { position: relative; z-index: 1; max-width: 560px; }
.support-panel-copy h2 { margin: 8px 0 8px; color: var(--text); font: 800 22px/1.2 Inter, Arial, sans-serif; letter-spacing: -.02em; }
.support-panel-copy p { max-width: 460px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.support-link {
  display: inline-flex; min-height: 42px; align-items: center; gap: 10px;
  margin-top: 18px; border: 1px solid var(--accent); border-radius: 10px;
  padding: 0 16px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
  transition: background .16s, transform .16s, box-shadow .16s;
}
.support-link:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,58,138,.25); }
.support-link span { font-size: 15px; }
.support-handle { display: block; margin-top: 10px; color: var(--muted); font: 600 11px Inter, Arial, sans-serif; }

/* BOTTOM NAV */
.bottom-nav {
  position: fixed; z-index: 50; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%;
  display: grid; width: min(560px, calc(100% - 24px)); grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px;
  transform: translateX(-50%);
  border: 1px solid var(--line); border-radius: 16px; padding: 6px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 32px rgba(15,40,90,.12), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
}
.bottom-nav-item {
  display: flex; min-width: 0; min-height: 49px; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; border: 1px solid transparent; border-radius: 11px; background: transparent;
  color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.bottom-nav-item svg { width: 18px; height: 18px; flex: none; }
.bottom-nav-item:hover { color: var(--text); background: var(--surface-2); }
.bottom-nav-item.is-active {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 12px rgba(30,58,138,.25);
}
.bottom-nav-item:active { transform: scale(.97); }

.toast {
  position: fixed; z-index: 100; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 16px;
  width: fit-content; max-width: min(440px, calc(100% - 32px)); margin: 0 auto;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 14px;
  background: var(--text); color: #fff; font-size: 12px; font-weight: 500;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* AUTH GATE */
.auth-gate {
  position: fixed; inset: 0; z-index: 5000;
  display: grid; place-items: center;
  background: var(--bg);
  background-image: radial-gradient(circle at 50% 0%, rgba(30,58,138,.1), transparent 60%);
  padding: 24px;
}
.auth-gate-card {
  width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px;
  box-shadow: 0 20px 50px rgba(15,40,90,.15);
}
.auth-gate-head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.auth-gate-mark {
  display: grid; width: 44px; height: 44px; place-items: center;
  border-radius: 12px; background: var(--accent); color: #fff;
  font: 800 22px/1 Inter, Arial, sans-serif;
}
.auth-gate-head strong { display: block; color: var(--text); font-size: 15px; }
.auth-gate-head small { color: var(--muted); font-size: 11px; }
.auth-gate-notice { padding: 12px; border-radius: 10px; font-size: 12px; line-height: 1.5; margin: 0; }
.auth-gate-notice.error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }

/* LANGUAGE GATE */
.language-gate {
  position: fixed; inset: 0; z-index: 5000;
  display: grid; place-items: center;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(30,58,138,.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  padding: 24px;
}
.language-gate-card {
  width: min(420px, 100%); text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 40px 24px;
  box-shadow: 0 20px 50px rgba(15,40,90,.15);
}
.language-gate-mark {
  display: inline-grid; width: 60px; height: 60px; place-items: center;
  border-radius: 16px; background: var(--accent); color: #fff;
  font: 800 28px/1 Inter, Arial, sans-serif;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(30,58,138,.25);
}
.language-gate .gate-kicker { display: block; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .2em; margin-bottom: 12px; }
.language-gate h1 { font-size: 24px; font-weight: 800; color: var(--text); margin: 0 0 8px; letter-spacing: -.03em; }
.language-gate p { font-size: 13px; color: var(--muted); margin: 0 0 32px; }
.language-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.language-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 0; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); cursor: pointer;
  transition: all .2s var(--ease);
}
.language-card:hover {
  border-color: var(--accent); background: var(--accent-soft);
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30,58,138,.1);
}
.language-card strong { font-size: 22px; font-weight: 800; color: var(--accent); }
.language-card span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* MODALS */
.captcha-modal-pro {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,27,54,.55); backdrop-filter: blur(4px);
  padding: 20px;
}
.captcha-modal-content {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; width: 100%; max-width: 340px; padding: 22px;
  box-shadow: 0 20px 40px rgba(15,40,90,.2);
}
.captcha-modal-content--center { text-align: center; }
.captcha-modal-content h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.captcha-modal-content p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.captcha-modal-content select {
  width: 100%; padding: 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; color: var(--text);
  margin-bottom: 20px; outline: none; font-size: 13px;
}
.modal-actions { display: flex; gap: 10px; }
.btn-modal-cancel {
  flex: 1; padding: 11px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-secondary);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.btn-modal-cancel:hover { background: var(--surface-2); }
.btn-modal-confirm {
  flex: 1; padding: 11px; border-radius: 8px; border: none;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.btn-modal-confirm:hover { background: var(--accent-2); }
.btn-modal-confirm--danger { background: var(--danger); }
.btn-modal-confirm--danger:hover { background: #b91c1c; }
.modal-warn-icon {
  display: grid; place-items: center; margin-bottom: 14px; color: var(--danger);
}

/* CHANNEL GATE */
.channel-gate-overlay {
  position: fixed; inset: 0; z-index: 9999; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--bg);
  background-image: radial-gradient(circle at 50% 0%, rgba(30,58,138,.14), transparent 60%);
  color: var(--text);
}
.channel-gate-overlay[style*="flex"] { display: flex !important; }
.channel-gate-content { width: 100%; max-width: 380px; text-align: center; animation: page-enter 0.4s var(--ease) both; }
.channel-gate-brand {
  font-family: Inter, Arial, sans-serif; font-size: 24px; font-weight: 800;
  letter-spacing: -.02em; color: var(--text); margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.channel-gate-brand span { color: var(--accent); }
.channel-gate-divider { height: 1px; width: 40px; background: var(--line); margin: 0 auto 24px; }
.channel-gate-title { font-size: 20px; font-weight: 800; margin: 0 0 8px; color: var(--text); letter-spacing: -.02em; }
.channel-gate-desc { font-size: 13px; color: var(--muted); margin: 0 0 24px; line-height: 1.55; }
.channel-gate-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.channel-gate-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all 0.2s var(--ease);
}
.channel-gate-btn:hover { background: var(--surface-2); border-color: var(--accent); }
.channel-gate-btn svg { width: 18px; height: 18px; color: #229ED9; }
.channel-gate-continue {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; background: var(--accent); border: none;
  border-radius: 10px; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(30,58,138,.3);
  transition: all 0.2s var(--ease);
}
.channel-gate-continue:hover { background: var(--accent-2); transform: translateY(-1px); }
.channel-gate-continue svg { width: 18px; height: 18px; }
.channel-gate-footer { margin-top: 22px; font-size: 9px; color: var(--muted-soft); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }

@keyframes page-enter { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 520px) {
  .topbar { height: 62px; }
  .main-content { padding: 16px 14px calc(105px + env(safe-area-inset-bottom)); }
  .topbar-account { gap: 7px; }
  .account-copy strong { max-width: 90px; font-size: 11px; }
  .account-copy small { font-size: 9px; }
  .avatar--top { width: 34px; height: 34px; font-size: 11px; }
  .page-heading { margin-bottom: 18px; }
  .page-heading h1 { max-width: 300px; font-size: 26px; }
  .page-heading p { max-width: 290px; font-size: 12px; }
  .welcome-panel { min-height: 170px; padding: 20px 18px; }
  .welcome-panel h2 { font-size: 22px; }
  .welcome-panel p { font-size: 11.5px; }
  .welcome-index { right: 12px; bottom: 8px; font-size: 8px; }
  .section-row { margin-top: 20px; }
  .section-row h2 { font-size: 15px; }
  .support-panel { padding: 20px 18px; }
  .support-panel-copy h2 { font-size: 19px; }
  .support-panel-copy p { font-size: 12px; }
  .bottom-nav { bottom: calc(8px + env(safe-area-inset-bottom)); width: calc(100% - 12px); gap: 2px; padding: 5px; }
  .bottom-nav-item { min-height: 47px; gap: 3px; font-size: 9px; }
  .bottom-nav-item svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}