:root {
  --bg: #071521;
  --bg-accent: #0d2638;
  --panel: rgba(13, 38, 56, 0.9);
  --panel-strong: #0d2638;
  --panel-soft: rgba(13, 38, 56, 0.92);
  --card-border: rgba(0, 238, 255, 0.18);
  --text: #edf8ff;
  --muted: #b9cad4;
  --accent: #00cce6;
  --accent-strong: #00eeff;
  --success: #6fe8ab;
  --warning: #f9c96e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-photo {
  display: block;
  width: 100%;
  height: 150px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  object-fit: cover;
}

body.light-mode {
  --bg: #edf4ff;
  --bg-accent: #dfeeff;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --panel-soft: rgba(240, 246, 255, 0.96);
  --card-border: rgba(75, 113, 151, 0.18);
  --text: #10273d;
  --muted: #496684;
  --accent: #1d7ef0;
  --accent-strong: #00a2ff;
  --success: #0fa768;
  --warning: #d28d00;
  --shadow: 0 18px 48px rgba(31, 66, 109, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(62, 195, 255, 0.15), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg-accent));
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.04), transparent 40%, rgba(255,255,255,0.02));
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.dashboard-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: rgba(9, 18, 31, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

body.light-mode .dashboard-header {
  background: rgba(255, 255, 255, 0.76);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #031621;
  font-size: 0.86rem;
  box-shadow: 0 10px 20px rgba(62, 195, 255, 0.35);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-nav a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-nav a:hover,
.text-link:hover {
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.theme-menu {
  position: relative;
  flex: 0 0 auto;
}

.theme-toggle:hover,
.theme-menu.open .theme-toggle {
  border-color: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-icon {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.theme-icon i {
  position: absolute;
  font-size: 1.1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-icon .bx-sun {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-icon .bx-moon {
  opacity: 0;
  transform: rotate(-30deg);
}

body.light-mode .theme-icon .bx-sun {
  opacity: 0;
  transform: rotate(30deg);
}

body.light-mode .theme-icon .bx-moon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-label {
  font-size: 0.9rem;
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 178px;
  padding: 6px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(9, 18, 31, 0.96);
  box-shadow: var(--shadow), 0 0 24px color-mix(in srgb, var(--accent) 10%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(14px);
}

.theme-menu.open .theme-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.light-mode .theme-dropdown {
  background: rgba(255, 255, 255, 0.97);
}

.theme-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-option > i:first-child {
  width: 18px;
  color: var(--accent);
  font-size: 1.1rem;
  text-align: center;
}

.theme-option:hover,
.theme-option:focus-visible,
.theme-option.selected {
  outline: none;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-strong);
}

.theme-option:hover {
  transform: translateX(2px);
}

.theme-check {
  margin-left: auto;
  color: var(--accent-strong);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-option.selected .theme-check {
  opacity: 1;
  transform: scale(1);
}

.accent-picker {
  margin: 6px 4px 2px;
  padding: 9px 7px 4px;
  border-top: 1px solid var(--card-border);
}

.accent-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accent-options {
  display: flex;
  gap: 8px;
}

.accent-swatch {
  width: 21px;
  height: 21px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.accent-swatch:hover,
.accent-swatch:focus-visible,
.accent-swatch.selected {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px currentColor;
  transform: scale(1.1);
}

.accent-swatch[data-accent="cyan"] { background: #00eeff; color: #00eeff; }
.accent-swatch[data-accent="violet"] { background: #a78bfa; color: #a78bfa; }
.accent-swatch[data-accent="emerald"] { background: #34d399; color: #34d399; }
.accent-swatch[data-accent="amber"] { background: #fbbf24; color: #fbbf24; }
.accent-swatch[data-accent="rose"] { background: #fb7185; color: #fb7185; }

.dashboard {
  display: grid;
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  background: linear-gradient(135deg, rgba(20, 75, 111, 0.7), rgba(10, 17, 28, 0.92));
}

.hero-panel::after {
  position: absolute;
  top: -115px;
  right: 12%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(0, 238, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(0, 238, 255, 0.035),
    0 0 0 50px rgba(0, 238, 255, 0.025),
    inset 0 0 54px rgba(0, 238, 255, 0.08);
  content: "";
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

body.light-mode .hero-panel {
  background: linear-gradient(135deg, rgba(57, 140, 233, 0.12), rgba(255,255,255,0.9));
}

body.light-mode .hero-panel::after {
  border-color: rgba(0, 127, 145, 0.18);
  box-shadow:
    0 0 0 24px rgba(0, 127, 145, 0.025),
    0 0 0 50px rgba(0, 127, 145, 0.018),
    inset 0 0 54px rgba(0, 127, 145, 0.04);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-panel h1,
.section-header h2 {
  margin: 0;
}

.hero-panel h1 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 232, 171, 0.38);
  background: rgba(111, 232, 171, 0.1);
  color: var(--success);
  font-weight: 600;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(111, 232, 171, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 232, 171, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(111, 232, 171, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 232, 171, 0); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.utility-card {
  min-width: 0;
  padding: 22px 20px;
}

.uptime-display {
  margin-top: 20px;
  color: var(--accent-strong);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.widget-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.uptime-track {
  height: 7px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.uptime-track span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  animation: uptime-glow 2.5s ease-in-out infinite alternate;
}

@keyframes uptime-glow {
  to { width: 92%; opacity: 0.65; }
}

.weather-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  isolation: isolate;
  min-height: 112px;
  margin: 10px -2px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 238, 255, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(62, 195, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.weather-effects {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.weather-effects::before,
.weather-effects::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.weather-scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.weather-effects.rain,
.weather-effects.storm {
  opacity: 1;
}

.weather-effects.clear,
.weather-effects.partly-cloudy,
.weather-effects.cloudy,
.weather-effects.fog,
.weather-effects.drizzle,
.weather-effects.snow {
  opacity: 1;
}

.weather-effects.rain .weather-scene-image,
.weather-effects.storm .weather-scene-image {
  opacity: 0.68;
}

.weather-effects.drizzle .weather-scene-image {
  opacity: 0.45;
  filter: saturate(0.72);
}

.weather-effects.clear {
  background:
    radial-gradient(ellipse at 78% 18%, rgba(255, 216, 120, 0.9), transparent 17%),
    linear-gradient(135deg, #1e83b3, #48b9d2 56%, #a1d9d5);
}

.weather-effects.clear::before {
  background: radial-gradient(ellipse at 78% 18%, rgba(255, 243, 186, 0.58), transparent 34%);
  animation: sunny-glow 4s ease-in-out infinite alternate;
  opacity: 1;
}

.weather-effects.partly-cloudy,
.weather-effects.cloudy {
  background: linear-gradient(150deg, #397fa5, #85b9c5 58%, #b7d0c8);
}

.weather-effects.partly-cloudy::before,
.weather-effects.cloudy::before {
  background:
    radial-gradient(ellipse at 20% 40%, rgba(255, 255, 255, 0.94) 0 12%, transparent 13%),
    radial-gradient(ellipse at 29% 33%, rgba(255, 255, 255, 0.92) 0 15%, transparent 16%),
    radial-gradient(ellipse at 40% 42%, rgba(255, 255, 255, 0.86) 0 12%, transparent 13%),
    radial-gradient(ellipse at 33% 53%, rgba(255, 255, 255, 0.88) 0 21%, transparent 22%);
  background-size: 185% 150%;
  animation: cloud-drift 20s linear infinite;
  opacity: 0.82;
}

.weather-effects.partly-cloudy::after,
.weather-effects.cloudy::after {
  background:
    radial-gradient(ellipse at 78% 70%, rgba(255, 255, 255, 0.88) 0 13%, transparent 14%),
    radial-gradient(ellipse at 87% 63%, rgba(255, 255, 255, 0.82) 0 16%, transparent 17%),
    radial-gradient(ellipse at 96% 73%, rgba(255, 255, 255, 0.78) 0 14%, transparent 15%),
    radial-gradient(ellipse at 88% 84%, rgba(255, 255, 255, 0.8) 0 22%, transparent 23%);
  background-size: 180% 160%;
  animation: cloud-drift 28s linear infinite reverse;
  opacity: 0.72;
}

.weather-effects.partly-cloudy::before {
  opacity: 0.56;
}

.weather-effects.cloudy {
  background: linear-gradient(150deg, #334d69, #708a9a 58%, #a0b5bd);
}

.weather-effects.cloudy::before,
.weather-effects.cloudy::after {
  filter: saturate(0.62);
  opacity: 0.96;
}

.weather-effects.fog {
  background: linear-gradient(160deg, #435d70, #8296a0 56%, #b5c0be);
}

.weather-effects.fog::before {
  background: repeating-linear-gradient(
    174deg,
    transparent 0 17px,
    rgba(235, 243, 242, 0.5) 23px,
    rgba(235, 243, 242, 0.16) 41px,
    transparent 58px
  );
  animation: fog-drift 12s ease-in-out infinite alternate;
  opacity: 1;
}

.weather-effects.fog::after {
  background: linear-gradient(90deg, rgba(235, 243, 242, 0.08), rgba(235, 243, 242, 0.65), rgba(235, 243, 242, 0.1));
  animation: fog-drift 18s ease-in-out infinite alternate-reverse;
  opacity: 0.72;
}

.weather-effects.night {
  background:
    radial-gradient(circle at 78% 25%, rgba(239, 245, 255, 0.92) 0 8%, transparent 8.5%),
    radial-gradient(circle at 78% 25%, rgba(205, 224, 255, 0.24), transparent 23%),
    linear-gradient(145deg, #09162f, #172c50 62%, #293c5c);
}

.weather-effects.night::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(190, 219, 255, 0.8) 1px, transparent 1.8px);
  background-position: 12px 9px, 37px 26px;
  background-size: 57px 43px, 73px 61px;
  animation: stars-twinkle 3s ease-in-out infinite alternate;
  opacity: 0.75;
}

.weather-effects.night.partly-cloudy::before,
.weather-effects.night.cloudy::before {
  background-image:
    radial-gradient(ellipse at 20% 40%, rgba(114, 143, 183, 0.92) 0 12%, transparent 13%),
    radial-gradient(ellipse at 29% 33%, rgba(114, 143, 183, 0.9) 0 15%, transparent 16%),
    radial-gradient(ellipse at 40% 42%, rgba(114, 143, 183, 0.84) 0 12%, transparent 13%),
    radial-gradient(ellipse at 33% 53%, rgba(114, 143, 183, 0.86) 0 21%, transparent 22%);
}

.weather-effects.night.partly-cloudy::after,
.weather-effects.night.cloudy::after {
  background-image:
    radial-gradient(ellipse at 78% 70%, rgba(114, 143, 183, 0.88) 0 13%, transparent 14%),
    radial-gradient(ellipse at 87% 63%, rgba(114, 143, 183, 0.82) 0 16%, transparent 17%),
    radial-gradient(ellipse at 96% 73%, rgba(114, 143, 183, 0.78) 0 14%, transparent 15%),
    radial-gradient(ellipse at 88% 84%, rgba(114, 143, 183, 0.8) 0 22%, transparent 23%);
}

.weather-effects.snow {
  background: linear-gradient(145deg, rgba(65, 103, 135, 0.82), rgba(149, 179, 196, 0.9));
}

.weather-effects.snow .rain-drop {
  top: -12%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
  opacity: 1;
  animation: snow-fall 4.5s linear infinite;
}

.weather-effects.snow .drop-one { animation-delay: -0.4s !important; }
.weather-effects.snow .drop-two { animation-delay: -2.6s !important; }
.weather-effects.snow .drop-three { animation-delay: -1.5s !important; }
.weather-effects.snow .drop-four { animation-delay: -3.8s !important; }
.weather-effects.snow .drop-five { animation-delay: -0.9s !important; }
.weather-effects.snow .drop-six { animation-delay: -3.1s !important; }
.weather-effects.snow .drop-seven { animation-delay: -1.9s !important; }
.weather-effects.snow .drop-eight { animation-delay: -4.2s !important; }
.weather-effects.snow .drop-nine { animation-delay: -1.1s !important; }
.weather-effects.snow .drop-ten { animation-delay: -2.3s !important; }

.weather-effects.drizzle .rain-drop {
  height: 13px;
  opacity: 0.72;
  animation-duration: 1.25s;
}

.weather-effects.drizzle,
.weather-effects.rain,
.weather-effects.storm {
  background-color: #152b40;
}

.weather-effects.rain {
  background: linear-gradient(115deg, rgba(10, 35, 58, 0.28), rgba(15, 53, 85, 0.4));
}

.weather-effects.storm {
  background: linear-gradient(115deg, rgba(8, 15, 36, 0.55), rgba(35, 40, 75, 0.62));
}

.rain-drop {
  position: absolute;
  top: -25%;
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(147, 222, 255, 0.9));
  opacity: 0;
}

.weather-effects.drizzle .rain-drop,
.weather-effects.rain .rain-drop,
.weather-effects.storm .rain-drop {
  opacity: 1;
  animation: rain-fall 0.7s linear infinite;
}

.weather-effects.drizzle .rain-drop {
  opacity: 0.72;
  animation-duration: 1.25s;
}

.drop-one { left: 8%; animation-delay: -0.1s !important; }
.drop-two { left: 18%; animation-delay: -0.45s !important; }
.drop-three { left: 29%; animation-delay: -0.25s !important; }
.drop-four { left: 40%; animation-delay: -0.6s !important; }
.drop-five { left: 51%; animation-delay: -0.3s !important; }
.drop-six { left: 63%; animation-delay: -0.5s !important; }
.drop-seven { left: 72%; animation-delay: -0.05s !important; }
.drop-eight { left: 82%; animation-delay: -0.36s !important; }
.drop-nine { left: 91%; animation-delay: -0.56s !important; }
.drop-ten { left: 97%; animation-delay: -0.2s !important; }

@keyframes rain-fall {
  from { transform: translate3d(-10px, -10px, 0); }
  to { transform: translate3d(12px, 155px, 0); }
}

.lightning-flash {
  position: absolute;
  inset: 0;
  background: rgba(227, 245, 255, 0.75);
  opacity: 0;
}

.lightning-bolt {
  position: absolute;
  top: 2px;
  right: 31%;
  width: 25px;
  height: 40px;
  fill: #fff5a8;
  filter: drop-shadow(0 0 8px rgba(255, 244, 154, 0.95));
  opacity: 0;
  transform: translateY(-3px);
}

.weather-effects.storm .lightning-flash {
  animation: lightning-flash 5s steps(1, end) infinite;
}

.weather-effects.storm .lightning-bolt {
  animation: lightning-bolt 5s steps(1, end) infinite;
}

.weather-effects.storm .lightning-flash {
  animation-duration: 3.8s;
}

.weather-effects > :not(.weather-scene-image) {
  z-index: 1;
}

@keyframes sunny-glow {
  from { opacity: 0.55; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.06); }
}

@keyframes cloud-drift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes fog-drift {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}

@keyframes stars-twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.92; }
}

@keyframes snow-fall {
  from { transform: translate3d(-9px, -12px, 0); }
  to { transform: translate3d(13px, 155px, 0); }
}

@keyframes lightning-flash {
  0%, 8%, 10%, 14%, 100% { opacity: 0; }
  9%, 12% { opacity: 0.65; }
  13% { opacity: 0.25; }
}

@keyframes lightning-bolt {
  0%, 8%, 10%, 14%, 100% { opacity: 0; }
  9%, 12% { opacity: 1; }
  13% { opacity: 0.4; }
}

.weather-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  font-size: 3.3rem;
  line-height: 1;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.weather-main > div:not(.weather-globe) {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.weather-main > div.weather-effects {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-width: auto;
}

.weather-globe {
  position: relative;
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  margin-left: auto;
  padding: 0;
  z-index: 2;
  overflow: hidden;
  border: 2px solid rgba(122, 237, 255, 0.95);
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 24%, rgba(213, 252, 255, 0.95), transparent 5%),
    radial-gradient(circle at 34% 30%, #28c8f5 0, #0876b6 43%, #064571 76%);
  box-shadow:
    inset -15px -10px 20px rgba(0, 12, 36, 0.55),
    inset 7px 4px 15px rgba(177, 247, 255, 0.58),
    0 0 30px rgba(0, 196, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-globe:hover,
.weather-globe:focus-visible {
  transform: scale(1.05);
  box-shadow:
    inset -15px -10px 20px rgba(0, 12, 36, 0.55),
    inset 7px 4px 15px rgba(177, 247, 255, 0.58),
    0 0 38px rgba(0, 196, 255, 0.8);
}

.weather-globe:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.globe-map {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  left: 0;
  width: 200%;
  opacity: 1;
  background-image:
    radial-gradient(ellipse 12% 19% at 16% 35%, #9affc0 0 58%, transparent 63%),
    radial-gradient(ellipse 8% 12% at 22% 59%, #79f0ad 0 58%, transparent 64%),
    radial-gradient(ellipse 14% 17% at 42% 31%, #b0ffd0 0 58%, transparent 64%),
    radial-gradient(ellipse 8% 20% at 46% 55%, #85f1b4 0 58%, transparent 64%),
    radial-gradient(ellipse 17% 13% at 76% 36%, #a0ffc8 0 58%, transparent 64%),
    radial-gradient(ellipse 12% 20% at 85% 63%, #79e9a7 0 58%, transparent 64%),
    radial-gradient(ellipse 10% 9% at 95% 25%, #c1ffdc 0 58%, transparent 64%);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: globe-map-rotate 14s linear infinite;
}

.globe-longitude,
.globe-latitude {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(178, 245, 255, 0.32);
}

.globe-longitude {
  inset: -2px 29px;
  border-radius: 50%;
}

.longitude-one {
  animation: globe-longitude-one 5s ease-in-out infinite;
}

.longitude-two {
  animation: globe-longitude-two 5s ease-in-out infinite;
}

.globe-latitude {
  left: -2px;
  right: -2px;
  height: 36%;
  border-radius: 50%;
}

.weather-location-picker {
  display: grid;
  gap: 9px;
  margin: 4px 0 12px;
}

.weather-location-title {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
}

.weather-city-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.weather-city {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.weather-location-button {
  width: 100%;
  border-color: rgba(0, 238, 255, 0.35);
  background: rgba(0, 238, 255, 0.07);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.weather-location-button:hover:not(:disabled) {
  border-color: var(--accent-strong);
  background: rgba(0, 238, 255, 0.13);
}

.weather-location-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.weather-location-button .city-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather-city .city-name {
  color: var(--text);
  font-weight: 600;
}

.weather-city .city-country {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.3;
}

.weather-city:hover,
.weather-city.active {
  border-color: var(--accent-strong);
  background: rgba(0, 238, 255, 0.12);
}

.weather-city.active {
  box-shadow: inset 0 0 0 1px var(--accent-strong);
}

.weather-city:disabled {
  cursor: wait;
  opacity: 0.7;
}

.weather-city:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.city-local-time {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 2px;
  padding: 9px 11px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(0, 238, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
}

.city-local-time i {
  color: var(--accent-strong);
  font-size: 1rem;
}

.city-local-time strong {
  margin-left: auto;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.latitude-one {
  top: 16%;
}

.latitude-two {
  bottom: 16%;
}

.globe-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.2), transparent 35% 72%, rgba(0, 10, 30, 0.32));
  pointer-events: none;
}

.globe-view-label {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 10px;
  left: 4px;
  padding: 3px 2px;
  border: 1px solid rgba(188, 247, 255, 0.55);
  border-radius: 999px;
  background: rgba(2, 21, 41, 0.82);
  color: #e6fbff;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 3px #001522;
}

.globe-city-caption {
  margin: -3px 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.globe-city-caption strong {
  color: var(--text);
}

.weather-effect-caption {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.weather-effect-caption.active {
  color: var(--accent-strong);
  font-weight: 600;
}

.locations-dialog {
  width: min(760px, calc(100% - 28px));
  max-width: none;
  max-height: min(82vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.locations-dialog::backdrop {
  background: rgba(0, 8, 18, 0.72);
  backdrop-filter: blur(5px);
}

.locations-panel {
  display: grid;
  gap: 14px;
  max-height: min(82vh, 760px);
  padding: 22px;
  overflow: auto;
}

.locations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.locations-header h2 {
  margin: 0;
}

.locations-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.location-search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
}

.location-search:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.location-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.locations-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.location-country {
  min-width: 0;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--panel);
}

.location-country summary {
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.location-country summary:hover {
  color: var(--accent-strong);
}

.location-state-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 10px 10px;
}

.location-state {
  padding: 4px 8px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.locations-credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

@keyframes globe-map-rotate {
  to { transform: translateX(-50%); }
}

@keyframes globe-longitude-one {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.15); }
}

@keyframes globe-longitude-two {
  0%, 100% { transform: scaleX(0.15); }
  50% { transform: scaleX(1); }
}

.weather-temperature {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.weather-condition {
  color: var(--muted);
  font-size: 0.9rem;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.weather-details div {
  display: grid;
  gap: 4px;
  padding: 10px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.weather-details span {
  color: var(--muted);
  font-size: 0.7rem;
}

.weather-details strong {
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}

.weather-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--card-border);
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.refresh-weather {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
}

.refresh-weather:hover {
  background: rgba(0, 238, 255, 0.1);
}

.refresh-weather:disabled {
  cursor: wait;
  opacity: 0.65;
}

.task-form {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}

.task-form input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  outline-color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.task-form input::placeholder {
  color: var(--muted);
}

.task-form button {
  width: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #071521;
  font-size: 1.4rem;
  cursor: pointer;
}

.task-list {
  display: grid;
  gap: 8px;
  max-height: 128px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text);
  font-size: 0.82rem;
}

.task-item input {
  accent-color: var(--accent-strong);
}

.task-item span {
  flex: 1;
  overflow-wrap: anywhere;
}

.task-item.completed span {
  color: var(--muted);
  text-decoration: line-through;
}

.task-delete {
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.task-delete:hover {
  color: #ff7b85;
  background: rgba(255, 123, 133, 0.1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.stat-card {
  padding: 22px 20px;
}

.card-head,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-tag {
  display: inline-flex;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.card-head i {
  color: var(--accent-strong);
  font-size: 1.4rem;
}

.clock-display {
  display: grid;
  justify-items: center;
  margin-top: 12px;
}

.analog-clock {
  width: min(100%, 230px);
  aspect-ratio: 1;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.24));
}

.analog-clock svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.clock-face {
  fill: var(--panel-strong);
  stroke: var(--card-border);
  stroke-width: 2;
}

.clock-ticks {
  fill: none;
  stroke: var(--muted);
  stroke-width: 4;
  stroke-dasharray: 1 13.66;
  stroke-linecap: round;
  opacity: 0.62;
}

.clock-number {
  fill: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.clock-hand {
  stroke-linecap: round;
}

.hour-hand {
  stroke: var(--text);
  stroke-width: 6;
}

.minute-hand {
  stroke: var(--accent);
  stroke-width: 4;
}

.second-hand {
  stroke: #ff6d79;
  stroke-width: 2;
}

.clock-pin {
  fill: var(--accent-strong);
  stroke: var(--panel-strong);
  stroke-width: 2;
}

#clockDate {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

.calendar-box {
  margin-top: 18px;
}

.calendar-month {
  margin-bottom: 14px;
  font-size: 1.2rem;
  font-weight: 600;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

.day-name,
.day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.day-name {
  color: var(--muted);
  font-weight: 600;
}

.day {
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
}

.day.today {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #041521;
  font-weight: 700;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.status-list span {
  color: var(--muted);
}

.status-list strong {
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 999px;
}

.good {
  background: rgba(111, 232, 171, 0.12);
  color: var(--success);
}

.warn {
  background: rgba(249, 201, 110, 0.14);
  color: var(--warning);
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.activity-card,
.rating-card,
.project-card {
  padding: 22px 20px;
}

.metric-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.metric {
  display: grid;
  gap: 10px;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.metric-top strong {
  color: var(--text);
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.rating-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.star-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.star {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.25);
  font-size: clamp(1.9rem, 2vw, 2.4rem);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.star.active {
  color: #ffcc4d;
  text-shadow: 0 0 16px rgba(255, 204, 77, 0.6);
}

.rating-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.rating-form textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 12px 14px;
  color: var(--text);
}

.submit-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #041521;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(62, 195, 255, 0.25);
}

.rating-message {
  min-height: 1.2em;
  margin: 0;
  color: var(--success);
}

.project-section {
  display: grid;
  gap: 18px;
}

.project-header {
  margin-top: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: grid;
  gap: 16px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .dashboard .card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 238, 255, 0.38);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  }
}

.project-badge {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(62, 195, 255, 0.12);
  color: var(--accent-strong);
  border: 1px solid rgba(62, 195, 255, 0.18);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-badge.live {
  background: rgba(111, 232, 171, 0.12);
  color: var(--success);
  border-color: rgba(111, 232, 171, 0.2);
}

.project-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.76rem;
}

.arduino-card {
  background: linear-gradient(180deg, rgba(14, 32, 47, 0.95), rgba(11, 21, 34, 0.94));
}

body.light-mode .arduino-card {
  background: linear-gradient(180deg, rgba(230, 244, 255, 0.95), rgba(250, 252, 255, 1));
}

.arduino-scene {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 35, 49, 0.9), rgba(8, 17, 25, 0.92));
  border: 1px solid var(--card-border);
  min-height: 190px;
  padding: 14px;
  display: grid;
  align-items: end;
}

body.light-mode .arduino-scene {
  background: linear-gradient(180deg, rgba(221, 240, 255, 0.9), rgba(245, 250, 255, 1));
}

.live-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(111, 232, 171, 0.12);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.live-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(111, 232, 171, 0.8);
}

.arduino-board {
  position: relative;
  width: min(100%, 250px);
  height: 116px;
  margin: 0 auto 12px auto;
  border-radius: 16px;
  border: 2px solid rgba(144, 191, 255, 0.35);
  background: linear-gradient(180deg, rgba(31, 53, 70, 0.9), rgba(17, 24, 31, 0.95));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.25);
}

.board-header {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 62%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(95, 178, 255, 0.5), rgba(62, 195, 255, 0.8));
}

.chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 40px;
  transform: translate(-50%, -12%);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(140, 180, 250, 0.2), rgba(33, 64, 88, 0.6));
  border: 1px solid rgba(135, 202, 255, 0.4);
}

.pins {
  position: absolute;
  top: 18px;
  width: 14px;
  height: 70px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(171, 212, 255, 0.8),
    rgba(171, 212, 255, 0.8) 4px,
    rgba(56, 82, 109, 0.9) 4px,
    rgba(56, 82, 109, 0.9) 8px
  );
}

.pins.left { left: 14px; }
.pins.right { right: 14px; }

.led-group {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 10px currentColor;
}

.led.red { color: #ff6678; background: #ff6678; }
.led.blue { color: #6ad4ff; background: #6ad4ff; }
.led.green { color: #7ce8a3; background: #7ce8a3; }

.signal-wave {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  height: 42px;
}

.signal-wave span {
  display: block;
  width: 10px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(96, 227, 197, 0.9), rgba(62, 195, 255, 0.6));
  animation: signal 1.2s ease-in-out infinite;
}

.signal-wave span:nth-child(1) { height: 18%; animation-delay: 0s; }
.signal-wave span:nth-child(2) { height: 42%; animation-delay: 0.15s; }
.signal-wave span:nth-child(3) { height: 72%; animation-delay: 0.3s; }
.signal-wave span:nth-child(4) { height: 54%; animation-delay: 0.45s; }
.signal-wave span:nth-child(5) { height: 88%; animation-delay: 0.6s; }

@keyframes signal {
  0%, 100% { transform: scaleY(0.7); opacity: 0.7; }
  50% { transform: scaleY(1.1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .hero-panel::after {
    transition: none;
    animation: none;
  }

  .globe-map,
  .globe-longitude,
  .signal-wave span,
  .pulse,
  .weather-effects.clear::before,
  .weather-effects.partly-cloudy::before,
  .weather-effects.partly-cloudy::after,
  .weather-effects.cloudy::before,
  .weather-effects.cloudy::after,
  .weather-effects.fog::before,
  .weather-effects.fog::after,
  .weather-effects.night::before,
  .weather-effects.snow .rain-drop,
  .weather-effects.drizzle .rain-drop,
  .weather-effects.rain .rain-drop,
  .weather-effects.storm .rain-drop,
  .weather-effects.storm .lightning-flash,
  .weather-effects.storm .lightning-bolt {
    animation: none;
  }
}

@media (max-width: 900px) {
  .stats-grid,
  .utility-grid,
  .project-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .hero-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .dashboard-header {
    top: 8px;
    padding: 14px 16px;
  }

  .top-nav {
    gap: 10px 16px;
  }

  .hero-panel,
  .stat-card,
  .activity-card,
  .rating-card,
  .project-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  #clockTime {
    font-size: 2.3rem;
  }

  .locations-panel {
    padding: 16px;
  }

  .locations-list {
    grid-template-columns: 1fr;
  }
}

/* Cybersecurity Learning Lab */
.cyber-lab-section { margin-top: 26px; }
.cyber-lab-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.cyber-lab-heading h2 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.04em; }
.cyber-lab-heading h2 span { color: var(--accent-strong); text-shadow: 0 0 20px rgba(0, 238, 255, 0.35); }
.cyber-lab-heading > div:first-child > p:last-child { max-width: 710px; margin: 0; color: var(--muted); }
.cyber-progress-card { width: min(330px, 100%); padding: 14px; border: 1px solid var(--card-border); border-radius: 16px; background: rgba(2, 15, 28, 0.42); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
body.light-mode .cyber-progress-card { background: rgba(255,255,255,0.62); }
.cyber-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.78rem; color: var(--muted); }
.cyber-progress-top strong { color: var(--accent-strong); font-size: 1.2rem; }
.cyber-progress-track, .strength-meter { height: 7px; margin: 10px 0 7px; overflow: hidden; border-radius: 999px; background: rgba(185, 202, 212, 0.15); }
.cyber-progress-track span, .strength-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); box-shadow: 0 0 12px var(--accent-strong); transition: width 0.35s ease, background 0.25s ease; }
.cyber-progress-card small { color: var(--muted); font-size: 0.7rem; }
.cyber-badges { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; margin-top: 8px; }
.cyber-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid rgba(111, 232, 171, 0.38); border-radius: 999px; background: rgba(111, 232, 171, 0.09); color: var(--success); font-size: 0.65rem; }
.cyber-lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cyber-module { position: relative; overflow: hidden; padding: 20px; border-color: rgba(0, 238, 255, 0.2); background: linear-gradient(145deg, rgba(13, 38, 56, 0.9), rgba(5, 17, 41, 0.84)); }
body.light-mode .cyber-module { background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(239,247,255,0.9)); }
.cyber-module::before { position: absolute; top: 0; right: 0; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(0,238,255,0.12), transparent 70%); content: ""; pointer-events: none; }
.cyber-module-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cyber-module-head h3 { margin: 1px 0 0; font-size: 1.05rem; }
.cyber-module-head > i { color: var(--accent-strong); font-size: 1.7rem; }
.cyber-module-number { color: var(--accent-strong); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; }
.cyber-module-note { min-height: 42px; margin: 8px 0 14px; color: var(--muted); font-size: 0.78rem; }
.cyber-input-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 0.72rem; }
.cyber-input-row, .cipher-controls, .firewall-test { display: flex; align-items: center; gap: 8px; }
.cyber-input-row input, .cyber-full-input, .firewall-test input, .firewall-test select, .cipher-controls input { min-width: 0; padding: 10px 11px; border: 1px solid rgba(185,202,212,0.23); border-radius: 9px; outline: none; background: rgba(0,0,0,0.16); color: var(--text); font: inherit; font-size: 0.8rem; }
.cyber-input-row input { flex: 1; }
.cyber-input-row input:focus, .cyber-full-input:focus, .firewall-test input:focus, .firewall-test select:focus, .cipher-controls input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(0,238,255,0.1); }
.cyber-input-row button, .cipher-controls button, .firewall-test button { padding: 10px 12px; border: 0; border-radius: 9px; background: var(--accent-strong); color: #04111c; cursor: pointer; font: inherit; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.cyber-input-row button:hover, .cipher-controls button:hover, .firewall-test button:hover { filter: brightness(1.1); }
.cyber-result-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.8rem; }
.cyber-result-line strong { color: var(--warning); }
.cyber-result-line span { color: var(--muted); }
.cyber-feedback { min-height: 36px; margin: 9px 0 0; color: var(--muted); font-size: 0.76rem; }
.phishing-email { display: grid; gap: 7px; padding: 12px; border: 1px solid rgba(249,201,110,0.26); border-radius: 10px; background: rgba(249,201,110,0.055); font-size: 0.76rem; }
.phishing-email div { display: flex; gap: 8px; }
.phishing-email div span { width: 52px; color: var(--muted); }
.phishing-email strong { overflow-wrap: anywhere; }
.phishing-email p { margin: 4px 0 0; }
.phishing-email a { color: var(--warning); overflow-wrap: anywhere; }
.cyber-choice-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.cyber-choice, .cyber-secondary { padding: 8px 10px; border: 1px solid rgba(0,238,255,0.3); border-radius: 8px; background: transparent; color: var(--accent-strong); cursor: pointer; font: inherit; font-size: 0.72rem; }
.cyber-choice:hover, .cyber-secondary:hover, .cyber-choice.selected { background: rgba(0,238,255,0.14); }
.cyber-secondary { color: var(--muted); border-color: rgba(185,202,212,0.23); }
.cipher-controls { margin-top: 10px; }
.cipher-controls label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.75rem; }
.cipher-controls input { width: 48px; padding: 8px; }
.cipher-output { min-height: 40px; margin-top: 12px; padding: 10px; border: 1px solid rgba(0,238,255,0.22); border-radius: 9px; background: rgba(0,0,0,0.17); color: var(--accent-strong); font-family: "Courier New", monospace; font-size: 0.8rem; overflow-wrap: anywhere; }
.firewall-rules { display: grid; gap: 5px; margin-bottom: 12px; }
.firewall-rules span { padding: 6px 8px; border-radius: 7px; background: rgba(0,0,0,0.15); color: var(--muted); font-family: "Courier New", monospace; font-size: 0.72rem; }
.firewall-rules b { display: inline-block; width: 52px; color: var(--success); }
.firewall-rules span:last-child b { color: #ff8c8c; }
.firewall-test select { flex: 1; }
.firewall-test input { width: 75px; }
.firewall-decision { min-height: 26px; margin: 12px 0 0; color: var(--muted); font-size: 0.78rem; }
.firewall-decision.allow { color: var(--success); }
.firewall-decision.deny { color: #ff8c8c; }
.network-diagram { position: relative; height: 175px; margin: 4px 0 10px; border: 1px solid rgba(0,238,255,0.16); border-radius: 12px; background: radial-gradient(circle at 50% 50%, rgba(0,238,255,0.1), transparent 58%), rgba(1,12,24,0.35); overflow: hidden; }
.network-line { position: absolute; height: 2px; transform-origin: left center; background: linear-gradient(90deg, rgba(0,238,255,0.2), var(--accent-strong), rgba(0,238,255,0.2)); box-shadow: 0 0 10px var(--accent-strong); animation: network-flow 2.3s linear infinite; }
.line-a { top: 86px; left: 23%; width: 24%; }
.line-b { top: 86px; left: 53%; width: 24%; }
.line-c { top: 58px; left: 50%; width: 28%; transform: rotate(90deg); }
.network-node { position: absolute; z-index: 1; padding: 8px 10px; border: 1px solid var(--accent-strong); border-radius: 9px; background: rgba(5,17,41,0.92); color: var(--text); cursor: pointer; font: inherit; font-size: 0.68rem; box-shadow: 0 0 16px rgba(0,238,255,0.18); transition: transform 0.2s ease, background 0.2s ease; }
.network-node:hover, .network-node.active { background: rgba(0,238,255,0.18); transform: translateY(-3px); }
.node-internet { top: 68px; left: 6%; }
.node-firewall { top: 68px; left: 37%; }
.node-server { top: 68px; right: 5%; }
.node-user { top: 16px; left: 45%; }
.network-explanation { min-height: 36px; margin: 0; color: var(--muted); font-size: 0.77rem; }
body.light-mode .network-diagram {
  border-color: rgba(29, 126, 240, 0.28);
  background: radial-gradient(circle at 50% 50%, rgba(0, 162, 255, 0.12), transparent 58%), rgba(224, 240, 252, 0.92);
}
body.light-mode .network-node {
  border-color: #1684c4;
  background: rgba(255, 255, 255, 0.96);
  color: #10273d;
  box-shadow: 0 0 16px rgba(29, 126, 240, 0.2);
}
body.light-mode .network-node:hover,
body.light-mode .network-node.active {
  background: #d8efff;
  color: #08243a;
}
body.light-mode .network-explanation {
  color: #294d6b;
}
@keyframes network-flow { from { opacity: 0.35; background-position: 0 0; } 50% { opacity: 1; } to { opacity: 0.35; background-position: 80px 0; } }
.quiz-progress { margin-bottom: 7px; color: var(--accent-strong); font-size: 0.7rem; font-weight: 700; }
.cyber-module h4 { min-height: 48px; margin: 0 0 12px; font-size: 0.95rem; line-height: 1.45; }
.quiz-options { display: grid; gap: 7px; }
.quiz-option { padding: 9px 10px; border: 1px solid rgba(185,202,212,0.22); border-radius: 8px; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; font-size: 0.76rem; }
.quiz-option:hover, .quiz-option.selected { border-color: var(--accent-strong); background: rgba(0,238,255,0.1); }
.quiz-option.correct { border-color: var(--success); background: rgba(111,232,171,0.1); }
.quiz-option.incorrect { border-color: #ff8c8c; background: rgba(255,140,140,0.1); }
.cyber-safety-note { display: flex; align-items: center; gap: 7px; margin: 14px 2px 0; color: var(--muted); font-size: 0.75rem; }
.cyber-safety-note i { color: var(--success); font-size: 1rem; }
@media (max-width: 900px) { .cyber-lab-heading { align-items: flex-start; flex-direction: column; } .cyber-progress-card { width: 100%; } }
@media (max-width: 680px) { .cyber-lab-grid { grid-template-columns: 1fr; } .cyber-module { padding: 16px; } .cyber-input-row, .firewall-test { align-items: stretch; flex-wrap: wrap; } .cyber-input-row input { flex-basis: 100%; } .firewall-test select { min-width: 120px; } .cyber-safety-note { align-items: flex-start; } }

/* Global Time-Zone Dashboard */
.time-zone-section { margin-top: 26px; }
.time-zone-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.time-zone-heading h2 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.04em; }
.time-zone-heading h2 span { color: var(--accent-strong); text-shadow: 0 0 20px rgba(0, 238, 255, 0.35); }
.time-zone-heading > div:first-child > p:last-child { max-width: 650px; margin: 0; color: var(--muted); }
.time-zone-controls { position: relative; width: min(365px, 100%); padding: 14px; border: 1px solid var(--card-border); border-radius: 16px; background: rgba(2, 15, 28, 0.42); }
body.light-mode .time-zone-controls { background: rgba(255, 255, 255, 0.62); }
.clock-search-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 0.72rem; }
.clock-search-row { display: flex; gap: 7px; }
.clock-search-row input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid rgba(185, 202, 212, 0.23); border-radius: 9px; outline: none; background: rgba(0, 0, 0, 0.16); color: var(--text); font: inherit; font-size: 0.8rem; }
.clock-search-row input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(0, 238, 255, 0.1); }
.clock-search-row button { width: 40px; border: 0; border-radius: 9px; background: var(--accent-strong); color: #04111c; cursor: pointer; font-size: 1rem; }
.clock-search-results { position: absolute; z-index: 5; top: 78px; right: 14px; left: 14px; display: grid; gap: 4px; max-height: 190px; overflow-y: auto; }
.clock-search-results:empty { display: none; }
.clock-search-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid rgba(0, 238, 255, 0.2); border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer; font: inherit; font-size: 0.74rem; text-align: left; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }
.clock-search-result:hover { border-color: var(--accent-strong); background: rgba(0, 238, 255, 0.1); }
.clock-search-result small { color: var(--muted); }
.clock-search-loading { display: block; padding: 9px 10px; border: 1px solid rgba(0, 238, 255, 0.2); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 0.72rem; }
.clock-format-toggle { display: flex; align-items: center; gap: 5px; margin-top: 11px; color: var(--muted); font-size: 0.7rem; }
.clock-format-toggle > span { margin-right: auto; }
.clock-format-option { padding: 6px 8px; border: 1px solid rgba(185, 202, 212, 0.23); border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.68rem; }
.clock-format-option.active { border-color: var(--accent-strong); background: rgba(0, 238, 255, 0.13); color: var(--accent-strong); }
.time-zone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.time-zone-card { position: relative; overflow: hidden; padding: 18px; border-color: rgba(0, 238, 255, 0.22); background: linear-gradient(145deg, rgba(13, 38, 56, 0.9), rgba(5, 17, 41, 0.84)); }
body.light-mode .time-zone-card { background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.9)); }
.time-zone-card::after { position: absolute; right: -30px; bottom: -45px; width: 125px; height: 125px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 238, 255, 0.15), transparent 68%); content: ""; pointer-events: none; }
.time-zone-card-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.time-zone-city { margin: 0; font-size: 1rem; }
.time-zone-country { margin: 3px 0 0; color: var(--muted); font-size: 0.7rem; }
.time-zone-remove { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; }
.time-zone-remove:hover { color: #ff8c8c; }
.time-zone-clock { position: relative; z-index: 1; margin: 18px 0 4px; color: var(--accent-strong); font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: 0.03em; text-shadow: 0 0 16px rgba(0, 238, 255, 0.3); }
.time-zone-date { position: relative; z-index: 1; color: var(--text); font-size: 0.76rem; }
.time-zone-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.time-zone-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border: 1px solid rgba(185, 202, 212, 0.2); border-radius: 999px; color: var(--muted); font-size: 0.66rem; }
.time-zone-chip.day-status { border-color: rgba(111, 232, 171, 0.3); color: var(--success); }
.time-zone-chip.night-status { border-color: rgba(146, 170, 255, 0.3); color: #aebeff; }
.time-zone-note { display: flex; align-items: center; gap: 7px; margin: 14px 2px 0; color: var(--muted); font-size: 0.75rem; }
.time-zone-note i { color: var(--accent-strong); font-size: 1rem; }
@media (max-width: 980px) { .time-zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .time-zone-heading { align-items: flex-start; flex-direction: column; } .time-zone-controls { width: 100%; } .clock-search-results { top: 78px; } }
@media (max-width: 680px) { .time-zone-grid { grid-template-columns: 1fr; } .time-zone-card { padding: 16px; } .time-zone-note { align-items: flex-start; } }
.globe-shell { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(245px, 0.55fr); gap: 18px; align-items: stretch; }
.globe-stage { position: relative; min-height: 430px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(0, 238, 255, 0.24); border-radius: 20px; background: radial-gradient(circle at 50% 45%, rgba(0, 238, 255, 0.1), transparent 42%), linear-gradient(145deg, rgba(4, 22, 40, 0.95), rgba(1, 9, 24, 0.98)); cursor: grab; touch-action: none; }
.globe-stage:active { cursor: grabbing; }
body.light-mode .globe-stage { background: radial-gradient(circle at 50% 45%, rgba(0, 161, 190, 0.14), transparent 42%), linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(231, 244, 252, 0.94)); }
.globe-stage::before, .globe-stage::after { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--accent-strong); box-shadow: 72px 40px 0 rgba(0, 238, 255, 0.52), -120px 90px 0 rgba(0, 238, 255, 0.32), 150px -110px 0 rgba(0, 238, 255, 0.4), -170px -80px 0 rgba(0, 238, 255, 0.26); content: ""; opacity: 0.7; }
.globe-stage::before { top: 20%; left: 18%; }
.globe-stage::after { right: 20%; bottom: 18%; animation: globe-stars 4s ease-in-out infinite alternate; }
.globe-sphere { position: relative; width: min(360px, 72vw); aspect-ratio: 1; transform: rotateX(-7deg) rotateY(-14deg); transform-style: preserve-3d; border: 1px solid rgba(91, 242, 255, 0.72); border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(109, 249, 255, 0.23), transparent 26%), radial-gradient(circle at 50% 50%, rgba(0, 130, 176, 0.2), transparent 64%), #031c35; box-shadow: inset -35px -24px 70px rgba(0, 0, 0, 0.65), inset 20px 14px 45px rgba(72, 240, 255, 0.12), 0 0 22px rgba(0, 238, 255, 0.24), 0 0 75px rgba(0, 238, 255, 0.1); transition: transform 0.12s ease-out; }
body.light-mode .globe-sphere { background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.72), transparent 26%), radial-gradient(circle at 50% 50%, rgba(0, 145, 182, 0.18), transparent 64%), #d9f2fa; box-shadow: inset -35px -24px 70px rgba(24, 89, 113, 0.24), 0 0 28px rgba(0, 150, 180, 0.2); }
.globe-grid-lines { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; background: repeating-linear-gradient(90deg, transparent 0 31px, rgba(96, 238, 255, 0.14) 32px 33px, transparent 34px 64px), repeating-linear-gradient(0deg, transparent 0 31px, rgba(96, 238, 255, 0.14) 32px 33px, transparent 34px 64px); mask-image: radial-gradient(circle, #000 58%, transparent 72%); opacity: 0.82; }
.globe-grid-lines::after { position: absolute; inset: 13% 22%; border: 1px solid rgba(96, 238, 255, 0.25); border-radius: 50%; box-shadow: 0 0 0 23px rgba(96, 238, 255, 0.1), 0 0 0 48px rgba(96, 238, 255, 0.08); content: ""; }
.globe-markers { position: absolute; inset: 0; }
.globe-marker { position: absolute; z-index: 2; display: flex; align-items: center; gap: 4px; transform: translate(-50%, -50%); border: 0; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 0.64rem; white-space: nowrap; }
.globe-marker-dot { display: block; width: 9px; height: 9px; border: 2px solid #d8ffff; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 4px rgba(0, 238, 255, 0.14), 0 0 14px var(--accent-strong); }
.globe-marker-label { padding: 3px 5px; border: 1px solid rgba(0, 238, 255, 0.25); border-radius: 5px; background: rgba(1, 15, 30, 0.76); text-shadow: 0 0 6px rgba(0, 238, 255, 0.3); }
body.light-mode .globe-marker-label { background: rgba(255, 255, 255, 0.84); }
.globe-marker-label small { display: block; color: var(--accent-strong); font-size: 0.58rem; }
.globe-marker.active .globe-marker-dot { background: var(--warning); box-shadow: 0 0 0 5px rgba(249, 201, 110, 0.18), 0 0 18px var(--warning); }
.globe-marker.active .globe-marker-label { border-color: var(--warning); }
.globe-orbit { position: absolute; width: min(390px, 78vw); aspect-ratio: 1; border: 1px solid rgba(0, 238, 255, 0.12); border-radius: 50%; transform: rotateX(68deg) rotateZ(14deg); pointer-events: none; }
.globe-orbit-two { width: min(420px, 84vw); transform: rotateY(64deg) rotateZ(-18deg); border-color: rgba(0, 238, 255, 0.08); }
.globe-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.7rem; pointer-events: none; }
.globe-info { padding: 22px; border: 1px solid rgba(0, 238, 255, 0.22); border-radius: 18px; background: linear-gradient(145deg, rgba(13, 38, 56, 0.9), rgba(5, 17, 41, 0.84)); }
body.light-mode .globe-info { background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.9)); }
.globe-info-label { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; }
.globe-info h3 { margin: 7px 0 12px; font-size: 1.25rem; }
.globe-selected-time { display: block; color: var(--accent-strong); font-size: 2.2rem; line-height: 1; text-shadow: 0 0 14px rgba(0, 238, 255, 0.3); }
.globe-info > p { min-height: 38px; margin: 10px 0 18px; color: var(--muted); font-size: 0.75rem; }
.globe-city-list { display: grid; gap: 5px; max-height: 240px; overflow-y: auto; }
.globe-city-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px; border: 1px solid rgba(185, 202, 212, 0.16); border-radius: 7px; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 0.72rem; text-align: left; }
.globe-city-row:hover, .globe-city-row.active { border-color: var(--accent-strong); background: rgba(0, 238, 255, 0.1); }
.globe-city-row time { color: var(--accent-strong); font-variant-numeric: tabular-nums; }
@keyframes globe-stars { from { opacity: 0.35; transform: scale(0.8); } to { opacity: 0.9; transform: scale(1.15); } }
@media (max-width: 900px) { .globe-shell { grid-template-columns: 1fr; } .globe-info { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; } .globe-info-label, .globe-info h3, .globe-selected-time, .globe-info > p { grid-column: 1; } .globe-city-list { grid-column: 2; grid-row: 1 / span 4; max-height: 235px; } }
@media (max-width: 560px) { .globe-stage { min-height: 350px; } .globe-info { display: block; } .globe-city-list { margin-top: 16px; max-height: 180px; } .globe-marker-label { display: none; } .globe-sphere { width: min(310px, 78vw); } }
.globe-shell { display: block; }
.globe-stage { width: min(920px, 100%); min-height: 540px; margin: 0 auto; }
.globe-sphere { width: min(430px, 72vw); }
.globe-land { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14%; fill: rgba(82, 211, 168, 0.72); filter: drop-shadow(0 0 7px rgba(75, 237, 211, 0.38)); opacity: 0.9; }
body.light-mode .globe-land { fill: rgba(22, 151, 127, 0.58); }
.globe-info { width: min(920px, 100%); margin: 24px auto 0; display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr); gap: 8px 22px; }
.globe-info-label, .globe-info h3, .globe-selected-time, .globe-info > p { grid-column: 1; }
.globe-city-list { grid-column: 2; grid-row: 1 / span 4; max-height: 170px; }
@media (max-width: 680px) { .globe-stage { min-height: 390px; } .globe-info { display: block; } .globe-city-list { margin-top: 16px; max-height: 180px; } }
.globe-sphere { aspect-ratio: 1 / 1; border-color: rgba(121, 255, 190, 0.88); background: radial-gradient(circle at 32% 27%, rgba(202, 255, 221, 0.3), transparent 24%), radial-gradient(circle at 58% 56%, rgba(23, 148, 91, 0.36), transparent 66%), #063d32; box-shadow: inset -38px -28px 76px rgba(0, 18, 15, 0.72), inset 18px 13px 48px rgba(126, 255, 195, 0.14), 0 0 25px rgba(88, 255, 177, 0.3), 0 0 80px rgba(0, 238, 160, 0.12); }
.globe-grid-lines { background: repeating-linear-gradient(90deg, transparent 0 31px, rgba(146, 255, 204, 0.16) 32px 33px, transparent 34px 64px), repeating-linear-gradient(0deg, transparent 0 31px, rgba(146, 255, 204, 0.16) 32px 33px, transparent 34px 64px); }
.globe-grid-lines::after { border-color: rgba(146, 255, 204, 0.3); box-shadow: 0 0 0 23px rgba(146, 255, 204, 0.1), 0 0 0 48px rgba(146, 255, 204, 0.08); }
.globe-land { fill: rgba(119, 232, 143, 0.9); filter: drop-shadow(0 0 8px rgba(104, 255, 151, 0.52)); }
.globe-marker-dot { background: #9affbb; border-color: #effff4; box-shadow: 0 0 0 4px rgba(119, 255, 165, 0.16), 0 0 15px #74ffae; }
.globe-marker.active .globe-marker-dot { background: var(--warning); }
body.light-mode .globe-sphere { background: radial-gradient(circle at 32% 27%, rgba(255, 255, 255, 0.78), transparent 24%), radial-gradient(circle at 58% 56%, rgba(42, 170, 103, 0.28), transparent 66%), #cdeed9; box-shadow: inset -38px -28px 76px rgba(16, 92, 54, 0.25), 0 0 28px rgba(35, 181, 103, 0.24); }
body.light-mode .globe-land { fill: rgba(28, 155, 75, 0.72); }
.globe-sphere { background-color: #073c2c; background-image: url('https://threejs.org/examples/textures/planets/earth_atmos_2048.jpg'); background-repeat: no-repeat; background-size: 200% 100%; background-position: 55% 50%; }
.globe-land { display: none; }
.globe-grid-lines { opacity: 0.16; mix-blend-mode: screen; }
body.light-mode .globe-sphere { background-color: #b7dfca; background-image: url('https://threejs.org/examples/textures/planets/earth_atmos_2048.jpg'); }
.globe-stage { border: 0 !important; outline: 0; background: transparent !important; box-shadow: none; overflow: visible; }
body.light-mode .globe-stage { background: transparent; }
.globe-sphere { border: 0; outline: 0; overflow: hidden; border-radius: 50%; background: transparent !important; box-shadow: none !important; transform: none !important; }
.globe-earth-surface { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background-color: #071a2b; background-image: url('https://threejs.org/examples/textures/planets/earth_atmos_2048.jpg'); background-repeat: repeat-x; background-size: 200% 100%; background-position: 55% 50%; background-blend-mode: normal; will-change: transform; transition: none; }
body.light-mode .globe-earth-surface { background-color: #e8f4f8; }
.globe-grid-lines, .globe-land { pointer-events: none; }
.globe-orbit, .globe-orbit-two { border: 0; box-shadow: none; opacity: 0; }
.globe-grid-lines { display: none; }

/* Match the weather globe to the full Earth globe while keeping its button frame static. */
.weather-globe { overflow: hidden; border: 0; border-radius: 50%; background: #073c2c; box-shadow: inset -15px -10px 20px rgba(0, 18, 15, 0.72), inset 7px 4px 15px rgba(126, 255, 195, 0.14), 0 0 25px rgba(88, 255, 177, 0.3); }
.globe-map { top: 0; right: auto; bottom: 0; left: 0; width: 200%; opacity: 1; background-color: #073c2c; background-image: url('https://threejs.org/examples/textures/planets/earth_atmos_2048.jpg'); background-size: 50% 100%; background-repeat: repeat-x; background-position: 0 50%; animation: globe-map-rotate 18s linear infinite; }
.globe-longitude, .globe-latitude { display: none; }
body.light-mode .weather-globe { background: #e8f4f8; box-shadow: inset -15px -10px 20px rgba(24, 89, 113, 0.24), 0 0 25px rgba(0, 150, 180, 0.2); }
body.light-mode .globe-map { background-color: #e8f4f8; }
