:root {
  --bg: #071126;
  --panel: rgba(14, 24, 44, 0.84);
  --panel-2: rgba(19, 33, 58, 0.84);
  --text: #e8f0ff;
  --muted: #a3b5d4;
  --accent: #63b2ff;
  --accent-2: #7ef0cc;
  --border: rgba(163, 186, 235, 0.22);
  --shadow: 0 22px 50px rgba(2, 9, 24, 0.42);
  --radius: 18px;
  --container: 1220px;
}

.site-page {
  width: 100%;
  margin: 0;
}

.site-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.global-site-header {
  width: min(1520px, calc(100% - 72px));
  margin: 18px auto 16px;
  box-sizing: border-box;
  position: relative;
  z-index: 1000;
}

.global-site-header__inner {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(230px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-radius: 22px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.global-site-header__brandGroup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}

.global-site-header__brand {
  white-space: nowrap;
  overflow: visible;
  text-decoration: none;
  color: var(--text);
  font-weight: 780;
  letter-spacing: 0.01em;
  font-size: 0.96rem;
  line-height: 1;
}

.global-site-header__nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.global-site-header__nav::-webkit-scrollbar {
  display: none;
}

.global-site-header__nav a {
  text-decoration: none;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font-size: 0.89rem;
  font-weight: 650;
  line-height: 1;
  transition: 0.2s ease;
  white-space: nowrap;
}

.global-site-header__nav a:hover {
  color: var(--text);
  border-color: rgba(158, 185, 236, 0.28);
  background: rgba(158, 185, 236, 0.08);
}

.global-site-header__nav a.is-active,
.global-site-header__nav a[aria-current="page"] {
  color: #f7fbff;
  border-color: rgba(126, 240, 204, 0.35);
  background: linear-gradient(130deg, rgba(92, 163, 255, 0.22), rgba(126, 240, 204, 0.16));
}

.global-site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.global-site-header__lang.lang-switch,
.global-site-header__lang.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 3px 4px;
  border-radius: 999px;
  border: 1px solid rgba(159, 184, 235, 0.26);
  background: rgba(158, 185, 236, 0.08);
  backdrop-filter: blur(10px);
}

.global-site-header__lang .lang-btn {
  min-width: 44px;
  height: 30px;
  padding: 0 12px;
  font-size: 0.82rem;
  border-radius: 999px;
}

.global-site-header__theme.theme-switch {
  width: 52px;
  height: 34px;
}

.global-site-header__theme.theme-switch .theme-icon.moon {
  left: 8px;
}

.global-site-header__theme.theme-switch .theme-icon.sun {
  right: 8px;
}

.global-site-header__theme.theme-switch .theme-thumb {
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
}

.global-site-header__theme.theme-switch[data-theme="light"] .theme-thumb {
  transform: translateX(20px);
}

.global-site-header .lang-btn,
.global-site-header .theme-switch {
  font: inherit;
}

body.has-global-header .site-topbar {
  display: none !important;
}

.site-topbar {
  position: sticky;
  top: 14px;
  z-index: 90;
  width: min(var(--container), calc(100% - 32px));
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  margin: 16px auto 18px;
}

.site-topbar .container,
.site-topbar-inner {
  width: 100%;
  box-sizing: border-box;
  min-height: 68px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.site-topbar-left,
.site-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.site-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  gap: 10px;
}

.site-home-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(158, 185, 236, 0.26);
  border-radius: 999px;
  padding: 8px 13px;
  transition: 0.2s ease;
}

.site-home-link:hover {
  border-color: rgba(126, 240, 204, 0.45);
  color: #f2fffb;
  transform: translateY(-1px);
}

.site-brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-page-title {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1rem;
  line-height: 1.2;
}

.site-nav,
.site-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar,
.site-nav-links::-webkit-scrollbar {
  display: none;
}

.site-nav-link,
.site-nav-links a {
  text-decoration: none;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav-link:hover,
.site-nav-links a:hover {
  color: var(--text);
  border-color: rgba(158, 185, 236, 0.28);
  background: rgba(158, 185, 236, 0.08);
}

.site-nav-link.active,
.site-nav-link.is-active,
.site-nav-link[aria-current="page"],
.site-nav-links a.is-active,
.site-nav-links a[aria-current="page"] {
  color: #f7fbff;
  border-color: rgba(126, 240, 204, 0.35);
  background: linear-gradient(130deg, rgba(92, 163, 255, 0.22), rgba(126, 240, 204, 0.16));
}

.lang-theme-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-switch,
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(159, 184, 235, 0.26);
  background: rgba(158, 185, 236, 0.08);
  backdrop-filter: blur(10px);
}

.theme-switch {
  --switch-bg: rgba(158, 185, 236, 0.12);
  --switch-border: rgba(159, 184, 235, 0.3);
  --thumb-bg: linear-gradient(135deg, rgba(111, 145, 255, 0.9), rgba(126, 240, 204, 0.9));
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--switch-border);
  background: var(--switch-bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.theme-switch:hover {
  border-color: rgba(126, 240, 204, 0.46);
}

.theme-switch:focus-visible {
  box-shadow:
    0 0 0 2px rgba(99, 178, 255, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.theme-switch .theme-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.73rem;
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.theme-switch .theme-icon.moon {
  left: 9px;
}

.theme-switch .theme-icon.sun {
  right: 9px;
}

.theme-switch .theme-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--thumb-bg);
  box-shadow: 0 6px 14px rgba(11, 18, 37, 0.35);
  transition: transform 0.24s ease;
}

.theme-switch[data-theme="light"] .theme-thumb {
  transform: translateX(28px);
}

.theme-switch[data-theme="light"] .theme-icon.sun,
.theme-switch[data-theme="dark"] .theme-icon.moon {
  opacity: 1;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(107, 210, 255, 0.3) 0%,
    rgba(107, 210, 255, 0.12) 34%,
    rgba(107, 210, 255, 0) 72%
  );
  filter: blur(0.1px);
  transform: translate3d(var(--cursor-x, -999px), var(--cursor-y, -999px), 0) translate(-50%, -50%);
  transition: opacity 0.16s ease;
  will-change: transform, opacity;
}

html.cursor-active .cursor-glow,
body.cursor-active .cursor-glow {
  opacity: 0.7;
}

body.light-theme .cursor-glow {
  opacity: 0.44;
}

.cursor-glow.is-click {
  opacity: 0.86;
}

.cursor-glow::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 999px;
  border: 1px solid rgba(126, 240, 204, 0.2);
  opacity: 0.34;
  transform: scale(1);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cursor-glow.is-click::after {
  transform: scale(1.15);
  opacity: 0.14;
}

.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  background: rgba(170, 232, 255, 0.95);
  box-shadow:
    0 0 12px rgba(105, 211, 255, 0.75);
  transform: translate3d(var(--cursor-x, -999px), var(--cursor-y, -999px), 0) translate(-50%, -50%);
  transition: opacity 0.16s ease;
  will-change: transform, opacity;
}

html.cursor-active .cursor-dot,
body.cursor-active .cursor-dot {
  opacity: 1;
}

.cursor-dot.is-click {
  transform: translate3d(var(--cursor-x, -999px), var(--cursor-y, -999px), 0) translate(-50%, -50%) scale(1.22);
}

.lang-btn {
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
  min-width: 48px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.1;
  color: var(--text);
  background: transparent;
  transition: 0.2s ease;
}

.lang-btn:hover {
  border-color: rgba(158, 185, 236, 0.34);
  background: rgba(158, 185, 236, 0.14);
}

.lang-btn.active {
  border-color: rgba(126, 240, 204, 0.45);
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.46), rgba(126, 240, 204, 0.36));
  color: #f8fcff;
}

.hero-kicker {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.12;
  margin: 12px 0 10px;
}

.hero-subtitle {
  color: var(--muted);
  line-height: 1.75;
  max-width: 880px;
}

.glass-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-btn {
  color: #052031;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(92, 163, 255, 0.28);
}

.secondary-btn {
  color: var(--text);
  background: rgba(146, 171, 225, 0.08);
  border-color: rgba(146, 171, 225, 0.22);
}

.secondary-btn:hover {
  border-color: rgba(126, 240, 204, 0.38);
}

.status-pill {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.form-card {
  width: min(560px, 100%);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field input,
.form-field textarea {
  border-radius: 12px;
}

.panel-grid {
  display: grid;
  gap: 14px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  letter-spacing: 0.01em;
}

.weather-card {
  margin: 4px 0 26px;
  padding: 20px 22px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.weather-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.weather-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.weather-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.weather-refresh-btn {
  border: 1px solid rgba(158, 185, 236, 0.32);
  background: rgba(158, 185, 236, 0.12);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.weather-refresh-btn:hover {
  border-color: rgba(126, 240, 204, 0.42);
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(99, 178, 255, 0.17);
  border: 1px solid rgba(99, 178, 255, 0.24);
}

.weather-temp {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.weather-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.weather-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.weather-client {
  margin-top: 10px;
  border: 1px solid rgba(158, 185, 236, 0.24);
  background: rgba(9, 16, 34, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
}

.weather-privacy {
  font-size: 0.8rem;
}

.weather-refresh-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.hidden {
  display: none !important;
}

.compiler-maintenance {
  margin-bottom: 14px;
  border: 1px solid rgba(255, 168, 110, 0.34);
  border-radius: 14px;
  background: rgba(255, 160, 88, 0.12);
  color: #ffd5b2;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.compiler-maintenance.hidden {
  display: none;
}

@media (max-width: 1100px) {
  .global-site-header {
    width: calc(100% - 56px);
  }

  .global-site-header__inner {
    grid-template-columns: minmax(206px, auto) minmax(0, 1fr) auto;
    gap: 12px;
    padding: 11px 14px;
    min-height: 62px;
  }

  .global-site-header__nav {
    gap: 12px;
  }

  .site-topbar .container,
  .site-topbar-inner {
    padding: 10px 14px;
    gap: 12px;
    grid-template-columns: minmax(148px, auto) minmax(0, 1fr) auto;
  }
}

@media (max-width: 900px) {
  .global-site-header {
    width: calc(100% - 24px);
    margin-top: 10px;
  }

  .global-site-header__inner {
    grid-template-columns: minmax(160px, auto) auto;
    gap: 10px;
    padding: 10px 12px;
    min-height: 60px;
  }

  .global-site-header__actions {
    grid-column: 2;
    justify-content: flex-end;
  }

  .global-site-header__nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: 0;
  }

  .site-topbar {
    top: 10px;
  }

  .site-topbar .container,
  .site-topbar-inner {
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(128px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .site-topbar-left,
  .site-topbar-right {
    min-width: 0;
  }

  .site-topbar-right,
  .site-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .site-nav-links,
  .site-nav {
    justify-content: flex-start;
  }

  .lang-theme-stack {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .global-site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .global-site-header__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px 10px;
    min-height: auto;
  }

  .global-site-header__brandGroup {
    gap: 10px;
  }

  .global-site-header__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .global-site-header__nav {
    width: 100%;
  }

  .site-shell,
  .page-shell {
    width: calc(100% - 20px);
  }

  .site-topbar {
    width: calc(100% - 20px);
    margin-top: 12px;
  }

  .site-topbar .container,
  .site-topbar-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .site-topbar-left {
    width: 100%;
    justify-content: flex-start;
  }

  .site-topbar-right,
  .site-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-nav-links,
  .site-nav {
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .site-nav-links a,
  .site-home-link {
    font-size: 0.85rem;
    padding: 7px 10px;
  }

  .lang-btn {
    min-width: 44px;
    padding: 6px 10px;
  }

  .theme-switch {
    width: 54px;
    height: 30px;
  }

  .theme-switch .theme-thumb {
    width: 21px;
    height: 21px;
  }

  .theme-switch[data-theme="light"] .theme-thumb {
    transform: translateX(27px);
  }

  .lang-theme-stack {
    justify-content: flex-end;
  }

  .weather-card {
    padding: 16px;
  }

  .weather-temp {
    font-size: 1.35rem;
  }

}

.home-page:not(.light-theme) {
  background:
    radial-gradient(circle at 12% 12%, rgba(93, 162, 255, 0.16), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(126, 240, 204, 0.12), transparent 34%),
    linear-gradient(160deg, #060d1b 0%, #0b1630 52%, #091324 100%);
  color: var(--text);
}

.home-page .container {
  max-width: var(--container);
}

.home-page:not(.light-theme) .light-section,
.home-page:not(.light-theme) .dark-section {
  background: transparent;
}

.home-page:not(.light-theme) .section {
  padding: 64px 0;
}

.home-page:not(.light-theme) .tool-card,
.home-page:not(.light-theme) .gpt-card {
  background: rgba(15, 27, 48, 0.88);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-page:not(.light-theme) .tool-card p,
.home-page:not(.light-theme) .gpt-card p,
.home-page:not(.light-theme) .section-heading p {
  color: var(--muted);
}

.home-page:not(.light-theme) .section-heading h2,
.home-page:not(.light-theme) .tool-card h3,
.home-page:not(.light-theme) .gpt-card h3 {
  color: var(--text);
}

.home-page:not(.light-theme) .btn-dark {
  background: linear-gradient(135deg, #4a8fff, #6bd7ea);
  color: #062031;
}

.home-page:not(.light-theme) .btn-primary {
  background: linear-gradient(135deg, #6ab2ff, #8cc2ff);
  color: #041727;
}

.home-page:not(.light-theme) .btn-secondary {
  border-color: rgba(180, 204, 255, 0.35);
}

.home-page:not(.light-theme) .lang-btn.active {
  background: linear-gradient(135deg, #4f8cff, #6c7bff);
  color: #fff;
}

.home-page:not(.light-theme) .admin-entry-link {
  border: 1px solid rgba(160, 189, 246, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
}

.doi-page main.site-shell .container,
.admin-page .page-shell,
.ads-app.site-shell,
.ce-app.site-shell {
  width: min(var(--container), calc(100% - 6px));
  margin: 0 auto;
}

.doi-page .result-card,
.doi-page .citation-card,
.doi-page .history-item,
.doi-page .footer-info-card {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.ads-app.site-shell .ads-topbar.site-topbar,
.ce-app.site-shell .ce-topbar.site-topbar {
  margin-top: 0;
}

body.light-theme {
  --bg: #f5f8fc;
  --panel: rgba(255, 255, 255, 0.93);
  --panel-2: rgba(240, 246, 255, 0.95);
  --text: #102033;
  --muted: #53677f;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --border: rgba(143, 167, 201, 0.45);
  --shadow: 0 18px 45px rgba(15, 35, 65, 0.12);
}

body.light-theme .site-topbar {
  background: color-mix(in srgb, #ffffff 94%, #e8f0fb);
  border-color: rgba(146, 171, 208, 0.5);
  box-shadow: 0 14px 30px rgba(33, 60, 100, 0.12);
}

body.light-theme .global-site-header__inner {
  background: color-mix(in srgb, #ffffff 94%, #e8f0fb);
  border-color: rgba(146, 171, 208, 0.5);
  box-shadow: 0 14px 30px rgba(33, 60, 100, 0.12);
}

body.light-theme .site-home-link,
body.light-theme .site-brand,
body.light-theme .site-page-title {
  color: #0f2238;
}

body.light-theme .global-site-header__brand {
  color: #0f2238;
}

body.light-theme .site-nav-link,
body.light-theme .site-nav-links a {
  color: #4f6783;
}

body.light-theme .global-site-header__nav a {
  color: #4f6783;
}

body.light-theme .site-nav-link:hover,
body.light-theme .site-nav-links a:hover {
  color: #0f2238;
  border-color: rgba(113, 144, 190, 0.4);
  background: rgba(93, 128, 188, 0.12);
}

body.light-theme .global-site-header__nav a:hover {
  color: #0f2238;
  border-color: rgba(113, 144, 190, 0.4);
  background: rgba(93, 128, 188, 0.12);
}

body.light-theme .site-nav-link.active,
body.light-theme .site-nav-link.is-active,
body.light-theme .site-nav-link[aria-current="page"],
body.light-theme .site-nav-links a.is-active,
body.light-theme .site-nav-links a[aria-current="page"] {
  color: #0f2238;
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.16));
}

body.light-theme .global-site-header__nav a.is-active,
body.light-theme .global-site-header__nav a[aria-current="page"] {
  color: #0f2238;
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.16));
}

body.light-theme .lang-switch,
body.light-theme .lang-switcher,
body.light-theme .theme-switch {
  border-color: rgba(140, 165, 203, 0.45);
  background: rgba(231, 239, 252, 0.9);
}

body.light-theme .global-site-header .lang-switch,
body.light-theme .global-site-header .lang-switcher,
body.light-theme .global-site-header .theme-switch {
  border-color: rgba(140, 165, 203, 0.45);
  background: rgba(231, 239, 252, 0.9);
}

body.light-theme .lang-btn:hover {
  border-color: rgba(107, 138, 189, 0.42);
  background: rgba(116, 151, 209, 0.16);
}

body.light-theme .lang-btn.active {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(14, 165, 233, 0.85));
  color: #ffffff;
}

body.light-theme .home-page {
  background:
    radial-gradient(circle at 10% 12%, rgba(123, 167, 235, 0.24), transparent 38%),
    radial-gradient(circle at 88% 16%, rgba(94, 211, 234, 0.2), transparent 36%),
    linear-gradient(170deg, #f8fbff 0%, #eef4fd 48%, #e8f0fb 100%);
}

body.light-theme .home-page .hero {
  background: linear-gradient(140deg, #eef4ff 0%, #dfeeff 52%, #d4e7ff 100%);
  color: #11253b;
  border: 1px solid rgba(151, 181, 223, 0.5);
  box-shadow: 0 18px 42px rgba(25, 59, 107, 0.14);
}

body.light-theme .home-page .badge {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(132, 167, 216, 0.44);
  color: #375476;
}

body.light-theme .home-page .highlight {
  color: #1d4ed8;
}

body.light-theme .home-page .subtitle {
  color: #38516e;
}

body.light-theme .home-page .light-section,
body.light-theme .home-page .dark-section {
  background: transparent;
}

body.light-theme .home-page .tool-card,
body.light-theme .home-page .gpt-card {
  background: linear-gradient(165deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid rgba(147, 172, 208, 0.38);
  box-shadow: 0 12px 28px rgba(24, 57, 98, 0.1);
}

body.light-theme .home-page .tool-card h3,
body.light-theme .home-page .gpt-card h3,
body.light-theme .home-page .section-heading h2 {
  color: #10253d;
}

body.light-theme .home-page .tool-card p,
body.light-theme .home-page .gpt-card p,
body.light-theme .home-page .section-heading p {
  color: #4f6783;
}

body.light-theme .home-page .btn-primary,
body.light-theme .home-page .btn-dark {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
}

body.light-theme .home-page .btn-secondary {
  background: rgba(226, 237, 252, 0.95);
  border-color: rgba(137, 163, 201, 0.45);
  color: #163150;
}

body.light-theme .weather-card {
  background: color-mix(in srgb, #ffffff 94%, #eef4fd);
  border-color: rgba(145, 171, 206, 0.45);
  box-shadow: 0 12px 30px rgba(24, 56, 97, 0.12);
}

body.light-theme .weather-client {
  border-color: rgba(146, 171, 206, 0.4);
  background: rgba(233, 241, 252, 0.82);
  color: #17304d;
}

body.light-theme .weather-meta,
body.light-theme .weather-status,
body.light-theme .weather-privacy {
  color: #4d6582;
}

body.light-theme .weather-refresh-btn {
  border-color: rgba(138, 165, 202, 0.45);
  background: rgba(228, 238, 252, 0.94);
  color: #123050;
}

body.light-theme .weather-refresh-btn:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(210, 226, 249, 0.92);
}

body.light-theme .compiler-maintenance {
  color: #8d4b12;
  border-color: rgba(217, 140, 68, 0.45);
  background: rgba(255, 226, 196, 0.66);
}

body.light-theme .site-topbar,
body.light-theme .glass-card,
body.light-theme .form-card,
body.light-theme .weather-card {
  backdrop-filter: blur(12px);
}

@media (prefers-reduced-motion: reduce) {
  .theme-switch,
  .theme-switch .theme-thumb,
  .theme-switch .theme-icon,
  .cursor-glow,
  .cursor-dot {
    transition: none !important;
    animation: none !important;
  }
}
