/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Color Palette (HSL for fine-grained control) - DARK THEME (Default) */
  --bg-dark: hsl(220, 25%, 8%);
  --bg-alt: hsl(220, 22%, 11%);
  --surface: hsl(220, 18%, 14%);
  --surface-hover: hsl(220, 15%, 18%);
  --surface-glass: hsla(220, 22%, 11%, 0.65);

  --primary: hsl(354, 85%, 56%);
  /* Crimson Red */
  --primary-hover: hsl(354, 85%, 64%);
  --primary-glow: hsla(354, 85%, 56%, 0.35);

  --accent: hsl(45, 95%, 52%);
  /* Golden Yellow */
  --accent-hover: hsl(45, 95%, 62%);
  --accent-glow: hsla(45, 95%, 52%, 0.35);

  --purple: hsl(215, 90%, 52%);
  /* Royal/Indigo Blue */

  --text-main: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 75%);
  --text-dark: hsl(215, 12%, 52%);

  --border-color: hsla(220, 15%, 22%, 0.8);
  --border-glow: hsla(354, 85%, 56%, 0.25);
  --math-symbol-color: hsla(220, 25%, 30%, 0.15);
  --modal-overlay-bg: rgba(6, 11, 25, 0.7);
  --header-scrolled-bg: hsla(220, 25%, 6%, 0.85);
  --text-on-primary: #ffffff;

  /* Fonts */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--primary-glow);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-dark: hsl(210, 40%, 98%);
  --bg-alt: hsl(210, 30%, 94%);
  --surface: hsl(0, 0%, 100%);
  --surface-hover: hsl(210, 20%, 92%);
  --surface-glass: hsla(0, 0%, 100%, 0.85);

  --primary: hsl(354, 80%, 48%);
  --primary-hover: hsl(354, 80%, 40%);
  --primary-glow: hsla(354, 80%, 48%, 0.15);

  --accent: hsl(28, 95%, 46%);
  /* High contrast warm Amber/Orange for legibility in Light Mode */
  --accent-hover: hsl(28, 95%, 38%);
  --accent-glow: hsla(28, 95%, 46%, 0.2);

  --purple: hsl(215, 85%, 46%);

  --text-main: hsl(220, 40%, 12%);
  --text-muted: hsl(220, 20%, 35%);
  --text-dark: hsl(220, 15%, 50%);

  --border-color: rgba(22, 28, 45, 0.08);
  --border-glow: hsla(354, 80%, 48%, 0.1);
  --math-symbol-color: hsla(220, 20%, 65%, 0.2);
  --modal-overlay-bg: rgba(22, 28, 45, 0.4);
  --header-scrolled-bg: hsla(210, 40%, 98%, 0.9);
  --text-on-primary: #ffffff;

  /* Soft premium shadows for light theme to avoid looking muddy */
  --shadow-sm: 0 2px 8px rgba(22, 28, 45, 0.04);
  --shadow-md: 0 8px 24px rgba(22, 28, 45, 0.06);
  --shadow-lg: 0 16px 40px rgba(22, 28, 45, 0.08);
  --shadow-glow: 0 0 25px var(--primary-glow);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--surface);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  position: relative;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Headers */
.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.title-underline {
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.section-title.text-left+.title-underline {
  margin-left: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: var(--text-on-primary);
  box-shadow: 0 4px 15px var(--primary-glow);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow), 0 0 10px rgba(6, 182, 212, 0.3);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 16px;
}

.btn-text:hover {
  color: var(--text-main);
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary-hover);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* ==========================================================================
   MATHEMATICAL FLOATING BACKGROUND
   ========================================================================== */
.math-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.math-symbol {
  position: absolute;
  font-family: var(--font-headings);
  font-weight: 300;
  color: var(--math-symbol-color);
  user-select: none;
}

.symbol-1 {
  top: 12%;
  left: 8%;
  font-size: 5rem;
  animation: float 14s infinite ease-in-out;
}

.symbol-2 {
  top: 22%;
  right: 10%;
  font-size: 4rem;
  animation: float 16s infinite ease-in-out 2s;
}

.symbol-3 {
  top: 45%;
  left: 5%;
  font-size: 3.5rem;
  animation: float 12s infinite ease-in-out 1s;
}

.symbol-4 {
  top: 60%;
  right: 8%;
  font-size: 6rem;
  animation: float 18s infinite ease-in-out;
}

.symbol-5 {
  top: 78%;
  left: 12%;
  font-size: 4.5rem;
  animation: float 15s infinite ease-in-out 3s;
}

.symbol-6 {
  top: 88%;
  right: 15%;
  font-size: 3.5rem;
  animation: float 13s infinite ease-in-out 1.5s;
}

.symbol-7 {
  top: 33%;
  left: 45%;
  font-size: 3rem;
  animation: float 11s infinite ease-in-out;
}

.symbol-8 {
  top: 68%;
  left: 48%;
  font-size: 4rem;
  animation: float 17s infinite ease-in-out 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--surface-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

#main-header.scrolled {
  padding: 8px 0;
  background-color: var(--header-scrolled-bg);
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-color);
}

.organizer-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.org-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.85;
}

.org-logo:hover {
  transform: translateY(-2px) scale(1.05);
  opacity: 1;
}

.logo-icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: hsl(220, 40%, 12%);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  font-style: italic;
}

.logo-year {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
  z-index: 101;
}

.btn-theme-toggle:hover {
  background-color: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary-hover);
  transform: scale(1.05);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 180px;
  padding-bottom: 50px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dark);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-color);
}

/* Hero Visual SVG */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
}

.math-grid-svg {
  animation: rotateGrid 90s linear infinite;
}

@keyframes rotateGrid {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.spiral-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawSpiral 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawSpiral {
  to {
    stroke-dashoffset: 0;
  }
}

.node-pulse {
  animation: pulseNode 2s infinite ease-in-out;
  transform-origin: center;
}

@keyframes pulseNode {

  0%,
  100% {
    r: 4px;
    fill-opacity: 1;
  }

  50% {
    r: 8px;
    fill-opacity: 0.4;
  }
}

.sine-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  pointer-events: none;
}

.wave-path-1 {
  stroke-dasharray: 600;
  animation: flowWave 15s linear infinite;
}

.wave-path-2 {
  stroke-dasharray: 600;
  animation: flowWave 12s linear infinite reverse;
}

@keyframes flowWave {
  0% {
    stroke-dashoffset: 600;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  padding-top: 50px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.about-info {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.about-info p {
  margin-bottom: 20px;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.6;
}

.about-cta-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 30px;
}

.about-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  flex-shrink: 0;
}

.about-org-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.about-cta-box h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.about-cta-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Pillars Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pillar-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px 30px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), 0 10px 30px var(--border-glow);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--primary-hover);
  transition: all var(--transition-normal);
}

.pillar-card:hover .pillar-icon-wrapper {
  background-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.pillar-card h3 {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   REQUIREMENTS SECTION
   ========================================================================== */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.req-card {
  background-color: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: all var(--transition-normal);
  position: relative;
}

.req-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
}

.req-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.req-number {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--border-glow);
  transition: color var(--transition-normal);
}

.req-card:hover .req-number {
  color: var(--primary-glow);
}

.req-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.req-card h3 {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.req-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing Tiers inside Requirements Card */
.pricing-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.tier-item {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all var(--transition-fast);
}

.req-card:hover .tier-item {
  border-color: rgba(99, 102, 241, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
}

.tier-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tier-price {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

/* ==========================================================================
   TIMELINE SECTION
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent), var(--border-color));
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  z-index: 2;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 35px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  border: 4px solid var(--border-color);
  transition: all var(--transition-normal);
  z-index: 3;
}

.timeline-item.left .timeline-dot {
  right: -10px;
}

.timeline-item.right .timeline-dot {
  left: -10px;
}

.timeline-dot.active {
  border-color: var(--accent);
  background-color: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

.timeline-date {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-content {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-content h3 {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-dark);
}

.timeline-badge.badge-active {
  background-color: var(--primary-glow);
  border-color: var(--border-glow);
  color: var(--primary-hover);
}

.timeline-badge.badge-selesai {
  background-color: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

/* ==========================================================================
   BOOKLET SECTION
   ========================================================================== */
.booklet-section {
  overflow: hidden;
}

.booklet-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.booklet-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0 40px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-item i {
  color: var(--accent);
  font-size: 1.1rem;
}

.feature-item span {
  font-size: 1rem;
  color: var(--text-muted);
}

.booklet-actions {
  display: flex;
  gap: 20px;
}

/* Stunning 3D Book Cover Effect */
.booklet-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-container {
  perspective: 1000px;
}

.book {
  width: 250px;
  height: 350px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-15deg) rotateX(10deg);
  transition: transform var(--transition-slow);
}

.book:hover {
  transform: rotateY(-35deg) rotateX(15deg) translateY(-10px);
}

.book-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px 12px 12px 4px;
  box-shadow: 10px 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 5;
  transform: translateZ(16px);
  overflow: hidden;
  box-sizing: border-box;
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Book Cover Design details */
.book-cover::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 6;
}

.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 350px;
  background: linear-gradient(to right, hsl(354, 85%, 20%) 0%, hsl(354, 85%, 32%) 100%);
  transform: rotateY(-90deg) translateZ(16px);
  transform-origin: left;
  border-radius: 4px 0 0 4px;
  z-index: 4;
}

.book-pages {
  position: absolute;
  top: 5px;
  left: 16px;
  width: 230px;
  height: 340px;
  background: #faf8f5;
  border: 1px solid #dcd1c4;
  border-radius: 0 8px 8px 0;
  transform: translateZ(14px);
  z-index: 3;
  box-shadow:
    1px 0px 0px #e2d8cd,
    2px 0px 0px #ffffff,
    3px 0px 0px #e2d8cd,
    4px 0px 0px #ffffff,
    5px 0px 0px #e2d8cd,
    6px 0px 0px #ffffff,
    7px 0px 0px #e2d8cd,
    8px 0px 0px #ffffff,
    9px 0px 0px #d5c8b9,
    10px 0px 0px #ffffff,
    11px 0px 0px #d5c8b9,
    12px 0px 0px #ffffff,
    13px 0px 25px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   TESTIMONIALS SECTION (Apa Kata Mereka)
   ========================================================================== */
.testimonials-slider-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  opacity: 0.3;
  transform: scale(0.95);
  transition: all var(--transition-slow);
}

.testimonial-slide.active {
  opacity: 1;
  transform: scale(1);
}

.testimonial-content {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 30px;
  left: 40px;
  font-size: 4rem;
  color: rgba(99, 102, 241, 0.06);
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-purple {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
}

.avatar-cyan {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

.avatar-blue {
  background: linear-gradient(135deg, hsl(215, 90%, 52%) 0%, var(--accent) 100%);
}

.author-name {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.author-meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 35px;
}

.slider-btn {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dots .dot.active {
  background-color: var(--accent);
  width: 24px;
  border-radius: 5px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0 0;
  position: relative;
  z-index: 2;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 20px 0 24px 0;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-link-group h3 {
  font-family: var(--font-headings);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-link-group ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-group a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link-group a:hover {
  color: var(--accent);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info-list i {
  color: var(--accent);
  margin-top: 4px;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  background-color: var(--bg-alt);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* ==========================================================================
   REGISTRATION MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(30px);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-primary);
}

.modal-header {
  padding: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-logo-icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--bg-dark);
  font-family: var(--font-headings);
  font-weight: 800;
  font-style: italic;
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modal-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.modal-header h3 {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.modal-body {
  padding: 30px;
}

/* Form Elements Styling */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.required {
  color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.form-card-section {
  border: 1px solid var(--border-color);
  background-color: var(--bg-alt);
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
}

.form-card-section h4 {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text-main);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

/* KTM Upload button */
.file-upload-wrapper {
  position: relative;
  width: 100%;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-btn {
  background-color: var(--surface);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.file-input:hover+.file-upload-btn {
  border-color: var(--accent);
  color: var(--text-main);
}

.file-input:focus+.file-upload-btn {
  border-color: var(--primary);
}

/* Captcha Styling */
.captcha-group-container {
  margin: 25px 0 15px 0;
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

#captcha-canvas {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  display: block;
}

.btn-refresh-captcha {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-refresh-captcha:hover {
  background-color: var(--surface-hover);
  color: var(--primary);
  border-color: var(--primary);
}

.captcha-wrapper input[type="text"]#captcha-input {
  flex-grow: 1;
  max-width: 150px;
}

.captcha-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
  opacity: 0.8;
  line-height: 1.4;
}

.captcha-hint i {
  font-size: 0.7rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 25px 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

/* Success State */
.registration-success-state {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.success-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 3rem;
  margin: 0 auto 24px auto;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.registration-success-state h3 {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.registration-success-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.success-details {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  margin-bottom: 35px;
}

.success-details p {
  margin-bottom: 10px;
  color: var(--text-main);
}

.success-details ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: disc;
  padding-left: 20px;
}

.success-details li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.success-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Intersection Observer)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */

/* Tablet & Smaller Screen Optimizations */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 380px;
    margin: 0 auto;
  }

  .about-pillars.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .requirements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booklet-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .section-title.text-left {
    text-align: center;
  }

  .section-title.text-left+.title-underline {
    margin-left: auto;
  }

  .booklet-features {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 25px auto;
  }

  .booklet-actions {
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-logo-row {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Mobile Screen Optimizations */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero-section {
    padding-top: 140px;
    padding-bottom: 30px;
  }

  .about-section {
    padding-top: 30px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .booklet-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .booklet-actions .btn {
    width: 100%;
  }

  #view-booklet-main {
    display: none !important;
  }

  .booklet-features {
    gap: 12px;
    margin: 20px auto;
  }

  .feature-item span {
    font-size: 0.9rem;
  }

  .booklet-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  /* Navbar Mobile Layout */
  .logo-divider,
  .organizer-logos {
    display: none !important;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-img {
    height: 32px;
  }

  .hamburger {
    display: flex;
  }

  #nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 40px;
    transition: left var(--transition-normal);
    overflow-y: auto;
  }

  #nav-menu.open {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .nav-actions {
    display: none;
    /* In mobile, CTA is inside hamburger/menu or simplified */
  }

  .header-right-group {
    margin-left: auto;
    margin-right: 20px;
  }

  /* Show CTA inside mobile menu instead */
  #nav-menu.open+.nav-actions {
    display: none;
  }

  /* Hamburger active state */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* About & Requirements */
  .about-pillars.grid-3 {
    grid-template-columns: 1fr;
  }

  .requirements-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline Mobile */
  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 10px;
  }

  .timeline-date {
    font-size: 0.9rem;
  }

  /* Testimonial & Footer */
  .testimonial-content {
    padding: 30px 20px;
  }

  .quote-icon {
    top: 15px;
    left: 15px;
    font-size: 2.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Modal Mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }
}

/* Payment Methods Section in Modal */
.payment-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.5;
}

.payment-methods-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.payment-method-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all var(--transition-fast);
}

.payment-method-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.payment-method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-provider {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-provider i {
  color: var(--accent);
}

.btn-copy-account {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-copy-account:hover {
  background-color: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.payment-account-number {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.payment-account-holder {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mt-4 {
  margin-top: 1.5rem;
}

/* Responsive styles for payment options in mobile */
@media (max-width: 576px) {
  .payment-methods-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   GMAIL SPAM WARNING ALERT
   ========================================================================== */
.spam-warning-alert {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
  border: 1.5px solid var(--accent);
  border-left: 6px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
  animation: slideDownFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownFade {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.alert-icon-pulse {
  background-color: var(--accent);
  color: var(--bg-dark);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px var(--accent-glow);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 22px hsla(45, 95%, 52%, 0.6);
  }
}

.spam-warning-alert .alert-content h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.spam-warning-alert .alert-content p {
  margin: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  color: var(--text-main) !important;
}

.spam-warning-alert .alert-content strong {
  color: var(--accent);
}

@media (max-width: 576px) {
  .spam-warning-alert {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }

  .spam-warning-alert .alert-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile responsive scale for 3D Book Booklet */
@media (max-width: 768px) {
  .book {
    transform: scale(0.9) rotateY(-15deg) rotateX(10deg);
  }
  .book:hover {
    transform: scale(0.9) rotateY(-35deg) rotateX(15deg) translateY(-10px);
  }
}

@media (max-width: 480px) {
  .book {
    transform: scale(0.8) rotateY(-15deg) rotateX(10deg);
  }
  .book:hover {
    transform: scale(0.8) rotateY(-35deg) rotateX(15deg) translateY(-10px);
  }
}

/* Captcha responsive layout for narrow screens */
@media (max-width: 480px) {
  .captcha-wrapper {
    display: grid;
    grid-template-columns: auto 42px;
    gap: 10px;
    align-items: center;
  }
  #captcha-canvas {
    width: 100%;
    max-width: 150px;
  }
  .captcha-wrapper input[type="text"]#captcha-input {
    grid-column: span 2;
    max-width: 100% !important;
    width: 100%;
  }
}

/* Modal and success details refinements on mobile */
@media (max-width: 480px) {
  .success-details {
    padding: 16px;
    margin-bottom: 25px;
  }
  .success-details ul {
    padding-left: 15px;
  }
  .success-details li {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   PAYMENT CONFIRMATION ALERT
   ========================================================================== */
.payment-confirmation-alert {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
  border: 1.5px solid #10b981;
  border-left: 6px solid #10b981;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
  animation: slideDownFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.payment-confirmation-alert .alert-icon-pulse {
  background-color: #10b981;
  color: var(--bg-dark);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  animation: paymentIconPulse 2s infinite ease-in-out;
}

@keyframes paymentIconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.7);
  }
}

.payment-confirmation-alert .alert-content h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.payment-confirmation-alert .alert-content p {
  margin: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  color: var(--text-main) !important;
}

.payment-confirmation-alert .alert-content strong {
  color: #10b981;
}

.payment-wa-link {
  color: #10b981;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.payment-wa-link:hover {
  text-decoration: underline;
  color: #059669;
}

@media (max-width: 576px) {
  .payment-confirmation-alert {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }

  .payment-confirmation-alert .alert-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   HTM PRICE BANNER (Registration Modal)
   ========================================================================== */
.htm-price-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.htm-price-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.htm-price-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #4ade80;
  flex-shrink: 0;
}

.htm-price-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.htm-price-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #86efac;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.htm-price-amount {
  font-family: var(--font-headings);
  font-size: 1.45rem;
  font-weight: 700;
  color: #4ade80;
  line-height: 1.2;
}

.htm-price-per {
  font-size: 0.85rem;
  font-weight: 400;
  color: #86efac;
  margin-left: 2px;
}

/* Light theme override */
[data-theme="light"] .htm-price-banner {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(5, 150, 105, 0.05));
  border-color: rgba(22, 163, 74, 0.35);
}

[data-theme="light"] .htm-price-icon {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.35);
  color: #16a34a;
}

[data-theme="light"] .htm-price-label {
  color: #15803d;
}

[data-theme="light"] .htm-price-amount {
  color: #16a34a;
}

[data-theme="light"] .htm-price-per {
  color: #15803d;
}