@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,900;1,400;1,600&display=swap');

:root {
  /* Ultra-Luxury Obsidian & Champagne Gold Palette */
  --bg-obsidian: #08080a;
  --bg-surface: #0f0f13;
  --bg-surface-elevated: #16161d;
  --bg-card: rgba(18, 18, 24, 0.78);
  --bg-card-hover: rgba(28, 25, 34, 0.9);
  
  /* Primary Velvet Ruby & Rose Wine */
  --primary-ruby: #94172f;
  --primary-ruby-light: #b8233f;
  --primary-ruby-glow: rgba(184, 35, 63, 0.35);
  
  /* Luxury Champagne Gold */
  --gold-primary: #dcb362;
  --gold-light: #f7e6b8;
  --gold-dark: #a87e28;
  --gold-glow: rgba(220, 179, 98, 0.25);
  
  /* Text tokens */
  --text-main: #f5f5f7;
  --text-secondary: #c5c2cc;
  --text-muted: #837f8f;
  
  /* Hairline Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(220, 179, 98, 0.28);
  --border-ruby: rgba(184, 35, 63, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
  selection-background-color: var(--primary-ruby);
}

/* Background Atmosphere */
body {
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(148, 23, 47, 0.18) 0%, transparent 65%),
    radial-gradient(circle at 10% 40%, rgba(220, 179, 98, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(148, 23, 47, 0.12) 0%, transparent 45%);
  background-attachment: fixed;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

/* Luxury Typography Gradients */
.gold-gradient-text {
  background: linear-gradient(135deg, #fff7d6 0%, #e2be72 45%, #b98e32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ruby-gradient-text {
  background: linear-gradient(135deg, #ff7a93 0%, #de284c 50%, #8a0e24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Luxury Glass Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.04);
}

.glass-panel-ruby {
  background: linear-gradient(145deg, rgba(32, 10, 17, 0.85) 0%, rgba(15, 12, 18, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-ruby);
  box-shadow: 0 15px 40px -10px rgba(148, 23, 47, 0.25), 0 0 1px 1px rgba(220, 179, 98, 0.1);
}

.gold-border-glow {
  border: 1px solid var(--gold-primary) !important;
  box-shadow: 0 0 25px var(--gold-glow), 0 8px 30px rgba(0, 0, 0, 0.8) !important;
}

/* App-Like Primary Button */
.ruby-btn {
  background: linear-gradient(135deg, #a81c37 0%, #6d0b1f 100%);
  color: #ffffff;
  border: 1px solid rgba(247, 230, 184, 0.3);
  box-shadow: 0 4px 20px rgba(168, 28, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ruby-btn:hover {
  background: linear-gradient(135deg, #ba2240 0%, #7d0d24 100%);
  box-shadow: 0 6px 28px rgba(186, 34, 64, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1.5px);
}

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

/* App Screen Containers (Optimized for Mobile Height) */
.mobile-app-screen {
  min-height: calc(100dvh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Quiz Options with Native Haptic Feel */
.quiz-option-card {
  background: rgba(22, 20, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

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

.quiz-option-card:hover {
  background: rgba(36, 26, 38, 0.85);
  border-color: var(--border-gold);
}

.quiz-option-card.selected {
  background: linear-gradient(135deg, rgba(125, 18, 42, 0.85) 0%, rgba(45, 14, 25, 0.9) 100%);
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* Book Mockup (Clean luxury book object) */
.book-3d-card {
  background: linear-gradient(145deg, #220811 0%, #110509 60%, #0a0306 100%);
  border: 1px solid rgba(220, 179, 98, 0.35);
  box-shadow: 
    -5px 12px 30px rgba(0, 0, 0, 0.85),
    inset 3px 0 6px rgba(255, 255, 255, 0.12),
    0 0 20px rgba(148, 23, 47, 0.2);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.book-cover-ukrainian {
  background: radial-gradient(circle at 50% 25%, #2a0914 0%, #140409 65%, #080204 100%);
  border: 1.5px solid rgba(220, 179, 98, 0.5);
  box-shadow: 
    -8px 18px 45px rgba(0, 0, 0, 0.95),
    0 0 25px rgba(184, 35, 63, 0.25),
    inset 0 0 25px rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-cover-ukrainian:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(247, 230, 184, 0.8);
  box-shadow: 
    -12px 24px 55px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(220, 179, 98, 0.4);
}

.book-gold-emboss-title {
  font-family: 'Cinzel', serif;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #fff9e6 0%, #e8c872 35%, #b5892b 70%, #ffd885 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9));
}

.book-spine-effect {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.6) 40%, rgba(255,255,255,0.08) 80%, transparent 100%);
  border-right: 1px solid rgba(220, 179, 98, 0.35);
  z-index: 15;
}

.book-gold-frame {
  border: 1px solid rgba(220, 179, 98, 0.35);
  box-shadow: inset 0 0 12px rgba(220, 179, 98, 0.15);
}

/* Image Visual Cards */
.visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.visual-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 8, 10, 0.95) 100%);
}

/* Quiz Progress Bar */
.quiz-progress-fill {
  background: linear-gradient(90deg, #94172f 0%, #dcb362 100%);
  box-shadow: 0 0 10px var(--gold-glow);
  transition: width 0.3s ease;
}

/* Social Proof Toast (Discreet app notification) */
.social-proof-toast {
  position: fixed;
  top: 68px;
  right: 16px;
  z-index: 45;
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-proof-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .social-proof-toast {
    top: 60px;
    right: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }
}

/* App Bottom Sticky Action Bar */
.sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.85);
  padding-bottom: env(safe-area-inset-bottom, 8px);
}

.sticky-buy-bar.visible {
  transform: translateY(0);
}