@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0b0e14;
  --bg-sidebar: #0d1117;
  --bg-card: #11141c;
  --bg-card-hover: #161a24;
  --border-color: #1a1f2e;
  --text-primary: #ffffff;
  --text-secondary: #8b92a8;
  --text-muted: #5a6078;
  --accent-purple: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== APP LAYOUT ===== */
.app {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 24px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg { width: 20px; height: 20px; }

.brand-text h1 { font-size: 16px; font-weight: 600; }
.brand-text p { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.nav-main { flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  margin: 2px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
}

.nav-item:hover { background: var(--bg-card); color: var(--text-primary); }

.nav-item.active {
  background: linear-gradient(90deg, rgba(124,58,237,0.2), transparent);
  color: var(--text-primary);
  border-left: 2px solid var(--accent-purple);
  margin-left: 0;
  border-radius: 0 8px 8px 0;
}

.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.nav-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.premium-card {
  margin: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.1));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 12px;
}

.premium-card h3 {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.premium-card p { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }

.btn-premium {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-premium:hover { opacity: 0.9; }

.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin-top: auto;
  color: var(--text-secondary);
  font-size: 13px;
}

.toggle-switch {
  width: 40px;
  height: 22px;
  background: var(--border-color);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-switch.active { background: var(--accent-purple); }

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px;
  right: 2px;
  transition: transform 0.2s;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 24px 28px;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-title h2 { font-size: 22px; font-weight: 600; }
.page-title p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-share {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-share:hover { background: var(--bg-card-hover); }

.notif-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  color: var(--text-secondary);
}

.notif-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-info { text-align: right; }
.user-info .name { font-size: 13px; font-weight: 500; }
.user-info .plan { font-size: 11px; color: var(--text-secondary); }

.dropdown-icon { color: var(--text-secondary); cursor: pointer; }

/* ===== PAGES ===== */
.page.hidden { display: none; }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header h3 { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

.timestamp { font-size: 12px; color: var(--text-secondary); }

/* ===== SPEED GAUGE ===== */
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.gauge-wrapper {
  position: relative;
  width: 260px;
  height: 150px;
}

.gauge-svg {
  width: 260px;
  height: 140px;
}

.gauge-track { opacity: 0.3; }

.gauge-inner {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.gauge-value { font-size: 36px; font-weight: 700; line-height: 1; }
.gauge-unit { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.gauge-needle {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 3px;
  height: 100px;
  background: linear-gradient(to top, white 70%, transparent);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-90deg);
  border-radius: 2px;
  transition: transform 0.3s ease-out;
}

.gauge-center {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #3a3f4f;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  width: 240px;
  margin-top: 8px;
  padding: 0 10px;
  font-size: 10px;
  color: var(--text-muted);
}

.gauge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent-purple);
  font-size: 13px;
}

.gauge-status svg { width: 14px; height: 14px; }

.spin { animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== METRICS GRID ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s;
}

.metric-card:hover { border-color: rgba(124,58,237,0.3); }

.metric-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.metric-header svg { width: 16px; height: 16px; }

.metric-header span {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value { font-size: 28px; font-weight: 700; }

.metric-unit { font-size: 12px; color: var(--text-secondary); font-weight: 400; }

.metric-sparkline {
  height: 30px;
  margin-top: 8px;
  width: 100%;
}

.sparkline-purple { stroke: #7c3aed; fill: none; stroke-width: 1.5; }
.sparkline-cyan { stroke: #06b6d4; fill: none; stroke-width: 1.5; }
.sparkline-yellow { stroke: #f59e0b; fill: none; stroke-width: 1.5; }

/* ===== SERVER CARD ===== */
.server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.server-header h3 { font-size: 14px; font-weight: 500; }

.change-btn {
  font-size: 12px;
  color: var(--accent-cyan);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.change-btn:hover { opacity: 0.8; }

.world-map {
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Crect fill='%2311141c' width='400' height='200'/%3E%3Cpath d='M50,80 Q80,60 120,70 T200,65 T280,75 T350,85' stroke='%232a3045' stroke-width='1' fill='none'/%3E%3Cpath d='M40,100 Q70,85 110,90 T190,85 T270,95 T340,105' stroke='%232a3045' stroke-width='1' fill='none'/%3E%3Cpath d='M60,120 Q90,105 130,110 T210,105 T290,115 T360,125' stroke='%232a3045' stroke-width='1' fill='none'/%3E%3Ccircle cx='280' cy='85' r='6' fill='%237c3aed' opacity='0.3'/%3E%3Ccircle cx='280' cy='85' r='3' fill='%237c3aed'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-bottom: 12px;
  position: relative;
}

.map-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #7c3aed;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
  animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.server-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.server-flag {
  width: 28px;
  height: 20px;
  background: linear-gradient(180deg, #ff9932 33%, white 33%, white 66%, #138808 66%);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}

.server-flag::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #000080;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.server-location h4 { font-size: 14px; font-weight: 500; }
.server-location p { font-size: 12px; color: var(--text-secondary); }

.server-distance { font-size: 12px; color: var(--text-secondary); margin-left: auto; }

.server-colo {
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.server-details { margin-top: 12px; }

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}

.detail-row:last-child { border-bottom: none; }

.detail-label { color: var(--text-secondary); }
.detail-value { color: var(--text-primary); font-weight: 500; }

/* ===== BOTTOM GRID ===== */
.bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ===== CHART ===== */
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-header h3 { font-size: 14px; font-weight: 500; }

.time-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.chart-container {
  height: 180px;
  position: relative;
}

.chart-line-download { stroke: #06b6d4; stroke-width: 2; fill: none; }
.chart-line-upload { stroke: #7c3aed; stroke-width: 2; fill: none; }
.chart-dot-download { fill: #06b6d4; }
.chart-dot-upload { fill: #7c3aed; }
.chart-grid { stroke: #1a1f2e; stroke-width: 1; }
.chart-text { fill: #5a6078; font-size: 10px; font-family: 'Inter', sans-serif; }

/* ===== RECENT TESTS ===== */
.recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.recent-header h3 { font-size: 14px; font-weight: 500; }

.view-all {
  font-size: 12px;
  color: var(--accent-cyan);
  background: none;
  border: none;
  cursor: pointer;
}

.tests-table { width: 100%; border-collapse: collapse; }

.tests-table th {
  text-align: left;
  padding: 8px 4px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
  border-bottom: 1px solid var(--border-color);
}

.tests-table td {
  padding: 10px 4px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
}

.tests-table tr:last-child td { border-bottom: none; }

.tests-table tr:hover td { background: rgba(255,255,255,0.02); }

.speed-down { color: var(--accent-cyan); font-weight: 500; }
.speed-up { color: var(--accent-purple); font-weight: 500; }
.ping-val { color: var(--accent-yellow); font-weight: 500; }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-icon:hover { background: rgba(255,255,255,0.05); }

/* ===== SUMMARY GRID ===== */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.summary-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }

.subtitle { font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }

.summary-metrics {
  display: flex;
  gap: 24px;
}

.summary-metric {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-icon.cyan { background: rgba(6,182,212,0.15); }
.summary-icon.purple { background: rgba(124,58,237,0.15); }
.summary-icon.yellow { background: rgba(245,158,11,0.15); }

.summary-icon svg { width: 20px; height: 20px; }

.summary-value { font-size: 24px; font-weight: 700; }

.summary-unit { font-size: 11px; color: var(--text-secondary); }

.summary-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ===== NETWORK DETAILS ===== */
.network-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.network-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.network-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.network-item .label { font-size: 12px; color: var(--text-secondary); }
.network-item .value { font-size: 12px; font-weight: 500; }

.network-item.full-width { grid-column: span 2; }

/* ===== SPEED TEST PAGE ===== */
.speedtest-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

.speedtest-gauge-wrapper {
  position: relative;
  width: 400px;
  height: 240px;
  margin-bottom: 32px;
}

.speedtest-gauge {
  width: 400px;
  height: 220px;
}

.gauge-track-bg { opacity: 0.15; }

.speedtest-gauge-inner {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.speedtest-value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #8b92a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.speedtest-unit {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.speedtest-label {
  font-size: 14px;
  color: var(--accent-purple);
  margin-top: 8px;
  font-weight: 500;
}

#test-needle {
  transform-origin: 200px 200px;
  transition: transform 0.15s ease-out;
}

.speedtest-metrics-row {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.test-metric {
  text-align: center;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-width: 120px;
}

.test-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.test-metric-icon svg { width: 18px; height: 18px; }

#test-ping .test-metric-icon { background: rgba(124,58,237,0.15); }
#test-download .test-metric-icon { background: rgba(6,182,212,0.15); }
#test-upload .test-metric-icon { background: rgba(124,58,237,0.15); }
#test-jitter .test-metric-icon { background: rgba(245,158,11,0.15); }

.test-metric-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.test-metric-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.speedtest-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-start {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.3);
}

.btn-start:active { transform: translateY(0); }

.btn-cancel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cancel:hover { background: var(--bg-card-hover); }

.speedtest-progress {
  width: 100%;
  max-width: 400px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== HISTORY PAGE ===== */
.history-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { background: var(--bg-card-hover); }

.filter-btn.active {
  background: rgba(124,58,237,0.2);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.full-width { width: 100%; }

/* ===== STATISTICS PAGE ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card h3 { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }

.stat-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-value span { font-size: 16px; color: var(--text-secondary); font-weight: 500; }

.stat-change {
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-change.positive { color: var(--accent-green); }
.stat-change.negative { color: var(--accent-red); }

/* ===== SERVERS PAGE ===== */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.server-card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.server-card-item:hover { border-color: rgba(124,58,237,0.3); }

.server-card-item.active {
  border-color: var(--accent-purple);
  background: linear-gradient(135deg, rgba(124,58,237,0.1), transparent);
}

.server-card-flag {
  width: 36px;
  height: 26px;
  border-radius: 4px;
  flex-shrink: 0;
}

.server-card-info { flex: 1; }

.server-card-info h4 { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.server-card-info p { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }

.server-ping {
  font-size: 11px;
  color: var(--accent-green);
  background: rgba(16,185,129,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.server-status {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.server-status.connected {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: var(--accent-green);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card { animation: slideIn 0.3s ease-out; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .gauge-card { grid-column: span 2; }
  .server-card { grid-column: span 2; }
  .bottom-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .servers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar .brand-text, .sidebar .nav-item span, .sidebar .premium-card, .sidebar .dark-toggle { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 12px; margin: 2px; }
  .main-content { margin-left: 60px; padding: 16px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .gauge-card, .server-card { grid-column: span 1; }
  .metrics-grid { grid-template-columns: 1fr; }
  .summary-metrics { flex-direction: column; gap: 16px; }
  .network-details { grid-template-columns: 1fr; }
  .network-item.full-width { grid-column: span 1; }
  .speedtest-gauge-wrapper { width: 300px; height: 180px; }
  .speedtest-gauge { width: 300px; height: 165px; }
  .speedtest-metrics-row { flex-wrap: wrap; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .top-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-actions { width: 100%; justify-content: flex-end; }
}