/**
 * RaceCrew Design System v3.0
 * Unified glassmorphism dark theme based on the Connection Page aesthetic
 * 
 * Design Reference: /remote-garage/connection (login.html)
 * Colors: Orange (#f15a24) + Fucsia (#FF00FF) on dark (#050505)
 * Style: Glassmorphism, blur effects, glow accents
 */

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS (CSS Custom Properties)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand Colors ── */
  --rc-orange: #f15a24;
  --rc-orange-dark: #d94f1f;
  --rc-orange-light: #ff7a4a;
  --rc-fucsia: #FF00FF;
  --rc-fucsia-muted: rgba(255, 0, 255, 0.6);

  /* ── Semantic Colors ── */
  --rc-success: #00ff88;
  --rc-success-muted: rgba(0, 255, 136, 0.15);
  --rc-danger: #ff3232;
  --rc-danger-muted: rgba(255, 50, 50, 0.1);
  --rc-warning: #ffcc00;
  --rc-warning-muted: rgba(255, 204, 0, 0.15);
  --rc-info: #64B4FF;
  --rc-info-muted: rgba(100, 180, 255, 0.08);
  --rc-discord: #5865F2;

  /* ── Background Scale ── */
  --rc-bg-deepblack: #030303;
  --rc-bg-darker: #050505;
  --rc-bg-dark: #0a0a0a;
  --rc-bg-card: #111111;
  --rc-bg-elevated: #1a1a1a;
  --rc-bg-input: rgba(15, 15, 15, 0.6);
  --rc-bg-input-focus: rgba(20, 20, 20, 0.8);

  /* ── Glass Effect ── */
  --rc-glass-bg: rgba(26, 26, 26, 0.7);
  --rc-glass-bg-solid: rgba(26, 26, 26, 0.9);
  --rc-glass-border: rgba(255, 255, 255, 0.1);
  --rc-glass-border-hover: rgba(255, 255, 255, 0.2);
  --rc-glass-blur: blur(20px);
  --rc-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --rc-glass-glow: 0 0 80px rgba(241, 90, 36, 0.1);

  /* ── Text Colors ── */
  --rc-text-primary: #ffffff;
  --rc-text-secondary: #cccccc;
  --rc-text-muted: #999999;
  --rc-text-faint: #666666;
  --rc-text-disabled: #555555;

  /* ── Typography ── */
  --rc-font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --rc-font-mono: 'Courier New', 'SF Mono', monospace;
  --rc-font-racing: 'Rajdhani', 'Orbitron', var(--rc-font-family);

  /* ── Spacing Scale ── */
  --rc-space-xs: 4px;
  --rc-space-sm: 8px;
  --rc-space-md: 16px;
  --rc-space-lg: 24px;
  --rc-space-xl: 32px;
  --rc-space-2xl: 48px;
  --rc-space-3xl: 64px;
  --rc-space-4xl: 80px;

  /* ── Border Radius ── */
  --rc-radius-sm: 6px;
  --rc-radius-md: 12px;
  --rc-radius-lg: 16px;
  --rc-radius-xl: 24px;
  --rc-radius-full: 9999px;

  /* ── Transitions ── */
  --rc-transition-fast: 0.15s ease;
  --rc-transition-base: 0.3s ease;
  --rc-transition-slow: 0.5s ease;

  /* ── Z-index Scale ── */
  --rc-z-base: 1;
  --rc-z-elevated: 10;
  --rc-z-nav: 100;
  --rc-z-modal: 1000;
  --rc-z-toast: 2000;

  /* ── Layout ── */
  --rc-container-max: 1200px;
  --rc-container-narrow: 900px;
  --rc-container-wide: 1400px;
  --rc-navbar-height: 72px;
}


/* ═══════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--rc-font-family);
  background: var(--rc-bg-darker);
  color: var(--rc-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}


/* ═══════════════════════════════════════════════════════════════
   3. ANIMATED BACKGROUND
   ═══════════════════════════════════════════════════════════════ */

.rc-animated-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(241, 90, 36, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.08) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: rc-bg-pulse 8s ease-in-out infinite;
}

@keyframes rc-bg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}


/* ═══════════════════════════════════════════════════════════════
   4. LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════ */

.rc-container {
  width: 100%;
  max-width: var(--rc-container-max);
  margin: 0 auto;
  padding: 0 var(--rc-space-lg);
}

.rc-container--narrow {
  max-width: var(--rc-container-narrow);
}

.rc-container--wide {
  max-width: var(--rc-container-wide);
}

.rc-section {
  padding: var(--rc-space-4xl) 0;
  position: relative;
  z-index: var(--rc-z-base);
}

.rc-section--compact {
  padding: var(--rc-space-3xl) 0;
}

.rc-section--tinted {
  background: linear-gradient(135deg,
    rgba(241, 90, 36, 0.05) 0%,
    rgba(255, 0, 255, 0.03) 100%);
}

/* Flexbox */
.rc-flex { display: flex; }
.rc-flex-col { display: flex; flex-direction: column; }
.rc-flex-center { display: flex; align-items: center; justify-content: center; }
.rc-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rc-flex-wrap { flex-wrap: wrap; }
.rc-gap-xs { gap: var(--rc-space-xs); }
.rc-gap-sm { gap: var(--rc-space-sm); }
.rc-gap-md { gap: var(--rc-space-md); }
.rc-gap-lg { gap: var(--rc-space-lg); }
.rc-gap-xl { gap: var(--rc-space-xl); }

/* Grid */
.rc-grid {
  display: grid;
  gap: var(--rc-space-lg);
}

.rc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.rc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.rc-grid-12 { grid-template-columns: repeat(12, 1fr); }

/* Text alignment */
.rc-text-center { text-align: center; }
.rc-text-left { text-align: left; }
.rc-text-right { text-align: right; }


/* ═══════════════════════════════════════════════════════════════
   5. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

.rc-heading-xl {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.rc-heading-lg {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.rc-heading-md {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
}

.rc-heading-sm {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.rc-text-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--rc-text-secondary);
}

.rc-text-sm {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--rc-text-muted);
}

.rc-text-xs {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--rc-text-faint);
}

.rc-text-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rc-orange);
}

.rc-text-gradient {
  background: linear-gradient(135deg, #fff, var(--rc-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rc-text-orange { color: var(--rc-orange); }
.rc-text-muted { color: var(--rc-text-muted); }
.rc-text-faint { color: var(--rc-text-faint); }


/* ═══════════════════════════════════════════════════════════════
   6. GLASS CARD — Core Component
   ═══════════════════════════════════════════════════════════════ */

.rc-glass {
  background: var(--rc-glass-bg);
  backdrop-filter: var(--rc-glass-blur);
  -webkit-backdrop-filter: var(--rc-glass-blur);
  border: 1px solid var(--rc-glass-border);
  border-radius: var(--rc-radius-xl);
  box-shadow: var(--rc-glass-shadow), var(--rc-glass-glow);
  overflow: hidden;
  transition: border-color var(--rc-transition-base),
              transform var(--rc-transition-base),
              box-shadow var(--rc-transition-base);
}

.rc-glass:hover {
  border-color: var(--rc-glass-border-hover);
}

.rc-glass--interactive:hover {
  border-color: var(--rc-orange);
  transform: translateY(-4px);
  box-shadow:
    var(--rc-glass-shadow),
    0 0 40px rgba(241, 90, 36, 0.15);
}

.rc-glass--highlighted {
  border-color: var(--rc-orange);
  box-shadow:
    var(--rc-glass-shadow),
    0 0 60px rgba(241, 90, 36, 0.2);
}

.rc-glass--compact {
  border-radius: var(--rc-radius-lg);
  padding: var(--rc-space-lg);
}

.rc-glass-header {
  background: linear-gradient(135deg,
    rgba(20, 20, 20, 0.9) 0%,
    rgba(10, 10, 10, 0.95) 100%);
  border-bottom: 2px solid var(--rc-orange);
  padding: var(--rc-space-2xl) var(--rc-space-xl) var(--rc-space-xl);
  text-align: center;
}

.rc-glass-body {
  padding: var(--rc-space-xl) var(--rc-space-xl) var(--rc-space-2xl);
}

/* Glass card padding utility */
.rc-glass[data-pad="sm"] { padding: var(--rc-space-md); }
.rc-glass[data-pad="md"] { padding: var(--rc-space-xl); }
.rc-glass[data-pad="lg"] { padding: var(--rc-space-2xl); }
.rc-glass[data-pad="xl"] { padding: var(--rc-space-3xl); }


/* ═══════════════════════════════════════════════════════════════
   7. NAVBAR
   ═══════════════════════════════════════════════════════════════ */

.rc-navbar {
  position: sticky;
  top: 0;
  z-index: var(--rc-z-nav);
  height: var(--rc-navbar-height);
  background: var(--rc-glass-bg-solid);
  backdrop-filter: var(--rc-glass-blur);
  -webkit-backdrop-filter: var(--rc-glass-blur);
  border-bottom: 1px solid var(--rc-glass-border);
}

.rc-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--rc-container-max);
  margin: 0 auto;
  padding: 0 var(--rc-space-lg);
}

.rc-navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--rc-space-sm);
}

.rc-navbar__brand img {
  height: 40px;
  filter: drop-shadow(0 2px 10px rgba(241, 90, 36, 0.3));
}

.rc-navbar__brand span {
  color: var(--rc-orange);
  font-weight: 700;
  font-size: 1.5rem;
}

.rc-navbar__links {
  display: flex;
  align-items: center;
  gap: var(--rc-space-xl);
}

.rc-navbar__link {
  color: var(--rc-text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--rc-transition-fast);
  position: relative;
}

.rc-navbar__link:hover,
.rc-navbar__link--active {
  color: var(--rc-orange);
}

.rc-navbar__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rc-orange);
  border-radius: 1px;
}

.rc-navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--rc-space-sm);
}

/* Mobile hamburger */
.rc-navbar__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--rc-radius-sm);
}

.rc-navbar__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rc-text-primary);
  position: relative;
  transition: var(--rc-transition-fast);
}

.rc-navbar__toggle span::before,
.rc-navbar__toggle span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  left: 0;
}

.rc-navbar__toggle span::before { top: -6px; }
.rc-navbar__toggle span::after { top: 6px; }

/* Mobile nav panel */
.rc-navbar__mobile {
  display: none;
  position: fixed;
  top: var(--rc-navbar-height);
  left: 0;
  right: 0;
  background: var(--rc-bg-dark);
  border-bottom: 1px solid var(--rc-glass-border);
  padding: var(--rc-space-lg);
  flex-direction: column;
  gap: var(--rc-space-md);
  z-index: var(--rc-z-nav);
}

.rc-navbar__mobile.is-open {
  display: flex;
}


/* ═══════════════════════════════════════════════════════════════
   8. BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rc-space-sm);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 24px;
  border-radius: var(--rc-radius-md);
  transition: all var(--rc-transition-base);
  white-space: nowrap;
  line-height: 1;
}

.rc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Primary — Orange gradient */
.rc-btn--primary {
  background: linear-gradient(135deg, var(--rc-orange) 0%, var(--rc-orange-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(241, 90, 36, 0.3);
}

.rc-btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(241, 90, 36, 0.5);
  filter: brightness(1.1);
}

.rc-btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Secondary — Ghost */
.rc-btn--secondary {
  background: rgba(50, 50, 50, 0.5);
  border: 1px solid var(--rc-glass-border);
  color: var(--rc-text-secondary);
}

.rc-btn--secondary:hover:not(:disabled) {
  background: rgba(60, 60, 60, 0.7);
  border-color: var(--rc-orange);
  color: #fff;
}

/* Outline */
.rc-btn--outline {
  background: transparent;
  border: 2px solid var(--rc-orange);
  color: var(--rc-orange);
}

.rc-btn--outline:hover:not(:disabled) {
  background: var(--rc-orange);
  color: #fff;
}

/* Discord */
.rc-btn--discord {
  background: var(--rc-discord);
  color: #fff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.rc-btn--discord:hover:not(:disabled) {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
}

/* Telemetry CTA — Animated gradient */
.rc-btn--telemetry {
  background: linear-gradient(135deg, var(--rc-orange), var(--rc-fucsia));
  color: #fff;
  position: relative;
  overflow: hidden;
  animation: rc-btn-telemetry-glow 2s ease-in-out infinite;
}

@keyframes rc-btn-telemetry-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(241, 90, 36, 0.4); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 255, 0.6); }
}

.rc-btn--telemetry::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: rc-shimmer 2s infinite;
}

@keyframes rc-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Size variants */
.rc-btn--sm {
  font-size: 0.75rem;
  padding: 10px 16px;
  letter-spacing: 1px;
}

.rc-btn--lg {
  font-size: 1rem;
  padding: 18px 32px;
}

.rc-btn--full {
  width: 100%;
}

/* Danger */
.rc-btn--danger {
  background: rgba(255, 50, 50, 0.15);
  border: 1px solid var(--rc-danger);
  color: var(--rc-danger);
}

.rc-btn--danger:hover:not(:disabled) {
  background: rgba(255, 50, 50, 0.3);
}

/* Success */
.rc-btn--success {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--rc-success);
  color: var(--rc-success);
}

.rc-btn--success:hover:not(:disabled) {
  background: rgba(0, 255, 136, 0.3);
}


/* ═══════════════════════════════════════════════════════════════
   9. FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════ */

.rc-input {
  background: var(--rc-bg-input);
  border: 1.5px solid var(--rc-glass-border);
  color: var(--rc-text-primary);
  border-radius: var(--rc-radius-md);
  padding: 14px 18px;
  font-size: 0.9375rem;
  width: 100%;
  transition: all var(--rc-transition-base);
}

.rc-input:focus {
  background: var(--rc-bg-input-focus);
  border-color: var(--rc-orange);
  box-shadow:
    0 0 0 4px rgba(241, 90, 36, 0.1),
    0 4px 20px rgba(241, 90, 36, 0.2);
  color: #fff;
  outline: none;
}

.rc-input::placeholder {
  color: var(--rc-text-faint);
}

.rc-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rc-input--error {
  border-color: var(--rc-danger);
}

.rc-input--error:focus {
  box-shadow: 0 0 0 4px rgba(255, 50, 50, 0.1);
}

/* Label */
.rc-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rc-orange);
  margin-bottom: 10px;
}

/* Field group */
.rc-field {
  margin-bottom: var(--rc-space-lg);
}

.rc-field__hint {
  font-size: 0.8125rem;
  color: var(--rc-text-faint);
  margin-top: var(--rc-space-sm);
}

.rc-field__error {
  font-size: 0.8125rem;
  color: var(--rc-danger);
  font-weight: 500;
  margin-top: var(--rc-space-xs);
}

/* Select */
.rc-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Checkbox */
.rc-checkbox {
  display: flex;
  align-items: center;
  gap: var(--rc-space-sm);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--rc-text-muted);
}


/* ═══════════════════════════════════════════════════════════════
   10. BADGES & TAGS
   ═══════════════════════════════════════════════════════════════ */

.rc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--rc-radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rc-badge--online {
  background: linear-gradient(135deg, var(--rc-success), #00cc66);
  color: #000;
}

.rc-badge--popular {
  background: linear-gradient(135deg, var(--rc-orange), var(--rc-fucsia));
  color: #fff;
  animation: rc-badge-glow 2s ease-in-out infinite;
}

@keyframes rc-badge-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(241, 90, 36, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 0, 255, 0.5); }
}

.rc-badge--pro {
  background: var(--rc-orange);
  color: #fff;
}


/* ═══════════════════════════════════════════════════════════════
   11. ALERTS
   ═══════════════════════════════════════════════════════════════ */

.rc-alert {
  border-radius: var(--rc-radius-md);
  border: 1px solid;
  padding: 14px 18px;
  font-size: 0.875rem;
}

.rc-alert--danger {
  background: var(--rc-danger-muted);
  border-color: var(--rc-danger);
  color: #ff6666;
}

.rc-alert--info {
  background: var(--rc-info-muted);
  border-color: var(--rc-info);
  color: var(--rc-info);
}

.rc-alert--success {
  background: var(--rc-success-muted);
  border-color: var(--rc-success);
  color: var(--rc-success);
}

.rc-alert--warning {
  background: var(--rc-warning-muted);
  border-color: var(--rc-warning);
  color: var(--rc-warning);
}


/* ═══════════════════════════════════════════════════════════════
   12. SEPARATOR
   ═══════════════════════════════════════════════════════════════ */

.rc-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--rc-space-xl) 0;
}

.rc-separator::before,
.rc-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--rc-glass-border);
}

.rc-separator span {
  padding: 0 var(--rc-space-md);
  color: var(--rc-text-faint);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ═══════════════════════════════════════════════════════════════
   13. SECTION TITLES
   ═══════════════════════════════════════════════════════════════ */

.rc-section-title {
  color: var(--rc-text-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--rc-space-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rc-section-title i {
  color: var(--rc-orange);
  font-size: 1rem;
}


/* ═══════════════════════════════════════════════════════════════
   14. HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.rc-hero {
  text-align: center;
  padding: var(--rc-space-4xl) var(--rc-space-lg);
  position: relative;
  z-index: var(--rc-z-base);
}

.rc-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--rc-space-lg);
}

.rc-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--rc-text-muted);
  max-width: 700px;
  margin: 0 auto var(--rc-space-2xl);
  line-height: 1.6;
}

.rc-hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--rc-space-md);
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════
   15. PRICING CARDS
   ═══════════════════════════════════════════════════════════════ */

.rc-pricing {
  padding: var(--rc-space-2xl);
  transition: all var(--rc-transition-base);
}

.rc-pricing:hover {
  border-color: var(--rc-orange);
  transform: translateY(-10px);
  box-shadow:
    var(--rc-glass-shadow),
    0 20px 60px rgba(241, 90, 36, 0.2);
}

.rc-pricing--featured {
  border-color: var(--rc-orange);
  transform: scale(1.05);
  box-shadow:
    var(--rc-glass-shadow),
    0 0 60px rgba(241, 90, 36, 0.3);
}

.rc-pricing--featured:hover {
  transform: scale(1.07);
}

.rc-pricing__price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--rc-orange);
}

.rc-pricing__period {
  color: var(--rc-text-muted);
}

.rc-pricing__features {
  margin-bottom: var(--rc-space-xl);
}

.rc-pricing__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--rc-text-secondary);
  line-height: 1.5;
}

.rc-pricing__feature i {
  flex-shrink: 0;
  margin-top: 2px;
}

.rc-pricing__feature--disabled {
  opacity: 0.4;
}

.rc-pricing__feature .fa-check { color: var(--rc-success); }
.rc-pricing__feature .fa-times { color: var(--rc-danger); }


/* ═══════════════════════════════════════════════════════════════
   16. FOOTER
   ═══════════════════════════════════════════════════════════════ */

.rc-footer {
  background: var(--rc-glass-bg);
  backdrop-filter: var(--rc-glass-blur);
  -webkit-backdrop-filter: var(--rc-glass-blur);
  border-top: 1px solid var(--rc-glass-border);
  padding: var(--rc-space-3xl) 0 var(--rc-space-xl);
  position: relative;
  z-index: var(--rc-z-base);
}

.rc-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rc-space-xl);
  margin-bottom: var(--rc-space-2xl);
}

.rc-footer__heading {
  color: var(--rc-orange);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--rc-space-md);
}

.rc-footer__link {
  display: block;
  padding: 6px 0;
  color: var(--rc-text-muted);
  font-size: 0.875rem;
  transition: color var(--rc-transition-fast);
}

.rc-footer__link:hover {
  color: var(--rc-orange);
}

.rc-footer__divider {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--rc-space-lg);
}

.rc-footer__copyright {
  text-align: center;
  color: var(--rc-text-faint);
  font-size: 0.8125rem;
}


/* ═══════════════════════════════════════════════════════════════
   17. DATA DISPLAY — Dashboard Panels
   ═══════════════════════════════════════════════════════════════ */

/* Panel (replaces MoTeC-style .panel) */
.rc-panel {
  position: relative;
  overflow: hidden;
  transition: all var(--rc-transition-base);
}

.rc-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rc-orange), transparent);
  opacity: 0;
  transition: opacity var(--rc-transition-base);
}

.rc-panel:hover::before {
  opacity: 1;
}

.rc-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--rc-space-sm);
  margin-bottom: var(--rc-space-md);
  border-bottom: 1px solid var(--rc-glass-border);
}

.rc-panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--rc-orange);
  text-transform: uppercase;
}

.rc-panel-subtitle {
  font-size: 0.625rem;
  color: var(--rc-text-faint);
  font-weight: 500;
}

/* Metric display */
.rc-metric {
  text-align: center;
}

.rc-metric__label {
  font-size: 0.625rem;
  color: var(--rc-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.rc-metric__value {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--rc-font-racing);
  color: var(--rc-text-primary);
  transition: all 0.2s ease-out;
}

.rc-metric__value--lg {
  font-size: 3rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(241, 90, 36, 0.3);
}

.rc-metric__unit {
  font-size: 0.875rem;
  color: var(--rc-text-muted);
  margin-left: 4px;
}

/* Metric grid */
.rc-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

/* Gear display */
.rc-gear {
  width: 120px;
  height: 120px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--rc-orange);
  border-radius: var(--rc-radius-md);
  background: radial-gradient(circle, rgba(241, 90, 36, 0.15) 0%, transparent 70%);
  box-shadow:
    0 0 30px rgba(241, 90, 36, 0.2),
    inset 0 0 30px rgba(241, 90, 36, 0.1);
}

.rc-gear__number {
  font-size: 4.5rem;
  font-weight: 900;
  font-family: var(--rc-font-racing);
  color: var(--rc-orange);
  text-shadow: 0 0 20px rgba(241, 90, 36, 0.5);
}

/* Input bars (throttle/brake) */
.rc-input-bar {
  margin-bottom: var(--rc-space-md);
}

.rc-input-bar__header {
  font-size: 0.6875rem;
  color: var(--rc-text-muted);
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.rc-input-bar__track {
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--rc-glass-border);
  border-radius: 4px;
  overflow: hidden;
}

.rc-input-bar__fill {
  height: 100%;
  transition: width 0.1s linear;
}

.rc-input-bar__fill--throttle {
  background: linear-gradient(90deg, var(--rc-success), #00ff00);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.rc-input-bar__fill--brake {
  background: linear-gradient(90deg, var(--rc-danger), #ff0000);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Tyre grid */
.rc-tyre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rc-space-md);
  margin-top: var(--rc-space-md);
}

.rc-tyre-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--rc-glass-border);
  border-radius: var(--rc-radius-sm);
  padding: 12px;
  text-align: center;
}

.rc-tyre-card__label {
  font-size: 0.625rem;
  color: var(--rc-text-faint);
  margin-bottom: 8px;
}

.rc-tyre-card__temp {
  font-size: 1.75rem;
  font-weight: 900;
  font-family: var(--rc-font-racing);
}

.rc-tyre-card__pressure {
  font-size: 0.75rem;
  color: var(--rc-text-muted);
  margin-top: 5px;
}

/* Temperature colors */
.rc-temp-cold { color: #00ccff; }
.rc-temp-optimal { color: var(--rc-success); }
.rc-temp-hot { color: var(--rc-orange); }
.rc-temp-critical { color: var(--rc-danger); }

/* Lap time display */
.rc-lap-display {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--rc-orange);
  border-radius: var(--rc-radius-sm);
  padding: var(--rc-space-md);
  margin-bottom: var(--rc-space-md);
}

.rc-lap-display__label {
  font-size: 0.625rem;
  color: var(--rc-text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.rc-lap-display__time {
  font-size: 2.25rem;
  font-weight: 900;
  font-family: var(--rc-font-racing);
  color: var(--rc-orange);
  text-shadow: 0 0 15px rgba(241, 90, 36, 0.4);
}

.rc-lap-display__time--best { color: var(--rc-success); }
.rc-lap-display__time--last { color: var(--rc-orange-light); }

/* Chart container */
.rc-chart-container {
  position: relative;
  height: 250px;
  margin-top: 10px;
}

.rc-chart-container canvas {
  max-height: 100%;
}


/* ═══════════════════════════════════════════════════════════════
   18. CONNECTION STATUS
   ═══════════════════════════════════════════════════════════════ */

.rc-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--rc-glass-border);
  border-radius: var(--rc-radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

.rc-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rc-danger);
  animation: rc-status-pulse 2s infinite;
}

.rc-status__dot--online {
  background: var(--rc-success);
}

@keyframes rc-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}


/* ═══════════════════════════════════════════════════════════════
   19. LOADING STATES
   ═══════════════════════════════════════════════════════════════ */

.rc-spinner {
  border: 3px solid var(--rc-glass-border);
  border-top: 3px solid var(--rc-orange);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: rc-spin 1s linear infinite;
  margin: var(--rc-space-xl) auto;
}

@keyframes rc-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════════════════
   20. SEARCH RESULT ITEMS
   ═══════════════════════════════════════════════════════════════ */

.rc-result-item {
  background: rgba(15, 15, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--rc-radius-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--rc-transition-base);
}

.rc-result-item:hover {
  background: rgba(20, 20, 20, 0.7);
  border-color: var(--rc-orange);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(241, 90, 36, 0.15);
}

.rc-result-item__name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.rc-result-item__meta {
  font-size: 0.8125rem;
  color: var(--rc-text-faint);
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════════
   21. OTP SPECIFIC COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

.rc-otp-info {
  background: rgba(241, 90, 36, 0.08);
  border: 1px solid rgba(241, 90, 36, 0.2);
  border-radius: var(--rc-radius-md);
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.rc-otp-icon {
  width: 50px;
  height: 50px;
  background: var(--rc-orange);
  border-radius: var(--rc-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.rc-otp-input {
  font-size: 2.25rem;
  font-family: var(--rc-font-mono);
  text-align: center;
  letter-spacing: 12px;
  padding: 24px;
  font-weight: 700;
  color: var(--rc-fucsia);
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.rc-otp-instruction {
  background: var(--rc-info-muted);
  border-left: 3px solid var(--rc-info);
  padding: 14px 16px;
  border-radius: var(--rc-radius-sm);
  color: var(--rc-text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: var(--rc-space-lg);
}

.rc-otp-instruction strong {
  color: var(--rc-text-primary);
}

.rc-otp-countdown {
  color: var(--rc-fucsia);
  font-weight: 700;
  font-size: 0.8125rem;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}


/* ═══════════════════════════════════════════════════════════════
   22. TABS
   ═══════════════════════════════════════════════════════════════ */

.rc-tabs {
  display: flex;
  gap: 10px;
}

.rc-tab {
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--rc-glass-border);
  border-radius: var(--rc-radius-sm);
  color: var(--rc-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--rc-transition-base);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rc-tab:hover {
  background: rgba(241, 90, 36, 0.1);
  border-color: var(--rc-orange);
  color: var(--rc-orange);
}

.rc-tab--active {
  background: rgba(241, 90, 36, 0.2);
  border-color: var(--rc-orange);
  color: var(--rc-orange);
  box-shadow: 0 0 15px rgba(241, 90, 36, 0.2);
}


/* ═══════════════════════════════════════════════════════════════
   23. LOG CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.rc-log {
  max-height: 300px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--rc-glass-border);
  border-radius: var(--rc-radius-sm);
  padding: var(--rc-space-md);
  font-family: var(--rc-font-mono);
  font-size: 0.8125rem;
}

.rc-log__entry {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rc-log__entry:last-child { border-bottom: none; }
.rc-log__entry--info { color: var(--rc-text-muted); }
.rc-log__entry--success { color: var(--rc-success); }
.rc-log__entry--warning { color: var(--rc-warning); }
.rc-log__entry--error { color: var(--rc-danger); }
.rc-log__time { color: var(--rc-text-faint); font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════
   24. FEATURE ICON BOX
   ═══════════════════════════════════════════════════════════════ */

.rc-icon-box {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--rc-orange), var(--rc-fucsia));
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: var(--rc-space-xl);
  flex-shrink: 0;
}

.rc-icon-box--sm {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  border-radius: 16px;
}

/* Feature check list */
.rc-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rc-glass-border);
  color: rgba(255, 255, 255, 0.8);
}

.rc-checklist li:last-child { border-bottom: none; }

.rc-checklist li i {
  color: var(--rc-orange);
  flex-shrink: 0;
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════════
   25. LANGUAGE SELECTOR
   ═══════════════════════════════════════════════════════════════ */

.rc-lang-selector {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--rc-z-modal);
}

.rc-lang-btn {
  background: var(--rc-glass-bg-solid);
  border: 1px solid var(--rc-orange);
  border-radius: var(--rc-radius-full);
  padding: 8px 16px;
  color: var(--rc-text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-lang-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: var(--rc-glass-bg-solid);
  border: 1px solid var(--rc-orange);
  border-radius: var(--rc-radius-md);
  min-width: 150px;
  overflow: hidden;
  display: none;
}

.rc-lang-dropdown.is-open { display: block; }

.rc-lang-option {
  display: block;
  width: 100%;
  padding: 8px 16px;
  color: var(--rc-text-primary);
  font-size: 0.875rem;
  text-align: left;
  transition: background var(--rc-transition-fast);
}

.rc-lang-option:hover {
  background: rgba(241, 90, 36, 0.2);
}


/* ═══════════════════════════════════════════════════════════════
   26. ALERT ANIMATIONS (Racing)
   ═══════════════════════════════════════════════════════════════ */

.rc-alert-warning-anim {
  animation: rc-warning-pulse 1s infinite;
}

@keyframes rc-warning-pulse {
  0%, 100% { color: var(--rc-orange); }
  50% { color: var(--rc-warning); }
}

.rc-alert-critical-anim {
  animation: rc-critical-pulse 0.5s infinite;
}

@keyframes rc-critical-pulse {
  0%, 100% {
    color: var(--rc-danger);
    text-shadow: 0 0 20px var(--rc-danger);
  }
  50% {
    color: #ff6666;
    text-shadow: 0 0 30px var(--rc-danger);
  }
}


/* ═══════════════════════════════════════════════════════════════
   27. SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--rc-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rc-orange);
}


/* ═══════════════════════════════════════════════════════════════
   28. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

.rc-mt-xs { margin-top: var(--rc-space-xs); }
.rc-mt-sm { margin-top: var(--rc-space-sm); }
.rc-mt-md { margin-top: var(--rc-space-md); }
.rc-mt-lg { margin-top: var(--rc-space-lg); }
.rc-mt-xl { margin-top: var(--rc-space-xl); }
.rc-mt-2xl { margin-top: var(--rc-space-2xl); }
.rc-mt-3xl { margin-top: var(--rc-space-3xl); }

.rc-mb-xs { margin-bottom: var(--rc-space-xs); }
.rc-mb-sm { margin-bottom: var(--rc-space-sm); }
.rc-mb-md { margin-bottom: var(--rc-space-md); }
.rc-mb-lg { margin-bottom: var(--rc-space-lg); }
.rc-mb-xl { margin-bottom: var(--rc-space-xl); }
.rc-mb-2xl { margin-bottom: var(--rc-space-2xl); }

.rc-p-sm { padding: var(--rc-space-sm); }
.rc-p-md { padding: var(--rc-space-md); }
.rc-p-lg { padding: var(--rc-space-lg); }
.rc-p-xl { padding: var(--rc-space-xl); }
.rc-p-2xl { padding: var(--rc-space-2xl); }

.rc-w-full { width: 100%; }
.rc-hidden { display: none !important; }
.rc-visible { display: block; }
.rc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════
   29. NO DATA PLACEHOLDER
   ═══════════════════════════════════════════════════════════════ */

.rc-empty {
  text-align: center;
  color: var(--rc-text-disabled);
  padding: var(--rc-space-xl) var(--rc-space-lg);
  font-size: 0.875rem;
}


/* ═══════════════════════════════════════════════════════════════
   30. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .rc-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .rc-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rc-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .rc-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rc-grid-2,
  .rc-grid-3,
  .rc-grid-4 {
    grid-template-columns: 1fr;
  }

  .rc-navbar__links { display: none; }
  .rc-navbar__toggle { display: flex; }

  .rc-hero { padding: var(--rc-space-3xl) var(--rc-space-md); }
  .rc-hero__title { font-size: 2rem; }

  .rc-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rc-pricing--featured {
    transform: scale(1);
    order: -1;
  }

  .rc-pricing--featured:hover {
    transform: scale(1);
  }

  .rc-section { padding: var(--rc-space-3xl) 0; }

  .rc-gear {
    width: 80px;
    height: 80px;
  }

  .rc-gear__number { font-size: 3rem; }

  .rc-chart-container { height: 180px; }
}

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

  .rc-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
