/* ===== TRIPTYCH CARD (glass panel) ===== */
.tri-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tri-card.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .tri-card {
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .tri-card.visible:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.18);
  }
  .tri-card-accent-pink.visible:hover {
    box-shadow: 0 0 30px rgba(255,0,110,0.15), 0 4px 20px rgba(0,0,0,0.3);
  }
  .tri-card-accent-green.visible:hover {
    box-shadow: 0 0 30px rgba(6,214,160,0.15), 0 4px 20px rgba(0,0,0,0.3);
  }
  .tri-card-accent-blue.visible:hover {
    box-shadow: 0 0 30px rgba(58,134,255,0.15), 0 4px 20px rgba(0,0,0,0.3);
  }
  .tri-card-accent-purple.visible:hover {
    box-shadow: 0 0 30px rgba(168,85,247,0.15), 0 4px 20px rgba(0,0,0,0.3);
  }
  .tri-card-accent-amber.visible:hover {
    box-shadow: 0 0 30px rgba(245,158,11,0.15), 0 4px 20px rgba(0,0,0,0.3);
  }
  .tri-card-accent-red.visible:hover {
    box-shadow: 0 0 30px rgba(239,68,68,0.15), 0 4px 20px rgba(0,0,0,0.3);
  }
}

.tri-card-accent-pink {
  border-top: 2px solid var(--neon-pink);
  box-shadow: 0 0 20px rgba(255,0,110,0.08);
}

.tri-card-accent-green {
  border-top: 2px solid var(--neon-green);
  box-shadow: 0 0 20px rgba(6,214,160,0.08);
}

.tri-card-accent-blue {
  border-top: 2px solid var(--neon-blue);
  box-shadow: 0 0 20px rgba(58,134,255,0.08);
}

.tri-card-accent-purple {
  border-top: 2px solid #a855f7;
  box-shadow: 0 0 20px rgba(168,85,247,0.08);
}

.tri-card-accent-amber {
  border-top: 2px solid var(--neon-amber);
  box-shadow: 0 0 20px rgba(245,158,11,0.08);
}

.tri-card-accent-red {
  border-top: 2px solid #ef4444;
  box-shadow: 0 0 20px rgba(239,68,68,0.08);
}

/* ===== WIDGET HEADER ===== */
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.widget-label {
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
}

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

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: dotPulse 2s ease-in-out infinite;
}

.live-dot-pink {
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
}

.live-dot-amber {
  background: var(--neon-amber);
  box-shadow: 0 0 8px var(--neon-amber);
}

.live-dot-red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.live-dot-blue {
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
}

.live-dot-purple {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.widget-timestamp {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.47);
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.5px;
}

.widget-body {
  padding: 14px 18px 18px;
}

/* ===== 1. IDENTITY CARD ===== */
.identity-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.identity-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.id-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255,0,110,0.5);
  box-shadow:
    0 0 20px rgba(255,0,110,0.3),
    0 0 40px rgba(255,0,110,0.15),
    0 0 60px rgba(255,0,110,0.05);
  margin: 0 auto 24px;
  display: block;
  animation: avatarGlow 4s ease-in-out infinite;
}

.id-name {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow:
    0 0 10px rgba(255,0,110,0.8),
    0 0 30px rgba(255,0,110,0.5),
    0 0 60px rgba(255,0,110,0.2),
    0 0 10px rgba(58,134,255,0.6),
    0 0 40px rgba(58,134,255,0.3);
  margin-bottom: 8px;
  animation: glowPulse 4s ease-in-out infinite;
}

.id-title {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.id-bio {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 28px;
  text-wrap: balance;
}

.id-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.neon-pill {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.03);
}

@media (hover: hover) {
  .neon-pill:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255,0,110,0.25), 0 0 30px rgba(255,0,110,0.1);
    color: var(--neon-pink);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255,0,110,0.08), rgba(58,134,255,0.08));
  }
}

.neon-pill:active {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

/* ===== 2. BIO TERMINAL ===== */
.terminal-container {
  background: rgba(0,0,0,0.5);
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  line-height: 1.7;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(58,134,255,0.06);
  border-bottom: 1px solid rgba(58,134,255,0.08);
}

.terminal-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal-btn-red { background: #ff5f57; }
.terminal-btn-yellow { background: #ffbd2e; }
.terminal-btn-green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.terminal-body {
  padding: 14px 14px 16px;
  min-height: 120px;
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0;
}

.terminal-line.visible {
  opacity: 1;
}

.terminal-prompt {
  color: var(--neon-blue);
  text-shadow: 0 0 6px rgba(58,134,255,0.3);
}

.terminal-command {
  color: #28c840;
}

.terminal-output {
  color: rgba(255,255,255,0.75);
}

.terminal-arrow {
  color: var(--neon-blue);
  opacity: 0.6;
}

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--neon-blue);
  vertical-align: text-bottom;
  animation: termBlink 1s step-end infinite;
  margin-left: 2px;
}

/* ===== 3. SYSTEM STATUS ===== */
.left-panel-status {
  width: 100%;
  max-width: 380px;
  margin-top: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 20px 16px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.left-panel-status.visible {
  opacity: 1;
  transform: translateX(0);
}

.left-panel-bio {
  width: 100%;
  max-width: 380px;
  margin-top: 16px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.left-panel-bio.visible {
  opacity: 1;
  transform: translateX(0);
}

.left-panel-bio .widget-header {
  padding: 12px 16px 8px;
}

.left-panel-bio .widget-body {
  padding: 0;
}

.left-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sys-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.78rem;
  font-family: 'Space Grotesk', monospace;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sys-line:last-child { border-bottom: none; }

.sys-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.sys-dot-green {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.sys-dot-amber {
  background: var(--neon-amber);
  box-shadow: 0 0 8px var(--neon-amber);
}

.sys-key {
  color: var(--text-muted);
  min-width: 110px;
}

.sys-val {
  color: var(--text);
  font-weight: 500;
}

.sys-val-green { color: var(--neon-green); }
.sys-val-amber { color: var(--neon-amber); }

/* ===== 4. COMMAND BAR ===== */
/* (styles in layout.css: .top-bar, .top-bar-title, .top-bar-clock) */

/* ===== 5. HEART RATE ===== */
.pulse-bpm {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.pulse-bpm-unit {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-left: 4px;
}

.pulse-status-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 20px;
  padding: 4px 12px;
  margin-top: 4px;
}

.hr-layout {
  position: relative;
  min-height: 100px;
}

.hr-ecg-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6px;
  opacity: 0.35;
}

.ecg-svg {
  width: 200%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: ecgScroll 4s linear infinite;
}

.ecg-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#ecgGlow);
}

.hr-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
}

.hr-overlay-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hr-overlay-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hr-hrv-label {
  font-size: 0.6rem;
  font-family: 'Space Grotesk', monospace;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.hr-hrv-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.hr-hrv-unit {
  font-size: 0.6rem;
  font-family: 'Space Grotesk', monospace;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

/* ===== 6. DAILY ACTIVITY ===== */
.split-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.split-col {
  padding: 4px 0;
}

.split-col:first-child {
  border-right: 1px solid rgba(255,255,255,0.04);
  padding-right: 16px;
}

.split-col:last-child {
  padding-left: 16px;
}

.split-col-title {
  font-size: 0.48rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-green);
  text-shadow: 0 0 6px rgba(6,214,160,0.3);
  margin-bottom: 12px;
}

.split-metric {
  margin-bottom: 14px;
}

.split-metric:last-child {
  margin-bottom: 0;
}

.split-metric-label {
  font-size: 0.48rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.split-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-family: 'Space Grotesk', monospace;
}

.split-metric-unit {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 3px;
}

/* ===== 7. WORKOUTS / REST DAY ===== */
.workout-rest-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  gap: 12px;
}

.workout-rest-icon {
  width: 56px;
  height: 56px;
  opacity: 0.8;
}

.workout-rest-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--neon-pink);
  text-shadow: 0 0 12px rgba(255,0,110,0.4);
}

.workout-rest-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.workout-rest-insight {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.47);
  font-style: italic;
  letter-spacing: 0.5px;
  text-align: center;
  margin-top: 4px;
}

.workout-sub-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.workout-sub-card:last-child { margin-bottom: 0; }

.workout-sub-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.workout-sub-icon { width: 28px; height: 28px; flex-shrink: 0; }

.workout-sub-type {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255,0,110,0.4);
}

.workout-sub-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.workout-stat { display: flex; flex-direction: column; gap: 2px; }

.workout-stat-label {
  font-size: 0.48rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.workout-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== 8. NIGHT SUMMARY (Moon) ===== */
.sleep-moon-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.sleep-moon-wrap {
  flex-shrink: 0;
}
.sleep-moon-info {
  flex: 1;
}
.sleep-moon-hero {
  font-size: 2rem;
  font-weight: 700;
  color: #a855f7;
  text-shadow: 0 0 16px rgba(168,85,247,0.6), 0 0 40px rgba(168,85,247,0.25);
  line-height: 1;
  margin-bottom: 6px;
}
.sleep-moon-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sleep-moon-score-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sleep-moon-score-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.sleep-moon-score-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon-blue), #a855f7);
  animation: sleepMoonScoreFill 1.2s ease-out both;
}
.sleep-moon-score-val {
  font-size: 0.72rem;
  font-weight: 600;
  color: #a855f7;
}
.sleep-moon-pills {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sleep-moon-pill {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  animation: sleepMoonPillFade 0.6s ease-out both;
}
.sleep-moon-pill-label {
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.sleep-moon-pill-val {
  font-size: 0.72rem;
  font-weight: 600;
}
.sleep-moon-insight {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.47);
  text-align: center;
  font-style: italic;
}
.sleep-moon-insight span {
  color: #a855f7;
}

/* ===== 9. HYDRATION ===== */
.hydra-layout {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}

.hydra-vessel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hydra-bottle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hydra-bottle-cap {
  width: 28px;
  height: 14px;
  border-radius: 6px 6px 0 0;
  border: 2px solid rgba(58,134,255,0.25);
  border-bottom: none;
  background: rgba(58,134,255,0.06);
  position: relative;
  z-index: 1;
}

.hydra-bottle-body {
  width: 56px;
  height: 110px;
  border-radius: 8px 8px 16px 16px;
  border: 2px solid rgba(58,134,255,0.2);
  position: relative;
  overflow: hidden;
  background: rgba(58,134,255,0.03);
}

.hydra-mug {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hydra-mug-steam {
  display: flex;
  gap: 6px;
  justify-content: center;
  height: 14px;
  margin-bottom: 2px;
}

.hydra-steam-line {
  width: 2px;
  height: 12px;
  background: rgba(245,158,11,0.3);
  border-radius: 1px;
  animation: hydraSteam 2s ease-in-out infinite;
}

.hydra-steam-line:nth-child(2) {
  animation-delay: 0.4s;
  height: 10px;
}

.hydra-steam-line:nth-child(3) {
  animation-delay: 0.8s;
  height: 8px;
}

.hydra-mug-body {
  width: 60px;
  height: 80px;
  border-radius: 4px 4px 14px 14px;
  border: 2px solid rgba(245,158,11,0.2);
  position: relative;
  overflow: hidden;
  background: rgba(245,158,11,0.03);
}

.hydra-mug-handle {
  position: absolute;
  right: -14px;
  top: 24px;
  width: 14px;
  height: 36px;
  border: 2px solid rgba(245,158,11,0.2);
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.hydra-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: height 2s ease;
}

.hydra-bottle-body .hydra-liquid {
  border-radius: 0 0 14px 14px;
}

.hydra-mug-body .hydra-liquid {
  border-radius: 0 0 12px 12px;
}

.hydra-liquid-water {
  background: linear-gradient(180deg, rgba(58,134,255,0.6), rgba(58,134,255,0.2));
  box-shadow: 0 -4px 16px rgba(58,134,255,0.3);
}

.hydra-liquid-coffee {
  background: linear-gradient(180deg, rgba(245,158,11,0.6), rgba(139,90,10,0.3));
  box-shadow: 0 -4px 16px rgba(245,158,11,0.3);
}

.hydra-wave {
  position: absolute;
  top: -8px;
  left: -10%;
  width: 120%;
  height: 16px;
}

.hydra-wave-path {
  fill: rgba(255,255,255,0.1);
  animation: hydraWave 3s ease-in-out infinite;
}

.hydra-val {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.hydra-vessel-water .hydra-val {
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(58,134,255,0.4);
}

.hydra-vessel-coffee .hydra-val {
  color: var(--neon-amber);
  text-shadow: 0 0 8px rgba(245,158,11,0.4);
}

.hydra-label {
  font-size: 0.48rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hydra-range {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(255,255,255,0.2);
  border-bottom: 1px dashed rgba(255,255,255,0.2);
  pointer-events: none;
  z-index: 2;
}

.hydra-range-water {
  background: rgba(6,214,160,0.06);
}

.hydra-range-coffee {
  background: rgba(6,214,160,0.06);
}

.hydra-range-caution {
  background: rgba(245,158,11,0.06);
  border-top: 1px dashed rgba(245,158,11,0.25);
  border-bottom: none;
}

.hydra-range-label {
  position: absolute;
  right: -2px;
  transform: translateX(100%);
  font-size: 0.38rem;
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding-left: 4px;
  line-height: 1;
}

.hydra-range-label-top {
  top: -1px;
  transform: translateX(100%) translateY(-50%);
}

.hydra-range-label-bottom {
  bottom: -1px;
  transform: translateX(100%) translateY(50%);
}

.hydra-range-label-water {
  color: rgba(6,214,160,0.6);
}

.hydra-range-label-coffee {
  color: rgba(6,214,160,0.6);
}

.hydra-range-label-caution {
  color: rgba(245,158,11,0.5);
}

.hydra-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08), transparent);
  align-self: center;
}

/* ===== 10. LOCATION ===== */
.loc-city-name {
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow:
    0 0 12px rgba(6,214,160,0.6),
    0 0 35px rgba(6,214,160,0.25);
  margin-bottom: 4px;
  text-align: center;
}

.loc-coordinates {
  font-size: 0.75rem;
  font-family: 'Space Grotesk', monospace;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-align: center;
}

.map-wrapper {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(6,214,160,0.12);
}

.map-wrapper .leaflet-container {
  background: var(--bg);
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: inset 0 0 40px rgba(6,6,15,0.6);
  border: 1px solid rgba(6,214,160,0.08);
}

.map-wrapper .leaflet-control-attribution,
.map-wrapper .leaflet-control-zoom {
  display: none;
}

.map-marker-pulse {
  width: 16px;
  height: 16px;
  position: relative;
}

.map-marker-dot {
  width: 10px;
  height: 10px;
  background: var(--neon-green);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 0 8px var(--neon-green), 0 0 16px rgba(6,214,160,0.4);
}

.map-marker-ring {
  width: 16px;
  height: 16px;
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation: mapRingPulse 2s ease-out infinite;
}

.map-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.6rem;
  font-family: 'Space Grotesk', monospace;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.map-meta-value {
  color: var(--neon-green);
  font-weight: 500;
}

/* ===== 11. GITHUB HEATMAP ===== */
.contrib-grid {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  overflow: hidden;
}

.contrib-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contrib-cell {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.contrib-cell[data-level="0"] { background: rgba(6,214,160,0.05); }
.contrib-cell[data-level="1"] { background: rgba(6,214,160,0.2); }
.contrib-cell[data-level="2"] { background: rgba(6,214,160,0.4); box-shadow: 0 0 3px rgba(6,214,160,0.15); }
.contrib-cell[data-level="3"] { background: rgba(6,214,160,0.65); box-shadow: 0 0 4px rgba(6,214,160,0.25); }
.contrib-cell[data-level="4"] { background: var(--neon-green); box-shadow: 0 0 6px rgba(6,214,160,0.4); }

.gh-stats-row {
  display: flex;
  gap: 24px;
}

.gh-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon-green);
}

.gh-stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ===== 12. RECENT COMMITS ===== */
.commits-terminal {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(6,214,160,0.1);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  line-height: 1.9;
}

.commit-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.cm-hash { color: var(--neon-green); white-space: nowrap; flex-shrink: 0; }
.cm-msg { color: var(--text); flex: 1; min-width: 0; }
.cm-repo { color: var(--text-muted); font-size: 0.65rem; white-space: nowrap; }
.cm-date { color: rgba(255,255,255,0.2); font-size: 0.65rem; white-space: nowrap; margin-left: auto; }

/* ===== 13. READING FEED ===== */
.article-list {
  list-style: none;
}

.article-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.2s ease, background 0.2s ease;
  opacity: 0;
  animation: fadeSlideRight 0.4s ease-out forwards;
  cursor: default;
}

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

@media (hover: hover) {
  .article-list-item:hover {
    transform: translateX(6px);
    background: rgba(6,214,160,0.04);
  }
  .article-list-item:hover .article-list-title {
    color: var(--neon-green);
  }
}

.article-list-star {
  flex-shrink: 0;
  width: 14px;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--neon-amber);
  opacity: 0;
  visibility: hidden;
}

.article-list-star.visible {
  opacity: 1;
  visibility: visible;
}

.article-list-content {
  flex: 1;
  min-width: 0;
}

.article-list-title {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 0.62rem;
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.5px;
}

.article-list-source {
  color: rgba(6,214,160,0.7);
}

.article-list-date {
  color: var(--text-muted);
}

/* ===== 14. BOOKSHELF ===== */
.shelf-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(6,214,160,0.3) transparent;
}

.shelf-row::-webkit-scrollbar { height: 4px; }
.shelf-row::-webkit-scrollbar-track { background: transparent; }
.shelf-row::-webkit-scrollbar-thumb { background: rgba(6,214,160,0.3); border-radius: 4px; }

.shelf-book {
  flex-shrink: 0;
  width: 90px;
  scroll-snap-align: start;
  cursor: pointer;
  opacity: 0;
  animation: shelfFadeIn 0.4s ease-out forwards;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .shelf-book:hover { transform: translateY(-4px); }
  .shelf-book:hover .shelf-book-title a { color: var(--neon-green); }
}

.shelf-cover-wrapper {
  width: 80px;
  height: 120px;
  margin: 0 auto 6px;
}

.shelf-cover-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(6,214,160,0.15), rgba(58,134,255,0.1));
}

.shelf-book-title {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shelf-book-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.shelf-book-author {
  font-size: 0.52rem;
  font-family: 'Space Grotesk', monospace;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.shelf-book-status {
  font-size: 0.46rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-top: 4px;
}

.shelf-status-next { color: var(--neon-blue); text-shadow: 0 0 8px rgba(58,134,255,0.3); }
.shelf-status-in_progress { color: var(--neon-green); text-shadow: 0 0 8px rgba(6,214,160,0.3); }
.shelf-status-completed { color: var(--neon-amber); text-shadow: 0 0 8px rgba(245,158,11,0.3); }

/* ===== BOOK MODAL ===== */
.book-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6,6,15,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: bookOverlayIn 0.2s ease-out;
}
.book-overlay.visible { display: flex; }

.book-modal {
  width: 380px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(12,12,24,0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(6,214,160,0.2);
  border-radius: 20px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6), 0 0 30px rgba(6,214,160,0.1);
  animation: bookModalIn 0.3s ease-out;
}

.book-modal-header {
  display: flex;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
}

.book-modal-cover {
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.book-modal-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

.book-modal-series {
  font-size: 0.48rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--neon-blue);
  text-shadow: 0 0 6px rgba(58,134,255,0.3);
}

.book-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.book-modal-author {
  font-size: 0.6rem;
  font-family: 'Space Grotesk', monospace;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.book-modal-stars {
  font-size: 0.65rem;
  letter-spacing: 1px;
  margin-top: 2px;
}
.book-modal-stars .star-on { color: var(--neon-amber); }
.book-modal-stars .star-off { color: rgba(255,255,255,0.1); }

.book-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.book-modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.book-modal-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-modal-stats {
  display: flex;
  gap: 10px;
}

.book-modal-stat {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}

.book-modal-stat-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.book-modal-stat-label {
  font-size: 0.42rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.book-modal-progress {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.book-modal-progress-fill {
  height: 100%;
  background: var(--neon-green);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(6,214,160,0.4);
}
.book-modal-progress-label {
  font-size: 0.46rem;
  color: var(--neon-green);
  font-family: 'Space Grotesk', monospace;
  margin-top: 3px;
}

.book-modal-desc {
  font-size: 0.58rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-modal-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.book-modal-tag {
  display: inline-block;
  font-size: 0.48rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.2);
  color: var(--neon-green);
}

.book-modal-amazon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.52rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(6,214,160,0.12);
  border: 1px solid rgba(6,214,160,0.25);
  color: var(--neon-green);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.book-modal-amazon:hover {
  background: rgba(6,214,160,0.2);
  border-color: rgba(6,214,160,0.4);
  box-shadow: 0 0 12px rgba(6,214,160,0.2);
}
