/* ==========================================================================
   YOUGC. — CREATOR LEADERBOARD DESIGN SYSTEM
   Stark Editorial Product UI / Neo-Brutalist Precision
   ========================================================================== */

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS & ROOT VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --clr-bg: #ffffff;
  --clr-bg-main: #ffffff;
  --clr-surface: #ffffff;
  --clr-surface-warm: #f9f9fa;
  --clr-surface-highlight: #fffaf5;
  --clr-ink: #000000;
  --clr-ink-dark: #111111;
  --clr-muted: #555555;
  --clr-muted-light: #888888;
  --clr-border: #000000;
  --clr-border-subtle: #eaeaea;
  --clr-border-medium: #cccccc;
  --clr-border-warm-mobile: #e5e2dc;
  
  /* Primary Dramatic Accent */
  --clr-accent: #ff6b00; /* Drama Orange (<= 10% usage rule) */
  --clr-accent-hover: #e05e00;
  --clr-accent-secondary: #ffd700; /* Gold */
  --clr-accent-silver: #c0c0c0;
  --clr-accent-bronze: #cd7f32;

  /* Semantic Status Colors */
  --clr-success: #10b981;
  --clr-error: #ef4444;
  --clr-warning: #f59e0b;
  --clr-info: #3b82f6;
  --clr-instagram: #e1306c;

  /* Typography Stacks */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'League Spartan', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Geometry (Sharp 0px Corners) */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-pill: 50px;
  --radius-circle: 50%;

  /* Neo-Brutalist Hard Offsets */
  --shadow-hard-sm: 2px 2px 0px #000000;
  --shadow-hard-md: 4px 4px 0px #000000;
  --shadow-hard-lg: 8px 8px 0px #000000;
  --shadow-hard-orange: 4px 4px 0px #ff6b00;
  --shadow-subtle: 0 16px 40px rgba(0, 0, 0, 0.06);

  /* High-Speed Exponential Motion Curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sharp: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 0.2s var(--ease-out-quint);
  --transition-normal: 0.3s var(--ease-out-quint);
  --transition-smooth: 0.4s var(--ease-out-expo);

  /* Layout Spacing */
  --gutter-desktop: 5%;
  --gutter-mobile: 1.25rem;
  --header-height: 64px;
  --mobile-nav-height: 70px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

body.app-body {
  font-family: var(--font-primary);
  background-color: var(--clr-bg);
  color: var(--clr-ink);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

.app-container {
  max-width: 100vw;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Reduced motion support per Section 2.4 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.text-orange {
  color: var(--clr-accent) !important;
}

.text-bold {
  font-weight: 800 !important;
}

.text-left {
  text-align: left !important;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.ml-2 { margin-left: 0.5rem !important; }

/* --------------------------------------------------------------------------
   4.9 TICKERS & MARQUEES
   -------------------------------------------------------------------------- */
.ticker-tape {
  background-color: var(--clr-accent);
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--clr-ink);
  position: relative;
  z-index: 1002;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 65s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticker-tape:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   4.7 DESKTOP TOP BAR NAVIGATION
   -------------------------------------------------------------------------- */
.hero-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--clr-accent); /* Orange navbar */
  border-bottom: 2px solid #000000;
  transition: transform 0.3s var(--ease-out-quint);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter-desktop);
  height: var(--header-height);
  max-width: 1440px;
  margin: 0 auto;
}

.brand-group {
  display: flex;
  align-items: center;
}

.nav-back-to-events {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
  margin-right: 0.85rem;
  transition: all 0.15s ease;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.nav-back-to-events:hover {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  box-shadow: 2px 2px 0px #000000;
  transform: translateY(-1px);
}

.nav-back-to-events .back-arrow {
  font-weight: 900;
  font-size: 0.85rem;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  line-height: 1;
}

.brand-you {
  color: #ffffff !important;
}

.brand-gc {
  color: #fff500 !important;
}

.brand-dot {
  color: #fff500 !important;
}

.brand-subtag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
  border-left: 1.5px solid rgba(255, 255, 255, 0.4);
  padding-left: 0.5rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #000000;
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid #000000;
}

/* Supabase DB Connection Status Pill */
.db-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #000000;
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  border: 1px solid #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.db-status-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.db-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ffd700; /* Yellow while checking */
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
  transition: background-color 0.3s ease;
}

.db-status-pill.connected .db-status-dot {
  background-color: #10b981; /* Green when connected & live */
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
}

.db-status-pill.pending .db-status-dot {
  background-color: #f59e0b; /* Amber when table setup is pending */
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.live-pulse {
  width: 7px;
  height: 7px;
  background-color: #fff500;
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.live-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: #fff500;
}

.nav-item.active {
  color: #ffffff;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #000000;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Header Event Switcher (Desktop Default) */
.header-event-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1.5px solid #000000;
  padding: 0.2rem 0.5rem;
  box-shadow: 2px 2px 0px #000000;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  box-sizing: border-box;
}

.event-switcher-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #555555;
  letter-spacing: 0.04em;
}

.event-switcher-select {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modernized Header Navigation Buttons */
.header-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 36px;
  padding: 0 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid #000000;
  cursor: pointer;
  transition: all 0.15s var(--ease-out-quint);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  user-select: none;
}

.header-btn-login {
  background-color: #ffffff;
  color: #000000;
  border-color: #000000;
}

.header-btn-login:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px #ffffff;
}

.header-btn-enter {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.header-btn-enter:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px #000000;
}

.header-btn-submit {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.header-btn-submit:hover {
  background-color: #1a1a1a;
  color: #fff500;
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px #ffffff;
}

.header-nav-btn:active {
  transform: translateY(0);
  box-shadow: none !important;
}

/* Responsive Button Text Spans */
.btn-text-mobile,
.signout-text-mobile {
  display: none;
}

.btn-text-full,
.signout-text-full {
  display: inline;
}

.user-status-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
}

.user-pill-profile {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  padding-right: 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  transition: opacity 0.15s ease;
}

.user-pill-profile:hover .user-pill-name {
  color: #fff500;
}

.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

.user-pill-info {
  display: flex;
  flex-direction: column;
}

.user-pill-name {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  transition: color 0.15s ease;
}

.user-pill-rank {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #fff500;
  font-weight: 700;
}

.btn-micro-action {
  background: #ffffff;
  color: #000000;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-micro-action:hover {
  background: #fff500;
}

.btn-signout {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-radius: 2px;
}

.btn-signout:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* Active Session Banner in Onboarding Form */
.active-session-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.active-session-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.active-session-dot {
  color: #22c55e;
  font-size: 0.85rem;
}

.btn-banner-signout {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.btn-banner-signout:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* Dossier Sign Out Button */
.btn-dossier-signout {
  border: 2px solid #dc2626 !important;
  color: #dc2626 !important;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: all 0.18s ease;
}

.btn-dossier-signout:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* Onboarding Mode Selector (Full Registration vs Quick Email Login) */
.onboarding-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--clr-surface-warm);
  padding: 0.35rem;
  border: 1.5px solid var(--clr-border);
}

.onboarding-mode-btn {
  flex: 1;
  padding: 0.65rem 0.85rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--clr-ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.onboarding-mode-btn:hover {
  color: var(--clr-ink);
  background: rgba(0, 0, 0, 0.04);
}

.onboarding-mode-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.login-intro-box {
  background: var(--clr-surface-warm);
  border-left: 4px solid var(--clr-accent);
  border-top: 2px solid #000000;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.btn-link-subtle {
  transition: all 0.2s ease;
}

.btn-link-subtle:hover {
  color: var(--clr-accent) !important;
}

/* Single Google Auth Button & Auth Divider */
.google-auth-box {
  margin: 1.25rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: var(--radius-sm, 2px);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000000;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-google-auth:hover {
  background: #000000;
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.btn-google-auth:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

.google-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0;
}

.auth-divider-line {
  flex: 1;
  height: 1.5px;
  background-color: #000000;
  opacity: 0.15;
}

.auth-divider-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #555555;
  text-transform: uppercase;
}

/* Referral Code Gate Card & Banner */
.referral-gate-card {
  animation: fadeIn 0.25s ease-out;
}

.verified-referral-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ecfdf5;
  border: 1.5px solid #059669;
  box-shadow: 2px 2px 0px rgba(5, 150, 105, 0.2);
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

.verified-referral-banner strong {
  color: #065f46;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.btn-change-referral {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #047857;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 800;
  padding: 0.2rem 0.4rem;
  transition: all 0.15s ease;
}

.btn-change-referral:hover {
  color: #065f46;
  background: rgba(5, 150, 105, 0.1);
}

.signup-passwords-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Multi-Step Signup Wizard & Stepper */
.signup-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1.5px solid var(--clr-ink);
  box-shadow: 3px 3px 0px var(--clr-ink);
  position: relative;
}

.signup-step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0.45;
  transition: all 0.2s ease;
  user-select: none;
}

.signup-step-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #f1f5f9;
  color: var(--clr-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  border: 1.5px solid var(--clr-ink);
  box-shadow: 1.5px 1.5px 0px var(--clr-ink);
  transition: all 0.2s ease;
}

.signup-step-item .step-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--clr-ink);
}

.signup-step-item:hover {
  opacity: 0.8;
}

.signup-step-item.active {
  opacity: 1;
}

.signup-step-item.active .step-num {
  background: var(--clr-accent, #ff5722);
  color: #ffffff;
  border-color: var(--clr-ink);
  box-shadow: 2px 2px 0px var(--clr-ink);
  transform: translateY(-1px);
}

.signup-step-item.active .step-label {
  color: var(--clr-ink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--clr-accent, #ff5722);
  text-underline-offset: 4px;
}

.signup-step-item.completed {
  opacity: 0.85;
}

.signup-step-item.completed .step-num {
  background: #059669;
  color: #ffffff;
  border-color: var(--clr-ink);
}

.signup-step-item.completed .step-label {
  color: #065f46;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0.65rem;
  transition: background 0.25s ease;
}

.step-connector.active {
  background: var(--clr-ink);
}

.signup-page {
  animation: fadeIn 0.2s ease-out;
}

.signup-page.hidden {
  display: none !important;
}

.stepper-buttons-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

@media (max-width: 540px) {
  .signup-stepper {
    padding: 0.65rem 0.5rem;
  }
  .signup-step-item .step-label {
    display: none;
  }
  .stepper-buttons-row {
    flex-direction: column;
  }
}


/* --------------------------------------------------------------------------
   4.1 BUTTONS & INTERACTIVE TRIGGERS
   -------------------------------------------------------------------------- */
/* Solid Primary Stark Button */
.btn-primary-stark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quint);
}

.btn-primary-stark:hover {
  background-color: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard-md);
}

.btn-primary-stark:active {
  transform: translateY(0);
}

.btn-primary-stark.btn-block {
  width: 100%;
}

.btn-primary-stark.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Orange Stark High-Impact Button (Submit Deliverables) */
.btn-orange-stark,
#btnDashboardSubmitLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background-color: var(--clr-accent, #ff6b00);
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000000;
  transition: all 0.2s var(--ease-out-quint);
  user-select: none;
}

.btn-orange-stark:hover,
#btnDashboardSubmitLink:hover {
  background-color: #000000;
  border-color: #000000;
  color: #fff500;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--clr-accent, #ff6b00);
}

.btn-orange-stark:active,
#btnDashboardSubmitLink:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0px #000000;
}

.btn-orange-stark.is-paused,
#btnDashboardSubmitLink.is-paused {
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
  border-color: #9ca3af !important;
  box-shadow: 2px 2px 0px #9ca3af !important;
  transform: none !important;
  cursor: pointer;
}

.btn-orange-stark.is-paused:hover,
#btnDashboardSubmitLink.is-paused:hover {
  background-color: #e5e7eb !important;
  color: #374151 !important;
  border-color: #6b7280 !important;
  box-shadow: 2px 2px 0px #6b7280 !important;
}

.submit-btn-text-desktop {
  display: inline;
}

.submit-btn-text-mobile {
  display: none;
}

/* Command Outline Secondary Button */
.btn-command-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  background-color: #ffffff;
  border: 2px solid #000000;
  color: #000000;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quint);
}

.btn-command-outline:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hard-md);
}

.btn-command-outline:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.btn-command-outline.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  border-width: 1.5px;
}

.btn-command-outline.btn-block {
  width: 100%;
}

.btn-text-edit {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  color: var(--clr-muted);
}

.btn-text-edit:hover {
  color: var(--clr-ink);
}

/* --------------------------------------------------------------------------
   4.3 BADGES, TAGS & CHIPS
   -------------------------------------------------------------------------- */
.campaign-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.campaign-badge.creator-badge {
  background-color: var(--clr-accent);
  color: #ffffff;
  border: 1px solid var(--clr-accent);
}

.campaign-badge.time-badge {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #111111;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.mono-step-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  display: block;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   5.3 SPLIT-SCREEN ONBOARDING SECTION
   -------------------------------------------------------------------------- */
.split-screen-section {
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: calc(100vh - var(--header-height));
}

.split-left-panel {
  background-color: var(--clr-ink-dark);
  color: #ffffff;
  padding: clamp(3rem, 6vw, 6rem) var(--gutter-desktop);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-right: 2px solid var(--clr-ink);
}

.split-left-content {
  max-width: 620px;
}

.portal-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.split-display-title {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px #ffffff;
}

.split-lead-text {
  font-size: 1.15rem;
  color: #bbbbbb;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.live-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
  padding: 1.5rem 0;
  margin-bottom: 2.5rem;
}

.ribbon-metric {
  display: flex;
  flex-direction: column;
}

.ribbon-val {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ribbon-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clr-accent);
  margin-top: 0.25rem;
}

/* Split Live Preview Card */
.split-preview-card {
  background: #1c1c1e;
  border: 1px solid #333333;
  border-left: 3px solid var(--clr-accent);
  padding: 1.25rem 1.5rem;
}

.preview-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--clr-success);
  border-radius: 50%;
}

.preview-creator-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.preview-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  background-color: #2c2c2e;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}

.preview-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-meta {
  flex: 1;
  min-width: 0;
}

.preview-name {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-handle {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-accent);
}

.preview-score-box {
  text-align: right;
}

.preview-score-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.preview-score-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #888888;
}

/* Right Panel Canvas */
.split-right-panel {
  background-color: #ffffff;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-wrapper {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 2rem;
}

.form-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--clr-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   4.2 INPUT FIELDS & FORM CONTROLS
   -------------------------------------------------------------------------- */
.creator-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-ink);
}

.required {
  color: var(--clr-accent);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--clr-muted);
  line-height: 1.4;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--clr-border-medium);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--clr-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--clr-ink);
  box-shadow: 2px 2px 0px #000000;
}

.input-with-affix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--clr-accent);
  font-size: 1.05rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.form-input-prefixed {
  padding-left: 2.85rem !important;
  padding-right: 7.5rem !important;
}

::placeholder {
  color: #94a3b8;
  opacity: 0.85;
}

#referralGateCodeInput::placeholder {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #94a3b8;
  opacity: 0.85;
  text-transform: uppercase;
}

#eventAccessCode::placeholder {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #94a3b8;
  opacity: 0.85;
  text-transform: uppercase;
}

.input-suffix-tag {
  position: absolute;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--clr-instagram);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.btn-toggle-pw {
  position: absolute;
  right: 0.75rem;
  background: #f4f4f4;
  border: 1.5px solid #000000;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  border-radius: 2px;
  user-select: none;
  transition: all 0.15s ease;
  z-index: 2;
}

.btn-toggle-pw:hover {
  background: #000000;
  color: #ffffff;
}

/* Photo Upload Tab Selectors */
.photo-method-tabs {
  display: flex;
  border-bottom: 1px solid var(--clr-border-medium);
  margin-bottom: 0.75rem;
}

.photo-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-tab.active {
  color: var(--clr-ink);
  border-bottom-color: var(--clr-accent);
}

.photo-tab-content {
  display: none;
}

.photo-tab-content.active {
  display: block;
}

/* Dropzone Box */
.dropzone-box {
  border: 2px dashed var(--clr-border-medium);
  background: var(--clr-surface-warm);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--clr-accent);
  background: var(--clr-surface-highlight);
}

.dropzone-preview-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--clr-ink);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.dropzone-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropzone-icon {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--clr-ink);
}

.dropzone-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-ink);
  margin-top: 0.5rem;
}

.dropzone-sub {
  font-size: 0.65rem;
  color: var(--clr-muted);
}

/* Preset Avatars Grid */
.preset-avatars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.preset-avatar-btn {
  background: #ffffff;
  border: 1px solid var(--clr-border-subtle);
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.preset-avatar-btn:hover {
  border-color: var(--clr-ink);
  transform: translateY(-2px);
}

.preset-avatar-btn.selected {
  border: 2px solid var(--clr-accent);
  box-shadow: 2px 2px 0px var(--clr-accent);
}

.preset-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 1px solid #000000;
}

.preset-avatar-name {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-ink);
}

/* Starter Grid for Initial Counts */
.stats-starter-group {
  border-top: 1px solid var(--clr-border-subtle);
  padding-top: 1.5rem;
}

.group-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mono-optional {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.starter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.starter-box {
  background: var(--clr-surface-warm);
  border: 1px solid var(--clr-border-medium);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.starter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.starter-col-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-ink);
}

.starter-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--clr-accent);
}

.form-input-number {
  width: 100%;
  border: 1px solid var(--clr-border-medium);
  padding: 0.45rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.form-input-number:focus {
  outline: none;
  border-color: var(--clr-ink);
}

.starter-desc {
  font-size: 0.65rem;
  color: var(--clr-muted);
  margin-top: 0.35rem;
  text-align: center;
}

.form-action-wrap {
  margin-top: 0.5rem;
}

.form-legal-note {
  font-size: 0.7rem;
  color: var(--clr-muted);
  margin-top: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

/* --------------------------------------------------------------------------
   DASHBOARD SECTION & LEADERBOARD MAIN
   -------------------------------------------------------------------------- */
.dashboard-section {
  padding: 0 var(--gutter-desktop) 5rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* User Live Standing Strip (Sticky bar at top of dashboard) */
.user-rank-strip {
  background: #000000;
  color: #ffffff;
  border-bottom: 3px solid var(--clr-accent);
  position: sticky;
  top: var(--header-height);
  z-index: 990;
  margin: 0 calc(-1 * var(--gutter-desktop)) 2.5rem;
  padding: 0.85rem var(--gutter-desktop);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.user-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.strip-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.strip-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--clr-accent);
  color: #ffffff;
  padding: 0.25rem 0.5rem;
}

.strip-creator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.strip-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

.strip-text {
  display: flex;
  flex-direction: column;
}

.strip-name {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
}

.strip-handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #aaaaaa;
}

.strip-metrics {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.strip-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strip-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #888888;
  letter-spacing: 0.08em;
}

.strip-stat-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.strip-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Dashboard Header Block */
.dashboard-header-block {
  padding: 1.75rem 0 1rem;
}

.title-meta-group {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dashboard-display-h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 0.75rem;
}

.dashboard-desc {
  color: var(--clr-muted);
  font-size: 1.05rem;
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   4.5 BENTO GRIDS & COMMAND CELLS
   -------------------------------------------------------------------------- */
.bento-grid-wrapper {
  margin: 2.5rem 0 3.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
}

.bento-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2rem;
  min-height: 240px;
  background-color: #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s var(--ease-out-quint);
}

.bento-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px #000000;
  opacity: 0.18;
  line-height: 0.8;
  transition: all 0.4s var(--ease-out-quint);
  pointer-events: none;
}

.bento-content {
  position: relative;
  z-index: 1;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.bento-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--clr-ink);
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}

.bento-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--clr-muted);
  transition: color 0.3s ease;
}

/* Invert on hover per Section 4.5 */
.bento-cell:hover {
  background-color: #000000;
  color: #ffffff;
}

.bento-cell:hover .bento-headline {
  color: #ffffff;
}

.bento-cell:hover .bento-label {
  color: #aaaaaa;
}

.bento-cell:hover .bento-num {
  -webkit-text-stroke: 1.5px #ffffff;
  opacity: 0.35;
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   LEADERBOARD WELCOME BANNER & SPRINT STATS RIBBON
   -------------------------------------------------------------------------- */
.leaderboard-welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--clr-ink-dark);
  color: #ffffff;
  border: 2px solid var(--clr-border);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 4px 4px 0px var(--clr-accent);
}

.welcome-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.welcome-banner-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--clr-accent);
  letter-spacing: 0.1em;
}

.welcome-banner-text {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  color: #e0e0e0;
}

.welcome-banner-text strong {
  color: #ffffff;
  letter-spacing: 0.02em;
}

.dashboard-lead-sub {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--clr-muted);
  max-width: 750px;
  margin: 0.75rem 0 1.5rem;
  line-height: 1.5;
}

.sprint-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--clr-surface-warm);
  border: 1px solid var(--clr-border);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.sprint-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sprint-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--clr-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sprint-stat-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--clr-ink);
  letter-spacing: -0.01em;
}

.text-gold {
  color: #d4a017 !important;
}

.text-silver {
  color: #718096 !important;
}

.text-bronze {
  color: #b7791f !important;
}

/* --------------------------------------------------------------------------
   THE GRAND WINNERS' PODIUM (3-TIERED PHYSICAL PEDESTAL ARCHITECTURE)
   -------------------------------------------------------------------------- */
.podium-section {
  margin: 2rem 0 3rem;
  border: 2px solid var(--clr-border);
  padding: 3rem 2rem 2.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 65%, #f4f4f6 100%);
  position: relative;
  box-shadow: 6px 6px 0px #000000;
  overflow: hidden;
}

.podium-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c0c0c0 0%, #ffd700 50%, #cd7f32 100%);
}

.podium-header {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.podium-header-pre {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.podium-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--clr-ink);
  line-height: 1;
}

.podium-subtitle {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--clr-muted);
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* The 3-Column Stepped Podium Grid: 2nd (Left), 1st (Center), 3rd (Right) */
.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  align-items: flex-end;
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Each Podium Column wraps the Creator Card and the Pedestal Block */
.podium-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s var(--ease-out-quint);
  cursor: pointer;
}

.podium-column:hover {
  transform: translateY(-8px);
}

.podium-column:hover .podium-pedestal {
  box-shadow: 10px 10px 0px #000000;
}

/* --- PODIUM CREATOR CARD (RESTING ATOP PEDESTAL) --- */
.podium-card {
  background: #ffffff;
  border: 2px solid var(--clr-border);
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 3;
  margin-bottom: -2px; /* Seamlessly merges with pedestal top */
  transition: all 0.25s ease;
}

/* Rank 1: Gold Champion Card */
.podium-column.col-rank-1 .podium-card {
  border: 3px solid #000000;
  border-bottom: 3px solid #000000;
  background: #ffffff;
  padding-top: 2.5rem;
  padding-bottom: 1.75rem;
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.15);
}

/* Floating Crown Icon for Rank 1 */
.crown-float-wrap {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  animation: crownFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  z-index: 10;
}

@keyframes crownFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) translateY(-6px) rotate(1deg);
  }
}

.crown-svg {
  width: 44px;
  height: 44px;
  display: block;
}

/* Rank Ribbons */
.podium-rank-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
}

.podium-column.col-rank-1 .podium-rank-badge {
  background: #ffd700;
  color: #000000;
  top: 14px; /* Placed below crown */
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
}

.podium-column.col-rank-2 .podium-rank-badge {
  background: #e2e8f0;
  color: #1a202c;
  border-color: #000000;
}

.podium-column.col-rank-3 .podium-rank-badge {
  background: #ecc94b;
  color: #744210;
  border-color: #000000;
}

/* Avatars on the Podium */
.podium-avatar-wrap {
  width: 82px;
  height: 82px;
  border-radius: var(--radius-circle);
  margin: 0.5rem auto 1rem;
  border: 3px solid var(--clr-ink);
  overflow: hidden;
  position: relative;
  background: #eeeeee;
}

.podium-column.col-rank-1 .podium-avatar-wrap {
  width: 98px;
  height: 98px;
  border-width: 4px;
  border-color: #000000;
  margin-top: 1.5rem;
  box-shadow: 0 0 0 4px #ffd700, 0 8px 24px rgba(255, 215, 0, 0.45);
}

.podium-column.col-rank-2 .podium-avatar-wrap {
  box-shadow: 0 0 0 3px #c0c0c0;
}

.podium-column.col-rank-3 .podium-avatar-wrap {
  box-shadow: 0 0 0 3px #cd7f32;
}

.podium-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.podium-creator-name {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--clr-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.podium-column.col-rank-1 .podium-creator-name {
  font-size: 1.45rem;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.podium-handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-accent);
  display: inline-block;
  margin: 0.25rem 0 0.85rem;
  text-decoration: none;
  font-weight: 700;
}

.podium-handle:hover {
  text-decoration: underline;
}

/* Scores */
.podium-score-wrap {
  margin-bottom: 1rem;
}

.podium-score {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--clr-ink);
  line-height: 1;
}

.podium-column.col-rank-1 .podium-score {
  font-size: 2.5rem;
  color: #000000;
}

.podium-score-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-muted);
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  font-weight: 700;
}

/* Micro Deliverables Strip */
.podium-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  border-top: 1px solid var(--clr-border-subtle);
  border-bottom: 1px solid var(--clr-border-subtle);
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.podium-micro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-micro-lbl {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--clr-muted);
  letter-spacing: 0.05em;
}

.podium-micro-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--clr-ink);
}

.btn-podium-dossier {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--clr-surface-warm);
  border: 1px solid var(--clr-border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-podium-dossier:hover {
  background: var(--clr-ink);
  color: #ffffff;
  border-color: var(--clr-ink);
}

/* --- THE PHYSICAL PEDESTALS (STAGGERED HEIGHT PEDESTAL BLOCKS) --- */
.podium-pedestal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background: #f4f4f7;
  border: 2px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Center Gold Champion Pedestal (TALLEST) */
.podium-column.col-rank-1 .podium-pedestal {
  height: 230px;
  border-width: 3px;
  border-top: 8px solid #ffd700;
  background: linear-gradient(180deg, #ffffff 0%, #fffbe6 40%, #faf3d0 100%);
  box-shadow: 8px 8px 0px #000000;
}

/* Left Silver Pedestal (MEDIUM HEIGHT) */
.podium-column.col-rank-2 .podium-pedestal {
  height: 165px;
  border-top: 6px solid #c0c0c0;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%);
}

/* Right Bronze Pedestal (THIRD STEP) */
.podium-column.col-rank-3 .podium-pedestal {
  height: 115px;
  border-top: 6px solid #cd7f32;
  background: linear-gradient(180deg, #ffffff 0%, #fdf6ec 60%, #fae8d2 100%);
}

/* Embossed Massive Display Numeral */
.pedestal-numeral {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 0, 0.88);
  letter-spacing: -0.05em;
  margin-top: 0.5rem;
  user-select: none;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
}

.podium-column.col-rank-1 .pedestal-numeral {
  font-size: 6.5rem;
  color: #000000;
  margin-top: 0.75rem;
  text-shadow: 3px 3px 0px #ffd700;
}

/* Bottom Plaque on Pedestal */
.pedestal-plaque {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.75rem;
  border: 1px solid #000000;
  background: #ffffff;
  box-shadow: 2px 2px 0px #000000;
}

.podium-column.col-rank-1 .pedestal-plaque {
  background: #000000;
  color: #ffd700;
  border-color: #000000;
  font-size: 0.725rem;
  padding: 0.4rem 1.1rem;
}

/* --------------------------------------------------------------------------
   LEADERBOARD TABLE SPECIFICATIONS (CLEAN SIMPLE PODIUM TABLE)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   LEADERBOARD TABLE SPECIFICATIONS
   -------------------------------------------------------------------------- */
.leaderboard-table-container {
  border: 2px solid var(--clr-border);
  background: #ffffff;
  overflow-x: auto;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.08);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table thead {
  background-color: var(--clr-ink-dark);
  color: #ffffff;
}

.leaderboard-table th {
  padding: 1.1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--clr-border);
  white-space: nowrap;
  user-select: none;
}

.leaderboard-table th.sortable {
  cursor: pointer;
  transition: background-color 0.2s;
}

.leaderboard-table th.sortable:hover {
  background-color: #222222;
  color: var(--clr-accent);
}

.leaderboard-table th.active-sort {
  color: var(--clr-accent);
}

.sort-indicator {
  font-size: 0.75rem;
  margin-left: 0.3rem;
  opacity: 0.7;
}

.leaderboard-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--clr-border-subtle);
  vertical-align: middle;
}

.leaderboard-table tbody tr {
  transition: background-color 0.15s ease;
}

.leaderboard-table tbody tr:hover {
  background-color: var(--clr-surface-warm);
}

/* Current User Highlighted Row */
.leaderboard-table tbody tr.current-user-row {
  background-color: #fff9f4;
  border-left: 5px solid var(--clr-accent);
  position: relative;
}

.leaderboard-table tbody tr.current-user-row:hover {
  background-color: #fff2e6;
}

/* Table Header Responsive Visibility (Default Desktop) */
.desktop-hdr {
  display: inline;
}

.mobile-hdr {
  display: none;
}

.btn-action-text {
  display: inline;
}

.btn-action-icon {
  display: inline-block;
  margin-left: 0.25rem;
}

/* Table Column Widths & Layout */
.th-rank { width: 85px; text-align: center; }
.th-creator { min-width: 260px; }
.th-stat { text-align: right; min-width: 125px; }
.th-score { text-align: right; min-width: 155px; }
.th-action { width: 140px; text-align: center; }

/* Rank Badge in Table */
.rank-cell {
  text-align: center;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: var(--clr-surface-warm);
  border: 1px solid var(--clr-border-medium);
  color: var(--clr-ink);
}

.rank-pill.rank-first {
  background: var(--clr-accent-secondary);
  border-color: #000000;
  color: #000000;
  font-weight: 900;
}

.rank-pill.rank-second {
  background: var(--clr-accent-silver);
  border-color: #000000;
  color: #000000;
}

.rank-pill.rank-third {
  background: var(--clr-accent-bronze);
  border-color: #000000;
  color: #ffffff;
}

/* Creator Profile in Table */
.creator-flex-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.table-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--clr-border);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--clr-surface-warm);
}

.table-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-info-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.creator-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-creator-name {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--clr-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.you-tag {
  background: var(--clr-accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.creator-meta-sub {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.table-instagram-handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.table-instagram-handle:hover {
  color: var(--clr-instagram);
  text-decoration: underline;
}

.table-category-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-muted);
  background: var(--clr-surface-warm);
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--clr-border-subtle);
}

/* Numeric Metric Cells */
.stat-metric-cell {
  text-align: right;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--clr-ink);
  display: block;
}

.metric-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-muted);
  display: block;
}

.metric-highlight {
  color: var(--clr-accent);
}

/* Total Score Cell */
.score-cell {
  text-align: right;
}

.score-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--clr-ink);
  display: block;
}

.score-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--clr-accent);
}

/* Action Cell in Table */
.action-cell {
  text-align: center;
}

.btn-table-action {
  background: #ffffff;
  border: 1px solid var(--clr-border);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-quint);
}

.btn-table-action:hover {
  background: var(--clr-ink);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Table Empty State */
.table-empty-state {
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  font-family: var(--font-mono);
  color: var(--clr-muted);
  margin-bottom: 1rem;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.empty-desc {
  font-size: 0.9rem;
  color: var(--clr-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   PROTOCOL SECTION (HOW IT WORKS)
   -------------------------------------------------------------------------- */
.protocol-section {
  margin: 4rem 0 3rem;
}

.protocol-header {
  margin-bottom: 2rem;
}

.protocol-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.protocol-card {
  border: 2px solid var(--clr-border);
  background: #ffffff;
  padding: 2rem 1.5rem;
  position: relative;
  transition: all 0.3s var(--ease-out-quint);
}

.protocol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hard-md);
}

.protocol-card.highlight-card {
  border-color: var(--clr-accent);
}

.protocol-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--clr-muted-light);
  margin-bottom: 1rem;
}

.protocol-card-title {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.protocol-weight {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--clr-ink);
  margin-bottom: 1rem;
  background: var(--clr-surface-warm);
  padding: 0.25rem 0.5rem;
  display: inline-block;
}

.protocol-text {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.5;
}

.switch-profile-footer {
  text-align: center;
  margin: 3rem 0 2rem;
}

/* --------------------------------------------------------------------------
   4.6 BRUTALIST MODALS & OVERLAYS
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s var(--ease-out-quint);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.brutalist-modal-content {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: var(--shadow-hard-lg);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: modalPop 0.25s var(--ease-out-quint);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalPop {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--clr-border);
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #000000;
  color: #ffffff;
}

.modal-icon-box {
  width: 64px;
  height: 64px;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  background: var(--clr-surface-warm);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 1.75rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-actions-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
  margin-top: 1rem;
}

/* Dossier Detail Modal */
.dossier-modal {
  max-width: 580px;
  text-align: left;
}

.dossier-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--clr-border-subtle);
  margin-bottom: 1.5rem;
}

.dossier-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 2px solid var(--clr-ink);
  flex-shrink: 0;
}

.dossier-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.dossier-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

.dossier-instagram {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--clr-accent);
  text-decoration: none;
  margin: 0.25rem 0 0.5rem;
}

.dossier-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dossier-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dossier-stat-card {
  background: var(--clr-surface-warm);
  border: 1px solid var(--clr-border-medium);
  padding: 0.9rem 0.5rem;
  text-align: center;
}

.dossier-stat-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 900;
  display: block;
}

.dossier-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--clr-muted);
  display: block;
  margin-top: 0.15rem;
}

.dossier-stat-pts {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--clr-accent);
  display: block;
}

.dossier-total-banner {
  background: #000000;
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dossier-total-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dossier-total-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--clr-accent-secondary);
}

/* --------------------------------------------------------------------------
   4.10 TOASTS & NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  width: 320px;
  padding: 16px 20px;
  background: #ffffff;
  color: #000000;
  border: 1px solid var(--clr-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 0px; /* Aligned with 0px neo-brutalist standard */
  border-left: 6px solid var(--clr-accent);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: slideInRight 0.3s var(--ease-out-quint);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.toast-success {
  border-left-color: var(--clr-success);
}

.toast.toast-error {
  border-left-color: var(--clr-error);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toast-message {
  font-size: 0.825rem;
  color: var(--clr-muted);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   RESPONSIVE & ADAPTIVE STYLES
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .protocol-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .leaderboard-table th {
    padding: 0.9rem 0.6rem;
    font-size: 0.7rem;
  }
  .leaderboard-table td {
    padding: 0.85rem 0.6rem;
  }
  .th-creator {
    min-width: 180px;
  }
  .th-stat {
    min-width: 80px;
  }
  .th-score {
    min-width: 110px;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding-bottom: 2.5rem !important;
  }

  .dashboard-section {
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-inner {
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 0.5rem !important;
    flex-wrap: nowrap !important;
    gap: 0.35rem !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .nav-back-to-events {
    padding: 0.2rem 0.4rem !important;
    margin-right: 0.35rem !important;
    font-size: 0.72rem !important;
    flex-shrink: 0 !important;
    gap: 0.2rem !important;
  }

  .nav-back-to-events .back-label {
    display: none !important;
  }

  .brand-group {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    gap: 0 !important;
    min-width: 0 !important;
  }

  .brand-logo {
    display: flex !important;
    align-items: baseline !important;
    gap: 0.25rem !important;
    min-width: 0 !important;
  }

  .brand-name {
    font-size: 1.3rem !important;
    line-height: 1 !important;
  }

  .brand-subtag {
    font-size: 0.52rem !important;
    padding-left: 0.3rem !important;
    letter-spacing: 0.06em !important;
    max-width: 72px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    gap: 0.3rem !important;
  }

  .header-event-switcher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    background: #ffffff !important;
    border: 1.5px solid #000000 !important;
    padding: 0.15rem 0.35rem !important;
    max-width: 105px !important;
    box-sizing: border-box !important;
    flex-shrink: 1 !important;
    box-shadow: 1.5px 1.5px 0px #000000 !important;
  }

  .event-switcher-label {
    display: none !important;
  }

  .event-switcher-select {
    border: none !important;
    background: transparent !important;
    font-family: var(--font-mono) !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    max-width: 90px !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    outline: none !important;
  }

  .header-nav-btn {
    height: 31px !important;
    padding: 0 0.5rem !important;
    font-size: 0.65rem !important;
    border-width: 1.5px !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }

  .user-status-pill {
    height: 31px !important;
    padding: 0 0.4rem !important;
    gap: 0.35rem !important;
    border-width: 1.5px !important;
  }

  .user-pill-profile {
    padding-right: 0.35rem !important;
    gap: 0.35rem !important;
  }

  .user-pill-avatar {
    width: 20px !important;
    height: 20px !important;
    border-width: 1px !important;
  }

  .user-pill-name {
    font-size: 0.68rem !important;
    max-width: 60px !important;
  }

  .user-pill-rank {
    font-size: 0.58rem !important;
  }

  .btn-micro-action.btn-signout {
    padding: 0.2rem 0.35rem !important;
    font-size: 0.6rem !important;
  }

  .btn-text-full,
  .signout-text-full {
    display: none !important;
  }

  .btn-text-mobile,
  .signout-text-mobile {
    display: inline !important;
  }

  @media (max-width: 480px) {
    .brand-subtag {
      display: none !important;
    }
  }

  @media (max-width: 380px) {
    .header-inner {
      padding: 0 0.35rem !important;
      gap: 0.25rem !important;
    }
    .header-actions {
      gap: 0.2rem !important;
    }
    .header-event-switcher {
      max-width: 85px !important;
      padding: 0.12rem 0.25rem !important;
    }
    .event-switcher-select {
      max-width: 75px !important;
      font-size: 0.58rem !important;
    }
    .header-nav-btn {
      padding: 0 0.35rem !important;
      font-size: 0.6rem !important;
    }
    .user-pill-name {
      max-width: 44px !important;
    }
    .brand-name {
      font-size: 1.2rem !important;
    }
  }

  .dashboard-header-block {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 0.75rem 0 !important;
  }

  .dashboard-display-h2 {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.35rem !important;
  }

  .event-stage-pill {
    width: 100% !important;
    font-size: 0.68rem !important;
    padding: 0.45rem 0.65rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  .dashboard-submit-btn-wrap {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    box-sizing: border-box !important;
  }

  #btnDashboardSubmitLink {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.75rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .desktop-nav {
    display: none;
  }

  /* Split screen collapses to form canvas on mobile (Section 5.3) */
  .split-screen-section {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - var(--header-height));
    height: auto;
  }

  .split-left-panel {
    display: none;
  }

  .split-right-panel {
    padding: 0.65rem 1rem 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  body.onboarding-view-active .app-footer,
  body:has(#onboardingSection:not(.hidden)) .app-footer {
    display: none !important;
  }

  /* Compact Onboarding / Login Mobile Layout (Zero-Scroll 1-Screen Fit) */
  .form-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .form-header {
    margin-bottom: 0.4rem;
  }

  .form-header .mono-step-label {
    font-size: 0.62rem;
    margin-bottom: 0.1rem;
    display: block;
    letter-spacing: 0.08em;
  }

  .form-header .form-title {
    font-size: 1.35rem;
    line-height: 1.1;
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
  }

  .form-header .form-subtitle {
    font-size: 0.74rem;
    line-height: 1.25;
    color: #666666;
    margin-bottom: 0;
  }

  .onboarding-mode-tabs {
    margin-bottom: 0.45rem;
    padding: 0.2rem;
    gap: 0.35rem;
  }

  .onboarding-mode-btn {
    padding: 0.42rem 0.6rem;
    font-size: 0.72rem;
    gap: 0.3rem;
  }

  .google-auth-box {
    margin: 0.3rem 0 0.4rem 0;
    gap: 0.35rem;
  }

  .btn-google-auth {
    padding: 0.52rem 0.85rem;
    font-size: 0.76rem;
    box-shadow: 2px 2px 0px #000000;
    letter-spacing: 0.04em;
  }

  .google-icon-svg {
    width: 16px;
    height: 16px;
  }

  .auth-divider {
    margin: 0.15rem 0;
    gap: 0.45rem;
  }

  .auth-divider-text {
    font-size: 0.6rem;
  }

  .creator-form {
    gap: 0.4rem;
  }

  .creator-form .form-group {
    margin-top: 0 !important;
    gap: 0.15rem;
  }

  .creator-form .form-label {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.08rem;
  }

  .creator-form .field-hint {
    display: none !important;
  }

  .creator-form .form-input {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.86rem;
    height: 38px;
    box-sizing: border-box;
    border-width: 1.5px;
  }

  .creator-form .input-suffix-tag,
  .creator-form .btn-toggle-pw {
    font-size: 0.62rem;
    padding: 0.25rem 0.5rem;
  }

  .creator-form .form-action-wrap {
    margin-top: 0.45rem !important;
  }

  .creator-form .btn-primary-stark {
    padding: 0.65rem 1rem !important;
    font-size: 0.82rem;
    box-shadow: 2px 2px 0px #000000;
    letter-spacing: 0.05em;
  }

  .creator-form .form-switch-prompt,
  .creator-form .btn-link-subtle {
    font-size: 0.7rem !important;
    margin-top: 0.3rem !important;
  }

  .signup-passwords-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .signup-stepper {
    margin-bottom: 0.4rem;
    padding: 0.35rem 0.6rem;
    box-shadow: 2px 2px 0px var(--clr-ink);
  }

  .signup-step-item {
    gap: 0.25rem;
  }

  .signup-step-item .step-num {
    font-size: 0.68rem;
    width: 22px;
    height: 22px;
  }

  .signup-step-item .step-label {
    font-size: 0.62rem;
    display: inline-block !important;
  }

  .step-connector {
    margin: 0 0.3rem;
  }

  .active-session-banner {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
    margin-bottom: 0.4rem;
  }

  #nicheGroupWrap {
    margin-top: 0.35rem !important;
  }

  .niche-trigger {
    padding: 0.45rem 0.65rem;
    min-height: 38px;
  }

  .niche-placeholder {
    font-size: 0.78rem;
  }

  .niche-dropdown-menu {
    max-height: 200px;
  }

  .photo-method-tabs {
    margin-bottom: 0.35rem;
  }

  .photo-tab {
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
  }

  .dropzone-box {
    padding: 0.65rem;
    gap: 0.35rem;
  }

  .dropzone-empty .dropzone-icon {
    font-size: 1.15rem;
  }

  .dropzone-empty .dropzone-text {
    font-size: 0.68rem;
  }

  .dropzone-empty .dropzone-sub {
    font-size: 0.6rem;
  }

  .form-legal-note {
    font-size: 0.62rem;
    margin-top: 0.35rem;
  }

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

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-cell {
    min-height: 180px;
    padding: 1.5rem;
  }

  /* Responsive 3-Step Podium Silhouette preserved on mobile */
  .podium-section {
    padding: 2rem 0.5rem 1.5rem;
  }

  .sprint-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .podium-grid {
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 0.4rem;
    align-items: flex-end;
  }

  .podium-card {
    padding: 1.25rem 0.4rem 0.75rem;
  }

  .podium-column.col-rank-1 .podium-card {
    padding-top: 1.5rem;
    padding-bottom: 0.75rem;
  }

  .crown-svg {
    width: 28px;
    height: 28px;
  }

  .crown-float-wrap {
    top: -15px;
  }

  .podium-rank-badge {
    font-size: 0.55rem;
    padding: 0.2rem 0.4rem;
    top: -10px;
  }

  .podium-column.col-rank-1 .podium-rank-badge {
    top: 10px;
    font-size: 0.58rem;
    padding: 0.2rem 0.5rem;
  }

  .podium-avatar-wrap {
    width: 52px;
    height: 52px;
    margin: 0.25rem auto 0.4rem;
  }

  .podium-column.col-rank-1 .podium-avatar-wrap {
    width: 66px;
    height: 66px;
    margin-top: 0.85rem;
  }

  .podium-creator-name {
    font-size: 0.8rem;
    line-height: 1.1;
  }

  .podium-column.col-rank-1 .podium-creator-name {
    font-size: 0.95rem;
  }

  .podium-handle {
    font-size: 0.6rem;
    margin: 0.15rem 0 0.35rem;
  }

  .podium-score {
    font-size: 1.15rem;
  }

  .podium-column.col-rank-1 .podium-score {
    font-size: 1.35rem;
  }

  .podium-score-sub {
    font-size: 0.5rem;
  }

  .podium-stats-strip {
    display: none; /* Streamlined on compact mobile viewports */
  }

  .btn-podium-dossier {
    font-size: 0.55rem;
    padding: 0.35rem 0.2rem;
  }

  /* Scaled Stepped Pedestal Blocks */
  .podium-column.col-rank-1 .podium-pedestal {
    height: 135px;
  }

  .podium-column.col-rank-2 .podium-pedestal {
    height: 95px;
  }

  .podium-column.col-rank-3 .podium-pedestal {
    height: 65px;
  }

  .pedestal-numeral {
    font-size: 2.75rem;
    margin-top: 0.25rem;
  }

  .podium-column.col-rank-1 .pedestal-numeral {
    font-size: 3.5rem;
    margin-top: 0.35rem;
  }

  .pedestal-plaque {
    font-size: 0.45rem;
    padding: 0.2rem 0.4rem;
    margin-bottom: 0.35rem;
  }

  .podium-column.col-rank-1 .pedestal-plaque {
    font-size: 0.5rem;
    padding: 0.2rem 0.5rem;
  }



  /* Mobile Protocol Cards Layout */
  .protocol-section {
    margin-top: 1.5rem !important;
    padding-top: 1.25rem !important;
  }

  .protocol-title {
    font-size: 1.2rem !important;
  }

  .protocol-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .protocol-card {
    padding: 1rem 0.85rem !important;
    box-shadow: 2px 2px 0px #000000 !important;
  }

  .protocol-card.highlight-card {
    grid-column: 1 / -1 !important; /* Full width for Brand Collabs to house guidelines cleanly */
  }

  .protocol-num {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
  }

  .protocol-card-title {
    font-size: 0.82rem !important;
    margin-bottom: 0.35rem !important;
  }

  .protocol-weight {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.45rem !important;
  }

  .user-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .strip-metrics {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .toast-container {
    bottom: 1rem !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
  }

  .toast {
    width: 100%;
    box-shadow: 3px 3px 0px #000000 !important;
  }

  /* Mobile Dashboard Header & Compact Clickable Submit Button */
  .dashboard-header-block {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
    margin-bottom: 1.25rem !important;
  }

  .dashboard-submit-btn-wrap {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    box-sizing: border-box !important;
  }

  #btnDashboardSubmitLink,
  .btn-orange-stark {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0.55rem 0.65rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    border: 2px solid #000000 !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 2.5px 2.5px 0px #000000 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }

  #btnDashboardSubmitLink:active,
  .btn-orange-stark:active {
    transform: translate(1px, 1px) !important;
    box-shadow: 1px 1px 0px #000000 !important;
  }

  .submit-btn-text-desktop {
    display: none !important;
  }

  .submit-btn-text-mobile {
    display: inline !important;
  }

  /* --------------------------------------------------------------------------
     MOBILE FULL LEADERBOARD TABLE - 100% VISIBLE WITH ZERO SWIPING / ZERO SLIDING
     -------------------------------------------------------------------------- */
  .leaderboard-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important; /* NO SWIPING OR HORIZONTAL SLIDING */
    border: 2px solid var(--clr-border) !important;
    box-shadow: 2px 2px 0px #000000 !important;
    margin: 0 0 1.5rem 0 !important;
    background: #ffffff;
    box-sizing: border-box !important;
  }

  .leaderboard-table-container::before {
    display: none !important;
  }

  .leaderboard-table {
    table-layout: fixed !important; /* Forces 100% table width without overflow */
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.45rem 0.15rem !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid var(--clr-border-subtle);
  }

  .leaderboard-table th {
    padding: 0.45rem 0.1rem !important;
    background: #000000 !important;
    color: #ffffff !important;
    text-align: center !important;
    line-height: 1.15 !important;
  }

  /* Specific fixed percentage widths ensuring all 8 columns fit in 100% */
  .th-rank,
  .rank-cell {
    width: 7% !important;
    min-width: 0 !important;
    max-width: none !important;
    position: static !important;
    text-align: center !important;
    padding: 0.45rem 0.05rem !important;
  }

  .rank-pill {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    border-radius: 2px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .th-creator,
  .creator-cell {
    width: 27% !important;
    min-width: 0 !important;
    max-width: none !important;
    position: static !important;
    border-right: none !important;
    box-shadow: none !important;
    text-align: left !important;
    padding: 0.45rem 0.2rem !important;
    overflow: hidden !important;
  }

  .creator-flex-cell {
    gap: 0.35rem !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .table-avatar-circle {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-width: 1px !important;
    flex-shrink: 0 !important;
  }

  .creator-info-stack {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .creator-name-row {
    gap: 0.15rem !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .table-creator-name {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 100% !important;
    line-height: 1.15 !important;
  }

  .creator-meta-sub {
    margin-top: 0 !important;
    overflow: hidden !important;
    line-height: 1.1 !important;
  }

  .table-instagram-handle {
    font-size: 0.58rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 100% !important;
    color: var(--clr-muted) !important;
  }

  .you-tag {
    font-size: 0.45rem !important;
    padding: 0.05rem 0.2rem !important;
    line-height: 1 !important;
  }

  /* Metric columns (Reels 10%, Posts 10%, Collab 10%, Stories 10%, Brand Tags 10%) */
  .th-stat.th-reels,
  .stat-reels-cell {
    width: 10% !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 0.45rem 0.05rem !important;
    overflow: hidden !important;
  }

  .th-stat.th-posts,
  .stat-posts-cell {
    width: 10% !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 0.45rem 0.05rem !important;
    overflow: hidden !important;
  }

  .th-stat.th-collab,
  .stat-collab-cell {
    width: 10% !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 0.45rem 0.05rem !important;
    overflow: hidden !important;
  }

  .th-stat.th-stories,
  .stat-stories-cell {
    width: 10% !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 0.45rem 0.05rem !important;
    overflow: hidden !important;
  }

  .th-stat.th-brand-tags,
  .stat-brand-tags-cell {
    width: 10% !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 0.45rem 0.05rem !important;
    overflow: hidden !important;
  }

  .metric-num {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    display: block !important;
  }

  .metric-sub {
    display: none !important; /* Hide point breakdown text to keep cells clean and 100% visible */
  }

  /* Total score cell (15%) */
  .th-score,
  .score-cell {
    width: 15% !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 0.45rem 0.1rem !important;
    overflow: hidden !important;
  }

  .score-num {
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    color: #000000 !important;
    line-height: 1.1 !important;
    display: block !important;
  }

  .score-tag {
    display: block !important;
    font-size: 0.5rem !important;
    font-weight: 800 !important;
    color: var(--clr-accent) !important;
    line-height: 1 !important;
  }

  /* Action cell (removed, hidden) */
  .th-action,
  .action-cell {
    display: none !important;
  }

  .btn-table-action {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    padding: 0 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .btn-action-text {
    display: none !important;
  }

  .btn-action-icon {
    display: inline-flex !important;
    font-size: 0.72rem !important;
    margin: 0 !important;
  }

  /* Mobile Header Stack Layout (Emoji on top, Label on bottom) */
  .mobile-hdr {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
  }

  .desktop-hdr {
    display: none !important;
  }

  .m-emoji {
    font-size: 0.75rem !important;
    line-height: 1 !important;
  }

  .m-lbl {
    font-size: 0.52rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    line-height: 1 !important;
    font-family: var(--font-mono);
  }

  /* --------------------------------------------------------------------------
     MOBILE MODALS, FORMS & INPUT SIZING (iOS ZOOM PREVENTION)
     -------------------------------------------------------------------------- */
  .modal-backdrop {
    padding: 1.25rem 0.85rem !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .brutalist-modal-content {
    padding: 1.25rem 0.85rem !important;
    max-width: min(520px, calc(100vw - 2rem)) !important;
    width: 100% !important;
    max-height: 86vh !important;
    box-shadow: 3px 3px 0px #000000 !important;
    border: 2px solid #000000 !important;
    box-sizing: border-box !important;
    margin: auto !important;
    overflow-x: hidden !important;
  }

  .modal-title {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
  }

  .modal-subtitle {
    font-size: 0.8rem !important;
  }

  /* Critical: 16px minimum prevents iOS Safari auto-zoom on input tap */
  .form-input,
  .form-select,
  input[type="text"],
  input[type="url"],
  input[type="email"],
  input[type="password"] {
    font-size: 16px !important;
    min-height: 46px !important;
    padding: 0.75rem 0.85rem !important;
    box-sizing: border-box !important;
  }

  .form-input-prefixed {
    padding-left: 2.85rem !important;
    padding-right: 4.5rem !important;
  }

  .modal-actions-row {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 1.25rem !important;
  }

  .modal-actions-row button {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 0.82rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Avatar Hero Stage Mobile */
  .avatar-hero-stage {
    padding: 0.85rem 1rem !important;
    gap: 0.85rem !important;
  }

  .avatar-hero-preview-box {
    width: 62px !important;
    height: 62px !important;
  }

  .avatar-hero-label {
    font-size: 0.95rem !important;
  }

  .avatar-segmented-nav {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 5px !important;
  }

  .avatar-tab-btn {
    font-size: 0.72rem !important;
    padding: 0.6rem 0.35rem !important;
    gap: 0.35rem !important;
  }

  /* Dossier Modal Stats Grid */
  .dossier-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .dossier-hero {
    gap: 0.75rem !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .dossier-avatar {
    width: 56px !important;
    height: 56px !important;
  }

  .dossier-name {
    font-size: 1.25rem !important;
  }

  .dossier-stat-card {
    padding: 0.75rem 0.5rem !important;
  }

  .dossier-stat-num {
    font-size: 1.2rem !important;
  }

  .dossier-total-banner {
    padding: 0.75rem 1rem !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    align-items: flex-start !important;
  }
}

/* --------------------------------------------------------------------------
   EXTRA COMPACT MOBILE DEVICES (e.g. 320px - 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .dashboard-section {
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
  }

  .brand-name {
    font-size: 1.3rem !important;
  }

  .brand-subtag {
    display: none !important; /* Save horizontal space on narrow phones */
  }

  .table-avatar-circle {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }

  .table-creator-name {
    font-size: 0.65rem !important;
  }

  .table-instagram-handle {
    font-size: 0.52rem !important;
  }

  .metric-num {
    font-size: 0.72rem !important;
  }

  .score-num {
    font-size: 0.74rem !important;
  }

  .rank-pill {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    font-size: 0.55rem !important;
  }

  .btn-table-action {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    font-size: 0.65rem !important;
  }

  .m-emoji {
    font-size: 0.68rem !important;
  }

  .m-lbl {
    font-size: 0.46rem !important;
  }

  .protocol-grid {
    grid-template-columns: 1fr !important;
  }

  .protocol-card.highlight-card {
    grid-column: auto !important;
  }
}

/* ==========================================================================
   NICHE MULTI-SELECT DROPDOWN COMPONENT (NEO-BRUTALIST STYLING)
   ========================================================================== */
.niche-multiselect-wrap {
  position: relative;
  width: 100%;
}

.niche-trigger {
  width: 100%;
  min-height: 48px;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: var(--font-primary);
}

.niche-trigger:focus,
.niche-trigger.active {
  outline: none;
  background: #fafafa;
  border-color: #ff5722;
  box-shadow: 4px 4px 0px #000000;
}

.niche-chips-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-height: 28px;
}

.niche-placeholder {
  font-family: var(--font-primary);
  font-size: 0.88rem;
  color: #767676;
}

.niche-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  border: 1px solid #000000;
  line-height: 1.2;
}

.niche-chip-remove {
  background: transparent;
  border: none;
  color: #ff5722;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0 0.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.1s ease;
}

.niche-chip-remove:hover {
  color: #ffd700;
}

.niche-arrow {
  font-size: 0.75rem;
  color: #000000;
  font-weight: 900;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.niche-multiselect-wrap.open .niche-arrow {
  transform: rotate(180deg);
}

.niche-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  max-height: 340px;
  animation: nicheMenuFade 0.15s ease-out;
}

@keyframes nicheMenuFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.niche-dropdown-menu.hidden {
  display: none !important;
}

.niche-search-box {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #000000;
  background: #fdfdfd;
  padding: 0.45rem 0.75rem;
  gap: 0.5rem;
}

.niche-search-icon {
  font-size: 0.85rem;
}

.niche-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  color: #000000;
}

.niche-options-list {
  overflow-y: auto;
  max-height: 220px;
  display: flex;
  flex-direction: column;
}

.niche-option-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s ease;
}

.niche-option-item:hover {
  background: #fff8f0;
}

.niche-option-item.selected {
  background: #fff3e0;
}

.niche-checkbox-box {
  width: 18px;
  height: 18px;
  border: 2px solid #000000;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: #000000;
  flex-shrink: 0;
  transition: all 0.1s ease;
}

.niche-option-item.selected .niche-checkbox-box {
  background: #000000;
  color: #ffffff;
}

.niche-option-label {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: #000000;
  flex: 1;
}

.niche-option-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #767676;
}

.niche-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid #000000;
  padding: 0.5rem 0.85rem;
  background: #fbfbfb;
  gap: 0.5rem;
}

.niche-count-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #555555;
}

.niche-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-done-niches {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
}

.btn-done-niches:hover {
  background: #ff5722 !important;
  border-color: #ff5722 !important;
}

/* Live Preview Niches Tags */
.preview-niches-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.preview-niche-tag {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 1px 1px 0px #000000;
}

/* Dossier Niche Badges */
.dossier-niche-pill {
  display: inline-block;
  background: #f0f0f0;
  border: 1.5px solid #000000;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0px #000000;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* Event Stage & Winner Status Pill */
.event-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
  transition: all 0.2s ease;
}

.event-stage-pill.announced {
  background: #000000;
  color: #ffd700;
  border-color: #ffd700;
  box-shadow: 3px 3px 0px #ffd700;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5722;
  box-shadow: 0 0 6px #ff5722;
  flex-shrink: 0;
  animation: stagePulse 1.8s infinite ease-in-out;
}

.event-stage-pill.announced .stage-dot {
  background: #ffd700;
  box-shadow: 0 0 8px #ffd700;
}

@keyframes stagePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.podium-section.revealed {
  animation: podiumRevealAnim 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes podiumRevealAnim {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Google Onboarding Multi-Step Wizard */
.google-onboard-modal {
  max-width: 520px;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.onboard-step-progress {
  display: flex;
  gap: 8px;
  margin: 0.75rem 0 1.25rem 0;
}

.step-progress-segment {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border: 1.5px solid #000000;
  transition: all 0.25s ease;
}

.step-progress-segment.active {
  background: var(--clr-accent, #ff6b00);
}

.step-progress-segment.completed {
  background: #000000;
}

.step-counter-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #000000;
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border: 1px solid #000000;
}

.step-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.step-requirement-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid #000000;
}

.step-requirement-tag.mandatory {
  background: #fee2e2;
  color: #991b1b;
}

.step-requirement-tag.optional {
  background: #e0e7ff;
  color: #3730a3;
}

.verified-google-user-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0 #000000;
  margin-bottom: 1.25rem;
}

.verified-google-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #000000;
  object-fit: cover;
  background: #ffffff;
  flex-shrink: 0;
}

.verified-google-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.verified-google-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #000000;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-google-email {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-check-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  padding: 0.2rem 0.5rem;
  border: 1px solid #166534;
  flex-shrink: 0;
}

.google-niche-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1.5px solid #000000;
  background: #ffffff;
}

.google-niche-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border: 1.5px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 1px 1px 0 #000000;
  user-select: none;
}

.google-niche-chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 #000000;
  background: #f8fafc;
}

.google-niche-chip.selected {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: none;
  transform: translate(1px, 1px);
}

/* ==========================================================================
   GOOGLE ONBOARDING - STEP 3 (CLEAN PROFILE PHOTO CIRCLE)
   ========================================================================== */
.avatar-circle-display-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 1.5rem auto;
  text-align: center;
}

.avatar-circle-display-box {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto;
}

.avatar-circle-display-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  object-fit: cover;
  background: #f1f5f9;
  display: block;
}

.avatar-circle-display-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 1px 1px 0px #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.avatar-circle-display-badge:hover {
  transform: scale(1.15);
  background: var(--clr-accent, #ff6b00);
}

.avatar-circle-change-text {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0.85rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.avatar-circle-change-text:hover {
  color: var(--clr-accent, #ff6b00);
}

.avatar-circle-reset-text {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-ink-muted, #555555);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 0.35rem;
  cursor: pointer;
}

.avatar-circle-reset-text:hover {
  color: #000000;
}

/* ==========================================================================
   EVENT ACCESS STATUS BAR & JOIN MODAL (VIEW ACCESS VS COMPETING)
   ========================================================================== */
.event-access-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
  border: 2px solid var(--clr-border, #000000);
  box-shadow: 3px 3px 0 var(--clr-border, #000000);
  padding: 0.85rem 1.25rem;
  margin: 1rem 0 1.5rem 0;
}

.access-status-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.access-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid #000000;
  border-radius: 9999px;
  transition: all 0.2s ease;
  user-select: none;
}

.access-mode-pill.pill-competing {
  background: #dcfce7;
  color: #15803d;
  border-color: #15803d;
}

.access-mode-pill.pill-viewonly {
  background: #fef3c7;
  color: #b45309;
  border-color: #b45309;
}

.access-mode-pill.pill-guest {
  background: #f1f5f9;
  color: #334155;
  border-color: #334155;
}

.mode-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #64748b;
  flex-shrink: 0;
}

.access-mode-pill.pill-competing .mode-pill-dot {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
  animation: pulse-access-dot 1.8s infinite;
}

.access-mode-pill.pill-viewonly .mode-pill-dot {
  background: #f59e0b;
}

@keyframes pulse-access-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.access-subtext {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--clr-ink-muted, #555555);
  font-weight: 600;
  line-height: 1.4;
}

.btn-join-event-bar {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1.2rem;
  border: 2px solid #000000;
  background: var(--clr-accent, #ff6b00);
  color: #ffffff;
  box-shadow: 2px 2px 0 #000000;
  cursor: pointer;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-join-event-bar:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000000;
}

.btn-join-event-bar:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000000;
}

.btn-join-event-bar.competing {
  background: #000000;
  color: #ffffff;
}

.btn-join-event-bar.is-closed {
  background: #2b2b2b;
  color: #fca5a5;
  border-color: #000000;
  box-shadow: 2px 2px 0 #000000;
}

.btn-join-event-bar.is-closed:hover {
  background: #1f1f1f;
  color: #ef4444;
}

@media (max-width: 768px) {
  .event-access-status-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
  }
  .access-status-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
  .access-status-right {
    width: 100%;
  }
  .btn-join-event-bar {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.75rem;
  }
}

/* ==========================================================================
   Submit Content Modal Styles (Desktop & Mobile Responsive)
   ========================================================================== */
.submit-content-modal-box {
  max-width: 520px;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.modal-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #000000;
}

.modal-header-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.modal-pre-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #ff6b00;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submit-content-modal-box .modal-title {
  font-size: 1.35rem;
  margin: 0 !important;
  line-height: 1.2;
  text-align: left;
  font-weight: 900;
}

.brand-tags-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.45rem;
}

.brand-tags-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ff6b00;
  background: #fff5eb;
  border: 1px solid #ffd8b2;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Brand Tag Checkboxes Grid */
.brand-tag-checks-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

@media (min-width: 680px) {
  .brand-tag-checks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

.brand-checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm, 2px);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  user-select: none;
  min-height: 48px;
  box-sizing: border-box;
}

.brand-checkbox-card:hover:not(.claimed) {
  background: #fff8f2;
  border-color: #ff6b00;
  transform: translateY(-1px);
}

.brand-checkbox-card:has(input:checked):not(.claimed) {
  background: #fff5eb;
  border-color: #ff6b00;
  box-shadow: 2px 2px 0px #ff6b00;
}

.brand-checkbox-input {
  accent-color: #ff6b00;
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.brand-checkbox-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.brand-checkbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.brand-checkbox-name {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-checkbox-pts {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ff6b00;
  background: #fff0e2;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.brand-checkbox-sub {
  font-size: 0.65rem;
  color: #666666;
  font-family: var(--font-mono);
  margin-top: 0.1rem;
}

/* Greyed out state when already claimed */
.brand-checkbox-card.claimed {
  background: #f1f3f5 !important;
  border: 1.5px dashed #94a3b8 !important;
  opacity: 0.65;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.brand-checkbox-card.claimed .brand-checkbox-input {
  cursor: not-allowed !important;
}

.brand-checkbox-card.claimed .brand-checkbox-name {
  color: #64748b !important;
}

.brand-checkbox-card.claimed .brand-checkbox-pts {
  display: none !important;
}

.brand-checkbox-card.claimed .brand-checkbox-sub {
  color: #94a3b8 !important;
}

.brand-claimed-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #047857;
  background: #d1fae5;
  border: 1px solid #10b981;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand-claimed-badge.pending {
  color: #b45309;
  background: #fef3c7;
  border-color: #f59e0b;
}

.brand-checkbox-card.pending-review {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.05) !important;
  cursor: not-allowed !important;
}

.brand-checkbox-card.pending-review .brand-checkbox-sub {
  color: #b45309 !important;
}

/* Review Status Notice */
.submit-review-notice {
  margin: 0.85rem 0 1.25rem 0;
  padding: 0.7rem 0.85rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px solid #F59E0B;
  border-radius: var(--radius-sm, 2px);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
}

.submit-review-notice-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.submit-review-notice-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--clr-ink);
}

.submit-review-notice-text strong {
  color: #B45309;
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.1rem;
}

/* Mobile Screen Specific Optimizations (width <= 640px) */
@media (max-width: 640px) {
  #logContentModal.modal-backdrop {
    padding: 1.25rem 0.85rem !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .submit-content-modal-box {
    padding: 1.15rem 0.85rem !important;
    max-width: min(520px, calc(100vw - 2rem)) !important;
    width: 100% !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 3px 3px 0px #000000 !important;
    border: 2px solid #000000 !important;
    text-align: left !important;
    box-sizing: border-box !important;
    margin: auto !important;
  }

  .modal-header-bar {
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.55rem !important;
  }

  .submit-content-modal-box .modal-title {
    font-size: 1.125rem !important;
    text-align: left !important;
  }

  .modal-pre-pill {
    font-size: 0.6rem !important;
  }

  /* Form groups compact spacing */
  #logContentForm .form-group {
    margin-bottom: 0.75rem !important;
    gap: 0.35rem !important;
  }

  #logContentForm .form-label {
    font-size: 0.74rem !important;
  }

  #logContentForm .form-input,
  #logContentForm .form-select {
    font-size: 16px !important;
    min-height: 44px !important;
    padding: 0.65rem 0.75rem !important;
  }

  #logContentForm .field-hint {
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }

  /* Brand Checkbox Cards on Mobile */
  .brand-tag-checks-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    margin-top: 0.25rem !important;
  }

  .brand-checkbox-card {
    padding: 0.65rem 0.75rem !important;
    min-height: 48px !important;
    gap: 0.65rem !important;
  }

  .brand-checkbox-input {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  .brand-checkbox-name {
    font-size: 0.75rem !important;
  }

  .brand-checkbox-sub {
    font-size: 0.62rem !important;
  }

  .brand-checkbox-pts {
    font-size: 0.65rem !important;
    padding: 0.12rem 0.35rem !important;
  }

  .brand-claimed-badge {
    font-size: 0.62rem !important;
    padding: 0.12rem 0.35rem !important;
  }

  /* Review Notice compact */
  .submit-review-notice {
    margin: 0.65rem 0 0.85rem 0 !important;
    padding: 0.55rem 0.75rem !important;
  }

  .submit-review-notice-text {
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }

  /* Action buttons: Submit on top, Cancel below */
  #logContentModal .modal-actions-row {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
  }

  #logContentModal .modal-actions-row button {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 0.85rem !important;
    padding: 0.75rem 1rem !important;
    letter-spacing: 0.05em !important;
  }

  #logContentModal #btnConfirmLog {
    background-color: var(--clr-accent, #ff6b00) !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: 3px 3px 0px #000000 !important;
    font-weight: 800 !important;
  }

  #logContentModal #btnConfirmLog:active {
    transform: translateY(1px) !important;
    box-shadow: 1px 1px 0px #000000 !important;
  }

  #logContentModal #btnCancelLog {
    background: transparent !important;
    color: #444444 !important;
    border: 1.5px solid #000000 !important;
    box-shadow: none !important;
    min-height: 42px !important;
    font-size: 0.78rem !important;
  }
}

/* ==========================================================================
   UNIFIED NEO-BRUTALIST LOADING & BACKGROUND SYNC SYSTEM (ALL PAGES)
   ========================================================================== */

/* 1. Full-Page Reload / Initial Load Overlay */
.app-page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  pointer-events: all;
}

.app-page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  max-width: 440px;
  width: 100%;
  border: 2px solid #000000;
  background: #ffffff;
  padding: 2.25rem 2rem;
  box-shadow: 6px 6px 0px #000000;
  text-align: left;
  position: relative;
  box-sizing: border-box;
}

.loader-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #000000;
  color: #ffffff;
  padding: 0.3rem 0.65rem;
  margin-bottom: 1.25rem;
  border-radius: 0;
}

.loader-brand-title {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  color: #000000;
}

.loader-brand-title .brand-accent {
  color: var(--clr-accent, #ff6b00);
}

.loader-sub-status {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: var(--clr-muted, #555555);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  min-height: 1.3em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.loader-progress-track {
  width: 100%;
  height: 8px;
  background: var(--clr-surface-warm, #f0f0f0);
  border: 1.5px solid #000000;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.loader-progress-bar {
  height: 100%;
  background: var(--clr-accent, #ff6b00);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  animation: loaderBarScan 1.25s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes loaderBarScan {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(20%); }
  100% { transform: translateX(110%); }
}

.loader-terminal-line {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: #000000;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--clr-border-subtle, #eaeaea);
  padding-top: 0.85rem;
}

.loader-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--clr-accent, #ff6b00);
  animation: loaderDotBlink 0.7s ease-in-out infinite alternate;
}

@keyframes loaderDotBlink {
  from { opacity: 0.3; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); }
}

/* 2. Global Top Background Sync Bar */
.global-top-sync-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: transparent;
  z-index: 999999;
  pointer-events: none;
  overflow: hidden;
}

.global-top-sync-fill {
  height: 100%;
  width: 0%;
  background: var(--clr-accent, #ff6b00);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
  transition: width 0.25s ease-out, opacity 0.25s ease;
}

.global-top-sync-bar.syncing .global-top-sync-fill {
  width: 100%;
  animation: topSyncSlide 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes topSyncSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(15%); }
  100% { transform: translateX(110%); }
}

/* 3. Floating / Fixed Background Operation Sync Badge */
.bg-sync-badge {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #000000;
  color: #ffffff;
  border: 1.5px solid #000000;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0px var(--clr-accent, #ff6b00);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  pointer-events: none;
}

.bg-sync-badge.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sync-spinner-box {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--clr-accent, #ff6b00);
  animation: syncSpin 0.65s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes syncSpin {
  to { transform: rotate(360deg); }
}

/* Mobile adjustment for bottom bar */
@media (max-width: 768px) {
  .bg-sync-badge {
    bottom: calc(var(--mobile-nav-height, 70px) + 1rem);
    right: 1rem;
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
  }
}

/* 4. Table / Content Refresh Subtle Loading Mask */
.ui-refreshing {
  opacity: 0.72;
  transition: opacity 0.2s ease;
  position: relative;
}

.ui-refreshing::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clr-accent, #ff6b00);
  animation: topSyncSlide 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 5;
}

/* Pre-hydration routing styles to avoid layout jump on reload */
html.route-join #onboardingSection {
  display: grid !important;
}

html.route-join #leaderboardSection {
  display: none !important;
}

/* ============================================================================
   V3 SCORING SYSTEM LAYOUT ADJUSTMENTS (ACTIVE & NEW EVENTS)
   ============================================================================ */
body.v3-mode .th-collab,
body.v3-mode .stat-collab-cell,
body.v3-mode #dossierCollabsCard,
body.v3-mode .podium-micro-stat-collab {
  display: none !important;
}

body.v3-mode .dossier-stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.dossier-link-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.dossier-pts-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fb923c;
  text-transform: uppercase;
}

.dossier-pts-chip.capped {
  background: #f1f5f9;
  color: #475569;
  border-color: #94a3b8;
}

/* Leaderboard Action Button Wrap & Rules Button */
.dashboard-submit-btn-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-rules-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.8rem 1.15rem;
  background-color: #ffffff;
  color: #111111;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 3px 3px 0px #000000;
}

.btn-rules-trigger:hover {
  background-color: #fff5eb;
  border-color: #ff6b00;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px #000000;
}

.btn-rules-trigger:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

/* ==========================================================================
   SCORING RULES MODAL (SINGLE-SCREEN FIT, 10-SEC READABLE)
   ========================================================================== */
.rules-modal-box {
  max-width: 520px;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  max-height: 86vh !important;
  padding: 1.15rem 1rem 0.75rem !important;
  box-sizing: border-box !important;
  text-align: left;
  overflow: hidden !important;
}

.rules-modal-box .modal-header-bar {
  flex-shrink: 0 !important;
  margin-bottom: 0.65rem !important;
  padding-bottom: 0.45rem !important;
  border-bottom: 2px solid #000000 !important;
}

#rulesModalBody {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  padding-right: 2px !important;
}

.rules-modal-footer {
  flex-shrink: 0 !important;
  margin-top: 0.55rem !important;
  padding-top: 0.55rem !important;
  background: #ffffff !important;
  border-top: 2px solid #000000 !important;
}

/* Rules Section Cards (Max 3 boxes on screen) */
.rules-section-card {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 2.5px 2.5px 0px #000000;
  padding: 0.65rem 0.75rem;
  box-sizing: border-box;
}

.rules-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.section-hdr-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 900;
  color: #111111;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-hdr-pill.accent {
  color: #ea580c;
}

.section-hdr-hint {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* BOX 1: Base Points 3 Tiles (Hero Numbers) */
.base-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
}

.base-tile {
  background: #fafafa;
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 0.55rem 0.3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.15s ease;
}

.base-tile:hover {
  transform: translateY(-1px);
}

.base-tile-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.base-tile-pts {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  color: #ff6b00;
  line-height: 1;
  margin: 0.1rem 0;
  letter-spacing: -0.02em;
}

.base-tile-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.base-tile-note {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: #666666;
  font-style: italic;
  line-height: 1.2;
  margin-top: 0.25rem;
}

/* BOX 2: ADD-ONS (Expandable Accordion Rows) */
.addon-accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
}

.addon-accordion-item {
  background: #fafafa;
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  box-sizing: border-box;
  overflow: hidden;
  transition: background-color 0.15s ease;
}

.addon-accordion-item[open] {
  background: #ffffff;
}

.addon-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  min-height: 44px; /* Accessible 44px tap target */
  cursor: pointer;
  user-select: none;
  list-style: none;
  box-sizing: border-box;
  gap: 0.45rem;
}

.addon-accordion-summary::-webkit-details-marker {
  display: none;
}

.addon-row-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.addon-row-icon {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.addon-row-title {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 800;
  color: #111111;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.addon-row-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  text-align: right;
}

.addon-row-val-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.addon-row-pts {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 900;
  color: #ea580c;
  white-space: nowrap;
}

.addon-row-sub {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.addon-chevron {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 900;
  color: #111111;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  display: inline-block;
  line-height: 1;
}

.addon-accordion-item[open] .addon-chevron {
  transform: rotate(180deg);
  color: #ea580c;
}

/* Accordion Expanded Body */
.addon-accordion-body {
  border-top: 1px dashed #d4d4d8;
  background: #fafafa;
  padding: 0.5rem 0.65rem;
  font-family: var(--font-mono);
  box-sizing: border-box;
}

.addon-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  padding: 0.35rem 0.5rem;
  font-size: 0.68rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.addon-breakdown-row .breakdown-item strong {
  color: #ea580c;
  font-weight: 900;
}

.addon-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  padding: 0.4rem 0.55rem;
  font-size: 0.68rem;
  margin-bottom: 0.35rem;
}

.addon-breakdown-list .breakdown-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.addon-breakdown-list .breakdown-line strong {
  color: #ea580c;
  font-weight: 900;
}

.addon-breakdown-note {
  font-size: 0.6rem;
  line-height: 1.35;
  color: #666666;
  margin-top: 0.25rem;
}

/* Brand Tags Chips in Accordion Body */
.rules-tags-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0;
}

.rules-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1.5px solid #000000;
  box-shadow: 1.5px 1.5px 0px #000000;
  padding: 0.25rem 0.55rem;
  font-family: var(--font-mono);
  min-height: 36px;
  box-sizing: border-box;
}

.tag-chip-icon {
  font-size: 0.85rem;
}

.tag-chip-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: #111111;
}

.tag-chip-pts {
  font-size: 0.68rem;
  font-weight: 900;
  background: #ff6b00;
  color: #ffffff;
  padding: 0.12rem 0.3rem;
  border-radius: 2px;
}

/* BOX 3: FINE PRINT */
.rules-fine-print {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.4;
  color: #555555;
  padding: 0.45rem 0.65rem;
  background: #f4f4f5;
  border-left: 3px solid #111111;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .dashboard-submit-btn-wrap {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    box-sizing: border-box !important;
  }

  .btn-rules-trigger {
    flex: 0 0 auto !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 0.72rem !important;
    box-shadow: 2.5px 2.5px 0px #000000 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .rules-modal-box {
    padding: 0.85rem 0.75rem 0.5rem !important;
    max-width: min(520px, calc(100vw - 2rem)) !important;
    width: 100% !important;
    max-height: 86vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 2px solid #000000 !important;
    box-shadow: 3px 3px 0px #000000 !important;
    margin: auto !important;
  }

  .dossier-modal {
    max-width: min(580px, calc(100vw - 2rem)) !important;
    width: 100% !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    margin: auto !important;
    border: 2px solid #000000 !important;
    box-shadow: 3px 3px 0px #000000 !important;
    padding: 1.15rem 0.85rem !important;
  }

  .base-tile-pts {
    font-size: 1.6rem !important;
  }

  .base-tile {
    padding: 0.5rem 0.25rem !important;
  }

  .addon-row-title {
    font-size: 0.7rem !important;
  }

  .addon-row-pts {
    font-size: 0.7rem !important;
  }

  .deliverable-link-row {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
  }

  .dossier-link-breakdown {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .dossier-pts-chip {
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    display: inline-block !important;
    line-height: 1.35 !important;
  }

  .event-access-status-bar {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.v3-mode .th-stat.th-reels,
  body.v3-mode .stat-reels-cell,
  body.v3-mode .th-stat.th-posts,
  body.v3-mode .stat-posts-cell,
  body.v3-mode .th-stat.th-stories,
  body.v3-mode .stat-stories-cell,
  body.v3-mode .th-stat.th-brand-tags,
  body.v3-mode .stat-brand-tags-cell {
    width: 12.5% !important;
  }

  body.v3-mode .th-score,
  body.v3-mode .score-cell {
    width: 17% !important;
  }

  body.v3-mode .dossier-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 440px) {
  .modal-backdrop,
  #logContentModal.modal-backdrop,
  #rulesModal.modal-backdrop,
  #creatorDetailModal.modal-backdrop,
  #authModal.modal-backdrop,
  #accessCodeModal.modal-backdrop,
  #waitlistModal.modal-backdrop,
  #googleOnboardingModal.modal-backdrop {
    padding: 1rem 0.75rem !important;
  }

  .brutalist-modal-content,
  .rules-modal-box,
  .dossier-modal,
  .submit-content-modal-box,
  .google-onboard-modal {
    max-width: calc(100vw - 1.8rem) !important;
    padding: 1rem 0.65rem !important;
    box-shadow: 2.5px 2.5px 0px #000000 !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: auto !important;
  }

  .rules-modal-box {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0.85rem 0.65rem 0.45rem !important;
  }

  .base-tile-pts {
    font-size: 1.45rem !important;
  }
  .base-tile-label {
    font-size: 0.58rem !important;
  }
  .base-tile-note {
    font-size: 0.52rem !important;
  }
  .addon-row-title {
    font-size: 0.68rem !important;
  }
  .addon-row-pts {
    font-size: 0.68rem !important;
  }
}

@media (max-width: 360px) {
  #btnDashboardSubmitLink,
  .btn-orange-stark {
    padding: 0.5rem 0.4rem !important;
    font-size: 0.68rem !important;
  }
  .btn-rules-trigger {
    padding: 0.5rem 0.55rem !important;
    font-size: 0.68rem !important;
  }
}






