/* ============================================================
   RANDORA – Main Stylesheet
   Brand: Electric Retro-Futuristic Dark Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  --bg:         #0B0918;
  --bg2:        #110E22;
  --bg3:        #17132E;
  --card:       #151029;
  --card2:      #1C1638;
  --border:     rgba(123, 47, 255, 0.18);
  --border2:    rgba(0, 229, 192, 0.15);
  --primary:    #7B2FFF;
  --primary-l:  #9D5FFF;
  --accent:     #00E5C0;
  --accent-l:   #33FFDB;
  --danger:     #FF5E7D;
  --warn:       #FFB830;
  --text:       #EDE9FF;
  --text2:      #A99DC4;
  --text3:      #6B618C;
  --glow-p:     rgba(123, 47, 255, 0.35);
  --glow-a:     rgba(0, 229, 192, 0.25);
  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 8px 40px rgba(0,0,0,0.4);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(123,47,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(0,229,192,0.08) 0%, transparent 60%);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Ad Slots ─────────────────────────────────────────────── */
.ad-slot {
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ad-leaderboard { width: 100%; height: 90px; max-width: 728px; margin: 0 auto; }
.ad-below-result { width: 100%; height: 280px; margin: 2rem 0; }
.ad-sidebar { width: 300px; min-height: 250px; flex-shrink: 0; }
.ad-in-content { width: 100%; height: 200px; margin: 2rem 0; }

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 9, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem;
  color: #fff; box-shadow: 0 0 20px var(--glow-p);
}
.logo-name {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem;
  background: linear-gradient(90deg, var(--text) 0%, var(--primary-l) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-link {
  color: var(--text2); text-decoration: none; font-size: 0.875rem;
  padding: 0.4rem 0.8rem; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--card); }
.nav-link.active { color: var(--accent); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text2); border-radius: 2px;
  transition: var(--transition);
}
.hamburger span + span { margin-top: 5px; }

/* ── Ad Bar ──────────────────────────────────────────────── */
.ad-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex; justify-content: center;
}

/* ── Page Layout ─────────────────────────────────────────── */
.page-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 2rem 1.5rem;
}
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem; align-items: start;
}
.main-col { min-width: 0; }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  text-align: center; padding: 5rem 1.5rem 3rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(123,47,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(123,47,255,0.15); border: 1px solid var(--border);
  color: var(--primary-l); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 999px;
  margin-bottom: 1.5rem; position: relative; z-index: 1;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,192,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0,229,192,0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; position: relative; z-index: 1;
  margin-bottom: 1rem;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-l) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text2);
  max-width: 580px; margin: 0 auto 2.5rem;
  position: relative; z-index: 1;
}
.hero-stats {
  display: flex; justify-content: center; gap: 2.5rem;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.5rem; color: var(--accent);
}
.hero-stat .lbl { font-size: 0.8rem; color: var(--text3); }

/* ── Tool Grid ────────────────────────────────────────────── */
.tools-section { padding: 2rem 0; }
.section-label {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, var(--glow-p) 0%, transparent 70%);
  transition: opacity var(--transition);
  pointer-events: none;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 20px 60px rgba(123,47,255,0.2); }
.tool-card:hover::before { opacity: 1; }
.tool-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.tool-card-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem;
}
.tool-card-desc { font-size: 0.875rem; color: var(--text2); line-height: 1.5; }
.tool-card-arrow {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--accent);
}
.tool-card-arrow svg { transition: transform var(--transition); }
.tool-card:hover .tool-card-arrow svg { transform: translateX(4px); }
.tool-badge {
  font-size: 0.7rem; font-weight: 500; padding: 0.2rem 0.6rem;
  border-radius: 999px; background: rgba(0,229,192,0.1);
  border: 1px solid var(--border2); color: var(--accent);
}

/* Icon colors per tool */
.icon-business { background: rgba(123,47,255,0.2); }
.icon-workout   { background: rgba(255,94,125,0.2); }
.icon-startup   { background: rgba(0,229,192,0.15); }
.icon-tod       { background: rgba(255,184,48,0.15); }

/* ── Generator Page Layout ────────────────────────────────── */
.gen-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text3); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text3); }
.gen-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.gen-hero .sub { color: var(--text2); font-size: 1rem; }

/* ── Generator Controls ───────────────────────────────────── */
.gen-controls {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  color: #fff; box-shadow: 0 4px 24px var(--glow-p);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 32px var(--glow-p);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--card2); color: var(--text2);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy {
  background: rgba(0,229,192,0.1); color: var(--accent);
  border: 1px solid var(--border2); font-family: 'Outfit', sans-serif;
  font-weight: 500; font-size: 0.85rem;
}
.btn-copy:hover { background: rgba(0,229,192,0.2); }
.btn-copy.copied { background: rgba(0,229,192,0.2); }
.btn-again { display: none; }
.btn-again.visible { display: inline-flex; }

/* ── Result Area ──────────────────────────────────────────── */
#result-area {
  min-height: 180px; transition: var(--transition);
}
.result-placeholder {
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  color: var(--text3); font-size: 0.95rem;
}
.result-placeholder .placeholder-icon { font-size: 2.5rem; opacity: 0.5; }
#result-area.has-result .result-placeholder { display: none; }
.result-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: none; position: relative; overflow: hidden;
}
#result-area.has-result .result-box { display: block; }
.result-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.result-box.truth-result::before { background: linear-gradient(90deg, #7B2FFF, #9D5FFF); }
.result-box.dare-result::before { background: linear-gradient(90deg, #FF5E7D, #FFB830); }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-revealed { animation: reveal-up 0.4s ease forwards; }

.result-main {
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); line-height: 1.45;
  color: var(--text); margin-bottom: 1.25rem;
}
.result-label {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 1rem;
}
.result-actions {
  display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap;
}

/* Tags */
.result-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.8rem; padding: 0.3rem 0.75rem; border-radius: 999px;
  font-weight: 500;
}
.tag-industry { background: rgba(123,47,255,0.15); color: var(--primary-l); border: 1px solid rgba(123,47,255,0.25); }
.tag-audience { background: rgba(0,229,192,0.1); color: var(--accent); border: 1px solid var(--border2); }
.tag-tech { background: rgba(255,184,48,0.1); color: var(--warn); border: 1px solid rgba(255,184,48,0.2); }
.tag-model { background: rgba(255,94,125,0.1); color: var(--danger); border: 1px solid rgba(255,94,125,0.2); }

/* Workout styles */
.workout-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.workout-icon { font-size: 2.5rem; }
.workout-desc { font-size: 0.875rem; color: var(--text2); }
.workout-section { margin-bottom: 1.25rem; }
.workout-section h4 {
  font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 0.6rem;
}
.exercise-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.exercise-list li {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 0.75rem; align-items: center;
  background: var(--bg2); border-radius: 10px; padding: 0.65rem 1rem;
  font-size: 0.875rem;
}
.ex-name { font-weight: 600; }
.ex-reps { color: var(--accent); font-weight: 500; font-size: 0.82rem; text-align: right; }
.ex-muscles { color: var(--text3); font-size: 0.78rem; text-align: right; white-space: nowrap; }

/* Startup name styles */
.name-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem; margin-bottom: 1rem;
}
.name-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 0.75rem;
  text-align: center; cursor: pointer;
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.name-card:hover { border-color: var(--accent); background: var(--card2); }
.name-card.selected { border-color: var(--accent); background: rgba(0,229,192,0.08); box-shadow: 0 0 20px var(--glow-a); }
.name-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.name-method { font-size: 0.7rem; color: var(--text3); text-transform: capitalize; }
.name-hint { font-size: 0.78rem; color: var(--text3); text-align: center; }

/* Truth or Dare styles */
.tod-modes {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.tod-mode-btn {
  padding: 0.5rem 1.2rem; border-radius: 999px;
  font-family: 'Outfit', sans-serif; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border); background: var(--card);
  color: var(--text2); transition: all var(--transition);
}
.tod-mode-btn:hover, .tod-mode-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(0,229,192,0.1); }
.tod-type-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; padding: 0.4rem 1rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.truth-badge { background: rgba(123,47,255,0.2); color: var(--primary-l); border: 1px solid rgba(123,47,255,0.3); }
.dare-badge { background: rgba(255,94,125,0.2); color: var(--danger); border: 1px solid rgba(255,94,125,0.3); }
.tod-prompt { font-size: clamp(1.15rem, 2.8vw, 1.5rem); }

/* ── SEO Content Section ──────────────────────────────────── */
.content-section {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  margin-top: 2.5rem;
}
.content-section h2 {
  font-size: 1.4rem; margin-bottom: 1rem; color: var(--text);
}
.content-section h3 {
  font-size: 1.1rem; margin: 1.25rem 0 0.5rem; color: var(--text);
}
.content-section p { color: var(--text2); line-height: 1.75; margin-bottom: 0.75rem; font-size: 0.95rem; }
.content-section ul { color: var(--text2); padding-left: 1.25rem; line-height: 2; font-size: 0.95rem; }

/* ── Related Tools ────────────────────────────────────────── */
.related-section { margin-top: 2.5rem; }
.related-section h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.related-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  text-decoration: none; color: var(--text); display: block;
  transition: all var(--transition);
}
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.related-card .rc-icon { font-size: 1.3rem; margin-bottom: 0.5rem; }
.related-card .rc-title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.9rem; }
.related-card .rc-desc { font-size: 0.8rem; color: var(--text3); margin-top: 0.25rem; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem; margin-top: 5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem;
  align-items: center;
}
.footer-brand .logo-name { font-size: 1.1rem; }
.footer-brand p { color: var(--text3); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text3); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 1.5rem auto 0;
  border-top: 1px solid var(--border); padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text3); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 1rem 0; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q::after { content: '+'; color: var(--accent); font-size: 1.25rem; flex-shrink: 0; }
.faq-q.open::after { content: '–'; }
.faq-a { display: none; color: var(--text2); font-size: 0.9rem; line-height: 1.7; padding-bottom: 1rem; }
.faq-a.open { display: block; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-with-sidebar { grid-template-columns: 1fr; }
  .ad-sidebar { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; flex-direction: column; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 64px 0 0;
    background: var(--bg); padding: 1.5rem; gap: 0.5rem; z-index: 99;
  }
  .nav-link { padding: 0.75rem 1rem; font-size: 1rem; }
  .hero { padding: 3rem 1rem 2rem; }
  .exercise-list li { grid-template-columns: 1fr; }
  .ex-reps, .ex-muscles { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { gap: 1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Utility ──────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary-l); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ============================================================
   RANDORA v2 — Extended Styles
   ============================================================ */

/* ── Generator Input Controls ────────────────────────────── */
.gen-inputs {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem;
}
.input-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.input-group { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 140px; }
.input-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text3); font-weight: 600;
}
.input-select {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 0.6rem 0.9rem; font-family: 'Outfit', sans-serif;
  font-size: 0.875rem; cursor: pointer; 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='%236B618C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
  padding-right: 2.2rem; transition: border-color var(--transition);
}
.input-select:hover, .input-select:focus { border-color: var(--primary); outline: none; }
.input-select option { background: var(--bg2); }
.range-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
.range-val {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem;
  color: var(--accent); text-align: right;
}
input[type=range] {
  -webkit-appearance: none; width: 100%; height: 4px;
  background: var(--bg2); border-radius: 2px; outline: none;
  accent-color: var(--primary);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--primary);
  cursor: pointer; box-shadow: 0 0 8px var(--glow-p);
  transition: transform var(--transition);
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.toggle-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toggle-chip {
  padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border); background: var(--bg2);
  color: var(--text2); transition: all var(--transition); user-select: none;
}
.toggle-chip.on, .toggle-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,229,192,0.1); }
.toggle-chip.on { box-shadow: 0 0 8px rgba(0,229,192,0.2); }
.input-number {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 0.6rem 0.9rem; font-family: 'Outfit', sans-serif;
  font-size: 0.875rem; width: 100%; transition: border-color var(--transition);
}
.input-number:focus { border-color: var(--primary); outline: none; }

/* ── Password Strength ───────────────────────────────────── */
.strength-bar {
  display: flex; gap: 3px; margin-top: 0.75rem;
}
.strength-seg {
  height: 4px; flex: 1; border-radius: 2px; background: var(--bg2);
  transition: background 0.3s;
}
.strength-label {
  font-size: 0.75rem; margin-top: 0.4rem; font-weight: 600;
}
.strength-weak   .strength-seg:nth-child(-n+1) { background: var(--danger); }
.strength-fair   .strength-seg:nth-child(-n+2) { background: var(--warn); }
.strength-strong .strength-seg:nth-child(-n+3) { background: #4CAF50; }
.strength-very-strong .strength-seg { background: var(--accent); }
.pw-item {
  background: var(--bg2); border-radius: 10px; padding: 0.75rem 1rem;
  font-family: 'Courier New', monospace; font-size: 0.9rem;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem; border: 1px solid var(--border);
  word-break: break-all; gap: 1rem;
}
.pw-copy-btn {
  background: none; border: 1px solid var(--border2); color: var(--accent);
  border-radius: 6px; padding: 0.25rem 0.6rem; font-size: 0.72rem;
  cursor: pointer; white-space: nowrap; transition: all var(--transition);
}
.pw-copy-btn:hover { background: rgba(0,229,192,0.1); }

/* ── Color Palette ───────────────────────────────────────── */
.color-grid {
  display: flex; gap: 0; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 1rem; min-height: 140px;
}
.color-swatch {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0.75rem; cursor: pointer; position: relative;
  transition: flex var(--transition);
}
.color-swatch:hover { flex: 1.4; }
.color-swatch .swatch-info {
  background: rgba(0,0,0,0.55); border-radius: 6px; padding: 0.4rem 0.6rem;
  font-size: 0.7rem; line-height: 1.5; backdrop-filter: blur(4px);
}
.color-swatch .swatch-hex { font-weight: 700; font-family: monospace; }
.color-swatch .swatch-rgb, .color-swatch .swatch-hsl { color: rgba(255,255,255,0.7); font-size: 0.65rem; }
.color-lock {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.5); border: none; border-radius: 50%;
  width: 24px; height: 24px; cursor: pointer; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: white;
}
.color-lock.locked { background: var(--accent); color: var(--bg); }
.copied-flash {
  position: absolute; inset: 0; background: rgba(0,229,192,0.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: white;
  animation: flash-out 0.6s ease forwards;
}
@keyframes flash-out { 0%{opacity:1} 100%{opacity:0;pointer-events:none} }

/* ── Coin / Dice ─────────────────────────────────────────── */
.dice-display {
  text-align: center; padding: 2rem 0;
}
.dice-face {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100px; height: 100px; border-radius: 20px;
  background: linear-gradient(135deg, var(--card2), var(--bg3));
  border: 2px solid var(--primary); font-size: 2.5rem;
  font-family: 'Syne', sans-serif; font-weight: 800;
  box-shadow: 0 0 40px var(--glow-p);
  animation: dice-pop 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
@keyframes dice-pop {
  0% { transform: scale(0.5) rotate(-20deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.coin-face {
  display: inline-flex; align-items: center; justify-content: center;
  width: 120px; height: 120px; border-radius: 50%;
  font-size: 3rem; animation: coin-spin 0.5s ease;
  box-shadow: 0 0 40px var(--glow-p);
  border: 3px solid var(--primary);
}
@keyframes coin-spin {
  0% { transform: rotateY(0) scale(0.3); opacity: 0; }
  50% { transform: rotateY(180deg) scale(0.8); }
  100% { transform: rotateY(360deg) scale(1); opacity: 1; }
}
.dice-multi {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.dice-multi .dice-face { width: 70px; height: 70px; font-size: 1.8rem; border-radius: 14px; }
.dice-total {
  font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--accent); margin-top: 1rem;
}
.roll-history {
  margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem;
}
.roll-history-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text3); margin-bottom: 0.5rem;
}
.roll-history-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.roll-chip {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.2rem 0.5rem; font-size: 0.75rem; color: var(--text2);
}
.prob-note {
  font-size: 0.78rem; color: var(--text3); margin-top: 0.75rem;
}

/* ── Number Grid ─────────────────────────────────────────── */
.number-grid {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.number-chip {
  background: linear-gradient(135deg, rgba(123,47,255,0.15), rgba(0,229,192,0.1));
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0.6rem 1rem; font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.1rem; color: var(--text);
  min-width: 60px; text-align: center;
}

/* ── Quote Generator ─────────────────────────────────────── */
.quote-text {
  font-family: 'Syne', sans-serif; font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600; line-height: 1.55; color: var(--text);
  border-left: 3px solid var(--primary); padding-left: 1.25rem;
  margin-bottom: 1rem; font-style: italic;
}
.quote-author {
  font-size: 0.9rem; color: var(--accent); font-weight: 600;
}
.quote-category-tag {
  display: inline-flex; margin-top: 0.75rem; padding: 0.3rem 0.8rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 500;
  background: rgba(123,47,255,0.15); color: var(--primary-l);
  border: 1px solid rgba(123,47,255,0.25);
}

/* ── Country / Travel ────────────────────────────────────── */
.destination-card {
  background: var(--bg2); border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.destination-name {
  font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800;
  margin-bottom: 0.25rem;
}
.destination-flag { font-size: 2.5rem; margin-right: 0.5rem; }
.destination-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0;
}
.destination-fact {
  font-size: 0.875rem; color: var(--text2); line-height: 1.6;
  border-left: 2px solid var(--accent); padding-left: 0.75rem;
  margin-top: 0.75rem;
}
.things-to-do {
  margin-top: 0.75rem;
}
.things-to-do h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text3); margin-bottom: 0.5rem;
}
.things-to-do ol {
  padding-left: 1.25rem; color: var(--text2); font-size: 0.875rem; line-height: 1.9;
}

/* ── Meal / Recipe ───────────────────────────────────────── */
.meal-card { }
.meal-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.5rem;
}
.meal-desc {
  color: var(--text2); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.65;
}
.ingredients-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem;
}
.ingredient-tag {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.25rem 0.7rem;
  font-size: 0.8rem; color: var(--text2);
}
.meal-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.meal-meta-item {
  font-size: 0.8rem; display: flex; align-items: center; gap: 0.35rem;
  color: var(--text3);
}
.meal-meta-item strong { color: var(--text); }

/* ── Movie / Book ────────────────────────────────────────── */
.media-card { }
.media-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.35rem;
}
.media-year { color: var(--text3); font-size: 0.85rem; margin-bottom: 0.75rem; }
.media-desc {
  color: var(--text2); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1rem;
}
.media-blurb {
  background: rgba(0,229,192,0.07); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 0.85rem 1rem;
  font-size: 0.875rem; color: var(--text2); line-height: 1.6;
}
.media-blurb strong { color: var(--accent); }
.media-skip {
  background: none; border: 1px solid var(--border); color: var(--text3);
  border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.8rem;
  cursor: pointer; transition: all var(--transition); margin-top: 1rem;
}
.media-skip:hover { border-color: var(--danger); color: var(--danger); }

/* ── Name Generator ──────────────────────────────────────── */
.name-big-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}
.name-big-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 0.75rem; text-align: center;
  cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.name-big-card:hover { border-color: var(--accent); background: var(--card2); }
.name-big-card.selected { border-color: var(--accent); background: rgba(0,229,192,0.08); box-shadow: 0 0 16px var(--glow-a); }
.name-big-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; }
.name-big-origin { font-size: 0.7rem; color: var(--text3); }

/* ── Trivia ──────────────────────────────────────────────── */
.trivia-q {
  font-family: 'Syne', sans-serif; font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600; line-height: 1.5; margin-bottom: 1.5rem;
}
.trivia-difficulty {
  display: inline-flex; padding: 0.2rem 0.7rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; margin-bottom: 1rem;
}
.diff-easy   { background: rgba(76,175,80,0.15); color: #4CAF50; border: 1px solid rgba(76,175,80,0.3); }
.diff-medium { background: rgba(255,184,48,0.15); color: var(--warn); border: 1px solid rgba(255,184,48,0.3); }
.diff-hard   { background: rgba(255,94,125,0.15); color: var(--danger); border: 1px solid rgba(255,94,125,0.3); }
.trivia-reveal-btn {
  background: var(--card2); border: 1px solid var(--border); color: var(--text2);
  border-radius: var(--radius); padding: 0.65rem 1.5rem;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.875rem;
  cursor: pointer; transition: all var(--transition);
}
.trivia-reveal-btn:hover { border-color: var(--accent); color: var(--accent); }
.trivia-answer {
  display: none; background: rgba(0,229,192,0.07);
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 1rem; margin-top: 1rem;
}
.trivia-answer.shown { display: block; animation: reveal-up 0.3s ease; }
.trivia-answer-text { color: var(--accent); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.trivia-funfact { color: var(--text2); font-size: 0.875rem; line-height: 1.6; }
.score-tracker {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
  padding: 0.75rem 1rem; background: var(--bg2); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.score-label { font-size: 0.8rem; color: var(--text3); }
.score-val { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--accent); }
.score-btn-group { display: flex; gap: 0.5rem; margin-left: auto; }
.score-btn {
  padding: 0.3rem 0.75rem; border-radius: 8px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer; border: 1px solid;
  transition: all var(--transition);
}
.score-correct { background: rgba(76,175,80,0.1); border-color: #4CAF50; color: #4CAF50; }
.score-wrong { background: rgba(255,94,125,0.1); border-color: var(--danger); color: var(--danger); }
.score-correct:hover { background: rgba(76,175,80,0.25); }
.score-wrong:hover { background: rgba(255,94,125,0.25); }

/* ── Writing Prompt ──────────────────────────────────────── */
.prompt-text {
  font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.75;
  color: var(--text); margin-bottom: 1.25rem;
}
.prompt-meta { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prompt-meta-row { font-size: 0.875rem; color: var(--text2); }
.prompt-meta-row strong { color: var(--accent); }
.prompt-challenge {
  background: rgba(123,47,255,0.1); border: 1px solid rgba(123,47,255,0.25);
  border-radius: var(--radius); padding: 0.85rem 1rem; margin-top: 1rem;
  font-size: 0.875rem; color: var(--primary-l); line-height: 1.6;
}
.prompt-challenge strong { display: block; margin-bottom: 0.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.timer-display {
  font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800;
  color: var(--accent); text-align: center; margin: 1rem 0;
  text-shadow: 0 0 20px var(--glow-a);
}
.timer-display.warning { color: var(--danger); text-shadow: 0 0 20px rgba(255,94,125,0.4); }
.timer-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* ── Debate Topic ────────────────────────────────────────── */
.debate-topic-text {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); line-height: 1.45; margin-bottom: 0.75rem;
}
.debate-context { font-size: 0.9rem; color: var(--text2); line-height: 1.65; margin-bottom: 1.25rem; }
.debate-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.debate-side {
  background: var(--bg2); border-radius: var(--radius); padding: 1rem;
  border-top: 3px solid;
}
.debate-side.for-side { border-color: #4CAF50; }
.debate-side.against-side { border-color: var(--danger); }
.debate-side h4 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.for-side h4 { color: #4CAF50; }
.against-side h4 { color: var(--danger); }
.debate-side ul { padding-left: 1.1rem; font-size: 0.82rem; color: var(--text2); line-height: 1.8; }
@media (max-width: 520px) {
  .debate-sides { grid-template-columns: 1fr; }
}

/* ── Gift Idea ───────────────────────────────────────────── */
.gift-card { }
.gift-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: 0.4rem;
}
.gift-desc { color: var(--text2); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1rem; }
.gift-why {
  background: rgba(0,229,192,0.07); border-radius: var(--radius);
  border: 1px solid var(--border2); padding: 0.85rem 1rem;
  font-size: 0.875rem; color: var(--text2); margin-bottom: 1rem;
}
.gift-why strong { color: var(--accent); display: block; margin-bottom: 0.25rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.gift-search-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,165,0,0.12); border: 1px solid rgba(255,165,0,0.3);
  color: #FFB830; border-radius: var(--radius); padding: 0.5rem 1rem;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: all var(--transition);
}
.gift-search-link:hover { background: rgba(255,165,0,0.22); color: #FFD060; }

/* ── Share & Favourite Buttons ───────────────────────────── */
.btn-share {
  background: rgba(123,47,255,0.1); color: var(--primary-l);
  border: 1px solid rgba(123,47,255,0.3); font-family: 'Outfit', sans-serif;
  font-weight: 500; font-size: 0.85rem;
}
.btn-share:hover { background: rgba(123,47,255,0.2); }
.btn-fav {
  background: rgba(255,94,125,0.08); color: var(--danger);
  border: 1px solid rgba(255,94,125,0.2); font-family: 'Outfit', sans-serif;
  font-weight: 500; font-size: 0.85rem;
}
.btn-fav:hover { background: rgba(255,94,125,0.18); }
.btn-fav.saved { background: rgba(255,94,125,0.2); border-color: var(--danger); }

/* ── Session History Panel ───────────────────────────────── */
.history-panel {
  margin-top: 2rem; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.history-toggle {
  width: 100%; background: var(--card); border: none; color: var(--text2);
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.875rem;
  padding: 0.9rem 1.25rem; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  transition: color var(--transition);
}
.history-toggle:hover { color: var(--text); }
.history-toggle::after { content: '▾'; font-size: 1rem; transition: transform var(--transition); }
.history-toggle.open::after { transform: rotate(180deg); }
.history-list { display: none; padding: 0; background: var(--bg2); }
.history-list.open { display: block; }
.history-item {
  padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border);
  cursor: pointer; font-size: 0.85rem; color: var(--text2); line-height: 1.5;
  transition: background var(--transition);
}
.history-item:last-child { border-bottom: none; }
.history-item:hover { background: var(--card); color: var(--text); }
.history-empty {
  padding: 1.25rem; font-size: 0.85rem; color: var(--text3); text-align: center;
}

/* ── Saved Page ──────────────────────────────────────────── */
.saved-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.saved-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.saved-hero p { color: var(--text2); font-size: 0.95rem; }
.saved-empty {
  background: var(--card); border: 2px dashed var(--border);
  border-radius: var(--radius-lg); padding: 4rem 2rem; text-align: center;
  color: var(--text3);
}
.saved-empty .empty-icon { font-size: 3rem; opacity: 0.4; margin-bottom: 1rem; }
.saved-empty p { font-size: 0.95rem; margin-top: 0.5rem; }
.saved-group { margin-bottom: 2rem; }
.saved-group-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--text); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.saved-group-title .count-badge {
  background: rgba(0,229,192,0.1); border: 1px solid var(--border2);
  color: var(--accent); border-radius: 999px; font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
}
.saved-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 0.5rem; display: flex; align-items: flex-start;
  gap: 1rem;
}
.saved-item-content { flex: 1; min-width: 0; font-size: 0.875rem; color: var(--text2); line-height: 1.6; }
.saved-item-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.saved-action-btn {
  background: none; border: 1px solid var(--border); color: var(--text3);
  border-radius: 8px; padding: 0.3rem 0.65rem; font-size: 0.72rem;
  cursor: pointer; transition: all var(--transition);
}
.saved-action-btn:hover { border-color: var(--accent); color: var(--accent); }
.saved-action-btn.remove-btn:hover { border-color: var(--danger); color: var(--danger); }
.saved-limit-warn {
  background: rgba(255,184,48,0.1); border: 1px solid rgba(255,184,48,0.3);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  font-size: 0.85rem; color: var(--warn); margin-bottom: 1rem;
}

/* ── Category Filter Tabs ────────────────────────────────── */
.cat-filter {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.cat-tab {
  padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border); background: var(--card);
  color: var(--text2); transition: all var(--transition);
}
.cat-tab:hover { border-color: var(--primary); color: var(--text); }
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 16px var(--glow-p); }
.tool-card[data-hidden] { display: none !important; }

/* ── Surprise Me Button (nav) ────────────────────────────── */
.btn-surprise {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none; border-radius: 999px;
  padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition); box-shadow: 0 0 16px var(--glow-p);
  font-family: 'Syne', sans-serif; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.btn-surprise:hover { transform: translateY(-1px); box-shadow: 0 0 24px var(--glow-p); opacity: 0.95; }

/* ── Hero CTA Buttons ────────────────────────────────────── */
.hero-ctas {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.5rem; position: relative; z-index: 1;
}
.hero-cta-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  color: #fff; border: none; border-radius: var(--radius);
  padding: 0.85rem 2rem; font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1rem; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 24px var(--glow-p); transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--glow-p); }
.hero-cta-secondary {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.85rem 2rem; font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: all var(--transition); display: inline-flex; align-items: center; gap: 0.5rem;
}
.hero-cta-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Tool icon colors for new generators */
.icon-number    { background: rgba(0,229,192,0.15); }
.icon-password  { background: rgba(255,94,125,0.15); }
.icon-color     { background: rgba(255,184,48,0.15); }
.icon-country   { background: rgba(123,47,255,0.2); }
.icon-meal      { background: rgba(255,120,50,0.15); }
.icon-quote     { background: rgba(200,160,255,0.15); }
.icon-movie     { background: rgba(0,229,192,0.15); }
.icon-name      { background: rgba(255,94,125,0.15); }
.icon-dice      { background: rgba(255,184,48,0.15); }
.icon-travel    { background: rgba(80,200,120,0.15); }
.icon-book      { background: rgba(123,47,255,0.2); }
.icon-trivia    { background: rgba(0,180,255,0.15); }
.icon-writing   { background: rgba(255,120,180,0.15); }
.icon-debate    { background: rgba(255,100,100,0.15); }
.icon-gift      { background: rgba(255,184,48,0.15); }
.icon-saved     { background: rgba(255,94,125,0.15); }

/* ============================================================
   RANDORA v2 — Extended Component Styles
   ============================================================ */

/* ── Input controls for new generators ─────────────────────── */
.gen-filters {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.75rem; }
.filter-row:last-child { margin-bottom: 0; }
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; min-width: 130px; flex: 1; }
.filter-group label { font-size: 0.78rem; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.gen-select {
  background: var(--card2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.875rem;
  padding: 0.6rem 2rem 0.6rem 0.85rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B618C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color var(--transition);
}
.gen-select:focus { outline: none; border-color: var(--primary); }
.gen-input-num {
  background: var(--card2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  padding: 0.6rem 0.85rem; width: 100%; transition: border-color var(--transition);
}
.gen-input-num:focus { outline: none; border-color: var(--primary); }
.gen-slider { width: 100%; accent-color: var(--primary); cursor: pointer; height: 4px; margin-top: 0.35rem; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.toggle-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.83rem; color: var(--text2); cursor: pointer;
  padding: 0.4rem 0.8rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card);
  transition: all var(--transition); user-select: none;
}
.toggle-label:has(input:checked) { border-color: var(--accent); color: var(--accent); background: rgba(0,229,192,0.1); }
.toggle-label input { position: absolute; opacity: 0; width: 0; height: 0; }
.mode-btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Surprise Me nav button ──────────────────────────────────── */
.btn-surprise {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 999px;
  background: rgba(0,229,192,0.1); border: 1px solid var(--border2);
  color: var(--accent); font-family: 'Outfit', sans-serif;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-surprise:hover { background: rgba(0,229,192,0.2); transform: translateY(-1px); }

/* ── Result actions (share + save) ──────────────────────────── */
.result-actions-bar {
  display: flex; gap: 0.6rem; margin-top: 1.25rem;
  padding-top: 1rem; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.btn-action {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.8rem;
  font-family: 'Outfit', sans-serif; font-weight: 500; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg2); color: var(--text2);
  transition: all var(--transition);
}
.btn-action:hover { border-color: var(--accent); color: var(--accent); }
.btn-action.saved { border-color: var(--danger); color: var(--danger); background: rgba(255,94,125,0.08); }

/* ── Color palette ───────────────────────────────────────────── */
.palette-grid { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.swatch-item { flex: 1; min-width: 80px; max-width: 160px; cursor: pointer; }
.swatch-box {
  height: 90px; border-radius: var(--radius); margin-bottom: 0.5rem;
  transition: transform var(--transition); border: 2px solid transparent; position: relative;
}
.swatch-item:hover .swatch-box { transform: scale(1.04); }
.swatch-box.locked { border-color: var(--accent) !important; }
.swatch-box.locked::after { content: '🔒'; position: absolute; top:6px; right:6px; font-size:0.75rem; }
.swatch-hex { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--text); margin-bottom: 0.2rem; }
.swatch-vals { font-size: 0.7rem; color: var(--text3); line-height: 1.5; }
.copy-hint { font-size: 0.7rem; color: var(--text3); margin-top: 0.75rem; text-align: center; }

/* ── Coin & Dice ─────────────────────────────────────────────── */
.coin-display { text-align: center; padding: 1.5rem 0; font-size: 5rem; }
.coin-label { text-align: center; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--text); }
.dice-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1rem 0; }
.die-face {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--card2), var(--bg3));
  border: 2px solid var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem;
  color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.dice-total { text-align: center; margin-top: 0.5rem; font-size: 1rem; color: var(--text3); }
.roll-history { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.roll-history h5 { font-size: 0.75rem; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.roll-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.roll-pill { font-size: 0.78rem; color: var(--text3); background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 0.25rem 0.6rem; }

/* ── History panel ───────────────────────────────────────────── */
.history-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: 2rem; overflow: hidden; }
.history-header { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1.25rem; cursor: pointer; user-select: none; transition: background var(--transition); }
.history-header:hover { background: var(--card); }
.history-header span { font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text2); }
.history-header .hist-toggle { color: var(--text3); font-size: 0.8rem; }
.history-list { padding: 0.5rem 1rem 1rem; display: none; border-top: 1px solid var(--border); }
.history-list.open { display: block; }
.history-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 0.5rem; cursor: pointer; transition: all var(--transition); font-size: 0.85rem; color: var(--text2); }
.history-item:hover { border-color: var(--accent); color: var(--text); }
.history-item:last-child { margin-bottom: 0; }
.history-empty { color: var(--text3); font-size: 0.875rem; padding: 0.5rem 0; }

/* ── Toast ───────────────────────────────────────────────────── */
.randora-toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--card2); border: 1px solid var(--border); color: var(--text);
  padding: 0.75rem 1.5rem; border-radius: var(--radius); font-size: 0.875rem;
  opacity: 0; transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999; pointer-events: none; box-shadow: var(--shadow); white-space: nowrap;
}
.randora-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Category filter tabs (homepage) ─────────────────────────── */
.cat-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cat-tab {
  padding: 0.45rem 1rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text2); transition: all var(--transition); font-family: 'Outfit', sans-serif;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary-l); }
.cat-tab.active { background: rgba(123,47,255,0.15); border-color: var(--primary); color: var(--primary-l); }
.tool-card.hidden { display: none; }

/* ── Button loading state ────────────────────────────────────── */
.btn-primary.loading { opacity: 0.7; cursor: wait; }
.gen-btn-text { display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-primary.loading .gen-btn-text::after {
  content: ''; display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Improved result animation ───────────────────────────────── */
@keyframes result-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.result-revealed { animation: result-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important; }

/* ── Trivia ──────────────────────────────────────────────────── */
.trivia-question { font-size: clamp(1.1rem,2.2vw,1.35rem); font-family: 'Syne', sans-serif; font-weight: 600; line-height: 1.4; margin-bottom: 1.25rem; color: var(--text); }
.trivia-answer { background: rgba(0,229,192,0.08); border: 1px solid var(--border2); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--accent); font-weight: 600; display: none; margin-bottom: 0.75rem; }
.trivia-answer.revealed { display: block; }
.trivia-fact { background: var(--bg2); border-radius: var(--radius); padding: 0.875rem 1.25rem; font-size: 0.875rem; color: var(--text2); display: none; margin-top: 0.5rem; }
.trivia-fact.revealed { display: block; }
.score-bar { display: flex; align-items: center; justify-content: space-between; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.875rem; }
.score-label { color: var(--text3); }
.score-val { color: var(--accent); font-family: 'Syne', sans-serif; font-weight: 700; }

/* ── Writing prompt timer ────────────────────────────────────── */
.timer-display { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.5rem; color: var(--accent); text-align: center; padding: 0.5rem; display: none; }
.timer-display.active { display: block; }
.timer-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; align-items: center; }

/* ── Quote ───────────────────────────────────────────────────── */
.quote-text { font-size: clamp(1.1rem,2.5vw,1.45rem); font-family: 'Syne', sans-serif; font-weight: 600; line-height: 1.55; color: var(--text); position: relative; padding-left: 1.5rem; margin-bottom: 1rem; }
.quote-text::before { content: '"'; position: absolute; left: 0; top: -0.25rem; font-size: 2.5rem; color: var(--primary); line-height: 1; font-weight: 800; }
.quote-author { font-size: 0.9rem; color: var(--text3); margin-bottom: 0.75rem; }

/* ── Book ────────────────────────────────────────────────────── */
.book-cover-placeholder { width: 70px; height: 95px; border-radius: 6px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.book-header { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.book-meta { flex: 1; }
.book-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 0.25rem; }
.book-author { font-size: 0.875rem; color: var(--text3); margin-bottom: 0.4rem; }

/* ── Travel ──────────────────────────────────────────────────── */
.travel-city { font-size: 1.6rem; font-family: 'Syne', sans-serif; font-weight: 800; margin-bottom: 0.25rem; }
.travel-tagline { font-style: italic; color: var(--text3); font-size: 0.9rem; margin-bottom: 1rem; }
.travel-things ol { padding-left: 1.25rem; color: var(--text2); font-size: 0.9rem; line-height: 2.2; }

/* ── Gift ────────────────────────────────────────────────────── */
.gift-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 0.5rem; }
.gift-why { background: rgba(123,47,255,0.08); border-left: 3px solid var(--primary); padding: 0.75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text2); font-size: 0.9rem; margin-top: 0.75rem; }
.gift-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; padding: 0.5rem 1.25rem; border-radius: 999px; background: rgba(255,184,48,0.1); border: 1px solid rgba(255,184,48,0.2); color: var(--warn); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: all var(--transition); }
.gift-link:hover { background: rgba(255,184,48,0.2); }

/* ── Number result ───────────────────────────────────────────── */
.number-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }
.number-badge { background: rgba(123,47,255,0.15); border: 1px solid rgba(123,47,255,0.25); border-radius: 10px; padding: 0.5rem 1rem; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--primary-l); }

/* ── Password ────────────────────────────────────────────────── */
.password-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.password-text { font-family: 'Courier New', Courier, monospace; font-size: 0.95rem; color: var(--text); word-break: break-all; flex: 1; }
.pw-copy-btn { background: none; border: none; cursor: pointer; color: var(--text3); font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 6px; transition: all var(--transition); flex-shrink: 0; }
.pw-copy-btn:hover { color: var(--accent); background: rgba(0,229,192,0.1); }
.strength-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 999px; margin-top: 0.5rem; }
.str-weak { background: rgba(255,94,125,0.15); color: var(--danger); }
.str-fair { background: rgba(255,184,48,0.15); color: var(--warn); }
.str-strong { background: rgba(0,229,192,0.1); color: var(--accent); }
.str-vstrong { background: rgba(123,47,255,0.15); color: var(--primary-l); }

/* ── Meal ────────────────────────────────────────────────────── */
.meal-ingredients { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.ingredient-tag { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 0.25rem 0.65rem; font-size: 0.78rem; color: var(--text2); }

/* ── Name output ─────────────────────────────────────────────── */
.name-output-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 0.6rem; margin-bottom: 0.75rem; }
.name-output-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1rem; text-align: center; cursor: pointer; transition: all var(--transition); }
.name-output-item:hover { border-color: var(--accent); color: var(--accent); }

/* ── Movie ───────────────────────────────────────────────────── */
.movie-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; margin-bottom: 0.25rem; }
.movie-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--text3); margin-bottom: 0.5rem; }
.movie-why { background: var(--bg2); border-radius: var(--radius); padding: 0.875rem 1.25rem; font-size: 0.9rem; color: var(--text2); font-style: italic; margin-top: 0.75rem; border-left: 3px solid var(--accent); }

/* ── Debate ──────────────────────────────────────────────────── */
.debate-topic-text { font-size: clamp(1.1rem,2.5vw,1.4rem); font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 0.5rem; }
.debate-context { font-size: 0.9rem; color: var(--text3); margin-bottom: 1rem; font-style: italic; }
.debate-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.debate-side { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.debate-side-title { font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.side-for .debate-side-title { color: var(--accent); }
.side-against .debate-side-title { color: var(--danger); }
.debate-side ul { padding-left: 1rem; color: var(--text2); font-size: 0.83rem; line-height: 1.8; }

/* ── Country/City ────────────────────────────────────────────── */
.location-flag { font-size: 3.5rem; text-align: center; padding: 0.5rem 0; }
.location-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; text-align: center; margin-bottom: 0.25rem; }
.location-sub { text-align: center; color: var(--text3); font-size: 0.9rem; margin-bottom: 1rem; }
.location-fact { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--text2); line-height: 1.65; }

/* ── Saved page ──────────────────────────────────────────────── */
.saved-group { margin-bottom: 2.5rem; }
.saved-group-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.saved-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 1rem; }
.saved-item-text { flex: 1; font-size: 0.9rem; color: var(--text2); line-height: 1.6; word-break: break-word; }
.saved-item-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.btn-remove { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 0.3rem 0.6rem; font-size: 0.75rem; color: var(--text3); cursor: pointer; transition: all var(--transition); }
.btn-remove:hover { border-color: var(--danger); color: var(--danger); }
.saved-empty { text-align: center; padding: 4rem 2rem; background: var(--bg2); border: 2px dashed var(--border); border-radius: var(--radius-lg); color: var(--text3); }
.saved-empty h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.saved-empty p { font-size: 0.9rem; margin-top: 0.5rem; }
.saved-count-warning { background: rgba(255,184,48,0.1); border: 1px solid rgba(255,184,48,0.2); border-radius: var(--radius); padding: 0.75rem 1rem; color: var(--warn); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* ── New icon colors ─────────────────────────────────────────── */
.icon-number    { background: rgba(123,47,255,0.2); }
.icon-password  { background: rgba(255,94,125,0.15); }
.icon-color     { background: rgba(0,229,192,0.15); }
.icon-country   { background: rgba(255,184,48,0.15); }
.icon-meal      { background: rgba(0,229,192,0.15); }
.icon-quote     { background: rgba(123,47,255,0.15); }
.icon-movie     { background: rgba(255,94,125,0.15); }
.icon-name      { background: rgba(123,47,255,0.2); }
.icon-dice      { background: rgba(255,184,48,0.15); }
.icon-travel    { background: rgba(0,229,192,0.15); }
.icon-book      { background: rgba(123,47,255,0.15); }
.icon-trivia    { background: rgba(0,229,192,0.2); }
.icon-writing   { background: rgba(255,94,125,0.15); }
.icon-debate    { background: rgba(123,47,255,0.15); }
.icon-gift      { background: rgba(255,184,48,0.2); }

/* ── Responsive additions ────────────────────────────────────── */
@media (max-width: 640px) {
  .debate-sides { grid-template-columns: 1fr; }
  .palette-grid { flex-direction: column; }
  .swatch-item { max-width: 100%; }
  .filter-row { flex-direction: column; }
  .filter-group { min-width: 100%; }
  .filter-group:has(.gen-slider) { min-width: 100%; }
}

/* ── Controls Grid ──────────────────────────────────────── */
.controls-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.control-group { display: flex; flex-direction: column; gap: 0.4rem; }
.control-group label { font-size: 0.78rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.04em; }
.ctrl-input, .ctrl-select {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius); padding: 0.55rem 0.75rem; font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; width: 100%; transition: border-color var(--transition);
}
.ctrl-input:focus, .ctrl-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--glow-p); }
.ctrl-range { width: 100%; accent-color: var(--primary); cursor: pointer; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.toggle-chip {
  background: var(--card); border: 1px solid var(--border); color: var(--text2);
  border-radius: 999px; padding: 0.3rem 0.75rem; font-size: 0.78rem; cursor: pointer;
  transition: all var(--transition); font-family: 'Outfit', sans-serif;
}
.toggle-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.toggle-chip:hover { border-color: var(--primary); color: var(--text); }

/* ── Share / Fav buttons ─────────────────────────────────── */
.btn-share {
  background: none; border: 1px solid var(--border); color: var(--text2);
  border-radius: var(--radius); padding: 0.55rem 1rem; font-size: 0.85rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: all var(--transition); font-family: 'Outfit', sans-serif;
}
.btn-share:hover { border-color: var(--accent); color: var(--accent); }
.btn-fav {
  background: none; border: 1px solid var(--border); color: var(--text2);
  border-radius: var(--radius); padding: 0.55rem 0.75rem; font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition);
}
.btn-fav:hover, .btn-fav.saved { border-color: #ff6b8a; color: #ff6b8a; }

/* ── History Panel ───────────────────────────────────────── */
.history-panel { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.history-toggle {
  width: 100%; background: var(--card2); border: none; color: var(--text2);
  padding: 0.75rem 1rem; font-size: 0.85rem; cursor: pointer; text-align: left;
  font-family: 'Outfit', sans-serif; transition: all var(--transition);
}
.history-toggle:hover { color: var(--text); }
.history-list { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.3rem; }
.history-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.5rem 0.75rem; font-size: 0.8rem; color: var(--text2); cursor: pointer;
  transition: all var(--transition); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-item:hover { border-color: var(--primary); color: var(--text); }

/* ── Number Grid ─────────────────────────────────────────── */
.number-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1rem; }
.number-chip {
  background: var(--card2); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.5rem 1rem; font-size: 1.3rem; font-weight: 700; color: var(--accent);
  font-family: 'Syne', sans-serif; min-width: 60px; text-align: center;
}

/* ── Password ────────────────────────────────────────────── */
.pw-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--card2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 1rem; margin-bottom: 0.5rem; font-family: 'Courier New', monospace;
  font-size: 0.95rem; color: var(--accent); word-break: break-all;
}
.pw-copy-btn {
  flex-shrink: 0; background: var(--card); border: 1px solid var(--border); color: var(--text2);
  border-radius: 8px; padding: 0.3rem 0.7rem; font-size: 0.75rem; cursor: pointer;
  transition: all var(--transition); font-family: 'Outfit', sans-serif;
}
.pw-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.strength-bar { display: flex; gap: 3px; margin-top: 0.75rem; }
.strength-seg { height: 6px; flex: 1; border-radius: 3px; background: var(--border); transition: background 0.3s; }
.strength-bar.weak .strength-seg:nth-child(1) { background: var(--danger); }
.strength-bar.fair .strength-seg:nth-child(-n+2) { background: var(--warn); }
.strength-bar.strong .strength-seg:nth-child(-n+3) { background: #4CAF50; }
.strength-bar.very-strong .strength-seg { background: var(--accent); }
.strength-label { font-size: 0.85rem; font-weight: 600; margin-top: 0.4rem; }

/* ── Color Palette ───────────────────────────────────────── */
.color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; }
.color-swatch {
  height: 140px; border-radius: 12px; cursor: pointer; position: relative;
  display: flex; align-items: flex-end; transition: transform 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.color-swatch:hover { transform: scale(1.03); }
.swatch-info { padding: 0.5rem; width: 100%; }
.swatch-hex { font-family: 'Courier New', monospace; font-weight: 700; font-size: 0.85rem; }
.swatch-rgb, .swatch-hsl { font-size: 0.68rem; opacity: 0.8; }
.color-lock {
  position: absolute; top: 0.4rem; right: 0.4rem; background: rgba(0,0,0,0.3);
  border: none; border-radius: 6px; padding: 0.15rem 0.3rem; cursor: pointer; font-size: 0.75rem;
}
.copied-flash {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); color: #fff; border-radius: 12px; font-weight: 700; font-size: 1.1rem;
  animation: fadeOut 0.7s forwards;
}
@keyframes fadeOut { 0%{opacity:1} 70%{opacity:1} 100%{opacity:0} }

/* ── Destination Card ────────────────────────────────────── */
.destination-card { padding: 1.5rem; text-align: center; }
.destination-name { font-size: 1.8rem; font-weight: 800; color: var(--text); font-family: 'Syne', sans-serif; margin-bottom: 0.5rem; }
.destination-meta { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
.destination-fact { color: var(--text2); font-size: 0.95rem; font-style: italic; line-height: 1.7; }
.things-to-do { text-align: left; margin-top: 1rem; }
.things-to-do h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 0.5rem; }
.things-to-do ol { color: var(--text2); padding-left: 1.2rem; line-height: 2; font-size: 0.9rem; }

/* ── Meal Card ───────────────────────────────────────────── */
.meal-card { padding: 0.5rem 0; }
.meal-name { font-size: 1.4rem; font-weight: 800; font-family: 'Syne', sans-serif; color: var(--text); margin-bottom: 0.3rem; }
.meal-desc { color: var(--text2); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.6; }
.ingredients-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.ingredient-tag { background: var(--card2); border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.78rem; color: var(--text2); }
.meal-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.meal-meta-item { font-size: 0.85rem; color: var(--text2); }

/* ── Quote ───────────────────────────────────────────────── */
.quote-text { font-size: 1.3rem; line-height: 1.8; font-style: italic; color: var(--text); margin-bottom: 0.75rem; }
.quote-author { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.quote-category-tag { display: inline-block; margin-top: 0.75rem; }

/* ── Media Card (Movie/Show + Book) ─────────────────────── */
.media-card { padding: 0.25rem 0; }
.media-title { font-size: 1.4rem; font-weight: 800; font-family: 'Syne', sans-serif; color: var(--text); margin-bottom: 0.3rem; }
.media-year { color: var(--text3); font-size: 0.85rem; margin-bottom: 0.75rem; }
.media-desc { color: var(--text2); line-height: 1.7; margin-bottom: 0.75rem; font-size: 0.95rem; }
.media-blurb { background: var(--card2); border-left: 3px solid var(--primary); padding: 0.75rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.9rem; color: var(--text2); line-height: 1.6; }
.media-skip { background: none; border: 1px dashed var(--border); color: var(--text3); border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.78rem; cursor: pointer; margin-top: 1rem; transition: all var(--transition); font-family: 'Outfit', sans-serif; }
.media-skip:hover { border-color: var(--danger); color: var(--danger); }

/* ── Names Grid ──────────────────────────────────────────── */
.name-big-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; margin: 1rem 0; }
.name-big-card {
  background: var(--card2); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.75rem; text-align: center; cursor: pointer; transition: all var(--transition);
}
.name-big-card:hover, .name-big-card.selected { border-color: var(--primary); background: rgba(123,47,255,0.12); }
.name-big-text { font-weight: 700; font-size: 1rem; color: var(--text); }
.name-big-origin { display: block; font-size: 0.72rem; color: var(--text3); margin-top: 0.2rem; }
.name-hint { font-size: 0.75rem; color: var(--text3); margin-top: 0; }

/* ── Dice Display ────────────────────────────────────────── */
.dice-display { text-align: center; padding: 1rem 0; }
.coin-face, .dice-face {
  font-size: 4rem; display: inline-block; margin-bottom: 0.5rem;
  background: var(--card2); border: 2px solid var(--border); border-radius: 16px;
  width: 100px; height: 100px; line-height: 100px; text-align: center;
}
.dice-multi { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin: 0.75rem 0; }
.dice-multi .dice-face { font-size: 2rem; width: 70px; height: 70px; line-height: 70px; }
.dice-total { font-size: 1.6rem; font-weight: 800; font-family: 'Syne', sans-serif; color: var(--accent); }
.prob-note { font-size: 0.8rem; color: var(--text3); margin-top: 0.25rem; }
.roll-history { margin-top: 1.5rem; }
.roll-history-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text3); margin-bottom: 0.5rem; }
.roll-history-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.roll-chip { background: var(--card2); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.75rem; color: var(--text2); }

/* ── Trivia ──────────────────────────────────────────────── */
.trivia-q { font-size: 1.15rem; line-height: 1.7; color: var(--text); margin: 1rem 0; font-weight: 600; }
.trivia-difficulty { display: inline-block; border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.75rem; font-weight: 600; }
.diff-easy { background: rgba(0,229,192,0.15); color: var(--accent); }
.diff-medium { background: rgba(255,184,48,0.15); color: var(--warn); }
.diff-hard { background: rgba(255,94,125,0.15); color: var(--danger); }
.trivia-reveal-btn { background: var(--primary); color: #fff; border: none; border-radius: var(--radius); padding: 0.6rem 1.5rem; font-size: 0.9rem; cursor: pointer; font-family: 'Outfit', sans-serif; transition: all var(--transition); }
.trivia-reveal-btn:hover { opacity: 0.9; }
.trivia-answer { display: none; margin-top: 1rem; }
.trivia-answer.shown { display: block; }
.trivia-answer-text { color: var(--accent); font-weight: 700; font-size: 1.05rem; }
.trivia-funfact { color: var(--text2); font-size: 0.88rem; margin-top: 0.5rem; font-style: italic; }
.score-display { font-size: 0.88rem; padding: 0.5rem 0; }
.score-label { color: var(--text3); }
.score-val { font-weight: 700; }
.score-btn-group { display: flex; gap: 0.5rem; }
.score-btn { border: none; border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.8rem; cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 600; }
.score-correct { background: rgba(0,229,192,0.2); color: var(--accent); }
.score-wrong { background: rgba(255,94,125,0.2); color: var(--danger); }

/* ── Writing Prompt ──────────────────────────────────────── */
.prompt-text { font-size: 1.1rem; line-height: 1.8; color: var(--text); margin: 0.75rem 0 1rem; }
.prompt-meta { background: var(--card2); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
.prompt-meta-row { font-size: 0.88rem; color: var(--text2); margin: 0.25rem 0; }
.prompt-challenge { background: rgba(123,47,255,0.1); border: 1px solid rgba(123,47,255,0.3); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
.timer-display { font-size: 2.5rem; font-weight: 800; font-family: 'Syne', sans-serif; color: var(--accent); text-align: center; margin: 0.75rem 0; }
.timer-display.warning { color: var(--danger); }
.timer-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── Debate Topic ────────────────────────────────────────── */
.debate-topic-text { font-size: 1.2rem; font-weight: 700; color: var(--text); line-height: 1.6; margin: 0.75rem 0 0.5rem; }
.debate-context { color: var(--text2); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.debate-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 640px) { .debate-sides { grid-template-columns: 1fr; } }
.debate-side { border-radius: var(--radius); padding: 0.75rem 1rem; }
.for-side { background: rgba(0,229,192,0.08); border: 1px solid rgba(0,229,192,0.25); }
.against-side { background: rgba(255,94,125,0.08); border: 1px solid rgba(255,94,125,0.25); }
.debate-side h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.for-side h4 { color: var(--accent); }
.against-side h4 { color: var(--danger); }
.debate-side ul { padding-left: 1rem; font-size: 0.85rem; color: var(--text2); line-height: 1.9; }

/* ── Gift Card ───────────────────────────────────────────── */
.gift-card { padding: 0.25rem 0; }
.gift-name { font-size: 1.4rem; font-weight: 800; font-family: 'Syne', sans-serif; color: var(--text); margin-bottom: 0.3rem; }
.gift-desc { color: var(--text2); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.75rem; }
.gift-why { background: var(--card2); border-left: 3px solid var(--accent); padding: 0.75rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.9rem; color: var(--text2); line-height: 1.6; margin-bottom: 1rem; }
.gift-search-link {
  display: inline-flex; align-items: center; gap: 0.5rem; background: #FF9900;
  color: #111; border-radius: var(--radius); padding: 0.6rem 1.25rem; font-weight: 700;
  font-size: 0.9rem; text-decoration: none; transition: all var(--transition);
}
.gift-search-link:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Result label ─────────────────────────────────────────── */
.result-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 0.75rem; }
