:root {
  --border: rgba(125, 211, 252, 0.15);
  --surface: rgba(17, 24, 39, 0.7);
}

html,
body {
  height: auto;
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
}

.background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  z-index: 0;
}

.frost-overlay {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.02) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(125, 211, 252, 0.04) 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}

.dashboard-page {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  width: 100%;
  max-width: 56rem;
  padding: 2rem 1.25rem 5rem;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.dashboard-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frost);
}

.dashboard-section + .dashboard-section {
  margin-top: 2.5rem;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice-dim);
  margin-bottom: 1.25rem;
}

.tool-category + .tool-category {
  margin-top: 1.5rem;
}

.category-title {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.tool-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frost);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.tool-tile:hover {
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 1rem rgba(56, 189, 248, 0.12);
  color: var(--ice);
}

.tool-tile:focus-visible {
  outline: 2px solid var(--ice-dim);
  outline-offset: 2px;
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.stats-unavailable {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
}

.footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
