:root {
  --forest: #15362d;
  --forest-deep: #0b1f1a;
  --moss: #375447;
  --gold: #cfab67;
  --gold-soft: #f0ddbb;
  --ivory: #f7f2ea;
  --mist: rgba(247, 242, 234, 0.78);
  --ink: #1f231f;
  --rosewood: #6b4a3e;
  --shadow: 0 24px 60px rgba(6, 17, 14, 0.28);
  --glow-gold: rgba(207, 171, 103, 0.15);
  --border-subtle: rgba(240, 221, 187, 0.1);
  --border-hover: rgba(207, 171, 103, 0.3);
  --surface: rgba(247, 242, 234, 0.06);
  --surface-hover: rgba(247, 242, 234, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ivory);
  background:
    radial-gradient(circle at top, rgba(240, 221, 187, 0.18), transparent 30%),
    radial-gradient(circle at 80% 60%, rgba(106, 170, 126, 0.04), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(107, 74, 62, 0.06), transparent 30%),
    linear-gradient(160deg, rgba(12, 38, 31, 0.96), rgba(7, 18, 15, 0.96)),
    #0a1714;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(207, 171, 103, 0.1), transparent 40%),
    radial-gradient(circle at bottom right, rgba(107, 74, 62, 0.24), transparent 28%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 120px;
}

.lang-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  justify-content: flex-end;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 187, 0.12);
  background: rgba(247, 242, 234, 0.04);
  color: rgba(247, 242, 234, 0.45);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  line-height: 1;
}

.lang-btn:hover {
  border-color: rgba(207, 171, 103, 0.3);
  color: rgba(247, 242, 234, 0.7);
}

.lang-btn.is-active {
  border-color: rgba(207, 171, 103, 0.4);
  background: rgba(207, 171, 103, 0.12);
  color: var(--gold-soft);
}

.lang-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(240, 221, 187, 0.15);
}

.page-shell::after {
  content: "\2661";
  display: block;
  text-align: center;
  font-size: 1.5rem;
  color: rgba(207, 171, 103, 0.12);
  margin-top: 56px;
  pointer-events: none;
}

.hero {
  padding: 42px;
  border: 1px solid rgba(240, 221, 187, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(23, 54, 45, 0.9), rgba(8, 23, 18, 0.88));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(240, 221, 187, 0.06);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(207, 171, 103, 0.15), transparent 40%, transparent 60%, rgba(106, 170, 126, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero:hover::after {
  opacity: 1;
}

.hero-home {
  text-align: center;
  padding: 72px 42px 60px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(207, 171, 103, 0.14), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(107, 74, 62, 0.1), transparent 50%),
    radial-gradient(circle at 50% 110%, rgba(106, 170, 126, 0.06), transparent 40%),
    linear-gradient(135deg, rgba(23, 54, 45, 0.92), rgba(8, 23, 18, 0.88));
  position: relative;
  overflow: hidden;
}

.hero-home::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 171, 103, 0.35), transparent);
}

.hero-home::after {
  content: "\2661";
  position: absolute;
  bottom: 16px;
  right: 32px;
  font-size: 3rem;
  color: rgba(207, 171, 103, 0.06);
  pointer-events: none;
  line-height: 1;
}

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

.hero-date {
  margin-top: 14px;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 234, 0.6);
}

.hero-date::before,
.hero-date::after {
  content: "\00b7";
  margin: 0 10px;
  color: rgba(207, 171, 103, 0.4);
}

.hero-counters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 28px;
  flex-wrap: wrap;
}

.hero-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(247, 242, 234, 0.06);
  border: 1px solid rgba(240, 221, 187, 0.1);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hero-pill:hover {
  border-color: rgba(207, 171, 103, 0.3);
  background: rgba(247, 242, 234, 0.08);
  box-shadow: 0 0 20px rgba(207, 171, 103, 0.08);
}

.hero-pill-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1;
  text-shadow: 0 0 20px rgba(240, 221, 187, 0.15);
}

.hero-pill-label {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 242, 234, 0.5);
}

.hero-home blockquote {
  margin: 0 auto;
  max-width: 28rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(240, 221, 187, 0.78);
  position: relative;
  padding: 0 28px;
}

.hero-home blockquote::before {
  content: "\201C";
  position: absolute;
  left: -4px;
  top: -10px;
  font-size: 2.8rem;
  color: rgba(207, 171, 103, 0.2);
  font-style: normal;
  line-height: 1;
}

.hero-home h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 24px rgba(207, 171, 103, 0.12),
    0 40px 60px rgba(0, 0, 0, 0.15);
}

.hero-home h1 span {
  color: var(--gold);
  display: inline-block;
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(207, 171, 103, 0.3));
  animation: heartPulse 3s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1.1); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 18px rgba(207, 171, 103, 0.45)); }
}

.hub-card {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hub-card::before,
.hub-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(106, 170, 126, 0.12), transparent 38%),
    radial-gradient(circle at top right, rgba(207, 171, 103, 0.14), transparent 26%);
  pointer-events: none;
}

.hub-card-copy,
.hub-card-grid,
.hub-card-cta,
.hub-banner > * {
  position: relative;
  z-index: 1;
}

.hub-card-text {
  margin: 12px 0 0;
  color: rgba(247, 242, 234, 0.82);
  line-height: 1.7;
}

.hub-card-grid,
.hub-roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hub-mini,
.hub-roadmap-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(240, 221, 187, 0.08);
  background: rgba(9, 24, 20, 0.42);
}

.hub-mini-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hub-mini strong,
.hub-roadmap-item strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 500;
}

.hub-mini p,
.hub-roadmap-item p {
  margin: 8px 0 0;
  color: rgba(247, 242, 234, 0.76);
  line-height: 1.65;
}

.hub-card-cta {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hub-detail-shell {
  display: grid;
  gap: 18px;
}

.hub-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 20px;
  align-items: start;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(240, 221, 187, 0.1);
  background: rgba(247, 242, 234, 0.04);
  overflow: hidden;
}

.hub-banner h2 {
  margin: 0;
}

.hub-banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: center;
  justify-content: flex-end;
}

.hub-banner-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 187, 0.12);
  background: rgba(10, 24, 20, 0.54);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 242, 234, 0.84);
}

.hero h1,
.panel h2,
.login-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.9;
}

.hero h1 span {
  color: var(--gold);
}

.subtitle,
.caption,
.phase-copy,
.note-panel p,
.login-copy {
  color: rgba(247, 242, 234, 0.84);
}

.login-copy {
  margin-top: 4px;
  font-size: 0.95rem;
  color: rgba(247, 242, 234, 0.55);
}

.eyebrow,
.section-kicker,
.stat-label,
.timeline-date {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

.eyebrow,
.section-kicker {
  color: var(--gold-soft);
  position: relative;
  display: inline-block;
}

.section-kicker::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(207, 171, 103, 0.35);
  margin-top: 8px;
}

.counter-grid,
.content-grid,
.cycle-grid {
  display: grid;
  gap: 18px;
}

.counter-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 28px 0 24px;
}

.counter-grid article,
.cycle-grid > div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(247, 242, 234, 0.06);
  border: 1px solid rgba(247, 242, 234, 0.08);
}

.stat-value {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-soft);
}

.stat-value.small,
.phase-name {
  font-size: 1.9rem;
}

blockquote {
  margin: 0;
  max-width: 28rem;
  font-size: 1.05rem;
  color: rgba(240, 221, 187, 0.88);
}

.content-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 24px;
}

.widget-grid-span {
  grid-column: 1 / -1;
}

.widget-grid-intro {
  padding-bottom: 18px;
}

/* ── Homepage Grid ── */

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.home-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(23, 54, 45, 0.92), rgba(8, 23, 18, 0.88));
  position: relative;
  overflow: hidden;
  border-color: rgba(207, 171, 103, 0.15);
}

.home-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 171, 103, 0.3), transparent);
}

.home-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(207, 171, 103, 0.04), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(106, 170, 126, 0.03), transparent 40%);
  pointer-events: none;
}

.home-featured-copy {
  position: relative;
  z-index: 1;
}

.home-featured-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.home-featured-caption {
  margin: 8px 0 0;
  color: rgba(247, 242, 234, 0.72);
  line-height: 1.6;
  max-width: 42ch;
  font-size: 0.85rem;
}

.home-featured-frame {
  aspect-ratio: 5 / 3;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 0 40px rgba(207, 171, 103, 0.04);
  border: 1px solid rgba(240, 221, 187, 0.12);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.home-featured:hover .home-featured-frame {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35), 0 0 50px rgba(207, 171, 103, 0.08);
  transform: scale(1.01);
}

.home-card {
  display: flex;
  flex-direction: column;
}

.home-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.home-card-inner h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.home-card-inner p {
  margin: 10px 0 0;
  color: rgba(247, 242, 234, 0.72);
  line-height: 1.7;
  font-size: 0.92rem;
  flex: 1;
}

.home-card-wide {
  grid-column: 1 / -1;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  position: relative;
}

.home-cta::after {
  content: "\2192";
  transition: transform 0.25s ease;
  font-size: 0.8rem;
}

.home-card:hover .home-cta::after,
.home-featured:hover .home-cta::after {
  transform: translateX(3px);
}

.home-card:hover .home-cta,
.home-featured:hover .home-cta {
  color: var(--ivory);
}

.home-vision {
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

.home-vision-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  border-radius: 18px;
  background: rgba(207, 171, 103, 0.08);
  border: 1px solid rgba(207, 171, 103, 0.15);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-card:hover .home-vision-icon {
  background: rgba(207, 171, 103, 0.14);
  border-color: rgba(207, 171, 103, 0.3);
  box-shadow: 0 0 24px rgba(207, 171, 103, 0.1);
}

/* ── Currency Card ── */

.currency-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px !important;
}

.currency-card .panel-heading {
  margin-bottom: 2px;
}

.currency-card .panel-heading h2 {
  font-size: 1.1rem;
}

.currency-rate-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  padding: 4px 0 8px;
}

.currency-rate {
  color: var(--gold-soft);
}

.currency-rate-swap {
  color: rgba(247, 242, 234, 0.4);
  font-size: 0.6rem;
}

.currency-body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.currency-calc {
  display: flex;
  gap: 8px;
  flex: 1;
}

.currency-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.currency-label {
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 242, 234, 0.45);
}

.currency-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(240, 221, 187, 0.12);
  background: rgba(8, 23, 18, 0.48);
  color: var(--ivory);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.18s;
  box-sizing: border-box;
}

.currency-input:focus {
  border-color: rgba(207, 171, 103, 0.36);
}

.currency-quick-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.currency-quick-btn {
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(207, 171, 103, 0.15);
  background: rgba(207, 171, 103, 0.06);
  color: var(--gold-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.currency-quick-btn:hover {
  background: rgba(207, 171, 103, 0.16);
  border-color: rgba(207, 171, 103, 0.3);
}

.currency-chart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(247, 242, 234, 0.3);
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.15s;
}

.currency-chart-toggle:hover {
  color: var(--gold-soft);
}

.currency-chart-toggle::before {
  content: "\25B6";
  font-size: 0.45rem;
  transition: transform 0.2s;
}

.currency-chart-toggle.open::before {
  transform: rotate(90deg);
}

.currency-chart-section {
  display: none;
  margin-top: 4px;
}

.currency-chart-section.open {
  display: block;
}

.currency-ref {
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  color: rgba(247, 242, 234, 0.35);
  text-align: center;
  margin: 2px 0 0;
}

.currency-range-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.currency-range-btn {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 187, 0.12);
  background: rgba(8, 23, 18, 0.48);
  color: rgba(247, 242, 234, 0.5);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.currency-range-btn:hover {
  border-color: rgba(207, 171, 103, 0.3);
}

.currency-range-btn.is-active {
  border-color: rgba(207, 171, 103, 0.42);
  background: rgba(207, 171, 103, 0.16);
  color: var(--ivory);
}

.currency-chart-wrap {
  position: relative;
  width: 100%;
  max-height: 140px;
}

.currency-chart-wrap canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 140px;
}

/* ── Cycle Home Preview ── */

.cycle-home-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(135deg, rgba(106,170,126,0.08), rgba(155,107,107,0.05)) !important;
  border-color: rgba(106,170,126,0.18) !important;
  position: relative;
  overflow: hidden;
}

.cycle-home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(106,170,126,0.35), transparent);
  border-radius: 24px 24px 0 0;
}

.cycle-home-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(106,170,126,0.06), transparent 70%);
  pointer-events: none;
  animation: cycleAmbient 8s ease-in-out infinite alternate;
}

@keyframes cycleAmbient {
  from { transform: translate(0, 0); }
  to { transform: translate(-15px, -10px); }
}

.cycle-home-top {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.cycle-home-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.cycle-home-day-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: #6aaa7e;
  text-shadow: 0 0 24px rgba(106, 170, 126, 0.2);
}

.cycle-home-day-lbl {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,242,234,0.35);
  margin-top: 0.2rem;
  font-family: "DM Mono", monospace;
}

.cycle-home-phase {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #f7f2ea;
}

.cycle-home-desc {
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(247,242,234,0.6);
  margin-top: 0.2rem;
}

.cycle-home-hormones {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.cycle-home-hormones .ch-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cycle-home-hormones .ch-bar label {
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,242,234,0.3);
  font-family: "DM Mono", monospace;
  min-width: 28px;
}

.cycle-home-hormones .ch-bar .ch-track {
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  overflow: hidden;
}

.cycle-home-hormones .ch-bar .ch-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 1s;
}

.cycle-home-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.cycle-home-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(106,170,126,0.2);
  color: rgba(247,242,234,0.65);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  background: rgba(106,170,126,0.06);
}

.cycle-home-btn:hover {
  border-color: #6aaa7e;
  color: #f7f2ea;
  background: rgba(106,170,126,0.14);
}

.cycle-home-btn.primary {
  background: #6aaa7e;
  color: #081712;
  border-color: #6aaa7e;
  font-weight: 700;
}

.cycle-home-btn.primary:hover {
  background: #7dbb91;
  border-color: #7dbb91;
}

/* ── Scroll Reveal ── */

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

.hero-home {
  animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-grid .panel {
  animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-grid .panel:nth-child(1) { animation-delay: 0.05s; }
.home-grid .panel:nth-child(2) { animation-delay: 0.1s; }
.home-grid .panel:nth-child(3) { animation-delay: 0.15s; }
.home-grid .panel:nth-child(4) { animation-delay: 0.2s; }
.home-grid .panel:nth-child(5) { animation-delay: 0.25s; }
.home-grid .panel:nth-child(6) { animation-delay: 0.3s; }
.home-grid .panel:nth-child(7) { animation-delay: 0.35s; }
.home-grid .panel:nth-child(8) { animation-delay: 0.4s; }
.home-grid .panel:nth-child(9) { animation-delay: 0.45s; }
.home-grid .panel:nth-child(10) { animation-delay: 0.5s; }

.subpage-shell {
  max-width: 980px;
}

.panel {
  padding: 26px;
  border-radius: 24px;
  background: rgba(247, 242, 234, 0.06);
  border: 1px solid rgba(240, 221, 187, 0.1);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(240, 221, 187, 0.04);
  backdrop-filter: blur(8px);
  position: relative;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(207, 171, 103, 0.06), transparent 70%);
}

.panel:hover::after {
  opacity: 1;
}

.panel:hover {
  box-shadow:
    0 30px 70px rgba(6, 17, 14, 0.32),
    inset 0 1px 0 rgba(240, 221, 187, 0.06);
}

.cycle-preview-card,
.widget-card,
.back-link {
  text-decoration: none;
}

.cycle-preview-card,
.widget-card {
  color: inherit;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.35s ease;
}

.cycle-preview-card:hover,
.widget-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 171, 103, 0.3);
  background: rgba(247, 242, 234, 0.08);
  box-shadow:
    0 32px 72px rgba(6, 17, 14, 0.35),
    0 0 50px rgba(207, 171, 103, 0.04),
    inset 0 1px 0 rgba(240, 221, 187, 0.06);
}

.cycle-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.cycle-preview-cta {
  margin-top: 18px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.cycle-panel-full {
  padding: 30px;
}

.widget-detail-shell {
  padding: 30px;
}

.widget-page-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.widget-page-copy {
  margin: 10px 0 0;
  color: rgba(247, 242, 234, 0.84);
  max-width: 52rem;
}

.widget-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.widget-subpanel {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(240, 221, 187, 0.1);
  background: rgba(247, 242, 234, 0.04);
}

.widget-subpanel-wide {
  grid-column: 1 / -1;
}

.widget-subhead h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.widget-hero-image {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
}

.widget-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.widget-meta-block {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.widget-meta-line {
  margin: 0;
  color: rgba(247, 242, 234, 0.84);
}

.widget-code-block {
  margin: 14px 0 0;
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(240, 221, 187, 0.1);
  background: rgba(8, 23, 18, 0.72);
  color: var(--gold-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.7;
}

.widget-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.widget-list-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(240, 221, 187, 0.08);
  background: rgba(11, 31, 26, 0.42);
}

.widget-list-item strong {
  display: block;
  margin-bottom: 6px;
}

.widget-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.widget-gallery-item {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(240, 221, 187, 0.08);
  background: rgba(11, 31, 26, 0.42);
}

.widget-gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.widget-gallery-copy {
  padding: 12px;
}

.widget-gallery-copy strong {
  display: block;
}

.widget-gallery-copy p {
  margin: 6px 0 0;
  color: rgba(247, 242, 234, 0.8);
  font-size: 0.9rem;
}

.widget-muted {
  color: rgba(247, 242, 234, 0.72);
}

.vision-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.vision-card::before,
.vision-hero::before,
.travel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(207, 171, 103, 0.14), transparent 38%),
    radial-gradient(circle at right, rgba(106, 170, 126, 0.12), transparent 30%);
  pointer-events: none;
}

.vision-card > *,
.vision-hero > *,
.travel-hero > * {
  position: relative;
  z-index: 1;
}

.vision-lock {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  position: relative;
}

.vision-lock-large {
  float: right;
  margin: 0 0 10px 18px;
}

.vision-key {
  position: absolute;
  left: 0;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold-soft);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: "DM Mono", monospace;
  font-weight: 700;
}

.vision-key::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 18px;
  width: 34px;
  height: 4px;
  background: var(--gold-soft);
  box-shadow: 18px 0 0 rgba(240, 221, 187, 0.7);
}

.vision-pad {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: 52px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #ead19b);
  box-shadow: 0 16px 30px rgba(6, 17, 14, 0.28);
}

.vision-pad::after {
  content: "";
  position: absolute;
  inset: 14px 22px 12px;
  border-radius: 999px;
  background: var(--forest-deep);
}

.vision-shackle {
  position: absolute;
  left: 11px;
  top: -30px;
  width: 30px;
  height: 38px;
  border: 6px solid var(--gold-soft);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.vision-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.vision-board-tile h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.15rem;
}

.vision-board-tile p {
  color: rgba(247, 242, 234, 0.84);
  line-height: 1.7;
}

.vision-board-travel {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(8, 23, 18, 0.18), rgba(8, 23, 18, 0.76)),
    url("https://tse3.mm.bing.net/th/id/OIP.Pu-RtG1VkQJ0IkRMVMBeLgHaE8?pid=Api") center/cover;
}

.vision-mini-list,
.travel-checklist {
  margin: 16px 0 0;
  padding-left: 1.2rem;
  color: rgba(247, 242, 234, 0.82);
  line-height: 1.7;
}

.travel-shell {
  max-width: 1120px;
}

.travel-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.travel-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.travel-hero-stats span,
.travel-jump a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 187, 0.13);
  background: rgba(11, 31, 26, 0.46);
  color: var(--gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.travel-hero-image {
  margin: 0;
}

.travel-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(240, 221, 187, 0.12);
}

.travel-hero-image figcaption {
  margin-top: 8px;
  color: rgba(247, 242, 234, 0.72);
  font-size: 0.86rem;
}

.travel-note,
.travel-jump,
.travel-region,
.trip-wiki-section {
  margin-top: 18px;
}

.travel-source-section {
  display: none !important;
}

.travel-note p {
  margin: 0;
  line-height: 1.75;
  color: rgba(247, 242, 234, 0.84);
}

.travel-note p + p {
  margin-top: 10px;
}

.travel-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.travel-region h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.travel-day {
  position: relative;
  margin-top: 14px;
  margin-left: 24px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.travel-day::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -14px;
  bottom: -18px;
  width: 3px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(207, 171, 103, 0.72) 0 18px,
      transparent 18px 30px
    );
}

.travel-day::after {
  content: "";
  position: absolute;
  left: -24px;
  top: 32px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(207, 171, 103, 0.13);
}

.travel-day:hover,
.travel-day:focus,
.travel-day.is-active-wiki {
  border-color: rgba(207, 171, 103, 0.34);
  background: rgba(14, 39, 32, 0.72);
  transform: translateX(2px);
  outline: none;
}

.trip-wiki-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.3fr) minmax(0, 0.7fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
  min-height: calc(100vh - 44px);
}

.trip-wiki-selector {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.trip-wiki-selector-head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.trip-folder-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trip-folder-tabs button {
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(240, 221, 187, 0.1);
  background: rgba(8, 23, 18, 0.48);
  color: rgba(247, 242, 234, 0.78);
  font: inherit;
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.trip-folder-tabs button:hover,
.trip-folder-tabs button:focus,
.trip-folder-tabs button.is-active {
  border-color: rgba(207, 171, 103, 0.42);
  background: rgba(207, 171, 103, 0.16);
  color: var(--ivory);
  outline: none;
}

.trip-wiki-list {
  display: grid;
  gap: 7px;
  align-content: start;
}

.trip-wiki-option {
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px 8px 26px;
  border-radius: 11px;
  border: 1px solid rgba(240, 221, 187, 0.08);
  background: rgba(8, 23, 18, 0.44);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.trip-wiki-option::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -7px;
  bottom: -7px;
  border-left: 2px dashed rgba(207, 171, 103, 0.2);
}

.trip-wiki-option::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(207, 171, 103, 0.11);
}

.trip-wiki-option:hover,
.trip-wiki-option:focus,
.trip-wiki-option.is-active {
  background: rgba(247, 242, 234, 0.08);
  border-color: rgba(207, 171, 103, 0.38);
  transform: translateX(2px);
  outline: none;
}

.trip-wiki-option span {
  color: var(--gold-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trip-wiki-option strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

.trip-wiki-empty {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(240, 221, 187, 0.14);
  color: rgba(247, 242, 234, 0.72);
}

.trip-wiki-panel {
  position: sticky;
  top: 18px;
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: minmax(220px, 36vh) 1fr;
  overflow: hidden;
  padding: 0;
}

.trip-wiki-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: rgba(8, 23, 18, 0.62);
}

.trip-wiki-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.04);
}

.trip-wiki-media-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.trip-wiki-media-overlay span,
.trip-wiki-media-overlay strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(4, 13, 10, 0.78);
  border: 1px solid rgba(240, 221, 187, 0.12);
  color: var(--ivory);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trip-wiki-copy {
  padding: 20px;
  overflow: auto;
}

.trip-wiki-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.trip-wiki-copy > p:not(.section-kicker) {
  color: rgba(247, 242, 234, 0.86);
  font-size: 1.02rem;
  line-height: 1.72;
}

.trip-wiki-tags,
.trip-wiki-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trip-wiki-tags b,
.trip-wiki-links a {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 187, 0.12);
  background: rgba(8, 23, 18, 0.48);
  color: var(--gold-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.trip-wiki-links a:hover,
.trip-wiki-links a:focus {
  border-color: rgba(207, 171, 103, 0.42);
  color: var(--ivory);
}

.trip-wiki-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.trip-wiki-columns section {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(240, 221, 187, 0.08);
  background: rgba(8, 23, 18, 0.38);
}

.trip-wiki-columns h3 {
  margin: 0 0 6px;
  color: var(--gold-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trip-wiki-columns p {
  margin: 0;
  color: rgba(247, 242, 234, 0.8);
  line-height: 1.58;
}

.travel-day-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(207, 171, 103, 0.14);
  color: var(--gold-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.travel-country-tag {
  display: inline-flex;
  margin: 0 0 10px 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 23, 18, 0.48);
  border: 1px solid rgba(240, 221, 187, 0.1);
  color: rgba(247, 242, 234, 0.82);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.travel-day h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.05;
}

.travel-day p {
  margin: 10px 0 0;
  color: rgba(247, 242, 234, 0.84);
  line-height: 1.72;
}

.travel-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.travel-map-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: center;
}

.travel-map-copy h2,
.travel-section-heading h2,
.travel-feature-card h3,
.travel-restaurant-card h3,
.travel-map-link h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

.travel-map-copy h2,
.travel-section-heading h2,
.travel-map-link h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.travel-map-copy p,
.travel-section-heading p,
.travel-map-link p,
.travel-feature-card p,
.travel-restaurant-card p {
  color: rgba(247, 242, 234, 0.82);
  line-height: 1.7;
}

.route-map {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  border: 1px solid rgba(240, 221, 187, 0.1);
  background:
    radial-gradient(circle at 22% 18%, rgba(106, 170, 126, 0.18), transparent 18%),
    radial-gradient(circle at 72% 72%, rgba(207, 171, 103, 0.18), transparent 20%),
    rgba(8, 23, 18, 0.44);
  overflow: hidden;
}

.route-line {
  position: absolute;
  inset: 48px 60px;
  border-left: 3px solid rgba(207, 171, 103, 0.52);
  border-bottom: 3px solid rgba(207, 171, 103, 0.52);
  border-radius: 0 0 0 80px;
}

.route-line::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 68%;
  height: 52%;
  border-top: 3px solid rgba(207, 171, 103, 0.52);
  border-right: 3px solid rgba(207, 171, 103, 0.52);
  border-radius: 0 80px 0 0;
}

.route-line::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -3px;
  width: 48%;
  height: 34%;
  border-right: 3px solid rgba(207, 171, 103, 0.52);
  border-bottom: 3px solid rgba(207, 171, 103, 0.52);
  border-radius: 0 0 70px 0;
}

.route-stop {
  position: absolute;
  width: min(190px, 42%);
  padding: 10px 12px 10px 44px;
  border-radius: 14px;
  border: 1px solid rgba(240, 221, 187, 0.12);
  background: rgba(11, 31, 26, 0.82);
  box-shadow: 0 16px 34px rgba(6, 17, 14, 0.26);
}

.route-stop span {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--forest-deep);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.route-stop strong,
.route-stop em {
  display: block;
}

.route-stop strong {
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.route-stop em {
  color: rgba(247, 242, 234, 0.7);
  font-style: normal;
  font-size: 0.82rem;
}

.flag-code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(207, 171, 103, 0.14);
  color: var(--gold-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.route-stop-1 { left: 6%; top: 8%; }
.route-stop-2 { left: 38%; top: 6%; }
.route-stop-3 { left: 55%; top: 25%; }
.route-stop-4 { left: 16%; top: 36%; }
.route-stop-5 { left: 48%; top: 48%; }
.route-stop-6 { left: 10%; top: 64%; }
.route-stop-7 { left: 42%; top: 72%; }
.route-stop-8 { right: 5%; bottom: 5%; }

.travel-map-links,
.travel-photo-grid,
.travel-feature-grid,
.travel-restaurant-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.travel-map-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.travel-photo-section,
.travel-restaurant-section {
  margin-top: 18px;
}

.travel-photo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.travel-photo-card {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(240, 221, 187, 0.1);
  background: rgba(8, 23, 18, 0.62);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.travel-photo-large {
  grid-column: span 2;
  grid-row: span 2;
}

.travel-photo-wide {
  grid-column: span 2;
}

.travel-photo-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.25s ease;
}

.travel-photo-card:hover img {
  transform: scale(1.03);
}

.travel-photo-card:hover,
.travel-photo-card:focus,
.travel-photo-card.is-active-wiki,
.travel-feature-card:hover,
.travel-feature-card:focus,
.travel-feature-card.is-active-wiki {
  border-color: rgba(207, 171, 103, 0.38);
  transform: translateY(-2px);
  outline: none;
}

.travel-photo-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(4, 13, 10, 0.92));
}

.travel-photo-card strong,
.travel-photo-card span {
  display: block;
}

.travel-photo-card strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
}

.travel-photo-card span {
  color: rgba(247, 242, 234, 0.78);
  line-height: 1.45;
}

.travel-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.travel-feature-heading {
  grid-column: 1 / -1;
}

.travel-feature-card span,
.travel-restaurant-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.travel-feature-card h3,
.travel-restaurant-card h3 {
  font-size: 1.8rem;
  line-height: 1.05;
}

.travel-feature-card {
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.travel-restaurant-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.restaurant-wiki {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.restaurant-selector {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.restaurant-pick {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 10px 12px 10px 30px;
  border-radius: 12px;
  border: 1px solid rgba(240, 221, 187, 0.08);
  background: rgba(8, 23, 18, 0.48);
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.restaurant-pick::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -8px;
  bottom: -8px;
  border-left: 2px dashed rgba(207, 171, 103, 0.24);
}

.restaurant-pick::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 19px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(207, 171, 103, 0.12);
}

.restaurant-pick:first-child::before {
  top: 19px;
}

.restaurant-pick:last-child::before {
  bottom: calc(100% - 19px);
}

.restaurant-pick:hover,
.restaurant-pick:focus,
.restaurant-pick.is-active-wiki {
  background: rgba(247, 242, 234, 0.08);
  border-color: rgba(207, 171, 103, 0.36);
  transform: translateX(2px);
}

.restaurant-wiki-prompt {
  position: sticky;
  top: 18px;
  min-height: 360px;
  display: grid;
  align-content: center;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(8, 23, 18, 0.9), rgba(11, 31, 26, 0.68)),
    url("https://tse1.mm.bing.net/th?q=road+map+mountain+route+restaurant+travel&w=1200&h=800&c=7&rs=1&p=0&o=5&pid=1.7") center / cover;
}

.restaurant-wiki-prompt h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.restaurant-wiki-prompt p {
  max-width: 58ch;
  color: rgba(247, 242, 234, 0.82);
  line-height: 1.7;
}

.restaurant-pick span {
  grid-column: 1 / -1;
  color: var(--gold-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.restaurant-pick strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restaurant-pick em {
  color: rgba(247, 242, 234, 0.68);
  font-style: normal;
  font-size: 0.82rem;
  white-space: nowrap;
}

.restaurant-info-stack {
  display: grid;
  gap: 14px;
}

.restaurant-info-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  scroll-margin-top: 18px;
}

.restaurant-info-card img {
  width: 100%;
  height: 100%;
  min-height: 164px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(240, 221, 187, 0.1);
}

.restaurant-info-copy {
  min-width: 0;
}

.restaurant-info-copy span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.restaurant-info-copy h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.02;
}

.restaurant-info-copy p {
  margin: 8px 0 0;
  color: rgba(247, 242, 234, 0.82);
  line-height: 1.58;
}

.restaurant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.restaurant-tags b {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 187, 0.1);
  background: rgba(11, 31, 26, 0.52);
  color: rgba(247, 242, 234, 0.78);
  font-size: 0.7rem;
  font-weight: 600;
}

.restaurant-info-copy a {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.restaurant-info-copy a:hover,
.restaurant-info-copy a:focus {
  text-decoration: underline;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel h2,
.login-card h2 {
  font-size: 2.2rem;
}

.cycle-section {
  --c-canopy: #6aaa7e;
  --c-mist: #b8d4be;
  --c-ivory: #f5f0e8;
  --c-phase: var(--c-canopy);
  width: 100%;
  font-family: "DM Mono", monospace;
  color: var(--c-ivory);
  animation: cycFadeUp 0.6s ease both;
}

.spotify-section {
  --c-canopy: #6aaa7e;
  --c-mist: #b8d4be;
  --c-ivory: #f5f0e8;
  --c-amber: #c9a84c;
  --c-deep: #1a2e1e;
  width: 100%;
  font-family: "DM Mono", monospace;
  color: var(--c-ivory);
  animation: spfFadeUp 0.6s ease both;
}

@keyframes spfFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spf-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-canopy);
  margin-bottom: 0.4rem;
}

.spf-heading {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--c-ivory);
  margin-bottom: 1.75rem;
}

.spf-now {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 2px solid var(--c-canopy);
  border-radius: 2px;
  padding: 2rem 1.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.spf-art-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.spf-art {
  width: 80px;
  height: 80px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.06);
}

.spf-art-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spf-art-placeholder svg {
  opacity: 0.2;
}

.spf-art-wrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(106, 170, 126, 0.3);
  border-top-color: var(--c-canopy);
  animation: spfSpin 3s linear infinite;
  display: none;
}

.spf-art-wrap.playing::after {
  display: block;
}

@keyframes spfSpin {
  to {
    transform: rotate(360deg);
  }
}

.spf-meta {
  flex: 1;
  min-width: 0;
}

.spf-status {
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-canopy);
  opacity: 0.8;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spf-pulse {
  width: 5px;
  height: 5px;
  background: var(--c-canopy);
  border-radius: 50%;
  animation: spfPulse 1.5s ease infinite;
}

@keyframes spfPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

.spf-track-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--c-ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}

.spf-artist-name {
  font-size: 0.65rem;
  color: var(--c-mist);
  opacity: 0.6;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.spf-progress-track,
.spf-vol-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1px;
  overflow: hidden;
}

.spf-progress-track {
  width: 100%;
  margin-bottom: 0.4rem;
}

.spf-progress-fill {
  height: 100%;
  background: var(--c-canopy);
  border-radius: 1px;
  width: 0%;
  transition: width 0.5s linear;
}

.spf-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.52rem;
  color: var(--c-mist);
  opacity: 0.4;
  letter-spacing: 0.05em;
}

.spf-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.spf-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  color: var(--c-mist);
  opacity: 0.45;
  transition: opacity 0.2s, color 0.2s;
  line-height: 0;
  font-family: "DM Mono", monospace;
}

.spf-btn:hover {
  opacity: 1;
  color: var(--c-ivory);
}

.spf-btn.active {
  opacity: 1;
  color: var(--c-canopy);
}

.spf-btn-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-canopy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-deep);
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}

.spf-btn-play:hover {
  background: var(--c-mist);
  transform: scale(1.06);
}

.spf-vol-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 160px;
  flex: 1;
}

.spf-vol-icon {
  opacity: 0.3;
  flex-shrink: 0;
}

.spf-vol-track {
  flex: 1;
  cursor: pointer;
}

.spf-vol-fill {
  height: 100%;
  background: rgba(106, 170, 126, 0.5);
  border-radius: 1px;
  width: 70%;
  transition: width 0.15s;
}

.spf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.spf-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  padding: 1.5rem;
}

.spf-card-title {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mist);
  opacity: 0.45;
  margin-bottom: 1.1rem;
}

.spf-queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: opacity 0.2s;
}

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

.spf-queue-item:hover {
  opacity: 0.8;
}

.spf-q-num {
  font-size: 0.55rem;
  color: var(--c-mist);
  opacity: 0.3;
  width: 16px;
  text-align: right;
  flex-shrink: 0;
}

.spf-queue-item.current .spf-q-num,
.spf-queue-item.current .spf-q-track {
  color: var(--c-canopy);
  opacity: 1;
}

.spf-q-thumb {
  width: 30px;
  height: 30px;
  border-radius: 1px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

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

.spf-q-track,
.spf-q-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spf-q-track {
  font-size: 0.65rem;
  color: var(--c-ivory);
}

.spf-q-artist,
.spf-q-dur {
  font-size: 0.55rem;
  color: var(--c-mist);
  opacity: 0.4;
}

.spf-q-dur {
  flex-shrink: 0;
}

.spf-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  margin-bottom: 1.1rem;
}

.spf-bar {
  flex: 1;
  background: var(--c-canopy);
  border-radius: 1px;
  opacity: 0.6;
  height: 4px;
  transform-origin: bottom;
  transition: height 0.2s ease;
}

.spf-bars.active .spf-bar {
  animation: spfBar var(--dur, 0.8s) ease-in-out infinite alternate;
}

@keyframes spfBar {
  from {
    height: 4px;
  }

  to {
    height: var(--h, 20px);
  }
}

.spf-context-head {
  font-size: 0.65rem;
  color: var(--c-canopy);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.spf-context-sub,
.spf-config-copy {
  font-size: 0.58rem;
  color: var(--c-mist);
  opacity: 0.45;
  line-height: 1.7;
}

.spf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spf-tag {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  color: var(--c-mist);
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.02);
}

.spf-note {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--c-canopy);
  padding: 1.25rem 1.5rem;
  border-radius: 0 2px 2px 0;
  margin-top: 1rem;
}

.spf-note p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ivory);
  opacity: 0.85;
}

.spf-note-attr {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-mist);
  opacity: 0.3;
  margin-top: 0.7rem;
}

.spf-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 1rem 0;
}

.spf-cfg-toggle {
  display: block;
  width: 100%;
  text-align: right;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mist);
  opacity: 0.2;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: "DM Mono", monospace;
  margin-top: 1.5rem;
}

.spf-cfg-toggle:hover {
  opacity: 0.6;
}

.spf-cfg-panel {
  display: none;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.spf-cfg-panel.open {
  display: flex;
}

.spf-cfg-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spf-cfg-row label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--c-mist);
  opacity: 0.6;
  width: 150px;
  flex-shrink: 0;
}

.spf-cfg-row input,
.spf-cfg-row select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: var(--c-ivory);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  padding: 0.45rem 0.7rem;
  flex: 1;
  outline: none;
  transition: border-color 0.2s;
}

.spf-cfg-row input:focus,
.spf-cfg-row select:focus {
  border-color: #6aaa7e;
}

.spf-cfg-row select option {
  background: #1a2e1e;
}

.spf-cfg-save {
  align-self: flex-end;
  padding: 0.55rem 1.5rem;
  background: rgba(74, 124, 89, 0.5);
  border: 1px solid #4a7c59;
  border-radius: 2px;
  color: var(--c-ivory);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.spf-cfg-save:hover {
  background: rgba(74, 124, 89, 0.8);
}

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

  .spf-cfg-row {
    flex-direction: column;
    align-items: stretch;
  }

  .spf-cfg-row label {
    width: auto;
  }
}

@media (max-width: 860px) {
  .hub-card,
  .hub-banner,
  .hub-card-grid,
  .hub-roadmap {
    grid-template-columns: 1fr;
  }

  .hub-banner-tags {
    justify-content: flex-start;
  }
}

@keyframes cycFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cycle-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-canopy);
  margin-bottom: 0.4rem;
}

.cycle-heading {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--c-ivory);
  margin-bottom: 1.75rem;
}

.cyc-today {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 2px solid var(--c-phase);
  border-radius: 2px;
  padding: 2rem 1.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.cyc-day-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--c-phase);
  flex-shrink: 0;
}

.cyc-day-lbl {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mist);
  opacity: 0.5;
  margin-top: 0.3rem;
}

.cyc-phase-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  color: var(--c-ivory);
  margin-bottom: 0.5rem;
}

.cyc-phase-desc {
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--c-mist);
  opacity: 0.8;
  max-width: 420px;
}

.cyc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cyc-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  padding: 1.5rem;
}

.cyc-card-title {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mist);
  opacity: 0.45;
  margin-bottom: 1.1rem;
}

.cyc-hormone-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.cyc-hormone-name {
  font-size: 0.62rem;
  color: var(--c-mist);
  opacity: 0.75;
  width: 90px;
  flex-shrink: 0;
}

.cyc-bar-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1px;
  overflow: hidden;
}

.cyc-bar-fill {
  height: 100%;
  border-radius: 1px;
  width: 0%;
  transition: width 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyc-bar-val {
  font-size: 0.6rem;
  color: var(--c-mist);
  opacity: 0.45;
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

.cyc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cyc-tag {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  color: var(--c-mist);
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.02);
}

.cyc-center-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cyc-left-title {
  align-self: flex-start;
}

.cyc-wheel-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
}

#cycWheel {
  width: 100%;
  height: 100%;
}

.cyc-wheel-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cyc-wheel-day {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--c-ivory);
}

.cyc-wheel-of {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--c-mist);
  opacity: 0.45;
}

.cyc-timeline-bar {
  display: flex;
  height: 6px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.cyc-tl-seg {
  height: 100%;
  position: relative;
}

.cyc-tl-seg.active::after {
  content: "";
  position: absolute;
  top: -3px;
  left: var(--mp, 50%);
  width: 2px;
  height: 12px;
  background: var(--c-ivory);
  border-radius: 1px;
}

.cyc-tl-labels {
  display: flex;
  gap: 1px;
}

.cyc-tl-lbl {
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-mist);
  opacity: 0.4;
  text-align: center;
}

.cyc-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 1rem 0;
}

.cyc-phase-label {
  font-size: 0.75rem;
  color: var(--c-phase);
  letter-spacing: 0.05em;
}

.cyc-phase-days {
  font-size: 0.6rem;
  color: var(--c-mist);
  opacity: 0.5;
  margin-top: 0.25rem;
}

.cyc-note {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--c-phase);
  padding: 1.25rem 1.5rem;
  border-radius: 0 2px 2px 0;
  margin-top: 1rem;
}

.cyc-note p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ivory);
  opacity: 0.85;
  margin: 0;
}

.cyc-note-attr {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-mist);
  opacity: 0.3;
  margin-top: 0.7rem;
}

.cyc-cfg-toggle {
  display: block;
  width: 100%;
  text-align: right;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mist);
  opacity: 0.2;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: "DM Mono", monospace;
  margin-top: 1.5rem;
}

.cyc-cfg-toggle:hover {
  opacity: 0.6;
}

.cyc-cfg-panel {
  display: none;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.cyc-cfg-panel.open {
  display: flex;
}

.cyc-cfg-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cyc-cfg-row label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--c-mist);
  opacity: 0.6;
  width: 150px;
  flex-shrink: 0;
}

.cyc-cfg-row input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: var(--c-ivory);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  padding: 0.45rem 0.7rem;
  flex: 1;
  outline: none;
  transition: border-color 0.2s;
}

.cyc-cfg-row input:focus {
  border-color: #6aaa7e;
}

.cyc-cfg-save {
  align-self: flex-end;
  padding: 0.55rem 1.5rem;
  background: rgba(74, 124, 89, 0.5);
  border: 1px solid #4a7c59;
  border-radius: 2px;
  color: var(--c-ivory);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.cyc-cfg-save:hover {
  background: rgba(74, 124, 89, 0.8);
}

.art-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 3;
}

.art-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 31, 26, 0.55));
  z-index: 1;
}

.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.home-featured:hover .art-frame img {
  transform: scale(1.03);
}

.song-line {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-weight: 700;
}

iframe {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.timeline,
.upcoming-list,
.phase-notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.timeline li,
.upcoming-list li,
.phase-notes li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(11, 31, 26, 0.42);
  border: 1px solid rgba(240, 221, 187, 0.08);
  border-left: 2px solid rgba(207, 171, 103, 0.25);
  transition: border-left-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.timeline li:hover,
.upcoming-list li:hover {
  border-left-color: rgba(207, 171, 103, 0.6);
  background: rgba(11, 31, 26, 0.56);
  transform: translateX(3px);
}

.cr-history-event {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(11, 31, 26, 0.42);
  border: 1px solid rgba(240, 221, 187, 0.08);
  margin-bottom: 10px;
  transition: background 0.2s ease;
}

.cr-history-event:hover {
  background: rgba(11, 31, 26, 0.56);
}

.cr-history-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(207, 171, 103, 0.1);
  color: var(--gold-soft);
  font-size: 0.85rem;
  margin-top: 2px;
}

.cr-history-text strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.cr-history-text p {
  margin: 0;
  color: rgba(247, 242, 234, 0.78);
  font-size: 0.88rem;
  line-height: 1.6;
}

.timeline strong,
.upcoming-list strong {
  display: block;
  margin-top: 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.timeline p,
.upcoming-list p {
  margin: 6px 0 0;
  color: rgba(247, 242, 234, 0.8);
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(207, 171, 103, 0.06), transparent 50%),
    rgba(3, 10, 8, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  z-index: 10;
}

.login-overlay.hidden {
  display: none;
}

.login-card {
  width: min(100%, 420px);
  padding: 36px 32px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(23, 54, 45, 0.98), rgba(8, 23, 18, 0.95));
  border: 1px solid rgba(240, 221, 187, 0.12);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(207, 171, 103, 0.04),
    inset 0 1px 0 rgba(240, 221, 187, 0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 171, 103, 0.4), transparent);
}

.login-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  letter-spacing: 0.02em;
  color: var(--ivory);
  margin-bottom: 2px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  text-align: left;
}

.login-card span {
  font-size: 0.88rem;
  color: rgba(247, 242, 234, 0.82);
}

.login-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(240, 221, 187, 0.16);
  background: rgba(247, 242, 234, 0.06);
  color: var(--ivory);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.login-card input:focus {
  border-color: rgba(207, 171, 103, 0.4);
  box-shadow: 0 0 20px rgba(207, 171, 103, 0.08);
}

.login-card input::placeholder {
  color: rgba(247, 242, 234, 0.3);
}

.login-card button {
  width: 100%;
  margin-top: 22px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #e5c68f);
  color: var(--forest-deep);
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.04em;
}

.login-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(207, 171, 103, 0.25);
  filter: brightness(1.05);
}

.login-card button:active {
  transform: translateY(0);
}

.login-error {
  min-height: 1.25rem;
  margin: 12px 0 0;
  color: #ffcdc0;
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 24px;
  }

  .hero,
  .panel,
  .login-card {
    padding: 22px;
  }

  .hero-home {
    padding: 40px 22px 36px;
  }

  .hero-counters {
    gap: 10px;
    margin: 24px 0 22px;
  }

  .hero-pill {
    padding: 10px 16px;
  }

  .hero-pill-value {
    font-size: 1.7rem;
  }

  .panel h2,
  .login-card h2 {
    font-size: 1.85rem;
  }

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

  .home-featured {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .home-featured-frame {
    aspect-ratio: 16 / 10;
    order: -1;
  }

  .home-card-wide {
    grid-column: 1;
  }

  .home-vision {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cycle-home-top {
    flex-direction: column;
    text-align: center;
  }

  .cycle-preview-grid {
    grid-template-columns: 1fr;
  }

  .widget-detail-grid {
    grid-template-columns: 1fr;
  }

  .vision-card,
  .vision-board-grid,
  .travel-hero,
  .trip-wiki-workbench,
  .trip-wiki-lanes,
  .trip-wiki-columns,
  .travel-bottom-grid,
  .travel-map-panel,
  .travel-map-links,
  .travel-feature-grid,
  .travel-restaurant-grid,
  .restaurant-wiki,
  .restaurant-info-card {
    grid-template-columns: 1fr;
  }

  .restaurant-selector {
    position: static;
  }

  .trip-wiki-selector,
  .trip-wiki-panel,
  .restaurant-wiki-prompt {
    position: static;
    max-height: none;
  }

  .trip-wiki-panel {
    min-height: auto;
    grid-template-rows: auto auto;
  }

  .restaurant-info-card img {
    min-height: 220px;
  }

  .travel-photo-grid {
    grid-template-columns: 1fr;
  }

  .travel-photo-large,
  .travel-photo-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .route-map {
    min-height: 720px;
  }

  .route-line,
  .route-line::before,
  .route-line::after {
    display: none;
  }

  .route-stop {
    left: 18px !important;
    right: 18px !important;
    top: auto !important;
    bottom: auto !important;
    width: auto;
  }

  .route-stop-1 { top: 18px !important; }
  .route-stop-2 { top: 102px !important; }
  .route-stop-3 { top: 186px !important; }
  .route-stop-4 { top: 270px !important; }
  .route-stop-5 { top: 354px !important; }
  .route-stop-6 { top: 438px !important; }
  .route-stop-7 { top: 522px !important; }
  .route-stop-8 { top: 606px !important; }
}

@media (max-width: 960px) {
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-featured {
    grid-column: 1 / -1;
  }
}

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