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

:root {
  --bg: #f8fafb;
  --bg2: #ffffff;
  --bg3: #f1f5f9;
  --text: #1e293b;
  --text2: #64748b;
  --text3: #94a3b8;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent2: #14b8a6;
  --accent-light: #ccfbf1;
  --accent-glow: rgba(13,148,136,0.15);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
  --glass: rgba(255,255,255,0.75);
  --glass-border: rgba(255,255,255,0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.2s ease;
  --transition-slow: 0.4s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Category colors */
  --cat-energy: #14b8a6;
  --cat-healing: #f472b6;
  --cat-beauty: #a78bfa;
  --cat-hormones: #fb923c;
  --cat-bio: #38bdf8;
  --cat-mind: #facc15;
}

[data-theme="dark"] {
  --bg: #0c1222;
  --bg2: #162032;
  --bg3: #1c2a42;
  --text: #e8edf5;
  --text2: #8b9bc0;
  --text3: #5a6a8a;
  --border: #263350;
  --accent-light: #0d3d38;
  --accent-glow: rgba(13,148,136,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.5);
  --glass: rgba(22,32,50,0.9);
  --glass-border: rgba(38,51,80,0.6);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ===== PAGE TRANSITIONS ===== */
.page-transition {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
}
.page-transition.active {
  animation: pageWipe 0.5s cubic-bezier(.7,0,.3,1);
}
@keyframes pageWipe {
  0% { transform: scaleY(0); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  50.01% { transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

.page { display: none; }
.page.active { display: block; animation: pageFadeIn 0.35s cubic-bezier(.4,0,.2,1) both; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== NAV ===== */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 1.25rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.top-bar .logo {
  font-weight: 800; font-size: 1.15rem; color: var(--accent);
  display: flex; align-items: center; gap: 0.5rem;
  letter-spacing: -0.03em;
}
.logo-icon { font-size: 1.3rem; animation: logoPulse 3s ease-in-out infinite; }
.logo-img { width: 42px; height: 42px; border-radius: 8px; vertical-align: middle; margin-right: 4px; }
@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1) rotate(-5deg); }
}
.top-bar-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; transition: all 0.3s ease;
}
.theme-toggle:hover { background: var(--accent-light); transform: rotate(30deg) scale(1.05); }
.theme-toggle:active { transform: rotate(30deg) scale(0.95); }

.pro-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
  letter-spacing: 0.02em;
}
.pro-badge:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg2) 85%, transparent);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
  display: flex; justify-content: space-around; align-items: center;
  height: 64px; padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: none; border: none; color: var(--text3); font-size: 0.62rem;
  font-weight: 600; cursor: pointer; padding: 0.5rem 0.75rem; transition: all 0.3s ease;
  font-family: var(--font); position: relative; letter-spacing: 0.02em;
}
.nav-item .nav-icon { font-size: 1.35rem; transition: transform 0.3s ease; }
.nav-item .nav-label { transition: color 0.3s ease; }
.nav-item.active { color: var(--accent); }
.nav-item.active .nav-icon { transform: translateY(-2px) scale(1.1); }
.nav-item:hover { color: var(--accent2); }
.nav-indicator {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 24px; height: 3px; border-radius: 2px;
  background: var(--accent); transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.nav-item.active .nav-indicator { transform: translateX(-50%) scaleX(1); }

/* More Menu */
.more-menu {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease;
}
.more-menu.open { pointer-events: all; opacity: 1; }
.more-menu-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.more-menu-panel {
  position: absolute; bottom: 64px; left: 0; right: 0;
  background: var(--bg2); border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 1.25rem;
  padding-top: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
}
.more-menu-panel::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.more-menu.open .more-menu-panel { transform: translateY(0); }
.more-menu-header {
  font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem;
  color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em;
}
.more-menu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
}
.more-menu-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.1rem 0.5rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg3); font-size: 0.72rem; font-weight: 600;
  color: var(--text); cursor: pointer; transition: all 0.25s cubic-bezier(.4,0,.2,1);
  font-family: var(--font); min-height: 88px;
}
.more-menu-item span { font-size: 1.6rem; }
.more-menu-item .more-item-desc { font-size: 0.6rem; color: var(--text3); font-weight: 400; text-align: center; line-height: 1.3; }
.more-menu-item:hover { background: var(--accent-light); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 4px 12px var(--accent-glow); }
.more-menu-item:active { transform: scale(0.97); }

/* ===== MAIN CONTENT ===== */
.app-container {
  padding: 76px 1rem 140px;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 1.9rem; font-weight: 800; margin-bottom: 0.3rem;
  letter-spacing: -0.04em; line-height: 1.15;
}
h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; margin-top: 1rem; letter-spacing: -0.01em; }
.subtitle { color: var(--text2); font-size: 0.88rem; margin-bottom: 1.5rem; font-weight: 400; line-height: 1.5; }

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 30%, #2dd4bf 60%, #a78bfa 100%);
  background-size: 200% 200%;
  animation: heroGradient 8s ease infinite;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  color: white;
  position: relative;
  overflow: hidden;
}
@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15), transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1), transparent 50%);
}
.hero-greeting { font-size: 1.5rem; font-weight: 800; position: relative; letter-spacing: -0.03em; }
.hero-date { font-size: 0.82rem; opacity: 0.85; position: relative; margin-top: 0.15rem; }
.hero-stats {
  display: flex; gap: 1.5rem; margin-top: 1rem; position: relative;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-size: 1.6rem; font-weight: 800; line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-stat-label { font-size: 0.65rem; opacity: 0.8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }

/* Floating particles */
.particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.15);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100%) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100%) rotate(360deg); opacity: 0; }
}

/* ===== CARDS ===== */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04); }

/* ===== DASHBOARD COMPONENTS ===== */
.empty-state-welcome {
  text-align: center;
  margin: 2rem 0;
}
.welcome-message {
  background: var(--accent-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.welcome-message h2 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Welcome Steps Cards */
.welcome-steps {
  margin-top: 1.5rem;
}
.welcome-steps h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.steps-cards {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}
.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 140px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.step-card:hover::before {
  transform: scaleX(1);
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}
.step-number {
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
}
.step-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.step-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.step-subtext {
  font-size: 0.7rem;
  color: var(--text3);
  font-weight: 500;
  line-height: 1.2;
}
.step-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* Mobile adjustments for welcome steps */
@media (max-width: 640px) {
  .steps-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    overflow: visible;
  }
  .step-arrow {
    display: none;
  }
  .step-card {
    min-width: auto;
  }
}

.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.dashboard-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

/* My Protocol Section */
.dashboard-protocol {
  margin-bottom: 1.5rem;
}
.dashboard-active-peptides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-peptide-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  position: relative;
  transition: all 0.3s ease;
}
.dashboard-peptide-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dpc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dpc-emoji {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-color, var(--accent));
  color: white;
  font-weight: bold;
}
.dpc-info {
  flex: 1;
}
.dpc-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.dpc-dose {
  font-size: 0.8rem;
  color: var(--text2);
}
.dpc-remove {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.dpc-remove:hover {
  background: var(--bg);
  color: var(--text);
}

.dpc-schedule {
  margin-bottom: 0.5rem;
}
.dpc-frequency {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 0.25rem;
}
.dpc-times {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.time-badge {
  background: var(--card-color, var(--accent));
  color: white;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  font-weight: 500;
}

.dpc-status {
  font-size: 0.8rem;
  font-weight: 500;
}
.dpc-status.active {
  color: var(--accent);
}
.dpc-status.inactive {
  color: var(--text3);
}

/* Today's Schedule */
.today-schedule {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
}
.today-schedule h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text);
}
.today-schedule-empty {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  color: var(--text2);
}

.today-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.timeline-slot {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.timeline-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
}
.timeline-icon {
  font-size: 1rem;
}
.timeline-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-item-card {
  background: var(--bg2);
  border-radius: var(--radius-xs);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.timeline-item-name {
  font-weight: 600;
  color: var(--text);
}
.timeline-item-dose {
  font-size: 0.8rem;
  color: var(--text2);
  margin-right: auto;
  margin-left: 0.5rem;
}
.timeline-item-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Peptide Picker Section */
.dashboard-peptide-filters {
  margin-bottom: 1.5rem;
}
.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.filter-pill {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}
.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.beginner-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.beginner-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.beginner-toggle input {
  margin: 0;
}

.dashboard-peptide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-peptide-option {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: all 0.3s ease;
}
.dashboard-peptide-option:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dpo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dpo-emoji {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-color, var(--accent));
  color: white;
}
.dpo-info {
  flex: 1;
}
.dpo-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.dpo-purpose {
  font-size: 0.8rem;
  color: var(--text2);
}

.dpo-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  font-weight: 500;
}
.badge.popular {
  background: #f59e0b;
  color: white;
}
.badge.beginner {
  background: #10b981;
  color: white;
}

.dpo-timing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text2);
}

.dpo-actions {
  display: flex;
  gap: 0.5rem;
}
.dpo-actions .btn {
  flex: 1;
}

.show-more-peptides {
  text-align: center;
}

/* Interactions Section */
.dashboard-interactions {
  margin-top: 1.5rem;
}
.interaction-empty,
.interaction-safe {
  text-align: center;
  padding: 2rem;
  color: var(--text2);
}
.safe-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.interaction-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.interaction-item {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 4px solid var(--border);
}
.interaction-item.synergy {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}
.interaction-item.caution {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}
.interaction-item.neutral {
  border-left-color: #6b7280;
  background: rgba(107, 114, 128, 0.05);
}

.interaction-peptides {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.peptide-name {
  font-size: 0.85rem;
}
.interaction-type {
  font-size: 1.2rem;
}
.interaction-description {
  font-size: 0.8rem;
  color: var(--text2);
}

.search-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  width: 200px;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

@media (max-width: 768px) {
  .dashboard-active-peptides {
    grid-template-columns: 1fr;
  }
  .dashboard-peptide-grid {
    grid-template-columns: 1fr;
  }
  .timeline-slot {
    flex-direction: column;
    gap: 0.5rem;
  }
  .timeline-time {
    min-width: auto;
  }
  .search-input {
    width: 100%;
    margin-top: 0.5rem;
  }
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.glass-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Card lift effect */
.card-lift { transition: all 0.3s cubic-bezier(.4,0,.2,1); }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.84rem; cursor: pointer;
  transition: all 0.25s cubic-bezier(.4,0,.2,1); border: none; font-family: var(--font);
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-outline {
  background: transparent; color: var(--accent); border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.76rem; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.7rem; border-radius: var(--radius-xs); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-danger:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-icon {
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Quick action buttons */
.quick-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem;
}
.quick-action {
  flex: 1; min-width: 90px; padding: 0.75rem 0.5rem; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  font-size: 0.7rem; font-weight: 600; color: var(--text2);
  cursor: pointer; transition: all 0.25s ease; font-family: var(--font);
}
.quick-action span { font-size: 1.3rem; }
.quick-action:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); transform: translateY(-2px); }
.quick-action:active { transform: scale(0.97); }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-accent { background: var(--accent-light); color: var(--accent); }
.badge-popular { background: #fef3c7; color: #d97706; }
.badge-beginner { background: #dbeafe; color: #2563eb; }
[data-theme="dark"] .badge-popular { background: #78350f; color: #fde68a; }
[data-theme="dark"] .badge-beginner { background: #1e3a5f; color: #93c5fd; }

/* ===== SEARCH & FILTERS ===== */
.search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0.7rem 1rem;
  margin-bottom: 1rem; transition: all 0.3s ease;
  position: relative;
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-bar input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 0.9rem; color: var(--text); font-family: var(--font);
}
.search-bar input::placeholder { color: var(--text3); }

/* Autocomplete */
.autocomplete-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); max-height: 250px; overflow-y: auto;
  display: none; margin-top: 4px;
}
.autocomplete-dropdown.show { display: block; }
.autocomplete-item {
  padding: 0.6rem 1rem; cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem; transition: background 0.15s;
}
.autocomplete-item:hover { background: var(--accent-light); }
.autocomplete-item .ac-cat { font-size: 0.7rem; color: var(--text3); }

.filter-pills {
  display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.filter-pill {
  padding: 0.4rem 0.85rem; border-radius: 20px; font-size: 0.73rem;
  font-weight: 600; cursor: pointer; border: 1.5px solid var(--border);
  background: var(--bg2); color: var(--text2); transition: all 0.25s ease;
  font-family: var(--font); white-space: nowrap;
}
.filter-pill.active { background: var(--accent); color: white; border-color: var(--accent); }
.filter-pill:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ===== PEPTIDE CARDS ===== */
.peptide-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 480px) { .peptide-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .peptide-grid { grid-template-columns: 1fr 1fr 1fr; } }

.peptide-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem;
  cursor: pointer; transition: all 0.35s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.peptide-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--card-color, var(--accent));
  transition: width 0.3s ease;
}
.peptide-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, var(--card-color, var(--accent)), transparent 70%);
  opacity: 0.04; transition: opacity 0.35s ease; pointer-events: none;
}
.peptide-card:hover {
  box-shadow: 0 8px 32px color-mix(in srgb, var(--card-color, var(--accent)) 25%, transparent),
              var(--shadow-xl);
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-color, var(--accent)) 30%, var(--border));
}
.peptide-card:hover::before { width: 6px; }
.peptide-card:hover::after { opacity: 0.08; }
.peptide-card:active { transform: translateY(-2px) scale(0.99); }
.peptide-card .pc-emoji {
  font-size: 2.4rem; line-height: 1; margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}
.peptide-card .pc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.peptide-card .pc-icon { font-size: 1.8rem; line-height: 1; }
.peptide-card .pc-name { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.peptide-card .pc-category-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.62rem; color: var(--card-color, var(--accent)); margin-top: 4px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem; border-radius: 20px;
  background: color-mix(in srgb, var(--card-color, var(--accent)) 10%, transparent);
}
.peptide-card .pc-category { font-size: 0.68rem; color: var(--text3); margin-top: 2px; font-weight: 500; }
.peptide-card .pc-purpose { font-size: 0.8rem; color: var(--text2); margin: 0.5rem 0 0.4rem; line-height: 1.5; }
.peptide-card .pc-badges { display: flex; gap: 0.3rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.peptide-card .pc-details { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.peptide-card .pc-tag {
  font-size: 0.65rem; padding: 0.2rem 0.55rem; border-radius: 12px;
  background: var(--bg3); color: var(--text2); font-weight: 600;
  border: 1px solid var(--border);
}
.peptide-card .pc-quick-info {
  display: flex; gap: 0.75rem; margin-top: 0.6rem; padding-top: 0.6rem;
  border-top: 1px solid var(--border); font-size: 0.7rem; color: var(--text3);
}
.peptide-card .pc-quick-info span { display: flex; align-items: center; gap: 0.2rem; }
/* Compare checkbox */
.compare-check {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--border); background: var(--bg2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; font-size: 0.7rem; color: transparent;
}
.compare-check.active { border-color: var(--accent); background: var(--accent); color: white; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px); z-index: 200; display: none;
  align-items: flex-end; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg2); border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto;
  padding: 1.5rem; animation: slideUp 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle {
  width: 40px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 0 auto 1rem;
}
.modal h2 { margin-bottom: 0.75rem; }
.modal .detail-row {
  display: flex; justify-content: space-between; padding: 0.6rem 0;
  border-bottom: 1px solid var(--border); font-size: 0.84rem;
}
.modal .detail-row .label { color: var(--text2); font-weight: 500; }
.modal .description {
  color: var(--text2); font-size: 0.9rem; margin: 1rem 0; line-height: 1.7;
  font-style: italic; padding: 1rem; background: var(--bg3); border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

@media (min-width: 640px) {
  .modal { border-radius: var(--radius); margin: auto; max-height: 80vh; }
  .modal-overlay { align-items: center; }
  @keyframes slideUp { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
}

/* ===== DASHBOARD ===== */
.timeline { position: relative; padding-left: 2rem; margin: 1rem 0; }
.timeline::before {
  content: ''; position: absolute; left: 0.6rem; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent), var(--border));
}
.timeline-item { position: relative; padding: 0.75rem 0; }
.timeline-dot {
  position: absolute; left: -1.65rem; top: 1rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2.5px solid var(--bg2);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.timeline-time {
  font-size: 0.7rem; color: var(--text3); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.timeline-content { margin-top: 0.25rem; }
.timeline-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem; border-radius: var(--radius-sm);
  background: var(--bg3); font-size: 0.8rem; margin: 0.2rem 0.2rem 0.2rem 0;
  transition: all 0.2s ease; font-weight: 500;
}
.timeline-pill:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.timeline-pill .dose { color: var(--text2); font-size: 0.7rem; font-weight: 400; }

/* Streak */
.streak-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white; font-size: 0.75rem; font-weight: 700;
}

/* Adherence bar */
.adherence-bar { margin: 0.75rem 0; }
.adherence-track {
  height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden;
}
.adherence-fill {
  height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(.4,0,.2,1);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* Cycle indicator */
.cycle-bar { margin: 0.5rem 0; }
.cycle-bar-label { font-size: 0.73rem; color: var(--text2); margin-bottom: 0.25rem; display: flex; justify-content: space-between; font-weight: 500; }
.cycle-bar-track { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.cycle-bar-fill { height: 100%; border-radius: 3px; transition: width 0.8s cubic-bezier(.4,0,.2,1); }

/* Progress Ring */
.progress-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring-text {
  position: absolute; font-size: 0.72rem; font-weight: 700; color: var(--text);
}

/* Weekly dots */
.week-dots { display: flex; gap: 0.35rem; margin: 0.5rem 0; }
.week-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 0.6rem;
  font-weight: 700; color: var(--text3); background: var(--bg3);
  transition: all 0.3s ease;
}
.week-dot.active { color: white; transform: scale(1.05); }
.week-dot.today { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-glow); }

/* Animated counter */
.counter-animate { transition: all 0.5s ease; }

/* ===== SCHEDULE / CALENDAR ===== */
.calendar-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day-header {
  text-align: center; font-size: 0.68rem; font-weight: 700;
  color: var(--text3); padding: 0.5rem 0; text-transform: uppercase; letter-spacing: 0.04em;
}
.cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; position: relative; transition: all 0.2s ease;
  background: var(--bg2); border: 1.5px solid transparent;
}
.cal-day:hover { border-color: var(--accent); background: var(--accent-light); }
.cal-day.today {
  border-color: var(--accent); font-weight: 800;
  box-shadow: 0 0 0 2px var(--accent-glow);
  background: var(--accent-light);
}
.cal-day.other-month { opacity: 0.25; }
.cal-day.selected { background: var(--accent); color: white; }
.cal-day .cal-dots {
  display: flex; gap: 2px; margin-top: 2px; flex-wrap: wrap; justify-content: center;
}
.cal-dot { width: 5px; height: 5px; border-radius: 50%; }
.cal-day.off-cycle { background: repeating-linear-gradient(45deg, transparent, transparent 3px, var(--bg3) 3px, var(--bg3) 6px); opacity: 0.5; }

/* Day detail panel */
.day-detail {
  background: var(--bg3); border-radius: var(--radius-sm);
  padding: 1rem; margin-top: 1rem; animation: pageFadeIn 0.3s ease;
}

/* Date picker */
.date-picker-row { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; }
.date-picker-row input[type="date"] {
  padding: 0.5rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg2); color: var(--text); font-family: var(--font); font-size: 0.85rem;
}

/* Conflict banner */
.conflict-banner {
  background: linear-gradient(135deg, #fef3c7, #fef9c3); border: 1px solid #f59e0b;
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.82rem;
  color: #92400e; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
[data-theme="dark"] .conflict-banner { background: linear-gradient(135deg, #78350f, #713f12); color: #fde68a; border-color: #b45309; }

/* What's Next section */
.whats-next-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}
.whats-next-item:last-child { border-bottom: none; }
.whats-next-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

/* ===== TRACKER ===== */
.tracker-section { margin-bottom: 1.25rem; }
.tracker-section h3 { display: flex; align-items: center; gap: 0.5rem; margin-top: 0; }

/* Custom sliders */
.slider-group { margin: 0.85rem 0; }
.slider-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; margin-bottom: 0.5rem; font-weight: 500;
}
.slider-label .value { font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.slider-emoji { font-size: 1.2rem; margin-left: 0.5rem; transition: transform 0.3s ease; }
.slider-track {
  position: relative; height: 8px; background: var(--bg3);
  border-radius: 4px; cursor: pointer;
}
.slider-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: 4px; transition: width 0.1s ease;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.slider-thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: white; border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(13,148,136,0.3);
  cursor: grab; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.slider-thumb:hover { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 4px 12px rgba(13,148,136,0.4); }
.slider-thumb:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.2); }
/* Fallback for actual range inputs */
input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 8px;
  border-radius: 4px; background: var(--bg3); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px;
  border-radius: 50%; background: white; border: 3px solid var(--accent);
  cursor: pointer; box-shadow: 0 2px 8px rgba(13,148,136,0.3);
  transition: all 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* Check items with animation */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.check-item {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.75rem; border-radius: var(--radius-sm);
  background: var(--bg3); font-size: 0.78rem; cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1); border: 1.5px solid transparent;
  user-select: none; font-weight: 500;
}
.check-item.checked {
  background: var(--accent-light); border-color: var(--accent); color: var(--accent);
  transform: scale(1.02);
}
.check-item.checked::after {
  content: '✓'; font-weight: 800; margin-left: 0.2rem;
  animation: checkPop 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes checkPop {
  0% { transform: scale(0); } 50% { transform: scale(1.4); } 100% { transform: scale(1); }
}
.check-item input { display: none; }

/* Historical nav */
.history-nav {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: 1rem;
}
.history-nav .date-display { font-weight: 700; font-size: 0.9rem; min-width: 160px; text-align: center; }

/* Sparkline */
.sparkline { display: flex; align-items: flex-end; gap: 1px; height: 40px; }
.sparkline-bar {
  flex: 1; border-radius: 2px 2px 0 0; min-height: 2px;
  background: var(--accent); opacity: 0.6;
  transition: height 0.3s ease, opacity 0.2s;
}
.sparkline-bar:hover { opacity: 1; }

textarea {
  width: 100%; min-height: 80px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); padding: 0.75rem;
  font-family: var(--font); font-size: 0.85rem; resize: vertical;
  background: var(--bg2); color: var(--text); outline: none;
  transition: all 0.3s ease;
}
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* Chart */
.chart-container {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; margin: 1rem 0;
  overflow-x: auto;
}
.mini-chart { height: 160px; display: flex; align-items: flex-end; gap: 3px; }
.chart-bar-group { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 18px; }
.chart-bar {
  width: 100%; border-radius: 3px 3px 0 0; min-height: 2px;
  transition: height 0.5s cubic-bezier(.4,0,.2,1);
}
.chart-label { font-size: 0.55rem; color: var(--text3); margin-top: 4px; writing-mode: vertical-rl; text-orientation: mixed; height: 24px; overflow: hidden; }

/* Weekly summary */
.weekly-summary {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.weekly-summary-stat {
  text-align: center; padding: 0.75rem;
  background: var(--bg3); border-radius: var(--radius-sm);
}
.weekly-summary-stat .ws-value { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.weekly-summary-stat .ws-label { font-size: 0.68rem; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ===== LEARN ===== */
.learn-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 0.75rem; cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.learn-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.learn-card-cover {
  height: 80px; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; position: relative; overflow: hidden;
}
.learn-card-body { padding: 0.85rem 1rem; }
.learn-card-title { font-weight: 700; font-size: 0.92rem; letter-spacing: -0.01em; }
.learn-card-meta {
  display: flex; align-items: center; gap: 0.75rem; margin-top: 0.35rem;
  font-size: 0.7rem; color: var(--text3); font-weight: 500;
}

.learn-content { line-height: 1.8; }
.learn-content h3 { margin-top: 1.5rem; color: var(--accent); }
.learn-content ul, .learn-content ol { padding-left: 1.25rem; margin: 0.5rem 0; }
.learn-content li { margin: 0.3rem 0; }
.learn-content .cycle-block {
  background: var(--bg3); border-radius: var(--radius-sm);
  padding: 1rem; margin: 0.75rem 0;
}
.learn-content .cycle-block h4 { margin-bottom: 0.25rem; }
.learn-content p { margin: 0.5rem 0; }

/* Reading progress */
.reading-progress {
  position: fixed; top: 60px; left: 0; right: 0; height: 3px;
  background: var(--bg3); z-index: 99;
}
.reading-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%; transition: width 0.1s ease;
}

/* TOC */
.learn-toc {
  position: sticky; top: 76px; padding: 1rem;
  background: var(--bg3); border-radius: var(--radius-sm);
  margin-bottom: 1rem; max-height: 300px; overflow-y: auto;
}
.learn-toc-title { font-weight: 700; font-size: 0.78rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.learn-toc a {
  display: block; padding: 0.3rem 0; font-size: 0.82rem; color: var(--text2);
  text-decoration: none; transition: color 0.2s;
}
.learn-toc a:hover { color: var(--accent); }

/* Bookmark button */
.bookmark-btn {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem; cursor: pointer; font-size: 0.78rem;
  color: var(--text2); transition: all 0.2s ease; font-family: var(--font); font-weight: 600;
}
.bookmark-btn.bookmarked { background: #fef3c7; border-color: #f59e0b; color: #d97706; }
[data-theme="dark"] .bookmark-btn.bookmarked { background: #78350f; border-color: #b45309; color: #fde68a; }

/* ===== DISCLAIMER ===== */
.disclaimer {
  background: linear-gradient(135deg, var(--accent-light), rgba(167,139,250,0.1));
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 0.65rem 1rem;
  font-size: 0.76rem; color: var(--accent); text-align: center;
  margin-bottom: 1.25rem; font-weight: 600;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 3.5rem 1.5rem; color: var(--text3);
  background: var(--bg3); border-radius: var(--radius); border: 2px dashed var(--border);
}
.empty-state .empty-icon {
  font-size: 4rem; margin-bottom: 1rem;
  animation: emptyBounce 2s ease-in-out infinite;
}
@keyframes emptyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.empty-state h3 { color: var(--text2); font-size: 1.1rem; margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 1.25rem; font-size: 0.88rem; line-height: 1.6; max-width: 320px; margin-left: auto; margin-right: auto; }

/* ===== DASHBOARD ENHANCED ===== */
.dash-active-peptides {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.65rem;
  margin-top: 0.75rem;
}
.dash-peptide-card {
  padding: 0.85rem; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--bg2); border: 1px solid var(--border);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  text-align: center; position: relative; overflow: hidden;
}
.dash-peptide-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, var(--card-color, var(--accent)), transparent 70%);
  opacity: 0.06;
}
.dash-peptide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--card-color, var(--accent)); }
.dash-peptide-card .dp-emoji { font-size: 1.8rem; margin-bottom: 0.3rem; }
.dash-peptide-card .dp-name { font-size: 0.76rem; font-weight: 700; color: var(--text); }
.dash-peptide-card .dp-status { font-size: 0.62rem; color: var(--text3); margin-top: 0.15rem; }

.dash-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; margin-top: 0.75rem;
}
.dash-stat-card {
  padding: 1rem; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-align: center;
}
.dash-stat-card .ds-value { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.dash-stat-card .ds-label { font-size: 0.65rem; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

.dash-adherence-chart {
  display: flex; align-items: flex-end; gap: 4px; height: 80px; margin-top: 0.75rem;
  padding: 0.5rem 0;
}
.dash-adherence-bar {
  flex: 1; border-radius: 4px 4px 0 0; min-height: 4px;
  background: var(--accent); opacity: 0.7;
  transition: height 0.5s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.dash-adherence-bar:hover { opacity: 1; }
.dash-adherence-bar.today { opacity: 1; box-shadow: 0 0 8px var(--accent-glow); }
.dash-adherence-labels {
  display: flex; gap: 4px; margin-top: 0.25rem;
}
.dash-adherence-labels span {
  flex: 1; text-align: center; font-size: 0.58rem; color: var(--text3); font-weight: 600;
}

.dash-streak {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white; font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.dash-streak .streak-num { font-size: 1.2rem; }

/* Ambient background gradient */
.app-container::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 50vh;
  background: radial-gradient(ellipse at 30% 0%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%),
              radial-gradient(ellipse at 70% 10%, color-mix(in srgb, var(--cat-beauty) 4%, transparent), transparent 50%);
  pointer-events: none; z-index: -1;
}

/* ===== CALCULATOR ===== */
.calc-input-group { margin-bottom: 1rem; }
.calc-input-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 0.35rem; color: var(--text2);
}
.calc-input-group input, .calc-input-group select, .calc-input, .calc-select {
  width: 100%; padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg2); color: var(--text);
  font-family: var(--font); font-size: 0.9rem; outline: none;
  transition: all 0.3s ease;
}
.calc-input-group input:focus, .calc-input-group select:focus, .calc-input:focus, .calc-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Generic calc grid for forms */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.calc-field {
  display: flex;
  flex-direction: column;
}
.calc-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.35rem;
}
.calc-result {
  text-align: center; padding: 1.5rem;
  background: linear-gradient(135deg, var(--accent-light), rgba(167,139,250,0.1));
  border-radius: var(--radius); margin-top: 1rem;
}
.calc-result-value { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.calc-result-label { font-size: 0.82rem; color: var(--text2); font-weight: 600; }

/* Syringe illustration */
.syringe-visual {
  width: 60px; height: 200px; margin: 1rem auto;
  background: var(--bg3); border: 2px solid var(--border);
  border-radius: 4px 4px 30px 30px; position: relative; overflow: hidden;
}
.syringe-fill {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, var(--accent), var(--accent2));
  transition: height 0.5s ease; border-radius: 0 0 28px 28px;
}
.syringe-marks {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: space-between; padding: 8px 0;
}
.syringe-mark {
  height: 1px; background: var(--border); position: relative;
}
.syringe-mark-label {
  position: absolute; right: -32px; top: -6px;
  font-size: 0.55rem; color: var(--text3); font-weight: 600;
}
.syringe-plunger {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 30px; background: var(--text3); border-radius: 4px;
}
.syringe-needle {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 20px; background: var(--text3);
}

/* ===== STACK BUILDER ===== */
.stack-workspace {
  min-height: 120px; border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 1rem;
  transition: all 0.3s ease; margin-bottom: 1rem;
}
.stack-workspace.drag-over { border-color: var(--accent); background: var(--accent-light); }
.stack-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem; border-radius: var(--radius-sm);
  background: var(--bg3); font-size: 0.82rem; font-weight: 600;
  margin: 0.2rem; cursor: grab; transition: all 0.2s ease;
  border: 1px solid var(--border);
}
.stack-item:hover { border-color: var(--accent); }
.stack-item .remove-stack-item {
  cursor: pointer; opacity: 0.5; transition: opacity 0.2s;
  font-size: 0.7rem;
}
.stack-item .remove-stack-item:hover { opacity: 1; }
.stack-schedule {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1rem;
}
.stack-time-slot {
  padding: 0.75rem; background: var(--bg3); border-radius: var(--radius-sm);
  text-align: center;
}
.stack-time-slot .slot-label {
  font-size: 0.68rem; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem;
}

/* Pre-built stacks */
.prebuilt-stack {
  padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg2); margin-bottom: 0.75rem; cursor: pointer;
  transition: all 0.3s ease;
}
.prebuilt-stack:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== INTERACTIONS ===== */
.interaction-result {
  padding: 1.25rem; border-radius: var(--radius); margin-top: 1rem;
  text-align: center; animation: pageFadeIn 0.3s ease;
}
.interaction-result.synergistic { background: #dcfce7; border: 1px solid #22c55e; color: #166534; }
.interaction-result.neutral { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.interaction-result.caution { background: #fef9c3; border: 1px solid #facc15; color: #854d0e; }
.interaction-result.avoid { background: #fef2f2; border: 1px solid #ef4444; color: #991b1b; }
[data-theme="dark"] .interaction-result.synergistic { background: #052e16; border-color: #22c55e; color: #86efac; }
[data-theme="dark"] .interaction-result.neutral { background: #052e16; border-color: #4ade80; color: #bbf7d0; }
[data-theme="dark"] .interaction-result.caution { background: #422006; border-color: #eab308; color: #fde68a; }
[data-theme="dark"] .interaction-result.avoid { background: #450a0a; border-color: #ef4444; color: #fca5a5; }

/* ===== INVENTORY ===== */
.inventory-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg2); margin-bottom: 0.75rem;
}
.vial-indicator {
  width: 36px; height: 60px; border-radius: 4px 4px 18px 18px;
  border: 2px solid var(--border); position: relative; overflow: hidden;
  background: var(--bg3);
}
.vial-fill {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--accent); border-radius: 0 0 16px 16px;
  transition: height 0.5s ease;
}
.inventory-info { flex: 1; }
.inventory-info .inv-name { font-weight: 700; font-size: 0.9rem; }
.inventory-info .inv-detail { font-size: 0.75rem; color: var(--text2); }
.inv-warning { font-size: 0.72rem; color: #d97706; font-weight: 600; margin-top: 0.25rem; }

/* ===== BODY MAP ===== */
.body-map-container {
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem;
}
.body-silhouette {
  position: relative; width: 200px; height: 400px;
}
.injection-site {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-light); border: 2px solid var(--accent);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: var(--accent);
  transition: all 0.3s ease;
}
.injection-site:hover { transform: scale(1.2); box-shadow: 0 0 12px var(--accent-glow); }
.injection-site.used { background: var(--accent); color: white; }
.injection-site.preferred { box-shadow: 0 0 0 3px #fbbf24; }

/* ===== PHOTOS ===== */
.photo-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.photo-item {
  aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg3); position: relative; cursor: pointer;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-date {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 0.5rem; color: white; font-size: 0.65rem; font-weight: 600;
}

/* Comparison slider */
.comparison-slider {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3/4; max-width: 400px; margin: 0 auto;
}
.comparison-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.comparison-handle {
  position: absolute; top: 0; bottom: 0; width: 4px;
  background: white; cursor: ew-resize; z-index: 10;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* ===== GLOSSARY ===== */
.glossary-item {
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
}
.glossary-term { font-weight: 700; font-size: 0.95rem; color: var(--accent); }
.glossary-def { font-size: 0.84rem; color: var(--text2); margin-top: 0.15rem; }
.glossary-example { font-size: 0.78rem; color: var(--text3); font-style: italic; margin-top: 0.15rem; }

/* ===== PROTOCOLS ===== */
.protocol-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 0.75rem; transition: all 0.3s ease;
}
.protocol-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.protocol-title { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.protocol-peptides {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0;
}
.protocol-peptide-tag {
  padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.7rem;
  font-weight: 600; background: var(--accent-light); color: var(--accent);
}
.protocol-detail { font-size: 0.82rem; color: var(--text2); margin: 0.5rem 0; }
.protocol-expect {
  background: var(--bg3); border-radius: var(--radius-sm);
  padding: 0.75rem; font-size: 0.82rem; margin: 0.5rem 0;
}

/* ===== COMPARISON TABLE ===== */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.78rem; margin: 1rem 0;
}
.compare-table th {
  padding: 0.6rem; background: var(--bg3); font-weight: 700;
  text-align: left; border-bottom: 2px solid var(--border);
  position: sticky; top: 0;
}
.compare-table td {
  padding: 0.6rem; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table tr:hover td { background: var(--accent-light); }

/* ===== CONFETTI ===== */
#confetti-canvas {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
}

/* ===== SELECT DROPDOWNS ===== */
.select-wrapper {
  position: relative;
}
.custom-select {
  width: 100%; padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg2); color: var(--text);
  font-family: var(--font); font-size: 0.9rem; outline: none;
  transition: all 0.3s ease; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.custom-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .app-container { padding: 76px 2rem 84px; }
  .hero-stats { gap: 2.5rem; }
  .quick-actions { flex-wrap: nowrap; }
  
  /* Desktop search overlay */
  .search-overlay {
    padding-top: 100px;
  }
  .search-overlay-content {
    max-width: 700px;
  }
  
  /* Desktop journey timeline */
  .journey-summary {
    flex-direction: row;
  }
  .journey-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Desktop achievements */
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .peptide-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .peptide-card { padding: 1.15rem; }
  .dash-active-peptides { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  
  /* Mobile V2 features */
  .journey-summary {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .journey-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .fab-container {
    bottom: 100px;
    right: 16px;
  }
  .fab-main {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .fab-option {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .search-overlay {
    padding-top: 70px;
  }
  .search-overlay-content {
    margin: 0 0.5rem;
  }
  .reminder-times {
    grid-template-columns: 1fr;
  }
  .notification-banner-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 375px) {
  h1 { font-size: 1.5rem; }
  .hero-greeting { font-size: 1.3rem; }
  .hero-stats { gap: 1rem; }
  .more-menu-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .more-menu-item { padding: 0.75rem 0.25rem; font-size: 0.65rem; }
  
  /* Extra small mobile V2 features */
  .journey-big-number { font-size: 2.5rem; }
  .achievements-grid { gap: 0.5rem; }
  .achievement-item { padding: 0.5rem; }
  .fab-container { right: 12px; }
}

/* Touch targets & smooth scrolling */
@media (pointer: coarse) {
  .nav-item { min-height: 44px; min-width: 44px; }
  .filter-pill { min-height: 44px; display: inline-flex; align-items: center; }
  .btn { min-height: 44px; }
  .check-item { min-height: 44px; }
  .fab-option::after { display: none; } /* Hide tooltips on touch devices */
}
html { -webkit-overflow-scrolling: touch; }
body { overscroll-behavior-y: contain; }

/* PWA safe area adjustments */
.app-container {
  padding-top: max(76px, env(safe-area-inset-top) + 16px);
  padding-bottom: max(140px, env(safe-area-inset-bottom) + 80px);
}
.notification-banner {
  top: max(60px, env(safe-area-inset-top) + 60px);
}
.search-overlay {
  padding-top: max(80px, env(safe-area-inset-top) + 80px);
}

/* ===== UTILS ===== */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.72rem; }
.text-muted { color: var(--text2); }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.hidden { display: none !important; }
.shimmer-block { height: 16px; margin-bottom: 8px; }
.shimmer-block.w-75 { width: 75%; }
.shimmer-block.w-50 { width: 50%; }
.shimmer-block.h-lg { height: 120px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ===== PREMIUM V2 FEATURES ===== */

/* 1. Share My Stack */
.share-preview {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
}

/* 2. Global Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay-content {
  width: 100%;
  max-width: 600px;
  margin: 0 1rem;
  background: var(--bg2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  animation: searchSlideDown 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes searchSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-overlay-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.search-overlay .search-bar {
  margin-bottom: 0;
}
.search-overlay .search-bar button {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
}
.search-overlay .search-bar button:hover {
  background: var(--bg3);
  color: var(--text);
}
.search-results {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}
.search-category {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.search-category:last-child {
  border-bottom: none;
}
.search-category h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text2);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}
.search-result-item:hover {
  background: var(--accent-light);
}
.search-result-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.search-result-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.search-result-subtitle {
  font-size: 0.8rem;
  color: var(--text2);
  margin-top: 0.1rem;
}
.search-shortcut {
  padding: 2rem;
  text-align: center;
  color: var(--text3);
  font-size: 0.85rem;
}
.search-no-results {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text3);
}
.search-no-results span {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* 3. Journey Timeline */
.journey-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg3);
  border-radius: var(--radius-sm);
}
.journey-day-count {
  text-align: center;
}
.journey-big-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.journey-label {
  font-size: 0.8rem;
  color: var(--text2);
  font-weight: 600;
}
.journey-motivation {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.5;
}
.journey-milestones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.milestone {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.milestone.achieved {
  background: var(--accent-light);
  border: 1px solid var(--accent);
}
.milestone.upcoming {
  background: var(--bg3);
  border: 1px solid var(--border);
  opacity: 0.6;
}
.milestone-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.milestone.achieved .milestone-icon {
  animation: milestoneGlow 2s ease-in-out infinite;
}
@keyframes milestoneGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.milestone-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}
.milestone-text span {
  font-size: 0.8rem;
  color: var(--text2);
}
.journey-stats h4 {
  margin-bottom: 0.75rem;
  color: var(--text2);
}
.journey-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.journey-stat {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg3);
  border-radius: var(--radius-sm);
}
.journey-stat .stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.journey-stat .stat-label {
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 4. Floating Action Button */
.fab-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 1000;
}
.fab-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: -1;
}
.fab-container.active .fab-backdrop {
  opacity: 1;
  visibility: visible;
}
.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: white;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(13,148,136,0.4);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  z-index: 10;
}
.fab-main:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(13,148,136,0.5);
}
.fab-container.active .fab-main {
  transform: rotate(45deg);
  background: #ef4444;
}
.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  transform-origin: bottom right;
}
.fab-container.active .fab-menu {
  transform: scale(1);
  opacity: 1;
}
.fab-option {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  position: relative;
}
.fab-option:hover {
  transform: scale(1.1);
  background: var(--accent-light);
  color: var(--accent);
}
.fab-option::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}
.fab-option:hover::after {
  opacity: 1;
  visibility: visible;
}

/* 5. Achievement System */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.achievement-item.earned {
  background: var(--accent-light);
  border: 1px solid var(--accent);
}
.achievement-item.locked {
  background: var(--bg3);
  border: 1px solid var(--border);
  opacity: 0.6;
}
.achievement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.achievement-item.earned .achievement-icon {
  animation: achievementPulse 2s ease-in-out infinite;
}
@keyframes achievementPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); filter: brightness(1.1); }
}
.achievement-text {
  flex: 1;
}
.achievement-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}
.achievement-desc {
  font-size: 0.8rem;
  color: var(--text2);
}
.achievement-check {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}
.achievements-full-list {
  max-height: 400px;
  overflow-y: auto;
}

/* 6. Notification Features */
.notification-banner {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1rem;
  display: none;
  animation: slideDownBanner 0.3s ease;
}
@keyframes slideDownBanner {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.notification-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.notification-banner-content span {
  font-size: 1.5rem;
}
.notification-banner-content div {
  flex: 1;
}
.notification-banner-content strong {
  display: block;
  margin-bottom: 0.2rem;
}
.notification-banner-content p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}
.notification-banner-actions {
  display: flex;
  gap: 0.5rem;
}
.notification-banner-actions button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}
.notification-banner-actions button:hover {
  background: rgba(255,255,255,0.3);
}

/* Reminder Settings */
.notification-permission-card {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}
.reminder-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}
.reminder-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.reminder-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.reminder-times.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.reminder-time-setting label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.25rem;
}
.reminder-time-setting input[type="time"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font);
}
.reminder-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ===== PEPTI AI CHAT ===== */
.pepti-fab {
  position: fixed; bottom: 90px; right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; font-size: 24px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(13,148,136,0.4);
  z-index: 1000; transition: all 0.3s cubic-bezier(.4,0,.2,1);
  animation: pepti-pulse 2s infinite;
}
.pepti-fab:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 6px 30px rgba(13,148,136,0.5); }
.pepti-fab.hidden { transform: scale(0); opacity: 0; pointer-events: none; }
@keyframes pepti-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(13,148,136,0.4); }
  50% { box-shadow: 0 4px 30px rgba(13,148,136,0.6); }
}

.pepti-panel {
  position: fixed; bottom: 90px; right: 20px;
  width: 380px; height: 550px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl), 0 25px 60px rgba(0,0,0,0.15);
  z-index: 1001; display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.8) translateY(20px); opacity: 0;
  pointer-events: none; transition: all 0.3s cubic-bezier(.4,0,.2,1);
  transform-origin: bottom right;
}
.pepti-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.pepti-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
}
.pepti-header-info { display: flex; align-items: center; gap: 10px; }
.pepti-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2); display: flex; align-items: center;
  justify-content: center; font-size: 18px;
}
.pepti-name { font-weight: 700; font-size: 15px; }
.pepti-status { font-size: 11px; opacity: 0.85; }
.pepti-header-actions { display: flex; gap: 4px; }
.pepti-header-actions button {
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  font-size: 14px; transition: all 0.2s;
}
.pepti-header-actions button:hover { background: rgba(255,255,255,0.25); }

.pepti-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}

.pepti-welcome { text-align: center; padding: 30px 10px; }
.pepti-welcome-icon { font-size: 48px; margin-bottom: 12px; }
.pepti-welcome h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.pepti-welcome p { color: var(--text2); font-size: 13px; line-height: 1.5; }
.pepti-disclaimer {
  margin-top: 10px; padding: 8px 12px; background: var(--bg3);
  border-radius: 8px; font-size: 11px; color: var(--text3);
}
.pepti-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px;
}
.pepti-suggestions button {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 12px; font-size: 12px; color: var(--text2); cursor: pointer;
  transition: all 0.2s; font-family: var(--font);
}
.pepti-suggestions button:hover {
  background: var(--accent-light); border-color: var(--accent); color: var(--accent);
}

.pepti-msg { display: flex; gap: 8px; max-width: 90%; animation: msgIn 0.2s ease; }
.pepti-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.pepti-msg-assistant { align-self: flex-start; }
.pepti-msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  flex-shrink: 0;
}
.pepti-msg-content {
  padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.6;
  word-break: break-word;
}
.pepti-msg-user .pepti-msg-content {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; border-bottom-right-radius: 4px;
}
.pepti-msg-assistant .pepti-msg-content {
  background: var(--bg3); color: var(--text); border-bottom-left-radius: 4px;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--text3);
  animation: typingBounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.pepti-input-area {
  display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border); background: var(--bg2);
}
.pepti-input-area textarea {
  flex: 1; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 13px; resize: none; outline: none;
  background: var(--bg); color: var(--text); font-family: var(--font);
  max-height: 120px; line-height: 1.4; min-height: auto;
}
.pepti-input-area textarea:focus { border-color: var(--accent); }
.pepti-send {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: all 0.2s;
}
.pepti-send:hover { transform: scale(1.05); }
.pepti-send:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
  .pepti-panel {
    bottom: 0; right: 0; left: 0; top: 0;
    width: 100%; height: 100%; border-radius: 0;
    transform-origin: bottom center;
  }
  .pepti-fab { bottom: 80px; right: 16px; }
}

/* ===== PEPTIDE DETAIL MODAL ===== */
.detail-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.detail-overlay.active { opacity: 1; }
.detail-overlay.closing { opacity: 0; }

.detail-modal {
  width: 100%; max-width: 640px; max-height: 95vh;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.32,.72,.24,1.02);
}
.detail-overlay.active .detail-modal {
  transform: translateY(0);
}
.detail-overlay.closing .detail-modal {
  transform: translateY(100%);
}

@media (min-width: 640px) {
  .detail-overlay { align-items: center; }
  .detail-modal {
    border-radius: 24px;
    max-height: 90vh;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }
  .detail-overlay.active .detail-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  .detail-overlay.closing .detail-modal {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }
}

.detail-header {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}
.detail-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15), transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1), transparent 50%);
}
.detail-header-content { position: relative; z-index: 1; }
.detail-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.detail-close:hover { background: rgba(255,255,255,0.35); transform: scale(1.1); }
.detail-emoji { font-size: 3rem; margin-bottom: 0.5rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }
.detail-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.detail-category { font-size: 0.82rem; opacity: 0.9; margin-top: 0.35rem; font-weight: 500; }
.detail-purpose-badge {
  display: inline-block; margin-top: 0.6rem;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em;
}

.detail-body {
  flex: 1; overflow-y: auto; padding: 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.detail-quote {
  font-style: italic; color: var(--text2);
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.92rem; line-height: 1.7;
}
.detail-section {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.detail-section:hover { box-shadow: var(--shadow); }
.detail-section-header {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1rem; margin-bottom: 0.85rem;
  color: var(--text); letter-spacing: -0.01em;
}
.detail-section-icon { font-size: 1.2rem; }
.detail-text {
  font-size: 0.88rem; line-height: 1.8; color: var(--text2);
}
.detail-list {
  list-style: none; padding: 0;
}
.detail-list li {
  position: relative; padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.86rem; color: var(--text2); line-height: 1.6;
}
.detail-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent);
  font-weight: 700; font-size: 0.8rem;
}
.detail-list-warning li::before {
  content: '•'; color: #f59e0b;
}

.detail-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.detail-info-item {
  background: var(--bg3); border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}
.detail-info-label {
  display: block; font-size: 0.68rem; font-weight: 700;
  color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}
.detail-info-value {
  font-size: 0.88rem; font-weight: 600; color: var(--text);
}

.detail-route {
  margin-top: 0.75rem; padding: 0.6rem 0.85rem;
  background: var(--accent-light); border-radius: var(--radius-sm);
  font-size: 0.84rem; color: var(--accent);
}

.detail-cycle-badge {
  display: inline-block; padding: 0.5rem 1rem;
  background: var(--bg3); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.88rem; color: var(--text);
  border: 1px solid var(--border);
}

.detail-safety-note {
  margin-top: 0.85rem; padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #fef3c7, #fef9c3);
  border: 1px solid #f59e0b; border-radius: var(--radius-sm);
  font-size: 0.82rem; color: #92400e; line-height: 1.7;
}
[data-theme="dark"] .detail-safety-note {
  background: linear-gradient(135deg, #78350f, #713f12);
  color: #fde68a; border-color: #b45309;
}

.detail-video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1rem;
  background: var(--bg3); border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  text-align: center; color: var(--text3);
}
.detail-video-play {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.detail-actions {
  display: flex; gap: 0.5rem; margin-top: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
  position: sticky; bottom: 0;
  background: var(--bg); padding-bottom: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== ENHANCED DETAIL MODAL ===== */
.detail-hero {
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.1;
  filter: blur(40px);
}
.detail-description {
  color: var(--text2);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  line-height: 1.7;
  font-style: italic;
  padding: 1rem;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.detail-section {
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.3s ease both;
}
.detail-section:nth-child(3) { animation-delay: 0.05s; }
.detail-section:nth-child(4) { animation-delay: 0.1s; }
.detail-section:nth-child(5) { animation-delay: 0.15s; }
.detail-section:nth-child(6) { animation-delay: 0.2s; }
.detail-section:nth-child(7) { animation-delay: 0.25s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.detail-section-text {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.75;
}
.detail-benefits-list, .detail-side-effects {
  list-style: none;
  padding: 0;
}
.detail-benefits-list li, .detail-side-effects li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.84rem;
  color: var(--text2);
  line-height: 1.5;
}
.detail-benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}
.detail-side-effects li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-weight: 700;
}
.detail-dosing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (max-width: 480px) {
  .detail-dosing-grid { grid-template-columns: 1fr; }
}
.detail-dosing-item {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.detail-dosing-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.detail-dosing-item > span:last-child {
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 500;
}
.detail-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
}
.video-placeholder {
  background: var(--bg3);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder-inner {
  text-align: center;
  color: var(--text3);
}
.video-placeholder-inner span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.video-placeholder-inner p {
  font-size: 0.78rem;
  font-weight: 500;
}

/* ===== COMPARE FLOATING BAR ===== */
.compare-floating-bar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  animation: slideUp 0.3s ease;
}
.compare-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
}
.compare-bar-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
}
.compare-bar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  white-space: nowrap;
}

/* ===== SEARCH ENHANCEMENTS ===== */
.search-clear {
  cursor: pointer;
  color: var(--text3);
  font-size: 0.9rem;
  padding: 0.25rem;
  transition: color 0.2s;
}
.search-clear:hover { color: var(--text); }
.db-results-count {
  font-size: 0.76rem;
  color: var(--text3);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.goal-pill {
  font-size: 0.68rem !important;
}

/* ===== FAQ STYLES ===== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.faq-chevron {
  font-size: 1.2rem;
  color: var(--text3);
  transition: transform 0.3s ease;
  font-weight: 300;
}
.faq-item.open .faq-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(.4,0,.2,1), padding 0.35s;
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
  padding: 0 1.25rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1rem;
}

/* ===== LEARN CARD ENHANCED ===== */
.learn-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.learn-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.learn-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.92rem;
}
.learn-arrow {
  color: var(--text3);
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.learn-card:hover .learn-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ===== ENHANCED ANIMATIONS ===== */
.peptide-card {
  animation: cardFadeIn 0.4s cubic-bezier(.4,0,.2,1) both;
}
.peptide-card:nth-child(1) { animation-delay: 0s; }
.peptide-card:nth-child(2) { animation-delay: 0.04s; }
.peptide-card:nth-child(3) { animation-delay: 0.08s; }
.peptide-card:nth-child(4) { animation-delay: 0.12s; }
.peptide-card:nth-child(5) { animation-delay: 0.16s; }
.peptide-card:nth-child(6) { animation-delay: 0.2s; }
.peptide-card:nth-child(7) { animation-delay: 0.24s; }
.peptide-card:nth-child(8) { animation-delay: 0.28s; }
.peptide-card:nth-child(9) { animation-delay: 0.32s; }
.peptide-card:nth-child(10) { animation-delay: 0.36s; }
.peptide-card:nth-child(11) { animation-delay: 0.4s; }
.peptide-card:nth-child(12) { animation-delay: 0.44s; }
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.card-entrance {
  animation: cardFadeIn 0.4s cubic-bezier(.4,0,.2,1) both;
}

/* Page transition smoothness — handled above */

/* Enhanced hover micro-interactions */
.filter-pill { transition: all 0.25s cubic-bezier(.4,0,.2,1); }
.filter-pill:active { transform: scale(0.95); }
.learn-card { transition: all 0.3s cubic-bezier(.4,0,.2,1); }
.faq-item { transition: all 0.3s cubic-bezier(.4,0,.2,1); }

/* Smooth nav transitions */
.nav-item { transition: all 0.25s cubic-bezier(.4,0,.2,1); }
.nav-item:active .nav-icon { transform: scale(0.9); }

/* ==================== CALCULATOR ==================== */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.calc-field label { display: block; font-size: 0.8rem; color: var(--text3); margin-bottom: 0.25rem; font-weight: 500; }
.calc-input-wrap { display: flex; align-items: center; background: var(--bg2); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; }
.calc-input-wrap input { flex: 1; padding: 0.75rem; border: none; background: transparent; color: var(--text1); font-size: 1rem; outline: none; }
.calc-unit { padding: 0 0.75rem; color: var(--text3); font-size: 0.85rem; font-weight: 500; }
.calc-select { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--bg2); color: var(--text1); font-size: 0.9rem; }
.calc-input { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--bg2); color: var(--text1); font-size: 0.9rem; box-sizing: border-box; }
textarea.calc-input { resize: vertical; font-family: inherit; }
.calc-result-box { text-align: center; padding: 1.5rem; }
.calc-result-label { font-size: 0.9rem; color: var(--text3); margin-bottom: 0.5rem; }
.calc-result-value { font-size: 2.5rem; font-weight: 700; color: var(--accent); }
.calc-result-sub { font-size: 0.8rem; color: var(--text3); margin-top: 0.5rem; }
.calc-history-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.calc-history-item:last-child { border-bottom: none; }

/* Syringe Visual */
.calc-syringe { padding: 1rem 0; }
.syringe-body { position: relative; height: 40px; background: var(--bg2); border: 2px solid var(--border); border-radius: 20px; margin: 1.5rem 0.5rem; overflow: visible; }
.syringe-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #38bdf8); border-radius: 18px; transition: width 0.5s ease; }
.syringe-marker { position: absolute; top: -8px; transform: translateX(-50%); }
.syringe-marker span { background: var(--accent); color: white; padding: 2px 8px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; }
.syringe-ticks { position: absolute; bottom: -20px; left: 0; right: 0; }
.syringe-tick { position: absolute; transform: translateX(-50%); }
.syringe-tick span { font-size: 0.65rem; color: var(--text3); }

/* ==================== STACKS ==================== */
.stacks-grid { display: flex; flex-direction: column; gap: 1rem; }
.stack-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; transition: all 0.3s ease; border-left: 4px solid var(--stack-color, var(--accent)); }
.stack-card.expanded { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.stack-header { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.stack-emoji { font-size: 2rem; }
.stack-info { flex: 1; }
.stack-name { font-weight: 600; font-size: 1.1rem; }
.stack-purpose { font-size: 0.8rem; color: var(--text3); }
.stack-toggle { color: var(--text3); }
.stack-desc { font-size: 0.9rem; color: var(--text2); margin-top: 0.5rem; line-height: 1.5; }
.stack-detail-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.stack-detail-section h4 { font-size: 0.85rem; margin: 0.75rem 0 0.25rem; }
.stack-detail-section p { font-size: 0.85rem; color: var(--text2); margin: 0; }
.stack-peptides { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.stack-peptides h4 { font-size: 0.85rem; margin-bottom: 0.5rem; }
.stack-peptide-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; background: var(--bg1); border-radius: 0.5rem; margin-bottom: 0.5rem; cursor: pointer; transition: background 0.2s; }
.stack-peptide-item:hover { background: var(--bg3); }
.stack-peptide-emoji { font-size: 1.5rem; }
.stack-peptide-name { font-weight: 500; font-size: 0.9rem; }
.stack-peptide-dose { font-size: 0.8rem; color: var(--text3); }

/* ==================== PROTOCOLS ==================== */
.protocols-grid { display: flex; flex-direction: column; gap: 1rem; }
.protocol-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; border-left: 4px solid var(--protocol-color, var(--accent)); }
.protocol-card.expanded { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.protocol-header { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.protocol-emoji { font-size: 1.75rem; }
.protocol-info { flex: 1; }
.protocol-name { font-weight: 600; font-size: 1.05rem; }
.protocol-duration { font-size: 0.8rem; color: var(--text3); }
.protocol-desc { font-size: 0.9rem; color: var(--text2); margin: 0.5rem 0; line-height: 1.5; }
.protocol-detail { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.protocol-detail h4 { margin: 1rem 0 0.5rem; font-size: 0.9rem; }
.protocol-detail h4:first-child { margin-top: 0; }
.protocol-detail p { font-size: 0.85rem; color: var(--text2); line-height: 1.6; }
.protocol-peptide { background: var(--bg1); border-radius: 0.5rem; padding: 0.75rem; margin-bottom: 0.5rem; }
.protocol-peptide strong { display: block; margin-bottom: 0.25rem; }
.protocol-peptide span { font-size: 0.85rem; color: var(--accent); }
.protocol-peptide small { display: block; font-size: 0.8rem; color: var(--text3); margin-top: 0.25rem; }
.protocol-safety { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); border-radius: 0.5rem; padding: 0.75rem; font-size: 0.85rem; line-height: 1.5; }

/* ==================== GLOSSARY ==================== */
.glossary-list { display: flex; flex-direction: column; gap: 0.5rem; }
.glossary-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; }
.glossary-term { font-weight: 600; color: var(--accent); margin-bottom: 0.25rem; }
.glossary-def { font-size: 0.9rem; color: var(--text2); line-height: 1.5; }

/* ==================== INTERACTIONS ==================== */
.interaction-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.interaction-result { background: var(--bg2); border: 2px solid var(--border); border-radius: 1rem; padding: 1.5rem; margin: 1rem 0; text-align: center; }
.interaction-pair { display: flex; align-items: center; justify-content: center; gap: 1rem; font-weight: 600; font-size: 1rem; flex-wrap: wrap; }
.interaction-icon { font-size: 1.5rem; }
.interaction-type { font-size: 1.1rem; font-weight: 700; margin: 0.75rem 0 0.5rem; }
.interaction-note { font-size: 0.9rem; color: var(--text2); line-height: 1.5; }
.interaction-timing { font-size: 0.85rem; color: var(--text3); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.interaction-legend { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.interaction-quick-list { display: flex; flex-direction: column; gap: 0.5rem; }
.interaction-quick-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; background: var(--bg1); border-radius: 0.5rem; cursor: pointer; font-size: 0.85rem; transition: background 0.2s; }
.interaction-quick-item:hover { background: var(--bg3); }

/* ==================== INVENTORY ==================== */
.inventory-list { display: flex; flex-direction: column; gap: 0.5rem; }
.inventory-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; background: var(--bg1); border-radius: 0.75rem; border-left: 4px solid var(--accent); }
.inventory-item.status-good { border-left-color: #10b981; }
.inventory-item.status-expiring { border-left-color: #f59e0b; }
.inventory-item.status-expired { border-left-color: #ef4444; }
.inv-main { display: flex; align-items: center; gap: 0.75rem; }
.inv-emoji { font-size: 1.5rem; }
.inv-name { font-weight: 600; font-size: 0.95rem; }
.inv-meta { font-size: 0.8rem; color: var(--text3); }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: 0.25rem; }

/* ==================== BODY MAP ==================== */
.bodymap-container { overflow: hidden; }
.bodymap-figure { display: flex; justify-content: center; padding: 1rem 0; }
.bodymap-outline { position: relative; width: 200px; height: 380px; }
.bodymap-head { width: 50px; height: 50px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--border); margin: 0 auto 5px; }
.bodymap-torso { position: relative; width: 140px; height: 140px; background: var(--bg3); border: 2px solid var(--border); border-radius: 20px 20px 10px 10px; margin: 0 auto; }
.bodymap-legs { position: relative; width: 140px; height: 150px; margin: 5px auto 0; display: flex; gap: 10px; }
.bodymap-legs::before, .bodymap-legs::after {
  content: ''; flex: 1; background: var(--bg3); border: 2px solid var(--border); border-radius: 10px;
}
.bodymap-zone { position: absolute; border-radius: 0.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: rgba(99,102,241,0.1); border: 2px dashed rgba(99,102,241,0.3); z-index: 2; }
.bodymap-zone:hover, .bodymap-zone.active { background: rgba(99,102,241,0.25); border-color: var(--accent); transform: scale(1.05); }
.bodymap-zone span { font-size: 1.25rem; }
.glute-zone { position: absolute; bottom: 145px; left: 50%; transform: translateX(-50%); width: 80px; height: 30px; }
.zone-tips { padding-left: 1.25rem; font-size: 0.9rem; line-height: 1.8; }
.zone-peptides { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.injection-log { display: flex; flex-direction: column; gap: 0.5rem; }
.log-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

/* ==================== PROGRESS ==================== */
.progress-table { overflow-x: auto; }
.progress-header, .progress-row { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr 0.4fr; gap: 0.5rem; padding: 0.5rem 0; font-size: 0.85rem; align-items: center; }
.progress-header { font-weight: 600; color: var(--text3); border-bottom: 2px solid var(--border); }
.progress-row { border-bottom: 1px solid var(--border); }
.progress-row small { font-size: 0.75rem; }
.weight-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 150px; padding: 0.5rem 0; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 30px; background: linear-gradient(180deg, var(--accent), #38bdf8); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.5s ease; }
.chart-label { font-size: 0.7rem; font-weight: 600; margin-top: 0.25rem; }
.chart-date { font-size: 0.65rem; color: var(--text3); }

/* ==================== CONTACT ==================== */
.contact-links { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: var(--bg1); border-radius: 0.75rem; text-decoration: none; color: var(--text); transition: all 0.25s ease; }
.contact-link:hover { background: var(--accent-light); border-color: var(--accent); transform: translateY(-1px); }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-link-title { font-weight: 600; font-size: 0.95rem; }
.contact-link-desc { font-size: 0.8rem; color: var(--text3); }

/* ==================== FOOTER ==================== */
.app-footer {
  position: relative;
  margin-top: 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
}
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-text {
  font-size: 0.7rem;
  color: var(--text3);
  font-weight: 500;
}
.footer-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
.footer-link:hover {
  color: var(--accent);
}
.footer-contact {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
}
.footer-link span {
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .footer-content {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
  .footer-text {
    font-size: 0.65rem;
  }
  .footer-links {
    gap: 1rem;
  }
  .app-footer {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .calc-grid { grid-template-columns: 1fr; }
  .interaction-selects { grid-template-columns: 1fr; }
  .progress-header, .progress-row { grid-template-columns: 1fr 0.8fr 0.7fr 0.7fr 0.3fr; font-size: 0.75rem; }
}

/* ==================== EDUCATION SECTIONS ==================== */
.detail-timeline { display: flex; flex-direction: column; gap: 0; }
.detail-timeline-item { display: flex; gap: 1rem; padding: 0.75rem 0; position: relative; }
.detail-timeline-item:not(:last-child) { border-left: 2px solid var(--border); margin-left: 15px; padding-left: calc(1rem + 15px); }
.detail-timeline-item:last-child { margin-left: 15px; padding-left: calc(1rem + 15px); }
.detail-timeline-marker {
  position: absolute; left: -13px; top: 0.75rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.detail-timeline-content { flex: 1; }
.detail-timeline-week { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.detail-timeline-title { font-weight: 600; margin: 0.15rem 0; }
.detail-timeline-desc { font-size: 0.85rem; color: var(--text2); line-height: 1.5; }

.detail-study-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; margin-bottom: 0.75rem; }
.detail-study-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.detail-study-journal { font-size: 0.8rem; color: var(--accent); margin-bottom: 0.5rem; font-style: italic; }
.detail-study-finding { font-size: 0.85rem; color: var(--text2); line-height: 1.5; }

.detail-checklist { display: flex; flex-direction: column; gap: 0.5rem; }
.detail-checklist-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0.75rem; background: var(--bg2); border-radius: 0.5rem; font-size: 0.9rem; line-height: 1.4; }
.detail-check-icon { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

.detail-tips { display: flex; flex-direction: column; gap: 0.5rem; }
.detail-tip-card { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(249,115,22,0.08)); border: 1px solid rgba(251,191,36,0.2); border-radius: 0.75rem; font-size: 0.85rem; line-height: 1.5; }
.detail-tip-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  margin: -1rem -1rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, #0f766e 50%, #134e4a 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20,184,166,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-ctas .btn-primary {
  background: #fff !important;
  color: #0d9488 !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero-ctas .btn-primary:hover { background: #f0fdfa !important; transform: translateY(-1px); }
.hero-ctas .btn-outline {
  border: 2px solid rgba(255,255,255,0.5) !important;
  color: #fff !important;
  background: transparent !important;
}
.hero-ctas .btn-outline:hover { background: rgba(255,255,255,0.1) !important; border-color: #fff !important; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; border-radius: 12px; }

/* Feature Cards */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}
.hero-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.hf-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.hf-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.hf-desc { font-size: 0.78rem; color: var(--text2); line-height: 1.5; }

/* Popular Peptides */
.hero-popular { margin-bottom: 1.5rem; }
.hero-popular h2 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.hero-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.hero-peptide-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border-top: 3px solid var(--card-color, var(--accent));
}
.hero-peptide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hp-emoji { font-size: 1.6rem; margin-bottom: 0.3rem; }
.hp-name { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 0.15rem; }
.hp-purpose { font-size: 0.7rem; color: var(--text2); }

/* CTA Banner */
.hero-cta-banner {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-light), rgba(13,148,136,0.05));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.hero-cta-banner h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 0.4rem; }
.hero-cta-banner p { font-size: 0.88rem; color: var(--text2); margin-bottom: 1.25rem; }

/* Mobile responsive */
@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-features { grid-template-columns: 1fr; }
  .hero-popular-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== FINAL POLISH ===== */
html { scroll-behavior: smooth; }

/* Ensure content doesn't hide behind footer+nav */
.app-container { padding-bottom: 140px; }

/* Animated entrance for hero elements */
.hero-badge { animation: fadeSlideUp 0.6s ease 0.1s both; }
.hero-title { animation: fadeSlideUp 0.6s ease 0.2s both; }
.hero-subtitle { animation: fadeSlideUp 0.6s ease 0.3s both; }
.hero-ctas { animation: fadeSlideUp 0.6s ease 0.4s both; }
.hero-feature-card { animation: fadeSlideUp 0.5s ease both; }
.hero-feature-card:nth-child(1) { animation-delay: 0.5s; }
.hero-feature-card:nth-child(2) { animation-delay: 0.6s; }
.hero-feature-card:nth-child(3) { animation-delay: 0.7s; }
.hero-feature-card:nth-child(4) { animation-delay: 0.8s; }
.hero-feature-card:nth-child(5) { animation-delay: 0.9s; }
.hero-feature-card:nth-child(6) { animation-delay: 1.0s; }
.hero-popular { animation: fadeSlideUp 0.6s ease 1.1s both; }
.hero-cta-banner { animation: fadeSlideUp 0.6s ease 1.3s both; }

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

/* Peptide card hover glow */
.peptide-card:hover, .hero-peptide-card:hover {
  box-shadow: 0 8px 30px rgba(13,148,136,0.15);
}

/* Smooth card transitions everywhere */
.card, .glass-card, .peptide-card, .protocol-card, .stack-card, .learn-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Better input focus states */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Pulse animation for the FAB */
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(13,148,136,0.3); }
  50% { box-shadow: 0 4px 25px rgba(13,148,136,0.5); }
}

/* Badge shimmer effect */
.hero-badge {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05), rgba(255,255,255,0.15));
  background-size: 200% 100%;
  animation: fadeSlideUp 0.6s ease 0.1s both, badgeShimmer 3s ease infinite 1.5s;
}
@keyframes badgeShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Smoother page transitions */
.page { display: none; }
.page.active { display: block; animation: pageFadeIn 0.3s ease both; }

/* Better scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ===== EMAIL POPUP ===== */
.email-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.email-popup-overlay.active { opacity: 1; pointer-events: auto; }
.email-popup {
  background: rgba(10,15,26,0.85); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(13,148,136,0.3); border-radius: 20px;
  padding: 2rem; max-width: 420px; width: 90%; position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 40px rgba(13,148,136,0.15);
  animation: popupSlideIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes popupSlideIn { from { transform: translateY(30px) scale(0.95); opacity:0; } to { transform: none; opacity:1; } }
.email-popup-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: #94a3b8; font-size: 1.4rem; cursor: pointer; padding: 4px 8px; line-height:1;
}
.email-popup-close:hover { color: #fff; }
.email-popup h2 { color: #fff; font-size: 1.35rem; margin-bottom: 0.4rem; }
.email-popup p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1.2rem; line-height: 1.5; }
.email-popup-form { display: flex; gap: 8px; }
.email-popup-form input {
  flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(13,148,136,0.3);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 0.95rem; outline: none;
}
.email-popup-form input::placeholder { color: #64748b; }
.email-popup-form input:focus { border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13,148,136,0.2); }
.email-popup-form button {
  padding: 12px 20px; border-radius: 10px; border: none; background: #0d9488;
  color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; font-size: 0.95rem;
  transition: background 0.2s;
}
.email-popup-form button:hover { background: #0f766e; }
.email-popup-msg { text-align: center; margin-top: 0.75rem; font-size: 0.85rem; min-height: 1.2em; }

/* ===== FOOTER EMAIL BAR ===== */
.footer-email-bar {
  position: fixed; bottom: 70px; left: 8px; right: 8px; z-index: 999;
  background: rgba(10,15,26,0.95); backdrop-filter: blur(12px);
  border: 1px solid rgba(13,148,136,0.3); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap;
  transition: transform 0.3s ease; box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.footer-email-bar.hidden { transform: translateY(200%); pointer-events: none; }
.footer-email-bar span.bar-label { color: #fff; font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.footer-email-bar input {
  padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(13,148,136,0.3);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 0.85rem; outline: none;
  max-width: 220px; width: 100%;
}
.footer-email-bar input::placeholder { color: #64748b; }
.footer-email-bar button.bar-btn {
  padding: 8px 16px; border-radius: 8px; border: none; background: #0d9488;
  color: #fff; font-weight: 600; cursor: pointer; font-size: 0.85rem; white-space: nowrap;
}
.footer-email-bar .bar-close {
  background: none; border: none; color: #64748b; cursor: pointer; font-size: 1.1rem; padding: 2px 6px;
}
.footer-email-bar .bar-msg { color: #14b8a6; font-size: 0.8rem; }

/* ===== SUPPLIERS PAGE ===== */
.suppliers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 24px; }
.supplier-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: transform 0.2s, box-shadow 0.2s; }
.supplier-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.supplier-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.supplier-emoji { font-size: 2rem; }
.supplier-info { flex: 1; }
.supplier-name { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.supplier-badge { display: inline-block; background: rgba(0,240,160,0.12); color: var(--accent); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-top: 4px; letter-spacing: 0.5px; }
.supplier-description { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.supplier-products { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.supplier-products span { background: var(--hover); padding: 4px 10px; border-radius: 8px; font-size: 0.75rem; color: var(--text-secondary); }
.supplier-btn { width: 100%; justify-content: center; }
.suppliers-disclaimer { margin-top: 32px; padding: 16px 20px; background: rgba(0,240,160,0.06); border: 1px solid rgba(0,240,160,0.15); border-radius: 12px; font-size: 0.8rem; color: var(--text-secondary); text-align: center; }

/* ===== BLOG PAGE ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.blog-category { display: inline-block; background: rgba(0,240,160,0.12); color: var(--accent); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.blog-excerpt { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }
.blog-meta { display: flex; gap: 16px; font-size: 0.75rem; color: var(--text-muted); }
.blog-read-time, .blog-date { opacity: 0.8; }
.blog-footer { display: flex; gap: 16px; margin-top: 12px; }
.blog-peptides { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.blog-peptide-tag { background: var(--hover); padding: 3px 10px; border-radius: 8px; font-size: 0.72rem; color: var(--accent); font-weight: 600; }
.blog-article { line-height: 1.8; color: var(--text-secondary); }
.blog-article h2 { color: var(--text); font-size: 1.3rem; margin: 28px 0 12px; }
.blog-article h3 { color: var(--text); font-size: 1.1rem; margin: 24px 0 10px; }
.blog-article p { margin-bottom: 16px; }
.blog-article ul, .blog-article ol { padding-left: 24px; margin-bottom: 16px; }
.blog-article li { margin-bottom: 8px; }
.blog-article .cta-box { background: rgba(0,240,160,0.08); border: 1px solid rgba(0,240,160,0.2); border-radius: 12px; padding: 20px; margin: 24px 0; text-align: center; }
.blog-article .cta-box a { color: var(--accent); font-weight: 700; }

/* ===== PRO MODAL ===== */
.pro-modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn 0.2s; }
.pro-modal { background: var(--card); border: 1px solid var(--border); border-radius: 20px; max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto; animation: slideUp 0.3s; }
.pro-modal-header { background: linear-gradient(135deg, rgba(0,240,160,0.15), rgba(99,102,241,0.15)); padding: 28px 28px 20px; border-radius: 20px 20px 0 0; text-align: center; }
.pro-modal-header h2 { font-size: 1.4rem; margin-bottom: 4px; }
.pro-modal-header p { color: var(--text-secondary); font-size: 0.9rem; }
.pro-features { padding: 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.pro-feature { display: flex; gap: 12px; align-items: flex-start; }
.pro-feature .icon { font-size: 1.3rem; flex-shrink: 0; }
.pro-feature .info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.pro-feature .info p { font-size: 0.82rem; color: var(--text-secondary); }
.pro-pricing { padding: 20px 28px; text-align: center; }
.pro-pricing .price { font-size: 2rem; font-weight: 800; color: var(--accent); }
.pro-pricing .price span { font-size: 0.9rem; color: var(--text-secondary); font-weight: 400; }
.pro-pricing .annual { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.pro-modal-footer { padding: 16px 28px 28px; text-align: center; }
.pro-modal-footer .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.pro-modal-footer .close-link { color: var(--text-muted); font-size: 0.8rem; cursor: pointer; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SOURCE BUTTONS IN MODALS ===== */
.source-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.source-section h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.source-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.source-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--accent); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.source-btn:hover { background: rgba(0,240,160,0.1); border-color: var(--accent); }
.source-btn .ext-icon { font-size: 0.7rem; opacity: 0.6; }

/* ===== PROTOCOL CARDS ===== */
.protocols-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.protocol-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; border-left: 4px solid var(--protocol-color, var(--accent)); }
.protocol-header { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.protocol-emoji { font-size: 1.8rem; }
.protocol-info { flex: 1; }
.protocol-name { font-size: 1.05rem; font-weight: 700; }
.protocol-duration { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.protocol-toggle { color: var(--text-muted); font-size: 0.9rem; }
.protocol-desc { color: var(--text-secondary); font-size: 0.88rem; margin-top: 8px; }
.protocol-details { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.protocol-details h4 { font-size: 0.85rem; font-weight: 700; margin: 14px 0 6px; color: var(--accent); }
.protocol-details h4:first-child { margin-top: 0; }
.protocol-details p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.protocol-peptide { background: var(--hover); padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-size: 0.88rem; }
.protocol-notes { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ===== ENHANCED SCHEDULE UX STYLES ===== */

/* Schedule Header */
.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.schedule-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Floating Action Button */
.floating-action-btn {
  position: fixed;
  bottom: 90px; /* Above bottom nav */
  right: 20px;
  z-index: 50;
  
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  border: none;
  border-radius: 28px;
  padding: 12px 20px;
  
  display: flex;
  align-items: center;
  gap: 8px;
  
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  animation: fabPulse 3s ease-in-out infinite;
}

.floating-action-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
}

.floating-action-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.fab-icon {
  font-size: 1.2rem;
  font-weight: 700;
}

.fab-text {
  display: none;
}

/* Show text on larger screens */
@media (min-width: 480px) {
  .fab-text {
    display: inline;
  }
  
  .floating-action-btn {
    padding: 14px 24px;
  }
}

@keyframes fabPulse {
  0%, 100% { 
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
  }
  50% { 
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.5);
  }
}

/* Today's Schedule Card */
.today-schedule {
  margin-bottom: 1.5rem;
}

.today-schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.today-date-icon {
  margin-right: 0.5rem;
}

.today-date {
  font-size: 0.85rem;
  color: var(--text3);
  font-weight: 500;
}

/* Timeline Styles */
.today-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-slot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
}

.timeline-icon {
  font-size: 1rem;
}

.timeline-label {
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-left: 1.5rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  transition: all 0.2s ease;
  border-left: 3px solid var(--accent);
}

.timeline-item.taken {
  opacity: 0.7;
  background: var(--accent-light);
}

.timeline-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  cursor: pointer;
}

.timeline-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: var(--bg2);
}

.timeline-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.timeline-checkbox-input {
  display: none;
}

.checkmark {
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.timeline-checkbox.checked .checkmark {
  opacity: 1;
}

.timeline-item-info {
  flex: 1;
}

.timeline-item-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.timeline-item-dose {
  font-size: 0.8rem;
  color: var(--text3);
  margin-top: 0.1rem;
}

.timeline-item-actions {
  display: flex;
  gap: 0.25rem;
}

.timeline-action-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.timeline-action-btn:hover {
  opacity: 1;
  background: var(--hover);
}

.timeline-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Peptide Picker Modal */
.peptide-picker-modal {
  max-width: 600px;
  width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.picker-search-section {
  padding: 0 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.search-bar {
  position: relative;
  margin-bottom: 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 0.9rem;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text);
  font-size: 0.9rem;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Category Filters */
.category-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.category-filter {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-filter.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Peptide Picker Grid */
.peptide-picker-grid {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.peptide-picker-item {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.peptide-picker-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.peptide-picker-item.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.peptide-color-indicator {
  width: 4px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.peptide-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.peptide-purpose {
  font-size: 0.85rem;
  color: var(--text2);
  margin: 0 0 0.25rem 0;
}

.peptide-frequency {
  font-size: 0.8rem;
  color: var(--text3);
  margin: 0;
}

.peptide-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
}

.peptide-badge.popular {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.peptide-badge.beginner {
  background: var(--accent-light);
  color: var(--accent);
}

.picker-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Scheduling Form Modal */
.scheduling-form-modal {
  max-width: 500px;
  width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.back-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: auto;
  border-radius: var(--radius-xs);
  transition: background 0.2s ease;
}

.back-btn:hover {
  background: var(--hover);
}

#schedule-form {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text2);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Frequency Options */
.frequency-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

.frequency-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.frequency-option:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.frequency-option input[type="radio"] {
  margin-right: 0.5rem;
}

.custom-pattern {
  margin-top: 1rem;
}

.day-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.day-checkbox {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg2);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.day-checkbox:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.day-checkbox input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Time Options */
.time-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.time-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg2);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.time-option:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.time-option input[type="checkbox"] {
  margin-right: 0.5rem;
}

.form-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn-icon {
  margin-left: 0.5rem;
}

/* Calendar Enhancements */
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-toggle {
  font-size: 0.8rem;
}

.cal-indicators {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.cal-more {
  font-size: 0.6rem;
  color: var(--text3);
  font-weight: 600;
}

/* Active Peptides List */
.active-peptide-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.active-peptide-item:last-child {
  border-bottom: none;
}

.peptide-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.peptide-info {
  flex: 1;
  min-width: 0;
}

.peptide-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.peptide-details {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 0.125rem;
}

.peptide-dates {
  font-size: 0.75rem;
  color: var(--text3);
}

.peptide-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.legacy-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Week View */
.week-view {
  overflow-x: auto;
}

.week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 0.5rem;
  min-width: 1000px;
}

.week-day {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.75rem;
  min-height: 200px;
}

.week-day.today {
  border-color: var(--accent);
  background: var(--accent-light);
}

.week-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.week-day-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.week-day-num {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.week-day-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.week-slot {
  background: var(--bg3);
  border-radius: var(--radius-xs);
  padding: 0.5rem;
}

.week-slot-time {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text3);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.week-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  font-size: 0.75rem;
  border-radius: 4px;
}

.week-item.taken {
  opacity: 0.6;
}

.week-item input[type="checkbox"] {
  width: 12px;
  height: 12px;
}

/* Success Toast */
.success-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 1000;
  
  background: var(--accent);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.success-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.success-icon {
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .frequency-options,
  .time-options {
    grid-template-columns: 1fr;
  }
  
  .calendar-controls {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .calendar-nav {
    justify-content: space-between;
  }
  
  .peptide-picker-grid {
    grid-template-columns: 1fr;
  }
  
  .week-grid {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
  }
  
  .floating-action-btn {
    bottom: 100px;
    right: 16px;
  }
}

/* Hero Peptide Card Actions */
.hp-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-peptide-card:hover .hp-actions {
  opacity: 1;
}

.hp-learn,
.hp-add {
  flex: 1;
  justify-content: center;
  font-size: 0.75rem !important;
  padding: 0.4rem 0.6rem !important;
}

.hero-peptide-card {
  cursor: default; /* Remove pointer cursor since we have buttons now */
}

/* Quick Start Actions */
.quick-start-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .quick-start-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .hp-actions {
    opacity: 1; /* Always show on mobile */
  }
}

@media (max-width: 480px) {
  .timeline-item {
    padding: 0.5rem;
  }
  
  .timeline-items {
    margin-left: 1rem;
  }
  
  .peptide-actions {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .active-peptide-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .hp-actions {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ===== NOTIFICATION BANNER (REMOVED) ===== */
.notification-banner {
  display: none !important; /* Force hide - banner removed from HTML */
}

/* ===== FOOTER EMAIL BAR ===== */
.footer-email-bar {
  position: fixed;
  bottom: 68px; /* Above the bottom nav */
  left: 0;
  right: 0;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  z-index: 90;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
  animation: slideUpBar 0.4s cubic-bezier(.4,0,.2,1);
}

@keyframes slideUpBar {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.footer-email-bar.hidden {
  display: none;
}

.bar-label {
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

#bar-email {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: all 0.3s ease;
}

#bar-email:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

#bar-email::placeholder {
  color: var(--text3);
}

.bar-btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-xs);
  color: white;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.bar-btn:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

.bar-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bar-close:hover {
  background: var(--bg3);
  color: var(--text);
}

.bar-msg {
  position: absolute;
  bottom: 100%;
  left: 1rem;
  right: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.5rem;
  font-size: 0.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .footer-email-bar {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .bar-label {
    font-size: 0.75rem;
  }
  
  #bar-email {
    font-size: 0.75rem;
    padding: 0.45rem 0.6rem;
  }
  
  .bar-btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
  }
}

/* ===== CHAT BUBBLE (PEPTI AI) ===== */
.pepti-fab {
  position: fixed;
  bottom: 140px;
  right: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(13,148,136,0.4);
  z-index: 100;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pepti-fab:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 30px rgba(13,148,136,0.6);
}

.pepti-fab:active {
  transform: scale(0.95);
}

.pepti-fab.hidden {
  transform: scale(0) rotate(180deg);
  opacity: 0;
  pointer-events: none;
}

.pepti-panel {
  position: fixed;
  bottom: 140px;
  right: 1rem;
  width: 320px;
  height: 480px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

.pepti-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.pepti-header {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pepti-header-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pepti-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.pepti-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.pepti-status {
  font-size: 0.7rem;
  color: var(--text3);
}

.pepti-header-actions {
  display: flex;
  gap: 0.25rem;
}

.pepti-clear,
.pepti-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pepti-clear:hover,
.pepti-close:hover {
  background: var(--bg);
  color: var(--text);
}

.pepti-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.pepti-welcome-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pepti-welcome h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.pepti-welcome p {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.pepti-disclaimer {
  font-size: 0.7rem !important;
  color: var(--text3) !important;
  font-style: italic;
}

.pepti-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pepti-suggestions button {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.pepti-suggestions button:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.pepti-input-area {
  border-top: 1px solid var(--border);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

#pepti-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.5rem;
  font-size: 0.8rem;
  color: var(--text);
  font-family: var(--font);
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  max-height: 120px;
  min-height: 36px;
}

#pepti-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.pepti-send {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-xs);
  color: white;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pepti-send:hover {
  background: var(--accent2);
  transform: scale(1.05);
}

.pepti-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 480px) {
  .pepti-panel {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: calc(100vw - 1rem);
  }
  
  .pepti-fab {
    right: 0.5rem;
    bottom: 120px;
  }
}

/* Popular Picks Row */
.popular-picks-section { margin: 1rem 0 1.5rem; }
.popular-picks-title { font-size: 1.1rem; margin: 0 0 0.75rem; }
.popular-picks-row {
  display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.popular-picks-row::-webkit-scrollbar { height: 4px; }
.popular-picks-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.popular-pick-card {
  flex: 0 0 140px; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 0.75rem; text-align: center;
  border-top: 3px solid var(--card-color, var(--accent));
  transition: transform 0.15s, box-shadow 0.15s;
}
.popular-pick-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.popular-pick-emoji { font-size: 1.8rem; margin-bottom: 0.4rem; }
.popular-pick-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.popular-pick-purpose { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.popular-pick-actions { margin-top: 0.5rem; }
.popular-pick-actions .btn { width: 100%; font-size: 0.8rem; padding: 0.35rem 0.5rem; }

/* ===== SUB-TABS FOR NEW NAVIGATION ===== */
.sub-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  border-bottom: none;
  padding: 0.3rem;
  background: var(--bg3);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.sub-tab {
  background: transparent;
  border: none;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text2);
  cursor: pointer;
  border-bottom: none;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  border-radius: 9px;
  position: relative;
  bottom: 0;
  font-weight: 600;
  font-family: var(--font);
  flex: 1;
  text-align: center;
}

.sub-tab:hover {
  background: var(--bg2);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sub-tab.active {
  color: #fff;
  border-bottom-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 2px 8px var(--accent-glow);
}

.sub-tab-content {
  margin-top: 0;
}

/* Learn page resource links */
.learn-resources {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.resource-link:hover {
  background: rgba(255,255,255,0.8);
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-1px);
}

.resource-link span {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.resource-link strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.resource-link p {
  font-size: 0.8rem;
  color: var(--text2);
  margin: 0;
}

/* Dark theme adjustments */
[data-theme="dark"] .resource-link {
  background: rgba(20,27,45,0.5);
  border-color: rgba(59,130,246,0.3);
}

[data-theme="dark"] .resource-link:hover {
  background: rgba(20,27,45,0.8);
  border-color: rgba(59,130,246,0.5);
}

/* Peptide management in My Peptides */
.peptide-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.peptide-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.peptide-item:hover {
  background: var(--bg2);
  border-color: var(--accent);
}

.peptide-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.peptide-emoji {
  font-size: 1.5rem;
}

.peptide-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.peptide-meta {
  font-size: 0.8rem;
  color: var(--text2);
}

.peptide-actions {
  display: flex;
  gap: 0.5rem;
}

/* ===== DASHBOARD UPDATES ===== */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.quick-action-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.quick-action-btn:active {
  transform: scale(0.98);
}

.quick-action-btn span {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
}

.quick-action-btn strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.quick-action-btn p {
  font-size: 0.78rem;
  color: var(--text2);
  margin: 0;
}

.getting-started-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.step-content p {
  font-size: 0.8rem;
  color: var(--text2);
  margin: 0 0 0.5rem 0;
}

.protocol-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg3);
  border-radius: var(--radius-sm);
}

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

.stat-label {
  font-size: 0.8rem;
  color: var(--text2);
  margin-top: 0.25rem;
}

.active-peptides-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.active-peptides-summary h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text2);
}

.peptide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.peptide-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text2);
}

@media (max-width: 768px) {
  .sub-tabs {
    gap: 0.25rem;
    padding: 0.25rem;
  }
  
  .sub-tab {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .peptide-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .peptide-actions {
    justify-content: flex-end;
  }
  
  .quick-action-grid {
    grid-template-columns: 1fr;
  }
  
  .protocol-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .peptide-chips {
    gap: 0.25rem;
  }
}

/* ===== WORLD-CLASS UI POLISH — 2025-02-25 ===== */

/* --- Learn Page: Search & Filters --- */
.search-filter-section {
  margin-bottom: 1.25rem;
}
.search-filter-section .search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
}
.search-filter-section .search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-lg);
}
.search-filter-section .search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}
.search-filter-section .search-bar input::placeholder {
  color: var(--text3);
}
.filter-section {
  margin-top: 0.75rem;
}
.filter-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.filter-row .filter-select {
  flex: 0 0 auto;
  min-width: 160px;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
}
.filter-row .filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}
.filter-toggles {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text2);
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg2);
  transition: all 0.2s ease;
  user-select: none;
}
.filter-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}
.filter-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* --- Learn Page: Peptide Card Enhancements --- */
.peptide-card .peptide-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.peptide-card .peptide-emoji {
  font-size: 2.2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--card-color, var(--accent)) 10%, var(--bg3));
  border-radius: 12px;
  line-height: 1;
  flex-shrink: 0;
}
.peptide-card .peptide-actions {
  display: flex;
  gap: 0.25rem;
}
.peptide-card .action-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition: all 0.2s ease;
  opacity: 0.5;
}
.peptide-card:hover .action-btn {
  opacity: 0.8;
}
.peptide-card .action-btn:hover {
  opacity: 1;
  border-color: var(--accent);
  background: var(--accent-light);
  transform: scale(1.1);
}
.peptide-card .action-btn.active {
  opacity: 1;
  border-color: var(--accent);
  background: var(--accent-light);
}
.peptide-card .peptide-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.peptide-card .peptide-purpose {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.peptide-card .peptide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.6rem;
}
.peptide-card .peptide-category {
  font-size: 0.68rem;
  color: var(--card-color, var(--accent));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--card-color, var(--accent)) 10%, transparent);
}

/* Badges */
.peptide-card .badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.peptide-card .badge.beginner {
  background: #dbeafe;
  color: #2563eb;
}
.peptide-card .badge.popular {
  background: #fef3c7;
  color: #d97706;
}
[data-theme="dark"] .peptide-card .badge.beginner {
  background: #1e3a5f;
  color: #93c5fd;
}
[data-theme="dark"] .peptide-card .badge.popular {
  background: #78350f;
  color: #fde68a;
}

/* Quick add button */
.peptide-quick-add {
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.peptide-quick-add .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0.5rem;
}

/* --- Staggered card entrance --- */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.peptide-grid .peptide-card {
  animation: cardFadeIn 0.4s cubic-bezier(.4,0,.2,1) both;
}
.peptide-grid .peptide-card:nth-child(1) { animation-delay: 0s; }
.peptide-grid .peptide-card:nth-child(2) { animation-delay: 0.03s; }
.peptide-grid .peptide-card:nth-child(3) { animation-delay: 0.06s; }
.peptide-grid .peptide-card:nth-child(4) { animation-delay: 0.09s; }
.peptide-grid .peptide-card:nth-child(5) { animation-delay: 0.12s; }
.peptide-grid .peptide-card:nth-child(6) { animation-delay: 0.15s; }
.peptide-grid .peptide-card:nth-child(7) { animation-delay: 0.18s; }
.peptide-grid .peptide-card:nth-child(8) { animation-delay: 0.21s; }
.peptide-grid .peptide-card:nth-child(9) { animation-delay: 0.24s; }

/* --- Calculator Enhancements --- */
.calc-select,
.calc-input {
  transition: all 0.2s ease;
}
.calc-select:hover,
.calc-input:hover {
  border-color: var(--text3);
}
.calc-select:focus,
.calc-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

/* --- Sub-tabs (Tools / My Peptides) --- */
.sub-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: var(--bg3);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.sub-tab {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.25s ease;
}
.sub-tab:hover {
  color: var(--text);
  background: var(--bg2);
}
.sub-tab.active {
  background: var(--bg2);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* --- Typography refinements --- */
.page-content h1,
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.3;
}
.page-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* --- Cards global consistency --- */
.card {
  padding: 1.25rem;
  border-radius: var(--radius);
}
.card + .card {
  margin-top: 1rem;
}

/* --- More Menu enhancements --- */
.more-menu-item {
  min-height: 44px;
}
.more-menu-item span:first-child {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.3rem;
}

/* --- Mobile refinements --- */
@media (max-width: 480px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-row .filter-select {
    min-width: unset;
    width: 100%;
  }
  .filter-toggles {
    flex-direction: row;
  }
  .peptide-card .peptide-emoji {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
    border-radius: 10px;
  }
}

/* --- Bottom nav safe area --- */
.bottom-nav {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* --- Smooth page transitions --- */
.page-content {
  animation: pageFadeIn 0.3s ease both;
}

/* --- Button hover consistency --- */
.btn {
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: scale(0.97) translateY(0);
}

/* Interaction pair cards (multi-peptide checker) */
.interaction-pair-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.interaction-pair-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.interaction-pair-header .peptide-emoji {
  font-size: 1.2rem;
}

.interaction-pair-header .interaction-connector {
  color: var(--text2);
  font-weight: 600;
}

/* ===== SCHEDULE TAB REDESIGN ===== */
.sched-today-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background-image: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(168,85,247,0.05) 100%);
}
.sched-today-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.sched-today-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  font-weight: 600;
}
.sched-today-date {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.sched-progress-ring {
  position: relative;
  width: 52px;
  height: 52px;
}
.sched-progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.sched-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}
.sched-ring-fill {
  fill: none;
  stroke: var(--primary, #6366f1);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}
.sched-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
}
.sched-empty-today {
  text-align: center;
  color: var(--text3);
  padding: 1rem 0 0.5rem;
  font-size: 0.9rem;
}
.sched-slot {
  margin-top: 0.75rem;
}
.sched-slot-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.4rem;
}
.sched-slot-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sched-dose-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border-radius: var(--radius-sm, 8px);
  border-left: 3px solid var(--accent, var(--primary));
  cursor: pointer;
  transition: all 0.2s;
}
.sched-dose-item input[type="checkbox"] {
  display: none;
}
.sched-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.sched-dose-item.taken .sched-check {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
  animation: sched-check-pop 0.3s ease;
}
@keyframes sched-check-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.sched-dose-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sched-dose-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s;
}
.sched-dose-item.taken .sched-dose-name {
  text-decoration: line-through;
  opacity: 0.5;
}
.sched-dose-amount {
  font-size: 0.75rem;
  color: var(--text3);
}

/* My Schedule List */
.sched-list-section {
  margin-bottom: 1rem;
}
.sched-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.sched-empty-list {
  text-align: center;
  color: var(--text3);
  padding: 1rem;
  font-size: 0.9rem;
}
.sched-peptide-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--bg2);
  border-radius: var(--radius-sm, 8px);
  border-left: 3px solid var(--accent, var(--primary));
  margin-bottom: 0.5rem;
}
.sched-peptide-info {
  min-width: 0;
}
.sched-peptide-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.sched-peptide-dose {
  font-size: 0.8rem;
  color: var(--text2);
}
.sched-peptide-freq {
  font-size: 0.75rem;
  color: var(--text3);
}
.sched-peptide-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
.sched-action-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.sched-action-btn:hover {
  background: var(--bg);
}
.sched-add-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg2);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm, 8px);
  color: var(--primary, #6366f1);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.sched-add-btn:hover {
  border-color: var(--primary, #6366f1);
  background: rgba(99,102,241,0.05);
}

/* Reminders */
.sched-reminders-section {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
}
.sched-reminder-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text);
}
.sched-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.sched-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.sched-switch-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.25s;
}
.sched-switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.25s;
}
.sched-switch input:checked + .sched-switch-slider {
  background: var(--primary, #6366f1);
}
.sched-switch input:checked + .sched-switch-slider::before {
  transform: translateX(20px);
}
.sched-reminder-times {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sched-reminder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text2);
}
.sched-reminder-row input[type="time"] {
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-xs, 4px);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
}

/* My Peptides Hero CTA */
.my-peptides-hero-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, #0d9488 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: #fff;
  text-align: left;
  font-family: var(--font);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 16px rgba(13,148,136,0.35);
  position: relative;
  overflow: hidden;
}
.my-peptides-hero-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.my-peptides-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,148,136,0.45);
}
.my-peptides-hero-btn:active {
  transform: scale(0.98);
}
.my-peptides-hero-icon {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  flex-shrink: 0;
}
.my-peptides-hero-text {
  flex: 1;
  min-width: 0;
}
.my-peptides-hero-text strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.my-peptides-hero-text p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
}
.my-peptides-hero-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.my-peptides-hero-btn:hover .my-peptides-hero-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Affiliate Banner */
.affiliate-banner {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, rgba(13,148,136,0.15) 0%, rgba(20,184,166,0.08) 100%);
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.affiliate-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13,148,136,0.05) 0%, rgba(20,184,166,0.15) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.affiliate-banner:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,148,136,0.2);
}

.affiliate-banner:hover::before {
  opacity: 1;
}

.affiliate-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.affiliate-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,148,136,0.15);
  border-radius: 10px;
}

.affiliate-banner-text {
  min-width: 0;
}

.affiliate-banner-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.affiliate-banner-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.3;
}

.affiliate-banner-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.affiliate-banner:hover .affiliate-banner-cta {
  background: var(--accent2);
}

/* Affiliate banners grid */
.affiliate-banners {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .affiliate-banners {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .affiliate-banners {
    grid-template-columns: 1fr;
  }
}
