*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(109, 40, 217, 0.4), transparent 60%),
    #020617;
  color: #e5e7f0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
}

.gmt-shell {
  min-height: 100vh;
  display: flex;
  background: radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.18), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98));
  backdrop-filter: blur(22px);
}

.gmt-sidebar {
  width: 260px;
  padding: 24px 22px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at bottom, rgba(126, 34, 206, 0.18), transparent 60%),
    rgba(2, 6, 23, 0.96);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gmt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmt-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    conic-gradient(from 160deg,
      rgba(56, 189, 248, 0.05),
      rgba(129, 140, 248, 0.65),
      rgba(251, 113, 133, 0.9),
      rgba(56, 189, 248, 0.95),
      rgba(56, 189, 248, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.55),
    0 0 26px rgba(56, 189, 248, 0.7);
}

.gmt-logo-mark span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #020617;
}

.gmt-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9ca3b7;
}

.gmt-title {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f9fafb;
}

.gmt-nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3b7;
}

.gmt-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gmt-nav-link {
  width: 100%;
  border-radius: 999px;
  padding: 9px 13px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3b7;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 140ms ease-out;
}

.gmt-nav-link:hover {
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.gmt-nav-link.active {
  border-color: rgba(56, 189, 248, 0.65);
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.38), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(129, 140, 248, 0.45), transparent 55%),
    rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.3),
    0 0 16px rgba(56, 189, 248, 0.6);
}

.gmt-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 20%, #ffffff, #a855f7);
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, 0.45),
    0 0 14px rgba(168, 85, 247, 0.9);
}

.gmt-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gmt-main {
  flex: 1;
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.gmt-meta,
.gmt-meta-small {
  font-size: 0.72rem;
  color: #9ca3b7;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gmt-meta-small {
  font-size: 0.68rem;
}

.gmt-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 5px 11px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3b7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gmt-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 20%, #f9fafb, #22d3ee);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.75),
    0 0 12px rgba(56, 189, 248, 0.85);
}

.gmt-view {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.gmt-view.active {
  display: flex;
}

.gmt-card {
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(17, 24, 39, 0.96), rgba(3, 7, 18, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.7);
  padding: 16px 18px;
}

.gmt-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3b7;
}

.gmt-subtext {
  font-size: 0.78rem;
  color: #9ca3b7;
}

.gmt-time-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 16px;
}

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

.gmt-hero-main-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 8px;
}

.gmt-hero-time {
  font-size: clamp(3.1rem, 4vw + 1.5rem, 4.1rem);
  line-height: 1;
}

.gmt-clock-numerals {
  font-feature-settings: "tnum" 1, "ss01" 1;
  letter-spacing: 0.06em;
}

.gmt-base-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.gmt-tag {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 2px 10px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gmt-hero-date {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3b7;
}

.gmt-day-strip {
  margin-top: 12px;
  display: flex;
  gap: 4px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.gmt-day-pill {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  padding: 5px 0;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3b7;
}

.gmt-day-pill.active {
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.7), rgba(37, 99, 235, 0.9));
  color: #020617;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.6),
    0 0 18px rgba(56, 189, 248, 0.8);
}

.gmt-hero-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gmt-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.gmt-field {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gmt-field-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3b7;
}

.gmt-input {
  background-color: #020617;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
}

.gmt-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

.gmt-input-date {
  max-width: 170px;
}

.gmt-btn-primary {
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.85);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.95), rgba(37, 99, 235, 0.9));
  color: #020617;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.6),
    0 0 24px rgba(56, 189, 248, 0.85);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, filter 120ms ease-out;
}

.gmt-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.75),
    0 0 36px rgba(56, 189, 248, 0.95);
}

.gmt-btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  color: #9ca3b7;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out;
}

.gmt-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.8);
}

.gmt-time-scrubber {
  margin-top: 10px;
}

.gmt-scrubber-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gmt-scrubber-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmt-slider {
  width: 100%;
  margin-top: 10px;
}

.gmt-clock-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 12px;
  margin-top: 10px;
}

.gmt-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.gmt-clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.gmt-clock-card {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 10px 11px 9px;
  background:
    radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.96);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out, transform 120ms ease-out;
}

.gmt-clock-card.base {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.6),
    0 0 22px rgba(56, 189, 248, 0.9);
}

.gmt-clock-card:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.7);
}

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

.gmt-clock-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gmt-clock-time {
  font-size: 1.26rem;
}

.gmt-clock-meta {
  font-size: 0.7rem;
  color: #9ca3b7;
}

.gmt-clock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
}

.gmt-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-top: 10px;
}

.gmt-map-svg {
  width: 100%;
  height: 160px;
}

.gmt-map-label {
  font-size: 4px;
  fill: #e5e7eb;
  text-transform: uppercase;
}

.gmt-country-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
  gap: 12px;
}

.gmt-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.gmt-summary-item {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 10px 11px;
  background: rgba(15, 23, 42, 0.98);
}

.gmt-summary-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3b7;
}

.gmt-summary-value {
  font-size: 0.92rem;
}

.gmt-summary-metric {
  font-size: 1.2rem;
}

.gmt-table-card {
  margin-top: 12px;
}

.gmt-table-wrapper {
  margin-top: 8px;
  max-height: 280px;
  overflow: auto;
}

.gmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.gmt-table thead {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3b7;
}

.gmt-table th,
.gmt-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.gmt-table tbody tr:hover {
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), transparent 60%);
}

.text-right {
  text-align: right;
}

.gmt-country-tag {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 2px 9px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gmt-instructions {
  margin-top: 10px;
  font-size: 0.84rem;
  color: #e5e7f0;
  padding-left: 18px;
}

.gmt-instructions li + li {
  margin-top: 4px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 1px 4px;
  border-radius: 4px;
}

@media (max-width: 992px) {
  .gmt-shell {
    flex-direction: column;
  }

  .gmt-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .gmt-time-hero,
  .gmt-country-grid,
  .gmt-clock-layout,
  .gmt-map-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .gmt-main {
    padding: 16px;
  }

  .gmt-main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gmt-scrubber-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gmt-scrubber-controls {
    flex-wrap: wrap;
  }
}

