/* ====================================================================
   FELEROUS STORE - STEAM-STYLE HARDWARE & SOFTWARE SURVEY (CSS)
   ==================================================================== */

:root {
  --hw-bg-dark: #090d14;
  --hw-card-bg: #121822;
  --hw-card-hover: #17202d;
  --hw-border: #1e293b;
  --hw-border-glow: rgba(0, 230, 118, 0.35);
  --hw-accent: #00e676;
  --hw-accent-cyan: #00e5ff;
  --hw-text-main: #f1f5f9;
  --hw-text-muted: #94a3b8;
  --hw-text-dim: #64748b;
  --hw-nvidia: #76b900;
  --hw-amd: #ed1c24;
  --hw-intel: #0071c5;
  --hw-apple: #a3a3a3;
  --hw-up: #10b981;
  --hw-down: #ef4444;
}

body.survey-page-body {
  background-color: var(--hw-bg-dark);
  color: var(--hw-text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.survey-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 60px;
  box-sizing: border-box;
  flex: 1;
}

/* --- Hero Banner --- */
.survey-hero {
  background: radial-gradient(circle at 50% 0%, rgba(0, 230, 118, 0.12) 0%, rgba(18, 24, 34, 0.6) 70%, transparent 100%);
  border: 1px solid var(--hw-border);
  border-radius: 14px;
  padding: 40px 32px;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.survey-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hw-accent), var(--hw-accent-cyan), transparent);
}

.survey-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--hw-accent);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.survey-hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px 0;
  letter-spacing: -0.5px;
}

.survey-hero h1 span {
  background: linear-gradient(135deg, #ffffff 40%, var(--hw-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.survey-hero p {
  max-width: 760px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
  color: var(--hw-text-muted);
  line-height: 1.6;
}

.survey-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--hw-text-dim);
}

.survey-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Interactive PC Hardware Scanner HUD Card --- */
.scan-hud-card {
  background: var(--hw-card-bg);
  border: 1px solid var(--hw-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: border-color 0.3s ease;
}

.scan-hud-card.scanned {
  border-color: var(--hw-accent);
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.15);
}

.scan-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hw-border);
}

.scan-hud-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scan-hud-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--hw-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.scan-hud-title h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.scan-hud-title p {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  color: var(--hw-text-muted);
}

.btn-scan-pc {
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  color: #090d14;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
  transition: all 0.25s ease;
}

.btn-scan-pc:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.45);
}

.btn-scan-pc:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.scan-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.spec-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hw-border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: background-color 0.2s;
}

.spec-box:hover {
  background: rgba(255, 255, 255, 0.05);
}

.spec-label {
  font-size: 0.78rem;
  color: var(--hw-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Depolama Kapasitesi Düzeltme Butonu ve Açılır Seçici */
.btn-storage-edit {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--hw-accent);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.btn-storage-edit:hover {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--hw-accent);
  color: #fff;
  transform: translateY(-1px);
}

.storage-picker-popup {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #101622;
  border: 1px solid var(--hw-border-focus);
  border-radius: 8px;
  padding: 10px;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
}

.storage-picker-title {
  font-size: 0.73rem;
  color: var(--hw-text-dim);
  margin-bottom: 8px;
  font-weight: 600;
}

.storage-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.storage-opt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hw-border);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 6px 2px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.storage-opt-btn:hover {
  background: rgba(0, 230, 118, 0.2);
  border-color: var(--hw-accent);
  color: #fff;
}

.storage-opt-btn.active {
  background: var(--hw-accent);
  color: #090d14;
  border-color: var(--hw-accent);
  font-weight: 700;
}

.scan-status-alert {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 10px;
}

.scan-status-alert.info {
  display: flex;
  background: rgba(0, 176, 255, 0.12);
  border: 1px solid rgba(0, 176, 255, 0.3);
  color: #7dd3fc;
}

.scan-status-alert.success {
  display: flex;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: #86efac;
}

/* ====================================================================
   DÖNEM SEÇİCİ & TARİH KAYDIRACI (PERIOD TIMELINE SLIDER)
   ==================================================================== */
.period-timeline-panel {
  background: var(--hw-card-bg);
  border: 1px solid var(--hw-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.period-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.period-timeline-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.period-timeline-title h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
}

.period-schedule-note {
  font-size: 0.82rem;
  color: var(--hw-text-dim);
}

/* Kaydıraç Rayı (Horizontal Slider / Rail) */
.timeline-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hw-border);
  color: var(--hw-text-muted);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.slider-nav-btn:hover {
  background: rgba(0, 230, 118, 0.15);
  color: var(--hw-accent);
  border-color: var(--hw-accent);
}

.timeline-slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--hw-border) transparent;
}

.timeline-slider-track::-webkit-scrollbar {
  height: 6px;
}

.timeline-slider-track::-webkit-scrollbar-thumb {
  background: var(--hw-border);
  border-radius: 4px;
}

/* Kaydıraç Kartı (Month Pill Item) */
.timeline-month-chip {
  flex: 0 0 auto;
  min-width: 170px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--hw-border);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  user-select: none;
}

.timeline-month-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 230, 118, 0.4);
  transform: translateY(-2px);
}

.timeline-month-chip.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 176, 255, 0.1));
  border-color: var(--hw-accent);
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.2);
}

.timeline-month-date {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-month-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-month-status.collecting {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.timeline-month-status.published {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.timeline-month-meta {
  font-size: 0.78rem;
  color: var(--hw-text-dim);
}

/* Seçili Dönem Durum Şeridi (Selected Period Status Ribbon) */
.selected-period-banner {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-period-banner.collecting {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.selected-period-banner.published {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* ====================================================================
   BOŞ VERİ DURUMU (EMPTY STATE - SAF FELEROUS VERİSİ)
   ==================================================================== */
.survey-empty-state {
  background: var(--hw-card-bg);
  border: 1px dashed var(--hw-border);
  border-radius: 12px;
  padding: 60px 24px;
  text-align: center;
  margin-bottom: 30px;
}

.survey-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.survey-empty-state h3 {
  font-size: 1.4rem;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.survey-empty-state p {
  max-width: 620px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
  color: var(--hw-text-muted);
  line-height: 1.6;
}

/* --- Navigation Filter Tabs --- */
.survey-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hw-border);
}

.survey-tab-btn {
  background: transparent;
  color: var(--hw-text-muted);
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.survey-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.survey-tab-btn.active {
  color: var(--hw-accent);
  border-bottom: 2px solid var(--hw-accent);
  background: rgba(0, 230, 118, 0.06);
}

/* --- Section Title & Grid --- */
.stats-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .stats-grid-two {
    grid-template-columns: 1fr;
  }
}

.stat-panel {
  background: var(--hw-card-bg);
  border: 1px solid var(--hw-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.stat-panel-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--hw-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.stat-panel-badge {
  font-size: 0.75rem;
  color: var(--hw-text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

/* --- Steam-Style Statistics Tables --- */
.stat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.stat-table th {
  text-align: left;
  padding: 11px 16px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hw-text-dim);
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid var(--hw-border);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-table th:last-child {
  border-right: none;
}

.stat-table th.text-right {
  text-align: right;
}

.stat-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  vertical-align: middle;
}

.stat-table td:last-child {
  border-right: none;
}

.stat-table tr:last-child td {
  border-bottom: none;
}

.stat-table tbody tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.018);
}

.stat-table tbody tr:hover td {
  background-color: var(--hw-card-hover) !important;
}

.component-name {
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
}

.component-rank {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hw-text-dim);
  width: 32px;
  text-align: center;
}

/* Percentage & Progress Bar Cell */
.percentage-cell {
  width: 40%;
  min-width: 160px;
}

.stat-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-bar-track {
  flex: 1;
  min-width: 60px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #00e676, #00b0ff);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar-fill.nvidia {
  background: linear-gradient(90deg, #76b900, #a1e224);
}
.stat-bar-fill.amd {
  background: linear-gradient(90deg, #ed1c24, #ff575d);
}
.stat-bar-fill.intel {
  background: linear-gradient(90deg, #0071c5, #00b0ff);
}
.stat-bar-fill.apple {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}
.stat-bar-fill.qualcomm {
  background: linear-gradient(90deg, #9945ff, #c084fc);
}
.stat-bar-fill.mediatek {
  background: linear-gradient(90deg, #ff7a00, #ffa040);
}
.stat-bar-fill.samsung {
  background: linear-gradient(90deg, #1428a0, #3b82f6);
}
.stat-bar-fill.arm {
  background: linear-gradient(90deg, #00c7b7, #38bdf8);
}
.stat-bar-fill.google {
  background: linear-gradient(90deg, #ea4335, #fbbc05);
}
.stat-bar-fill.huawei {
  background: linear-gradient(90deg, #cf0a2c, #ef4444);
}

.stat-percent-label {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.88rem;
  width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stat-count-badge {
  font-size: 0.75rem;
  color: var(--hw-text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* Change Indicator (+ / - %) */
.stat-change {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.stat-change.up {
  color: var(--hw-up);
}

.stat-change.down {
  color: var(--hw-down);
}

.stat-change.neutral {
  color: var(--hw-text-dim);
}

/* --- GPU Vendor Share Summary Card --- */
.vendor-share-bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 20px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.vendor-share-slice {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.2s ease;
  position: relative;
}

.vendor-share-slice:hover {
  opacity: 0.88;
}

.vendor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 20px 18px;
  font-size: 0.82rem;
  color: var(--hw-text-muted);
}

.vendor-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vendor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* --- Privacy Notice Footer Card --- */
.survey-privacy-box {
  background: rgba(18, 24, 34, 0.7);
  border: 1px dashed var(--hw-border);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.survey-privacy-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.survey-privacy-box h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  color: #fff;
}

.survey-privacy-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--hw-text-muted);
  line-height: 1.5;
}

/* --- Responsive Table Wrapper --- */
.stat-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.2);
}

.stat-table-responsive::-webkit-scrollbar {
  height: 5px;
}

.stat-table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.stat-table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.stat-table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 768px) {
  .survey-container {
    padding: 16px 12px 40px;
  }

  .survey-hero {
    padding: 24px 16px;
    margin-bottom: 20px;
  }

  .survey-hero h1 {
    font-size: 1.6rem;
  }

  .scan-hud-card {
    padding: 16px;
    margin-bottom: 20px;
  }

  .scan-hud-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .btn-scan-pc {
    width: 100%;
    justify-content: center;
  }

  .scan-hud-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .spec-box {
    padding: 10px 12px;
  }

  .spec-label {
    font-size: 0.72rem;
  }

  .spec-val {
    font-size: 0.88rem;
  }

  .period-timeline-panel {
    padding: 14px 16px;
    margin-bottom: 20px;
  }

  .survey-tabs {
    gap: 6px;
    margin-bottom: 18px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .survey-tabs::-webkit-scrollbar {
    display: none;
  }

  .survey-tab-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .stat-panel-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .stat-panel-title {
    font-size: 0.95rem;
  }

  .stat-panel-badge {
    font-size: 0.7rem;
  }

  .vendor-share-bar {
    margin: 12px 14px 10px;
    height: 24px;
  }

  .vendor-share-slice {
    font-size: 0.68rem;
  }

  .vendor-legend {
    padding: 0 14px 12px;
    gap: 8px 12px;
    font-size: 0.78rem;
  }

  .stat-table {
    min-width: 440px;
  }

  .stat-table th, .stat-table td {
    padding: 8px 10px;
    font-size: 0.82rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-table th:last-child,
  .stat-table td:last-child {
    border-right: none;
  }

  .stat-table th:first-child,
  .stat-table td.component-rank {
    width: 26px !important;
    padding-left: 8px;
    padding-right: 2px;
    font-size: 0.72rem;
    text-align: center;
  }

  .component-name {
    font-size: 0.82rem;
    line-height: 1.25;
    white-space: nowrap;
    padding-right: 8px;
  }

  .percentage-cell {
    width: 36%;
    min-width: 110px;
  }

  .stat-bar-container {
    gap: 8px;
  }

  .stat-bar-track {
    height: 7px;
    min-width: 45px;
  }

  .stat-percent-label {
    font-size: 0.76rem;
    width: 48px;
  }

  .stat-table td.text-right,
  .stat-table th.text-right {
    white-space: nowrap;
    font-size: 0.78rem;
    padding-left: 6px;
    padding-right: 10px;
    min-width: 80px;
  }

  .timeline-month-chip {
    min-width: 130px;
    padding: 8px 10px;
  }

  .survey-privacy-box {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .scan-hud-grid {
    grid-template-columns: 1fr;
  }

  .survey-hero h1 {
    font-size: 1.45rem;
  }

  .stat-panel-title {
    font-size: 0.88rem;
  }

  .stat-table {
    min-width: 410px;
  }

  .stat-table th, .stat-table td {
    padding: 7px 8px;
    font-size: 0.78rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-table th:last-child,
  .stat-table td:last-child {
    border-right: none;
  }

  .component-name {
    font-size: 0.78rem;
  }

  .percentage-cell {
    min-width: 95px;
  }

  .stat-percent-label {
    font-size: 0.72rem;
    width: 44px;
  }
}
