/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:        #0a0d14;
  --c-surface:   #111827;
  --c-border:    #1f2937;
  --c-border-lt: #374151;
  --c-text:      #f9fafb;
  --c-muted:     #9ca3af;
  --c-accent:    #6366f1;
  --c-accent-lt: #818cf8;
  --c-accent-dk: #4f46e5;
  --c-green:     #10b981;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,.45);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.6);
  --transition:  .2s ease;
  --font:        'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: var(--c-accent-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--c-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--c-accent-dk); box-shadow: 0 0 0 3px rgba(99,102,241,.35); text-decoration: none; }

.btn--outline {
  background: transparent;
  color: var(--c-accent-lt);
  border: 1.5px solid var(--c-accent);
}
.btn--outline:hover { background: rgba(99,102,241,.1); text-decoration: none; }

.btn--ghost {
  background: transparent;
  color: var(--c-muted);
  border: 1.5px solid var(--c-border-lt);
}
.btn--ghost:hover { color: var(--c-text); border-color: var(--c-muted); text-decoration: none; }

.btn--lg   { padding: 13px 28px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,13,20,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__logo:hover { text-decoration: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: var(--c-muted);
  font-size: .9rem;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--c-text); text-decoration: none; }
.logo-icon { font-style: normal; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99,102,241,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(16,185,129,.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero__content { position: relative; }

.badge {
  display: inline-block;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.4);
  color: var(--c-accent-lt);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--c-accent-lt), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--c-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Stats ───────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 24px 80px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  background: var(--c-surface);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat__num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-accent-lt);
}
.stat__label {
  font-size: .82rem;
  color: var(--c-muted);
  text-align: center;
}

/* ── How it works ────────────────────────────────────────────── */
.how {
  padding: 80px 0;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--c-muted);
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.step {
  text-align: center;
  padding: 28px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  height: 100%;
}
.step__icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.step h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p {
  font-size: .85rem;
  color: var(--c-muted);
  line-height: 1.6;
}
.step__connector {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-lt));
  flex-shrink: 0;
}
.step__connector--green {
  background: linear-gradient(90deg, var(--c-green), #34d399);
}

.step--ailert {
  border-color: rgba(16,185,129,.25);
}

.flow-separator {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 72px 0 52px;
}
.flow-separator::before,
.flow-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.gradient-text--accent {
  background: linear-gradient(90deg, var(--c-accent-lt), #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text--green {
  background: linear-gradient(90deg, var(--c-green), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Form section ────────────────────────────────────────────── */
.form-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,.04) 100%);
}
.form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.form-section__copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.form-section__copy p {
  color: var(--c-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benefit-list li {
  color: var(--c-muted);
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.benefit-list li::first-letter { color: var(--c-green); }

/* Card */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--c-text);
}
.required { color: var(--c-accent-lt); margin-left: 2px; }
.hint {
  font-size: .78rem;
  color: var(--c-muted);
  margin-top: 2px;
}
.field-note {
  font-size: .8rem;
  color: var(--c-muted);
  background: #1a1f2e;
  border-left: 3px solid #6366f1;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  margin: 4px 0 8px;
  line-height: 1.5;
}

.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-border-lt);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-family: var(--font);
  font-size: .92rem;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: #4b5563; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field select option { background: #1f2937; }
.field textarea { resize: vertical; min-height: 96px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-prefix {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-border-lt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-prefix:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.input-prefix span {
  padding: 10px 12px;
  color: var(--c-muted);
  font-size: .9rem;
  border-right: 1px solid var(--c-border-lt);
  background: rgba(255,255,255,.03);
}
.input-prefix input {
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 1;
}
.input-prefix input:focus { box-shadow: none; border: none; }

.form-disclaimer {
  font-size: .78rem;
  color: var(--c-muted);
  text-align: center;
  margin-top: 12px;
}
.form-disclaimer a { color: var(--c-accent-lt); }

/* Success state */
.form-success {
  text-align: center;
  padding: 24px 0;
}
.form-success__icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.form-success p { color: var(--c-muted); margin-bottom: 24px; }

/* ── Nav user state ──────────────────────────────────────────── */
.nav-email {
  font-size: .85rem;
  color: var(--c-muted);
  margin-right: 8px;
}
.btn--sm { padding: 6px 14px; font-size: .82rem; }

/* ── Auth card ───────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--c-border);
  margin: -32px -32px 24px;
  padding: 0 32px;
}
.auth-tab {
  background: none;
  border: none;
  color: var(--c-muted);
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 500;
  padding: 14px 0;
  margin-right: 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.auth-tab:hover { color: var(--c-text); }
.auth-tab--active {
  color: var(--c-text);
  border-bottom-color: var(--c-accent);
}
.auth-error {
  font-size: .85rem;
  color: #f87171;
  margin-bottom: 12px;
}

/* ── Alert card title row ────────────────────────────────────── */
.form-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}
.form-card__title-row .form-card__title { margin-bottom: 0; border: none; padding: 0; }
.alert-limit-badge {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--c-accent-lt);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ── Verify registration step ────────────────────────────────── */
#verifyRegStep {
  text-align: center;
  padding: 8px 0;
}
#verifyRegStep .verify-step__icon { font-size: 2.8rem; margin-bottom: 14px; }
#verifyRegStep h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
#verifyRegStep > p { color: var(--c-muted); font-size: .9rem; margin-bottom: 24px; }
#verifyRegBtn { margin-bottom: 12px; }

/* ── Form section labels ─────────────────────────────────────── */
.form-section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent-lt);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.form-section-label:first-of-type { margin-top: 0; }

.field-row-hint {
  font-size: .76rem;
  color: var(--c-muted);
  margin-top: -10px;
  margin-bottom: 4px;
}

/* ── Input suffix (number + unit) ────────────────────────────── */
.input-suffix {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-border-lt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-suffix:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.input-suffix input {
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 1;
  min-width: 0;
}
.input-suffix input:focus { box-shadow: none; border: none; }
.input-suffix span {
  padding: 10px 12px;
  color: var(--c-muted);
  font-size: .85rem;
  border-left: 1px solid var(--c-border-lt);
  background: rgba(255,255,255,.03);
  white-space: nowrap;
}

/* ── Radio group ─────────────────────────────────────────────── */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-group--row {
  flex-direction: row;
  gap: 10px;
}
.radio-group--row .radio-option { flex: 1; }

.radio-option {
  display: flex;
  cursor: pointer;
}
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.radio-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 1.5px solid var(--c-border-lt);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.radio-option input[type="radio"]:checked + .radio-box {
  border-color: var(--c-accent);
  background: rgba(99,102,241,.08);
}
.radio-option:hover .radio-box {
  border-color: var(--c-accent-lt);
}
.radio-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-text);
}
.radio-desc {
  font-size: .74rem;
  color: var(--c-muted);
  line-height: 1.4;
}

/* ── Verify step ─────────────────────────────────────────────── */
.verify-step {
  text-align: center;
  padding: 8px 0;
}
.verify-step__icon { font-size: 2.8rem; margin-bottom: 16px; }
.verify-step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.verify-step > p { color: var(--c-muted); margin-bottom: 28px; font-size: .92rem; }

.code-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.code-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font);
  background: rgba(255,255,255,.04);
  border: 2px solid var(--c-border-lt);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  caret-color: var(--c-accent-lt);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.code-digit:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.25);
}
.code-digit--error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248,113,113,.2) !important;
}

.verify-error {
  color: #f87171;
  font-size: .85rem;
  margin-bottom: 14px;
}

#verifyBtn { margin-bottom: 12px; }

.link-btn {
  background: none;
  border: none;
  color: var(--c-accent-lt);
  font-family: var(--font);
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.link-btn:hover { color: #fff; }
.link-btn:disabled { color: var(--c-muted); cursor: default; text-decoration: none; }

/* ── My Alerts section ───────────────────────────────────────── */
.my-alerts-section {
  padding: 64px 0 80px;
  border-top: 1px solid var(--c-border);
}
.my-alerts-header {
  margin-bottom: 32px;
}
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alerts-loading,
.alerts-empty {
  color: var(--c-muted);
  font-size: .92rem;
  padding: 32px 0;
  text-align: center;
}
.alert-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color var(--transition), opacity var(--transition);
}
.alert-card:hover { border-color: var(--c-border-lt); }
.alert-card__main { flex: 1; min-width: 0; }
.alert-card__user-email {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.alert-card__keywords {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.alert-card__desc {
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.alert-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--c-border-lt);
  color: var(--c-muted);
  white-space: nowrap;
}
.pill--accent {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.3);
  color: var(--c-accent-lt);
}
.pill--muted {
  background: transparent;
  color: #4b5563;
  border-color: var(--c-border);
}
.alert-card__actions { flex-shrink: 0; padding-top: 2px; }
.btn--danger {
  background: transparent;
  color: #f87171;
  border: 1.5px solid rgba(248,113,113,.4);
}
.btn--danger:hover {
  background: rgba(248,113,113,.1);
  border-color: #f87171;
  text-decoration: none;
}

@media (max-width: 480px) {
  .alert-card { flex-direction: column; }
  .alert-card__actions { align-self: flex-end; }
}

/* ── AIlert colours & shared green utilities ─────────────────── */
.badge--green {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.35);
  color: #34d399;
}

.btn--ailerts {
  background: #065f46;
  color: #ecfdf5;
  border: none;
}
.btn--ailerts:hover {
  background: #047857;
  box-shadow: 0 0 0 3px rgba(52,211,153,.25);
  text-decoration: none;
}

.ailert-card { border-left: 3px solid rgba(52,211,153,.4); }

.pill--green {
  background: rgba(16,185,129,.1);
  border-color: rgba(16,185,129,.3);
  color: #34d399;
}

/* ── Alert type toggle ───────────────────────────────────────── */
.type-toggle-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--c-border-lt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 20px 0 4px;
}

.type-btn {
  background: rgba(255,255,255,.03);
  border: none;
  color: var(--c-muted);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 500;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: center;
}
.type-btn:first-child { border-right: 1.5px solid var(--c-border-lt); }
.type-btn:hover { color: var(--c-text); background: rgba(255,255,255,.06); }

.type-btn--active {
  background: rgba(99,102,241,.12);
  color: var(--c-accent-lt);
  font-weight: 600;
}
.type-btn--ailert.type-btn--active {
  background: rgba(16,185,129,.1);
  color: #34d399;
}

/* ── Admin stats ─────────────────────────────────────────────── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.admin-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
}

.admin-panel__title {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent-lt);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.admin-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--c-muted);
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
.admin-table td {
  padding: 9px 10px;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }

.admin-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.run-status {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: capitalize;
}
.run-status--done    { background: rgba(16,185,129,.15); color: #10b981; }
.run-status--running { background: rgba(99,102,241,.15); color: var(--c-accent-lt); }
.run-status--failed  { background: rgba(248,113,113,.15); color: #f87171; }

.hit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.hit-badge {
  font-size: .74rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--c-accent-lt);
}
.hit-user {
  font-size: .76rem;
  color: var(--c-accent);
  white-space: nowrap;
}
.hit-link {
  color: var(--c-accent-lt);
  text-decoration: none;
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hit-link:hover { text-decoration: underline; }

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

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 48px 0 24px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}
.footer__brand p {
  font-weight: 400;
  font-size: .85rem;
  color: var(--c-muted);
}
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--c-muted);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--c-text); text-decoration: none; }
.footer__copy {
  font-size: .8rem;
  color: #4b5563;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}


/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links a { display: none; }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .step__connector {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, var(--c-accent), var(--c-accent-lt));
    justify-self: center;
  }

  .form-section__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .field-row { grid-template-columns: 1fr; }
  .radio-group--row { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; }
  .card { padding: 24px 20px; }
  .modal { padding: 28px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Upgrade banner ───────────────────────────────────────────── */
.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(90deg, #065f46, #064e3b);
  color: #6ee7b7;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  text-align: center;
}
.upgrade-banner button {
  background: none;
  border: none;
  color: #6ee7b7;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: .7;
}
.upgrade-banner button:hover { opacity: 1; }

/* ── Plan badge ───────────────────────────────────────────────── */
.plan-badge--pro {
  display: inline-block;
  background: linear-gradient(135deg, #065f46, #10b981);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── Pricing section ──────────────────────────────────────────── */
.pricing {
  padding: 96px 0;
  background: var(--c-bg);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 48px auto 0;
}
.pricing-grid--modal {
  grid-template-columns: 1fr;
  max-width: 100%;
  margin: 0;
}
.pricing-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card--pro {
  border-color: #10b981;
  box-shadow: 0 0 0 1px #10b98133;
}
.pricing-card__popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #065f46, #10b981);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card__name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #f9fafb;
}
.pricing-card__price {
  margin-bottom: 24px;
}
.price-num {
  font-size: 36px;
  font-weight: 700;
  color: #f9fafb;
}
.price-per {
  font-size: 15px;
  color: #6b7280;
  margin-left: 4px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.pricing-features li {
  font-size: 14px;
  color: #9ca3af;
  padding: 6px 0;
  border-bottom: 1px solid #1f2937;
}
.pricing-features li::before {
  content: '✓ ';
  color: #10b981;
  font-weight: 700;
}

/* ── Modal backdrop ───────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-backdrop[hidden] { display: none !important; }
.modal {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Ticker autocomplete ───────────────────────────────────────── */
.ticker-wrap {
  position: relative;
}
.ticker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 8px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .1s;
}
.ticker-item:hover,
.ticker-item--active {
  background: #252d3d;
}
.ticker-item__symbol {
  font-size: 13px;
  font-weight: 700;
  color: #818cf8;
  min-width: 64px;
}
.ticker-item__name {
  font-size: 12px;
  color: #9ca3af;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-item__type {
  font-size: 11px;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ticker-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239,68,68,.2);
}
