/* ======= DASHBOARD PAGE STYLES ======= */

/* ======= DESIGN SYSTEM TOKENS ======= */
:root {
  --text-primary: rgba(241, 227, 255, 0.95);
  --text-secondary: rgba(226, 232, 240, 0.75);
  --text-muted: rgba(148, 163, 184, 0.55);
  --text-micro: rgba(148, 163, 184, 0.4);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-radius: 20px;
  --section-gap: 20px;
}

/* ======= SECTION LABEL SYSTEM ======= */
.section-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.section-icon { font-size: 0.85rem; }

/* ======= CARD CONSISTENCY ======= */
.biology-card,
.phs-graph-card,
.phs-timeline-card,
.phs-stat,
.wellness-card,
.sidebar-module {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.biology-card:hover,
.phs-graph-card:hover,
.phs-timeline-card:hover {
  border-color: rgba(192,132,252,0.15) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

/* ======= HERO PHASE CARD — UPGRADED ======= */
.hero-phase-card {
  position: relative;
  border-radius: 28px;
  padding: 36px 40px;
  overflow: hidden;
  transition: all 0.5s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hero-phase-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  width: fit-content;
}

.phase-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: chip-dot-pulse 2s ease-in-out infinite;
}

@keyframes chip-dot-pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:0.5; transform: scale(0.7); }
}

#heroEyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.85);
}

.hero-day-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hero-day-big {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.95);
  line-height: 1;
}

.hero-day-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.hero-phase-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 12px;
}

.hero-phase-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 480px;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-keywords .keyword-chip {
  padding: 5px 13px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.hero-energy-section {
  margin-bottom: 20px;
}

.hero-energy-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.energy-val-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  font-family: monospace;
  letter-spacing: 0;
}

.hero-energy-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  overflow: visible;
  margin-bottom: 6px;
}

.hero-energy-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1.5s cubic-bezier(0.25,1,0.5,1);
  position: relative;
}

.hero-energy-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

.hero-energy-desc {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

.hero-quote-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-quote-line {
  width: 3px;
  min-height: 100%;
  border-radius: 99px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
  align-self: stretch;
}

.hero-quote {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

/* ======= SIDEBAR MODULES — UPGRADED ======= */
.sidebar-module {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-module:hover {
  border-color: rgba(192,132,252,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.sm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sm-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(148,163,184,0.55);
  text-transform: uppercase;
}

.sm-log-btn {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(192,132,252,0.85);
  background: rgba(192,132,252,0.1);
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.sm-log-btn:hover {
  background: rgba(192,132,252,0.18);
  border-color: rgba(192,132,252,0.4);
}

.cycle-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.cycle-ring-svg {
  width: 100%;
  height: 100%;
}

#cycleRingFill {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.25,1,0.5,1);
}

.cycle-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.cycle-day-num {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(241,227,255,0.95);
  line-height: 1;
}

.cycle-day-word {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: rgba(148,163,184,0.5);
  text-transform: uppercase;
}

.cycle-meta-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cycle-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.cycle-meta-row:last-child { border-bottom: none; }

.cmr-label {
  font-size: 0.68rem;
  color: rgba(148,163,184,0.55);
}

.cmr-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(226,232,240,0.88);
}

.needs-content {
  font-size: 0.78rem;
  color: rgba(226,232,240,0.75);
  line-height: 1.65;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ======= WELLNESS GRID — UPGRADED ======= */
.wellness-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.wellness-card-new {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wellness-card-new:hover {
  border-color: rgba(192,132,252,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.wc-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(148,163,184,0.5);
  text-transform: uppercase;
}

.bmi-display-new {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.bmi-number-new {
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(241,227,255,0.95);
  line-height: 1;
}

.bmi-status-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}

.bmi-bar-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.bmi-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #3b82f6 0%, #22c55e 40%, #eab308 70%, #ef4444 100%);
  width: 100%;
  opacity: 0.4;
}

.bmi-bar-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
  transition: left 1s cubic-bezier(0.25,1,0.5,1);
}

.bmi-zones {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 4px;
}

.bmi-zone {
  font-size: 0.55rem;
  color: rgba(148,163,184,0.4);
  letter-spacing: 0.04em;
  text-align: center;
}

.bmi-advice-new {
  font-size: 0.72rem;
  color: rgba(148,163,184,0.6);
  line-height: 1.55;
  margin: 0;
}

.advice-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.advice-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.advice-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.advice-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.advice-type {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(148,163,184,0.5);
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.advice-text-new {
  font-size: 0.75rem;
  color: rgba(226,232,240,0.82);
  line-height: 1.55;
}

.advice-note {
  font-size: 0.68rem;
  color: rgba(148,163,184,0.5);
  line-height: 1.5;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ======= BIOLOGY CARD — UPGRADED ======= */
.biology-card-new {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.biology-card-new:hover {
  border-color: rgba(192,132,252,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.bio-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bio-icon { font-size: 1.4rem; margin-top: 2px; }

.bio-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(148,163,184,0.55);
  margin-bottom: 3px;
  text-transform: uppercase;
}

.bio-source {
  font-size: 0.58rem;
  color: rgba(192,132,252,0.5);
  letter-spacing: 0.04em;
}

.bio-text-new {
  font-size: 0.85rem;
  color: rgba(226,232,240,0.82);
  line-height: 1.7;
  margin: 0;
}

.bio-hormones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.hormone-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.h-name {
  font-size: 0.65rem;
  color: rgba(148,163,184,0.6);
  width: 100px;
  flex-shrink: 0;
}

.h-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

.h-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #c084fc, #f472b6);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.25,1,0.5,1);
}

.h-level {
  font-size: 0.6rem;
  font-family: monospace;
  color: rgba(192,132,252,0.7);
  letter-spacing: 0.06em;
  width: 50px;
  text-align: right;
}

/* ======= TRUST BAR ======= */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.65rem;
  color: rgba(148,163,184,0.4);
  letter-spacing: 0.03em;
}

/* ======= LIGHT MODE ADDITIONS ======= */
body.day-mode .section-title,
body.light .section-title,
[data-theme="light"] .section-title {
  color: rgba(100,80,140,0.55) !important;
}

body.day-mode .cycle-meta-row,
body.light .cycle-meta-row,
[data-theme="light"] .cycle-meta-row {
  border-bottom-color: rgba(192,132,252,0.08) !important;
}

body.day-mode .cmr-label,
body.light .cmr-label,
[data-theme="light"] .cmr-label {
  color: rgba(100,80,140,0.55) !important;
}

body.day-mode .cmr-value,
body.light .cmr-value,
[data-theme="light"] .cmr-value {
  color: #1a0a2e !important;
}

body.day-mode .bio-text-new,
body.light .bio-text-new,
[data-theme="light"] .bio-text-new {
  color: #1a0a2e !important;
}

body.day-mode .hormone-pill .h-name,
body.light .hormone-pill .h-name,
[data-theme="light"] .hormone-pill .h-name {
  color: rgba(100,80,140,0.6) !important;
}

body.day-mode .trust-bar,
body.light .trust-bar,
[data-theme="light"] .trust-bar {
  border-top-color: rgba(192,132,252,0.1) !important;
}

body.day-mode .trust-item,
body.light .trust-item,
[data-theme="light"] .trust-item {
  color: rgba(100,80,140,0.45) !important;
}

body.day-mode .wc-label,
body.light .wc-label,
[data-theme="light"] .wc-label,
body.day-mode .sm-label,
body.light .sm-label,
[data-theme="light"] .sm-label,
body.day-mode .bio-label,
body.light .bio-label,
[data-theme="light"] .bio-label {
  color: rgba(100,80,140,0.55) !important;
}

body.day-mode .bmi-number-new,
body.light .bmi-number-new,
[data-theme="light"] .bmi-number-new,
body.day-mode .cycle-day-num,
body.light .cycle-day-num,
[data-theme="light"] .cycle-day-num {
  color: #1a0a2e !important;
}

body.day-mode .bmi-advice-new,
body.light .bmi-advice-new,
[data-theme="light"] .bmi-advice-new,
body.day-mode .needs-content,
body.light .needs-content,
[data-theme="light"] .needs-content,
body.day-mode .advice-text-new,
body.light .advice-text-new,
[data-theme="light"] .advice-text-new {
  color: rgba(30,10,60,0.72) !important;
}

body.day-mode .sidebar-module,
body.light .sidebar-module,
[data-theme="light"] .sidebar-module,
body.day-mode .wellness-card-new,
body.light .wellness-card-new,
[data-theme="light"] .wellness-card-new,
body.day-mode .biology-card-new,
body.light .biology-card-new,
[data-theme="light"] .biology-card-new {
  background: rgba(255,255,255,0.9) !important;
  border-color: rgba(192,132,252,0.15) !important;
}

/* ======= MOBILE RESPONSIVE ======= */
@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr !important;
  }

  .right-sidebar,
  .dash-sidebar {
    display: none !important;
  }

  .hero-phase-name {
    font-size: 3rem !important;
  }

  .hero-phase-card {
    padding: 24px 20px !important;
  }

  .wellness-grid-new {
    grid-template-columns: 1fr !important;
  }

  .cheat-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .phs-stats-row {
    grid-template-columns: repeat(3,1fr) !important;
  }

  .trust-bar {
    gap: 16px !important;
    padding: 16px !important;
  }

  .trust-item {
    font-size: 0.6rem !important;
  }
}

@media (max-width: 480px) {
  .cheat-grid {
    grid-template-columns: 1fr !important;
  }

  .result-actions,
  .vib-res-actions {
    grid-template-columns: 1fr !important;
  }
}



.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* Nav */
.dash-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-6);
  background: rgba(8, 8, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

/* Light theme overrides */
[data-theme="light"] .dash-nav {
  background: rgba(250, 249, 246, 0.96) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Also override any inline styles that might be added dynamically */
[data-theme="light"] .dash-nav[style*="background"] {
  background: rgba(250, 249, 246, 0.96) !important;
}

.dash-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dash-logo span { color: var(--lime); }

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.dash-nav-link {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}

.dash-nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  border: none;
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main content */
.dash-main {
  padding: var(--s-6);
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

/* Hero Phase Card */
.phase-hero {
  border-radius: var(--r-xl);
  padding: 0;
  margin-bottom: var(--s-6);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.phase-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  border-radius: inherit;
}

.phase-hero > * { position: relative; z-index: 1; }
.phase-hero > .hero-phase-card { flex: 1; }

.phase-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.phase-hero-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--s-1) var(--s-3);
  background: var(--border);
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}

.phase-hero-day-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.phase-hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  line-height: 1;
  margin-bottom: var(--s-2);
}

.phase-hero-subtitle {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: var(--s-5);
}

/* Energy bar */
.energy-bar-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.energy-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  white-space: nowrap;
}

.energy-track {
  flex: 1;
  max-width: 200px;
  height: 6px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.energy-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.9);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.energy-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Rotating quote */
.phase-quote {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: var(--s-4);
  border-left: 2px solid var(--border);
  padding-left: var(--s-3);
  max-width: 500px;
}

/* Keyword chips */
.phase-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.keyword-chip {
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
  background: var(--border);
  backdrop-filter: blur(6px);
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Sections */
.section-title {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}

/* Conversation starters */
.starters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.starter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  cursor: none;
}

.starter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--lime);
}

.starter-card::before {
  content: '💬';
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  font-size: 0.8rem;
  opacity: 0.3;
}

.starter-card-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-subtle);
  margin-bottom: var(--s-2);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.starter-card-num::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.starter-card:hover .starter-card-num::before {
  opacity: 1;
  transform: scale(1.2);
}

.starter-card-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* Avoid section */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.avoid-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.avoid-card {
  background: linear-gradient(135deg, rgba(255, 96, 88, 0.08) 0%, rgba(255, 96, 88, 0.02) 100%);
  border: 1px dashed rgba(255, 96, 88, 0.4);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.avoid-card:hover {
  border-color: rgba(255, 96, 88, 0.8);
  animation: shake 0.5s ease;
}

.avoid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--coral);
  opacity: 0.7;
}

.avoid-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 96, 88, 0.3);
  transform: rotate(-5deg);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.avoid-card:hover::after {
  opacity: 1;
}

.avoid-x {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 96, 88, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--coral);
  font-family: var(--font-mono);
  animation: pulse 2s infinite;
}

.avoid-card:hover .avoid-x {
  background: rgba(255, 96, 88, 0.4);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.avoid-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Calendar */
.calendar-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
  box-shadow: var(--shadow-sm);
}

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

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-2);
}

.calendar-day-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: var(--s-2);
}

.cal-day {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  cursor: none;
  transition: transform var(--t-fast), background-color var(--t-fast);
  background-color: var(--bg);
}

.cal-day:hover {
  transform: scale(1.1);
  z-index: 2;
  background-color: var(--surface);
}

.cal-day-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cal-day-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cal-day.today .cal-day-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 10px currentColor;
}

.cal-day.today::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--text);
  border-radius: var(--r-sm);
  pointer-events: none;
}

.cal-day.future {
  opacity: 0.45;
}

.cal-day-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast);
  z-index: 10;
}

.cal-day:hover .cal-day-tooltip {
  opacity: 1;
}

/* Love language */
.love-lang-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
}

.love-lang-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}

.love-lang-name {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.love-lang-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Disclaimer */
.disclaimer-card {
  background: rgba(202, 255, 71, 0.04);
  border: 1px solid rgba(202, 255, 71, 0.15);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
}

.disclaimer-heading {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
  margin-bottom: var(--s-2);
}

.disclaimer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Sidebar */
.dash-sidebar {
  padding: var(--s-6);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}

.sidebar-card-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}

/* Progress arc */
.arc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}

.arc-svg-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.arc-svg-wrap svg {
  transform: rotate(-90deg);
}

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

.arc-day-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}

.arc-day-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.arc-info {
  width: 100%;
}

.arc-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.arc-info-row:last-child { border-bottom: none; }
.arc-info-label { color: var(--text-muted); font-family: var(--font-sub); }
.arc-info-val { font-family: var(--font-mono); color: var(--text); font-size: 0.8rem; }

/* Next phase card */
.next-phase-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.next-phase-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.next-phase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.next-phase-text {
  flex: 1;
}

.next-phase-name {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
}

.next-phase-days {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Footer accent dots */
.dash-footer {
  border-top: 1px solid var(--border);
  padding: var(--s-4) var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-footer-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-subtle);
}

/* Bottom sheet (mobile sidebar) */
.bottom-sheet {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--s-6);
  z-index: 800;
  transform: translateY(100%);
  transition: transform var(--t-slow);
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto var(--s-5);
}

.mobile-stats-btn {
  position: fixed;
  bottom: var(--s-5);
  right: var(--s-5);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lime);
  border: none;
  color: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 801;
  box-shadow: var(--shadow-lime);
  font-size: 1.1rem;
}

/* Skeleton loaders */
.skeleton-hero {
  height: 280px;
  border-radius: var(--r-xl);
  margin-bottom: var(--s-6);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.skeleton-card {
  height: 100px;
  border-radius: var(--r-lg);
}

/* Sign out */
.signout-btn {
  font-family: var(--font-sub);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}

.signout-btn:hover {
  color: var(--coral);
  background: rgba(255, 96, 88, 0.08);
}

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .dash-main {
    border-right: none;
    padding: var(--s-4);
  }

  .dash-sidebar {
    display: none;
  }

  .bottom-sheet { display: block; }
  .mobile-stats-btn { display: flex; }

  .starters-grid {
    grid-template-columns: 1fr;
  }

  .phase-hero {
    min-height: 220px;
    padding: var(--s-5) var(--s-5);
  }

  .phase-hero-name {
    font-size: 2.8rem;
  }

  .news-ticker-wrap {
    flex-direction: column;
    gap: 0;
  }
  .news-ticker-label {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--s-2) var(--s-4);
    text-align: center;
  }
  .news-ticker-track { padding: var(--s-2) 0; }

  .threat-segments {
    gap: var(--s-1);
  }
  .threat-seg { padding: var(--s-1) var(--s-2); font-size: .65rem; }

  .weather-card,
  .survival-card,
  .emergency-card,
  .phase-power-card { padding: var(--s-4); }

  .survival-tips-grid { gap: var(--s-2); }

  .phase-hero-eyebrow { font-size: .62rem; }
}

/* ─── NEWS TICKER ENHANCED ─── */
.news-ticker-wrap {
  display: flex;
  align-items: center;
  background: rgba(8, 8, 15, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-full);
  overflow: hidden;
  margin: var(--s-6) 0;
  backdrop-filter: blur(10px);
  position: relative;
}

.news-ticker-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--phase-color, var(--lime)) 0%, transparent 100%);
  opacity: 0.05;
}

.news-ticker-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phase-color, var(--lime));
  padding: var(--s-2) var(--s-6);
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.news-ticker-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--phase-color, var(--lime));
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.news-ticker-track {
  overflow: hidden;
  flex: 1;
  padding: var(--s-3) 0;
}

.news-ticker-inner {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-block;
  animation: ticker-scroll 60s linear infinite;
  padding-left: 20%;
}

.news-ticker-inner::after {
  content: attr(data-text);
  padding-left: 100px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ─── PHASE PARTICLES ─── */
.phase-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.phase-particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: .2; }
  33% { transform: translateY(-25px) scale(1.15) rotate(120deg); opacity: .7; }
  66% { transform: translateY(-10px) scale(.9) rotate(240deg); opacity: .4; }
  100% { transform: translateY(0) scale(1) rotate(360deg); opacity: .2; }
}

/* ─── PHASE ORB ─── */
.phase-orb {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  opacity: .35;
  animation: orb-breathe 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .25; }
  50% { transform: scale(1.15) rotate(12deg); opacity: .45; }
}

/* Hero eyebrow */
.phase-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--s-2);
  display: none;
}

.phase-hero-body { position: relative; z-index: 1; }

/* ─── THREAT CARD ─── */
.threat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
  display: none;
  position: relative;
  overflow: hidden;
}

.threat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  animation: scan-line 3s ease-in-out infinite;
}

@keyframes scan-line {
  0% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

.threat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}

.threat-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}

.threat-level-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
}

/* ─── TACTICAL COMMAND CENTER (PARTNER SIDE) ─── */
.command-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  width: 100%;
}

/* ─── TACTICAL COMMAND CENTER (MALE GRID OVERHAUL) ─── */
.male-tactical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: var(--s-6);
  width: 100%;
}

@media (max-width: 1024px) {
  .male-tactical-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--s-5);
  }
}

@media (max-width: 768px) {
  .male-tactical-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

.tactical-card {
  background: linear-gradient(135deg, rgba(8, 8, 15, 0.9) 0%, rgba(20, 20, 35, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.tactical-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none;
}

/* Radar Block Enhancements */
.radar-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 280px;
}

.radar-visual-wrap {
  width: 160px;
  height: 160px;
  position: relative;
  margin: var(--s-4) auto var(--s-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0% 80%, var(--phase-color, var(--lime)) 100%);
  opacity: 0.2;
  animation: radar-sweep 4s linear infinite;
  mask-image: radial-gradient(circle, transparent 40%, black 100%);
  -webkit-mask-image: radial-gradient(circle, transparent 40%, black 100%);
}

.radar-circle-static {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}

.radar-circle-dynamic {
  position: absolute;
  inset: 5px;
  border: 2px solid var(--phase-color, var(--lime));
  border-radius: 50%;
  clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); /* Dynamic based on % later? */
  opacity: 0.15;
}

.radar-intensity {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  z-index: 2;
  text-shadow: 0 0 20px var(--phase-color, var(--lime));
  animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
  from { text-shadow: 0 0 10px var(--phase-color, var(--lime)); }
  to { text-shadow: 0 0 40px var(--phase-color, var(--lime)), 0 0 80px var(--phase-color, var(--lime))40; }
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-intel-text {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  padding: 0 var(--s-2);
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Threat Gauge Upgrades */
.threat-segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin: var(--s-4) 0;
}

.threat-seg {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--r-full);
  font-size: 0.55rem;
  font-family: var(--font-mono);
  text-align: center;
  line-height: 28px; /* Offset label */
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.5s ease;
}

.threat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  margin-bottom: var(--s-1);
}

.threat-mission {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-top: var(--s-4);
  margin-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.threat-mission-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.threat-mission-name {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Weather Forecast */
.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
}

.weather-condition {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  padding: var(--s-2) var(--s-4);
  background: rgba(255,255,255,0.05);
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.1);
}

.weather-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--s-4);
}

.weather-rec {
  font-family: var(--font-sub);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--lime);
  line-height: 1.5;
  padding: var(--s-4);
  background: rgba(202, 255, 71, 0.05);
  border-left: 3px solid var(--lime);
  border-radius: var(--r-sm);
}

/* ─── TACTICAL TOOLKIT — 2-COLUMN CARD GRID ─── */
.survival-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: var(--s-4);
}

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

.survival-tip {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.06));
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-height: 120px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: default;
  position: relative;
}

.survival-tip:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 72, 153, 0.4);
}

/* Aliases for both naming conventions */
.tip-status-badge, .t-status {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: #86efac;
  letter-spacing: 0.12em;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 4px;
  padding: 2px 7px;
  width: fit-content;
}

.tip-icon, .t-icon {
  font-size: 2rem;
  line-height: 1;
  margin: 6px 0 2px;
  filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.4));
}

.tip-caption, .t-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1e3ff;
  letter-spacing: 0.02em;
}

.tip-intel, .t-desc {
  font-size: 0.72rem;
  color: rgba(203, 166, 247, 0.75);
  line-height: 1.45;
}

/* ─── ATMOSPHERIC INTEL CARD ─── */
.weather-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.weather-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  z-index: 5;
  position: relative;
}

.weather-summary {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.9);
  margin: 0;
}

.weather-rec {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  padding: 14px 20px;
  font-family: var(--font-sub);
  font-size: 0.82rem;
  color: rgba(216, 180, 254, 0.95);
  width: 100%;
  line-height: 1.6;
  box-sizing: border-box;
}

/* ─── ATMOSPHERIC PULSE METERS ─── */
.atmo-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  width: 100%;
}

.atmo-pulse-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pulse-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: rgba(203, 166, 247, 0.8);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pulse-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}

.pulse-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.pulse-pct {
  font-family: monospace;
  font-size: 0.65rem;
  color: rgba(244, 114, 182, 0.9);
  min-width: 28px;
  text-align: right;
}

/* Emergency Protocol */
.emergency-card {
  background: linear-gradient(135deg, rgba(255, 69, 69, 0.08) 0%, rgba(255, 69, 69, 0.02) 100%);
  border: 1px solid rgba(255, 69, 69, 0.2);
  padding: var(--s-6);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}

.emergency-header {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.emergency-text {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive Alignment Fixes */
@media (max-width: 1024px) {
  .command-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tactical-card {
    padding: var(--s-5);
  }
}

/* ─── PHASE POWER CARD (female) ─── */
.phase-power-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  margin-bottom: var(--s-5);
  display: none;
  position: relative;
  overflow: hidden;
}

.power-mode-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.power-mantra {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: var(--s-6);
  padding-left: var(--s-4);
  border-left: 3px solid currentColor;
}

.channel-tips {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.channel-tip {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}

.channel-tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.channel-tip-text {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── BIOLOGY CARD ─── */
.biology-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}

.biology-text {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── BMI & WELLNESS STYLES ─── */
.bmi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bmi-val-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.bmi-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
}

.bmi-category {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.bmi-gauge-wrap {
  margin: var(--s-4) 0;
}

.bmi-gauge-track {
  height: 6px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: var(--s-2);
}

.bmi-gauge-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--r-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bmi-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.bmi-advice {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-top: var(--s-2);
}

.wellness-brief-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: relative;
  overflow: hidden;
}

.wellness-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.wellness-item {
  display: flex;
  gap: var(--s-3);
  background: rgba(255,255,255,0.02);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.wellness-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.wellness-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.wellness-text {
  font-size: .84rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
}

.wellness-bio-tip {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  #wellnessSection > div {
    grid-template-columns: 1fr !important;
  }
  .wellness-grid {
    grid-template-columns: 1fr;
  }
}
/* ─── LIGHT THEME TACTICAL OVERRIDES ─── */
[data-theme="light"] .tactical-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  color: var(--text);
}

[data-theme="light"] .radar-status { color: var(--text-muted); }
[data-theme="light"] .radar-intensity { color: var(--text); }
[data-theme="light"] .radar-intel-text { color: var(--text-muted); }
[data-theme="light"] .threat-mission-name { color: var(--text); }
[data-theme="light"] .weather-summary { color: var(--text-muted); }
[data-theme="light"] .emergency-text { color: var(--text-muted); }

[data-theme="light"] .survival-tip {
  background: var(--bg-alt);
  border-color: var(--border);
}

[data-theme="light"] .survival-tip-title { color: var(--text); }
[data-theme="light"] .survival-tip-text { color: var(--text-muted); }

[data-theme="light"] .threat-seg.active {
  background: var(--coral);
  color: #fff;
}

/* ─── GLOBAL ROMANTIC WARMTH ─── */
.section-card:hover,
.dashboard-card:hover,
.tactical-card:hover {
  border-color: rgba(244, 114, 182, 0.25) !important;
  box-shadow: 0 4px 24px rgba(236, 72, 153, 0.08);
  transition: all 0.3s ease;
}

.section-title {
  background: linear-gradient(90deg, #f9a8d4, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes heartbeat-bg {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ===== CHEAT CODES BLOCK (CINEMATIC UPGRADE) ===== */
.cheat-codes-container {
  width: 100%;
  padding: 18px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cheat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cheat-terminal-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cheat-cursor {
  color: #a855f7;
  animation: cursor-blink 1s steps(1) infinite;
  font-size: 0.9rem;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cheat-label {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: rgba(192, 132, 252, 0.8);
  letter-spacing: 0.1em;
}

.cheat-armed {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 0.62rem;
  color: #86efac;
  letter-spacing: 0.12em;
}

.armed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 8px #86efac;
  animation: armed-pulse 1.5s ease-in-out infinite;
}

@keyframes armed-pulse {
  0%, 100% { box-shadow: 0 0 4px #86efac; transform: scale(1); }
  50% { box-shadow: 0 0 14px #86efac, 0 0 28px rgba(134,239,172,0.3); transform: scale(1.3); }
}

.cheat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

/* CARD BASE */
.cheat-card {
  position: relative;
  border-radius: 16px;
  padding: 15px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  cursor: default;
  background: linear-gradient(145deg,
    rgba(139, 92, 246, 0.06) 0%,
    rgba(236, 72, 153, 0.04) 100%
  );
  border: 1px solid rgba(236, 72, 153, 0.13);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  animation: card-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cheat-card[data-index="0"] { animation-delay: 0.05s; }
.cheat-card[data-index="1"] { animation-delay: 0.1s; }
.cheat-card[data-index="2"] { animation-delay: 0.15s; }
.cheat-card[data-index="3"] { animation-delay: 0.2s; }
.cheat-card[data-index="4"] { animation-delay: 0.25s; }
.cheat-card[data-index="5"] { animation-delay: 0.3s; }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* TOP SHIMMER LINE */
.cheat-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #ec4899, #a855f7, transparent);
  transition: left 0.5s ease;
}

.cheat-card:hover::before { left: 100%; }

/* HOVER GLOW RING */
.card-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(236,72,153,0.12) 0%, transparent 70%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cheat-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow:
    0 12px 32px rgba(236, 72, 153, 0.14),
    0 4px 12px rgba(139, 92, 246, 0.1),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.cheat-card:hover .card-glow-ring { opacity: 1; }

/* TIER BADGE */
.cheat-tier-badge {
  position: absolute;
  top: 10px; right: 11px;
  font-size: 0.6rem;
  font-weight: 900;
  font-family: monospace;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cheat-card[data-tier="S"] .cheat-tier-badge {
  background: rgba(251,191,36,0.12);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.35);
  box-shadow: 0 0 10px rgba(251,191,36,0.2);
  animation: s-tier-glow 2s ease-in-out infinite;
}

@keyframes s-tier-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(251,191,36,0.2); }
  50% { box-shadow: 0 0 16px rgba(251,191,36,0.5); }
}

.cheat-card[data-tier="A"] .cheat-tier-badge {
  background: rgba(167,139,250,0.12);
  color: #a78bfa;
  border: 1px solid rgba(167,139,250,0.3);
}

.cheat-card[data-tier="B"] .cheat-tier-badge {
  background: rgba(96,165,250,0.12);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.25);
}

/* EMOJI */
.cheat-emoji-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}

.cheat-emoji {
  font-size: 1.9rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(236,72,153,0.4));
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  z-index: 1;
}

.cheat-card:hover .cheat-emoji {
  transform: scale(1.25) rotate(-5deg);
  filter: drop-shadow(0 0 16px rgba(236,72,153,0.7));
}

.emoji-orbit {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(236,72,153,0.25);
  animation: orbit-spin 6s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.cheat-card:hover .emoji-orbit { opacity: 1; }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* TEXT */
.cheat-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1e3ff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.cheat-desc {
  font-size: 0.68rem;
  color: rgba(203,166,247,0.7);
  line-height: 1.5;
}

.cheat-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid rgba(236,72,153,0.08);
}

.cheat-xp {
  font-family: monospace;
  font-size: 0.62rem;
  color: #86efac;
  letter-spacing: 0.08em;
}

.cheat-cooldown {
  font-family: monospace;
  font-size: 0.58rem;
  color: rgba(148,163,184,0.5);
  letter-spacing: 0.06em;
}

/* WARNING FOOTER */
.cheat-warning-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.62rem;
  color: rgba(251,146,60,0.7);
  font-family: monospace;
  padding: 10px 14px;
  border: 1px solid rgba(251,146,60,0.15);
  border-radius: 10px;
  background: rgba(251,146,60,0.04);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.warn-icon { flex-shrink: 0; font-size: 0.8rem; }

/* ===== CRITICAL SAFETY PROTOCOL ===== */
.csp-container {
  width: 100%;
  padding: 18px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.csp-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.csp-icon { font-size: 1.1rem; animation: csp-shake 3s ease-in-out infinite; }

@keyframes csp-shake {
  0%,90%,100% { transform: rotate(0deg); }
  92% { transform: rotate(-8deg); }
  96% { transform: rotate(8deg); }
}

.csp-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(252, 165, 165, 0.9);
}

.csp-version {
  margin-left: auto;
  font-family: monospace;
  font-size: 0.58rem;
  color: rgba(148,163,184,0.4);
}

.csp-alert-box {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-left: 3px solid #ef4444;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.csp-alert-label {
  font-size: 0.6rem;
  font-family: monospace;
  color: #f87171;
  letter-spacing: 0.1em;
}

.csp-alert-text {
  font-size: 0.75rem;
  color: rgba(254, 202, 202, 0.85);
  line-height: 1.6;
}

.csp-rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.csp-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
  animation: rule-enter 0.4s ease both;
}

.csp-rule:nth-child(1) { animation-delay: 0.1s; }
.csp-rule:nth-child(2) { animation-delay: 0.18s; }
.csp-rule:nth-child(3) { animation-delay: 0.26s; }
.csp-rule:nth-child(4) { animation-delay: 0.34s; }

@keyframes rule-enter {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.csp-rule:hover {
  background: rgba(239,68,68,0.05);
  border-color: rgba(239,68,68,0.2);
}

.rule-num {
  font-family: monospace;
  font-size: 0.62rem;
  color: rgba(148,163,184,0.35);
  flex-shrink: 0;
  width: 18px;
}

.rule-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }

.rule-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(226,232,240,0.88);
}

.rule-sub {
  font-size: 0.65rem;
  color: rgba(148,163,184,0.6);
  line-height: 1.4;
}

.rule-threat {
  font-family: monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 5px;
  flex-shrink: 0;
  font-weight: 700;
}

.rule-threat.high {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}

.rule-threat.mid {
  background: rgba(251,146,60,0.1);
  color: #fb923c;
  border: 1px solid rgba(251,146,60,0.25);
}

.csp-footer { padding-top: 4px; }

.csp-status-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  color: rgba(148,163,184,0.5);
  font-family: monospace;
}

.csp-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
  animation: csp-status-blink 2s ease infinite;
}

@keyframes csp-status-blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.csp-threat-level {
  color: #fb923c;
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

/* ============================================
   NEW SMART PERIOD TRACKING UI
   ============================================ */

.period-check-card {
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: pcc-slide-in 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  flex-wrap: wrap;
}

@keyframes pcc-slide-in {
  from { opacity:0; transform: translateY(-12px) scale(0.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

.period-check-card.gentle {
  background: linear-gradient(135deg,
    rgba(244,114,182,0.12),
    rgba(192,132,252,0.08)
  );
  border: 1px solid rgba(244,114,182,0.25);
}

.period-check-card.late {
  background: linear-gradient(135deg,
    rgba(251,146,60,0.1),
    rgba(244,114,182,0.08)
  );
  border: 1px solid rgba(251,146,60,0.25);
  flex-direction: column;
  align-items: flex-start;
}

.pcc-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.pcc-icon { font-size: 1.8rem; flex-shrink: 0; }

.pcc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(241,227,255,0.95);
  margin-bottom: 3px;
}

.pcc-sub {
  font-size: 0.72rem;
  color: rgba(203,166,247,0.75);
  line-height: 1.5;
}

.pcc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.pcc-btn {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}

.pcc-btn.yes {
  background: linear-gradient(135deg, #f472b6, #c084fc);
  color: white;
  box-shadow: 0 4px 14px rgba(244,114,182,0.35);
}

.pcc-btn.yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,114,182,0.5);
}

.pcc-btn.no {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(148,163,184,0.8);
}

.pcc-btn.alt {
  background: rgba(251,146,60,0.12);
  border: 1px solid rgba(251,146,60,0.25);
  color: rgba(251,146,60,0.9);
}

.pcc-late-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(251,146,60,0.9);
  margin-bottom: 8px;
}

.pcc-late-body p {
  font-size: 0.78rem;
  color: rgba(226,232,240,0.75);
  line-height: 1.6;
  margin: 0 0 14px;
}

.pcc-reassurance {
  font-size: 0.65rem;
  color: rgba(148,163,184,0.5);
  font-style: italic;
  line-height: 1.5;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Date Modal */
.period-date-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.pdm-card {
  position: relative;
  z-index: 1;
  background: rgba(18,12,35,0.97);
  border: 1px solid rgba(244,114,182,0.2);
  border-radius: 24px;
  padding: 32px;
  width: 90%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: modal-bloom 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes modal-bloom {
  from { opacity:0; transform: scale(0.9); }
  to   { opacity:1; transform: scale(1); }
}

.pdm-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1e3ff;
  text-align: center;
}

.pdm-date-input {
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(244,114,182,0.25);
  border-radius: 14px;
  color: #e2e8f0;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.pdm-date-input:focus {
  border-color: rgba(244,114,182,0.5);
  box-shadow: 0 0 0 3px rgba(244,114,182,0.1);
}

.pdm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pdm-btn {
  padding: 13px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdm-btn.cancel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(148,163,184,0.8);
}

.pdm-btn.confirm {
  background: linear-gradient(135deg, #f472b6, #c084fc);
  border: none;
  color: white;
  box-shadow: 0 4px 14px rgba(244,114,182,0.3);
}

.pdm-btn.confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,114,182,0.45);
}

/* ============================================
   PERIOD HISTORY SECTION
   ============================================ */

.period-history-section {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phs-header { margin-bottom: 4px; }

.phs-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.phs-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.6);
  margin: 0;
}

.phs-accuracy {
  font-size: 0.62rem;
  font-family: monospace;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.06em;
}

.phs-subtitle {
  font-size: 0.68rem;
  color: rgba(148,163,184,0.5);
}

.phs-graph-card,
.phs-timeline-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 20px;
}

.phs-graph-label {
  font-size: 0.6rem;
  font-family: monospace;
  letter-spacing: 0.12em;
  color: rgba(148,163,184,0.5);
  margin-bottom: 16px;
}

.phs-chart-wrap {
  position: relative;
  width: 100%;
}

.phs-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phs-timeline-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: timeline-in 0.4s ease both;
}

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

@keyframes timeline-in {
  from { opacity:0; transform: translateX(-8px); }
  to   { opacity:1; transform: translateX(0); }
}

.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f472b6, #c084fc);
  box-shadow: 0 0 8px rgba(244,114,182,0.4);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(226,232,240,0.85);
  min-width: 100px;
}

.timeline-cycle {
  font-size: 0.68rem;
  color: rgba(148,163,184,0.6);
  flex: 1;
}

.timeline-length {
  font-family: monospace;
  font-size: 0.7rem;
  color: rgba(192,132,252,0.8);
  font-weight: 600;
}

.timeline-late-badge {
  font-size: 0.55rem;
  padding: 2px 7px;
  border-radius: 99px;
  font-family: monospace;
  letter-spacing: 0.06em;
}

.timeline-late-badge.early {
  background: rgba(34,197,94,0.1);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
}

.timeline-late-badge.late {
  background: rgba(251,146,60,0.1);
  color: #fb923c;
  border: 1px solid rgba(251,146,60,0.2);
}

.timeline-late-badge.ontime {
  background: rgba(192,132,252,0.1);
  color: #c084fc;
  border: 1px solid rgba(192,132,252,0.2);
}

.phs-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.phs-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phs-stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f472b6, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.phs-stat-label {
  font-size: 0.6rem;
  color: rgba(148,163,184,0.55);
  letter-spacing: 0.04em;
}

.phs-empty {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phs-empty-icon { font-size: 2.5rem; }

.phs-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(241,227,255,0.85);
}

.phs-empty-text {
  font-size: 0.78rem;
  color: rgba(148,163,184,0.6);
  line-height: 1.65;
  max-width: 300px;
}

@media (max-width: 640px) {
  .phs-stats-row { grid-template-columns: repeat(3, 1fr); }
  .phs-stats-row .phs-stat:nth-child(4),
  .phs-stats-row .phs-stat:nth-child(5) {
    grid-column: span 1;
  }
  .period-check-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Period History Reset Row */
.phs-reset-row {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 4px;
}

.phs-reset-btn {
  font-size: 0.62rem;
  color: rgba(148,163,184,0.4);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  padding: 4px 8px;
}

.phs-reset-btn:hover {
  color: rgba(239,68,68,0.6);
}
