/* ดีไซน์ระบบสีและฟอนต์ - เลขเด็ดมหาเฮง */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Mitr:wght@400;500;700&family=Prompt:wght@200;400;500;700&display=swap');

:root {
  --bg-deep: #070512;
  --bg-dark: #0f0c22;
  --bg-card: rgba(22, 18, 45, 0.65);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-glow: rgba(212, 175, 55, 0.85);
  --text-gold: #f3e5ab;
  --gold-primary: #d4af37;
  --gold-secondary: #aa7c11;
  --gold-gradient: linear-gradient(135deg, #ffe58f 0%, #d4af37 50%, #aa7c11 100%);
  --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.25);
  --shadow-gold-strong: 0 0 35px rgba(212, 175, 55, 0.6);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --neon-cyan: #06b6d4;
  --accent-red: #ef4444;
}

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

body {
  font-family: 'Prompt', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* เอฟเฟกต์ดวงดาวกะพริบพื้นหลัง */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px);
  background-size: 550px 550px;
  background-repeat: repeat;
  opacity: 0.3;
}

/* Header & Navigation */
header {
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
  background-image: linear-gradient(to bottom, rgba(7, 5, 18, 0.3) 0%, rgba(7, 5, 18, 0.95) 100%), url('assets/mystical_banner.svg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-gold);
  box-shadow: inset 0 -20px 40px rgba(7, 5, 18, 0.9);
  margin-bottom: 2rem;
}

.logo-container {
  display: inline-block;
}

.logo-main {
  font-family: 'Mitr', 'Prompt', sans-serif;
  font-size: 5.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
  margin-bottom: 0.5rem;
}

.logo-sub {
  font-size: 1.8rem;
  letter-spacing: 8px;
  color: var(--text-gold);
  text-transform: uppercase;
  font-weight: 300;
  text-shadow: 0 0 10px rgba(243, 229, 171, 0.4);
}

.nav-container {
  max-width: 900px;
  margin: 2rem auto 3rem;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  background: rgba(22, 18, 45, 0.4);
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Prompt', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 10px 24px;
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab i {
  font-size: 1.1rem;
}

.nav-tab:hover {
  color: var(--text-gold);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #070512;
  background: var(--gold-gradient);
  font-weight: 700;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Main Layout Wrapper */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-gold-glow);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.card-title {
  font-size: 1.8rem;
  color: var(--text-gold);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-title i {
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: #070512;
  border: none;
  font-family: 'Prompt', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5), var(--shadow-gold-strong);
}

.btn-gold:active {
  transform: translateY(1px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--text-gold);
  border: 1px solid var(--gold-primary);
  font-family: 'Prompt', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  color: #fff;
}

/* Inputs & Form Fields */
.input-gold {
  background: rgba(15, 12, 34, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fff;
  font-family: 'Prompt', sans-serif;
  font-size: 1.1rem;
  padding: 12px 20px;
  border-radius: 12px;
  outline: none;
  width: 100%;
  transition: all 0.3s ease;
}

.input-gold:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   FEATURE 1: ดูดวง & ไพ่ยิปซี
   ========================================================================== */

/* ราศี Grid */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 1.5rem;
}

.zodiac-item {
  background: rgba(22, 18, 45, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 15px;
  padding: 1.2rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zodiac-item:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  background: rgba(22, 18, 45, 0.7);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.zodiac-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  display: block;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zodiac-name {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

.zodiac-range {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* วันเกิด Grid */
.birthday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 1.5rem;
}

.birthday-item {
  border-radius: 15px;
  padding: 1.2rem 0.5rem;
  text-align: center;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.birthday-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ผลทำนาย */
.prediction-box {
  background: rgba(15, 12, 34, 0.8);
  border: 1px dashed var(--gold-primary);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: none;
  animation: fadeIn 0.4s ease;
}

.lucky-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.lucky-tag {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--text-gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.lucky-tag.bad {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--accent-red);
  color: #fca5a5;
}

/* ไพ่ยิปซีอินเตอร์เฟส */
.tarot-section {
  margin-top: 3rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 2rem;
  text-align: center;
}

.tarot-deck-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

/* 3D Card Flipping Styles */
.tarot-card {
  width: 140px;
  height: 230px;
  perspective: 1000px;
  cursor: pointer;
}

.tarot-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.tarot-card.flipped .tarot-inner {
  transform: rotateY(180deg);
}

.tarot-front, .tarot-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 2px solid var(--gold-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tarot-back {
  background: radial-gradient(#1e1b4b, #090514);
  background-image: 
    radial-gradient(circle, rgba(212, 175, 55, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px, 40px 40px;
  color: var(--gold-primary);
}

.tarot-back-symbol {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  border: 1px solid var(--gold-primary);
  width: 70px;
  height: 70px;
  line-height: 68px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  animation: pulseSymbol 3s infinite ease-in-out;
}

@keyframes pulseSymbol {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(212, 175, 55, 0.5); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
}

.tarot-front {
  background: #110e2d;
  color: #fff;
  transform: rotateY(180deg);
  padding: 10px;
}

.tarot-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-gold);
  margin-top: 10px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 5px;
  width: 90%;
}

.tarot-card-art {
  font-size: 3rem;
  margin-bottom: 5px;
}

.tarot-result-box {
  margin-top: 2rem;
  text-align: left;
  display: none;
  animation: fadeIn 0.5s ease;
}

.tarot-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

.tarot-result-card {
  background: rgba(15, 12, 34, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.tarot-result-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding-bottom: 5px;
}

/* ==========================================================================
   FEATURE 2: ทำนายฝันมหาเฮง
   ========================================================================== */
.dream-search-container {
  display: flex;
  gap: 12px;
  margin-bottom: 2rem;
}

.dream-results {
  margin-top: 1.5rem;
}

.dream-item-card {
  background: rgba(15, 12, 34, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.dream-item-card:hover {
  border-color: var(--gold-primary);
  background: rgba(15, 12, 34, 0.8);
}

.dream-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-gold);
}

.dream-item-prediction {
  color: var(--text-light);
  line-height: 1.6;
}

.dream-numbers {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 5px;
}

.dream-number-badge {
  background: var(--purple-gradient);
  color: #fff;
  padding: 5px 15px;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
}

.dream-number-badge.three {
  background: var(--gold-gradient);
  color: #070512;
}

.popular-dreams-box {
  margin-top: 3rem;
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.popular-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popular-tag:hover {
  border-color: var(--gold-primary);
  color: var(--text-gold);
  background: rgba(212, 175, 55, 0.08);
}

/* ==========================================================================
   FEATURE 3: สุ่มเลขเด็ดนำโชค
   ========================================================================== */

/* ตัวกรองแบบย่อย */
.sub-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.sub-tab {
  background: rgba(15, 12, 34, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Prompt', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.sub-tab:hover {
  color: var(--text-gold);
  background: rgba(15, 12, 34, 0.8);
}

.sub-tab.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  color: var(--text-gold);
  font-weight: 700;
}

.game-container {
  display: none;
  animation: fadeIn 0.4s ease forwards;
  min-height: 350px;
  text-align: center;
  position: relative;
}

.game-container.active {
  display: block;
}

/* 1. SLOT MACHINE */
.slot-machine-wrapper {
  max-width: 450px;
  margin: 2rem auto;
  background: radial-gradient(#251d53, #0f0a28);
  border: 4px solid var(--gold-primary);
  border-radius: 25px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.8), var(--shadow-gold);
}

.slot-reels {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 1.5rem 0 2.5rem;
}

.slot-reel {
  width: 80px;
  height: 110px;
  background: #070512;
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-gold);
  line-height: 106px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  overflow: hidden;
  position: relative;
}

/* Reel Roll Animation Effect */
.slot-roll-effect {
  animation: rollNumbers 0.15s linear infinite;
}

@keyframes rollNumbers {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* 2. PINGPONG BALL BALL JAR */
.lotto-jar-container {
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
}

.jar-wrapper {
  position: relative;
  width: 260px;
  height: 280px;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-bottom: 8px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px 100px 30px 30px;
  box-shadow: inset 0 0 40px rgba(255,255,255,0.1), 0 10px 20px rgba(0,0,0,0.5);
  overflow: hidden;
}

/* ปากขวดโหล */
.jar-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 15px 15px;
}

.lotto-balls-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.jar-shake-anim {
  animation: shakeJar 0.08s linear infinite;
}

@keyframes shakeJar {
  0% { transform: translate(2px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(0px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(2px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(2px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.balls-result-area {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 1.5rem;
  min-height: 70px;
}

.drawn-ball {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  line-height: 60px;
  color: #070512;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5), inset -5px -5px 15px rgba(0,0,0,0.3);
  animation: bounceBall 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: translateY(-50px) scale(0.5);
}

@keyframes bounceBall {
  0% { opacity: 0; transform: translateY(-100px) scale(0.3) rotate(0deg); }
  60% { opacity: 1; transform: translateY(10px) scale(1.1) rotate(180deg); }
  80% { transform: translateY(-5px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(360deg); }
}

/* 3. CHI-CHI STICKS (เซียมซี) */
.siamsi-wrapper {
  max-width: 450px;
  margin: 2rem auto;
  position: relative;
}

.siamsi-cup-container {
  width: 140px;
  height: 220px;
  margin: 0 auto 2rem;
  position: relative;
  cursor: pointer;
}

.siamsi-cup {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #821010 0%, #3a0404 100%);
  border: 3px solid var(--gold-primary);
  border-radius: 10px 10px 60px 60px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.siamsi-cup-label {
  font-weight: 700;
  color: var(--text-gold);
  border: 1px solid var(--gold-primary);
  padding: 10px 5px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 4px;
  border-radius: 5px;
}

.siamsi-sticks {
  width: 90%;
  height: 160px;
  position: absolute;
  bottom: 120px;
  left: 5%;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 2px;
  transition: transform 0.5s ease;
}

.siamsi-stick {
  width: 6px;
  height: 150px;
  background: #c29953;
  border-radius: 3px;
  transform-origin: bottom center;
}

.siamsi-stick.active-out {
  animation: dropStick 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  z-index: 15;
}

@keyframes dropStick {
  0% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-70px) rotate(-15deg); }
  60% { transform: translateY(-40px) rotate(45deg); }
  100% { transform: translateY(120px) rotate(85deg); opacity: 0; }
}

.cup-shake-anim {
  animation: shakeCup 0.12s linear infinite;
}

@keyframes shakeCup {
  0% { transform: rotate(0deg) translate(0, 0); }
  25% { transform: rotate(-5deg) translate(-2px, -3px); }
  50% { transform: rotate(5deg) translate(3px, 2px); }
  75% { transform: rotate(-3deg) translate(-1px, 2px); }
  100% { transform: rotate(0deg) translate(0, 0); }
}

.siamsi-result-modal {
  margin-top: 2rem;
  background: rgba(15, 12, 34, 0.85);
  border: 2px solid var(--gold-primary);
  border-radius: 15px;
  padding: 1.8rem;
  text-align: left;
  display: none;
  animation: fadeIn 0.5s ease;
  box-shadow: var(--shadow-gold-strong);
}

.siamsi-result-num {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  font-weight: 700;
}

/* ==========================================================================
   FEATURE 4: เลขศาสตร์พยากรณ์
   ========================================================================== */
.numerology-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group-row {
  display: flex;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.form-group-row .input-gold {
  flex: 1;
}

.form-group-row button {
  white-space: nowrap;
}

.num-result-box {
  background: rgba(15, 12, 34, 0.85);
  border: 1px solid var(--gold-primary);
  border-radius: 15px;
  padding: 1.8rem;
  margin-top: 1.5rem;
  display: none;
  animation: fadeIn 0.4s ease;
}

.num-score-badge-container {
  display: flex;
  gap: 20px;
  margin-bottom: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.num-score-card {
  background: rgba(22, 18, 45, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 1rem 2rem;
  text-align: center;
  min-width: 150px;
}

.num-score-val {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-primary);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.num-score-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.num-pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

.num-pair-item {
  background: rgba(15, 12, 34, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.num-pair-val {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-gold);
}

.num-pair-desc {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  max-width: 900px;
  margin: 3rem auto 0;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Responsive adjust */
@media (max-width: 768px) {
  .logo-main {
    font-size: 3.2rem;
  }
  .logo-sub {
    font-size: 1.2rem;
    letter-spacing: 4px;
  }
  .nav-container {
    flex-wrap: wrap;
    border-radius: 20px;
  }
  .nav-tab {
    font-size: 0.95rem;
    padding: 8px 16px;
    flex: 1 1 45%;
    justify-content: center;
  }
  .form-group-row {
    flex-direction: column;
  }
  .form-group-row button {
    width: 100%;
  }
  .tarot-deck-container {
    gap: 10px;
  }
  .tarot-card {
    width: 100px;
    height: 170px;
  }
  .tarot-card-art {
    font-size: 2.2rem;
  }
  .tarot-card-name {
    font-size: 0.75rem;
  }
  .slot-reel {
    width: 65px;
    height: 90px;
    font-size: 3rem;
    line-height: 86px;
  }
}
