/* ========================================
   Anquanqi.com App Design System
   移动App原型 · 375px基准 · 原生风格
   ======================================== */

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

/* --- CSS Variables --- */
:root {
  /* Colors (复用Web) */
  --color-primary: #E8A0BF;
  --color-primary-dark: #D4789C;
  --color-primary-light: #F2C4D8;
  --color-primary-50: rgba(232, 160, 191, 0.08);
  --color-primary-100: rgba(232, 160, 191, 0.15);
  --color-secondary: #BA90C6;
  --color-secondary-dark: #A374B5;
  --color-secondary-light: #D4B8DE;
  --color-safe: #7EC8A9;
  --color-safe-light: #E0F5EC;
  --color-safe-dark: #3A9B7A;
  --color-warning: #F5C6AA;
  --color-warning-light: #FFF0E6;
  --color-warning-dark: #C67A4A;
  --color-danger: #E88B9C;
  --color-danger-light: #FCE4E8;
  --color-danger-dark: #C45A6A;
  --color-bg: #F8F0F5;
  --color-bg-alt: #FBF5F9;
  --color-surface: #FFFFFF;
  --color-text: #2D2D3A;
  --color-text-secondary: #8E8EA0;
  --color-text-light: #B0B0C0;
  --color-border: #F0E4EC;
  --color-border-dark: #E0D0DC;
  --gradient-primary: linear-gradient(135deg, #E8A0BF, #BA90C6);
  --gradient-warm: linear-gradient(135deg, #F5C6AA, #E8A0BF);
  --gradient-cool: linear-gradient(135deg, #BA90C6, #7EC8A9);
  --gradient-hero: linear-gradient(180deg, #FBF0F5 0%, #F0E4F5 50%, #E8F0F5 100%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
  --fs-title: 1.5rem;
  --fs-h2: 1.25rem;
  --fs-h3: 1.125rem;
  --fs-body: 0.9375rem;
  --fs-small: 0.8125rem;
  --fs-xs: 0.6875rem;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 20px;
  --sp-2xl: 24px;
  --sp-3xl: 32px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-tab: 0 -4px 20px rgba(0,0,0,0.05);

  /* Layout */
  --status-bar-h: 0px;
  --tab-bar-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 20px);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; border: none; outline: none; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }

/* --- Device Frame (removed for deployment) --- */
.device-frame {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* --- Status Bar (hidden on real device) --- */
.status-bar {
  display: none;
}

.status-bar-left, .status-bar-right, .status-notch {
  display: none;
}

/* --- Page Container --- */
.page {
  min-height: calc(100vh - var(--tab-bar-h) - var(--safe-bottom));
  min-height: calc(100dvh - var(--tab-bar-h) - var(--safe-bottom));
  padding-top: env(safe-area-inset-top, 20px);
  padding-bottom: calc(var(--tab-bar-h) + var(--safe-bottom) + var(--sp-lg));
  overflow-y: auto;
}

.page-header {
  padding: var(--sp-lg) var(--sp-xl) var(--sp-md);
}

.page-header h1 {
  font-size: var(--fs-title);
  font-weight: 800;
}

.page-body {
  padding: 0 var(--sp-xl);
}

/* --- Tab Bar --- */
.tab-bar {
  height: calc(var(--tab-bar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 0.5px solid rgba(0,0,0,0.08);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: 4px 0;
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  transition: color 0.2s;
  text-decoration: none;
}

.tab-item .tab-icon { font-size: 1.375rem; height: 24px; display: flex; align-items: center; }
.tab-item.active { color: var(--color-primary-dark); }
.tab-item.active .tab-icon { transform: scale(1.1); }

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-sm { padding: var(--sp-md); border-radius: var(--r-lg); }

.card:active {
  transform: scale(0.98);
}

/* --- iOS List --- */
.list-group {
  background: var(--color-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.list-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  font-size: var(--fs-body);
  color: var(--color-text);
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 0.5px solid var(--color-border);
}

.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--color-primary-50); }

.list-item .list-icon { font-size: 1.25rem; width: 28px; text-align: center; flex-shrink: 0; }
.list-item .list-text { flex: 1; }
.list-item .list-label { font-size: var(--fs-small); color: var(--color-text-secondary); }
.list-item .list-value { font-size: var(--fs-small); color: var(--color-text-secondary); }
.list-item .list-arrow { color: var(--color-text-light); font-size: 0.75rem; }

.list-header {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-sm);
  letter-spacing: 0.5px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 12px 20px;
  font-weight: 600;
  font-size: var(--fs-body);
  border-radius: var(--r-md);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(232, 160, 191, 0.3);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary-light);
}

.btn-ghost {
  color: var(--color-primary-dark);
  padding: 8px 12px;
}

.btn-sm { padding: 8px 14px; font-size: var(--fs-small); }
.btn-block { display: flex; width: 100%; }
.btn-round { border-radius: var(--r-full); }
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--r-full);
  font-size: 1.25rem;
}

/* --- Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--r-full);
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
}
.tag-safe { background: var(--color-safe-light); color: var(--color-safe-dark); }
.tag-warning { background: var(--color-warning-light); color: var(--color-warning-dark); }
.tag-danger { background: var(--color-danger-light); color: var(--color-danger-dark); }

/* --- Forms --- */
.form-group { margin-bottom: var(--sp-lg); }
.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  font-size: var(--fs-body);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-50);
}

.form-input::placeholder { color: var(--color-text-light); }

/* --- Cycle Ring --- */
.cycle-ring-container {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

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

.cycle-ring circle {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.cycle-ring .ring-bg {
  stroke: var(--color-border);
  stroke-width: 10;
}

.cycle-ring .ring-progress {
  stroke-width: 10;
  stroke: url(#ringGradient);
}

.cycle-ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.cycle-ring-day {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.cycle-ring-label {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.cycle-ring-phase {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-top: 2px;
}

/* --- Quick Actions Grid --- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--sp-md) var(--sp-sm);
  cursor: pointer;
  text-decoration: none;
}

.quick-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  transition: transform 0.2s;
}

.quick-icon:active { transform: scale(0.9); }

.quick-icon-1 { background: linear-gradient(135deg, #E8A0BF22, #E8A0BF44); }
.quick-icon-2 { background: linear-gradient(135deg, #BA90C622, #BA90C644); }
.quick-icon-3 { background: linear-gradient(135deg, #7EC8A922, #7EC8A944); }
.quick-icon-4 { background: linear-gradient(135deg, #F5C6AA22, #F5C6AA44); }

.quick-label { font-size: var(--fs-xs); color: var(--color-text-secondary); font-weight: 500; }

/* --- Tip Card --- */
.tip-card {
  background: var(--gradient-hero);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  border: 1px solid var(--color-border);
}

.tip-card h4 { font-size: var(--fs-body); margin-bottom: var(--sp-sm); }
.tip-card p { font-size: var(--fs-small); color: var(--color-text-secondary); line-height: 1.6; }

/* --- Calendar App --- */
.app-calendar {
  padding: 0 var(--sp-sm);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-sm);
}

.cal-header h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.cal-nav-btn:active { background: var(--color-primary-50); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: var(--sp-sm);
}

.cal-wd {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-light);
  padding: var(--sp-sm) 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-small);
  font-weight: 500;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  gap: 2px;
}

.cal-day:active { transform: scale(0.92); }
.cal-day.empty { cursor: default; }
.cal-day.today { font-weight: 700; }
.cal-day.today::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}
.cal-day.period { background: var(--color-danger-light); color: var(--color-danger-dark); font-weight: 600; }
.cal-day.ovulation { background: var(--color-warning-light); color: var(--color-warning-dark); font-weight: 600; }
.cal-day.fertile { background: rgba(245, 198, 170, 0.3); color: var(--color-warning-dark); }
.cal-day.safe { background: var(--color-safe-light); color: var(--color-safe-dark); }
.cal-day.selected {
  background: var(--gradient-primary);
  color: white;
}
.cal-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
}

/* --- Calendar Legend --- */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-sm);
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-dot.period { background: var(--color-danger-light); border: 1px solid var(--color-danger); }
.legend-dot.ovulation { background: var(--color-warning-light); border: 1px solid var(--color-warning); }
.legend-dot.fertile { background: rgba(245, 198, 170, 0.5); border: 1px solid var(--color-warning); }
.legend-dot.safe { background: var(--color-safe-light); border: 1px solid var(--color-safe); }

/* --- Day Detail Panel --- */
.day-panel {
  background: var(--color-surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--sp-xl);
  margin-top: var(--sp-lg);
  box-shadow: var(--shadow-md);
}

.day-panel-handle {
  width: 36px;
  height: 4px;
  background: var(--color-border-dark);
  border-radius: 2px;
  margin: 0 auto var(--sp-lg);
}

/* --- Record Sections --- */
.record-section {
  margin-bottom: var(--sp-xl);
}

.record-section h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

/* --- Emoji Grid --- */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
}

.emoji-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-md) var(--sp-sm);
  border-radius: var(--r-md);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--color-surface);
}

.emoji-item:active { transform: scale(0.95); }
.emoji-item.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-50);
  box-shadow: 0 0 0 2px var(--color-primary-50);
}

.emoji-item .emoji { font-size: 1.5rem; }
.emoji-item .emoji-label { font-size: var(--fs-xs); color: var(--color-text-secondary); }
.emoji-item.selected .emoji-label { color: var(--color-primary-dark); font-weight: 600; }

/* --- Flow Level Selector --- */
.flow-selector {
  display: flex;
  gap: var(--sp-sm);
}

.flow-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-md) var(--sp-sm);
  border-radius: var(--r-md);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--color-surface);
}

.flow-option.selected {
  border-color: var(--color-danger);
  background: var(--color-danger-light);
}

.flow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-danger-light);
  border: 1.5px solid var(--color-danger);
}

.flow-option[data-level="2"] .flow-dot { width: 16px; height: 16px; }
.flow-option[data-level="3"] .flow-dot { width: 20px; height: 20px; background: var(--color-danger); border-color: var(--color-danger-dark); }
.flow-option[data-level="4"] .flow-dot { width: 24px; height: 24px; background: var(--color-danger-dark); border-color: var(--color-danger-dark); }

.flow-label { font-size: var(--fs-xs); color: var(--color-text-secondary); }

/* --- Pain Scale --- */
.pain-scale {
  display: flex;
  gap: var(--sp-sm);
}

.pain-level {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1.5px solid var(--color-border);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pain-level.selected {
  color: white;
  border-color: transparent;
}

.pain-level[data-level="1"].selected { background: #7EC8A9; }
.pain-level[data-level="2"].selected { background: #AAD89B; }
.pain-level[data-level="3"].selected { background: #F5C6AA; }
.pain-level[data-level="4"].selected { background: #E8A0BF; }
.pain-level[data-level="5"].selected { background: #E88B9C; }

/* --- History Item --- */
.history-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 0.5px solid var(--color-border);
}

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

.history-date {
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}

.history-date .day { font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 800; color: var(--color-primary-dark); line-height: 1; }
.history-date .month { font-size: var(--fs-xs); color: var(--color-text-secondary); }

.history-content { flex: 1; }
.history-content .history-title { font-size: var(--fs-body); font-weight: 600; }
.history-content .history-tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }

/* --- Article Card (Horizontal) --- */
.article-h-card {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-md);
  background: var(--color-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}

.article-h-card:active { transform: scale(0.98); }

.article-h-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.article-h-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.article-h-body h4 { font-size: var(--fs-body); font-weight: 600; margin-bottom: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-h-body .article-meta { font-size: var(--fs-xs); color: var(--color-text-secondary); }

/* --- Scroll Cards --- */
.scroll-row {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  padding: 0 var(--sp-xl) var(--sp-sm);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar { display: none; }

.scroll-card {
  min-width: 200px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* --- Section Header --- */
.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg) 0 var(--sp-md);
}

.sec-header h3 { font-size: var(--fs-h3); font-weight: 700; }
.sec-header .sec-more { font-size: var(--fs-xs); color: var(--color-text-secondary); }

/* --- Modal / ActionSheet --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.modal-overlay.active { display: flex; }

.action-sheet {
  width: 375px;
  background: var(--color-surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--sp-xl) var(--sp-xl) calc(var(--sp-xl) + var(--safe-bottom));
  animation: slideUp 0.3s ease;
}

.action-sheet .sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--color-border-dark);
  border-radius: 2px;
  margin: 0 auto var(--sp-lg);
}

/* --- Toast --- */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: var(--color-text);
  color: white;
  font-size: var(--fs-small);
  font-weight: 500;
  border-radius: var(--r-full);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show { opacity: 1; }

/* --- Stat Row --- */
.stat-row {
  display: flex;
  gap: var(--sp-md);
}

.stat-box {
  flex: 1;
  text-align: center;
  padding: var(--sp-md);
  background: var(--color-bg-alt);
  border-radius: var(--r-lg);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

/* --- Navigation Header (Sub-pages) --- */
.nav-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-xl);
  height: 44px;
}

.nav-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  cursor: pointer;
}

.nav-title {
  flex: 1;
  text-align: center;
  font-size: var(--fs-body);
  font-weight: 600;
  margin-right: 32px;
}

/* --- Toggle Switch --- */
.toggle {
  width: 50px;
  height: 30px;
  background: var(--color-border-dark);
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle.on { background: var(--color-primary); }

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.toggle.on::after { transform: translateX(20px); }

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes ringFill { from { stroke-dashoffset: 565; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

.anim-fadeIn { animation: fadeIn 0.3s ease both; }
.anim-fadeInUp { animation: fadeInUp 0.4s ease both; }
.anim-scaleIn { animation: scaleIn 0.3s ease both; }
.anim-d1 { animation-delay: 0.05s; }
.anim-d2 { animation-delay: 0.1s; }
.anim-d3 { animation-delay: 0.15s; }
.anim-d4 { animation-delay: 0.2s; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-secondary { color: var(--color-text-secondary); }
.text-sm { font-size: var(--fs-small); }
.text-xs { font-size: var(--fs-xs); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }
.hidden { display: none !important; }

/* --- Scrollbar --- */
::-webkit-scrollbar { display: none; }
