/* ============================================================
   5-MINUTE SAFETY — Main CSS
   Design: Dark mode glassmorphism, safety color palette,
           full animations, mobile-first responsive
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================================ */
:root,
[data-theme="dark"] {
  /* Safety color palette (Dark Mode) */
  --clr-bg:          #0a0e1a;
  --clr-bg2:         #0f1428;
  --clr-surface:     rgba(255,255,255,0.05);
  --clr-surface2:    rgba(255,255,255,0.08);
  --clr-border:      rgba(255,255,255,0.10);
  --clr-border2:     rgba(255,255,255,0.18);
  --clr-text:        #e0e6f0;
  --clr-text-muted:  rgba(224,230,240,0.65);

  /* Accent */
  --clr-primary:     #00d4ff;
  --clr-primary-glow:rgba(0,212,255,0.25);
  --clr-green:       #00e676;
  --clr-green-glow:  rgba(0,230,118,0.25);
  --clr-yellow:      #ffca28;
  --clr-yellow-glow: rgba(255,202,40,0.25);
  --clr-red:         #ff5252;
  --clr-red-glow:    rgba(255,82,82,0.25);
  --clr-orange:      #ff6d00;
  --clr-purple:      #7c4dff;

  /* Gradient */
  --grad-hero:   linear-gradient(135deg, #0a0e1a 0%, #0d1b3e 50%, #0a0e1a 100%);
  --grad-primary:linear-gradient(135deg, #00d4ff, #0072ff);
  --grad-green:  linear-gradient(135deg, #00e676, #00c853);
  --grad-yellow: linear-gradient(135deg, #ffca28, #ff8f00);
  --grad-red:    linear-gradient(135deg, #ff5252, #d50000);

  /* Typography */
  --font-main:   'Poppins', sans-serif;
  --font-body:   'Inter', sans-serif;

  /* Spacing */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow-blue:   0 0 30px rgba(0,212,255,0.3);
  --shadow-glow-green:  0 0 30px rgba(0,230,118,0.3);
  --shadow-glow-yellow: 0 0 30px rgba(255,202,40,0.3);
  --shadow-glow-red:    0 0 30px rgba(255,82,82,0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-md:   0.3s ease;
  --transition-slow: 0.6s ease;
}

[data-theme="light"] {
  /* Clean Modern Light Mode */
  --clr-bg:          #f8fafc;
  --clr-bg2:         #ffffff;
  --clr-surface:     rgba(255,255,255,0.85);
  --clr-surface2:    #f1f5f9;
  --clr-border:      rgba(0,0,0,0.08);
  --clr-border2:     rgba(0,0,0,0.14);
  --clr-text:        #0f172a;
  --clr-text-muted:  #64748b;

  --clr-primary:     #0284c7;
  --clr-primary-glow:rgba(2,132,199,0.22);
  --clr-green:       #16a34a;
  --clr-green-glow:  rgba(22,163,74,0.22);
  --clr-yellow:      #d97706;
  --clr-yellow-glow: rgba(217,119,6,0.22);
  --clr-red:         #dc2626;
  --clr-red-glow:    rgba(220,38,38,0.22);
  --clr-orange:      #ea580c;
  --clr-purple:      #6d28d9;

  --grad-hero:   linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  --grad-primary:linear-gradient(135deg, #0284c7, #2563eb);
  --grad-green:  linear-gradient(135deg, #16a34a, #15803d);
  --grad-yellow: linear-gradient(135deg, #d97706, #b45309);
  --grad-red:    linear-gradient(135deg, #dc2626, #b91c1c);

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg:   0 20px 50px rgba(0,0,0,0.12);
  --shadow-glow-blue:   0 0 25px rgba(2,132,199,0.2);
  --shadow-glow-green:  0 0 25px rgba(22,163,74,0.2);
  --shadow-glow-yellow: 0 0 25px rgba(217,119,6,0.2);
  --shadow-glow-red:    0 0 25px rgba(220,38,38,0.2);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color var(--transition-md), color var(--transition-md);
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-main); font-weight: 700; line-height: 1.2; }

a { color: var(--clr-primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { opacity: 0.85; }

img { max-width: 100%; display: block; }

/* ============================================================
   ANIMATED BACKGROUND PARTICLES
   ============================================================ */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--grad-hero);
}

.bg-canvas::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(0,114,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(124,77,255,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(0,212,255,0.06) 0%, transparent 70%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.05); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.page-wrap { position: relative; z-index: 1; }

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
}

.glass-strong {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border2);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: var(--radius-lg);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(10,14,26,0.8);
  border-bottom: 1px solid var(--clr-border);
  backdrop-filter: blur(20px);
  transition: var(--transition-md);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(10,14,26,0.95);
}

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}

.navbar-brand {
  display: flex; align-items: center; gap: 10px;
}

.navbar-brand .brand-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow-blue);
}

.navbar-brand .brand-name {
  font-family: var(--font-main); font-weight: 800; font-size: 1.1rem;
  background: var(--grad-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

.navbar-nav {
  display: flex; align-items: center; gap: 8px; list-style: none;
}

.navbar-nav a {
  color: rgba(224,230,240,0.7); font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-full);
  transition: var(--transition-fast);
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: #fff; background: var(--clr-surface2);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 32px;
  font-family: var(--font-main); font-weight: 600; font-size: 1rem;
  border: none; border-radius: var(--radius-full); cursor: pointer;
  transition: all var(--transition-md);
  position: relative; overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1); opacity: 0;
  transition: var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.5);
}

.btn-success {
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,230,118,0.4);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,230,118,0.5);
}

.btn-danger {
  background: var(--grad-red); color: #fff;
  box-shadow: 0 4px 20px rgba(255,82,82,0.4);
}

.btn-ghost {
  background: transparent; color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
}
.btn-ghost:hover { background: var(--clr-primary-glow); }

.btn-lg { padding: 18px 48px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

.btn-icon { padding: 12px; border-radius: 50%; }

/* Pulse animation for CTA */
.btn-pulse {
  animation: btnPulse 2.5s ease-in-out infinite;
}
@keyframes btnPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(0,212,255,0.4); }
  50%      { box-shadow: 0 4px 40px rgba(0,212,255,0.7), 0 0 0 8px rgba(0,212,255,0.1); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}

.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-full);
  padding: 6px 16px; font-size: 0.82rem; font-weight: 500;
  color: var(--clr-primary); margin-bottom: 20px;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.1;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero-title .highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem; color: rgba(224,230,240,0.7);
  margin: 20px 0 36px; line-height: 1.7;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-visual {
  display: flex; align-items: center; justify-content: center;
  animation: fadeInRight 0.8s 0.2s ease both;
}

/* Animated motorcycle icon */
.moto-anim {
  position: relative; width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}

.moto-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid transparent; animation: ringRotate 8s linear infinite;
}

.moto-ring:nth-child(1) {
  width: 320px; height: 320px;
  border-top-color: var(--clr-primary); border-right-color: var(--clr-primary);
  opacity: 0.3;
}
.moto-ring:nth-child(2) {
  width: 260px; height: 260px;
  border-bottom-color: var(--clr-purple); border-left-color: var(--clr-purple);
  animation-direction: reverse; animation-duration: 5s; opacity: 0.4;
}
.moto-ring:nth-child(3) {
  width: 200px; height: 200px;
  border-top-color: var(--clr-green); border-right-color: var(--clr-green);
  animation-duration: 6s; opacity: 0.5;
}

.moto-core {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; position: relative;
  box-shadow: 0 0 60px rgba(0,212,255,0.5);
  animation: motoFloat 4s ease-in-out infinite;
}

@keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes motoFloat {
  0%,100% { transform: translateY(0); box-shadow: 0 0 60px rgba(0,212,255,0.5); }
  50%      { transform: translateY(-12px); box-shadow: 0 20px 80px rgba(0,212,255,0.3); }
}

/* ============================================================
   STATS COUNTER SECTION
   ============================================================ */
.stats-section {
  padding: 40px 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

.stat-card {
  text-align: center; padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: var(--transition-md);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-glow-blue);
}

.stat-value {
  font-family: var(--font-main); font-size: 2.4rem; font-weight: 800;
  background: var(--grad-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem; color: rgba(224,230,240,0.6);
  margin-top: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px;
}

.stat-icon { font-size: 1.8rem; margin-bottom: 8px; }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: var(--clr-primary);
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3);
  border-radius: var(--radius-full); padding: 4px 14px; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800;
  margin-bottom: 14px;
}
.section-desc { color: rgba(224,230,240,0.65); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* Video Player */
.video-player-wrap {
  display: grid; grid-template-columns: 1fr 320px; gap: 24px;
  align-items: start;
}

.video-main {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: #000; aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
}

.video-main iframe {
  width: 100%; height: 100%; border: none; display: block;
}

.video-playlist {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 400px; overflow-y: auto; padding-right: 4px;
}

.video-playlist::-webkit-scrollbar { width: 4px; }
.video-playlist::-webkit-scrollbar-track { background: var(--clr-surface); border-radius: 2px; }
.video-playlist::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: 2px; }

.playlist-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; border-radius: var(--radius-md);
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  cursor: pointer; transition: var(--transition-fast);
}

.playlist-item:hover, .playlist-item.active {
  background: var(--clr-surface2); border-color: var(--clr-primary);
}

.playlist-item.active { box-shadow: inset 3px 0 0 var(--clr-primary); }

.playlist-thumb {
  width: 72px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; background: #1a1a2e;
}

.playlist-info h4 { font-size: 0.82rem; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.playlist-info span { font-size: 0.72rem; color: rgba(224,230,240,0.5); }

/* Video controls */
.video-controls {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 12px 16px;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}

.video-controls button {
  background: none; border: none; color: rgba(224,230,240,0.7);
  font-size: 1.2rem; cursor: pointer; padding: 6px;
  border-radius: var(--radius-sm); transition: var(--transition-fast);
}
.video-controls button:hover { color: var(--clr-primary); background: var(--clr-surface2); }

.video-title-bar {
  flex: 1; font-size: 0.88rem; font-weight: 500;
  color: rgba(224,230,240,0.8); truncate: ellipsis;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ============================================================
   HOW IT WORKS (Timeline)
   ============================================================ */
.steps-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute; top: 48px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-purple), var(--clr-green));
  z-index: 0; opacity: 0.5;
}

.step-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 16px; position: relative; z-index: 1;
}

.step-icon {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--clr-surface);
  border: 2px solid var(--clr-border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 20px;
  transition: var(--transition-md);
  position: relative;
}

.step-icon::before {
  content: attr(data-step);
  position: absolute; top: -8px; right: -8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  font-size: 0.72rem; font-weight: 700; font-family: var(--font-main);
  display: flex; align-items: center; justify-content: center;
}

.step-card:hover .step-icon {
  transform: translateY(-6px);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-glow-blue);
}

.step-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.step-card p  { font-size: 0.8rem; color: rgba(224,230,240,0.6); line-height: 1.5; }

/* ============================================================
   CHECKLIST PREVIEW CARDS
   ============================================================ */
.checklist-preview {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}

.cat-card {
  padding: 24px 18px;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  text-align: center; transition: var(--transition-md);
  cursor: default;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-glow-blue);
}

.cat-icon { font-size: 2.4rem; margin-bottom: 12px; display: block; }
.cat-label { font-size: 0.82rem; font-weight: 600; color: var(--clr-primary); margin-bottom: 4px; }
.cat-name  { font-size: 1rem; font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--clr-border);
}

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

.footer-brand h3 {
  font-size: 1.3rem; font-weight: 800;
  background: var(--grad-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px;
}

.footer-brand p { color: rgba(224,230,240,0.55); font-size: 0.88rem; line-height: 1.7; }
.footer-research { 
  margin-top: 14px; font-size: 0.78rem;
  color: rgba(224,230,240,0.4); font-style: italic;
  border-left: 2px solid var(--clr-primary); padding-left: 10px;
}

.footer-col h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; color: rgba(224,230,240,0.8); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(224,230,240,0.5); transition: var(--transition-fast); }
.footer-col ul li a:hover { color: var(--clr-primary); }

.footer-bottom {
  border-top: 1px solid var(--clr-border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(224,230,240,0.4);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.88rem; font-weight: 600;
  margin-bottom: 8px; color: rgba(224,230,240,0.8);
}

.form-control {
  width: 100%; padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: #e0e6f0; font-family: var(--font-body); font-size: 1rem;
  transition: var(--transition-fast); outline: none;
}

.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-glow);
  background: rgba(0,212,255,0.05);
}

.form-control::placeholder { color: rgba(224,230,240,0.3); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 48px; }
.input-icon-wrap .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(224,230,240,0.4); font-size: 1.2rem; pointer-events: none;
}

/* ============================================================
   CHECKLIST FORM (checklist.php)
   ============================================================ */
.checklist-progress {
  display: flex; gap: 8px; margin-bottom: 36px;
}

.progress-step {
  flex: 1; height: 6px; border-radius: var(--radius-full);
  background: var(--clr-surface2);
  transition: var(--transition-md);
}
.progress-step.done     { background: var(--grad-green); }
.progress-step.active   { background: var(--grad-primary); animation: progressPulse 1.5s ease-in-out infinite; }
.progress-step.skipped  { background: var(--clr-yellow); }

@keyframes progressPulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.6; }
}

.minute-card {
  display: none;
  animation: slideIn 0.4s ease both;
}
.minute-card.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.minute-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: var(--clr-surface2); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--clr-border2); border-bottom: none;
}

.minute-number {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main); font-weight: 800; font-size: 1.1rem; color: #fff;
  flex-shrink: 0; box-shadow: var(--shadow-glow-blue);
}

.minute-icon { font-size: 1.8rem; }
.minute-title { font-size: 1.2rem; font-weight: 700; }
.minute-subtitle { font-size: 0.85rem; color: rgba(224,230,240,0.6); margin-top: 2px; }

.checklist-body {
  padding: 24px;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.check-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-md);
  transition: var(--transition-fast); cursor: pointer; margin-bottom: 6px;
  border: 1px solid transparent;
}

.check-item:hover { background: var(--clr-surface2); border-color: var(--clr-border); }
.check-item.checked { background: rgba(0,230,118,0.08); border-color: rgba(0,230,118,0.25); }

.check-item input[type="checkbox"] { display: none; }

.check-box {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid var(--clr-border2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
  background: rgba(255,255,255,0.03);
}

.check-item.checked .check-box {
  background: var(--grad-green); border-color: transparent;
}

.check-box::after {
  content: '✓'; color: #fff; font-size: 0.9rem; font-weight: 700;
  transform: scale(0); transition: var(--transition-fast);
  display: block;
}
.check-item.checked .check-box::after { transform: scale(1); }

.check-label { font-size: 0.95rem; font-weight: 500; }

/* Navigation buttons */
.checklist-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
}

.checklist-counter {
  font-size: 0.85rem; color: rgba(224,230,240,0.5);
}

/* ============================================================
   RESULT PAGE
   ============================================================ */
.result-card {
  text-align: center; padding: 48px 40px;
  max-width: 600px; margin: 0 auto;
}

/* Score gauge */
.score-gauge {
  position: relative; width: 200px; height: 200px; margin: 0 auto 32px;
}

.score-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.score-gauge-track {
  fill: none; stroke: var(--clr-surface2); stroke-width: 12;
}

.score-gauge-fill {
  fill: none; stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
}

.score-gauge-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.score-number {
  font-family: var(--font-main); font-size: 3rem; font-weight: 900; line-height: 1;
}
.score-max { font-size: 0.85rem; color: rgba(224,230,240,0.5); }

.result-status {
  font-size: 1.6rem; font-weight: 800; margin-bottom: 10px;
}
.result-message { color: rgba(224,230,240,0.7); font-size: 1rem; margin-bottom: 28px; }

/* Badge */
.badge-display {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.9rem; margin-bottom: 20px;
}

.badge-none     { background: rgba(255,255,255,0.05); color: rgba(224,230,240,0.5); }
.badge-beginner { background: rgba(176,141,87,0.15); color: #cd7f32; border: 1px solid rgba(176,141,87,0.3); }
.badge-habit    { background: rgba(192,192,192,0.15); color: #c0c0c0; border: 1px solid rgba(192,192,192,0.3); }
.badge-champion { background: rgba(255,215,0,0.15); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }

.streak-display {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 1.1rem; font-weight: 700; color: var(--clr-orange);
  margin-bottom: 28px;
}

/* ============================================================
   HISTORY SECTION
   ============================================================ */
.week-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
}

.day-cell {
  text-align: center; padding: 14px 8px; border-radius: var(--radius-md);
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  font-size: 0.78rem;
}

.day-cell.checked  { background: rgba(0,230,118,0.12); border-color: rgba(0,230,118,0.4); }
.day-cell.warning  { background: rgba(255,202,40,0.12); border-color: rgba(255,202,40,0.4); }
.day-cell.today    { border-color: var(--clr-primary); }

.day-name  { font-size: 0.7rem; font-weight: 600; color: rgba(224,230,240,0.5); margin-bottom: 4px; }
.day-icon  { font-size: 1.4rem; margin-bottom: 2px; }
.day-score { font-size: 0.72rem; color: rgba(224,230,240,0.6); }

/* ============================================================
   ALERT / TOAST
   ============================================================ */
.toast-container {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}

.toast {
  padding: 14px 20px; border-radius: var(--radius-md);
  font-size: 0.88rem; font-weight: 500;
  background: var(--clr-surface2); border: 1px solid var(--clr-border2);
  backdrop-filter: blur(20px);
  animation: toastIn 0.3s ease both;
  max-width: 300px; display: flex; align-items: center; gap: 10px;
}

.toast-success { border-left: 3px solid var(--clr-green); }
.toast-error   { border-left: 3px solid var(--clr-red); }
.toast-info    { border-left: 3px solid var(--clr-primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

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

.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Confetti overlay */
.confetti-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--clr-surface2);
  border-top-color: var(--clr-primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(10,14,26,0.85); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.loading-overlay.show { display: flex; }

/* ============================================================
   THEME TOGGLE BUTTON & SWITCHER
   ============================================================ */
.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--clr-surface2); border: 1px solid var(--clr-border);
  color: var(--clr-text); font-size: 1.15rem; cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  outline: none; -webkit-tap-highlight-color: transparent;
}
.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-glow-blue);
}
.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* ============================================================
   MODE WEB (DESKTOP WIDESCREEN & RICH VISUALS)
   ============================================================ */
.desktop-only { display: block; }
.mobile-only  { display: none !important; }

/* Interactive Telemetry Card on Desktop Hero */
.hero-visual { position: relative; }
.telemetry-card {
  position: absolute; bottom: -20px; left: -30px; z-index: 10;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 18px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  animation: telemetryFloat 4s ease-in-out infinite alternate;
}
.telemetry-item {
  display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 6px;
}
.telemetry-item:last-child { margin-bottom: 0; }
.telemetry-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--clr-green);
  box-shadow: 0 0 8px var(--clr-green);
}

@keyframes telemetryFloat {
  0%   { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(-1deg); }
}

/* Motor Visual 3D Float Animation */
.moto-anim {
  animation: floatMoto 5s ease-in-out infinite alternate;
}
@keyframes floatMoto {
  0%   { transform: translateY(0px) scale(1); }
  50%  { transform: translateY(-14px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}

/* Pulse Glow Keyframe for CTA Button */
.btn-pulse {
  animation: pulseGlow 2.5s infinite;
}
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.6); }
  70%  { box-shadow: 0 0 0 16px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

/* Card 3D tilt hover */
.step-card, .checklist-cat-card, .stat-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.step-card:hover, .checklist-cat-card:hover, .stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-glow-blue);
}

/* ============================================================
   MODE PONSEL (MOBILE-FIRST NATIVE FEEL DOCK & APP UI)
   ============================================================ */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: block !important; }

  /* Body needs bottom padding for bottom dock */
  body {
    padding-bottom: 84px !important;
  }

  /* Mobile App Navbar */
  .navbar {
    padding: 10px 0;
  }
  .navbar-nav {
    display: none !important;
  }
  .brand-name {
    font-size: 1.05rem;
  }

  /* Hero Section for Phone */
  .hero {
    padding: 70px 0 30px;
    text-align: center;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-full);
  }

  /* Mini Moto Animation for Mobile */
  .mobile-hero-moto {
    font-size: 4rem;
    margin: 10px 0 16px;
    animation: floatMoto 3.5s ease-in-out infinite alternate;
    display: inline-block;
  }

  /* Mobile Quick Stats Grid 2x2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .stat-card {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }
  .stat-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
  }
  .stat-value {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }

  /* Steps and Checklist Previews on Phone */
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .step-card {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 14px 18px;
  }
  .step-icon {
    margin: 0;
    font-size: 2rem;
    flex-shrink: 0;
  }
  .step-card h3 {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }
  .step-card p {
    font-size: 0.78rem;
  }

  .checklist-preview {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  /* Video Player mobile layout */
  .video-player-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .video-playlist {
    max-height: 220px;
    flex-direction: column;
  }

  /* Footer on phone */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  /* MOBILE BOTTOM NAVIGATION DOCK */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 3px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), transform var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-item .nav-icon {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform var(--transition-fast);
  }
  .mobile-nav-item.active,
  .mobile-nav-item:active {
    color: var(--clr-primary);
    transform: scale(0.96);
  }
  .mobile-nav-item.active .nav-icon {
    transform: translateY(-2px);
  }

  .mobile-nav-cta {
    background: var(--grad-primary);
    color: #fff !important;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    margin-top: -14px;
    box-shadow: var(--shadow-glow-blue);
    border: 2px solid var(--clr-bg);
  }
  .mobile-nav-cta .nav-icon {
    font-size: 1.4rem;
  }
}

