/* ==========================================================================
   TimeTick.live — Ultra-Modern Ambient Aesthetic & Floating Dock Engine
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-main: #0a0c0f;
  --bg-surface: #12161d;
  --bg-card: #161b24;
  --bg-card-hover: #1e2430;
  --bg-dock: rgba(18, 22, 29, 0.82);
  --bg-oled: #000000;
  
  /* Borders & Glows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-cyan: rgba(0, 242, 254, 0.35);
  
  /* Accents */
  --accent-cyan: #00f2fe;
  --accent-blue: #38bdf8;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  
  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Typography */
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-hero: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-flip: 'JetBrains Mono', monospace;

  /* Shadows */
  --glow-cyan-subtle: 0 0 60px rgba(0, 242, 254, 0.14);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.3);
  --shadow-dock: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.4);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.4s ease;
}

/* Monospace Tabular Figures */
.mono, .digit-box, .seconds-digit, .millis-sub, .ampm-badge, .world-time, .stat-value.mono, .result-time, .related-offset {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* App Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 110px; /* Space for floating dock */
  background: radial-gradient(circle at 50% -10%, rgba(0, 242, 254, 0.05) 0%, rgba(10, 12, 15, 1) 75%);
  transition: all 0.4s ease;
}

/* ==========================================================================
   Header Bar
   ========================================================================== */

.header {
  height: 64px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 12, 15, 0.7);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.logo-pulse {
  position: relative;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.logo-pulse::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-accent {
  color: var(--accent-cyan);
}

.logo-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-share-header {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  font-weight: 600;
}

.btn-share-header:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sync-pill:hover {
  border-color: var(--border-cyan);
  color: var(--text-primary);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-indicator.synced {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-indicator.drift {
  background: var(--accent-yellow);
  box-shadow: 0 0 8px var(--accent-yellow);
}

.status-indicator.measuring {
  background: var(--accent-blue);
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
}

.btn-embed-highlight {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan, #00f2fe);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-embed-highlight:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: rgba(0, 242, 254, 0.7);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
  transform: translateY(-1px);
}

.btn-embed-highlight .btn-icon {
  font-size: 0.85rem;
  filter: drop-shadow(0 0 4px var(--accent-cyan));
}

.badge-mini-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.2);
  border: 1px solid rgba(0, 242, 254, 0.45);
  color: #00f2fe;
  line-height: 1;
  letter-spacing: 0.04em;
}

.icon {
  width: 18px;
  height: 18px;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-xs {
  width: 13px;
  height: 13px;
}

.icon-accent {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Main Stage Layout
   ========================================================================== */

.main-stage {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

/* ==========================================================================
   Popular Regional Chips Bar (Direct Center Axis Alignment)
   ========================================================================== */

.popular-chips-bar, .popular-cities-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 1.5rem auto;
  gap: 0.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.chips-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.chips-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.chip.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   Hero Clock Hierarchy
   ========================================================================== */

.hero-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  position: relative;
}

.hero-clock-display {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 1.5rem 0;
  user-select: none;
}

/* Ambient Radial Glow Backdrop */
.clock-ambient-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 65%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(0, 242, 254, 0.09) 0%, rgba(56, 189, 248, 0.02) 50%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

/* Clock Digits Group */
.clock-digits-group {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 0.92;
  margin-bottom: 1.25rem;
}

.hours-minutes-wrap {
  display: flex;
  align-items: baseline;
}

.hero-digits {
  font-family: var(--font-hero);
  font-size: clamp(5.5rem, 15vw, 12.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #ffffff;
  text-shadow: 0 0 60px rgba(0, 242, 254, 0.12), 0 0 100px rgba(0, 242, 254, 0.05);
  transition: font-size 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
}

.time-colon {
  font-family: var(--font-hero);
  font-size: clamp(4.5rem, 13vw, 11rem);
  font-weight: 700;
  color: var(--accent-cyan);
  margin: 0 0.03em;
  opacity: 0.95;
  text-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
  position: relative;
  bottom: 0.08em;
}

/* Offset Raised Seconds Column */
.seconds-addon-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0.35rem;
  position: relative;
  top: clamp(-1.5rem, -4vw, -3rem);
  transition: opacity 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.seconds-box {
  display: flex;
  align-items: baseline;
}

.seconds-colon {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--accent-cyan);
  opacity: 0.85;
}

.seconds-digit {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: -0.03em;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.millis-sub {
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.15rem;
}

.ampm-badge {
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.06em;
  margin-top: 0.1rem;
}

/* Hide Seconds State */
body.hide-seconds .seconds-addon-col .seconds-box {
  display: none !important;
}

body.hide-seconds .seconds-addon-col {
  top: 0;
}

/* ==========================================================================
   Continuous 60-Second Viewport Top Progress Bar
   ========================================================================== */

.top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan, #00f2fe), var(--accent-blue, #4facfe));
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
  z-index: 1000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ==========================================================================
   Location & Date Hierarchy Block
   ========================================================================== */

.location-date-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.city-heading-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.city-name-huge {
  font-family: var(--font-hero);
  font-size: clamp(1.8rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-transform: uppercase;
}

.city-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.change-loc-btn,
.city-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.change-loc-btn:hover,
.city-share-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.btn-kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 0.05rem 0.3rem;
  color: var(--text-muted);
}

/* Subtitle Line: COUNTRY • TIMEZONE_CODE • UTC_OFFSET */
.location-meta-sub {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta-country {
  color: #ffffff;
  font-weight: 700;
}

.meta-tz-code {
  color: var(--accent-cyan);
}

.meta-utc-offset {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.meta-dot {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8em;
}

/* Formatted Date Line */
.date-full-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.week-pill {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   Programmatic SEO: Related Cities Interlinking Grid
   ========================================================================== */

.seo-related-cities {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgba(18, 22, 29, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.related-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.related-city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.related-city-card:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.related-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.related-city-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.related-country {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.related-offset {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   Sections Visibility by Mode
   ========================================================================== */

.section-classic-only,
.section-world-only {
  width: 100%;
  max-width: 1000px;
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

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

/* Mode: Minimal */
body.mode-minimal .section-classic-only,
body.mode-minimal .section-world-only {
  display: none !important;
}

/* Mode: Classic */
body.mode-classic .section-classic-only {
  display: flex !important;
  flex-direction: column;
  gap: 1.5rem;
}

/* Mode: World */
body.mode-world .section-world-only {
  display: flex !important;
  flex-direction: column;
  gap: 1.25rem;
}

/* Mode: Ambient */
body.mode-ambient {
  background-color: var(--bg-oled) !important;
}

body.mode-ambient .app-container {
  background: #000000 !important;
}

body.mode-ambient .header,
body.mode-ambient .popular-chips-bar,
body.mode-ambient .section-classic-only,
body.mode-ambient .section-world-only,
body.mode-ambient .city-actions-wrap,
body.mode-ambient .seo-related-cities {
  display: none !important;
}

body.mode-ambient .hero-digits {
  font-size: clamp(6.5rem, 18vw, 15rem);
  text-shadow: 0 0 80px rgba(0, 242, 254, 0.25);
}

body.mode-ambient .hero-stage {
  min-height: 80vh;
}

/* Mode: Flip Clock */
body.mode-flip .hero-digits {
  font-family: var(--font-flip);
  background: #181d26;
  padding: 0.1em 0.18em;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin: 0 0.05em;
  position: relative;
}

body.mode-flip .hero-digits::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Classic & World Components Styling
   ========================================================================== */

/* Quick Copy Actions */
.quick-copy-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  color: #ffffff;
  transform: translateY(-2px);
}

.copy-pill.highlight-share {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan);
  font-weight: 600;
}

.copy-pill.highlight-share:hover {
  background: var(--accent-cyan);
  color: #000000;
  border-color: var(--accent-cyan);
}

/* Diagnostics Card */
.diagnostic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.diagnostic-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.diagnostic-badge.drift-notice {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-yellow);
  border-color: rgba(245, 158, 11, 0.3);
}

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

.drift-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

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

.stat-value.highlight {
  color: var(--accent-emerald);
}

.stat-value.highlight.warn {
  color: var(--accent-yellow);
}

/* World Grid */
.section-title-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.section-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.world-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.world-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.world-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.city-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.country-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.world-tz-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.world-time {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0.1rem 0;
}

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

.world-diff {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   Floating Bottom Dock (Control Bar)
   ========================================================================== */

.bottom-dock-container {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: auto;
  max-width: 95vw;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.dock-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  background: var(--bg-dock);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  box-shadow: var(--shadow-dock);
}

.dock-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
  margin: 0 0.15rem;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Search Button */
.dock-search-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.dock-search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.dock-kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  color: var(--text-muted);
}

/* Segmented Modes */
.dock-modes-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.18rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-pill {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-pill:hover {
  color: #ffffff;
}

.mode-pill.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Toggles */
.dock-toggles-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dock-toggle-btn {
  padding: 0.45rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.dock-toggle-btn.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.25);
}

/* Emerald Green Fullscreen Button */
.dock-fullscreen-btn {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #10b981;
  box-shadow: var(--glow-emerald);
  padding: 0.45rem 0.95rem;
}

.dock-fullscreen-btn:hover {
  background: #10b981;
  color: #000000;
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.fullscreen-text {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Fullscreen OLED Screensaver Active
   ========================================================================== */

:fullscreen,
:-webkit-full-screen,
body.fullscreen-active {
  background-color: var(--bg-oled) !important;
}

body.fullscreen-active .app-container {
  background: #000000 !important;
  padding-bottom: 0;
}

body.fullscreen-active .header,
body.fullscreen-active .popular-chips-bar,
body.fullscreen-active .section-classic-only,
body.fullscreen-active .section-world-only,
body.fullscreen-active .city-actions-wrap,
body.fullscreen-active .seo-related-cities,
body.fullscreen-active .feature-ticker,
body.mode-ambient .feature-ticker {
  display: none !important;
}

body.fullscreen-active .main-stage {
  height: 100vh;
  justify-content: center;
  align-items: center;
  padding: 0;
}

body.fullscreen-active .hero-digits {
  font-size: clamp(7rem, 20vw, 18rem);
  text-shadow: 0 0 80px rgba(0, 242, 254, 0.25), 0 0 150px rgba(0, 242, 254, 0.1);
}

body.fullscreen-active .time-colon {
  font-size: clamp(6rem, 17vw, 15rem);
}

body.fullscreen-active .seconds-digit {
  font-size: clamp(2.8rem, 7vw, 6rem);
}

body.fullscreen-active .city-name-huge {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
}

/* Auto-hide Cursor & Dock when Idle */
body.fullscreen-active.idle,
body.fullscreen-active.idle * {
  cursor: none !important;
}

body.fullscreen-active.idle .bottom-dock-container,
body.idle .bottom-dock-container,
body.idle .feature-ticker {
  opacity: 0 !important;
  transform: translate(-50%, 30px) !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Global Location Search Engine Modal
   ========================================================================== */

.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  width: 90%;
  max-width: 660px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 242, 254, 0.15);
  transform: translateY(-20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.search-modal-backdrop.open .search-modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

.icon-search {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.modal-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: #ffffff;
}

.modal-search-input::placeholder {
  color: var(--text-muted);
}

.modal-search-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 242, 254, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.modal-esc-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-esc-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.modal-quick-categories {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

.quick-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.quick-cat-chip {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-cat-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
}

.keyboard-tip kbd {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.modal-results-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 50vh;
}

.modal-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-result-item:hover,
.modal-result-item.highlighted {
  background: rgba(0, 242, 254, 0.09);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateX(2px);
}

.modal-result-item.selected {
  background: rgba(0, 242, 254, 0.14);
  border-color: var(--accent-cyan);
}

.result-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.result-city-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.result-city {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.result-region {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.result-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.result-tz-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.result-time-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.result-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: -0.02em;
}

.result-diff {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   Embed & Widget Integration Modal Styling
   ========================================================================== */

.embed-modal-card {
  max-width: 880px;
  width: 92%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.embed-modal-header {
  padding: 1.25rem 1.6rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.embed-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.embed-modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.embed-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.embed-modal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.embed-tab-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.25rem;
  gap: 0.5rem;
}

.embed-tab-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.embed-tab-btn:hover {
  color: #ffffff;
}

.embed-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
}

.embed-tab-content {
  padding: 1.4rem 1.6rem;
  overflow-y: auto;
  flex: 1;
}

.embed-generator-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
}

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

.embed-controls-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.embed-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.embed-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.embed-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: #ffffff;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.embed-select:focus {
  border-color: var(--accent-cyan);
}

.embed-select option {
  background: #0d121c;
  color: #ffffff;
}

.embed-btn-group {
  display: flex;
  gap: 0.4rem;
}

.embed-option-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 0.45rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.embed-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.embed-option-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.embed-checkboxes-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.embed-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.embed-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.embed-preview-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

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

.embed-preview-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.embed-preview-dimensions {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.embed-preview-stage {
  background: #000000;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
  height: 160px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.embed-preview-stage iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.embed-snippet-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.snippet-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.snippet-code-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: #38bdf8;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  resize: none;
}

.snippet-input-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: #ffffff;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  outline: none;
}

/* API Documentation Tab */
.api-docs-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.api-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.api-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.api-method-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.api-method-badge.get {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.api-method-badge.info {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.35);
}

.api-endpoint-url {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
}

.api-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.api-code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.76rem;
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 300;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  background: rgba(18, 22, 29, 0.95);
  border: 1px solid var(--accent-cyan);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.2);
  backdrop-filter: blur(12px);
  animation: toast-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes toast-slide {
  from { opacity: 0; transform: translateY(-15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.25s ease;
}

/* ==========================================================================
   One-Stop Time Hub Views (Converter, Solar, Developer, Planner)
   ========================================================================== */

.section-hub-view {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hub-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.hub-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hub-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Converter View Styling
   -------------------------------------------------------------------------- */

.converter-scrubber-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
}

.scrubber-top-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.scrubber-time-badge {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
}

.scrubber-time-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.scrubber-date-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.scrubber-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.converter-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #091322, #1e3a5f, #00f2fe, #1e3a5f, #091322);
  outline: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.converter-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.converter-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.converter-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan);
  cursor: pointer;
}

.scrubber-ticks-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 4px;
}

.converter-cities-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.conv-city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.conv-city-card.active-base {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.04);
}

.conv-city-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.conv-city-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.conv-city-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.conv-city-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: right;
}

.conv-time-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.conv-time-digits {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.conv-date-diff {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.status-badge-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-badge-pill.work {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-badge-pill.extended {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-badge-pill.night {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* --------------------------------------------------------------------------
   Solar View Styling
   -------------------------------------------------------------------------- */

.solar-arc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.solar-arc-visual {
  position: relative;
  height: 120px;
  width: 100%;
  max-width: 600px;
  margin: 1rem auto 0.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.solar-arc-track {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  border: 2px dashed rgba(0, 242, 254, 0.35);
  border-bottom: none;
  border-radius: 200px 200px 0 0;
}

.solar-arc-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.sun-marker {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.5s ease;
  z-index: 2;
}

.sun-marker-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.8));
}

.sun-marker-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.7);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.solar-arc-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.solar-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.solar-icon {
  font-size: 1.2rem;
}

.solar-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.solar-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.solar-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
}

.solar-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
  box-sizing: border-box;
}

.solar-stat-card .stat-value {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.stat-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.stat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, var(--accent-cyan));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* --------------------------------------------------------------------------
   Developer View Styling
   -------------------------------------------------------------------------- */

.epoch-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-card);
}

.epoch-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.epoch-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.epoch-hero-val {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(0, 242, 254, 0.3);
  margin: 0.4rem 0;
}

.epoch-hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.dev-format-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-sizing: border-box;
}

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

.dev-fmt-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.btn-copy-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-mini:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

.dev-fmt-val {
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  color: #ffffff;
  word-break: break-all;
  line-height: 1.4;
}

.epoch-converter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.converter-input-row {
  display: flex;
  gap: 0.75rem;
}

.dev-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.dev-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.btn-accent-glow {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accent-glow:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.converter-result-box {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent-cyan);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Planner View Styling
   -------------------------------------------------------------------------- */

.planner-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 0 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-box.work { background: rgba(16, 185, 129, 0.8); }
.legend-box.extended { background: rgba(245, 158, 11, 0.75); }
.legend-box.night { background: rgba(30, 41, 59, 0.8); }

.legend-hint {
  margin-left: auto;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.planner-matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.planner-matrix-scroll {
  overflow-x: auto;
  width: 100%;
}

.planner-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

.planner-table th, .planner-table td {
  padding: 0.6rem 0.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.planner-table th {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
}

.planner-city-header {
  text-align: left !important;
  padding-left: 0.75rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  width: 160px;
}

.planner-hour-cell {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 4px;
}

.planner-hour-cell.work {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.planner-hour-cell.extended {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.planner-hour-cell.night {
  background: rgba(15, 23, 42, 0.6);
  color: #64748b;
}

.planner-hour-cell:hover, .planner-hour-cell.selected-col {
  outline: 2px solid var(--accent-cyan);
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.planner-slot-inspector {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.slot-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.slot-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.inspector-cities-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.inspector-city-pill {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.insp-city-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.insp-city-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .dock-inner {
    padding: 0.35rem 0.45rem;
    gap: 0.4rem;
  }

  .dock-btn, .mode-pill {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
  }

  .dock-label, .dock-kbd, .btn-label-text {
    display: none;
  }

  .search-modal-backdrop {
    padding-top: 4vh;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 0 1rem;
  }

  .main-stage {
    padding: 1.25rem 0.75rem;
  }

  .bottom-dock-container {
    bottom: 1rem;
    max-width: 98vw;
  }

  .dock-inner {
    gap: 0.25rem;
  }

  .mode-pill {
    padding: 0.3rem 0.45rem;
    font-size: 0.72rem;
  }

  .hero-digits {
    font-size: clamp(3.8rem, 19vw, 6.5rem);
  }

  .time-colon {
    font-size: clamp(3rem, 16vw, 5.5rem);
  }

  .seconds-addon-col {
    margin-left: 0.15rem;
  }

  .search-modal-card {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 1rem;
  }

  .related-cities-grid {
    grid-template-columns: 1fr;
  }
}

.feature-ticker, #featureTicker, [class*="ticker"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
