/* ==========================================================================
   zam-affi-quiz: High-Converting Royal Manhwa Aesthetic & Funnel System
   ========================================================================== */

:root {
  --bg-primary: #07050e;
  --bg-secondary: #0f0a1c;
  --card-bg: rgba(18, 12, 34, 0.82);
  --card-border: rgba(245, 208, 97, 0.18);
  --card-hover-border: rgba(245, 208, 97, 0.6);

  --accent-gold: #f5d061;
  --accent-gold-light: #fff0a6;
  --accent-gold-glow: rgba(245, 208, 97, 0.35);
  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.45);
  --accent-rose: #ff758f;
  --accent-emerald: #10b981;

  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #94a3b8;

  --font-royal: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow-x: hidden;
  padding: 24px 16px 40px;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--accent-purple-glow) 0%, rgba(7, 5, 14, 0) 70%);
  filter: blur(90px);
  opacity: 0.85;
}

.glow-orb-2 {
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, rgba(7, 5, 14, 0) 70%);
  filter: blur(100px);
  opacity: 0.4;
}

.stars-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px 1px at 30px 40px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(1.5px 1.5px at 120px 180px, #f5d061, rgba(0,0,0,0)),
                    radial-gradient(1px 1px at 280px 90px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(2px 2px at 420px 320px, #c084fc, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 450px 450px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.quiz-container {
  width: 100%;
  max-width: 660px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Brand Header */
.brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(245, 208, 97, 0.08);
  border: 1px solid rgba(245, 208, 97, 0.3);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.75px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-title {
  font-family: var(--font-royal);
  font-size: clamp(26px, 5.5vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.brand-title span.highlight {
  background: linear-gradient(135deg, #ffffff 15%, var(--accent-gold) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto;
}

.brand-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Quiz Card Shell */
.quiz-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 38px);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

/* Progress Bar */
.progress-section {
  margin-bottom: 26px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-gold));
  border-radius: 999px;
  box-shadow: 0 0 14px var(--accent-gold-glow);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question Area */
.question-container {
  animation: fadeIn 0.35s ease-out;
}

.question-text {
  font-family: var(--font-royal);
  font-size: clamp(20px, 4vw, 25px);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 22px;
}

/* Options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.option-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-royal);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-gold);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.option-content {
  flex: 1;
}

.option-title {
  font-size: clamp(14px, 2.5vw, 15px);
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 3px;
}

.option-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.option-btn:hover {
  background: rgba(245, 208, 97, 0.06);
  border-color: var(--card-hover-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}

.option-btn:hover .option-badge {
  background: var(--accent-gold);
  color: #1a1200;
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.option-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   SCANNING / CALIBRATING STATE (ASTROLOGICAL SCANNER)
   ========================================================================== */

.calculating-view {
  text-align: center;
  padding: 36px 12px;
  animation: fadeIn 0.4s ease-out;
}

.scanner-ring-container {
  width: 110px;
  height: 110px;
  margin: 0 auto 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed var(--accent-gold);
  animation: rotate-slow 12s infinite linear;
}

.scanner-core {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-gold) 0%, var(--accent-purple) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px var(--accent-purple-glow);
  font-size: 32px;
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.calculating-title {
  font-family: var(--font-royal);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.calculating-status {
  font-size: 14px;
  color: var(--accent-gold);
  min-height: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.calculating-percent {
  font-size: 34px;
  font-weight: 800;
  font-family: var(--font-royal);
  color: #ffffff;
}

/* ==========================================================================
   RESULT SCREEN — ROYAL ARCHETYPE TAROT & CONVERSION CARD
   ========================================================================== */

.result-view {
  animation: fadeIn 0.5s ease-out;
}

/* Tarot Header Badge */
.tarot-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tarot-number {
  font-family: var(--font-royal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.tarot-match {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tarot-card-title {
  font-family: var(--font-royal);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-align: center;
  margin-bottom: 6px;
}

.tarot-card-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--accent-gold);
  font-style: italic;
  margin-bottom: 22px;
}

/* Cold Reading Box (Đoán trúng tim đen) */
.cold-reading-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 208, 97, 0.25);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
  position: relative;
}

.cold-reading-label {
  font-family: var(--font-royal);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cold-reading-text {
  font-size: clamp(14px, 2.5vw, 15px);
  color: #e2e8f0;
  line-height: 1.7;
}

/* Trait Matrix */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.trait-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}

.trait-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.trait-value {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* Urgency Banner */
.urgency-banner {
  background: rgba(157, 78, 221, 0.15);
  border: 1px dashed rgba(157, 78, 221, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 12px;
  color: #e9d5ff;
  line-height: 1.5;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Big Gold CTA Button */
.cta-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.cta-button {
  width: 100%;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #f5d061 0%, #e5b93b 50%, #d4981f 100%);
  color: #1a1200;
  font-family: var(--font-royal);
  font-size: clamp(16px, 3.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 12px 35px -5px rgba(245, 208, 97, 0.55),
              0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  25% { left: 100%; }
  100% { left: 100%; }
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 45px -5px rgba(245, 208, 97, 0.75);
}

.cta-button:active {
  transform: translateY(0) scale(0.99);
}

.cta-subtext {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Testimonials / Social Proof */
.testimonials-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.testimonials-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 14px;
}

.testimonial-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.testimonial-quote {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 6px;
}

.testimonial-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* ==========================================================================
   PORTAL / DIRECTORY VIEW (FOR ROOT HOMEPAGE VISITORS)
   ========================================================================== */

.quiz-container.portal-expanded {
  max-width: 980px;
}

.portal-view {
  animation: fadeIn 0.4s ease-out;
}

/* Category Filter Tabs */
.portal-tabs-container {
  margin-bottom: 20px;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.portal-tab-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.portal-tab-pill:hover {
  border-color: var(--accent-gold);
  color: #fff;
  background: rgba(245, 208, 97, 0.06);
}

.portal-tab-pill.active {
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.2) 0%, rgba(245, 208, 97, 0.08) 100%);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  box-shadow: 0 4px 16px rgba(245, 208, 97, 0.15);
}

.tab-count {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 12px;
  color: var(--text-muted);
}

.portal-tab-pill.active .tab-count {
  background: rgba(245, 208, 97, 0.25);
  color: var(--accent-gold);
}

/* Search Bar */
.portal-search-wrapper {
  position: relative;
  margin-bottom: 22px;
}

.portal-search-input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  background: rgba(10, 7, 22, 0.7);
  border: 1px solid rgba(245, 208, 97, 0.22);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.portal-search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px var(--accent-gold-glow);
  background: rgba(18, 12, 34, 0.95);
}

.search-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  display: none;
  padding: 4px;
}

.search-clear-btn:hover {
  color: #fff;
}

/* Featured Hero Card (Spotlight) */
.portal-hero-banner {
  background: linear-gradient(135deg, rgba(30, 20, 55, 0.9) 0%, rgba(18, 12, 34, 0.95) 100%);
  border: 1px solid rgba(245, 208, 97, 0.4);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(245, 208, 97, 0.3);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.portal-hero-banner:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: 0 20px 50px rgba(245, 208, 97, 0.25);
}

.hero-content {
  z-index: 1;
}

.hero-crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  background: rgba(245, 208, 97, 0.15);
  border: 1px solid rgba(245, 208, 97, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-royal);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 600px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-cta-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #f5d061 0%, #e6a817 100%);
  color: #07050e;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(245, 208, 97, 0.4);
  transition: var(--transition-smooth);
}

.portal-hero-banner:hover .hero-cta-btn {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(245, 208, 97, 0.6);
}

/* Grid Layout */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 860px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portal-card {
  background: rgba(18, 12, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: var(--transition-smooth);
}

.portal-card:hover {
  background: rgba(24, 16, 44, 0.9);
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 208, 97, 0.1);
}

.portal-card:hover::before {
  background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-gold) 100%);
}

.portal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.portal-card-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 208, 97, 0.1);
  border: 1px solid rgba(245, 208, 97, 0.2);
  padding: 3px 9px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.portal-card-time {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.portal-card-main {
  margin-bottom: 16px;
}

.portal-card-title {
  font-family: var(--font-royal);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 8px;
}

.portal-card-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.portal-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-card-rating {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.portal-card-cta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.portal-card:hover .portal-card-cta {
  color: var(--accent-gold-light);
  transform: translateX(3px);
}

/* Empty State */
.portal-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.portal-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* Back Nav Bar when Quiz is Active */
.back-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.back-portal-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.back-portal-link:hover {
  color: var(--accent-gold-light);
  transform: translateX(-3px);
}

/* Legal Footer */
.legal-footer {
  margin-top: 32px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .portal-hero-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  body { padding: 14px 10px; }
  .quiz-card { padding: 20px 14px; }
  .portal-grid { grid-template-columns: 1fr; gap: 12px; }
  .trait-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-title { font-size: 18px; }
  .portal-card-title { font-size: 16px; }
}
