:root {
  --bg-deep: #04060d;
  --bg-surface: rgba(12, 18, 32, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #818cf8;
  --good: #34d399;
  --good-bg: rgba(6, 78, 59, 0.35);
  --ok: #fbbf24;
  --ok-bg: rgba(120, 53, 15, 0.3);
  --bad: #f87171;
  --bad-bg: rgba(127, 29, 29, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.2), transparent),
    radial-gradient(ellipse 120% 80% at 50% -20%, #1a2240 0%, var(--bg-deep) 55%);
  min-height: 100vh;
}

.font-display { font-family: "Space Grotesk", Inter, sans-serif; }

.glass {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

/* Status */
.status-good { --c: var(--good); --bg: var(--good-bg); }
.status-ok   { --c: var(--ok);   --bg: var(--ok-bg); }
.status-bad  { --c: var(--bad);  --bg: var(--bad-bg); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c);
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}

.section-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

.block-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.block-label .dim { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Layout compacto */
.app-sections { display: flex; flex-direction: column; gap: 1.75rem; }

.app-section { scroll-margin-top: 4.5rem; }

.section-heading {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.section-lead {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.nav-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

/* Night panel (única tarjeta principal) */
.night-panel {
  border-radius: 1rem;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}

.night-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.night-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.15rem;
  font-weight: 600;
}

.night-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.moon-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.moon-visual { font-size: 2.25rem; line-height: 1; flex-shrink: 0; }

.moon-phase {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.15rem;
}

.moon-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.night-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.quick-chips,
.planet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.chip {
  font-size: 0.68rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.3;
}

.chip.planet.on { border-color: rgba(129, 140, 248, 0.4); color: #c7d2fe; }
.chip.planet { opacity: 0.85; }

/* Barras de visibilidad planetaria (7 pm – 5 am) */
.planet-vis {
  margin: 0.65rem 0 0.25rem;
  padding: 0.6rem 0.65rem 0.55rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.planet-vis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.planet-vis-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.vis-foot-hint {
  font-size: 0.55rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: right;
  flex-shrink: 0;
}

.planet-vis-chart {
  --vis-cols: 11;
  --vis-gap: 2px;
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  column-gap: 0.5rem;
  row-gap: 0.38rem;
  align-items: end;
}

.planet-vis-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  margin-bottom: 0.08rem;
}

.planet-vis-icon .planet-icon {
  display: block;
  width: auto;
  height: 1.05rem;
}

.planet-icon {
  display: block;
  flex-shrink: 0;
}

.vis-track-wrap {
  min-width: 0;
  padding-top: 1.35rem;
}

.vis-timeline {
  display: grid;
  grid-template-columns: repeat(var(--vis-cols), 1fr);
  gap: var(--vis-gap);
  height: 0.62rem;
  padding: 2px;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.4);
  box-sizing: content-box;
}

.vis-timeline.empty { opacity: 0.4; min-height: 0.62rem; }

.vis-seg {
  position: relative;
  min-width: 0;
  min-height: 100%;
  padding: 0;
  border: none;
  border-radius: 2px;
  cursor: help;
  background: rgba(71, 85, 105, 0.55);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.vis-seg.ok   { background: #d97706; }
.vis-seg.good { background: #22c55e; }

.vis-seg:hover,
.vis-seg:focus-visible {
  transform: scaleY(1.35);
  filter: brightness(1.1);
  z-index: 2;
}

.vis-seg:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.vis-tip {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.2rem 0.42rem;
  border-radius: 0.35rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 10;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.vis-seg:first-child .vis-tip {
  left: 0;
  transform: translateX(0) translateY(3px);
}

.vis-seg:last-child .vis-tip {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(3px);
}

.vis-seg:hover .vis-tip,
.vis-seg:focus-visible .vis-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vis-seg:first-child:hover .vis-tip,
.vis-seg:first-child:focus-visible .vis-tip {
  transform: translateX(0) translateY(0);
}

.vis-seg:last-child:hover .vis-tip,
.vis-seg:last-child:focus-visible .vis-tip {
  transform: translateX(0) translateY(0);
}

.vis-hour-axis {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(var(--vis-cols), 1fr);
  gap: var(--vis-gap);
  padding: 0 2px;
  min-height: 0.95rem;
}

.vis-hour-mark {
  grid-column: var(--col);
  grid-row: 1;
  justify-self: start;
  transform: translateX(calc(-50% - 1px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  font-size: 0.58rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.vis-hour-mark::before {
  content: "";
  display: block;
  width: 1px;
  height: 0.3rem;
  background: rgba(148, 163, 184, 0.4);
}

.vis-hour-mark.is-end {
  justify-self: end;
  transform: translateX(calc(50% + 1px));
}

.planet-vis-foot {
  display: flex;
  justify-content: center;
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.58rem;
  color: #64748b;
}

@media (max-width: 420px) {
  .vis-foot-hint { display: none; }
}

.vis-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.55rem;
}

.vis-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 2px;
  vertical-align: middle;
}

.vis-dot.good { background: #22c55e; }
.vis-dot.ok   { background: #d97706; }
.vis-dot.below { background: rgba(71, 85, 105, 0.6); }

.btn-secondary {
  font-size: 0.8rem;
  font-weight: 600;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 0.65rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover { background: rgba(99, 102, 241, 0.22); }

/* Acordeones */
.fold {
  margin-top: 0.65rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.fold summary {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::before {
  content: "＋ ";
  color: var(--accent);
  font-weight: 400;
}

.fold[open] summary::before { content: "－ "; }

.fold-body { padding: 0.65rem 0 0.25rem; }

.fold-guide { margin-top: 0.5rem; border: none; padding: 0; }
.fold-guide summary { color: var(--text-dim); font-weight: 500; }

.detail-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

.detail-list strong { color: var(--text); font-weight: 600; }

.detail-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0 0 0.5rem;
}

.planets-detail { margin-top: 0.25rem; }

.planet-row {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}

.planet-row span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.planet-row p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.4rem;
  line-height: 1.4;
}

.planet-row.off { opacity: 0.65; }

.vis-chart.compact .vis-chart-bars { height: 2.25rem; }

.vis-hint {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin: 0.5rem 0 0;
}

/* Hero (legacy) */
.hero-card {
  border-radius: 1.25rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: linear-gradient(155deg, var(--bg), rgba(4, 6, 13, 0.96));
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--c) 20%, transparent), transparent 50%);
  pointer-events: none;
}

.hero-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 0.75rem;
  line-height: 1.5;
}

.moon-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
}

.hero-moon { margin-bottom: 0; }

.moon-visual { font-size: 2.75rem; line-height: 1; flex-shrink: 0; }
.moon-visual.sm { font-size: 2rem; }

.moon-phase {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.35rem;
}

.moon-phase.sm { font-size: 0.95rem; }

.moon-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Facts grid */
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.fact {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.fact-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.fact-value {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.35;
}

.score-bar-wrap {
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  margin-top: 0.75rem;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--c);
  transition: width 0.4s ease;
}

.sky-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0.65rem 0 0;
  line-height: 1.5;
}

/* Planets */
.planets-block { margin-top: 1rem; }

.planets-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0.35rem 0 0.75rem;
}

.planets-visibility {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.planet-card {
  padding: 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.planet-card.on  { border-color: rgba(99, 102, 241, 0.35); }
.planet-card.off { opacity: 0.72; }

.planet-card-head {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.planet-icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }

.planet-card-text { min-width: 0; flex: 1; }

.planet-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.planet-summary {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0.2rem 0 0;
}

.planet-window {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: 0.35rem 0 0;
  line-height: 1.35;
}

.planet-window.good { color: #a5b4fc; }

.planet-window strong {
  font-weight: 600;
  color: var(--text-muted);
}

.vis-chart {
  margin-top: 0.15rem;
}

.vis-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 3.5rem;
  padding: 0 0.1rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.6);
}

.vis-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  min-width: 0;
}

.vis-bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: height 0.15s ease;
}

.vis-bar.good  { background: linear-gradient(180deg, #86efac, #22c55e); }
.vis-bar.ok    { background: linear-gradient(180deg, #fde68a, #f59e0b); }
.vis-bar.below { background: rgba(71, 85, 105, 0.45); }

.vis-chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.vis-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.65rem;
  font-size: 0.62rem;
  color: var(--text-dim);
}

.vis-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.vis-dot.good  { background: #22c55e; }
.vis-dot.ok    { background: #f59e0b; }
.vis-dot.below { background: rgba(71, 85, 105, 0.6); }

/* legacy chips (unused) */
.planets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.planet-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  flex: 1 1 8rem;
}

.planet-chip.on  { background: rgba(99, 102, 241, 0.1); }
.planet-chip.off { opacity: 0.5; }

.planet-status {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: 0.1rem 0 0;
}

/* Detail panel */
.detail-panel { border-radius: 1.25rem; padding: 1.25rem; }

.detail-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.same-day-hint {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
  margin: 0 0 0.75rem;
}

.link-map {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-map:hover { color: #a5b4fc; }

/* Carousel */
.carousel-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.day-tile {
  flex: 0 0 4.25rem;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.6rem 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  color: var(--text-muted);
}

.day-tile:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
.day-tile.is-today { box-shadow: 0 0 0 2px var(--accent); }
.day-tile.is-selected { border-color: #fff; background: rgba(255,255,255,0.08); color: var(--text); }
.day-tile.is-past { opacity: 0.5; }

.day-tile .moon { font-size: 1.15rem; line-height: 1; }
.day-tile .num { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.day-tile .wd  { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; }

.carousel-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
}

.carousel-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }

/* Calendar */
.cal-day {
  aspect-ratio: 1;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  transition: transform 0.12s;
  background: rgba(0,0,0,0.15);
}

.cal-day:hover { transform: scale(1.06); }
.cal-day.empty { visibility: hidden; pointer-events: none; }
.cal-day.is-today { box-shadow: 0 0 0 2px var(--accent); }
.cal-day.is-selected { box-shadow: 0 0 0 2px #fff; }
.cal-day.is-past { opacity: 0.42; }

.cal-day .dot { width: 0.32rem; height: 0.32rem; border-radius: 50%; background: var(--c); }

/* Sky map — público general */
.sky-look-guide {
  border-radius: 0.75rem;
  padding: 0.65rem 0.55rem 0.55rem;
}

.look-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.look-guide-time {
  display: flex;
  justify-content: center;
  margin-bottom: 0.55rem;
}

.look-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.22);
}

.look-time-pill strong {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.look-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

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

.look-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.12rem;
  padding: 0.55rem 0.35rem 0.5rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  min-width: 0;
}

.look-card.dim {
  opacity: 0.72;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.06);
}

.look-card-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.05rem;
}

.look-card-planet {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.35rem;
  font-size: 0;
}

.look-card-planet .planet-icon {
  height: 1.2rem;
  width: auto;
}

.look-card-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.look-card-bearing {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: 0.1rem 0 0.05rem;
}

.look-card.dim .look-card-bearing { color: var(--text-muted); }

.look-card-status {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.look-card-status-ok {
  background: var(--good-bg);
  color: var(--good);
}

.look-card-status-warn {
  background: var(--ok-bg);
  color: var(--ok);
}

.look-card-status-off {
  background: rgba(100, 116, 139, 0.18);
  color: var(--text-dim);
}

.look-card-status-pending {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
}

.sky-time-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.sky-play-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.35), rgba(79, 70, 229, 0.2));
  color: #e0e7ff;
  font-size: 0.85rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sky-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.sky-play-btn.is-playing {
  border-color: rgba(248, 113, 113, 0.5);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.3), rgba(185, 28, 28, 0.2));
}

.sky-time-track {
  flex: 1;
  min-width: 0;
}

.sky-time-slider {
  width: 100%;
  height: 0.35rem;
  appearance: none;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.5);
  outline: none;
  cursor: pointer;
}

.sky-time-slider::-webkit-slider-thumb {
  appearance: none;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #a5b4fc;
  border: 2px solid #e0e7ff;
  box-shadow: 0 0 6px rgba(165, 180, 252, 0.6);
}

.sky-time-slider::-moz-range-thumb {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #a5b4fc;
  border: 2px solid #e0e7ff;
}

.sky-time-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.5rem;
  color: #64748b;
  padding: 0;
  gap: 0;
}

.sky-time-current {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c7d2fe;
  min-width: 4.5rem;
  text-align: right;
}

.sky-map-shell {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.sky-map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 50%;
  background: #04060d;
  border: 2px solid rgba(71, 85, 105, 0.5);
  touch-action: manipulation;
}

.sky-compass {
  position: absolute;
  z-index: 5;
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  pointer-events: none;
}

.sky-compass span,
.sky-compass small { display: none; }

.sky-n { top: -0.1rem; left: 50%; transform: translateX(-50%); }
.sky-s { bottom: -0.1rem; left: 50%; transform: translateX(-50%); }
.sky-e { right: 0; top: 50%; transform: translateY(-50%); }
.sky-o { left: 0; top: 50%; transform: translateY(-50%); }

.sky-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.sky-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.legend-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-moon { background: #f1f5f9; box-shadow: 0 0 4px #c7d2fe; }
.legend-planet { background: #fbbf24; box-shadow: 0 0 4px #f59e0b; }
.legend-zenith { background: #64748b; opacity: 0.7; }

.legend-ring {
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid #475569;
  border-radius: 50%;
  flex-shrink: 0;
}

/* About cards */
.about-grid {
  display: grid;
  gap: 0.75rem;
}

.about-item {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
}

.about-item h4 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.about-item p {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

/* WhatsApp */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(6, 78, 59, 0.2);
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-contact:hover {
  background: rgba(6, 78, 59, 0.35);
  border-color: rgba(52, 211, 153, 0.55);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 0.75rem;
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* Nav */
.nav-tab {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.5rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid transparent;
  white-space: nowrap;
  background: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.nav-tab:hover { color: var(--text-muted); }
.nav-tab.active { color: var(--text); background: rgba(255,255,255,0.07); }

/* Location tip */
.location-tip {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.22);
}

.location-tip-text {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.location-tip-inline {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-dim);
  background: rgba(99, 102, 241, 0.06);
  border-left: 2px solid rgba(129, 140, 248, 0.35);
}

.ext-link {
  color: rgba(165, 180, 252, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(129, 140, 248, 0.45);
  text-underline-offset: 2px;
}

.ext-link:hover {
  color: #c7d2fe;
}

@media (min-width: 1024px) {
  .layout-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.25rem;
    align-items: start;
  }

  .facts-grid { grid-template-columns: repeat(4, 1fr); }
}

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

/* Header controls */
.header-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
}

.header-select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  max-width: 8.5rem;
  padding: 0.4rem 1.6rem 0.4rem 0.6rem;
  border-radius: 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.header-select:hover {
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(12, 18, 32, 0.9);
}

.header-select:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

.header-select option {
  background: #0c1220;
  color: var(--text);
}

.btn-tutorial {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.35);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-tutorial:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(129, 140, 248, 0.5);
}

.btn-tutorial span[aria-hidden] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(129, 140, 248, 0.25);
}

.lang-toggle {
  display: inline-flex;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.lang-btn {
  padding: 0.35rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.lang-btn.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn:hover:not(.active) {
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .btn-contact span:not([aria-hidden]) {
    display: none;
  }

  .btn-contact {
    padding: 0.45rem 0.55rem;
  }

  .btn-tutorial-label {
    display: none;
  }

  .btn-tutorial {
    padding: 0.4rem 0.5rem;
  }

  .header-select {
    max-width: 7rem;
    font-size: 0.68rem;
  }
}

/* Tutorial overlay */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: transparent;
}

.tutorial-overlay.is-welcome {
  background: rgba(4, 6, 13, 0.45);
}

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

body.tutorial-open {
  overflow: hidden;
}

.tutorial-spotlight {
  position: fixed;
  border-radius: 0.85rem;
  box-shadow: 0 0 0 9999px rgba(4, 6, 13, 0.48);
  border: 2px solid rgba(129, 140, 248, 0.55);
  pointer-events: none;
  z-index: 51;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.tutorial-card {
  position: fixed;
  z-index: 52;
  left: 50%;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(12, 18, 32, 0.96);
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.tutorial-card-centered {
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.tutorial-step {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.tutorial-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
}

.tutorial-body {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.tutorial-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tutorial-skip {
  font-size: 0.72rem;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
}

.tutorial-skip:hover {
  color: var(--text-muted);
}

.tutorial-nav {
  display: flex;
  gap: 0.4rem;
}

.tutorial-back,
.tutorial-next {
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
}

.tutorial-back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
