/* ── Light Mode (default) ─────────────────── */
:root, [data-theme="light"] {
  --blue: #4A90FF;
  --blue-soft: #6BA3FF;
  --blue-light: #B8D4FF;
  --blue-pale: #E0EDFF;
  --blue-wash: #F0F5FF;
  --coral: #FF6B6B;
  --coral-soft: #FF8E8E;
  --amber: #FFB347;
  --sky: #56CCF2;
  --mint: #5CD6B3;
  --bg: #F5F8FF;
  --text: #1A2744;
  --text-muted: #5A6A85;
  --surface: #FFFFFF;
  --surface-light: #F0F5FF;
  --border: rgba(74, 144, 255, 0.10);
  --border-dashed: #C5D3E8;
  --shadow: 0 2px 16px rgba(74, 144, 255, 0.08);
  --shadow-hover: 0 4px 24px rgba(74, 144, 255, 0.14);
  --input-placeholder: #8898B5;
  --check-border: #C5D3E8;
  --bar-track: #EEF2FA;
  --glow: rgba(74, 144, 255, 0.30);
  --timer-bg: #FFF3E0;
  --timer-color: #D48806;
  --gradient: linear-gradient(135deg, #4A90FF, #56CCF2);
  --gradient-subtle: linear-gradient(135deg, rgba(74,144,255,0.06), rgba(86,204,242,0.04));
  --radius: 24px;
  --radius-sm: 16px;
  --radius-pill: 50px;
}

/* ── Dark Mode (Premium Navy) ─────────────── */
[data-theme="dark"] {
  --blue: #5B9CFF;
  --blue-soft: #7DB3FF;
  --blue-light: #2A4A7F;
  --blue-pale: #1A3158;
  --blue-wash: #0F1F3A;
  --coral: #FF7B7B;
  --coral-soft: #FF9E9E;
  --amber: #FFC267;
  --sky: #6BD4F5;
  --mint: #6EDEC0;
  --bg: #0A1628;
  --text: #E8EDF5;
  --text-muted: #9AACCC;
  --surface: #111E35;
  --surface-light: #0E1A2E;
  --border: rgba(91, 156, 255, 0.12);
  --border-dashed: #2A3F5F;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.35);
  --input-placeholder: #4A6080;
  --check-border: #2A3F5F;
  --bar-track: #1A2D4A;
  --glow: rgba(91, 156, 255, 0.25);
  --timer-bg: rgba(255, 194, 103, 0.1);
  --timer-color: #FFC267;
  --gradient: linear-gradient(135deg, #5B9CFF, #6BD4F5);
  --gradient-subtle: linear-gradient(135deg, rgba(91,156,255,0.08), rgba(107,212,245,0.04));
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s, color 0.3s;
}

body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  transition: background 0.35s;
}
body::before {
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: rgba(74,144,255,0.08);
}
body::after {
  bottom: -50px; left: -50px;
  width: 180px; height: 180px;
  background: rgba(255,107,107,0.06);
}
[data-theme="dark"] body::before { background: rgba(91,156,255,0.06); }
[data-theme="dark"] body::after { background: rgba(255,123,123,0.04); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main { flex: 1; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ── Header ───────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 24px;
  position: relative;
}

.header-actions {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo, .logo-sm {
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -1px;
  display: inline-block;
}
.logo { font-size: 32px; }
.logo-sm { font-size: 22px; }

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  color: var(--text-muted);
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }

/* Language dropdown */
.lang-toggle {
  position: relative;
}
.lang-current {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  padding: 0;
}
.lang-current:hover { border-color: var(--blue); color: var(--blue); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: none;
  z-index: 100;
  min-width: 52px;
}
.lang-dropdown.open { display: flex; flex-direction: column; gap: 2px; }

.lang-option {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.15s;
}
.lang-option:hover { background: var(--surface-light); color: var(--blue); text-decoration: none; }
.lang-option.active { color: var(--blue); background: var(--gradient-subtle); }

/* ── Hero ─────────────────────────────────── */
.hero { text-align: center; margin-bottom: 28px; }
.hero-title { font-size: 28px; font-weight: 800; line-height: 1.2; }
.hero-sub { color: var(--text-muted); font-size: 15px; margin-top: 8px; line-height: 1.5; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Card ─────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Forms ─────────────────────────────────── */
.form-group { margin-bottom: 12px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: var(--surface-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,144,255,0.1); }
.form-input::placeholder { color: var(--input-placeholder); }
textarea.form-input { resize: none; min-height: 60px; }

/* Option rows */
.option-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.option-row .form-input { flex: 1; }
.btn-icon {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.btn-icon:hover { border-color: var(--coral); color: var(--coral); }

.btn-add {
  background: var(--surface-light);
  border: 2px dashed var(--border-dashed);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 12px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-add:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-wash); transform: translateY(-1px); }

/* ── Duration grid ────────────────────────── */
.duration-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.duration-option { cursor: pointer; }
.duration-option input[type="radio"] { display: none; }
.duration-inner {
  background: var(--surface-light);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  text-align: center;
  transition: all 0.25s;
}
.duration-option input[type="radio"]:checked + .duration-inner {
  border-color: var(--blue);
  background: var(--blue-wash);
  box-shadow: 0 2px 12px rgba(74,144,255,0.12);
}
.duration-inner .time { display: block; font-size: 18px; font-weight: 700; }
.duration-inner .unit { display: block; font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* Custom duration */
.custom-duration {
  margin-top: 8px;
  display: none;
  gap: 8px;
  align-items: center;
}
.custom-duration.visible { display: flex; }
.custom-duration .form-input { width: 80px; text-align: center; flex: 0 0 auto; }
.custom-duration span { font-size: 13px; color: var(--text-muted); }

/* ── Toggles ──────────────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  gap: 12px;
}
.toggle-row:last-child { border-bottom: none; padding-bottom: 0; }

.toggle-label { font-size: 14px; font-weight: 500; }
.toggle-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.toggle-input { display: none; }
.toggle {
  width: 44px;
  height: 26px;
  background: var(--bar-track);
  border-radius: 13px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.toggle-input:checked + .toggle {
  background: var(--blue);
}
.toggle-input:checked + .toggle::after {
  transform: translateX(18px);
}

/* ── Buttons ──────────────────────────────── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-pill);
  color: white;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 20px var(--glow);
  transition: all 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px var(--glow); text-decoration: none; }
.btn-primary:active { transform: scale(0.98); }

.btn { padding: 14px 16px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; text-align: center; border: none; text-decoration: none; display: inline-block; transition: all 0.25s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gradient { background: var(--gradient); color: white; box-shadow: 0 4px 20px var(--glow); }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-pill); font-weight: 600; border: none; cursor: pointer; font-family: inherit; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }

/* ── Room header ──────────────────────────── */
.room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 20px;
}

.room-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--timer-bg);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--timer-color);
  transition: background 0.3s, color 0.3s;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse 2s infinite;
  will-change: transform, opacity;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--timer-bg);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
}

/* ── Question card ────────────────────────── */
.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.question-text { font-size: 22px; font-weight: 800; line-height: 1.3; }
.question-desc { font-size: 14px; color: var(--text-muted); margin-top: 8px; line-height: 1.4; }
.question-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ── Vote options ─────────────────────────── */
.vote-option {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 14px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow);
}
.vote-option:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.vote-option:active { transform: scale(0.98); }
.vote-option.voted { border-color: var(--blue); box-shadow: 0 4px 20px rgba(74,144,255,0.15); }

.vote-option .progress-bg {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--gradient-subtle);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.vote-option > * { position: relative; z-index: 1; }

.check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2.5px solid var(--check-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
}
.vote-option.voted .check {
  background: var(--blue);
  border-color: var(--blue);
}
.vote-option.voted .check::after {
  content: '\2713';
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.option-content { flex: 1; min-width: 0; }
.option-name { font-size: 15px; font-weight: 600; }
.vote-count { font-size: 14px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; transition: color 0.2s; }
.vote-option.voted .vote-count { color: var(--blue); }

/* Color-coded vote bars by position */
.vote-option:nth-child(1) .progress-bg { background: linear-gradient(90deg, rgba(74,144,255,0.10), rgba(74,144,255,0.03)); }
.vote-option:nth-child(2) .progress-bg { background: linear-gradient(90deg, rgba(86,204,242,0.10), rgba(86,204,242,0.03)); }
.vote-option:nth-child(3) .progress-bg { background: linear-gradient(90deg, rgba(255,107,107,0.08), rgba(255,107,107,0.02)); }
.vote-option:nth-child(4) .progress-bg { background: linear-gradient(90deg, rgba(92,214,179,0.10), rgba(92,214,179,0.03)); }
.vote-option:nth-child(5) .progress-bg { background: linear-gradient(90deg, rgba(255,179,71,0.10), rgba(255,179,71,0.03)); }

/* ── Add suggestion ───────────────────────── */
.add-suggestion {
  display: flex;
  gap: 8px;
  margin: 4px 0 20px;
}
.add-input {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.add-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,144,255,0.1); }
.add-input::placeholder { color: var(--input-placeholder); }
.add-btn {
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-pill);
  color: white;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 2px 12px var(--glow);
  transition: all 0.25s;
}
.add-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--glow); }

/* ── Share bar ────────────────────────────── */
.share-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.share-icon-link { font-size: 18px; flex-shrink: 0; }
.link-text { flex: 1; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-btn {
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-pill);
  color: white;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 2px 10px var(--glow);
  transition: all 0.25s;
}
.share-btn:hover { transform: translateY(-1px); }

/* ── Winner card ──────────────────────────── */
.winner-card {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 40px var(--glow);
  position: relative;
  overflow: hidden;
}
.winner-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.winner-crown { font-size: 48px; margin-bottom: 12px; }
.winner-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; margin-bottom: 8px; color: white; }
.winner-name { font-size: 28px; font-weight: 900; margin-bottom: 8px; color: white; }
.winner-stats { font-size: 16px; font-weight: 600; opacity: 0.9; color: white; }
.winner-stats strong { font-size: 24px; }

/* ── Results ──────────────────────────────── */
.question-recap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.question-recap .q { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.question-recap .meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; margin-top: 10px; }

.result-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.result-item.first { border-color: var(--blue); box-shadow: 0 4px 20px rgba(74,144,255,0.12); }
.result-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.result-rank { font-size: 14px; font-weight: 800; color: var(--text-muted); width: 24px; }
.result-item.first .result-rank { color: var(--amber); }
.result-name { flex: 1; font-size: 15px; font-weight: 600; }
.result-votes { font-size: 14px; font-weight: 700; color: var(--blue); }

.result-bar-bg { height: 7px; background: var(--bar-track); border-radius: var(--radius-pill); overflow: hidden; }
.result-bar { height: 100%; border-radius: var(--radius-pill); background: var(--gradient); transition: width 0.6s ease; }
.result-item:not(.first) .result-bar { background: var(--check-border); }
.result-percent { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-align: right; }

/* Color-coded result bars */
.result-item:nth-child(1) .result-bar { background: linear-gradient(90deg, #4A90FF, #6BA3FF); }
.result-item:nth-child(2) .result-bar { background: linear-gradient(90deg, #56CCF2, #7DD8F5); }
.result-item:nth-child(3) .result-bar { background: linear-gradient(90deg, #FF6B6B, #FF8E8E); }
.result-item:nth-child(4) .result-bar { background: linear-gradient(90deg, #5CD6B3, #8DE4CC); }
.result-item:nth-child(5) .result-bar { background: linear-gradient(90deg, #FFB347, #FFCC80); }

/* ── Admin ────────────────────────────────── */
.success-card { text-align: center; }
.success-icon { font-size: 48px; margin-bottom: 12px; }
.success-card h2 { font-size: 22px; font-weight: 800; }
.text-muted { color: var(--text-muted); margin-top: 8px; font-size: 14px; }

.link-box {
  background: var(--surface-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.link-url { flex: 1; font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-btn {
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-pill);
  color: white;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 2px 10px var(--glow);
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.share-option:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-2px); }
.share-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
}
.share-icon.whatsapp { background: #25D366; }
.share-icon.sms { background: #34C759; }
.share-icon.more { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.share-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}
.stat { padding: 14px 0; }
.stat-value { display: block; font-size: 24px; font-weight: 800; color: var(--blue); }
.stat-label { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; }

/* ── Footer ───────────────────────────────── */
.footer {
  margin-top: auto;
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.footer a { color: var(--text-muted); }
.footer-links { display: flex; gap: 12px; }

.footer-cta { margin: 24px 0; }
.cta-card {
  display: block;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 22px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
}
.cta-card:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-1px); }
.cta-card strong { display: block; margin-bottom: 4px; }
.cta-card span { color: var(--text-muted); font-size: 13px; }

/* ── SEO sections ─────────────────────────── */
.seo-section {
  margin: 32px 0;
}

.seo-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.3s;
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.step-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.step-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 36px;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.12;
  line-height: 1;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Use cases */
.usecases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.usecase-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.usecase-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.usecase-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.usecase-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Legal page ───────────────────────────── */
.legal-page h1 { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.legal-page h2 { font-size: 16px; font-weight: 700; margin-top: 24px; margin-bottom: 8px; color: var(--blue); }
.legal-page p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 8px; }
.legal-page ul { margin: 8px 0 8px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.legal-page a { color: var(--blue); }

/* ── Ad ───────────────────────────────────── */
.ad-wrap { margin: 20px 0; text-align: center; }
.ad-zone {
  display: block;
  margin: 0 auto;
  background: var(--surface-light);
  border-radius: var(--radius-sm);
  min-height: 50px;
}
.ad-zone.leaderboard { height: 90px; }
.ad-zone.rectangle { height: 250px; max-width: 336px; margin: 0 auto; }

.ad-placeholder {
  background: var(--surface);
  border: 2px dashed var(--border-dashed);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ad-placeholder.leaderboard { height: 90px; }
.ad-placeholder.rectangle { height: 250px; max-width: 336px; margin: 0 auto; }

/* ── Cookie banner ────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  z-index: 1000;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
}
.cookie-banner p { margin: 0 0 16px 0; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn-sm { padding: 10px 20px; font-size: 14px; }

/* ── Desktop ──────────────────────────────── */
@media (min-width: 768px) {
  .container { max-width: 640px; padding: 32px 24px; }
  .hero-title { font-size: 36px; }
  .card { padding: 28px 28px; }
  .question-text { font-size: 26px; }
  .vote-option { padding: 16px 20px; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .seo-title { font-size: 26px; }
}

@media (min-width: 1024px) {
  .container { max-width: 700px; }
}
