/* ==========================================================================
   Tele2 Speedtest Service - Modern UI Stylesheet
   Modern Scandinavian Telecom Aesthetic: Glassmorphism, Neon Accents, Clean Typography
   ========================================================================== */

:root {
  /* Color Palette - Dark Mode Default */
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 85, 255, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  /* Tele2 Brand Accents */
  --tele2-blue: #0055ff;
  --tele2-blue-hover: #1a6eff;
  --tele2-cyan: #00f0ff;
  --tele2-purple: #8b5cf6;
  --tele2-emerald: #10b981;
  --tele2-amber: #f59e0b;
  --tele2-rose: #f43f5e;

  --glow-blue: 0 0 25px rgba(0, 85, 255, 0.4);
  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.35);
  --glow-purple: 0 0 25px rgba(139, 92, 246, 0.35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(0, 85, 255, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --glow-blue: 0 4px 20px rgba(0, 85, 255, 0.2);
  --glow-cyan: 0 4px 20px rgba(0, 180, 216, 0.2);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle Ambient Gradient Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 85, 255, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(0, 240, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.brand-badge {
  font-size: 0.7rem;
  background: rgba(0, 85, 255, 0.15);
  color: var(--tele2-blue);
  border: 1px solid var(--border-accent);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--tele2-blue);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.btn-icon {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

/* Network Status Ribbon */
.network-status-bar {
  background: rgba(0, 85, 255, 0.05);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
  font-size: 0.825rem;
}

.status-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-secondary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tele2-emerald);
  box-shadow: 0 0 10px var(--tele2-emerald);
  animation: pulse 2s infinite;
}

.ip-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.node-link {
  color: var(--tele2-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.node-link:hover {
  text-decoration: underline;
}

.ip-toggle-link {
  font-size: 0.775rem;
  color: var(--tele2-blue);
  text-decoration: none;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 85, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.ip-toggle-link:hover {
  background: var(--tele2-blue);
  color: #fff;
}

/* ==========================================================================
   Hero Section & Speed Test Gauge
   ========================================================================== */
.hero-section {
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-header {
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--tele2-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #0f172a 30%, var(--tele2-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Speedtest Main Console Card */
.speedtest-console {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
}

.speedtest-console::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tele2-blue), var(--tele2-cyan), var(--tele2-purple));
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.metric-card.active {
  border-color: var(--tele2-blue);
  background: rgba(0, 85, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 85, 255, 0.2);
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.2rem;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  font-family: var(--font-mono);
}

/* Central Gauge Arena */
.gauge-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 2.5rem;
  position: relative;
}

.gauge-svg-wrapper {
  position: relative;
  width: 320px;
  height: 240px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}

.gauge-bg-arc {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 16;
  stroke-linecap: round;
}

.gauge-progress-arc {
  fill: none;
  stroke: url(#gauge-gradient);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 565;
  transition: stroke-dashoffset 0.15s ease-out;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}

.gauge-center-content {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-live-speed {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.gauge-live-unit {
  font-size: 1rem;
  color: var(--tele2-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.gauge-phase-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* Central Action Button */
.btn-action-main {
  background: linear-gradient(135deg, var(--tele2-blue), #0040c0);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1.1rem 3.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0, 85, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.btn-action-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 85, 255, 0.6);
  background: linear-gradient(135deg, var(--tele2-blue-hover), var(--tele2-blue));
}

.btn-action-main.btn-running {
  background: linear-gradient(135deg, var(--tele2-rose), #be123c);
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.4);
}

/* Real-time Bandwidth Chart Canvas */
.chart-container {
  width: 100%;
  height: 120px;
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Server Selector Row */
.server-selector-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.select-modern {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.select-modern:focus {
  border-color: var(--tele2-blue);
}

/* ==========================================================================
   Section Headers & Common Card Layouts
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tele2-blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 700px;
  font-size: 1rem;
}

/* ==========================================================================
   HTTP Download Suite (Direct Sparse Files)
   ========================================================================== */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--tele2-blue);
  color: #fff;
  border-color: var(--tele2-blue);
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.file-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.file-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.file-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.file-size-tag {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.file-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.1);
  color: var(--tele2-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.file-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-download-direct {
  flex: 1;
  background: var(--tele2-blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-download-direct:hover {
  background: var(--tele2-blue-hover);
  box-shadow: 0 0 15px rgba(0, 85, 255, 0.4);
}

.btn-icon-sub {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-sub:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

/* ==========================================================================
   HTTP Upload Suite & FTP Section
   ========================================================================== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.glass-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.box-header {
  margin-bottom: 1.25rem;
}

.box-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.upload-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  transition: var(--transition);
  cursor: pointer;
  background: var(--bg-glass);
}

.upload-dropzone:hover,
.upload-dropzone.drag-active {
  border-color: var(--tele2-purple);
  background: rgba(139, 92, 246, 0.08);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--tele2-purple);
  margin-bottom: 0.75rem;
}

.upload-progress-wrapper {
  margin-top: 1rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tele2-purple), var(--tele2-cyan));
  width: 0%;
  transition: width 0.15s ease-out;
}

/* Quick Generator Chips */
.upload-quick-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.chip-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover {
  background: var(--tele2-purple);
  color: #fff;
}

/* FTP Connection Specs Table */
.spec-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table td {
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.spec-label {
  color: var(--text-muted);
  width: 35%;
}

.spec-value {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   CLI Generator & Developer Toolbox
   ========================================================================== */
.cli-box {
  background: #060910;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1.5rem;
}

.cli-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cli-tabs {
  display: flex;
  gap: 0.5rem;
}

.cli-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.cli-tab.active,
.cli-tab:hover {
  background: var(--bg-tertiary);
  color: var(--tele2-cyan);
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-copy-code:hover {
  background: var(--tele2-blue);
  color: #fff;
}

.cli-code-block {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================================
   Anycast Server Nodes Status
   ========================================================================== */
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
}

.node-card:hover {
  border-color: var(--border-accent);
}

.node-card.primary {
  border-color: var(--tele2-blue);
  background: rgba(0, 85, 255, 0.05);
}

.node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.node-name {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.node-ping-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  color: var(--tele2-emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.node-host {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.node-hardware {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Technical Details & Architecture
   ========================================================================== */
.tech-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.tech-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Hash Modal / Drawer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.hash-row {
  margin-bottom: 1.25rem;
}

.hash-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hash-box {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--tele2-cyan);
  word-break: break-all;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 3000;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-hide {
  transform: translateY(10px);
  opacity: 0;
}

.toast-icon {
  font-weight: 700;
  color: var(--tele2-cyan);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  background: var(--bg-secondary);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--tele2-blue);
}

/* Keyframes */
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Mobile Responsiveness */
@media (max-width: 868px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col-grid,
  .tech-details-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .gauge-svg-wrapper {
    width: 280px;
    height: 210px;
  }
  .gauge-live-speed {
    font-size: 2.8rem;
  }
  .nav-menu {
    display: none;
  }
}
