/* ============================================
   Garden Match Puzzles — Marketing Website Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --green-dark: #0d2818;
  --green-deep: #1a472a;
  --green-mid: #2d6a4f;
  --green-bright: #00b894;
  --green-light: #55efc4;
  --green-lime: #8bc34a;
  --gold: #ffd93d;
  --gold-dark: #f0c000;
  --white: #ffffff;
  --white-soft: #f0f7f4;
  --gray-light: #e8f5e9;
  --text: #1a1a2e;
  --text-muted: #4a6741;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: 'Fredoka', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 50%, var(--green-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Sections --- */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-bright), var(--green-lime));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  backdrop-filter: blur(0px);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--green-deep); }
.nav.scrolled .nav-logo span { color: var(--green-deep); }
.nav:not(.scrolled) .nav-logo span { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.85); }
.nav:not(.scrolled) .nav-links a:hover { color: var(--gold); }
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav.scrolled .nav-links a:hover { color: var(--green-bright); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: var(--transition);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255, 217, 61, 0.4); }

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  transition: var(--transition);
}
.nav:not(.scrolled) .nav-toggle span { background: var(--white); }
.nav.scrolled .nav-toggle span { background: var(--text); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 40, 24, 0.97);
  z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-deep) 40%, #1a5c35 70%, var(--green-mid) 100%);
  overflow: hidden;
}
.hero-bg-tiles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-tiles .float-tile {
  position: absolute;
  font-size: 2rem;
  opacity: 0.12;
  animation: floatTile linear infinite;
  will-change: transform;
}
@keyframes floatTile {
  0% { transform: translateY(110vh) rotate(0deg); }
  100% { transform: translateY(-10vh) rotate(360deg); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 217, 61, 0.15);
  border: 1px solid rgba(255, 217, 61, 0.3);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 4px 24px rgba(255, 217, 61, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 217, 61, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.btn-icon { font-size: 0.85em; }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 1.2rem;
  color: var(--gold);
}
.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
}

/* Phone Mockup */
.hero-phone {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.phone-frame {
  width: 280px;
  background: #111;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}
.phone-screen {
  background: linear-gradient(180deg, var(--green-deep), #0d3320);
  border-radius: 26px;
  padding: 16px 12px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}
.phone-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  padding: 0 4px;
}
.phone-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  flex: 1;
  align-content: center;
}
.phone-board .tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: default;
}
.phone-board .tile.matched {
  animation: tileMatch 0.4s ease forwards;
}
@keyframes tileMatch {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); }
  100% { transform: scale(0); opacity: 0; }
}
.phone-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  padding: 0 4px;
}

/* --- TILE STRIP MARQUEE --- */
.tile-strip {
  background: var(--green-deep);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tile-strip-inner {
  display: flex;
  gap: 40px;
  animation: marquee 12s linear infinite;
  width: max-content;
}
.tile-strip-inner span { font-size: 2rem; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- FEATURES --- */
.features { background: var(--white-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--green-bright);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 {
  font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; color: var(--green-deep);
}
.feature-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* --- TUTORIAL PLAYER --- */
.tutorial { background: var(--green-dark); color: var(--white); }
.tutorial .section-header p { color: rgba(255,255,255,0.6); }
.tutorial .section-tag { background: rgba(255,217,61,0.15); color: var(--gold); }

.tutorial-player {
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(160deg, #0d3320, var(--green-deep));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}

.tutorial-screen {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

/* Scenes */
.tut-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 28px 24px;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  text-align: center;
}
.tut-scene.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.tut-scene.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.tut-scene-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.8;
}

.tut-scene h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 16px 0 6px;
  color: var(--white);
}
.tut-scene p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  max-width: 380px;
}

/* Tutorial board */
.tut-board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.tut-row { display: flex; gap: 6px; justify-content: center; }
.tut-tile {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: all 0.4s ease;
}

/* Swap animation */
.tut-scene.active .tut-swap-a {
  animation: tutSwapRight 2.5s ease-in-out infinite;
}
.tut-scene.active .tut-swap-b {
  animation: tutSwapLeft 2.5s ease-in-out infinite;
}
@keyframes tutSwapRight {
  0%,30% { transform: translateX(0); background: rgba(255,255,255,0.08); }
  40% { background: rgba(255,217,61,0.25); }
  50% { transform: translateX(58px); background: rgba(255,217,61,0.3); }
  60%,100% { transform: translateX(58px); background: rgba(0,184,148,0.3); }
}
@keyframes tutSwapLeft {
  0%,30% { transform: translateX(0); background: rgba(255,255,255,0.08); }
  40% { background: rgba(255,217,61,0.25); }
  50% { transform: translateX(-58px); background: rgba(255,217,61,0.3); }
  60%,100% { transform: translateX(-58px); background: rgba(0,184,148,0.3); }
}

/* Match animation */
.tut-scene.active .tut-match {
  animation: tutMatchPulse 2.5s ease-in-out infinite;
}
@keyframes tutMatchPulse {
  0%,20% { background: rgba(255,255,255,0.08); transform: scale(1); }
  35% { background: rgba(255,217,61,0.35); transform: scale(1.1); box-shadow: 0 0 16px rgba(255,217,61,0.4); }
  50% { transform: scale(1.2); opacity: 1; }
  65% { transform: scale(0); opacity: 0; }
  80%,100% { transform: scale(1); opacity: 1; background: rgba(0,184,148,0.2); }
}

/* Score pop */
.tut-score-pop {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(255,217,61,0.5);
  pointer-events: none;
}
.tut-scene.active .tut-score-pop {
  animation: tutScorePop 2.5s ease infinite;
}
@keyframes tutScorePop {
  0%,45% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  55% { transform: translate(-50%, -60%) scale(1.2); opacity: 1; }
  70% { transform: translate(-50%, -80%) scale(1); opacity: 1; }
  85%,100% { transform: translate(-50%, -100%) scale(0.8); opacity: 0; }
}

/* Hand pointer */
.tut-hand {
  position: absolute;
  font-size: 1.8rem;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.tut-scene.active .tut-hand {
  animation: tutHandMove 2.5s ease-in-out infinite;
}
@keyframes tutHandMove {
  0%,10% { top: 52%; left: 38%; opacity: 1; }
  40% { top: 52%; left: 38%; }
  55% { top: 52%; left: 52%; }
  70%,100% { top: 52%; left: 52%; opacity: 0.3; }
}

/* Specials badges */
.tut-specials { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.tut-special-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}
.tut-scene.active .tut-special-badge {
  animation: tutBadgePop 0.5s ease backwards;
}
.tut-scene.active .tut-special-badge:nth-child(1) { animation-delay: 0.2s; }
.tut-scene.active .tut-special-badge:nth-child(2) { animation-delay: 0.5s; }
.tut-scene.active .tut-special-badge:nth-child(3) { animation-delay: 0.8s; }
@keyframes tutBadgePop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Boosters showcase */
.tut-boosters-showcase { display: flex; gap: 16px; margin-bottom: 8px; }
.tut-booster-item {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  min-width: 100px;
  border: 1px solid rgba(255,255,255,0.08);
}
.tut-booster-item span { font-size: 2rem; display: block; margin-bottom: 6px; }
.tut-booster-item small { font-size: 0.8rem; font-weight: 600; color: var(--white); display: block; }
.tut-booster-item em { font-size: 0.7rem; color: rgba(255,255,255,0.5); font-style: normal; display: block; margin-top: 2px; }
.tut-scene.active .tut-booster-item {
  animation: tutBoosterSlide 0.5s ease backwards;
}
.tut-scene.active .tut-booster-item:nth-child(1) { animation-delay: 0.1s; }
.tut-scene.active .tut-booster-item:nth-child(2) { animation-delay: 0.3s; }
.tut-scene.active .tut-booster-item:nth-child(3) { animation-delay: 0.5s; }
@keyframes tutBoosterSlide {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.tut-coin-badge {
  background: rgba(255,217,61,0.15);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Garden showcase */
.tut-garden-showcase { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 8px; }
.tut-stars-anim { font-size: 2rem; }
.tut-scene.active .tut-stars-anim {
  animation: tutStarsBounce 1.5s ease infinite;
}
@keyframes tutStarsBounce {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.tut-reward-arrow { font-size: 1.5rem; color: var(--gold); animation: tutArrowBounce 1s ease infinite; }
@keyframes tutArrowBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.tut-garden-items { display: flex; gap: 12px; }
.tut-garden-items span {
  font-size: 2rem;
  background: rgba(255,255,255,0.08);
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.tut-scene.active .tut-garden-items span {
  animation: tutGardenPop 0.4s ease backwards;
}
.tut-scene.active .tut-garden-items span:nth-child(1) { animation-delay: 0.3s; }
.tut-scene.active .tut-garden-items span:nth-child(2) { animation-delay: 0.5s; }
.tut-scene.active .tut-garden-items span:nth-child(3) { animation-delay: 0.7s; }
.tut-scene.active .tut-garden-items span:nth-child(4) { animation-delay: 0.9s; }
.tut-scene.active .tut-garden-items span:nth-child(5) { animation-delay: 1.1s; }
@keyframes tutGardenPop {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* --- WORLD SCENE STYLES --- */
.tutorial-player { max-width: 560px; }
.tutorial-screen { min-height: 480px; }

/* World banners */
.tut-world-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 0.82rem;
}
.tut-world-icon { font-size: 1.3rem; }
.tut-world-name { font-weight: 700; font-size: 0.9rem; }
.tut-world-difficulty { opacity: 0.7; font-size: 0.75rem; margin-left: auto; }

.tut-world-spring { background: linear-gradient(135deg, rgba(0,184,148,0.25), rgba(0,184,148,0.08)); border: 1px solid rgba(0,184,148,0.3); color: #55efc4; }
.tut-world-enchanted { background: linear-gradient(135deg, rgba(108,92,231,0.25), rgba(108,92,231,0.08)); border: 1px solid rgba(108,92,231,0.3); color: #a29bfe; }
.tut-world-golden { background: linear-gradient(135deg, rgba(253,203,110,0.25), rgba(253,203,110,0.08)); border: 1px solid rgba(253,203,110,0.3); color: #ffeaa7; }

.tut-scene.active .tut-world-banner {
  animation: tutBannerSlide 0.6s ease backwards;
}
@keyframes tutBannerSlide {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* 5-column themed boards */
.tut-board-themed .tut-row { gap: 5px; }
.tut-board-themed .tut-tile { width: 46px; height: 46px; font-size: 1.35rem; }

/* World-themed tile backgrounds */
.tut-tile-spring { background: rgba(0,184,148,0.12); border: 1px solid rgba(0,184,148,0.15); }
.tut-tile-enchanted { background: rgba(108,92,231,0.12); border: 1px solid rgba(108,92,231,0.15); }
.tut-tile-golden { background: rgba(253,203,110,0.12); border: 1px solid rgba(253,203,110,0.15); }

/* World scene entrance — tiles cascade in */
.tut-world-scene.active .tut-board-themed .tut-row { animation: tutRowCascade 0.5s ease backwards; }
.tut-world-scene.active .tut-board-themed .tut-row:nth-child(1) { animation-delay: 0.1s; }
.tut-world-scene.active .tut-board-themed .tut-row:nth-child(2) { animation-delay: 0.18s; }
.tut-world-scene.active .tut-board-themed .tut-row:nth-child(3) { animation-delay: 0.26s; }
.tut-world-scene.active .tut-board-themed .tut-row:nth-child(4) { animation-delay: 0.34s; }
.tut-world-scene.active .tut-board-themed .tut-row:nth-child(5) { animation-delay: 0.42s; }
@keyframes tutRowCascade {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* HUD (goal + moves) */
.tut-world-hud {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.tut-hud-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.tut-scene.active .tut-hud-item {
  animation: tutHudPop 0.4s ease backwards;
}
.tut-scene.active .tut-hud-item:nth-child(1) { animation-delay: 0.6s; }
.tut-scene.active .tut-hud-item:nth-child(2) { animation-delay: 0.75s; }
@keyframes tutHudPop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* World preview pips on final scene */
.tut-worlds-preview {
  display: flex;
  gap: 10px;
  margin: 10px 0 4px;
}
.tut-world-pip {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: rgba(255,255,255,0.06);
  border: 2px solid var(--pip-color, rgba(255,255,255,0.15));
  border-radius: 12px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--pip-color) 30%, transparent);
}
.tut-scene.active .tut-world-pip {
  animation: tutPipPop 0.4s ease backwards;
}
.tut-scene.active .tut-world-pip:nth-child(1) { animation-delay: 0.2s; }
.tut-scene.active .tut-world-pip:nth-child(2) { animation-delay: 0.35s; }
.tut-scene.active .tut-world-pip:nth-child(3) { animation-delay: 0.5s; }
.tut-scene.active .tut-world-pip:nth-child(4) { animation-delay: 0.65s; }
.tut-scene.active .tut-world-pip:nth-child(5) { animation-delay: 0.8s; }
@keyframes tutPipPop {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Dot divider between sections */
.tut-dot-divider {
  width: 2px;
  height: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin: 0 2px;
}

/* Tutorial controls */
.tutorial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0;
}
.tut-ctrl-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
}
.tut-ctrl-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--gold);
  color: var(--gold);
}
.tut-progress { display: flex; gap: 8px; align-items: center; }
.tut-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.tut-dot.active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255,217,61,0.5);
  transform: scale(1.2);
}

/* Timer bar */
.tut-timer-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
}
.tut-timer-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--green-bright));
  transition: width 0.1s linear;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 480px) {
  .tutorial-screen { min-height: 440px; }
  .tut-tile { width: 44px; height: 44px; font-size: 1.3rem; }
  .tut-board-themed .tut-tile { width: 38px; height: 38px; font-size: 1.1rem; }
  .tut-boosters-showcase { gap: 10px; }
  .tut-booster-item { min-width: 80px; padding: 12px 10px; }
  .tut-scene h3 { font-size: 1.1rem; }
  .tut-scene p { font-size: 0.82rem; }
  .tut-world-banner { padding: 6px 12px; font-size: 0.75rem; }
  .tut-world-pip { width: 36px; height: 36px; font-size: 1.1rem; }
  .tut-hud-item { font-size: 0.7rem; padding: 4px 10px; }
}

/* --- GAMEPLAY --- */
.gameplay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.gameplay-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 32px; }
.gameplay-steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-lime));
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.step h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--green-deep); }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* Match Demo — Animated */
.match-demo {
  background: linear-gradient(160deg, var(--green-deep), #0d3320);
  border-radius: var(--radius-lg);
  padding: 32px;
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.demo-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  opacity: 0.8;
  text-transform: uppercase;
}
.demo-board {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px; width: 100%; max-width: 280px;
  position: relative;
}
.demo-board .dtile {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), background 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  will-change: transform, opacity;
}
.demo-board .dtile.selected {
  background: rgba(255,217,61,0.3);
  box-shadow: 0 0 14px rgba(255,217,61,0.4);
  transform: scale(1.08);
}
.demo-board .dtile.swapping {
  z-index: 2;
}
.demo-board .dtile.matched {
  background: rgba(255,217,61,0.35);
  box-shadow: 0 0 20px rgba(255,217,61,0.5);
  animation: demoMatchPop 0.5s ease forwards;
}
@keyframes demoMatchPop {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.25); }
  100% { transform: scale(0); opacity: 0; }
}
.demo-board .dtile.dropping {
  animation: demoDrop 0.4s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes demoDrop {
  0% { transform: translateY(-120%); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.demo-hand {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
  transition: left 0.5s cubic-bezier(.4,0,.2,1), top 0.5s cubic-bezier(.4,0,.2,1), opacity 0.3s ease;
  z-index: 10;
  opacity: 0;
}
.demo-hand.visible { opacity: 1; }
.demo-score-float {
  position: absolute;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(255,217,61,0.6);
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}
.demo-score-float.show {
  animation: demoScoreRise 1s ease forwards;
}
@keyframes demoScoreRise {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -10px) scale(1.1); }
  60% { opacity: 1; transform: translate(-50%, -30px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50px) scale(0.8); }
}


/* --- WORLDS --- */
.worlds { background: var(--green-dark); color: var(--white); }
.worlds .section-header p { color: rgba(255, 255, 255, 0.6); }
.worlds .section-tag { background: rgba(255, 255, 255, 0.1); color: var(--gold); }
.worlds-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.world-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.world-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.world-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.world-emoji { font-size: 3rem; margin-bottom: 16px; }
.world-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.world-card p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; margin-bottom: 16px; }
.world-meta {
  display: flex; justify-content: center; gap: 12px;
}
.world-meta span {
  font-size: 0.75rem; background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px; border-radius: 100px; color: rgba(255, 255, 255, 0.7);
}

/* --- GARDEN --- */
.garden { background: var(--white-soft); }
.garden-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.garden-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.garden-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 12px;
  text-align: center;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.garden-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow);
  border-color: var(--green-bright);
}
.garden-item span { font-size: 2rem; display: block; margin-bottom: 8px; }
.garden-item small { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.garden-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.garden-text > p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.garden-perks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.garden-perks li { font-size: 0.95rem; color: var(--text-muted); }

/* --- BOOSTERS --- */
.boosters { background: var(--white); }
.boosters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.booster-card {
  background: linear-gradient(160deg, var(--green-deep), #1a5c35);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  color: var(--white);
  transition: var(--transition);
}
.booster-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 40, 20, 0.3);
}
.booster-emoji { font-size: 3rem; margin-bottom: 16px; }
.booster-card h4 { font-size: 1.2rem; margin-bottom: 8px; }
.booster-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 16px; line-height: 1.5; }
.booster-cost {
  display: inline-block;
  background: rgba(255, 217, 61, 0.15);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- SEASON PASS --- */
.season { background: var(--white-soft); }
.season-banner {
  background: linear-gradient(135deg, #ff6b81, #ff9ff3, #feca57, #48dbfb);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.season-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.season-banner h2 { font-size: 2rem; margin-bottom: 12px; }
.season-banner p { max-width: 560px; margin: 0 auto 24px; font-size: 1rem; color: rgba(255, 255, 255, 0.9); }
.season-tiers { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.tier {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.tier small { font-size: 0.7rem; color: rgba(255, 255, 255, 0.8); }

/* --- COLLECTIONS & DAILY --- */
.collections { background: var(--white); }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card {
  background: var(--white-soft);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--gray-light);
}
.duo-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--green-deep); }
.duo-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.collection-row { display: flex; flex-direction: column; gap: 10px; }
.coll-item { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.coll-item small { font-size: 0.85rem; color: var(--text-muted); }
.daily-row { display: flex; gap: 8px; flex-wrap: wrap; }
.day {
  flex: 1; min-width: 60px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--gray-light);
}
.day span { display: block; font-size: 1.3rem; margin: 4px 0; }
.day small { display: block; font-size: 0.65rem; }
.day.highlight {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold-dark);
}

/* --- FAQ --- */
.faq { background: var(--white-soft); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item[open] { border-color: var(--green-bright); box-shadow: 0 4px 20px rgba(0, 184, 148, 0.1); }
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--green-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green-bright);
  transition: var(--transition);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 24px 20px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* --- DOWNLOAD CTA --- */
.download { background: var(--white); }
.download-box {
  background: linear-gradient(160deg, var(--green-dark), var(--green-deep), #1a5c35);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.download-bg-emojis span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: 2.5rem;
  opacity: 0.15;
  animation: floatEmoji var(--d) ease-in-out infinite alternate;
}
@keyframes floatEmoji {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(15deg); }
}
.download-box h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; position: relative; }
.download-box p { max-width: 480px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.75); font-size: 1.05rem; position: relative; }
.download-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; }
.store-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
.store-btn small { display: block; font-size: 0.65rem; color: var(--text-muted); text-align: left; }
.store-btn strong { display: block; font-size: 1rem; text-align: left; }

/* --- FOOTER --- */
.footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); line-height: 1.6; }
.footer-col h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; color: var(--gold); }
.footer-col a {
  display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px; transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.35); }

/* --- NAV SIGN IN --- */
.nav-signin {
  color: var(--white) !important;
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: var(--transition);
}
.nav-signin:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); color: var(--gold) !important; }
.nav.scrolled .nav-signin { color: var(--green-deep) !important; border-color: var(--green-bright); }
.nav.scrolled .nav-signin:hover { background: var(--green-bright); color: var(--white) !important; }
.mobile-link.signin { color: var(--gold) !important; font-weight: 600; }

/* --- LIVE LEADERBOARD SECTION --- */
.leaderboard-section { background: var(--green-dark); color: var(--white); }
.leaderboard-section .section-header p { color: rgba(255,255,255,0.6); }
.leaderboard-section .section-tag { background: rgba(255,217,61,0.15); color: var(--gold); }

.leaderboard-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.leaderboard-header-row {
  display: flex;
  padding: 16px 24px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lb-col-rank { width: 64px; text-align: center; }
.lb-col-name { flex: 1; }
.lb-col-score { width: 100px; text-align: right; }

.leaderboard-list { min-height: 200px; }
.lb-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 60px 0; color: rgba(255,255,255,0.4); font-size: 0.9rem;
}
.lb-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lb-entry {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s ease;
}
.lb-entry:hover { background: rgba(255,255,255,0.04); }
.lb-entry:last-child { border-bottom: none; }
.lb-rank {
  width: 64px; text-align: center;
  font-size: 1.2rem; font-weight: 800;
}
.lb-rank-1 { color: #FFD700; }
.lb-rank-2 { color: #C0C0C0; }
.lb-rank-3 { color: #CD7F32; }
.lb-name {
  flex: 1;
  font-size: 1rem; font-weight: 600;
  color: var(--white);
}
.lb-score {
  width: 100px; text-align: right;
  font-size: 1rem; font-weight: 700;
  color: var(--gold);
}
.lb-score small { font-weight: 400; font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-left: 4px; }
.lb-empty {
  text-align: center; padding: 48px 24px;
  color: rgba(255,255,255,0.4); font-size: 0.95rem;
}

.leaderboard-footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.leaderboard-footer p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

/* --- SCROLL ANIMATIONS (data-aos) --- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding: 140px 24px 60px; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .gameplay-grid { grid-template-columns: 1fr; gap: 40px; }
  .garden-split { grid-template-columns: 1fr; gap: 40px; }
  .garden-visual { order: 2; }
  .garden-text { order: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .worlds-carousel { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .duo-grid { grid-template-columns: 1fr; }
  .garden-grid { grid-template-columns: repeat(3, 1fr); }
  .phone-frame { width: 240px; }
  .phone-screen { min-height: 360px; }
  .phone-board .tile { font-size: 0.8rem; }
  .download-box { padding: 48px 24px; }
  .season-banner { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
  .garden-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .daily-row { gap: 4px; }
  .day { min-width: 44px; padding: 8px 4px; }
  .store-btn { padding: 12px 20px; }
  .download-buttons { flex-direction: column; align-items: center; }
}

/* ============================================
   ACCOUNT / AUTH PAGE STYLES — Premium Design
   ============================================ */

/* Full-page background with animated gradient */
.auth-page {
  min-height: 100vh;
  background: var(--green-dark);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(0,184,148,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,217,61,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(26,71,42,0.9) 0%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

/* Floating garden particles */
.auth-page::before {
  content: '🌿 🌸 🍃 🌻 🌺 🌱 🪻 🌷';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  font-size: 2rem;
  letter-spacing: 80px;
  white-space: nowrap;
  opacity: 0.12;
  animation: authFloat 25s linear infinite;
  pointer-events: none;
}
.auth-page::after {
  content: '🌼 🍀 🪷 🌾 🪴 🌹 🌵 🌳';
  position: absolute;
  bottom: -40px;
  left: -100px;
  right: 0;
  font-size: 1.8rem;
  letter-spacing: 60px;
  white-space: nowrap;
  opacity: 0.08;
  animation: authFloat 35s linear infinite reverse;
  pointer-events: none;
}
@keyframes authFloat {
  0% { transform: translateX(0); }
  100% { transform: translateX(-400px); }
}

/* Grid layout: card + sidebar */
.auth-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  max-width: 900px;
  width: 100%;
  align-items: start;
  position: relative;
  z-index: 1;
  animation: authFadeIn 0.6s ease;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Auth Card — Glassmorphism */
.auth-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 1px 0 rgba(255,255,255,0.1) inset;
  position: relative;
  overflow: hidden;
}
/* Subtle glow on card top */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,217,61,0.5), transparent);
}

/* Header */
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  animation: authIconBounce 2s ease infinite;
}
@keyframes authIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.auth-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.auth-header p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}

/* Tabs — pill toggle */
.auth-tabs {
  display: flex;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: none;
  color: rgba(255,255,255,0.45);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(255,217,61,0.3);
}
.auth-tab:hover:not(.active) { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }

/* Forms */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-group input {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}
.form-group input::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus {
  border-color: var(--gold);
  background: rgba(255,217,61,0.06);
  box-shadow: 0 0 0 3px rgba(255,217,61,0.1);
}
.password-wrap { position: relative; }
.password-wrap input { width: 100%; padding-right: 50px; }
.pw-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: 0.4;
  transition: all 0.2s;
}
.pw-toggle:hover { opacity: 0.9; transform: translateY(-50%) scale(1.1); }

/* Errors */
.auth-error {
  font-size: 0.85rem;
  color: #ff6b6b;
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.15);
  border-radius: var(--radius-sm);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
.auth-error:empty { display: none; }
.auth-error.show { padding: 10px 14px; max-height: 60px; }

/* Submit button — enhanced */
.auth-submit {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px 32px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}
.auth-submit::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255,255,255,0.15) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.auth-submit:hover::after { transform: translateX(100%); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-submit:disabled::after { display: none; }

/* Helper links */
.auth-link-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  padding: 4px 0;
}
.auth-link-btn:hover { color: var(--gold); text-decoration: underline; }

.form-hint {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
  line-height: 1.5;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* Success state */
.auth-success {
  text-align: center;
  padding: 24px 0;
}
.success-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
  animation: authIconBounce 1.5s ease infinite;
}
.auth-success h2 {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(255,217,61,0.2);
}
.auth-success p { color: rgba(255,255,255,0.6); margin-bottom: 24px; line-height: 1.6; }

/* Perks Sidebar — premium card */
.auth-perks {
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.auth-perks::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,184,148,0.4), transparent);
}
.auth-perks h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 24px;
  text-shadow: 0 1px 8px rgba(255,217,61,0.15);
}
.auth-perks ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.auth-perks li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  padding-left: 4px;
  transition: transform 0.2s ease;
}
.auth-perks li:hover { transform: translateX(4px); }
.auth-perks li strong { color: var(--white); display: block; margin-bottom: 2px; }

/* App download nudge */
.auth-app-nudge {
  margin-top: 24px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.auth-app-nudge p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}
.auth-app-nudge a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--green-bright);
  font-weight: 600;
  transition: all 0.2s;
}
.auth-app-nudge a:hover { color: var(--gold); transform: translateY(-1px); }

/* Auth page footer */
.auth-page ~ .footer { background: var(--green-dark); }

/* Responsive */
@media (max-width: 900px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .auth-perks { order: -1; padding: 24px 20px; }
  .auth-perks ul { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .auth-perks li { flex: 1 1 calc(50% - 12px); min-width: 140px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .auth-page { padding: 90px 16px 40px; }
  .auth-card { padding: 32px 24px; }
  .auth-header h1 { font-size: 1.6rem; }
  .auth-perks li { flex: 1 1 100%; }
  .auth-page::before, .auth-page::after { display: none; }
}