::selection {
  background-color: #22d3ee;
  color: #0f172a;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f172a;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background-color: #1e293b;
  border-radius: 999px;
  border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #334155;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

.btn-outline {
  border: 1px solid #22d3ee;
  color: #22d3ee;
  background-color: transparent;
  border-radius: 0.375rem;
  transition: background-color 150ms ease, color 150ms ease;
}

.btn-outline:hover {
  background-color: #22d3ee;
  color: #0f172a;
}

.status-dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 999px;
  background-color: #22d3ee;
  margin-right: 0.5em;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.nav-link {
  position: relative;
  color: #94a3b8;
  border-radius: 0.375rem;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav-link:hover {
  color: #e2e8f0;
  background-color: rgba(34, 211, 238, 0.06);
}

.nav-link.active {
  color: #22d3ee;
  background-color: rgba(34, 211, 238, 0.08);
}

.nav-link.active::before {
  content: '>';
  color: #22d3ee;
  margin-right: 0.4rem;
}

.mobile-nav-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.mobile-nav-collapse.open {
  max-height: 800px;
}

.hamburger-line {
  transition: transform 150ms ease, opacity 150ms ease;
}

.dash-panel {
  border: 1px solid #1e293b;
  border-radius: 0.375rem;
  background-color: #111c2e;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.75rem;
}

.tier-S { background-color: rgba(34, 211, 238, 0.16); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.4); }
.tier-A { background-color: rgba(74, 222, 128, 0.14); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.35); }
.tier-B { background-color: rgba(250, 204, 21, 0.14); color: #facc15; border: 1px solid rgba(250, 204, 21, 0.35); }
.tier-C { background-color: rgba(148, 163, 184, 0.14); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.35); }

details.accordion-item summary {
  cursor: pointer;
  list-style: none;
}

details.accordion-item summary::-webkit-details-marker {
  display: none;
}

details.accordion-item .accordion-icon {
  transition: transform 180ms ease;
}

details.accordion-item[open] .accordion-icon {
  transform: rotate(45deg);
}

.terminal-table th,
.terminal-table td {
  border-color: #1e293b;
}

.terminal-table tbody tr:hover {
  background-color: rgba(34, 211, 238, 0.05);
}

.guide-row:hover .guide-row-title {
  color: #22d3ee;
}

#cookie-banner {
  transform: translateY(120%);
  transition: transform 260ms ease;
}

#cookie-banner.visible {
  transform: translateY(0);
}

#cookie-prefs-modal {
  display: none;
}

#cookie-prefs-modal[data-open="true"] {
  display: flex;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #22d3ee;
  color: #0f172a;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: #22d3ee;
}
