@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800;900&display=swap');

/* ==========================================================================
   Sim Racing Nation (SRN) - Official Stylesheet
   Architecture retooled from Traktion design system
   Strict Rules: Zero emojis, Red header, Light theme, Ultra-detailed SVGs
   ========================================================================== */

:root {
  /* Brand Colors */
  --srn-red: #D3222A;
  --srn-red-dark: #B81D24;
  --srn-red-light: #E8363F;
  --srn-red-subtle: #FEF2F2;
  --srn-red-border: #FCA5A5;

  /* Theme Colors */
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;

  /* Dark Accents (Traktion Footer & Dark Panels) */
  --bg-dark: #1E2328;
  --bg-darker: #14181E;
  --text-dark-muted: #94A3B8;

  /* Community Accent Colors */
  --discord-blurple: #5865F2;
  --discord-hover: #4752C4;
  --speed-teal: #0EA5E9;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.text-red { color: var(--srn-red); }
.text-muted { color: var(--text-muted); }
.text-white { color: #FFFFFF; }

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-tight {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ==========================================================================
   Header & Navigation (Red Header with White Font)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--srn-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid var(--srn-red-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
  aspect-ratio: 1187 / 735;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  color: var(--srn-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.social-icon-btn:hover {
  background-color: #0F172A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-join-discord-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  color: var(--srn-red);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.btn-join-discord-header:hover {
  background-color: var(--bg-body);
  color: var(--srn-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-join-discord-header svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--srn-red-dark);
  z-index: 999;
  padding: 24px 20px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.08);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Hero / Parallax Section (SRN-GT3 Porsche Background + Big Discord CTA)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #0F172A;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #0F172A;
}

.hero-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(1.1) brightness(0.85);
  transform: scale(1.02);
  z-index: 0;
}

/* Seamless Full-Bleed Video Background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-video-wrap.is-playing {
  opacity: 1;
}

.hero-video-wrap iframe,
.hero-video-wrap #hero-yt-player {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100vw !important;
  height: 56.25vw !important; /* 16:9 ratio of viewport width */
  min-height: 100% !important;
  min-width: 177.78vh !important; /* 16:9 ratio of viewport height */
  border: 0 !important;
  pointer-events: none !important;
  filter: brightness(0.8) contrast(1.08);
}

@media (max-aspect-ratio: 16/9) {
  .hero-video-wrap iframe,
  .hero-video-wrap #hero-yt-player {
    width: 177.78vh !important;
    height: 100vh !important;
    min-width: 177.78% !important;
    min-height: 100% !important;
  }
}

@media (min-aspect-ratio: 16/9) {
  .hero-video-wrap iframe,
  .hero-video-wrap #hero-yt-player {
    width: 100vw !important;
    height: 56.25vw !important;
    min-width: 100% !important;
    min-height: 100% !important;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.45) 0%,
    rgba(15, 23, 42, 0.72) 55%,
    rgba(15, 23, 42, 0.94) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 840px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 900;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
  -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.4);
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: #F1F5F9;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  text-wrap: balance;
}

/* Big Join Discord Button */
.hero-discord-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-discord-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 36px;
  background-color: var(--discord-blurple);
  color: #FFFFFF;
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45);
  transition: all var(--transition-fast);
  min-width: 260px;
}

.btn-discord-hero:hover {
  background-color: var(--discord-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.6);
}

.btn-discord-hero svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* ==========================================================================
   Action Pillar Box (Traktion Lines 370-416 Pattern)
   ========================================================================== */
.action-pillar-section {
  position: relative;
  z-index: 10;
  margin-top: -36px;
  margin-bottom: 24px;
}

.action-pillar-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .action-pillar-card {
    grid-template-columns: 7fr 5fr;
  }
}

.action-pillar-image {
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #0F172A;
  position: relative;
}

.action-pillar-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

.action-pillar-heading {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
}

.action-pillar-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.action-trio-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background-color: var(--srn-red);
  color: #FFFFFF !important;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 10px rgba(211, 34, 42, 0.25);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: all var(--transition-fast);
}

.btn-action-primary:hover {
  background-color: var(--srn-red-dark);
  color: #FFFFFF !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background-color: #14181E;
  color: #FFFFFF !important;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: all var(--transition-fast);
}

.btn-action-secondary:hover {
  background-color: #2D3748;
  color: #FFFFFF !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-action-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background-color: #E2E8F0;
  color: #0F172A !important;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: all var(--transition-fast);
}

.btn-action-tertiary:hover {
  background-color: #CBD5E1;
  color: #0F172A !important;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .btn-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-action-row .btn-action-primary,
  .btn-action-row .btn-action-secondary,
  .btn-action-row .btn-action-tertiary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Section Headers & Grid Layouts (Retooled from Traktion)
   ========================================================================== */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 6px;
}

.section-header.text-center {
  align-items: center;
  text-align: center;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--srn-red);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* 3-Column Card Grid (Traktion cards) */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2-Column Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 4-Column Grid */
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Traktion Card Components (Driver, Story, Media)
   ========================================================================== */
.trax-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.trax-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: var(--border-medium);
}

.trax-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #0F172A;
}

.trax-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.trax-card:hover .trax-card-media img {
  transform: scale(1.05);
}

.trax-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.trax-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.trax-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.trax-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.trax-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.trax-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--srn-red);
  transition: gap var(--transition-fast);
}

.card-link-btn:hover {
  gap: 10px;
  color: var(--srn-red-dark);
}

.card-link-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* ==========================================================================
   Partners Directory & Brand Filter
   ========================================================================== */
.partner-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--srn-red);
  color: var(--srn-red);
}

.filter-btn.active {
  background: var(--srn-red);
  border-color: var(--srn-red);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(211, 34, 42, 0.25);
}

/* Partner Grid & Cards (Traktion-Grade Layout) */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.partner-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl, 24px);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--border-medium);
}

/* Branded Showcase Banner (Image fills the card) */
.partner-card-showcase {
  height: 200px;
  position: relative;
  width: 100%;
  padding: 0;
  background: #14181E;
  overflow: hidden;
}

.partner-card-showcase img,
.partner-card-showcase svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.partner-card:hover .partner-card-showcase img,
.partner-card:hover .partner-card-showcase svg {
  transform: scale(1.04);
}

.partner-card-tag,
.drawer-verified-row {
  display: none !important;
}

/* Card Body */
.partner-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.partner-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--srn-red);
}

.partner-origin {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: none;
  font-size: 0.75rem;
}

.partner-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.partner-card-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.partner-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.partner-chip {
  background: #F1F5F9;
  color: #334155;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #E2E8F0;
}

/* Sleek Member Privilege Bar (Clean & Authoritative, Zero Tacky Coupon Styling) */
.partner-benefit-bar {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-benefit-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.partner-benefit-icon {
  width: 14px;
  height: 14px;
  color: var(--srn-red-light);
  flex-shrink: 0;
}

.partner-benefit-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-benefit-code {
  font-family: monospace;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.03em;
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-size: 0.6875rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-copy-code:hover {
  background: var(--srn-red);
  border-color: var(--srn-red);
}

.btn-copy-code.copied {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
}

.btn-copy-code svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Card Actions */
.partner-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.btn-view-profile {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-view-profile:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #000000;
}

.btn-visit-site {
  background: var(--srn-red);
  border: 1px solid var(--srn-red);
  color: #FFFFFF;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.btn-visit-site:hover {
  background: var(--srn-red-dark);
  border-color: var(--srn-red-dark);
  color: #FFFFFF;
}

/* ==========================================================================
   Photo Gallery (Community Track Day)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #0F172A;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ==========================================================================
   Forms & Inputs (Anti-Spam Contact Page)
   ========================================================================== */
.form-container {
  max-width: 720px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: inherit;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--srn-red);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(211, 34, 42, 0.12);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Honeypot field (hidden from genuine users) */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background-color: var(--srn-red);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(211, 34, 42, 0.3);
  transition: all var(--transition-fast);
}

.btn-submit:hover {
  background-color: var(--srn-red-dark);
  transform: translateY(-1px);
}

.form-alert {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  display: none;
}

.form-alert:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.form-alert.success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.form-alert.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* ==========================================================================
   Footer (Retooled from Traktion's #242A30 Dark Palette)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-dark-muted);
  padding-top: 64px;
  padding-bottom: 40px;
  border-top: 1px solid #2D3748;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2D3748;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  transition: opacity var(--transition-fast);
}

.footer-brand-logo-wrap:hover {
  opacity: 0.85;
}

.footer-brand img {
  height: 44px;
  width: auto;
  aspect-ratio: 1187 / 735;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 320px;
}

.footer-column h4 {
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.8125rem;
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.75rem;
  color: #64748B;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: #2D3748;
  color: #E2E8F0;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--srn-red);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links, .btn-join-discord-header {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* Mobile Optimization (< 640px & < 480px) - No squished, crammed, or oversized views */
@media (max-width: 640px) {
  .hero-section {
    min-height: 460px;
    padding: 56px 16px 64px;
  }
  .hero-title {
    font-size: clamp(1.45rem, 6.5vw, 1.95rem);
    line-height: 1.15;
    margin-bottom: 12px;
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.4);
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 24px;
  }
  .btn-discord-hero {
    width: 100%;
    max-width: 300px;
    min-width: unset;
    padding: 13px 20px;
    font-size: 0.9375rem;
    gap: 10px;
  }
  .btn-discord-hero svg {
    width: 22px;
    height: 22px;
  }
  .action-pillar-section {
    margin-top: -24px;
    margin-bottom: 16px;
  }
  .action-pillar-image {
    min-height: 180px;
  }
  .action-pillar-content {
    padding: 24px 18px;
  }
  .action-pillar-heading {
    font-size: 1.15rem;
    line-height: 1.25;
  }
  .action-pillar-desc {
    font-size: 0.8125rem;
    margin-bottom: 18px;
  }
  .action-trio-buttons {
    gap: 10px;
  }
  .btn-action-primary,
  .btn-action-secondary,
  .btn-action-tertiary {
    padding: 12px 14px;
    font-size: 0.75rem;
  }
  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .section-desc {
    font-size: 0.875rem;
  }
  .partner-card-showcase {
    height: 180px;
    padding: 0;
  }
  .partner-card-body {
    padding: 18px 16px 20px;
    gap: 10px;
  }
  .partner-card-title {
    font-size: 1.15rem;
  }
  .partner-card-bio {
    font-size: 0.8125rem;
    line-height: 1.45;
  }
  .partner-card-actions {
    gap: 8px;
    padding-top: 12px;
  }
  .btn-view-profile,
  .btn-visit-site {
    padding: 9px 8px;
    font-size: 0.6875rem;
  }
  .partner-filters {
    gap: 6px;
  }
  .filter-btn {
    padding: 6px 13px;
    font-size: 0.75rem;
  }
  .partner-drawer {
    max-width: 100%;
    width: 100%;
  }
  .drawer-hero-banner {
    height: 180px;
    padding: 0;
  }
  .drawer-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
  }
  .drawer-body {
    padding: 18px 16px 32px;
    gap: 18px;
  }
  .drawer-partner-title {
    font-size: 1.35rem;
  }
  .drawer-spec-card {
    padding: 10px 12px;
  }
  .drawer-spec-value {
    font-size: 0.8125rem;
  }
  .drawer-benefit-card {
    padding: 14px 16px;
  }
  .drawer-benefit-title {
    font-size: 0.875rem;
  }
  .drawer-bio-text {
    font-size: 0.875rem;
    line-height: 1.55;
  }
  .btn-drawer-primary,
  .btn-drawer-secondary {
    padding: 12px 18px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 62px;
  }
  .brand-logo img {
    height: 38px;
  }
  .social-icon-btn {
    width: 32px;
    height: 32px;
  }
  .social-icon-btn svg {
    width: 15px;
    height: 15px;
  }
  .mobile-toggle {
    width: 36px;
    height: 36px;
  }
  .mobile-toggle svg {
    width: 20px;
    height: 20px;
  }
  .header-actions {
    gap: 6px;
  }
}

/* ==========================================================================
   Refined Partner Directory & Profile Drawer (Traktion Layout)
   ========================================================================== */

/* Top Search & Filter Bar Controls */
.partner-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.partner-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 16px);
  padding: 12px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: 560px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.partner-search-bar:focus-within {
  border-color: var(--srn-red);
  box-shadow: 0 0 0 3px rgba(211, 34, 42, 0.12);
}

.partner-search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  font-weight: 500;
}

.partner-search-bar input::placeholder {
  color: #94A3B8;
}

.partner-search-bar svg {
  width: 18px;
  height: 18px;
  color: #94A3B8;
  flex-shrink: 0;
}

.partner-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.partner-count-text {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.btn-reset-filters {
  background: none;
  border: none;
  color: var(--srn-red);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.btn-reset-filters:hover {
  color: var(--srn-red-dark);
}

/* ==========================================================================
   Slide-Over Partner Profile Drawer (Traktion Profile System)
   ========================================================================== */
.partner-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.partner-drawer-backdrop.active {
  display: flex;
  opacity: 1;
}

.partner-drawer {
  width: 100%;
  max-width: 580px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-drawer-backdrop.active .partner-drawer {
  transform: translateX(0);
}

.btn-drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 30;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-drawer-close:hover {
  background: #000000;
  transform: scale(1.05);
}

.btn-drawer-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Drawer Hero Banner */
.drawer-hero-banner {
  height: 220px;
  position: relative;
  width: 100%;
  padding: 0;
  background: #14181E;
  overflow: hidden;
  flex-shrink: 0;
}

.drawer-hero-banner img,
.drawer-hero-banner svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Drawer Content Body */
.drawer-body {
  padding: 28px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-verified-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.drawer-partner-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  margin: 0;
}

.drawer-meta-line {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Traktion-Style 4-Metric Specs Matrix */
.drawer-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.drawer-spec-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.drawer-spec-label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.drawer-spec-value {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Community Privilege Card (Clean & Authoritative) */
.drawer-benefit-card {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-benefit-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--srn-red-light);
}

.drawer-benefit-header svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.drawer-benefit-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
}

.drawer-benefit-desc {
  font-size: 0.8125rem;
  color: #CBD5E1;
  line-height: 1.5;
}

.drawer-benefit-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 4px;
}

.drawer-code-label {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 600;
}

.drawer-code-value {
  font-family: monospace;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.05em;
}

/* Deep Bio & Engineering Story */
.drawer-section-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.drawer-bio-text {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.65;
  margin: 0;
}

/* Direct Activation Buttons */
.drawer-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.btn-drawer-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background-color: var(--srn-red);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(211, 34, 42, 0.28);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-drawer-primary:hover {
  background-color: var(--srn-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(211, 34, 42, 0.38);
  color: #FFFFFF;
}

.btn-drawer-primary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.btn-drawer-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background-color: #F8FAFC;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-drawer-secondary:hover {
  background-color: #F1F5F9;
  border-color: #94A3B8;
  color: #000000;
}

/* ==========================================================================
   Driver Profile - Career Milestones & Single-Line Action Buttons
   ========================================================================== */
.driver-milestones-container {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.driver-milestones-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.driver-milestones-icon {
  width: 16px;
  height: 16px;
  color: var(--srn-red);
  flex-shrink: 0;
}

.driver-milestones-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin: 0;
}

.driver-milestones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.driver-milestone-tile {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--srn-red);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.driver-milestone-tile:hover {
  border-color: #CBD5E1;
  border-left-color: var(--srn-red-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.driver-milestone-tag {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.driver-milestone-val {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
}

.driver-milestone-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748B;
  margin-top: 2px;
}

/* Driver Single-Line Action Button Row */
.driver-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.driver-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  transition: all var(--transition-fast);
}

.driver-action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.driver-action-btn-primary {
  background-color: var(--srn-red);
  color: #FFFFFF;
  border: 1px solid var(--srn-red);
  box-shadow: 0 2px 8px rgba(211, 34, 42, 0.2);
}

.driver-action-btn-primary:hover {
  background-color: var(--srn-red-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 34, 42, 0.32);
}

.driver-action-btn-secondary {
  background-color: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}

.driver-action-btn-secondary:hover {
  border-color: var(--srn-red);
  color: var(--srn-red);
  transform: translateY(-1px);
}

.driver-action-btn-tertiary {
  background-color: #F1F5F9;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.driver-action-btn-tertiary:hover {
  background-color: #E2E8F0;
  color: #0F172A;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .driver-milestones-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 860px) {
  .driver-action-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .driver-action-btn {
    width: 100%;
    flex: unset;
    padding: 12px 14px;
  }
}

/* ==========================================================================
   Interactive Driver Photo Gallery (Swipe on Mobile, Click on Desktop)
   ========================================================================== */
.driver-gallery-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0F172A;
  border: 1px solid var(--border-medium);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.driver-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  aspect-ratio: 16 / 11;
}

.driver-gallery-track::-webkit-scrollbar {
  display: none;
}

.driver-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
}

.driver-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.gallery-slide-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
  pointer-events: none;
  letter-spacing: 0.02em;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition-fast);
  padding: 0;
}

.gallery-nav-btn:hover {
  background: var(--srn-red);
  border-color: var(--srn-red);
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-btn svg {
  width: 18px;
  height: 18px;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-dots {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-dot.active {
  background: var(--srn-red);
  width: 18px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .driver-gallery-track {
    aspect-ratio: 4 / 3;
  }
  .gallery-nav-btn {
    display: none; /* Swipe gesture native on mobile */
  }
  .gallery-slide-caption {
    font-size: 0.6875rem;
    padding: 4px 10px;
    bottom: 10px;
    left: 10px;
  }
  .gallery-dots {
    bottom: 10px;
    right: 10px;
    padding: 4px 7px;
  }
}

/* ==========================================================================
   Official Career Achievements & Telemetry Matrix
   ========================================================================== */
.official-stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.official-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-top: 3px solid var(--srn-red);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.official-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.official-stat-num {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.1;
  margin-bottom: 4px;
}

.official-stat-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.official-records-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.official-record-card {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.official-record-card:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.record-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(227, 30, 36, 0.1);
  color: var(--srn-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.record-icon-badge svg {
  width: 18px;
  height: 18px;
}

.record-details {
  flex: 1;
}

.record-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.record-series-tag {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--srn-red);
}

.record-year-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #E2E8F0;
  padding: 2px 8px;
  border-radius: 4px;
}

.record-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 3px;
}

.record-desc {
  font-size: 0.775rem;
  font-weight: 500;
  color: #64748B;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .official-stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  .official-records-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Editorial Press Coverage Grid (Grid-Geeks 2x2 Layout)
   ========================================================================== */
.press-coverage-section {
  margin-top: 32px;
  margin-bottom: 28px;
}

.press-coverage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.press-coverage-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin: 0;
}

.press-coverage-source {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.press-coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.press-card {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.press-card:hover {
  border-color: var(--srn-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.press-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.press-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--srn-red);
}

.press-card-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--srn-red);
}

.press-card-outlet {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
}

.press-card-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 12px;
}

.press-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--srn-red);
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.press-card-footer svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.press-card:hover .press-card-footer svg {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .press-coverage-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   Driver Ambassador Hub Overview Cards (drivers.html)
   ========================================================================== */
.driver-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.driver-hub-card {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-medium);
}

.driver-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

.driver-hub-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0F172A;
}

.driver-hub-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}

.driver-hub-card:hover .driver-hub-media img {
  transform: scale(1.03);
}

.driver-hub-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.driver-hub-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.driver-hub-meta {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.driver-hub-name {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.15;
  margin-bottom: 12px;
}

.driver-hub-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-main);
  margin-bottom: 18px;
  flex: 1;
}

.driver-hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.driver-hub-chip {
  background: #F1F5F9;
  color: #0F172A;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.driver-hub-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.driver-hub-actions .btn-action-primary {
  flex: 2;
  padding: 11px 16px;
  font-size: 0.8125rem;
  justify-content: center;
}

.driver-hub-actions .btn-action-secondary {
  flex: 1;
  padding: 11px 16px;
  font-size: 0.8125rem;
  justify-content: center;
}

@media (max-width: 860px) {
  .driver-hub-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Page Headers & Driver Dossier Hero Styling
   ========================================================================== */
.page-header {
  background-color: var(--bg-darker);
  color: #FFFFFF;
  padding: 60px 0;
  border-bottom: 1px solid #2D3748;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #FFFFFF !important;
  margin: 0 0 12px 0;
  text-transform: uppercase;
}

.driver-dossier-hero {
  background-color: var(--bg-darker);
  color: #FFFFFF;
  padding: 40px 0 36px;
  border-bottom: 1px solid #2D3748;
}

.driver-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.driver-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #CBD5E1;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.driver-back-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.driver-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #94A3B8;
}

.driver-breadcrumbs a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.driver-breadcrumbs a:hover {
  color: #FFFFFF;
}

.driver-breadcrumbs .sep {
  color: #64748B;
  font-size: 0.75rem;
}

.driver-breadcrumbs .current {
  color: #FFFFFF;
  font-weight: 700;
}

.driver-hero-badge {
  display: inline-block;
  background: rgba(227, 30, 36, 0.2);
  color: #FF6B6B;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  border: 1px solid rgba(227, 30, 36, 0.35);
}

.driver-dossier-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF !important;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.driver-dossier-meta {
  font-size: 1.0625rem;
  color: #CBD5E1;
  margin: 0;
  font-weight: 500;
  max-width: 800px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .driver-dossier-hero {
    padding: 28px 0 24px;
  }
  .driver-header-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }
  .driver-dossier-title {
    font-size: 2rem;
  }
}

/* ==========================================================================
   SRN Esports & Interactive Instagram Widget
   ========================================================================== */
.esports-showcase-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  background: #0A0D12;
  margin-bottom: 40px;
}

.esports-showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.esports-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.1) 0%, rgba(10, 13, 18, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.esports-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--srn-red);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 10px;
}

.esports-showcase-title {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.esports-showcase-subtitle {
  font-size: 0.9375rem;
  color: #CBD5E1;
  margin: 0;
  max-width: 680px;
}

/* Interactive Instagram Profile Component */
.ig-profile-card {
  background: #14181E;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.ig-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 24px;
}

.ig-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.ig-avatar-ring {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 3px;
  border-radius: 50%;
  display: inline-block;
}

.ig-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #14181E;
  object-fit: cover;
  display: block;
  background: #0A0D12;
}

.ig-profile-info {
  flex: 1;
  min-width: 0;
}

.ig-profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ig-profile-handle {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ig-verified-icon {
  width: 18px;
  height: 18px;
  color: #3897f0;
}

.ig-header-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ig-follow {
  background: #0095F6;
  color: #FFFFFF !important;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.btn-ig-follow:hover {
  background: #1877F2;
}

.btn-ig-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0 !important;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-ig-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.ig-profile-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 14px;
  font-size: 0.9375rem;
}

.ig-stat-number {
  font-weight: 800;
  color: #FFFFFF;
}

.ig-stat-label {
  color: #94A3B8;
  margin-left: 4px;
}

.ig-profile-bio {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #CBD5E1;
}

.ig-profile-bio strong {
  color: #FFFFFF;
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.ig-profile-bio a {
  color: var(--srn-red);
  text-decoration: none;
  font-weight: 700;
}

.ig-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  border-top: 1px solid var(--border-light);
  margin-top: 24px;
  margin-bottom: 20px;
}

.ig-tab-btn {
  background: none;
  border: none;
  border-top: 2px solid transparent;
  color: #94A3B8;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ig-tab-btn.active {
  color: #FFFFFF;
  border-top-color: var(--srn-red);
}

.ig-tab-btn svg {
  width: 14px;
  height: 14px;
}

.ig-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ig-post-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #0A0D12;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ig-post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ig-post-card:hover img {
  transform: scale(1.05);
}

.ig-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9375rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ig-post-card:hover .ig-post-overlay {
  opacity: 1;
}

.ig-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ig-post-stat svg {
  width: 18px;
  height: 18px;
}

/* Instagram Post Modal */
.ig-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.ig-modal-dialog {
  background: #14181E;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  position: relative;
}

.ig-modal-media {
  flex: 1.2;
  background: #0A0D12;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
}

.ig-modal-media img {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.ig-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-light);
  min-width: 280px;
}

.ig-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ig-modal-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-modal-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.ig-modal-username {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 0.875rem;
}

.ig-modal-close-btn {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.ig-modal-close-btn:hover {
  color: #FFFFFF;
}

.ig-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  font-size: 0.875rem;
  color: #CBD5E1;
  line-height: 1.55;
}

.ig-modal-caption {
  margin-bottom: 16px;
}

.ig-modal-tags {
  color: #3897f0;
  font-weight: 600;
  word-break: break-word;
}

.ig-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: #101419;
}

.ig-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ig-modal-like-btn {
  background: none;
  border: none;
  color: #CBD5E1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.ig-modal-like-btn.liked {
  color: #ED4956;
}

.ig-modal-like-btn:hover {
  transform: scale(1.05);
}

.ig-modal-date {
  font-size: 0.75rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.ig-modal-outbound {
  display: block;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ig-modal-outbound:hover {
  background: var(--srn-red);
}

@media (max-width: 768px) {
  .ig-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .ig-profile-top {
    justify-content: center;
  }
  .ig-profile-stats {
    justify-content: center;
  }
  .ig-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .ig-modal-dialog {
    flex-direction: column;
    max-height: 85vh;
  }
  .ig-modal-media {
    min-height: 240px;
    max-height: 40vh;
  }
}

/* ==========================================================================
   Cam Kinsman Spotlight Feature
   ========================================================================== */
.cam-spotlight-card {
  background: #14181E;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 56px;
  background-image: radial-gradient(circle at 15% 50%, rgba(211, 34, 42, 0.16) 0%, transparent 65%);
}

.cam-spotlight-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
}

.cam-spotlight-cutout {
  max-height: 490px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(211, 34, 42, 0.25));
  position: relative;
  z-index: 2;
  margin-bottom: -6px;
  transition: transform 0.3s ease;
}

.cam-spotlight-card:hover .cam-spotlight-cutout {
  transform: translateY(-4px) scale(1.02);
}

.cam-spotlight-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, #14181E 100%);
  z-index: 3;
  pointer-events: none;
}

.cam-spotlight-content {
  padding: 44px 44px 44px 20px;
  position: relative;
  z-index: 4;
}

.cam-spotlight-role {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--srn-red);
  margin-bottom: 8px;
}

.cam-spotlight-name {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 14px 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cam-spotlight-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #CBD5E1;
  margin: 0 0 24px 0;
  max-width: 620px;
}

.cam-spotlight-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.cam-pillar-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.cam-pillar-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  margin-bottom: 4px;
}

.cam-pillar-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.cam-pillar-text {
  font-size: 0.775rem;
  line-height: 1.45;
  color: #94A3B8;
  margin: 0;
}

@media (max-width: 980px) {
  .cam-spotlight-card {
    grid-template-columns: 1fr;
    background-image: radial-gradient(circle at 50% 20%, rgba(211, 34, 42, 0.18) 0%, transparent 70%);
  }
  .cam-spotlight-visual {
    min-height: 380px;
    padding-top: 24px;
  }
  .cam-spotlight-cutout {
    max-height: 380px;
  }
  .cam-spotlight-content {
    padding: 24px 28px 36px;
    text-align: center;
  }
  .cam-spotlight-pillars {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }
  .cam-spotlight-desc {
    margin-left: auto;
    margin-right: auto;
  }
}



