/* ============================================
   SPMB MAN Banggai — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  /* Primary - Islamic Green */
  --primary: #0d6e3e;
  --primary-light: #14a05e;
  --primary-dark: #094d2b;
  --primary-gradient: linear-gradient(135deg, #0d6e3e, #14a05e);

  /* Accent - Gold */
  --accent: #c9a84c;
  --accent-light: #e0c66a;
  --accent-dark: #a88a35;

  /* Neutrals */
  --bg-dark: #0a1628;
  --bg-section: #0e1f36;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.1);

  /* Light mode alternatives (for forms) */
  --bg-light: #f8fafb;
  --bg-white: #ffffff;
  --text-dark: #1a2332;
  --text-dark-secondary: #4a5568;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(13, 110, 62, 0.3);

  /* Spacing */
  --section-padding: 60px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Styling --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .badge {
  display: inline-block;
  background: rgba(13, 110, 62, 0.15);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 50px;
  border: 1px solid rgba(13, 110, 62, 0.3);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  z-index: 1001;
}

.navbar-brand .logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.navbar-brand .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navbar-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(13, 110, 62, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(13, 110, 62, 0.5);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 168, 76, 0.5);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-xl {
  padding: 18px 48px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(13, 110, 62, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(13, 110, 62, 0.1) 0%, transparent 50%);
  z-index: 0;
}

/* Animated floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(13, 110, 62, 0.3);
  animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) {
  width: 6px;
  height: 6px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.particle:nth-child(2) {
  width: 4px;
  height: 4px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
  animation-duration: 22s;
  background: rgba(201, 168, 76, 0.3);
}

.particle:nth-child(3) {
  width: 8px;
  height: 8px;
  top: 40%;
  left: 50%;
  animation-delay: 4s;
  animation-duration: 20s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 80%;
  left: 20%;
  animation-delay: 6s;
  animation-duration: 16s;
  background: rgba(201, 168, 76, 0.2);
}

.particle:nth-child(5) {
  width: 3px;
  height: 3px;
  top: 30%;
  left: 70%;
  animation-delay: 8s;
  animation-duration: 24s;
}

.particle:nth-child(6) {
  width: 7px;
  height: 7px;
  top: 70%;
  left: 40%;
  animation-delay: 3s;
  animation-duration: 19s;
  background: rgba(201, 168, 76, 0.25);
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.5;
  }

  25% {
    transform: translateY(-60px) translateX(30px) scale(1.2);
    opacity: 1;
  }

  50% {
    transform: translateY(-30px) translateX(-20px) scale(0.8);
    opacity: 0.7;
  }

  75% {
    transform: translateY(-80px) translateX(10px) scale(1.1);
    opacity: 0.9;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 110, 62, 0.15);
  border: 1px solid rgba(13, 110, 62, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.15;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Countdown Timer */
.countdown-wrapper {
  animation: fadeInUp 0.8s ease 0.5s both;
}

.countdown-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.countdown-item {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  min-width: 90px;
  text-align: center;
}

.countdown-item .number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============================================
   INFO BAR
   ============================================ */
.info-bar {
  background: var(--primary-gradient);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

.info-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 255, 0.03) 20px,
      rgba(255, 255, 255, 0.03) 40px);
}

.info-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.info-item i {
  font-size: 1.3rem;
  opacity: 0.8;
}

.info-item span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ============================================
   JALUR MASUK
   ============================================ */
.jalur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.jalur-card {
  text-align: center;
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
}

.jalur-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: var(--transition);
}

.jalur-card:hover::before {
  transform: scaleX(1);
}

.jalur-card .icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(13, 110, 62, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-light);
  margin: 0 auto 20px;
  transition: var(--transition);
}

.jalur-card:hover .icon {
  background: var(--primary-gradient);
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.jalur-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.jalur-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Card accent variants */
.jalur-card.card-gold .icon {
  background: rgba(201, 168, 76, 0.12);
  color: var(--accent);
}

.jalur-card.card-gold:hover .icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg-dark);
}

.jalur-card.card-gold::before {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.timeline-tab {
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.timeline-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.timeline-tab.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-glow);
}

.timeline-content {
  display: none;
}

.timeline-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 3px rgba(13, 110, 62, 0.3);
}

.timeline-item .date {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ============================================
   PERSYARATAN
   ============================================ */
.persyaratan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.syarat-card {
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.syarat-card .icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  background: rgba(13, 110, 62, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-light);
  transition: var(--transition);
}

.syarat-card:hover .icon-box {
  background: var(--primary-gradient);
  color: white;
}

.syarat-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.syarat-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   MATERI TES
   ============================================ */
.materi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.materi-card {
  padding: 36px 28px;
}

.materi-card .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.materi-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.materi-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.materi-card ul {
  margin-top: 10px;
}

.materi-card ul li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.materi-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}

/* ============================================
   TUTORIAL
   ============================================ */
.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.tutorial-step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.tutorial-step .step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-glow);
}

.tutorial-step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.tutorial-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   ALUR PENDAFTARAN
   ============================================ */
.alur-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.alur-item {
  display: flex;
  gap: 24px;
  margin-bottom: 0;
  position: relative;
}

.alur-item:not(:last-child) {
  padding-bottom: 32px;
}

.alur-number-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.alur-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 1;
}

.alur-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), rgba(13, 110, 62, 0.2));
  margin-top: 4px;
}

.alur-item:last-child .alur-line {
  display: none;
}

.alur-content {
  padding-top: 8px;
  flex: 1;
}

.alur-content h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.alur-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(13, 110, 62, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 60%);
}

.cta-box {
  position: relative;
  z-index: 1;
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CONTACT / NARAHUBUNG
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  text-align: center;
  padding: 36px 24px;
}

.contact-card .contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(13, 110, 62, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-light);
  margin: 0 auto 16px;
}

.contact-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-card a {
  color: var(--primary-light);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-glass);
  padding: 40px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .navbar-brand {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.footer-links a {
  display: block;
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============================================
   REGISTRASI & LOGIN PAGES
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(13, 110, 62, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
}

.auth-header .auth-logo .logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: var(--shadow-glow);
}

.auth-header h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-form {
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group label .required {
  color: #ef4444;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(13, 110, 62, 0.15);
}

.form-input.error {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-input.error+.form-error {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-form .btn {
  width: 100%;
  margin-top: 8px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--primary-light);
  font-weight: 600;
}

.auth-footer a:hover {
  color: var(--accent);
}

/* Toast notification */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateX(150%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: rgba(13, 110, 62, 0.95);
  color: white;
  border: 1px solid rgba(20, 160, 94, 0.5);
  box-shadow: 0 4px 20px rgba(13, 110, 62, 0.3);
}

.toast.error {
  background: rgba(239, 68, 68, 0.95);
  color: white;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    justify-content: flex-start;
    align-items: center;
    z-index: 999;
    gap: 8px;
    padding-top: 90px;
    padding-bottom: 250px;
    overflow-y: auto;
  }

  .nav-links.active a {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .nav-actions.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    gap: 12px;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.15rem;
  }

  .hero .description {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .countdown {
    gap: 8px;
    flex-wrap: wrap;
  }

  .countdown-item {
    min-width: 70px;
    padding: 14px 16px;
  }

  .countdown-item .number {
    font-size: 1.8rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .info-bar .container {
    gap: 20px;
    justify-content: center;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .cta-box h2 {
    font-size: 1.6rem;
  }

  .auth-form {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .alur-item {
    gap: 16px;
  }

  .btn {
    padding: 14px 24px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .persyaratan-grid,
  .materi-grid,
  .tutorial-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .glass-card {
    padding: 24px 18px;
  }

  .countdown-item {
    min-width: 60px;
    padding: 10px 12px;
  }

  .countdown-item .number {
    font-size: 1.5rem;
  }

  .countdown-item .label {
    font-size: 0.65rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 1.35rem;
  }

  .cta-box h2 {
    font-size: 1.3rem;
  }

  .jalur-card {
    padding: 24px 16px;
  }

  .hero .description {
    font-size: 0.88rem;
  }

  .faq-question {
    padding: 16px;
    font-size: 0.9rem;
  }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.08);
}

.faq-question .arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--primary-light);
}

.faq-item.active .faq-question {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: rgba(13, 110, 62, 0.1);
  border-color: rgba(13, 110, 62, 0.3);
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.faq-answer-inner {
  padding: 20px 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Select dropdown */
.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(13, 110, 62, 0.15);
}

.form-select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(13, 110, 62, 0.5);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  animation: loadingPulse 1.5s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 4px 20px rgba(13, 110, 62, 0.4));
}

.loading-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  border-radius: 4px;
  animation: loadingProgress 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadingProgress {
  0% {
    width: 0%;
  }

  30% {
    width: 40%;
  }

  60% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

@keyframes loadingPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* ============================================
   ANIMATED STATS COUNTER SECTION
   ============================================ */
.stats-section {
  padding: 80px 0;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(13, 110, 62, 0.08) 0%, transparent 70%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.stat-counter-card {
  text-align: center;
  padding: 32px 20px;
}

.stat-counter-card .stat-counter-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.stat-counter-card:hover .stat-counter-icon {
  transform: scale(1.1);
}

.stat-counter-icon.s1 {
  background: rgba(13, 110, 62, 0.15);
  color: var(--primary-light);
}

.stat-counter-icon.s2 {
  background: rgba(201, 168, 76, 0.15);
  color: var(--accent);
}

.stat-counter-icon.s3 {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.stat-counter-icon.s4 {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.stat-counter-value {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-counter-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   GALERI & TESTIMONI SECTION
   ============================================ */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.galeri-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
  height: 220px;
}

.galeri-card.galeri-video {
  height: 0;
  padding-bottom: 56.25%;
}

.galeri-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeri-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.galeri-card:hover img {
  transform: scale(1.08);
}

.galeri-card .galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.galeri-card:hover .galeri-overlay {
  opacity: 1;
}

.galeri-overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.testimoni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimoni-card {
  padding: 32px;
  position: relative;
}

.testimoni-card .quote-icon {
  font-size: 2rem;
  color: var(--primary-light);
  opacity: 0.3;
  margin-bottom: 12px;
}

.testimoni-card .quote-text {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimoni-card .quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimoni-card .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.testimoni-card .author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimoni-card .author-info {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   DARK/LIGHT MODE TOGGLE
   ============================================ */
.theme-toggle {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

/* Light Mode */
body.light-mode {
  --bg-dark: #f4f6f9;
  --bg-section: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-glass: rgba(0, 0, 0, 0.04);
  --text-primary: #1a2332;
  --text-secondary: rgba(26, 35, 50, 0.7);
  --text-muted: rgba(26, 35, 50, 0.45);
  --border-glass: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

body.light-mode .hero::before {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(13, 110, 62, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
}

body.light-mode .navbar.scrolled {
  background: rgba(244, 246, 249, 0.92);
}

body.light-mode .loading-screen {
  background: #f4f6f9;
}

body.light-mode .info-bar {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

body.light-mode .particle {
  background: rgba(13, 110, 62, 0.15);
}

body.light-mode .particle:nth-child(2),
body.light-mode .particle:nth-child(4),
body.light-mode .particle:nth-child(6) {
  background: rgba(201, 168, 76, 0.15);
}

body.light-mode .section-header h2 {
  background: linear-gradient(135deg, #1a2332 0%, rgba(26, 35, 50, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .stat-counter-value {
  background: linear-gradient(135deg, #1a2332 0%, rgba(26, 35, 50, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .form-select,
body.light-mode .cms-input {
  background: rgba(0, 0, 0, 0.03);
  color: #1a2332;
}

body.light-mode .form-select option {
  background: #fff;
  color: #1a2332;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  z-index: 999;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

body.light-mode .mobile-bottom-nav {
  background: rgba(244, 246, 249, 0.95);
}

.mobile-bottom-nav .nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  transition: var(--transition);
}

.mobile-bottom-nav .nav-item i {
  font-size: 1.25rem;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
  color: var(--primary-light);
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   PENGUMUMAN PAGE
   ============================================ */
.pengumuman-page {
  min-height: 100vh;
  padding-top: 0;
}

.pengumuman-hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pengumuman-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(13, 110, 62, 0.15) 0%, transparent 70%);
}

.pengumuman-search-box {
  max-width: 520px;
  margin: 32px auto 0;
  position: relative;
}

.pengumuman-search-box input {
  width: 100%;
  padding: 18px 24px;
  padding-right: 56px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.pengumuman-search-box input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(13, 110, 62, 0.15);
}

.pengumuman-search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-gradient);
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.pengumuman-search-box button:hover {
  box-shadow: var(--shadow-glow);
}

.pengumuman-result {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: left;
}

.result-card {
  padding: 32px;
  text-align: center;
}

.result-card .result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.result-icon.pass {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.result-icon.fail {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.result-icon.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.result-icon.notfound {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
}

.result-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.result-card .result-status {
  font-size: 1rem;
  margin-bottom: 16px;
}

.result-card .result-details {
  text-align: left;
  margin-top: 20px;
}

.result-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.result-detail-row .detail-label {
  color: var(--text-muted);
}

.result-detail-row .detail-value {
  font-weight: 600;
}

/* ============================================
   PRINT KARTU SELEKSI
   ============================================ */
@media print {
  body * {
    visibility: hidden;
  }

  .kartu-seleksi,
  .kartu-seleksi * {
    visibility: visible;
  }

  .kartu-seleksi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white !important;
    color: #1a2332 !important;
  }
}

.kartu-seleksi {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  color: #1a2332;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.kartu-header {
  background: var(--primary-gradient);
  padding: 24px;
  text-align: center;
  color: white;
}

.kartu-header h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.kartu-header p {
  font-size: 0.8rem;
  opacity: 0.85;
}

.kartu-body {
  padding: 24px;
}

.kartu-body .kartu-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

.kartu-body .kartu-label {
  color: #6b7280;
}

.kartu-body .kartu-value {
  font-weight: 600;
  color: #1a2332;
}

.kartu-footer {
  background: #f9fafb;
  padding: 16px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .scroll-top {
    bottom: 85px;
    right: 16px;
  }

  .theme-toggle {
    bottom: 140px;
    right: 16px;
  }

  .chatbot-fab {
    bottom: 195px;
    right: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galeri-grid {
    grid-template-columns: 1fr 1fr;
  }

  .galeri-card {
    height: 160px;
  }

  .galeri-card.galeri-video {
    height: 0;
    padding-bottom: 56.25%;
  }

  .testimoni-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-counter-value {
    font-size: 2rem;
  }

  .galeri-grid {
    grid-template-columns: 1fr;
  }

  .galeri-card.galeri-video {
    height: 0;
    padding-bottom: 56.25%;
  }
}

@media (max-width: 360px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }
}

/* ============================================
   GAME CHALLENGE SYSTEM
   ============================================ */

/* --- Modal Overlay & Container --- */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.game-modal.active {
  opacity: 1;
  visibility: visible;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.game-container {
  position: relative;
  width: 95%;
  max-width: 520px;
  max-height: 90vh;
  background: linear-gradient(165deg, rgba(18, 32, 50, 0.98), rgba(10, 22, 40, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.game-modal.active .game-container {
  transform: translateY(0) scale(1);
}

/* --- Game Header --- */
.game-header {
  position: relative;
  padding: 32px 24px 24px;
  text-align: center;
  overflow: hidden;
}

.game-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--game-color) 0%, transparent 70%);
  opacity: 0.12;
}

.game-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.game-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: rotate(90deg);
}

.game-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--game-color), color-mix(in srgb, var(--game-color), white 30%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  margin: 0 auto 12px;
  box-shadow: 0 8px 25px color-mix(in srgb, var(--game-color), transparent 60%);
  position: relative;
  z-index: 1;
}

.game-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.game-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* --- Game Body --- */
.game-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* --- Progress Bar --- */
.game-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}

.game-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* --- Common Elements --- */
.game-question-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.game-question {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.game-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.game-input:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(13, 110, 62, 0.15);
}

.game-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.game-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.game-btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(13, 110, 62, 0.4);
}

.game-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(13, 110, 62, 0.5);
}

.game-btn-retry {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.game-btn-retry:hover {
  background: rgba(251, 191, 36, 0.25);
  transform: translateY(-2px);
}

.game-feedback {
  margin-top: 12px;
  min-height: 24px;
  text-align: center;
}

.feedback-correct {
  color: #10b981;
  font-weight: 600;
  font-size: 0.9rem;
}

.feedback-wrong {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.9rem;
}

.feedback-hint {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.game-score-display {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Quiz Game --- */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.quiz-option:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.quiz-option-letter {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.quiz-option.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  animation: optionPop 0.4s ease;
}

.quiz-option.correct .quiz-option-letter {
  background: #10b981;
  color: white;
}

.quiz-option.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  animation: optionShake 0.4s ease;
}

.quiz-option.wrong .quiz-option-letter {
  background: #ef4444;
  color: white;
}

/* --- Scramble Game --- */
.scramble-letters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.scramble-letter {
  width: 44px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  color: #fbbf24;
  animation: letterBounce 0.5s ease backwards;
}

.scramble-letter:nth-child(2n) {
  animation-delay: 0.05s;
}

.scramble-letter:nth-child(3n) {
  animation-delay: 0.1s;
}

.scramble-letter:nth-child(4n) {
  animation-delay: 0.15s;
}

.scramble-letter:nth-child(5n) {
  animation-delay: 0.2s;
}

.scramble-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.scramble-hint i {
  color: #fbbf24;
  margin-right: 6px;
}

.scramble-input-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.scramble-input-wrap .game-input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
}

/* --- Memory Game --- */
.memory-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.memory-stats i {
  margin-right: 4px;
  color: var(--accent);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.memory-card {
  aspect-ratio: 1;
  perspective: 600px;
  cursor: pointer;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  backface-visibility: hidden;
  font-size: 1.4rem;
}

.memory-card-front {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(236, 72, 153, 0.05));
  border: 1.5px solid rgba(236, 72, 153, 0.25);
  color: rgba(236, 72, 153, 0.5);
}

.memory-card-back {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  transform: rotateY(180deg);
}

.memory-card.matched .memory-card-back {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
  animation: matchPulse 0.5s ease;
}

.memory-card:hover .memory-card-front {
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(236, 72, 153, 0.15);
}

/* --- Typing Game --- */
.typing-timer {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 16px;
  padding: 8px 20px;
  background: rgba(13, 110, 62, 0.1);
  border-radius: 14px;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.typing-timer.warning {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  animation: pulse 1s infinite;
}

.typing-target {
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.5px;
  line-height: 1.8;
}

.typing-input {
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.char-correct {
  color: #10b981;
}

.char-wrong {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 2px;
}

/* --- Guess Game --- */
.guess-info {
  text-align: center;
  margin-bottom: 20px;
}

.guess-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.guess-attempts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.attempt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.attempt-dot.used {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.guess-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.guess-input-wrap .game-input {
  flex: 1;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.guess-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.guess-tag {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guess-tag.up {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.guess-tag.down {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* --- Math Game --- */
.math-problem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.math-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.math-op {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.math-eq {
  font-size: 2rem;
  color: var(--text-muted);
}

.math-answer {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-light);
  animation: pulse 2s infinite;
}

.math-input-wrap {
  display: flex;
  gap: 10px;
}

.math-input-wrap .game-input {
  flex: 1;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
}

/* --- Victory & Fail States --- */
.game-victory {
  text-align: center;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

.victory-icon {
  font-size: 3.5rem;
  color: #fbbf24;
  margin-bottom: 16px;
  animation: trophyBounce 0.8s ease;
}

.game-victory h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-victory p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.game-fail {
  text-align: center;
  padding: 20px 0;
}

.fail-icon {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 16px;
  opacity: 0.8;
}

.game-fail h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 8px;
}

.game-fail p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* --- Confetti --- */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  border-radius: 3px;
  animation: confettiFall linear forwards;
}

/* --- Menu Lock/Unlock States --- */
.menu-item.locked {
  position: relative;
  opacity: 0.75;
}

.menu-item.locked::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.03) 10px,
      rgba(0, 0, 0, 0.03) 20px);
  pointer-events: none;
}

.menu-item.unlocked {
  opacity: 1;
}

.lock-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.7rem;
  z-index: 2;
}

/* --- Game Progress Section --- */
.game-progress-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-completed-count {
  font-size: 0.75rem;
  background: rgba(13, 110, 62, 0.15);
  color: var(--primary-light);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
  margin-left: auto;
}

.game-progress-bar-large {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
  margin: 16px 0;
}

.game-progress-fill-large {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 5px;
  transition: width 0.8s ease;
}

.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.game-card {
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.game-card.completed {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
  cursor: default;
}

.game-card.completed:hover {
  transform: none;
}

.game-card-icon {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--game-color);
}

.game-card.completed .game-card-icon {
  color: #10b981;
}

.game-card-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.game-card-status {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.game-card.completed .game-card-status {
  color: #10b981;
}

/* --- Animations --- */
@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(400px) rotate(720deg);
    opacity: 0;
  }
}

@keyframes trophyBounce {
  0% {
    transform: scale(0) rotate(-15deg);
  }

  50% {
    transform: scale(1.2) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes optionPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes optionShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

@keyframes letterBounce {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes matchPulse {
  0% {
    transform: rotateY(180deg) scale(1);
  }

  50% {
    transform: rotateY(180deg) scale(1.1);
  }

  100% {
    transform: rotateY(180deg) scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.shake {
  animation: optionShake 0.4s ease !important;
}

/* --- Game Responsive --- */
@media (max-width: 480px) {
  .game-container {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 20px;
  }

  .game-header {
    padding: 24px 16px 20px;
  }

  .game-body {
    padding: 16px;
  }

  .game-icon-wrap {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .game-title {
    font-size: 1.2rem;
  }

  .memory-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .math-num {
    font-size: 2rem;
  }

  .scramble-letter {
    width: 36px;
    height: 42px;
    font-size: 1.1rem;
  }

  .game-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================== */
/* CHATBOT MANELBOT                           */
/* ========================================== */

.chatbot-fab {
  position: fixed;
  bottom: 150px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 170, 0.3);
  z-index: 9998;
  transition: all 0.3s ease;
  animation: fabPulse 2s ease-in-out infinite;
}

.chatbot-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 170, 0.5);
}

.chatbot-fab.active {
  animation: none;
  transform: rotate(90deg);
}

.chatbot-fab i {
  font-size: 1.5rem;
  color: #fff;
}

.chatbot-fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  background: #ef4444;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgeBounce 0.5s ease;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 170, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 50px rgba(0, 212, 170, 0.5); }
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 150px);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 170, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chatbot-avatar img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.chatbot-header-text {
  display: flex;
  flex-direction: column;
}

.chatbot-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.chatbot-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chatbot-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 5px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.chat-message {
  display: flex;
  gap: 10px;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-message .chat-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chat-message .chat-avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.chat-message.user .chat-avatar {
  display: none;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.bot .chat-bubble {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble strong {
  color: var(--accent);
  font-weight: 600;
}

.chat-message.user .chat-bubble strong {
  color: #fff;
}

/* Typing indicator */
.chat-bubble.typing {
  display: flex;
  gap: 4px;
  padding: 14px 20px;
}

.chat-bubble.typing span {
  width: 8px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}

.chat-bubble.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-bubble.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chatbot-quick-actions {
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-quick-actions::-webkit-scrollbar {
  height: 3px;
}

.chatbot-quick-actions button {
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chatbot-quick-actions button:hover {
  background: rgba(0, 212, 170, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.chatbot-input-area {
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.chatbot-input-area input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.chatbot-input-area input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.chatbot-input-area input::placeholder {
  color: var(--text-muted);
}

.chatbot-send {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chatbot-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.chatbot-send:active {
  transform: scale(0.95);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .chatbot-fab {
    bottom: 195px;
    right: 16px;
    width: 54px;
    height: 54px;
  }

  .chatbot-container {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    border-radius: 20px 20px 0 0;
  }

  .chatbot-container.active {
    transform: translateY(0);
  }

  .nav-actions .btn span {
    display: none;
  }

  .nav-actions .btn {
    padding: 10px 14px;
  }
}

/* Light mode adjustments */
body.light-mode .chatbot-container {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .chat-message.bot .chat-bubble {
  background: #f1f5f9;
  color: var(--text-primary);
}

body.light-mode .chatbot-quick-actions button {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

body.light-mode .chatbot-input-area {
  background: #f8fafc;
}

body.light-mode .chatbot-input-area input {
  background: #fff;
  border-color: #e2e8f0;
  color: #1e293b;
}