/* ===== ROOT VARIABLES ===== */
:root {
  --blood-red: #8b0000;
  --dark-blood: #4a0000;
  --crimson: #dc143c;
  --bone-white: #e8dcc4;
  --aged-paper: #d4c5a9;
  --dark-wood: #1a0a00;
  --medium-wood: #3d1f0d;
  --light-wood: #5c3317;
  --gold-accent: #c9a227;
  --tarnished-gold: #8b7355;
  --ghost-white: rgba(255, 255, 255, 0.1);
  --spirit-blue: #4a90a4;
  --ethereal-purple: #6b4a8c;
  --shadow-black: rgba(0, 0, 0, 0.8);
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'UnifrakturMaguntia', cursive;
  --font-body: 'Cinzel', serif;
  --font-medieval: 'MedievalSharp', cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--dark-wood) 0%, #0d0501 50%, var(--dark-wood) 100%);
  color: var(--bone-white);
  min-height: 100vh;
  position: relative;
}

/* Wood grain texture */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(61, 31, 13, 0.1) 2px, rgba(61, 31, 13, 0.1) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(26, 10, 0, 0.3) 50px, rgba(26, 10, 0, 0.3) 51px);
  pointer-events: none;
  z-index: -1;
}

/* Vignette */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 9998;
}

/* ===== CANVAS OVERLAYS ===== */
#staticOverlay, #faceLayer {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.15;
}
#faceLayer { z-index: 9996; opacity: 0.8; }

/* ===== EMERGENCY STOP ===== */
.emergency-stop {
  position: fixed;
  top: 10px; right: 10px;
  z-index: 10000;
  background: linear-gradient(145deg, var(--crimson), var(--blood-red));
  border: 3px solid var(--dark-blood);
  border-radius: 8px;
  padding: 12px 20px;
  color: white;
  font-family: var(--font-body);
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: pulseDanger 2s infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.emergency-stop:hover { background: linear-gradient(145deg, var(--blood-red), var(--dark-blood)); transform: scale(1.05); }
.emergency-stop .stop-icon { font-size: 18px; }
@keyframes pulseDanger {
  0%, 100% { box-shadow: 0 4px 15px rgba(139, 0, 0, 0.5); }
  50% { box-shadow: 0 4px 25px rgba(220, 20, 60, 0.8); }
}

/* ===== MAIN APP ===== */
#app { position: relative; z-index: 1; min-height: 100vh; padding: 10px; padding-bottom: 100px; }

/* ===== SETUP MODAL ===== */
.setup-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.5s ease;
}
.setup-content {
  background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood));
  border: 3px solid var(--tarnished-gold);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(201, 162, 39, 0.2);
}
.setup-header .pentagram-icon { font-size: 48px; color: var(--blood-red); margin-bottom: 15px; text-shadow: 0 0 20px rgba(139, 0, 0, 0.5); }
.setup-header h2 { font-family: var(--font-heading); font-size: 28px; color: var(--gold-accent); margin-bottom: 10px; }
.setup-subtitle { color: var(--aged-paper); font-style: italic; opacity: 0.8; }
.setup-form { margin-top: 30px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; color: var(--bone-white); font-size: 14px; }
.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--tarnished-gold);
  border-radius: 8px;
  color: var(--bone-white);
  font-family: var(--font-body);
  font-size: 16px;
}
.form-group input:focus { outline: none; border-color: var(--gold-accent); box-shadow: 0 0 10px rgba(201, 162, 39, 0.3); }
.zodiac-preview {
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid var(--blood-red);
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.zodiac-preview .zodiac-symbol { font-size: 36px; color: var(--gold-accent); }
.zodiac-preview .zodiac-name { font-family: var(--font-display); font-size: 18px; color: var(--bone-white); }
.setup-skip { margin-top: 20px; }
.text-btn { background: none; border: none; color: var(--aged-paper); cursor: pointer; font-family: var(--font-body); font-size: 13px; opacity: 0.7; text-decoration: underline; }
.text-btn:hover { opacity: 1; color: var(--gold-accent); }

/* ===== WELCOME BACK ===== */
.welcome-back {
  position: fixed;
  top: 60px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  animation: slideDown 0.5s ease, fadeOut 0.5s ease 4s forwards;
}
.welcome-content {
  background: linear-gradient(145deg, rgba(139, 0, 0, 0.9), rgba(74, 0, 0, 0.9));
  border: 2px solid var(--gold-accent);
  border-radius: 10px;
  padding: 15px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.welcome-text { font-family: var(--font-display); color: var(--bone-white); font-size: 16px; text-align: center; }
@keyframes slideDown { from { transform: translateX(-50%) translateY(-100%); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

/* ===== HEADER ===== */
.app-header { display: flex; flex-direction: column; align-items: center; padding: 15px; margin-bottom: 10px; }
.logo { font-family: var(--font-heading); font-size: 36px; letter-spacing: 2px; margin-bottom: 10px; }
.logo-spirit { color: var(--bone-white); text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.logo-veil { color: var(--blood-red); text-shadow: 0 0 20px rgba(139, 0, 0, 0.5); }
.energy-container { width: 100%; max-width: 300px; }
.energy-label { font-size: 10px; letter-spacing: 3px; color: var(--tarnished-gold); text-align: center; margin-bottom: 5px; }
.energy-bar { height: 20px; background: linear-gradient(90deg, var(--dark-wood), #0a0500); border: 2px solid var(--tarnished-gold); border-radius: 10px; position: relative; overflow: hidden; }
.energy-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--dark-blood), var(--blood-red), var(--crimson)); border-radius: 8px; transition: width 0.3s ease; }
.energy-glow { position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: energyPulse 2s infinite; }
@keyframes energyPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }
.energy-value { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: bold; color: var(--bone-white); text-shadow: 1px 1px 2px black; }

/* ===== BOARD CONTAINER ===== */
.board-container { position: relative; width: 100%; max-width: 400px; margin: 0 auto 20px; aspect-ratio: 1; }

/* ===== ZODIAC RING ===== */
.zodiac-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.zodiac-ring .zodiac-symbol {
  position: absolute;
  font-size: 24px;
  color: var(--tarnished-gold);
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.3);
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
}
.zodiac-ring .zodiac-symbol:hover { color: var(--gold-accent); text-shadow: 0 0 20px rgba(201, 162, 39, 0.8); transform: scale(1.3); }
.zodiac-ring .zodiac-symbol.active { color: var(--crimson); text-shadow: 0 0 20px rgba(220, 20, 60, 0.8); }
.zodiac-ring .zodiac-symbol:nth-child(1) { top: 5%; left: 50%; transform: translateX(-50%); }
.zodiac-ring .zodiac-symbol:nth-child(2) { top: 10%; right: 15%; }
.zodiac-ring .zodiac-symbol:nth-child(3) { top: 25%; right: 2%; }
.zodiac-ring .zodiac-symbol:nth-child(4) { top: 45%; right: -2%; }
.zodiac-ring .zodiac-symbol:nth-child(5) { top: 65%; right: 2%; }
.zodiac-ring .zodiac-symbol:nth-child(6) { top: 80%; right: 15%; }
.zodiac-ring .zodiac-symbol:nth-child(7) { bottom: 5%; left: 50%; transform: translateX(-50%); }
.zodiac-ring .zodiac-symbol:nth-child(8) { top: 80%; left: 15%; }
.zodiac-ring .zodiac-symbol:nth-child(9) { top: 65%; left: 2%; }
.zodiac-ring .zodiac-symbol:nth-child(10) { top: 45%; left: -2%; }
.zodiac-ring .zodiac-symbol:nth-child(11) { top: 25%; left: 2%; }
.zodiac-ring .zodiac-symbol:nth-child(12) { top: 10%; left: 15%; }

/* ===== FACE SCREEN ===== */
.face-screen {
  position: absolute;
  top: 15%; left: 15%; width: 70%; height: 35%;
  background: black;
  border: 4px solid var(--tarnished-gold);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
}
.face-screen #staticCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.face-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.screen-border { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 2px solid rgba(139, 115, 85, 0.3); border-radius: 8px; pointer-events: none; }
.screen-glow { position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 15px; background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.2) 0%, transparent 70%); pointer-events: none; opacity: 0; transition: opacity 0.5s ease; }
.face-screen.active .screen-glow { opacity: 1; animation: screenPulse 2s infinite; }
@keyframes screenPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }
.ghost-face { position: absolute; font-size: 60px; opacity: 0; filter: blur(2px); color: rgba(255, 255, 255, 0.6); animation: faceEmerge 3s ease-in-out; text-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
@keyframes faceEmerge {
  0% { opacity: 0; transform: scale(0.5) translateZ(-100px); filter: blur(10px); }
  30% { opacity: 0.8; transform: scale(1) translateZ(0); filter: blur(1px); }
  70% { opacity: 0.8; transform: scale(1.1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.2) translateZ(50px); filter: blur(5px); }
}

/* ===== CENTRAL SKULL ===== */
.central-skull { position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); z-index: 10; }
.central-skull .skull-icon { font-size: 48px; filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.5)); }
.skull-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: radial-gradient(circle, rgba(139, 0, 0, 0.3) 0%, transparent 70%); border-radius: 50%; animation: skullGlow 3s infinite; }
@keyframes skullGlow { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; } }

/* ===== PENTAGRAM ===== */
.pentagram-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60%; height: 60%; opacity: 0.3; pointer-events: none; }
.pentagram-overlay .pentagram { animation: pentagramRotate 60s linear infinite; transform-origin: center; }
@keyframes pentagramRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== OUIJA ===== */
.ouija-container { position: absolute; bottom: 5%; left: 10%; width: 80%; height: 35%; }
#ouijaBoard { width: 100%; height: 100%; border-radius: 10px; }
.planchette { position: absolute; width: 60px; height: 80px; background: linear-gradient(145deg, var(--medium-wood), var(--light-wood)); border: 2px solid var(--tarnished-gold); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: all 0.1s ease; }
.planchette-window { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); width: 25px; height: 25px; background: rgba(0, 0, 0, 0.8); border: 2px solid var(--tarnished-gold); border-radius: 50%; }

/* ===== GEARS ===== */
.gear { position: absolute; width: 40px; height: 40px; border: 3px solid var(--tarnished-gold); border-radius: 50%; opacity: 0.3; }
.gear::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60%; height: 60%; border: 2px solid var(--tarnished-gold); border-radius: 50%; }
.gear::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20%; height: 20%; background: var(--tarnished-gold); border-radius: 50%; }
.gear-1 { top: 10%; left: 5%; animation: gearSpin 10s linear infinite; }
.gear-2 { top: 60%; right: 3%; animation: gearSpin 15s linear infinite reverse; }
.gear-3 { bottom: 10%; left: 8%; animation: gearSpin 12s linear infinite; }
@keyframes gearSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== SPIRIT PROFILE ===== */
.spirit-profile { background: linear-gradient(145deg, rgba(61, 31, 13, 0.9), rgba(26, 10, 0, 0.9)); border: 2px solid var(--tarnished-gold); border-radius: 15px; padding: 20px; margin: 20px auto; max-width: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.spirit-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.spirit-skull { font-size: 36px; }
.spirit-name { font-family: var(--font-display); font-size: 22px; color: var(--crimson); flex: 1; }
.capture-soul-btn { background: linear-gradient(145deg, var(--ethereal-purple), #4a2a6c); border: 2px solid var(--tarnished-gold); border-radius: 8px; padding: 8px 15px; color: var(--bone-white); font-family: var(--font-body); font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.3s ease; }
.capture-soul-btn:hover { background: linear-gradient(145deg, #7b5a9c, var(--ethereal-purple)); box-shadow: 0 0 15px rgba(107, 74, 140, 0.5); }
.spirit-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.spirit-stat { font-size: 13px; color: var(--aged-paper); }
.spirit-stat span:first-child { color: var(--tarnished-gold); }
.spirit-message { background: rgba(0, 0, 0, 0.3); border-left: 3px solid var(--blood-red); padding: 15px; font-style: italic; color: var(--bone-white); border-radius: 0 8px 8px 0; }

/* ===== CHAT PANEL ===== */
.chat-panel { position: fixed; bottom: 80px; left: 10px; right: 10px; max-width: 400px; margin: 0 auto; background: linear-gradient(145deg, rgba(26, 10, 0, 0.95), rgba(0, 0, 0, 0.95)); border: 2px solid var(--tarnished-gold); border-radius: 15px; z-index: 100; box-shadow: 0 -10px 30px rgba(0,0,0,0.5); }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 12px 15px; background: linear-gradient(90deg, var(--dark-blood), var(--medium-wood)); border-radius: 13px 13px 0 0; font-family: var(--font-display); font-size: 14px; }
.chat-icon { font-size: 18px; }
.chat-toggle { margin-left: auto; background: none; border: none; color: var(--bone-white); font-size: 20px; cursor: pointer; padding: 5px 10px; }
.chat-messages { max-height: 200px; overflow-y: auto; padding: 15px; }
.chat-message { margin-bottom: 12px; animation: messageSlide 0.3s ease; }
@keyframes messageSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-message.user { text-align: right; }
.chat-message.user .message-bubble { background: var(--spirit-blue); margin-left: auto; }
.chat-message.spirit .message-bubble { background: linear-gradient(145deg, var(--dark-blood), var(--blood-red)); }
.message-bubble { display: inline-block; max-width: 80%; padding: 10px 15px; border-radius: 15px; font-size: 14px; }
.message-sender { font-size: 10px; color: var(--tarnished-gold); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 1px; }
.chat-input-area { display: flex; gap: 8px; padding: 15px; border-top: 1px solid rgba(139, 115, 85, 0.3); }
.chat-input-area input { flex: 1; padding: 12px 15px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--tarnished-gold); border-radius: 20px; color: var(--bone-white); font-family: var(--font-body); font-size: 14px; }
.chat-input-area input:focus { outline: none; border-color: var(--gold-accent); }
.chat-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--tarnished-gold); background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)); color: var(--bone-white); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.chat-btn:hover { background: linear-gradient(145deg, var(--blood-red), var(--dark-blood)); box-shadow: 0 0 15px rgba(139, 0, 0, 0.5); }
.voice-indicator { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; background: rgba(139, 0, 0, 0.2); }
.voice-pulse { width: 12px; height: 12px; background: var(--crimson); border-radius: 50%; animation: voicePulse 1s infinite; }
@keyframes voicePulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }

/* ===== NAVIGATION TABS ===== */
.feature-nav { display: flex; justify-content: center; gap: 5px; padding: 10px; margin: 20px auto; max-width: 400px; }
.nav-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 8px; background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)); border: 2px solid var(--tarnished-gold); border-radius: 10px; color: var(--aged-paper); font-family: var(--font-body); font-size: 11px; cursor: pointer; transition: all 0.3s ease; }
.nav-tab .tab-icon { font-size: 20px; }
.nav-tab.active { background: linear-gradient(145deg, var(--blood-red), var(--dark-blood)); color: var(--bone-white); box-shadow: 0 0 15px rgba(139, 0, 0, 0.5); }
.nav-tab:hover:not(.active) { background: linear-gradient(145deg, var(--light-wood), var(--medium-wood)); }

/* ===== FEATURE SECTIONS ===== */
.feature-section { max-width: 400px; margin: 0 auto; padding: 20px; }
.section-header { text-align: center; margin-bottom: 25px; }
.section-header h2 { font-family: var(--font-display); font-size: 24px; color: var(--gold-accent); margin-bottom: 5px; }
.section-icon { margin-right: 10px; }
.section-subtitle { color: var(--aged-paper); font-size: 14px; font-style: italic; }

/* ===== TAROT ===== */
.tarot-spreads { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.spread-btn { flex: 1; min-width: 100px; padding: 12px; background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)); border: 2px solid var(--tarnished-gold); border-radius: 10px; color: var(--aged-paper); font-family: var(--font-body); font-size: 11px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: all 0.3s ease; }
.spread-btn .spread-count { font-size: 20px; font-weight: bold; color: var(--gold-accent); }
.spread-btn.active { background: linear-gradient(145deg, var(--ethereal-purple), #4a2a6c); border-color: var(--gold-accent); }
.spread-btn:hover:not(.active) { background: linear-gradient(145deg, var(--light-wood), var(--medium-wood)); }
.tarot-question { margin-bottom: 20px; }
.tarot-question input { width: 100%; padding: 15px; background: rgba(0, 0, 0, 0.4); border: 2px solid var(--tarnished-gold); border-radius: 10px; color: var(--bone-white); font-family: var(--font-body); font-size: 14px; }
.tarot-question input:focus { outline: none; border-color: var(--gold-accent); }
.tarot-reading { margin-top: 30px; }
.cards-display { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 20px; }
.tarot-card { width: 90px; height: 140px; background: linear-gradient(145deg, #2a1a4a, #1a0a2a); border: 3px solid var(--gold-accent); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; cursor: pointer; transition: all 0.3s ease; animation: cardReveal 0.5s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
@keyframes cardReveal { from { transform: rotateY(180deg); opacity: 0; } to { transform: rotateY(0); opacity: 1; } }
.tarot-card.reversed { transform: rotate(180deg); border-color: var(--blood-red); }
.tarot-card:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 10px 25px rgba(107, 74, 140, 0.5); }
.tarot-card.reversed:hover { transform: rotate(180deg) translateY(5px) scale(1.05); }
.card-number { font-size: 12px; color: var(--tarnished-gold); margin-bottom: 5px; }
.card-name { font-family: var(--font-display); font-size: 10px; color: var(--bone-white); text-align: center; line-height: 1.2; }
.card-position { font-size: 9px; color: var(--gold-accent); margin-top: 5px; text-transform: uppercase; }
.reading-interpretation { background: rgba(0, 0, 0, 0.4); border-left: 3px solid var(--ethereal-purple); padding: 20px; border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.6; }
.daily-card-section { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(139, 115, 85, 0.3); text-align: center; }
.daily-card-section h3 { font-family: var(--font-display); color: var(--gold-accent); margin-bottom: 10px; }
.daily-card-section p { color: var(--aged-paper); font-size: 13px; margin-bottom: 20px; }
.daily-card-result { margin-top: 20px; }

/* ===== HOROSCOPE ===== */
.zodiac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 30px; }
.zodiac-card { background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)); border: 2px solid var(--tarnished-gold); border-radius: 12px; padding: 15px 10px; text-align: center; cursor: pointer; transition: all 0.3s ease; }
.zodiac-card:hover { background: linear-gradient(145deg, var(--light-wood), var(--medium-wood)); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.zodiac-card.active { background: linear-gradient(145deg, var(--blood-red), var(--dark-blood)); border-color: var(--gold-accent); }
.zodiac-glyph { font-size: 28px; display: block; margin-bottom: 5px; }
.zodiac-label { font-family: var(--font-display); font-size: 12px; color: var(--bone-white); display: block; }
.zodiac-dates { font-size: 9px; color: var(--tarnished-gold); display: block; margin-top: 3px; }
.horoscope-detail { background: linear-gradient(145deg, rgba(26, 10, 0, 0.9), rgba(0, 0, 0, 0.9)); border: 2px solid var(--tarnished-gold); border-radius: 15px; padding: 20px; margin-bottom: 30px; }
.horoscope-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.horoscope-symbol { font-size: 36px; }
.horoscope-header h3 { font-family: var(--font-display); font-size: 22px; color: var(--gold-accent); flex: 1; }
.close-btn { background: none; border: none; color: var(--bone-white); font-size: 28px; cursor: pointer; opacity: 0.7; }
.close-btn:hover { opacity: 1; color: var(--crimson); }
.period-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.period-tab { flex: 1; padding: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tarnished-gold); border-radius: 8px; color: var(--aged-paper); font-family: var(--font-body); font-size: 12px; cursor: pointer; transition: all 0.3s ease; }
.period-tab.active { background: var(--blood-red); color: var(--bone-white); }
.forecast-section { margin-bottom: 20px; }
.forecast-section h4 { color: var(--gold-accent); font-size: 14px; margin-bottom: 8px; }
.forecast-section p { color: var(--bone-white); font-size: 14px; line-height: 1.5; }
.lucky-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(139, 115, 85, 0.3); }
.lucky-item { text-align: center; }
.lucky-label { display: block; font-size: 10px; color: var(--tarnished-gold); text-transform: uppercase; margin-bottom: 5px; }
.lucky-value { display: block; font-size: 18px; font-weight: bold; color: var(--gold-accent); }
.compatibility-section { text-align: center; padding-top: 30px; border-top: 1px solid rgba(139, 115, 85, 0.3); }
.compatibility-section h3 { font-family: var(--font-display); color: var(--gold-accent); margin-bottom: 20px; }
.compatibility-selects { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 20px; }
.compatibility-selects select { padding: 12px 15px; background: rgba(0, 0, 0, 0.5); border: 2px solid var(--tarnished-gold); border-radius: 8px; color: var(--bone-white); font-family: var(--font-body); font-size: 14px; cursor: pointer; }
.compatibility-selects select:focus { outline: none; border-color: var(--gold-accent); }
.compat-heart { font-size: 24px; animation: heartBeat 1s infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.compatibility-result { background: rgba(0, 0, 0, 0.4); border-radius: 15px; padding: 20px; margin-top: 20px; }
.compat-score { font-size: 48px; font-weight: bold; color: var(--crimson); margin-bottom: 10px; }
.compat-description { color: var(--bone-white); font-size: 14px; }

/* ===== SOULS ===== */
.souls-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.stat-card { background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)); border: 2px solid var(--tarnished-gold); border-radius: 12px; padding: 20px; text-align: center; }
.stat-card .stat-value { display: block; font-size: 32px; font-weight: bold; color: var(--crimson); font-family: var(--font-display); }
.stat-card .stat-label { display: block; font-size: 11px; color: var(--tarnished-gold); text-transform: uppercase; margin-top: 5px; }
.souls-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.empty-vault { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--aged-paper); }
.vault-icon { font-size: 48px; display: block; margin-bottom: 15px; opacity: 0.5; }
.vault-hint { font-size: 12px; opacity: 0.7; margin-top: 10px; }
.soul-capsule { background: linear-gradient(145deg, #1a0a2a, #2a1a4a); border: 2px solid var(--ethereal-purple); border-radius: 10px; padding: 15px 10px; text-align: center; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.soul-capsule::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(107, 74, 140, 0.2) 0%, transparent 70%); animation: soulGlow 3s infinite; }
@keyframes soulGlow { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 0.8; } }
.soul-capsule:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(107, 74, 140, 0.4); border-color: var(--gold-accent); }
.capsule-icon { font-size: 28px; display: block; margin-bottom: 8px; position: relative; z-index: 1; }
.capsule-name { font-family: var(--font-display); font-size: 11px; color: var(--bone-white); display: block; position: relative; z-index: 1; }
.capsule-power { font-size: 10px; color: var(--gold-accent); display: block; margin-top: 5px; position: relative; z-index: 1; }

/* Soul Modal */
.soul-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; z-index: 10001; }
.soul-modal-content { background: linear-gradient(145deg, #1a0a2a, #2a1a4a); border: 3px solid var(--ethereal-purple); border-radius: 20px; padding: 30px; max-width: 350px; width: 90%; text-align: center; position: relative; }
.soul-portrait { width: 100px; height: 100px; margin: 0 auto 20px; position: relative; }
.portrait-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; background: radial-gradient(circle, rgba(107, 74, 140, 0.5) 0%, transparent 70%); border-radius: 50%; animation: portraitPulse 2s infinite; }
@keyframes portraitPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.2); } }
.portrait-icon { font-size: 60px; position: relative; z-index: 1; }
.soul-modal .soul-name { font-family: var(--font-display); font-size: 22px; color: var(--gold-accent); margin-bottom: 20px; }
.soul-modal .soul-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; text-align: left; }
.soul-modal .soul-stat { font-size: 13px; color: var(--aged-paper); }
.soul-modal .soul-stat span:first-child { color: var(--tarnished-gold); }
.soul-backstory { background: rgba(0, 0, 0, 0.3); border-left: 3px solid var(--ethereal-purple); padding: 15px; margin-bottom: 20px; font-style: italic; font-size: 13px; text-align: left; border-radius: 0 8px 8px 0; }

/* ===== SEANCE CONTROLS ===== */
.sensor-status { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.sensor-indicator { background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)); border: 2px solid var(--tarnished-gold); border-radius: 10px; padding: 10px 15px; text-align: center; min-width: 70px; transition: all 0.3s ease; }
.sensor-indicator.active { border-color: var(--crimson); box-shadow: 0 0 15px rgba(220, 20, 60, 0.3); }
.sensor-icon { font-size: 18px; display: block; }
.sensor-name { font-size: 9px; color: var(--tarnished-gold); display: block; letter-spacing: 1px; margin: 3px 0; }
.sensor-value { font-size: 12px; font-weight: bold; color: var(--bone-white); display: block; }
.controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.control-btn { padding: 15px; background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)); border: 2px solid var(--tarnished-gold); border-radius: 12px; color: var(--bone-white); font-family: var(--font-body); font-size: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: all 0.3s ease; }
.control-btn .btn-icon { font-size: 24px; }
.control-btn.primary { grid-column: 1 / -1; background: linear-gradient(145deg, var(--blood-red), var(--dark-blood)); }
.control-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.4); }
.control-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== GOTHIC BUTTONS ===== */
.gothic-btn { padding: 15px 30px; background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)); border: 2px solid var(--tarnished-gold); border-radius: 10px; color: var(--bone-white); font-family: var(--font-body); font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; }
.gothic-btn.primary { background: linear-gradient(145deg, var(--blood-red), var(--dark-blood)); }
.gothic-btn.secondary { background: linear-gradient(145deg, var(--ethereal-purple), #4a2a6c); }
.gothic-btn.danger { background: linear-gradient(145deg, #4a0000, #2a0000); border-color: var(--blood-red); }
.gothic-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0,0,0,0.4); }

/* ===== SESSION INFO ===== */
.session-info { display: flex; justify-content: center; gap: 20px; padding: 15px; background: rgba(0, 0, 0, 0.3); border-radius: 10px; }
.session-stat { text-align: center; }
.session-stat .stat-label { font-size: 10px; color: var(--tarnished-gold); text-transform: uppercase; display: block; }
.session-stat .stat-value { font-size: 20px; font-weight: bold; color: var(--bone-white); font-family: var(--font-display); }

/* ===== EVP INDICATOR ===== */
.evp-indicator { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(139, 0, 0, 0.9); border: 3px solid var(--gold-accent); border-radius: 15px; padding: 30px 40px; display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 1000; animation: evpPulse 1s infinite; }
@keyframes evpPulse { 0%, 100% { box-shadow: 0 0 20px rgba(139, 0, 0, 0.5); } 50% { box-shadow: 0 0 40px rgba(139, 0, 0, 0.8); } }
.evp-pulse { width: 20px; height: 20px; background: var(--crimson); border-radius: 50%; animation: recordPulse 0.5s infinite; }
@keyframes recordPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.evp-time { font-family: var(--font-display); font-size: 24px; }

/* ===== CLOSING RITUAL ===== */
.closing-ritual { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.98); display: flex; align-items: center; justify-content: center; z-index: 10002; animation: ritualFade 0.5s ease; }
@keyframes ritualFade { from { opacity: 0; } to { opacity: 1; } }
.ritual-content { text-align: center; animation: ritualReveal 1s ease; }
@keyframes ritualReveal { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ritual-candles { font-size: 36px; margin-bottom: 30px; display: flex; justify-content: center; gap: 30px; }
.ritual-candles span { animation: candleFlicker 1s infinite; }
@keyframes candleFlicker { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.95); } }
.closing-ritual h2 { font-family: var(--font-heading); font-size: 32px; color: var(--gold-accent); margin-bottom: 20px; }
.ritual-text { color: var(--aged-paper); font-size: 16px; margin-bottom: 10px; font-style: italic; }
.ritual-symbol { font-size: 48px; color: var(--blood-red); margin-top: 30px; animation: symbolSpin 5s linear infinite; }
@keyframes symbolSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== CORNER ORNAMENTS ===== */
.corner-ornament { position: fixed; width: 60px; height: 60px; border: 3px solid var(--tarnished-gold); opacity: 0.3; pointer-events: none; z-index: 9999; }
.corner-ornament.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner-ornament.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner-ornament.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.corner-ornament.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* ===== MODAL ===== */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; z-index: 10001; }
.modal-content { background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)); border: 3px solid var(--tarnished-gold); border-radius: 20px; padding: 40px; max-width: 400px; width: 90%; text-align: center; }
.modal-content h2 { font-family: var(--font-heading); font-size: 24px; color: var(--gold-accent); margin-bottom: 15px; }
.permission-list { list-style: none; text-align: left; margin: 20px 0; }
.permission-list li { padding: 10px 0; border-bottom: 1px solid rgba(139, 115, 85, 0.3); font-size: 14px; }
.permission-note { font-size: 12px; color: var(--tarnished-gold); margin-top: 15px; }

/* ===== PREMIUM SECTION ===== */
.premium-card {
  background: linear-gradient(145deg, #1a0a2a, #2a1040);
  border: 3px solid var(--gold-accent);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(201, 162, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.premium-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold-accent), #e8c547);
  color: #1a0a00;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.5);
}
.premium-icon {
  font-size: 48px;
  margin: 15px 0;
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.5);
}
.premium-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-accent);
  margin-bottom: 10px;
}
.premium-price {
  font-size: 42px;
  font-weight: bold;
  color: var(--bone-white);
  margin: 15px 0;
}
.premium-price span {
  font-size: 16px;
  color: var(--tarnished-gold);
  font-weight: normal;
}
.premium-features {
  list-style: none;
  text-align: left;
  margin: 25px 0;
  padding: 0;
}
.premium-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
  color: var(--bone-white);
  font-size: 14px;
}
.premium-features li:last-child {
  border-bottom: none;
}
.premium-btn {
  width: 100%;
  padding: 18px 30px;
  font-size: 16px;
  background: linear-gradient(145deg, var(--gold-accent), #e8c547) !important;
  color: #1a0a00 !important;
  border-color: var(--gold-accent) !important;
  font-weight: bold;
}
.premium-btn:hover {
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.6) !important;
}
.premium-divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}
.premium-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tarnished-gold), transparent);
}
.premium-divider span {
  background: linear-gradient(135deg, var(--dark-wood) 0%, #0d0501 50%, var(--dark-wood) 100%);
  padding: 0 20px;
  color: var(--tarnished-gold);
  font-size: 11px;
  letter-spacing: 2px;
  position: relative;
}
.premium-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
.premium-item {
  background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood));
  border: 2px solid var(--tarnished-gold);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.premium-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold-accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.premium-item .item-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.premium-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-accent);
  margin-bottom: 8px;
}
.premium-item p {
  font-size: 12px;
  color: var(--aged-paper);
  margin-bottom: 12px;
}
.premium-item .item-price {
  font-size: 24px;
  font-weight: bold;
  color: var(--bone-white);
  margin-bottom: 15px;
}
.premium-item .gothic-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 13px;
}

/* ===== YOUTUBE SECTION ===== */
.youtube-section {
  background: linear-gradient(145deg, #1a0000, #2a0505);
  border: 2px solid var(--blood-red);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  margin-top: 30px;
}
.youtube-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.youtube-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--bone-white);
  margin: 0;
}
.youtube-icon {
  width: 40px;
  height: 40px;
  background: #ff0000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}
.youtube-desc {
  color: var(--aged-paper);
  font-size: 14px;
  margin-bottom: 20px;
}
.youtube-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ff0000;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}
.youtube-btn:hover {
  background: #cc0000;
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
}
.youtube-btn .yt-icon {
  flex-shrink: 0;
}
.youtube-channel {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.channel-name {
  color: var(--bone-white);
  font-size: 14px;
  font-weight: bold;
}
.channel-tag {
  color: var(--tarnished-gold);
  font-size: 12px;
}

/* ===== PAYMENT SECURITY ===== */
.payment-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  color: var(--tarnished-gold);
  font-size: 12px;
}
.security-icon {
  font-size: 16px;
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-wood); }
::-webkit-scrollbar-thumb { background: var(--tarnished-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
  .logo { font-size: 28px; }
  .nav-tab { padding: 10px 5px; }
  .nav-tab .tab-text { font-size: 9px; }
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .zodiac-card { padding: 10px 5px; }
  .zodiac-glyph { font-size: 22px; }
  .zodiac-label { font-size: 10px; }
  .zodiac-dates { display: none; }
  .controls { grid-template-columns: 1fr 1fr; gap: 8px; }
  .control-btn { padding: 12px 8px; font-size: 10px; }
  .control-btn .btn-icon { font-size: 20px; }
}
