:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --text-primary: #f0f0f5;
  --text-secondary: #8888aa;
  --accent: #ff6b4a;
  --accent-glow: rgba(255, 107, 74, 0.3);
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #ef4444;
  --border: #2a2a3a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.live-container {
  max-width: 1600px;
}

/* Header */
header {
  overflow: visible;
  position: relative;
  z-index: 100;
  text-align: center;
  margin-bottom: 2rem;
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-radius: 0 0 1rem 1rem;
    border: 1px solid var(--border);
    border-top: none;
    z-index: 1000;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
    text-align: center;
  }

  header {
  overflow: visible;
    position: relative;
  z-index: 100;
  }

  header h1 {
    font-size: 1.75rem;
  }
}

/* Dashboard Grid */
main {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  main:not(.live-layout):not(.status-main):not(.proof-main):not(.build-main):not(.videos-main):not(.roadmap-main):not(.socials-main) {
    grid-template-columns: repeat(2, 1fr);
  }
  .stream-card {
    grid-column: span 2;
  }
  .home-grid {
    grid-column: span 2;
  }
}

/* Card Base */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Page Hero */
.page-hero {
  text-align: center;
  padding: 2rem 0;
}

.page-hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Section Headers */
.proof-section, .build-section, .videos-section, .roadmap-section, .socials-section, .status-section {
  margin-bottom: 2rem;
}

.proof-section h3, .build-section h3, .videos-section h3, .roadmap-section h3, .socials-section h3, .status-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Live Page 2-Column Layout */
.live-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .live-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .stream-column {
    flex: 1;
    min-width: 0;
  }
  .side-panel {
    width: 380px;
    flex-shrink: 0;
  }
}

.stream-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Stream Container */
.stream-card-full {
  padding: 0;
  overflow: hidden;
}

.stream-wrapper {
  position: relative;
  z-index: 100;
}

.stream-container, .stream-container-full {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.stream-container iframe, .stream-container-full iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.stream-placeholder {
  color: var(--text-secondary);
}

.stream-offline {
  text-align: center;
}

.offline-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* CrabTalk Overlay */
.crabtalk-overlay {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  max-width: 90%;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.crabtalk-overlay:hover {
  background: rgba(20, 20, 30, 0.9);
  border-color: var(--accent);
}

.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.overlay-speaker {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
}

.overlay-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.overlay-tag {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Voice Control */
.voice-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
}

.voice-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.voice-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.voice-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.voice-btn.muted {
  background: var(--bg-card);
  border-color: var(--warning);
  color: var(--warning);
}

.voice-icon {
  font-size: 1rem;
}

.voice-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Side Panel */
.side-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
}

@media (min-width: 1024px) {
  .side-panel {
    height: calc(100vh - 250px);
    max-height: 700px;
    min-height: 500px;
  }
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.panel-tab:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.panel-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.panel-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Chat Embed */
.chat-embed-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.chat-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.chat-placeholder {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
}

/* CrabTalk Panel */
.crabtalk-header {
  overflow: visible;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.crabtalk-disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

.crabtalk-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.crabtalk-message {
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.crabtalk-message-header {
  overflow: visible;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.crabtalk-speaker {
  font-weight: 600;
  font-size: 0.9rem;
}

.crabtalk-speaker.jesse {
  color: #4ade80;
}

.crabtalk-speaker.chester {
  color: #60a5fa;
}

.crabtalk-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.crabtalk-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.crabtalk-mood {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Health Grid */
.health-card {
  padding: 1rem 1.5rem;
}

.health-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .health-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.health-item {
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
}

.health-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.health-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.health-value.online {
  color: var(--success);
}

.health-value.offline {
  color: var(--danger);
}

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
}

.stat-status.optimal {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.stat-status.warning {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}
/* New status levels for homepage */
.stat-status.ok {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}
.stat-status.warn {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}
.stat-status.bad {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}
.stat-status.offline {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

/* Crabs Grid */
.crabs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.crab-card {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  text-align: center;
}

  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.crab-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.crab-shell {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.crab-status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

/* System Grid */
.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.system-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
}

.system-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.system-status {
  font-size: 0.85rem;
  font-weight: 500;
}

.system-status.online {
  color: var(--success);
}

.system-status.offline {
  color: var(--danger);
}

/* Status Page */
.status-main {
  display: block;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.telemetry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.telemetry-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.telemetry-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.telemetry-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.chart-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.chart-container {
  height: 200px;
}

.tracking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tracking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.tracking-header {
  overflow: visible;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tracking-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.tracking-card.jesse .tracking-name {
  color: #4ade80;
}

.tracking-card.chester .tracking-name {
  color: #60a5fa;
}

.tracking-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.tracking-status.online {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.tracking-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.tracking-stat {
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.tracking-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.tracking-value {
  font-weight: 600;
}

/* Proof Page */
.proof-main {
  display: block;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.proof-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.proof-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.proof-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.proof-value.proof-ok {
  color: var(--success);
}

.proof-value.proof-warn {
  color: var(--warning);
}

.proof-value.proof-bad {
  color: var(--danger);
}

.proof-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.api-snapshot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.api-header {
  overflow: visible;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.api-endpoint {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--accent);
}

.api-status {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
  border-radius: 1rem;
}

.api-response {
  padding: 1rem;
  font-family: monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  background: var(--bg-primary);
  max-height: 300px;
  overflow-y: auto;
  color: var(--text-secondary);
}

.api-refresh {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.api-refresh:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.ledger-list, .incidents-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.ledger-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

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

.ledger-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-width: 80px;
}

.ledger-event {
  font-size: 0.9rem;
}

.incident-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.incident-item.incident-none {
  color: var(--success);
}

.incident-icon {
  font-size: 1.25rem;
}

/* Build Page */
.build-main {
  display: block;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.gear-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.gear-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.gear-image {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.gear-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.gear-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.receipt-table-wrapper {
  overflow-x: auto;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 0.75rem;
  overflow: hidden;
}

.receipt-table th, .receipt-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.receipt-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.receipt-table td {
  font-size: 0.9rem;
}

.receipt-table tr:last-child td {
  border-bottom: none;
}

.receipt-totals {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.total-row {
  display: flex;
  gap: 2rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border-radius: 0.5rem;
}

.total-label {
  color: var(--text-secondary);
}

.total-value {
  font-weight: 700;
  color: var(--accent);
}

.crab-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.crab-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.crab-avatar {
  font-size: 3rem;
}

.crab-info h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.crab-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Videos Page */
.videos-main {
  display: block;
}

.playlist-embed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  aspect-ratio: 16/9;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-placeholder {
  text-align: center;
  color: var(--text-secondary);
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: none;
  cursor: pointer;
  margin-top: 1rem;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.highlight-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.highlight-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
}

.thumb-placeholder {
  font-size: 2.5rem;
  opacity: 0.5;
}

.highlight-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.8);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.highlight-info {
  padding: 0.75rem;
}

.highlight-title {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.highlight-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.load-more {
  text-align: center;
  margin-top: 1.5rem;
}

/* Roadmap Page */
.roadmap-main {
  display: block;
}

.timeline {
  position: relative;
  z-index: 100;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  z-index: 100;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.75rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.timeline-item.completed .timeline-marker {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.timeline-item.active .timeline-marker {
  background: var(--accent);
  border-color: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.timeline-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.timeline-item.completed .timeline-date {
  color: var(--success);
}

.timeline-item.active .timeline-date {
  color: var(--accent);
}

.timeline-list {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-list li {
  margin-bottom: 0.25rem;
}

.crab-trail {
  margin-top: 3rem;
}

.trail-visual {
  position: relative;
  z-index: 100;
  height: 80px;
  margin-top: 2rem;
}

.trail-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--success) 35%, var(--border) 35%);
  border-radius: 2px;
}

.trail-crab {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  animation: crawl 3s ease-in-out infinite;
}

@keyframes crawl {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  25% { transform: translate(-50%, -55%) rotate(-5deg); }
  75% { transform: translate(-50%, -45%) rotate(5deg); }
}

.trail-markers {
  position: absolute;
  top: 70%;
  left: 0;
  right: 0;
}

.trail-marker {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Socials Page */
.socials-main {
  display: block;
}

.social-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.social-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.social-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.social-icon-large {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.social-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.social-handle {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.social-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bookmark-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bookmark-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.bookmark-icon {
  font-size: 1.5rem;
}

.bookmark-info {
  flex: 1;
}

.bookmark-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.bookmark-url {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: none;
}

.bookmark-copy {
  padding: 0.4rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.bookmark-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.notify-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 400px;
}

.notify-icon {
  font-size: 2rem;
}

.notify-text p {
  font-weight: 500;
}

.notify-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-icon {
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.2s;
}

.social-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.update-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Scrollbar */
.crabtalk-messages::-webkit-scrollbar,
.api-response::-webkit-scrollbar {
  width: 6px;
}

.crabtalk-messages::-webkit-scrollbar-track,
.api-response::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.crabtalk-messages::-webkit-scrollbar-thumb,
.api-response::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.crabtalk-messages::-webkit-scrollbar-thumb:hover,
.api-response::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Proof Page Extended Styles */
.proof-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 900px) {
  .proof-grid-3, .proof-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .proof-grid-3, .proof-grid-4 {
    grid-template-columns: 1fr;
  }
}

.proof-card.stale {
  border-color: var(--warning);
  background: rgba(251, 191, 36, 0.05);
}

.proof-card-wide {
  grid-column: span 1;
}

.proof-value.proof-warn {
  color: var(--warning);
}

.proof-value.proof-bad {
  color: var(--danger);
}

/* Last Seen Card */
.last-seen-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-top: 1rem;
}

.last-seen-icon {
  font-size: 3rem;
}

.last-seen-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.last-seen-who {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.last-seen-where {
  font-size: 1rem;
  color: var(--text-primary);
}

.last-seen-when {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Ledger Extended */
.ledger-item {
  display: grid;
  grid-template-columns: 80px 120px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .ledger-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .ledger-time, .ledger-type {
    font-size: 0.75rem;
  }
}

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

.ledger-type {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(255, 107, 74, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.ledger-status {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.ledger-status-ok {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.ledger-status-warn {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

/* Incidents Extended */
.incident-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

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

.incident-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.incident-content {
  flex: 1;
}

.incident-header {
  overflow: visible;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.incident-title {
  font-weight: 600;
}

.incident-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.incident-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.incident-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-weight: 600;
}

.badge-resolved {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.badge-active {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.incident-resolved {
  opacity: 0.7;
}

/* JSON Viewer */
.json-viewer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.json-viewer summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 500;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.json-viewer summary:hover {
  background: var(--bg-card);
}

.json-viewer[open] summary {
  border-bottom: 1px solid var(--border);
}

.json-viewer .api-response {
  margin: 0;
  border-radius: 0;
  max-height: 400px;
}

/* Build Page Extended Styles */
.gear-card {
  cursor: pointer;
}

.gear-pack {
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 107, 74, 0.1);
  border-radius: 0.25rem;
  display: inline-block;
}

.receipt-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}

.receipt-link:hover {
  text-decoration: underline;
}

.crab-species {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.25rem;
}

.crab-priceless {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  overflow-y: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 100;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.modal-category {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.modal-pack {
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.modal-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-section {
  margin-bottom: 1.25rem;
}

.modal-section h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.modal-section p {
  line-height: 1.5;
}

.modal-specs {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-specs li {
  background: var(--bg-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.modal-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
}

.modal-price-label {
  color: var(--text-secondary);
}

.modal-price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.modal-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
}

/* Receipt table tweaks */
.receipt-table td:nth-child(3),
.receipt-table td:nth-child(4),
.receipt-table td:nth-child(5) {
  text-align: right;
}

.receipt-table th:nth-child(3),
.receipt-table th:nth-child(4),
.receipt-table th:nth-child(5) {
  text-align: right;
}

@media (max-width: 900px) {
  .receipt-table {
    font-size: 0.8rem;
  }
  .receipt-table th,
  .receipt-table td {
    padding: 0.5rem;
  }
}

.gear-card-placeholder,
.crab-profile-placeholder {
  color: var(--text-secondary);
  padding: 2rem;
  text-align: center;
}

/* YouTube Playlist Embed */
.playlist-embed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.playlist-iframe-wrapper {
  position: relative;
  z-index: 100;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.playlist-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.playlist-link-wrapper {
  padding: 1rem;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

/* Videos Page Fallback */
.playlist-fallback {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.fallback-icon {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.playlist-fallback p {
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Disabled Social Card */
.social-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.social-card.disabled:hover {
  transform: none;
  border-color: var(--border);
}

/* Disabled Footer Icon */
.social-icon.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.social-icon.disabled:hover {
  opacity: 0.4;
  transform: none;
}


/* ==================== BEACH MAP ROADMAP v4 - STRAIGHT LINE ==================== */
.beach-map-section {
  margin-top: 1rem;
}

.beach-map {
  position: relative;
  z-index: 100;
  width: 100%;
  height: 500px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Background layers */
.map-bg-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    #080810 0%, 
    #0a0c14 25%, 
    #0d1018 45%,
    #101520 65%,
    #141a28 85%,
    #182030 100%
  );
  z-index: 1;
}

/* Stars - brighter with soft glows */
.map-bg-stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: 
    radial-gradient(2px 2px at 10% 12%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 8%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 40%, transparent 100%),
    radial-gradient(2.5px 2.5px at 40% 18%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.15) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 10%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 40%, transparent 100%),
    radial-gradient(2px 2px at 70% 15%, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.1) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 82% 8%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 5%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.1) 40%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 22%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 35% 6%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 40%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 14%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(2px 2px at 75% 4%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.1) 40%, transparent 100%);
}

/* Moon - larger halo, more glow */
.map-bg-moon {
  position: absolute;
  top: 6%;
  right: 10%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, 
    rgba(255, 252, 245, 0.25) 0%, 
    rgba(255, 250, 240, 0.15) 30%,
    rgba(255, 250, 240, 0.06) 60%,
    transparent 100%
  );
  box-shadow: 
    0 0 30px 15px rgba(255, 252, 245, 0.08),
    0 0 60px 30px rgba(255, 250, 240, 0.05),
    0 0 100px 50px rgba(255, 250, 240, 0.03),
    0 0 150px 75px rgba(255, 250, 240, 0.02);
  z-index: 3;
}

.map-bg-water {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(180deg,
    rgba(20, 35, 55, 0) 0%,
    rgba(20, 35, 55, 0.4) 20%,
    rgba(15, 30, 50, 0.7) 50%,
    rgba(12, 25, 45, 0.85) 100%
  );
  z-index: 4;
}

/* Shoreline - clearer curve */
.map-bg-shoreline {
  position: absolute;
  bottom: 18%;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(40, 50, 65, 0.15) 20%,
    rgba(55, 60, 70, 0.25) 45%,
    rgba(70, 65, 55, 0.2) 70%,
    rgba(80, 70, 55, 0.1) 100%
  );
  z-index: 5;
  filter: blur(6px);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

/* Sand - warmer dark beige with texture */
.map-bg-sand {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(180deg,
    rgba(65, 55, 45, 0.35) 0%,
    rgba(75, 62, 50, 0.55) 25%,
    rgba(70, 58, 48, 0.65) 50%,
    rgba(65, 55, 45, 0.75) 75%,
    rgba(60, 50, 42, 0.8) 100%
  );
  z-index: 6;
}

.map-bg-sand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.map-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, 
    transparent 35%, 
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 7;
  pointer-events: none;
}

.map-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.map-progress-path {
  opacity: 0.8;
}

/* Checkpoints - all on same horizontal axis */
.checkpoint {
  position: absolute;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease;
  /* All checkpoints at Y = 63.3% (maps to SVG y=380 in 600 height) */
  top: 63.3%;
  transform: translate(-50%, -50%);
}

.checkpoint:focus .checkpoint-pin,
.checkpoint:hover .checkpoint-pin {
  transform: scale(1.1);
}

.checkpoint:focus .checkpoint-pin {
  box-shadow: 0 0 0 3px var(--accent);
}

.checkpoint-pin {
  font-size: 1.75rem;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 36, 0.9);
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, border-width 0.2s;
}

.checkpoint-label {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.checkpoint:hover .checkpoint-label,
.checkpoint:focus .checkpoint-label,
.checkpoint.selected .checkpoint-label {
  opacity: 1;
}

/* Status-based checkpoint styles */
.checkpoint.done .checkpoint-pin {
  border-color: var(--success);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.25);
}

.checkpoint.next .checkpoint-pin {
  border-color: var(--warning);
  opacity: 0.85;
}

.checkpoint.later .checkpoint-pin {
  border-color: rgba(136, 136, 170, 0.5);
  opacity: 0.6;
}

/* NOW checkpoint - most prominent */
.checkpoint.current .checkpoint-pin {
  border-color: var(--accent);
  border-width: 3px;
  box-shadow: 
    0 0 20px rgba(255, 107, 74, 0.5),
    0 0 40px rgba(255, 107, 74, 0.25),
    0 0 60px rgba(255, 107, 74, 0.1);
  animation: nowPulse 2.5s ease-in-out infinite;
}

@keyframes nowPulse {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(255, 107, 74, 0.5),
      0 0 40px rgba(255, 107, 74, 0.25),
      0 0 60px rgba(255, 107, 74, 0.1);
  }
  50% { 
    box-shadow: 
      0 0 25px rgba(255, 107, 74, 0.6),
      0 0 50px rgba(255, 107, 74, 0.35),
      0 0 80px rgba(255, 107, 74, 0.15);
  }
}

/* Selected checkpoint highlight */
.checkpoint.selected .checkpoint-pin {
  transform: scale(1.15);
  box-shadow: 
    0 0 0 4px rgba(255, 107, 74, 0.3),
    0 0 25px rgba(255, 107, 74, 0.5);
}

.checkpoint.selected.done .checkpoint-pin {
  box-shadow: 
    0 0 0 4px rgba(74, 222, 128, 0.3),
    0 0 25px rgba(74, 222, 128, 0.4);
}

.checkpoint.selected.next .checkpoint-pin {
  box-shadow: 
    0 0 0 4px rgba(251, 191, 36, 0.3),
    0 0 25px rgba(251, 191, 36, 0.4);
}

.checkpoint.selected.later .checkpoint-pin {
  opacity: 1;
  box-shadow: 
    0 0 0 4px rgba(136, 136, 170, 0.3),
    0 0 25px rgba(136, 136, 170, 0.3);
}

/* Checkpoint X positions - evenly spaced along horizontal line */
/* SVG x coords: 70, 242, 414, 586, 758, 930 → percentages of 1000 */
.checkpoint-1 { left: 7%; }
.checkpoint-2 { left: 24.2%; }
.checkpoint-3 { left: 41.4%; }
.checkpoint-4 { left: 58.6%; }
.checkpoint-5 { left: 75.8%; }
.checkpoint-6 { left: 93%; }

/* Traveling crab - locked at NOW checkpoint (checkpoint-2) */
.traveling-crab {
  position: absolute;
  font-size: 1.5rem;
  z-index: 30;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  /* Same position as checkpoint-2 but above it */
  left: 24.2%;
  top: 63.3%;
  transform: translate(-50%, -180%);
  animation: crabJiggle 2.5s ease-in-out infinite;
}

@keyframes crabJiggle {
  0%, 100% { 
    transform: translate(-50%, -180%) rotate(0deg);
  }
  20% { 
    transform: translate(-50%, -180%) rotate(-4deg) translateY(-2px);
  }
  40% { 
    transform: translate(-50%, -180%) rotate(2deg) translateY(1px);
  }
  60% { 
    transform: translate(-50%, -180%) rotate(-2deg) translateY(-1px);
  }
  80% { 
    transform: translate(-50%, -180%) rotate(3deg) translateY(2px);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .traveling-crab {
    animation: none;
    transform: translate(-50%, -180%);
  }
  .checkpoint-pin {
    transition: none;
  }
  .checkpoint.current .checkpoint-pin {
    animation: none;
    box-shadow: 
      0 0 20px rgba(255, 107, 74, 0.5),
      0 0 40px rgba(255, 107, 74, 0.25);
  }
  .checkpoint {
    transition: none;
  }
}

/* Info Panel */
.checkpoint-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.info-panel-header {
  overflow: visible;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-panel-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.info-panel-title-wrap {
  flex: 1;
}

.info-panel-title {
  font-size: 1.35rem;
  margin: 0 0 0.35rem 0;
  color: var(--text-primary);
}

.info-panel-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  display: inline-block;
}

.info-panel-status.status-done {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.info-panel-status.status-now {
  background: rgba(255, 107, 74, 0.15);
  color: var(--accent);
}

.info-panel-status.status-next {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.info-panel-status.status-later {
  background: rgba(136, 136, 170, 0.15);
  color: var(--text-secondary);
}

.info-panel-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.info-panel-bullets h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.info-panel-bullets ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-panel-bullets li {
  position: relative;
  z-index: 100;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.info-panel-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Mobile: vertical layout */
@media (max-width: 900px) {
  .beach-map {
    height: auto;
    min-height: 700px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .map-bg-sky, .map-bg-stars, .map-bg-moon, .map-bg-water,
  .map-bg-shoreline, .map-bg-sand, .map-bg-vignette {
    display: none;
  }
  
  .beach-map {
    background: var(--bg-card);
  }
  
  .map-path-svg {
    display: none;
  }
  
  .checkpoint {
    position: relative;
  z-index: 100;
    left: auto !important;
    top: auto !important;
    transform: none;
    flex-direction: row;
    align-items: center;
    margin: 0.5rem 0;
    padding-left: 3.5rem;
    min-height: 3.5rem;
  }
  
  .checkpoint::before {
    content: "";
    position: absolute;
    left: 1.6rem;
    top: 3.25rem;
    bottom: -0.5rem;
    width: 2px;
    background: var(--border);
    z-index: 0;
  }
  
  .checkpoint:last-child::before {
    display: none;
  }
  
  .checkpoint-pin {
    position: absolute;
    left: 0;
    top: 0;
  }
  
  .checkpoint-label {
    opacity: 1;
    margin-top: 0;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-shadow: none;
  }
  
  .traveling-crab {
    display: none;
  }
  
  .checkpoint-info-panel {
    margin-top: 1rem;
  }
  
  /* Mobile: keep selected highlight visible */
  .checkpoint.selected .checkpoint-pin {
    transform: scale(1.1);
  }
}

@media (max-width: 500px) {
  .checkpoint {
    padding-left: 3rem;
  }
  
  .checkpoint-pin {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
  
  .checkpoint::before {
    left: 1.25rem;
    top: 2.5rem;
  }
  
  .info-panel-header {
  overflow: visible;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .info-panel-icon {
    font-size: 2rem;
  }
  
  .info-panel-title {
    font-size: 1.1rem;
  }
}

/* ==================== ABOUT PAGE ==================== */
.about-main {
  display: block;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.conservation-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-top: 3rem;
}

.conservation-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.conservation-link:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
  .about-section h3 {
    font-size: 1.25rem;
  }
  
  .about-section p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .conservation-section {
    padding: 1.5rem;
  }
}

/* ==================== ABOUT PAGE v2 ==================== */
.about-main {
  display: block;
}

.about-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.about-hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-hero-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Table of Contents */
.about-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.about-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.2s, background 0.2s;
}

.about-toc a:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.toc-dot {
  width: 3px;
  height: 3px;
  background: var(--border);
  border-radius: 50%;
}

/* Two-column layout */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Section cards */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.about-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 65ch;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-strong {
  color: var(--text-primary) !important;
  font-weight: 500;
}

/* Checklist */
.about-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-icon {
  font-size: 1rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Warning box */
.about-warning {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.about-warning h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-warning ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-warning li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
  z-index: 100;
}

.about-warning li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: bold;
}

/* Crab profiles */
.crab-profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.crab-profile-card {
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.crab-profile-header {
  overflow: visible;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.crab-profile-icon {
  font-size: 1.25rem;
}

.crab-profile-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.crab-profile-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Conservation highlight card */
.about-card-highlight {
  border-color: var(--accent);
  border-width: 1px;
}

.about-cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.about-cta-link:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 74, 0.05);
}

.cta-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.cta-arrow {
  color: var(--accent);
  font-size: 1.25rem;
}

.about-note {
  font-size: 0.85rem !important;
  color: var(--text-secondary) !important;
  font-style: italic;
  margin-top: 0.5rem !important;
}

/* Sidebar */
.about-sidebar {
  position: sticky;
  top: 2rem;
}

.quick-facts-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.quick-facts-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.quick-facts-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.quick-facts-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 1rem;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.quick-facts-list li:last-child {
  border-bottom: none;
}

.quick-facts-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.quick-facts-takeaway {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.75rem;
  background: rgba(255, 107, 74, 0.08);
  border-radius: 0.375rem;
  line-height: 1.5;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  
  .about-sidebar {
    position: static;
    order: -1;
  }
  
  .quick-facts-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 600px) {
  .about-hero h2 {
    font-size: 1.5rem;
  }
  
  .about-hero-text {
    font-size: 1rem;
  }
  
  .about-toc {
    gap: 0.25rem;
  }
  
  .about-toc a {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }
  
  .toc-dot {
    display: none;
  }
  
  .about-card {
    padding: 1.25rem;
  }
  
  .about-card h3 {
    font-size: 1.1rem;
  }
  
  .crab-profiles-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================== COMPACT HEADER ==================== */
header.compact {
  margin-bottom: 1.25rem;
}

header.compact .header-top {
  margin-bottom: 0.25rem;
}

header.compact h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

header.compact .subtitle {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

header.compact .nav {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  header.compact h1 {
    font-size: 1.25rem;
  }
  
  header.compact .subtitle {
    font-size: 0.85rem;
  }
}


/* ==================== ABOUT PAGE v3 ==================== */
.about-main {
  display: block;
}

.about-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero */
.about-hero-v3 {
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.about-hero-v3 h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-subheadline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 1.75rem;
}

.about-hook {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  display: inline-block;
}

.about-hook p {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0;
}

.about-hook p:nth-child(2) {
  color: var(--accent);
  font-weight: 500;
}

/* Divider */
.about-divider {
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

/* Section Cards */
.about-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
}

.about-section-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.about-section-card p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-section-card p:last-child {
  margin-bottom: 0;
}

.about-emphasis {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 1.05rem !important;
  margin-top: 0.5rem !important;
}

.about-section-close {
  margin-top: 1.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-style: italic;
  color: var(--text-secondary) !important;
}

/* Trait List */
.about-trait-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.about-trait {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
}

.trait-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.trait-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trait-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.trait-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Care Grid */
.about-care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.care-column h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.care-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.care-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 0.375rem;
}

.care-icon {
  font-size: 0.95rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

/* Warning Box */
.about-warning-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.about-warning-box h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-warning-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-warning-box li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  z-index: 100;
}

.about-warning-box li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: bold;
  font-size: 1rem;
}

/* Crab Cards */
.about-crab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.crab-card-v3 {
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.crab-card-header {
  overflow: visible;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.crab-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.crab-card-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.crab-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.crab-card-tagline {
  font-size: 0.8rem;
  color: var(--accent);
}

.crab-card-v3 p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Highlight Section */
.about-section-highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 107, 74, 0.03) 100%);
}

/* CTA Button */
.about-cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.about-cta-button:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 74, 0.05);
}

.cta-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.cta-arrow {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 500;
}

.about-small-note {
  font-size: 0.85rem !important;
  color: var(--text-secondary) !important;
  font-style: italic;
  margin: 0 !important;
}

/* Mobile */
@media (max-width: 700px) {
  .about-hero-v3 h2 {
    font-size: 1.75rem;
  }
  
  .about-subheadline {
    font-size: 1rem;
  }
  
  .about-hook {
    padding: 1.25rem 1.5rem;
  }
  
  .about-hook p {
    font-size: 0.95rem;
  }
  
  .about-section-card {
    padding: 1.5rem;
  }
  
  .about-section-card h3 {
    font-size: 1.2rem;
  }
  
  .about-care-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .about-crab-grid {
    grid-template-columns: 1fr;
  }
  
  .about-divider {
    margin: 2rem 0;
  }
}

@media (max-width: 480px) {
  .about-wrapper {
    padding: 0 0.5rem;
  }
  
  .about-hero-v3 {
    padding: 1.5rem 0;
  }
  
  .about-hero-v3 h2 {
    font-size: 1.5rem;
  }
  
  .about-section-card {
    padding: 1.25rem;
  }
  
  .about-trait {
    padding: 0.6rem 0.75rem;
  }
  
  .trait-icon {
    font-size: 1.1rem;
    width: 1.5rem;
  }
}


/* ==================== ABOUT PAGE - INTERACTIVE v4 ==================== */
.about-main {
  display: block;
}

.about-interactive {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Navigation Panel */
.about-nav-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 1rem;
}

.about-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.about-nav-btn:hover {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}

.about-nav-btn:focus {
  outline: none;
  border-color: var(--accent);
}

.about-nav-btn[aria-selected="true"] {
  background: rgba(255, 107, 74, 0.1);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* Content Panel */
.about-content-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  min-height: 400px;
}

.about-content-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.about-content-placeholder p {
  margin: 0;
}

.about-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.about-panel.active {
  display: block;
}

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

.about-panel h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.about-panel p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.about-emphasis {
  color: var(--text-primary) !important;
  font-weight: 500;
}

.about-close-line {
  margin-top: 1.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* Trait Grid */
.about-trait-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.trait-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
}

.trait-item .trait-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trait-item div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trait-item strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.trait-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Care Grid */
.care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.care-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.care-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.care-col li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.6rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 0.375rem;
}

.care-col li span {
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Warning Box */
.warning-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.warning-box h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.warning-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.warning-box li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
  z-index: 100;
}

.warning-box li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: bold;
}

/* Crab Cards */
.crab-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.crab-card {
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.crab-header {
  overflow: visible;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.crab-icon {
  font-size: 1.5rem;
}

.crab-header div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.crab-header strong {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.crab-header span {
  font-size: 0.8rem;
  color: var(--accent);
}

.crab-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* CTA Link */
.cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.cta-link:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 74, 0.05);
}

.cta-link span:first-child {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.cta-link .arrow {
  color: var(--accent);
  font-size: 1.25rem;
}

.small-note {
  font-size: 0.85rem !important;
  font-style: italic;
  margin: 0 !important;
}

/* Mobile */
@media (max-width: 900px) {
  .about-interactive {
    grid-template-columns: 1fr;
  }
  
  .about-nav-panel {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .about-nav-btn {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
  
  .about-content-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .about-nav-panel {
    grid-template-columns: 1fr;
  }
  
  .about-content-panel {
    padding: 1.25rem;
    min-height: auto;
  }
  
  .about-panel h3 {
    font-size: 1.15rem;
  }
  
  .care-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .crab-cards {
    grid-template-columns: 1fr;
  }
  
  .about-content-placeholder {
    min-height: 150px;
  }
}

/* Diet Section */
.diet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

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

.diet-col {
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.diet-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.diet-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.diet-col li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.diet-col li span {
  font-size: 1.1rem;
}

.diet-good {
  border-left: 3px solid var(--success);
}

.diet-bad {
  border-left: 3px solid var(--danger);
}

/* Status Page */
.status-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.status-card {
  padding: 1.5rem;
}

.status-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.status-source {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.environment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.env-card {
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.env-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.env-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.env-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.env-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
  display: inline-block;
}

.env-status.optimal { background: rgba(74, 222, 128, 0.2); color: var(--success); }
.env-status.warning { background: rgba(251, 191, 36, 0.2); color: var(--warning); }
.env-status.danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
/* New status levels */
.env-status.ok { background: rgba(74, 222, 128, 0.2); color: var(--success); }
.env-status.warn { background: rgba(251, 191, 36, 0.2); color: var(--warning); }
.env-status.bad { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.env-ranges {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .devices-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.device-card {
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.device-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.device-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.device-state {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  display: inline-block;
}

.device-state.on { background: rgba(74, 222, 128, 0.2); color: var(--success); }
.device-state.off { background: rgba(136, 136, 170, 0.2); color: var(--text-secondary); }
.device-state.unknown { background: rgba(251, 191, 36, 0.2); color: var(--warning); }

.device-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.system-health-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .system-health-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.health-item {
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
}

.health-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.health-value {
  font-weight: 600;
  color: var(--text-primary);
}

.health-value.online { color: var(--success); }
.health-value.offline { color: var(--danger); }
.health-value.cached { color: var(--warning); }

.crabs-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.crab-status-card {
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.crab-status-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.crab-status-name {
  font-weight: 600;
  color: var(--text-primary);
}

.crab-status-shell {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.crab-status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  background: rgba(74, 222, 128, 0.2);
  color: var(--success);
}

/* ==================== ALERTS ==================== */
.alerts-section {
  margin-bottom: 1.5rem;
}

.alerts-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.alerts-header {
  overflow: visible;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.alerts-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alerts-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
}

.alerts-meta-line {
  display: block;
}

.alerts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.alert-chip {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  min-width: 140px;
  flex: 1;
  max-width: 200px;
}

.alert-chip.cold {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.alert-chip.hot {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.alert-chip.dry {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.alert-chip.humid {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.alert-chip.offline {
  background: rgba(107, 114, 128, 0.2);
  border: 1px solid rgba(107, 114, 128, 0.5);
}

.alert-chip-title {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.alert-chip.cold .alert-chip-title { color: #60a5fa; }
.alert-chip.hot .alert-chip-title { color: #f87171; }
.alert-chip.dry .alert-chip-title { color: #fbbf24; }
.alert-chip.humid .alert-chip-title { color: #4ade80; }
.alert-chip.offline .alert-chip-title { color: #9ca3af; }

.alert-chip-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.alert-chip-action {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.85;
}

.alerts-ok {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: #4ade80;
  font-size: 0.9rem;
}

.alerts-ok-icon {
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .alerts-header {
  overflow: visible;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .alerts-meta {
    text-align: left;
  }
  .alert-chip {
    max-width: none;
  }
}

/* ==================== ALERT LEVELS ==================== */
.alert-chip.warning {
  opacity: 0.95;
}

.alert-chip.critical {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
}

.alert-chip.critical .alert-chip-title {
  color: #f87171 !important;
}

.alerts-ok-stale {
  color: #fbbf24 !important;
}

/* ==================== DEVICE STATE COLORS ==================== */
.device-state.on {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.device-state.off {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.device-state.critical {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  animation: pulse-critical 1.5s ease-in-out infinite;
}

@keyframes pulse-critical {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ==================== EVENT LOG ==================== */
.event-log-section {
  margin-top: 1.5rem;
}

.event-log-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.event-log-header {
  overflow: visible;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.event-log-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-log-container {
  max-height: 300px;
  overflow-y: auto;
}

.event-log-empty {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 1rem 0;
  text-align: center;
}

.event-log-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

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

.event-log-time {
  color: var(--text-secondary);
  font-size: 0.75rem;
  min-width: 90px;
}

.event-log-device {
  font-weight: 500;
  color: var(--text-primary);
}

.event-log-action {
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-log-action.action-on {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.event-log-action.action-off {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.event-log-reason {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.event-log-clear {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  cursor: pointer;
}

.event-log-clear:hover {
  border-color: var(--text-secondary);
}

/* Mobile Nav Fix - Fixed Overlay */
@media (max-width: 768px) {
  header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 1000;
    padding: 1rem 0;
    margin-bottom: 1rem;
  }
  
  .nav {
    display: none !important;
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    background: var(--bg-secondary) !important;
    flex-direction: column !important;
    padding: 1rem !important;
    gap: 0.5rem !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  }
  
  .nav.open {
    display: flex !important;
  }
  
  .nav a {
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    background: var(--bg-card) !important;
    border-radius: 0.5rem !important;
  }
  
  .hamburger {
    display: block !important;
    z-index: 10000 !important;
  }
}

/* ==================== ENHANCED NAV ACTIVE STATES ==================== */
.nav a.active,
.nav button.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  box-shadow: 0 0 8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav a:focus-visible,
.nav button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

#mobile-menu a.active {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

#mobile-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==================== ENV BADGE STATES ==================== */
.env-status.optimal {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}
.env-status.warning {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}
.env-status.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.env-status.offline {
  background: rgba(100, 116, 139, 0.2);
  color: #64748b;
}
.env-status.ok {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}
.env-status.warn {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}
.env-status.bad {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Highlight card thumbnails */
.highlight-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  background: #1a1a24;
  border-radius: 0.5rem;
  overflow: hidden;
}
.highlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.highlight-thumb .highlight-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.highlight-thumb:hover .highlight-play {
  opacity: 1;
}
.highlight-loading, .highlight-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #888;
}

/* Harvey chat styling */
.chat-author.harvey { color: #8B4513; }
.chat-message.harvey { border-left-color: #8B4513; }

/* ==================== HOME PAGE BOTTOM GRID ==================== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

/* Left column cards */
.home-left {
  display: contents;
}

.home-left .stats-card {
  grid-column: 1;
  grid-row: 1;
}

.home-left .system-card {
  grid-column: 1;
  grid-row: 2;
}

/* Right column: Crabs card spans both rows */
.home-grid > .crabs-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

/* Crabs grid centered vertically */
.home-grid > .crabs-card .crabs-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-content: center;
}

/* Compact Environment card */
.home-left .stats-card {
  padding: 1rem;
}

.home-left .stats-card .stats-grid {
  gap: 0.75rem;
}

/* Mobile: stack everything */
@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .home-left .stats-card {
    grid-column: 1;
    grid-row: 1;
  }
  
  .home-grid > .crabs-card {
    grid-column: 1;
    grid-row: 2;
  }
  
  .home-left .system-card {
    grid-column: 1;
    grid-row: 3;
  }
}

/* ==================== ALERT TILES (matches Environment tiles) ==================== */
.alerts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alert-tile {
  background: rgba(15, 15, 25, 0.8);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-tile.warn {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.alert-tile.bad {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.alert-tile-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-tile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.alert-tile-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alert-tile-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0f0f5;
}

.alert-tile-status {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  display: inline-block;
  width: fit-content;
}

.alert-tile-status.warn {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.alert-tile-status.bad {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.alert-tile-action {
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
  margin-top: 0.25rem;
}

/* Automation Log Line */
.automation-log-line {
  padding: 0.5rem 0;
  font-family: monospace;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.automation-log-line:last-child {
  border-bottom: none;
}
.automation-log-empty {
  color: var(--text-muted);
  font-style: italic;
  padding: 1rem;
  text-align: center;
}


