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

:root {
  --bg: #0a0e1a;
  --surface: #111827;
  --surface2: #1a2235;
  --border: #1e2d45;
  --text: #e8edf5;
  --text-muted: #7a8ba4;
  --accent: #3b82f6;
  --accent2: #6366f1;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* ── HEADER ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 22px; color: var(--accent); }
.logo-text {
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px; color: #fff;
}
.logo-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--accent); margin-left: 6px;
  vertical-align: middle;
  background: rgba(59,130,246,0.12);
  padding: 2px 6px; border-radius: 4px;
}
.header-nav { display: flex; gap: 8px; }
.nav-pill {
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: default;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0a0e1a 0%, #0f1729 40%, #111d35 100%);
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 860px; margin: 0 auto; position: relative; }
.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #fff 30%, #93c5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 15px; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 32px; line-height: 1.7;
}

/* ── SEARCH CARD ── */
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px 16px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.search-row {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
}
.search-field { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.search-field.flex-3 { flex: 3; }
.search-field.flex-1 { flex: 1; }
.search-field.flex-shrink { flex: 0 0 auto; }
.search-field label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.search-field input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.search-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.search-field input[type="date"] { color-scheme: dark; }

.btn-analyze {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  transition: opacity 0.15s, transform 0.1s;
  height: 42px;
}
.btn-analyze:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-analyze:active { transform: translateY(0); }
.btn-analyze:disabled { opacity: 0.6; cursor: not-allowed; }

.search-hints {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.search-hints span {
  font-size: 12px; color: var(--text-muted);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.search-hints span:hover { color: var(--accent); border-color: var(--accent); }

/* ── LOADING ── */
.loading-state {
  max-width: 600px; margin: 60px auto;
  text-align: center; padding: 0 24px;
}
.loading-ring {
  width: 56px; height: 56px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-label { font-size: 16px; font-weight: 600; margin-bottom: 20px; color: var(--text-muted); }
.loading-sources {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.source-chip {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}
.source-chip.active { border-color: var(--accent); color: var(--accent); animation: none; }
@keyframes pulse { 0%,100% { opacity:0.5; } 50% { opacity:1; } }

/* ── SPINNER ── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── DASHBOARD ── */
.dashboard {
  max-width: 1400px; margin: 0 auto;
  padding: 32px 24px 64px;
}
.dash-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.dash-title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.dash-subtitle { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.dash-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.confidence-badge {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; border: 1px solid var(--border); color: var(--text-muted);
}
.confidence-badge.high { border-color: var(--green); color: var(--green); background: rgba(16,185,129,0.08); }
.confidence-badge.moderate { border-color: var(--amber); color: var(--amber); background: rgba(245,158,11,0.08); }
.confidence-badge.low, .confidence-badge.baseline { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.08); }

/* ── KPI STRIP ── */
.kpi-strip {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 8px; }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: #fff; }
.kpi-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Demand card */
.demand-card { background: linear-gradient(135deg, #0f1e38 0%, #111827 100%); border-color: rgba(59,130,246,0.25); }
.demand-score { font-size: 40px !important; }
.demand-label { font-size: 14px !important; font-weight: 600; margin-top: 2px; }
.demand-bar-wrap { margin-top: 10px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.demand-bar { height: 100%; border-radius: 2px; transition: width 0.8s ease; }

/* ── INTERPRETATION BAR ── */
.interpretation-bar {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 10px;
}
.interp-icon { font-size: 16px; flex-shrink: 0; }

/* ── PANELS ── */
.dash-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 20px;
}
.full-width { margin-bottom: 20px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.panel-header h3 { font-size: 14px; font-weight: 600; }
.panel-badge {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 20px; background: rgba(59,130,246,0.12);
  color: var(--accent); border: 1px solid rgba(59,130,246,0.2);
}
.panel-badge.contractor { background: rgba(245,158,11,0.1); color: var(--amber); border-color: rgba(245,158,11,0.25); }
.panel-badge.hotel { background: rgba(99,102,241,0.1); color: #818cf8; border-color: rgba(99,102,241,0.25); }
.panel-badge.property { background: rgba(16,185,129,0.1); color: var(--green); border-color: rgba(16,185,129,0.25); }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted);
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.unit-badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
}
.unit-studio { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.unit-1bed { background: rgba(59,130,246,0.15); color: #93c5fd; }
.unit-2bed { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.unit-3bed { background: rgba(245,158,11,0.15); color: #fcd34d; }

.occ-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; font-size: 13px;
}
.occ-high { color: var(--green); }
.occ-mid { color: var(--amber); }
.occ-low { color: var(--red); }

.src-live { color: var(--green); font-weight: 600; }
.src-baseline { color: var(--text-muted); }
.src-estimate { color: var(--amber); }

.vs-positive { color: var(--green); font-weight: 600; }
.vs-neutral { color: var(--text-muted); }
.vs-negative { color: var(--red); font-weight: 600; }

/* ── CHARTS ── */
.chart-wrap { padding: 20px; height: 240px; }

/* ── CONTRACTOR GRID ── */
.contractor-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px; background: var(--border);
}
.contractor-card {
  background: var(--surface);
  padding: 20px;
}
.contractor-name { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.contractor-stat { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.contractor-stat-label { font-size: 11px; color: var(--text-muted); }
.contractor-stat-val { font-size: 14px; font-weight: 600; }
.demand-tag {
  display: inline-block; margin-top: 8px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
}
.demand-very-high { background: rgba(16,185,129,0.15); color: var(--green); }
.demand-high { background: rgba(59,130,246,0.15); color: #93c5fd; }
.demand-moderate { background: rgba(245,158,11,0.15); color: var(--amber); }
.demand-low { background: rgba(239,68,68,0.15); color: var(--red); }

/* ── PROPERTY MARKET ── */
.property-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; background: var(--border);
}
.property-card {
  background: var(--surface);
  padding: 20px;
}
.property-type { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.6px; }
.property-rent { font-size: 20px; font-weight: 700; color: var(--text); }
.property-rent-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.property-daily { font-size: 12px; color: var(--green); margin-top: 8px; font-weight: 500; }
.property-source { font-size: 10px; color: var(--text-muted); margin-top: 6px; }

/* ── SOURCES ── */
.sources-panel { }
.sources-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; padding: 20px;
}
.source-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.source-item-name { font-size: 13px; font-weight: 600; }
.source-item-cat { font-size: 11px; color: var(--text-muted); }
.source-item-count { font-size: 11px; }
.source-status-live { color: var(--green); }
.source-status-supplemented { color: var(--amber); }
.sources-note {
  font-size: 12px; color: var(--text-muted);
  padding: 0 20px 20px;
  line-height: 1.6;
}

/* ── ANALYSIS WINDOW NOTE (search card) ── */
.analysis-window-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.awn-icon { font-size: 14px; }
.analysis-window-note strong { color: var(--text); }

/* ── METHOD BANNER (dashboard) ── */
.method-banner {
  background: rgba(59,130,246,0.07);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── RADIUS SELECT ── */
.radius-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  height: 42px;
  min-width: 148px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8ba4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.radius-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.radius-select option { background: var(--surface); }

/* ── CATCHMENT PANEL ── */
.catchment-panel .panel-badge.catchment {
  background: rgba(16,185,129,0.12);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.25);
}
.catchment-summary {
  padding: 0 20px 16px;
}
.catchment-stat-row {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.catchment-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  min-width: 160px;
  flex: 1;
}
.catchment-stat-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  display: block; margin-bottom: 4px;
}
.catchment-stat-val {
  font-size: 16px; font-weight: 700; color: var(--green);
}
.source-chip-inline {
  font-size: 10px; font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.source-chip-inline.city {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
}

/* ── DEMAND FORECAST ── */
.panel-badge.forecast {
  background: rgba(139,92,246,0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,0.3);
}

.forecast-header {
  padding: 12px 20px 8px;
}
.forecast-summary-line {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.forecast-trend {
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
}
.forecast-trend.trend-rising  { color: var(--green); }
.forecast-trend.trend-declining { color: var(--red); }
.forecast-trend.trend-stable  { color: var(--amber); }
.forecast-meta {
  font-size: 12px; color: var(--text-muted);
}

.forecast-bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 20px 16px;
}
.forecast-band-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.forecast-band-period {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.7px;
}
.forecast-band-score {
  font-size: 28px; font-weight: 700; color: var(--text);
  line-height: 1;
}
.forecast-band-drivers-label {
  font-size: 10px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-top: 4px;
}
.forecast-drivers {
  margin: 0; padding-left: 14px;
  font-size: 11px; color: var(--text-muted);
  line-height: 1.5;
}
.forecast-drivers li { margin-bottom: 2px; }
.forecast-no-drivers {
  font-size: 11px; color: var(--text-muted); margin: 0;
}

/* Impact pills */
.impact-pill {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
}
.impact-pill.impact-very-high {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.3);
}
.impact-pill.impact-high {
  background: rgba(245,158,11,0.15);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.3);
}
.impact-pill.impact-moderate {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.3);
}
.impact-pill.impact-low {
  background: rgba(122,139,164,0.12);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

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

/* ── UTILS ── */
.hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .kpi-strip .demand-card { grid-column: 1 / -1; }
  .dash-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .search-row { flex-direction: column; }
  .search-field { min-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH — header buttons, sign in / signup pages, trial banner,
   paywall overlay
   ═══════════════════════════════════════════════════════════════ */

/* ── Header auth buttons ── */
.header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.btn-header-signin {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-header-signin:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-header-trial {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-header-trial:hover { opacity: 0.88; }
.header-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.header-trial-pill {
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.header-trial-pill.expired {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border-color: rgba(239,68,68,0.3);
}
.header-trial-pill.active-sub {
  background: rgba(16,185,129,0.15);
  color: #6ee7b7;
  border-color: rgba(16,185,129,0.3);
}
.btn-header-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-header-logout:hover { color: #fff; }

/* ── Trial banner ── */
.trial-banner {
  background: linear-gradient(90deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border-bottom: 1px solid rgba(99,102,241,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  color: #c4b5fd;
}
.trial-banner-icon { font-size: 15px; }
.trial-banner-cta {
  background: rgba(99,102,241,0.3);
  color: #e0e7ff;
  border: 1px solid rgba(99,102,241,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
  transition: background 0.2s;
}
.trial-banner-cta:hover { background: rgba(99,102,241,0.5); }

/* ── Auth pages ── */
body.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
}
.auth-badge {
  display: inline-block;
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}
.auth-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.auth-hint { font-weight: 400; font-size: 11px; color: #64748b; }
.auth-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.auth-field input:focus { border-color: var(--accent); }
.btn-auth {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  transition: opacity 0.2s;
}
.btn-auth:hover { opacity: 0.88; }
.btn-auth:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-trial-info {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trial-feature { font-size: 13px; color: var(--text-muted); }
.trial-feature::first-letter { color: #6ee7b7; }
.auth-switch {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── Paywall overlay ── */
.paywall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,26,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.paywall-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}
.paywall-lock { font-size: 40px; margin-bottom: 16px; }
.paywall-title { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.paywall-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
.paywall-price {
  margin-bottom: 24px;
}
.paywall-amount { font-size: 48px; font-weight: 700; color: var(--text); }
.paywall-period { font-size: 18px; color: var(--text-muted); }
.paywall-features {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.paywall-features li { font-size: 14px; color: var(--text-muted); }
.btn-paywall {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  transition: opacity 0.2s;
  font-family: inherit;
}
.btn-paywall:hover { opacity: 0.88; }
.btn-paywall-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-paywall-outline:hover { border-color: rgba(255,255,255,0.3); color: #fff; opacity: 1; }
.paywall-cancel { font-size: 12px; color: #64748b; margin-top: 4px; }
