/* =============================================================
   WATER INTAKE CALCULATOR â€” Sci-Fi Design System v2
   Theme: Sci-Fi / Cyber-Hydration
   Palette: Cyan & Deep Blue
   Typography: Space Grotesk (Display) + DM Sans (Body)
   ============================================================= */


:root {
  /* Dark Mode (Default) */
  --bg: #050d1a;
  --bg2: #07111f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #0a1628;
  --border: rgba(255, 255, 255, 0.08);
  --cyan: #00e5ff;
  --cyan-rgb: 0, 229, 255;
  --cyan2: #00b8d9;
  --blue: #1a6fff;
  --blue-rgb: 26, 111, 255;
  --text: #f0f8ff;
  --text2: rgba(240, 248, 255, 0.55);
  --r: 24px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --cyan: #0ea5e9;
  --cyan-rgb: 14, 165, 233;
  --cyan2: #0284c7;
  --blue: #2563eb;
  --blue-rgb: 37, 99, 235;
  --text: #0f172a;
  --text2: rgba(15, 23, 42, 0.65);
  
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);
  --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.08);
}

/* â”€â”€ RESET & BASE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

/* â”€â”€ CANVAS BACKGROUND â”€â”€ */
#bg-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* â”€â”€ NAV â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(var(--bg), 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.logo span { font-weight: 300; opacity: 0.8; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-toggle { display: none; }
.nav-links a {
  color: var(--text2); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--cyan); transform: scale(1.05); }

/* â”€â”€ HERO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(var(--cyan-rgb), 0.08);
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 60%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text2);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
  padding: 16px 36px; border-radius: 100px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 0 40px rgba(var(--cyan-rgb), 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 60px rgba(var(--cyan-rgb), 0.5); }
.hero-cta:active { transform: scale(0.97); }

/* Floating water drops */
.drops-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.drop {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(var(--cyan-rgb), 0.15), rgba(var(--blue-rgb), 0.05));
  border: 1px solid rgba(var(--cyan-rgb), 0.1);
  animation: floatDrop linear infinite;
}
@keyframes floatDrop {
  0% { transform: translateY(110vh) rotate(0deg) scale(1); }
  100% { transform: translateY(-20vh) rotate(360deg) scale(1.1); }
}

/* â”€â”€ STATS BAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; gap: 0;
  max-width: 860px; margin: 40px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.stat-item {
  flex: 1; padding: 24px 16px; text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(var(--cyan-rgb), 0.04); }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label { font-size: 0.7rem; color: var(--text2); letter-spacing: 0.5px; margin-top: 4px; text-transform: uppercase; }

/* â”€â”€ CALCULATOR SECTION â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#calculator {
  position: relative; z-index: 1;
  padding: 80px 24px;
  max-width: 1100px; margin: 0 auto;
}
.section-label {
  text-align: center; margin-bottom: 12px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); opacity: 0.8;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; letter-spacing: -1.5px;
  text-align: center; margin-bottom: 48px;
  line-height: 1.1;
}
h2 em { font-style: normal; color: var(--cyan); }

/* â”€â”€ CALC CARD â”€â”€ */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.calc-card::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* Input groups */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text2);
}
.input-wrap { position: relative; }
.input-wrap input,
.input-wrap select {
  width: 100%;
  background: rgba(var(--text-rgb), 0.05);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none; appearance: none;
}
.input-wrap select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
[data-theme="light"] .input-wrap select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(15,23,42,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E"); }

.input-wrap input:focus, .input-wrap select:focus {
  border-color: var(--cyan);
  background: rgba(var(--cyan-rgb), 0.05);
  box-shadow: 0 0 0 4px rgba(var(--cyan-rgb), 0.1);
}
.input-unit {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 0.8rem; color: var(--text2); font-weight: 500;
  pointer-events: none;
}

/* Toggles */
.toggle-group { display: flex; gap: 8px; }
.toggle-btn {
  flex: 1; padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.toggle-btn.active {
  background: rgba(var(--cyan-rgb), 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Slider */
.range-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  border-radius: 100px;
  background: var(--border);
  outline: none; cursor: pointer;
  margin: 12px 0;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
  box-shadow: 0 0 15px rgba(var(--cyan-rgb), 0.5);
  transition: transform 0.1s;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* Calculate button */
.calc-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem;
  padding: 18px; border-radius: 16px;
  border: none; cursor: pointer;
  margin-top: 16px;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(var(--cyan-rgb), 0.3);
}
.calc-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(var(--cyan-rgb), 0.4); }

/* â”€â”€ RESULT PANEL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#results-panel {
  display: none;
  margin-top: 48px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
#results-panel.visible { display: block; }

@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.result-main {
  background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.08), rgba(var(--blue-rgb), 0.08));
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  position: relative; overflow: hidden;
}

/* Water Ring */
.water-ring-wrap { position: relative; width: 180px; height: 180px; margin: 0 auto 32px; }
.ring-svg { width: 180px; height: 180px; transform: rotate(-90deg); }
.ring-bg { stroke: var(--border); }
.ring-fill {
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-amount {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.ring-unit { font-size: 0.8rem; color: var(--text2); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.result-disclaimer { display: block; max-width: 160px; margin-top: 8px; color: var(--text2); font-size: 0.68rem; line-height: 1.35; text-transform: none; letter-spacing: 0; }

.result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin-top: 32px;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
}
.result-card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.result-card-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--cyan); }
.result-card-label { font-size: 0.7rem; color: var(--text2); text-transform: uppercase; margin-top: 4px; }

/* â”€â”€ CONTENT SECTIONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--cyan); }

.card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--text2); font-size: 0.95rem; line-height: 1.6; }

/* â”€â”€ FAQ â”€â”€ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__question {
  width: 100%; padding: 24px 0;
  background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text); font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600; text-align: left;
  cursor: pointer;
}
.faq-item__icon { transition: transform 0.3s; color: var(--cyan); }
.faq-item.open .faq-item__icon { transform: rotate(180deg); }
.faq-item__answer {
  max-height: 0; overflow: hidden;
  transition: all 0.3s cubic-bezier(0, 1, 0, 1);
  color: var(--text2); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-item__answer { max-height: 1000px; padding-bottom: 24px; transition: all 0.3s cubic-bezier(1, 0, 1, 0); }

/* â”€â”€ FOOTER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 32px; text-align: center;
}
.footer-logo { font-size: 1.1rem; margin-bottom: 16px; display: block; }
footer p { color: var(--text2); font-size: 0.85rem; max-width: 600px; margin: 0 auto 24px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 24px; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 0.8rem; }
.footer-links a:hover { color: var(--cyan); }

/* â”€â”€ UTILITIES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.trust-badge {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.trust-badge p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
}
.trust-badge .disclaimer {
  font-size: 0.7rem;
  margin-top: 8px;
  opacity: 0.7;
}

.btn-glow {
  box-shadow: 0 0 30px var(--cyan);
  background: #fff;
  transition: all 0.1s;
}

.bar-pulse {
  filter: brightness(1.5);
  box-shadow: 0 0 25px var(--cyan);
}

.reward-pop {
  animation: rewardPop 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

@keyframes rewardPop {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.streak-card {
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(10px);
}
.streak-info { display: flex; align-items: center; gap: 12px; }
.streak-icon { font-size: 1.5rem; }
.streak-count { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--cyan); display: block; line-height: 1; }
.streak-label { font-size: 0.65rem; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; }
.streak-btn {
  padding: 10px 18px;
  background: rgba(var(--cyan-rgb), 0.1);
  border: 1px solid var(--cyan);
  border-radius: 12px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.streak-btn:hover:not(:disabled) { background: var(--cyan); color: #000; }
.streak-btn:disabled { opacity: 0.5; cursor: default; border-color: var(--border); color: var(--text2); background: transparent; }

@media (max-width: 600px) {
  .streak-card { flex-direction: column; text-align: center; }
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
#challenge-day {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
}
.challenge-dots { display: flex; gap: 6px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}
.dot.completed { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot.missed { background: #ff4444; }
.dot.current { border: 2px solid var(--cyan); background: transparent; }




.schedule-check:disabled { opacity: 0.3; cursor: not-allowed; }


.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: var(--card);
  border: 1px solid var(--cyan);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
}
.modal-icon { font-size: 3rem; margin-bottom: 20px; }
.modal-card h2 { font-size: 1.5rem; margin-bottom: 16px; line-height: 1.2; }
.modal-card p { color: var(--text2); margin-bottom: 24px; font-size: 0.95rem; }
.modal-details {
  background: rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.85rem;
}


.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1) !important;
}


.print-disclaimer { display: none; }


.schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
}
.schedule-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.schedule-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s;
}
.schedule-row.completed { opacity: 0.5; background: rgba(0, 229, 255, 0.05); }
.schedule-check {
  width: 20px; height: 20px;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
  position: relative;
}
.schedule-check:checked { background: var(--cyan); }
.schedule-check:checked::after {
  content: 'âœ”';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 12px;
}
.row-time { font-weight: 700; min-width: 60px; }
.row-amount { color: var(--text2); font-size: 0.9rem; }

.welcome-banner {
  background: var(--cyan);
  color: #000;
  padding: 16px 24px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  animation: slideDown 0.5s ease-out;
}
.welcome-content strong { display: block; font-size: 1.1rem; }
.welcome-content span { font-size: 0.9rem; opacity: 0.8; }
.welcome-banner button {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tracker-actions { display: flex; gap: 10px; margin-bottom: 24px; }
.tracker-btn-share {
  background: var(--border);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  width: 56px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.tracker-btn-share:hover { background: rgba(0, 229, 255, 0.1); }

.glass-steps {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 12px;
  font-weight: 600;
  text-align: left;
}

.print-btn {
  background: transparent;
  border: 1px dashed var(--text2);
  color: var(--text2);
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 16px;
}
.print-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.identity-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--border);
  color: var(--cyan);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid var(--cyan);
}
.tracker-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
#tracker-total { font-size: 0.8rem; color: var(--text); font-weight: 600; }

.tracker-card {
  margin-top: 32px;
  padding: 32px;
  background: var(--surface-solid);
  border: 1px solid var(--cyan);
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
  text-align: center;
}
.share-nudge {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--cyan);
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  animation: slideIn 0.4s ease-out;
}
.share-nudge.visible { display: flex; }
.share-nudge p { font-size: 0.9rem; font-weight: 600; margin: 0; color: var(--cyan); }
.share-nudge button {
  background: var(--cyan);
  color: #000;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

@keyframes slideIn {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.quick-taps {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.tap-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 10px;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tap-btn:hover { background: rgba(0, 229, 255, 0.05); border-color: var(--cyan); }
.tap-btn strong { font-size: 0.9rem; display: block; }
.tap-btn span { font-size: 0.7rem; opacity: 0.6; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 0.75rem;
  opacity: 0.7;
}

.reminder-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(0, 229, 255, 0.3);
  padding: 20px;
  border-radius: 16px;
  margin-top: 24px;
  text-align: center;
}
.reminder-card h4 { margin-bottom: 12px; font-size: 1rem; color: var(--cyan); }
.reminder-input-wrap { display: flex; gap: 8px; }
.reminder-input-wrap input {
  flex: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
}
.reminder-input-wrap button {
  background: var(--cyan);
  color: #000;
  border: none;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}
#tracker-percentage {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
#tracker-remaining {
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 6px;
}
.progress-container {
  width: 100%;
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  width: 0%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px var(--cyan);
}
.tracker-feedback {
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 24px;
  font-weight: 500;
}
.tracker-btn-plus {
  width: 100%;
  padding: 16px;
  background: var(--cyan);
  color: #000;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tracker-btn-plus:active { transform: scale(0.98); }
.plus-icon {
  font-size: 2rem;
  font-weight: 700;
}
.plus-text { text-align: left; line-height: 1.2; }
.plus-text strong { display: block; font-size: 1.1rem; }
.plus-text span { font-size: 0.8rem; opacity: 0.8; }

.tracker-reward {
  margin-top: 16px;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cyan);
  min-height: 1.5em;
}

.social-proof {
  margin-top: 40px;
  padding: 12px 24px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.social-proof p {
  font-size: 0.85rem;
  color: var(--text2);
  letter-spacing: 0.3px;
  line-height: 1.5;
  opacity: 0.8;
}

.next-step-card {
  margin-top: 40px;
  padding: 24px;
  background: rgba(var(--cyan-rgb), 0.05);
  border: 1px dashed var(--cyan);
  border-radius: 20px;
  text-align: center;
}
.next-step-text {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text2);
}

#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  z-index: 200; width: 0; transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--cyan);
}

#toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 500;
  background: var(--surface-solid);
  border: 1px solid var(--cyan);
  border-radius: 12px; padding: 14px 24px;
  font-size: 0.9rem; font-weight: 500; color: var(--cyan);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }

/* Calculator trust, accessibility, and result utility panels */
.calc-trust-line,
.calc-help,
.field-help {
  color: var(--text2);
  font-size: 0.86rem;
  line-height: 1.5;
}
.calc-trust-line {
  max-width: 620px;
  margin: -18px auto 28px;
  text-align: center;
}
.field-help { display: block; margin-top: 8px; }
.form-error {
  min-height: 22px;
  margin-top: 12px;
  color: #ffb4a8;
  font-size: 0.9rem;
  text-align: center;
}
.field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #ffb4a8;
  font-size: 0.78rem;
}
.input-error {
  border-color: #ff8a7a !important;
  box-shadow: 0 0 0 3px rgba(255, 138, 122, 0.16) !important;
}
.safe-range {
  color: var(--text);
  font-weight: 600;
  margin: -12px auto 18px;
}
.result-alert {
  display: none;
  max-width: 680px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 196, 87, 0.35);
  border-radius: 14px;
  background: rgba(255, 196, 87, 0.08);
  color: #ffd88a;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}
.result-alert.visible { display: block; }
.result-unit-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 8px;
  flex-wrap: wrap;
}
.result-breakdown,
.result-interpretation,
.tips-panel,
.schedule-timeline,
.calculator-method-panel {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}
.result-breakdown h3,
.result-interpretation h3,
.tips-panel h3,
.schedule-timeline h3,
.calculator-method-panel h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--text);
}
.result-interpretation p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.result-interpretation p:last-child { margin-bottom: 0; }
#breakdown-list,
#tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
#breakdown-list li,
#tips-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.5;
}
#breakdown-list strong { color: var(--text); font-weight: 600; }
#tips-list li { justify-content: flex-start; }
.result-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.result-actions button {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--cyan-rgb), 0.07);
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
}
.result-actions button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.method-grid p {
  margin: 0;
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.55;
}
.calculator-method-panel { margin-top: 32px; }

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  nav,
  footer,
  #bg-canvas,
  .drop,
  .hero,
  #how,
  #science,
  #faq,
  .result-actions,
  .result-unit-switch,
  .tracker-card,
  .welcome-banner,
  .streak-card,
  .calculator-method-panel {
    display: none !important;
  }
  #calculator,
  #results-panel,
  .result-main,
  .result-breakdown,
  .schedule-timeline,
  .tips-panel {
    display: block !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 0 18px !important;
    background: #fff !important;
    color: #000 !important;
    border-color: #bbb !important;
    box-shadow: none !important;
  }
  .ring-amount,
  .result-card-val,
  h1,
  h2,
  h3,
  strong {
    color: #000 !important;
  }
  .result-card,
  .schedule-row {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
}

@media (max-width: 768px) {
  nav { padding: 16px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-solid);
    box-shadow: var(--shadow-card);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  h1 { font-size: 3rem; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .calc-card { padding: 24px; }
}

