/* ==========================================================================
   RIPIT COMING SOON - STYLE.CSS (LIGHT THEME / BRAND COLORS)
   ========================================================================== */

/* --- Custom Variables & Reset --- */
:root {
  --color-bg: #fdfdfd;
  --color-bg-darker: #f4f6fa;
  --color-primary: #f8282a; /* Ripit Brand Red */
  --color-primary-glow: rgba(248, 40, 42, 0.18);
  --color-secondary: #32a3ff; /* Ripit Electric Blue */
  --color-secondary-glow: rgba(50, 163, 255, 0.18);
  --color-accent: #a24bf7; /* Ripit Purple */
  --color-accent-glow: rgba(162, 75, 247, 0.18);
  --color-yellow: #e7a500; /* Ripit Yellow */
  --color-text-main: #121824;
  --color-text-muted: #5e6b82;
  --color-card-border: rgba(15, 23, 42, 0.08);
  --color-glass-bg: rgba(255, 255, 255, 0.88);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--color-bg);
  background-image: radial-gradient(circle at top left, #ffffff, var(--color-bg-darker));
  color: var(--color-text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* --- Particles Canvas & Background Ambient Glow --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  transition: all 1s ease;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatGlow1 20s infinite alternate;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
  animation: floatGlow2 25s infinite alternate;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 80px) scale(1.1); }
  100% { transform: translate(50px, -50px) scale(0.9); }
}

@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(1.2); }
  50% { transform: translate(80px, -120px) scale(0.9); }
  100% { transform: translate(-50px, 50px) scale(1.1); }
}

/* --- Container --- */
.app-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: space-between;
}

/* --- Header & Logo --- */
.app-header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Premium dark header wrapper for the logo since it has a dark background details */
.logo-wrapper {
  background: #111522;
  padding: 10px 28px;
  border-radius: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 0 1px rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s ease;
}

.logo-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(248, 40, 42, 0.25);
  border-color: rgba(248, 40, 42, 0.3);
}

.brand-logo {
  height: 48px;
  width: auto;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.brand-logo:hover {
  transform: scale(1.03) rotateY(10deg);
}

/* --- Hero Section --- */
.hero-section {
  text-align: center;
  max-width: 750px;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(248, 40, 42, 0.05);
  border: 1px solid rgba(248, 40, 42, 0.25);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(248, 40, 42, 0.08);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px var(--color-primary-glow);
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  animation: pulseRadar 1.5s infinite linear;
}

@keyframes pulseRadar {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, #121824 20%, var(--color-primary) 65%, var(--color-secondary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 6s linear infinite;
}

@keyframes textShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 620px;
}

/* --- Pack Reveal Section --- */
.pack-reveal-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
  perspective: 1200px;
}

.section-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.hint-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
}

.hint-arrows {
  color: var(--color-primary);
  animation: bounceArrow 1.5s infinite ease-in-out;
}

.arrow-icon {
  width: 18px;
  height: 18px;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; filter: drop-shadow(0 0 5px var(--color-primary)); }
}

.pack-3d-wrapper {
  position: relative;
  width: 290px;
  height: 410px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  cursor: pointer;
  z-index: 20;
}

/* --- The Booster Pack (Silver & Brand Colors) --- */
.booster-pack {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #eaeef6);
  border: 1.5px solid rgba(248, 40, 42, 0.15);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 
              0 0 25px rgba(248, 40, 42, 0.05),
              inset 0 0 20px rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
}

/* Metallic foil crimped edges */
.pack-foil-top, .pack-foil-bottom {
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    #e2e8f0,
    #e2e8f0 3px,
    #f1f5f9 3px,
    #f1f5f9 6px,
    #cbd5e1 6px,
    #cbd5e1 9px
  );
  border-bottom: 1.5px solid rgba(248, 40, 42, 0.2);
  position: relative;
}
.pack-foil-bottom {
  border-bottom: none;
  border-top: 1.5px solid rgba(248, 40, 42, 0.2);
}

.pack-foil-top::after, .pack-foil-bottom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.5) 80%, transparent);
}

.pack-body {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pack-inner-border {
  flex: 1;
  border: 1px solid rgba(248, 40, 42, 0.25);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(circle at center, rgba(248, 40, 42, 0.04) 0%, transparent 80%);
  position: relative;
}

/* Shining foil overlay for card pack */
.pack-inner-border::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.4) 45%, rgba(248, 40, 42, 0.08) 50%, rgba(50, 163, 255, 0.08) 55%, transparent 60%);
  background-size: 250% 250%;
  background-position: 0% 0%;
  pointer-events: none;
  border-radius: 7px;
  animation: shineFoilPack 8s infinite linear;
}

@keyframes shineFoilPack {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

.pack-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pack-serial {
  color: var(--color-secondary);
}

.pack-rarity {
  color: var(--color-primary);
  text-shadow: 0 0 6px var(--color-primary-glow);
}

.pack-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  transform: translateZ(30px); /* 3D layer pop */
  background: #111522;
  border-radius: 12px;
  padding: 12px;
  margin: 15px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.pack-logo {
  max-width: 120px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(248, 40, 42, 0.4));
  animation: floatPackLogo 4s ease-in-out infinite;
}

@keyframes floatPackLogo {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 10px rgba(248, 40, 42, 0.4)); }
  50% { transform: translateY(-6px); filter: drop-shadow(0 0 18px rgba(50, 163, 255, 0.5)); }
}

.pack-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  transform: translateZ(20px);
}

.pack-btn {
  background: linear-gradient(135deg, var(--color-primary), #d3181a);
  border: none;
  border-radius: 30px;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding: 8px 30px;
  box-shadow: 0 6px 15px rgba(248, 40, 42, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pack-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(248, 40, 42, 0.35);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: shineBtn 2.5s infinite ease;
}

@keyframes shineBtn {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Pack Hover and Tilt Glows */
.pack-3d-wrapper:hover .booster-pack {
  border-color: rgba(248, 40, 42, 0.35);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12),
              0 0 35px rgba(248, 40, 42, 0.15),
              0 0 10px rgba(50, 163, 255, 0.1);
}

/* Pack Ripped State (Split & Open Animation) */
.booster-pack.ripped-top {
  animation: ripTop 1s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.booster-pack.ripped-bottom {
  animation: ripBottom 1s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes ripTop {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  30% { transform: translateY(-50px) rotate(-8deg); opacity: 0.9; }
  100% { transform: translateY(-300px) rotate(-20deg) scale(0.8); opacity: 0; pointer-events: none; }
}

@keyframes ripBottom {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  30% { transform: translateY(50px) rotate(8deg); opacity: 0.9; }
  100% { transform: translateY(300px) rotate(20deg) scale(0.8); opacity: 0; pointer-events: none; }
}


/* --- The Holographic Hologram Card (Light Premium Glass) --- */
.holo-card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 246, 250, 0.95) 100%);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  padding: 14px;
  display: flex;
  flex-direction: column;
  z-index: 5;
  transform-style: preserve-3d;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15),
              0 0 35px rgba(50, 163, 255, 0.2),
              inset 0 0 30px rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateZ(-100px) scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.holo-card.revealed {
  opacity: 1;
  transform: translateZ(0) scale(1);
  animation: cardEntranceGlow 2.5s infinite alternate ease-in-out;
}

@keyframes cardEntranceGlow {
  0% { box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12), 0 0 20px rgba(50, 163, 255, 0.15); }
  100% { box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18), 0 0 30px rgba(248, 40, 42, 0.25), 0 0 10px rgba(162, 75, 247, 0.15); }
}

/* 3D tilt effects inside card */
.holo-card .card-inner {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Card Hologram Foil / Glare Overlays */
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(50, 163, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: color-dodge;
  opacity: 0.8;
  transition: background 0.1s ease;
}

.card-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.3) 45%,
    rgba(248, 40, 42, 0.15) 50%,
    rgba(50, 163, 255, 0.15) 55%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 200%;
  background-position: 0% 0%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
  opacity: 0.9;
  transition: background-position 0.1s ease;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-display);
  transform: translateZ(20px);
}

.card-rarity-badge {
  font-size: 0.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(248, 40, 42, 0.2);
}

.card-id {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Card illustration container */
.card-art-container {
  flex: 1.1;
  background: radial-gradient(circle, #252e46 0%, #111522 100%);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  transform: translateZ(15px);
  padding: 10px;
}

.card-art-logo {
  max-width: 90px;
  width: 60%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(248, 40, 42, 0.5));
  z-index: 5;
  animation: cardArtPulse 3s ease-in-out infinite alternate;
}

@keyframes cardArtPulse {
  0% { transform: scale(0.95); filter: drop-shadow(0 0 8px rgba(248, 40, 42, 0.4)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 18px rgba(50, 163, 255, 0.5)); }
}

.card-energy-core {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 40, 42, 0.2) 0%, transparent 60%);
  filter: blur(10px);
  animation: energyPulse 4s infinite linear;
}

@keyframes energyPulse {
  0% { transform: scale(0.8) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 0.9; }
  100% { transform: scale(0.8) rotate(360deg); opacity: 0.5; }
}

/* Card stats/details */
.card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateZ(25px);
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  text-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.card-description {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 4px;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stat-box {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 6px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: rgba(248, 40, 42, 0.04);
  border-color: rgba(248, 40, 42, 0.15);
}

.stat-val {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-secondary);
}

.stat-lbl {
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Pack feedback message */
.interaction-message {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-family: var(--font-display);
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0.85;
  transition: all 0.5s ease;
}

.interaction-message.ripped {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(248, 40, 42, 0.2);
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}


/* --- Waitlist Sign-up Form Section --- */
.waitlist-section {
  width: 100%;
  max-width: 540px;
  margin-bottom: 3.5rem;
}

.form-container-glass {
  background: var(--color-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06), 
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.form-container-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.form-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--color-text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: color 0.3s ease;
}

.email-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 14px 16px 14px 48px;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.email-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(248, 40, 42, 0.08), inset 0 2px 4px rgba(0,0,0,0.01);
  background: #ffffff;
}

.email-input:focus ~ .input-icon {
  color: var(--color-primary);
}

.email-input:focus ~ .input-glow-border {
  opacity: 1;
}

.input-glow-border {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1.5px solid var(--color-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.submit-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b21416 100%);
  border: none;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(248, 40, 42, 0.2);
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d3181a 0%, var(--color-primary) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(248, 40, 42, 0.3);
}

.submit-btn:hover::before {
  opacity: 1;
}

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

.btn-inner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #fff;
}

.btn-icon {
  width: 16px;
  height: 16px;
  color: #fff;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Success State Styles */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInSuccess 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.success-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(50, 163, 255, 0.08);
  border: 1px solid rgba(50, 163, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(50, 163, 255, 0.1);
}

.success-icon {
  width: 32px;
  height: 32px;
  color: var(--color-secondary);
}

.animate-success {
  animation: scaleSuccessIcon 0.5s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes scaleSuccessIcon {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.6rem;
}

.success-message {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

#invite-code {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  background: rgba(248, 40, 42, 0.06);
  border: 1px dashed rgba(248, 40, 42, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: rgba(15, 23, 42, 0.3);
  color: var(--color-text-main);
}

.hidden {
  display: none !important;
}


/* --- Countdown Section --- */
.countdown-section {
  text-align: center;
  margin-bottom: 3.5rem;
}

.countdown-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.25em;
  margin-bottom: 1.2rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.timer-box {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-card-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 75px;
  height: 75px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.timer-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1;
  margin-bottom: 2px;
}

.timer-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.timer-divider {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.6;
  animation: pulseDivider 1s infinite alternate;
}

@keyframes pulseDivider {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}


/* --- Footer & Social Links --- */
.app-footer-social {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 2rem;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.social-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.social-link-icon:hover {
  color: var(--color-primary);
  background: rgba(248, 40, 42, 0.06);
  border-color: rgba(248, 40, 42, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(248, 40, 42, 0.15);
}

.social-link-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-copyright {
  font-size: 0.65rem;
  color: rgba(94, 107, 130, 0.5);
  max-width: 500px;
  line-height: 1.5;
}


/* --- Media Queries (Responsiveness) --- */
@media (max-width: 600px) {
  .app-container {
    padding: 2rem 1rem 3rem 1rem;
  }
  
  .hero-section {
    margin-bottom: 2rem;
  }
  
  .pack-reveal-section {
    margin-bottom: 3rem;
  }
  
  .pack-3d-wrapper {
    width: 250px;
    height: 355px;
  }
  
  .card-art-logo {
    max-width: 75px;
  }
  
  .card-title {
    font-size: 0.85rem;
  }
  
  .card-description {
    font-size: 0.6rem;
  }
  
  .form-container-glass {
    padding: 2rem 1.2rem;
  }
  
  .timer-box {
    width: 60px;
    height: 60px;
  }
  
  .timer-num {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   GRAILS & CHASES SECTION STYLING
   ========================================================================== */
.grails-section {
  width: 100%;
  max-width: 950px;
  margin: 4rem 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #aedeff 0%, #e0f2fe 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 2rem;
  z-index: 10;
}

.grails-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  border-radius: 100px;
  filter: blur(4px);
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.cloud-1 {
  width: 120px;
  height: 40px;
  top: 15%;
  left: -40px;
  opacity: 0.7;
  animation: floatCloud 25s infinite linear;
}
.cloud-1::before { width: 50px; height: 50px; top: -25px; left: 15px; }
.cloud-1::after { width: 70px; height: 70px; top: -35px; left: 40px; }

.cloud-2 {
  width: 160px;
  height: 50px;
  bottom: 20%;
  right: -60px;
  opacity: 0.6;
  animation: floatCloudReverse 30s infinite linear;
}
.cloud-2::before { width: 70px; height: 70px; top: -35px; left: 20px; }
.cloud-2::after { width: 90px; height: 90px; top: -45px; left: 55px; }

.cloud-3 {
  width: 200px;
  height: 60px;
  bottom: -10px;
  left: 10%;
  opacity: 0.9;
  filter: blur(8px);
  background: white;
}
.cloud-3::before { width: 90px; height: 90px; top: -45px; left: 30px; background: white; }
.cloud-3::after { width: 110px; height: 110px; top: -55px; left: 80px; background: white; }

@keyframes floatCloud {
  0% { transform: translateX(0); }
  100% { transform: translateX(1100px); }
}
@keyframes floatCloudReverse {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1100px); }
}

.grails-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.grails-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #121824;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.grails-subtitle {
  font-size: clamp(0.85rem, 1.8vw, 0.98rem);
  color: #3b4e6b;
  max-width: 580px;
  line-height: 1.5;
  margin-bottom: 3.5rem;
}

.grails-swiper {
  width: 100%;
  max-width: 900px;
  padding: 20px 0;
  margin-bottom: 2rem;
  overflow: visible !important; /* Crucial: allows active scaling cards to overlap vertically without clipping */
}

.grail-slide {
  width: 210px !important; /* Adjusted to exact 3:5 aspect ratio of Pokemon card assets (640x1067) */
  height: 350px !important; /* Adjusted to exact 3:5 aspect ratio of Pokemon card assets (640x1067) */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: transparent; /* Changed from white to transparent to prevent borders showing */
  filter: brightness(0.8) contrast(0.95);
  transform-origin: bottom center;
}

.grail-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover to contain to prevent cropping PSA label/slab cases */
  display: block;
}

/* Swiper Coverflow Active Highlight Style */
.grail-slide.swiper-slide-active {
  filter: brightness(1.05) contrast(1.05) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(50, 163, 255, 0.15);
}

.grail-details-box {
  width: 100%;
  max-width: 440px;
  margin-bottom: 2.2rem;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.grail-details-inner {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.grail-pack-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.grail-card-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: #3b4e6b;
  line-height: 1.4;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grail-value-row {
  width: 100%;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grail-value-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: #121824;
}

.grail-value-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #10b981;
}

.grail-cta-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #d3181a 100%);
  border: none;
  border-radius: 50px;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 12px 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(248, 40, 42, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  margin-bottom: 1.5rem;
}

.grail-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(248, 40, 42, 0.35);
  background: linear-gradient(135deg, #ff3639 0%, #e62022 100%);
}

.grail-cta-btn:active {
  transform: translateY(0);
}

.grail-disclaimer {
  font-size: 0.65rem;
  color: #5e6b82;
  max-width: 480px;
  line-height: 1.4;
  opacity: 0.8;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .grails-section {
    padding: 2.5rem 1rem;
    margin: 3rem 0;
  }
  
  .grails-swiper {
    padding: 15px 0;
    max-width: 100%;
    overflow: visible !important;
  }
  
  .grail-slide {
    width: 150px !important;
    height: 250px !important; /* Adjusted to exact 3:5 aspect ratio */
  }
  
  .grail-details-box {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .grails-section {
    padding: 2rem 0.75rem;
    margin: 2rem 0;
  }

  .grails-title {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
  }

  .grails-subtitle {
    margin-bottom: 1.8rem;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .grails-swiper {
    padding: 10px 0;
    overflow: visible !important;
  }
  
  .grail-slide {
    width: 114px !important;
    height: 190px !important; /* Adjusted to exact 3:5 aspect ratio */
  }
  
  .grail-details-box {
    max-width: 95%;
    margin-bottom: 1.5rem;
  }

  .grail-cta-btn {
    padding: 10px 28px;
    font-size: 0.8rem;
  }

  .grail-card-desc {
    font-size: 0.72rem;
    min-height: 2.2rem;
  }
}
