/* =========================================
   DESIGN SYSTEM & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Core Palette */
  --bg-void:     #050507;
  --bg-dark:     #0A0A0D;
  --bg-panel:    #101014;
  --bg-surface:  #15151A;
  --bg-elevated: #1C1C23;

  /* Glassmorphism */
  --glass-bg:     rgba(18, 18, 24, 0.72);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-hover:  rgba(255, 255, 255, 0.04);

  /* Accent */
  --red:          #E10600;
  --red-dim:      rgba(225, 6, 0, 0.18);
  --red-glow:     rgba(225, 6, 0, 0.45);
  --red-bright:   #FF2018;

  /* Status */
  --green:        #00E676;
  --green-glow:   rgba(0, 230, 118, 0.4);

  /* Text */
  --text-primary: #F0F0F5;
  --text-secondary: #9090A8;
  --text-tertiary:  #55556A;

  /* Team Colors */
  --redbull:   #3671C6;
  --ferrari:   #F91536;
  --mercedes:  #6CD3BF;
  --mclaren:   #FF8000;
  --aston:     #358C75;
  --alpine:    #FF87BC;
  --haas:      #B6BABD;
  --williams:  #64C4FF;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', monospace;

  /* Transitions */
  --t-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:   0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
  --shadow-red: 0 0 20px var(--red-glow);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; }

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  height: 100vh;
  overflow: hidden;
  /* Diagonal grid texture */
  background-image:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(225,6,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 100%, rgba(54,113,198,0.05) 0%, transparent 70%),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px;
}

/* Typography */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; }
select, input { font-family: var(--font-body); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* =========================================
   LAYOUT
   ========================================= */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  z-index: 20;
  position: relative;
}

/* Subtle red glow from top of sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.6;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 0;
  margin-bottom: 24px;
}
.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 0 14px var(--red-glow);
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-text span { color: var(--red); }

/* Search */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  margin-bottom: 20px;
  transition: var(--t-fast);
}
.search-bar:focus-within {
  border-color: rgba(255,255,255,0.15);
}
.search-bar i { color: var(--text-tertiary); font-size: 12px; }
.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  font-size: 13px;
}
.search-bar input::placeholder { color: var(--text-tertiary); }

/* Nav section label */
.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-tertiary);
  padding: 0 8px;
  margin-bottom: 6px;
  margin-top: 8px;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-links li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--t-fast);
  font-weight: 500;
  font-size: 13.5px;
  position: relative;
  border: 1px solid transparent;
}
.nav-links li i {
  width: 16px;
  text-align: center;
  font-size: 13px;
}
.nav-links li:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}
.nav-links li.active {
  color: var(--text-primary);
  background: linear-gradient(90deg, rgba(225,6,0,0.12) 0%, transparent 100%);
  border-left: 2px solid var(--red);
  padding-left: 10px;
}
.nav-links li.active i { color: var(--red); }

.nav-pill {
  margin-left: auto;
  background: var(--red-dim);
  color: var(--red-bright);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}

.bottom-links { margin-top: auto; }

/* Sidebar footer / profile */
.sidebar-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
}
.avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, #6B00D4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.footer-name { font-size: 12.5px; font-weight: 500; }
.footer-role { font-size: 11px; color: var(--text-tertiary); }

/* =========================================
   MAIN CONTENT
   ========================================= */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* TOP BAR */
.top-bar {
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10,10,13,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.topbar-breadcrumb .sep { opacity: 0.4; }
.topbar-breadcrumb .current { color: var(--text-primary); font-weight: 600; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,230,118,0.07);
  border: 1px solid rgba(0,230,118,0.15);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 6px var(--green-glow); }
  50%       { box-shadow: 0 0 14px var(--green-glow), 0 0 28px var(--green-glow); }
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--t-fast);
  position: relative;
}
.icon-btn:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
}
.icon-btn .badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid var(--bg-dark);
  box-shadow: 0 0 6px var(--red-glow);
}

.profile-btn {
  background: linear-gradient(135deg, var(--red) 0%, #6B00D4 100%);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 0 12px rgba(225,6,0,0.3);
  transition: var(--t-fast);
}
.profile-btn:hover { transform: scale(1.05); }

/* =========================================
   VIEWS
   ========================================= */
.views-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.view {
  display: none;
  padding: 20px 24px;
  min-height: 100%;
  animation: fadeSlideUp 0.3s var(--t-normal) both;
}
.view.active { display: block; }

/* Calendar view fills the full container — no padding, no scroll on the outer shell */
#calendar-view {
  padding: 0;
  flex: 1;
  overflow: hidden;
}
#calendar-view.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   GLASS COMPONENTS
   ========================================= */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.glass-card:hover {
  border-color: rgba(255,255,255,0.11);
}

/* Glass Select */
.glass-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 10px 36px 10px 14px;
  border-radius: var(--r-sm);
  outline: none;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236060708' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: var(--t-fast);
}
.glass-select:focus {
  border-color: rgba(255,255,255,0.2);
  background-color: var(--bg-elevated);
}
.glass-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.glass-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* =========================================
   PRIMARY BUTTON
   ========================================= */
.btn-primary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--red);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--t-normal);
  box-shadow: 0 0 16px var(--red-dim), inset 0 0 0 0 var(--red);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-normal);
  z-index: 0;
}
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover:not(:disabled)::before { transform: scaleX(1); }
.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-red), inset 0 0 0 0 transparent;
}
.btn-primary:disabled {
  border-color: var(--glass-border);
  color: var(--text-tertiary);
  box-shadow: none;
  cursor: not-allowed;
}
.huge-cta { width: 100%; }

/* =========================================
   TELEMETRY LAYOUT
   ========================================= */
.telemetry-layout {
  display: grid;
  grid-template-columns: 268px 1fr 300px;
  grid-template-rows: 1fr;
  gap: 16px;
  min-height: calc(100vh - 64px - 40px);
}

/* CONTROL PANEL */
.control-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

/* DRIVER CARDS */
.driver-card {
  border-radius: var(--r-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(20,20,26,0.9), rgba(13,13,17,0.9));
  transition: var(--t-normal);
}
.driver-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--t-normal);
  pointer-events: none;
}
.driver-card.primary {
  border-color: rgba(54,113,198,0.4);
  box-shadow: 0 0 24px rgba(54,113,198,0.1);
}
.driver-card.primary::after {
  background: radial-gradient(ellipse at top, rgba(54,113,198,0.08) 0%, transparent 70%);
  opacity: 1;
}
.driver-card.comparison {
  border-color: rgba(249, 21, 54, 0.3);
}
.driver-card.comparison::after {
  background: radial-gradient(ellipse at top, rgba(249,21,54,0.08) 0%, transparent 70%);
  opacity: 1;
}
.driver-card.locked {
  opacity: 0.5;
  filter: grayscale(0.6);
  pointer-events: none;
}

.card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.driver-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.driver-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  font-style: italic;
  color: var(--red);
  line-height: 1;
  text-shadow: 0 0 20px var(--red-glow);
  flex-shrink: 0;
  width: 44px;
}
.driver-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e2a3a, #0d1117);
  border: 2px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-secondary);
  overflow: hidden;
}
.driver-img img { width: 100%; height: 100%; object-fit: cover; }
.driver-info { flex: 1; min-width: 0; }
.driver-name-text {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.driver-team-text {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.team-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}

.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

/* CENTER PANEL */
.center-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

/* Track Card */
.track-card {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}
.track-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.track-title-group {}
.track-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.track-season-pill {
  display: inline-block;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-top: 4px;
  font-family: var(--font-mono);
}
.track-actions { display: flex; gap: 6px; }

.track-canvas-container {
  width: 100%;
  height: 340px;
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}
#track-chart {
  width: 100% !important;
  height: 100% !important;
}

/* Insight Chips */
.track-legend {
  display: none;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 8px 14px;
  margin-top: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
}
.track-legend.visible { display: flex; }
.track-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.track-legend .legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.15);
}
.track-legend .legend-number {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-secondary);
}
.track-legend .legend-code {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-primary);
}
.track-legend .legend-team {
  font-size: 11px;
  color: var(--text-secondary);
}

.insight-chips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.insight-chips::-webkit-scrollbar { height: 0; }
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: var(--t-fast);
}
.chip::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex-shrink: 0;
}
.chip:nth-child(1)::before { background: var(--redbull); box-shadow: 0 0 6px rgba(54,113,198,0.6); }
.chip:nth-child(2)::before { background: var(--ferrari); box-shadow: 0 0 6px rgba(249,21,54,0.6); }
.chip:nth-child(3)::before { background: var(--mclaren); box-shadow: 0 0 6px rgba(255,128,0,0.6); }

/* Charts Container */
.charts-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.chart-card {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.chart-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.chart-legend {
  display: flex;
  gap: 12px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
}
.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.chart-wrapper {
  flex: 1;
  position: relative;
  min-height: 160px;
}
.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* RIGHT PANEL */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Standings Card */
.standings-card {
  padding: 18px 20px;
  flex-shrink: 0;
}
.standings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.standings-title {
  font-size: 15px;
  font-weight: 700;
}

.standing-row {
  display: grid;
  grid-template-columns: 28px 12px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--t-fast);
  border-radius: 6px;
  cursor: pointer;
}
.standing-row:last-child { border-bottom: none; }
.standing-row:hover { background: var(--glass-hover); padding: 9px 6px; margin: 0 -6px; }
.standing-row.active { background: rgba(225, 6, 0, 0.1); padding: 9px 6px; margin: 0 -6px; border-left: 2px solid var(--red); }
.standing-position {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}
.standing-position.top3 { color: var(--text-primary); }
.team-stripe {
  width: 3px;
  height: 18px;
  border-radius: 2px;
}
.standing-name {
  font-size: 13px;
  font-weight: 600;
}
.standing-gap {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
}
.standing-gap.leader { color: var(--green); font-weight: 700; }

/* Driver Meta Card */
.driver-meta-card {
  padding: 16px;
}
.driver-meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.driver-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.driver-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.08);
}
.driver-meta-info {}
.driver-meta-name { font-size: 13px; font-weight: 700; }
.driver-meta-team { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.vs-divider {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  padding: 4px 0;
}

/* =========================================
   NEWS / INSIGHTS LAYOUT
   ========================================= */
.news-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-spotlight {
  position: relative;
  height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 36px 40px;
  overflow: hidden;
  border-radius: var(--r-xl);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,13,0.95) 0%, rgba(10,10,13,0.5) 55%, rgba(10,10,13,0.15) 100%),
    url('https://images.unsplash.com/photo-1627626021644-8ea13a111a68?auto=format&fit=crop&q=80&w=1600')
    center/cover no-repeat;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red-bright);
  margin-bottom: 10px;
}
.hero-headline {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  transition: var(--t-fast);
  cursor: pointer;
}
.tag:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

/* Marquee Ribbon */
.insights-ribbon {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  overflow: hidden;
  gap: 16px;
}
.ribbon-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ribbon-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
  0%,100% { box-shadow: 0 0 6px var(--red-glow); }
  50%      { box-shadow: 0 0 14px var(--red-glow); }
}
.ribbon-divider {
  width: 1px;
  height: 18px;
  background: var(--glass-border);
  flex-shrink: 0;
}
.marquee-wrap { flex: 1; overflow: hidden; }
.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-size: 12.5px;
  color: var(--text-secondary);
}
@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.news-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.news-card-img {
  height: 170px;
  background: linear-gradient(135deg, #1a1a24, #0d0d14);
  position: relative;
  overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-team-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-card-body { padding: 16px 18px 18px; }
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.news-card-meta .dot { opacity: 0.4; }
.news-card h4 { font-size: 15px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.news-card p  { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.news-card.featured { border-color: var(--red); box-shadow: 0 0 20px var(--red-dim); }

/* News card source badge (bottom-right) */
.news-card-source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.news-card-source i { font-size: 10px; opacity: 0.6; }

/* Category badge on card */
.news-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(225, 6, 0, 0.15);
  border: 1px solid rgba(225, 6, 0, 0.25);
  color: var(--red-bright);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}

/* News Filter Bar */
.news-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.news-filter-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font-body);
}
.news-filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}
.news-filter-btn.active {
  background: var(--red-dim);
  border-color: rgba(225, 6, 0, 0.3);
  color: var(--red-bright);
}

/* Hero meta line */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.hero-meta .hero-source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--text-primary);
}
.hero-meta .hero-time {
  opacity: 0.7;
}

/* News loading state */
.news-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Source attribution */
.news-sources {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0;
  font-size: 11px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}
.news-sources span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.news-sources i { font-size: 10px; opacity: 0.5; }

/* No results state */
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-tertiary);
}
.news-empty i { font-size: 32px; margin-bottom: 12px; display: block; opacity: 0.3; }
.news-empty p { font-size: 13px; }

/* =========================================
   UTILITIES
   ========================================= */
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-secondary); }
.text-mono   { font-family: var(--font-mono); }
.text-sm     { font-size: 12px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.small       { font-size: 11px; }
.icon-btn.small { width: 28px; height: 28px; font-size: 11px; }

/* Loading state */
.loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
}

/* Mobile toggle */
.nav-toggle { display: none; background: transparent; border: none; color: var(--text-primary); font-size: 18px; }

/* Sidebar overlay — hidden on desktop, shown only via media query + .visible class */
.sidebar-overlay { display: none; }

/* =========================================
   ONBOARDING TUTORIAL
   ========================================= */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  transition: opacity var(--t-normal);
}
.tutorial-overlay.active { pointer-events: auto; }

.tutorial-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.88);
  transition: opacity var(--t-normal);
  opacity: 0;
}
.tutorial-overlay.active .tutorial-backdrop { opacity: 1; }

/* Bright spotlight cutout with animated glow ring */
.tutorial-spotlight {
  position: fixed;
  z-index: 9999;
  border-radius: var(--r-md);
  border: 2px solid rgba(255, 50, 40, 0.9);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.92),
    0 0 60px 12px rgba(225, 6, 0, 0.5),
    0 0 120px 30px rgba(225, 6, 0, 0.25),
    inset 0 0 50px 10px rgba(225, 6, 0, 0.1);
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  animation: spotlight-pulse 2s ease-in-out infinite;
}
@keyframes spotlight-pulse {
  0%, 100% {
    border-color: rgba(255, 50, 40, 0.9);
    box-shadow:
      0 0 0 9999px rgba(0, 0, 0, 0.92),
      0 0 60px 12px rgba(225, 6, 0, 0.5),
      0 0 120px 30px rgba(225, 6, 0, 0.25),
      inset 0 0 50px 10px rgba(225, 6, 0, 0.1);
  }
  50% {
    border-color: rgba(255, 80, 60, 1);
    box-shadow:
      0 0 0 9999px rgba(0, 0, 0, 0.92),
      0 0 80px 18px rgba(225, 6, 0, 0.6),
      0 0 160px 40px rgba(225, 6, 0, 0.3),
      inset 0 0 60px 14px rgba(225, 6, 0, 0.15);
  }
}

/* Class applied to the target element to make it pop */
.tutorial-highlight {
  position: relative;
  z-index: 9999 !important;
  filter: brightness(1.5) contrast(1.1) !important;
  transition: filter 0.3s ease !important;
}

/* Corner accents on spotlight */
.tutorial-spotlight::before,
.tutorial-spotlight::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #ff4030;
  border-style: solid;
}
.tutorial-spotlight::before {
  top: -3px; left: -3px;
  border-width: 3px 0 0 3px;
  border-radius: 5px 0 0 0;
}
.tutorial-spotlight::after {
  bottom: -3px; right: -3px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 5px 0;
}

.tutorial-card {
  position: fixed;
  z-index: 10000;
  width: 380px;
  background: linear-gradient(145deg, rgba(24, 24, 32, 0.98), rgba(12, 12, 16, 0.98));
  border: 1px solid rgba(225, 6, 0, 0.2);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 16px 56px rgba(0,0,0,0.8),
    0 0 1px rgba(225,6,0,0.3),
    0 0 40px rgba(225,6,0,0.06);
  transition: opacity 0.16s ease, transform 0.16s ease, top 0.45s cubic-bezier(0.4, 0, 0.2, 1), left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  animation: card-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes card-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tutorial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.8;
  border-radius: 1px;
}

/* Connector arrow from card to spotlight */
.tutorial-arrow {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.tutorial-arrow::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(225, 6, 0, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 12px 3px rgba(225, 6, 0, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tutorial-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 14px;
  background: rgba(225, 6, 0, 0.08);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(225, 6, 0, 0.15);
}
.tutorial-step-badge i { font-size: 11px; }

.tutorial-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
}

.tutorial-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Tip box inside card */
.tutorial-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.12);
  border-radius: var(--r-sm);
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(0, 230, 118, 0.85);
}
.tutorial-tip i {
  margin-top: 2px;
  font-size: 13px;
  flex-shrink: 0;
  color: var(--green);
}

.tutorial-progress {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
}
.tutorial-progress-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.tutorial-progress-dot.active {
  background: var(--red);
  box-shadow: 0 0 8px rgba(225, 6, 0, 0.5);
}
.tutorial-progress-dot.done { background: rgba(225,6,0,0.35); }

.tutorial-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tutorial-btn {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all var(--t-fast);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.tutorial-btn-next {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 20px rgba(225,6,0,0.35);
}
.tutorial-btn-next:hover {
  background: var(--red-bright);
  box-shadow: 0 0 30px rgba(225,6,0,0.55);
  transform: translateY(-1px);
}
.tutorial-btn-skip {
  background: transparent;
  color: var(--text-tertiary);
  padding: 9px 14px;
}
.tutorial-btn-skip:hover { color: var(--text-secondary); }
.tutorial-btn-back {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}
.tutorial-btn-back:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.tutorial-key-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.tutorial-key-hint kbd {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

/* Welcome screen — centered, larger */
.tutorial-card.welcome {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 440px;
  text-align: center;
}
.tutorial-card.welcome h3 { font-size: 28px; margin-bottom: 8px; }
.tutorial-card.welcome .tutorial-welcome-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}
.tutorial-card.welcome .tutorial-actions { justify-content: center; gap: 12px; }
.tutorial-welcome-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--red);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(225,6,0,0.2);
  animation: icon-glow 2.5s ease-in-out infinite;
}
@keyframes icon-glow {
  0%, 100% { box-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(225,6,0,0.2); }
  50% { box-shadow: 0 0 60px var(--red-glow), 0 0 120px rgba(225,6,0,0.3); transform: scale(1.03); }
}

/* Feature list inside welcome */
.tutorial-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
}
.tutorial-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.tutorial-feature-item i {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  flex-shrink: 0;
}
.tutorial-feature-item:nth-child(1) i { background: rgba(225,6,0,0.12); color: var(--red); }
.tutorial-feature-item:nth-child(2) i { background: rgba(54,113,198,0.12); color: var(--redbull); }
.tutorial-feature-item:nth-child(3) i { background: rgba(0,230,118,0.1); color: var(--green); }
.tutorial-feature-item:nth-child(4) i { background: rgba(255,128,0,0.1); color: var(--mclaren); }

/* Tutorial driver picker grid */
.tut-driver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 18px;
  text-align: left;
}
.tut-driver-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}
.tut-driver-chip:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.tut-driver-chip.selected {
  border-color: var(--chip-color, #E10600);
  background: color-mix(in srgb, var(--chip-color, #E10600) 12%, transparent);
  color: var(--text-primary);
}
.tut-driver-chip .tdc-code {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--chip-color, inherit);
}
.tut-driver-chip .tdc-name {
  font-size: 10px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .telemetry-layout {
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto auto;
  }
  .right-panel { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* ── Sidebar ── */
  .sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    bottom: 0;
    transition: left var(--t-normal);
    z-index: 50;
  }
  .sidebar.open { left: 0; }

  /* Overlay that closes sidebar on tap */
  .sidebar-overlay {
    display: block; /* override base display:none on mobile */
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-normal);
  }
  .sidebar-overlay.visible {
    opacity: 1;
    pointer-events: all;
  }

  /* ── Topbar ── */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .top-bar { padding: 0 12px; }
  .topbar-right { gap: 6px; }
  /* Hide less important topbar items on small screens */
  .status-pill { display: none; }

  /* ── Nav items — large tap targets ── */
  .nav-links li {
    padding: 12px 12px;
    min-height: 44px;
  }

  /* ── Main content ── */
  .main-content { width: 100%; }

  /* ── Views ── */
  .view { padding: 12px 12px; }

  /* ── Telemetry layout — single column, control → center → right ── */
  .telemetry-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
    min-height: unset;
  }
  .control-panel {
    width: 100%;
    order: 1;
    overflow-y: visible;
  }
  .center-panel { order: 2; }
  .right-panel {
    width: 100%;
    order: 3;
    overflow-y: visible;
  }

  /* ── Driver cards — full width ── */
  .driver-card { width: 100%; }

  /* ── Track canvas shorter on mobile ── */
  .track-canvas-container { height: 220px; }

  /* ── Charts — responsive height ── */
  .chart-wrapper canvas {
    max-width: 100%;
  }
  .chart-card { min-height: 180px; }
  .chart-wrapper { min-height: 120px; }

  /* ── Insight chips — allow wrap on mobile ── */
  .insight-chips { flex-wrap: wrap; }

  /* ── News grid — single column ── */
  .news-grid { grid-template-columns: 1fr; }

  /* ── News hero — shorter ── */
  .hero-spotlight {
    height: 260px;
    padding: 20px 18px;
  }
  .hero-headline { font-size: 22px; }

  /* ── Garage layout ── */
  .garage-layout { padding: 16px 12px; }
  .garage-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 16px;
  }
  .garage-hero-stats { flex-wrap: wrap; gap: 16px; }
  .garage-body { grid-template-columns: 1fr; }
  .garage-chart-wrap { height: 180px; }

  /* ── Results table — allow horizontal scroll ── */
  .garage-col { overflow-x: auto; padding: 14px 12px; }
  .garage-results-table { font-size: 0.78rem; }

  /* ── Tutorial — fully centered on mobile, no spotlight ── */
  .tutorial-card {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 92vw !important;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 22px 20px;
  }
  /* Welcome/setup steps get a bit more width */
  .tutorial-card.welcome {
    width: 92vw !important;
    max-width: 420px;
  }
  /* Hide spotlight, arrow and step connector — nothing to point at on mobile */
  .tutorial-spotlight,
  .tutorial-arrow { display: none !important; }
  .tutorial-key-hint { display: none; }
  /* Driver grid fits mobile */
  .tut-driver-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .tdc-code { font-size: 13px; }
  .tdc-name { font-size: 9px; }

  /* ── Profile drawer ── */
  .pd-panel {
    width: 100% !important;
    max-width: 100%;
  }

  /* ── Font size / spacing adjustments ── */
  html { font-size: 13px; }
  .track-name { font-size: 16px; }
  .standings-title { font-size: 13px; }
  .hero-headline { font-size: 22px; }
}

/* ============================================================
   EXTRA-SMALL PHONES (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Topbar breadcrumb — shorten */
  .topbar-breadcrumb > span:first-child { display: none; }
  .topbar-breadcrumb .sep { display: none; }

  /* Icon buttons in topbar — hide less essential ones */
  .top-bar .icon-btn:nth-child(2) { display: none; }

  /* Driver number — reduce size */
  .driver-num { font-size: 28px; }

  /* Track canvas */
  .track-canvas-container { height: 180px; }

  /* News hero */
  .hero-spotlight { height: 200px; padding: 16px 14px; }
  .hero-headline { font-size: 18px; }

  /* Garage hero */
  .garage-hero-number { font-size: 2rem; }
  .garage-hero-name { font-size: 1.1rem; }

  /* Onboarding step labels — hide text, keep number bubbles */
  .ob-step > span + * { display: none; }
  .ob-step-line { max-width: 28px; }
  .onboarding-header { padding: 20px 16px 14px; }
  .onboarding-footer { padding: 12px 16px; }
  .onboarding-step-panel { padding: 14px 14px; }

  /* Select elements — larger tap area */
  .glass-select { padding: 12px 36px 12px 14px; font-size: 14px; }

  /* CTA button */
  .btn-primary.huge-cta { padding: 14px 24px; font-size: 14px; }

  /* News filter bar — horizontal scroll */
  .news-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .news-filters::-webkit-scrollbar { height: 0; }
  .news-filter-btn { flex-shrink: 0; }

  /* Tutorial card */
  .tutorial-card {
    width: 92vw !important;
    padding: 18px 16px;
  }
  .tutorial-card h3 { font-size: 16px; }
  .tutorial-card p { font-size: 12.5px; }
}

/* ============================================================
   MY GARAGE
   ============================================================ */

.garage-layout {
  padding: 28px 32px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Anonymous / no-favorite state */
.garage-anon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 60vh;
  text-align: center;
}

.garage-anon-icon {
  font-size: 3rem;
  color: var(--text-tertiary);
}

.garage-anon h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 0;
}

.garage-anon p {
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0;
}

.garage-anon-btn {
  background: var(--red);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--font-display);
  transition: opacity var(--t-fast);
}

.garage-anon-btn:hover { opacity: 0.85; }

/* Hero */
.garage-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--team-color, var(--red));
  border-radius: var(--r-lg);
  padding: 24px 28px;
}

.garage-hero-photo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.garage-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.garage-hero-initials {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: 50%;
}

.garage-hero-info {
  flex: 1;
}

.garage-hero-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.garage-hero-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.garage-hero-team {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
}

.garage-hero-stats {
  display: flex;
  gap: 28px;
}

.garage-stat {
  text-align: center;
}

.garage-stat-label {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.garage-stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Body grid */
.garage-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
}

.garage-col {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}

.garage-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.garage-section-empty {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  padding: 20px 0;
}

.garage-loading {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  animation: pulse 1.4s ease-in-out infinite;
}

/* Results table */
.garage-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.garage-results-table th {
  color: var(--text-tertiary);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 0 8px 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.garage-results-table td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
}

.rt-round { color: var(--text-tertiary); font-size: 0.75rem; }
.rt-race  { color: var(--text-primary); }

.rt-pos-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.pos-win    { background: #FFD70022; color: #FFD700; }
.pos-podium { background: #C0C0C022; color: #C0C0C0; }
.pos-points { background: #00E67622; color: #00E676; }
.pos-out    { background: var(--bg-elevated); color: var(--text-tertiary); }

.rt-pts { color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* Chart */
.garage-chart-wrap {
  position: relative;
  height: 220px;
}

/* Rows at the bottom */
.garage-row {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}

.garage-telem-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.garage-telem-btn:hover {
  border-color: var(--red);
  background: var(--red-dim);
}

/* News cards */
.garage-news-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: border-color var(--t-fast);
}

.garage-news-card:hover { border-color: rgba(255,255,255,0.15); }
.garage-news-card:last-child { margin-bottom: 0; }

.gnc-meta {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 5px;
}

.gnc-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ============================================================
   CALENDAR v2 — Globe + List layout
   ============================================================ */

.calendar-layout {
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.cal2-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  height: 100%;
  min-height: calc(100vh - 60px);
}

/* Globe panel */
.cal2-globe-panel {
  position: relative;
  background: #020208;
  overflow: hidden;
  min-height: 500px;
}

#cal2-globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#cal2-globe canvas {
  display: block;
}

#cal2-globe canvas {
  display: block;
}

.cal2-globe-overlay {
  position: absolute;
  top: 20px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.cal2-season-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(10,10,13,0.82);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.cal2-next-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225,6,0,0.15);
  border: 1px solid rgba(225,6,0,0.4);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-bright);
  backdrop-filter: blur(8px);
}

.cal2-next-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  animation: calPulse 1.1s ease-in-out infinite;
  flex-shrink: 0;
}

/* Track info panel */
#cal2-track-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(8,8,12,0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: all;
  z-index: 100; /* above globe.gl HTML elements */
}
#cal2-track-panel.ctp-visible { transform: translateY(0); }
.ctp-header { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.4rem; user-select: none; }
.ctp-header:hover { background: rgba(255,255,255,0.02); }
.ctp-flag { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.ctp-title-wrap { flex: 1; min-width: 0; }
.ctp-name { font-size: 1.05rem; font-weight: 700; color: #F0F0F5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctp-circuit { font-size: 0.78rem; color: #9090A8; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctp-status { font-size: 0.72rem; font-weight: 700; padding: 4px 11px; border-radius: 20px; border: 1px solid; letter-spacing: 0.05em; text-transform: uppercase; flex-shrink: 0; }
.ctp-toggle-btn { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #9090A8; cursor: pointer; padding: 6px 8px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.ctp-toggle-btn:hover { background: rgba(255,255,255,0.12); color: #F0F0F5; }
.ctp-chevron { width: 18px; height: 18px; transition: transform 0.3s ease; }
#cal2-track-panel.ctp-collapsed .ctp-chevron { transform: rotate(180deg); }

/* Collapsible body */
.ctp-body { overflow: hidden; max-height: 360px; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
#cal2-track-panel.ctp-collapsed .ctp-body { max-height: 0; }
.ctp-inner { display: flex; gap: 1.25rem; padding: 0 1.4rem 1.25rem; }

/* Track SVG area */
.ctp-track-wrap { flex-shrink: 0; width: 240px; height: 170px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ctp-track-svg { width: 100%; height: 100%; }
.ctp-track-loading { font-size: 0.72rem; color: #555568; }

.ctp-stats { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; align-content: start; }
.ctp-stat { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 0.65rem 0.8rem; text-align: center; }
.ctp-stat--record { grid-column: span 2; text-align: left; }
.ctp-stat-val { font-size: 1rem; font-weight: 700; color: #F0F0F5; }
.ctp-stat-label { font-size: 0.67rem; color: #9090A8; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }

.cal2-globe-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: rgba(144,144,168,0.55);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* List panel */
.cal2-list-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  border-left: 1px solid var(--glass-border);
  overflow: hidden;
}

.cal2-list-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.cal2-list-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.cal2-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.cal2-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.cal2-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) transparent;
}

/* Race cards */
.cal2-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: background var(--t-fast);
  outline: none;
}

.cal2-card:hover { background: var(--glass-hover); }

.cal2-card--selected {
  background: rgba(225,6,0,0.07) !important;
  border-left: 2px solid var(--red);
}

.cal2-card--next {
  background: rgba(225,6,0,0.04);
}

.cal2-card--done {
  opacity: 0.55;
}
.cal2-card--done:hover { opacity: 0.8; }

.cal2-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal2-card-flag {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.cal2-card-body {
  flex: 1;
  min-width: 0;
}

.cal2-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal2-card-circuit {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal2-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.cal2-card-round {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-weight: 700;
}

.cal2-card-date {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Pills */
.cal2-pill {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal2-pill--next      { background: var(--red-dim); color: var(--red-bright); border: 1px solid rgba(225,6,0,0.4); }
.cal2-pill--live      { background: rgba(0,230,118,0.12); color: var(--green); border: 1px solid rgba(0,230,118,0.35); }
.cal2-pill--done      { background: var(--bg-elevated); color: var(--text-tertiary); }
.cal2-pill--upcoming  { background: var(--bg-elevated); color: var(--text-tertiary); }
.cal2-pill--suspended { background: rgba(255,107,0,0.12); color: #FF6B00; border: 1px solid rgba(255,107,0,0.35); }

.cal2-card--suspended {
  opacity: 0.55;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(255,107,0,0.04) 6px,
    rgba(255,107,0,0.04) 12px
  );
}
.cal2-card--suspended:hover { opacity: 0.8; }

.cal2-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: calPulse 1.1s ease-in-out infinite;
}

@keyframes calPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@media (max-width: 900px) {
  .cal2-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh 1fr;
  }
  .cal2-list-panel {
    border-left: none;
    border-top: 1px solid var(--glass-border);
  }
}

/* ─── Profile Drawer ───────────────────────────────────────────────────────── */
#profile-drawer { position: fixed; inset: 0; z-index: 1100; pointer-events: none; }
#profile-drawer.pd-open { pointer-events: all; }
.pd-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.25s; }
#profile-drawer.pd-open .pd-backdrop { background: rgba(0,0,0,0.55); }
.pd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 320px; background: #12121A; border-left: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); overflow-y: auto; }
#profile-drawer.pd-open .pd-panel { transform: translateX(0); }
.pd-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.pd-title { font-weight: 700; font-size: 1.05rem; color: #F0F0F5; }
.pd-close { background: none; border: none; color: #9090A8; cursor: pointer; font-size: 1.1rem; padding: 4px 8px; border-radius: 6px; }
.pd-close:hover { background: rgba(255,255,255,0.06); color: #F0F0F5; }
.pd-identity { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pd-avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.pd-name { font-weight: 600; color: #F0F0F5; font-size: 0.95rem; }
.pd-email { font-size: 0.78rem; color: #9090A8; margin-top: 2px; }
.pd-section { padding: 1rem 1.25rem 0; }
.pd-actions { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; }
.pd-full-btn { width: 100%; text-align: center; }
.pd-anon { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.25rem; gap: 1rem; }
.pd-anon-icon { font-size: 3rem; color: #444455; }
.pd-anon p { color: #9090A8; font-size: 0.9rem; }

/* ─── Profile Page (legacy) ────────────────────────────────────────────────── */
#profile-content { height: 100%; overflow-y: auto; padding: 2rem 1rem; }
.profile-page { max-width: 540px; margin: 0 auto; }
.profile-page-header { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; margin-bottom: 1.5rem; }
.pp-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.pp-name { font-size: 1.25rem; font-weight: 700; color: #F0F0F5; }
.pp-email { font-size: 0.82rem; color: #9090A8; margin-top: 2px; }
.pp-guest-badge { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 20px; background: rgba(255,135,0,0.15); color: #FF8700; font-size: 0.75rem; font-weight: 600; }
.pp-auth-badge { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 20px; background: rgba(0,200,100,0.12); color: #00C864; font-size: 0.75rem; font-weight: 600; }
.pp-section { margin-bottom: 1.25rem; }
.pp-section-title { font-size: 0.72rem; font-weight: 600; color: #9090A8; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6rem; }
.pd-name-edit { display: flex; gap: 0.5rem; }
.pd-name-input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 0.5rem 0.75rem; color: #F0F0F5; font-size: 0.9rem; outline: none; }
.pd-name-input:focus { border-color: rgba(255,255,255,0.3); }
.pd-name-save { background: #E10600; border: none; border-radius: 8px; color: #fff; padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity 0.2s; }
.pd-name-save:hover { opacity: 0.85; }
.pd-name-save:disabled { opacity: 0.5; cursor: default; }
.pp-fav-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: rgba(255,255,255,0.03); border: 1px solid color-mix(in srgb, var(--team-color, #E10600) 20%, transparent); border-radius: 12px; }
.pp-fav-num { font-size: 2rem; font-weight: 800; line-height: 1; min-width: 2.5rem; }
.pp-fav-name { font-size: 1rem; font-weight: 600; color: #F0F0F5; }
.pp-fav-team { font-size: 0.8rem; color: #9090A8; margin-top: 2px; }
.pp-team-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.pp-empty { color: #9090A8; font-size: 0.9rem; }
.pp-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.pp-signin-prompt { background: none; border: 1px solid rgba(255,255,255,0.15); color: #9090A8; padding: 0.7rem 1.5rem; border-radius: 10px; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.pp-signin-prompt:hover { border-color: #E10600; color: #F0F0F5; }
.profile-page-anon { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; gap: 1rem; }
.profile-anon-icon { font-size: 4rem; color: #444455; }
.profile-anon-actions { display: flex; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; justify-content: center; }
