:root {
  --brand-primary: #00AEEF;
  --brand-secondary: #000000;
  --brand-accent1: #E6F7FE;
  --brand-accent2: #0077B6;
  --brand-dark: #000000;

  /* Sport typography */
  --font-display: 'Archivo', 'Kanit', sans-serif;
  --font-body: 'Sarabun', 'Kanit', sans-serif;

  /* Design system */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(28, 28, 30, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 28, 30, 0.08);
  --shadow-lg: 0 8px 24px rgba(28, 28, 30, 0.12);
  --shadow-xl: 0 16px 40px rgba(28, 28, 30, 0.16);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --bottom-nav-height: 74px;
}

/* Base */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus ring for accessibility */
*:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  font-size: 16px; /* prevent iOS zoom on focus */
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="color"] {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: none;
  overflow: hidden;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: var(--radius-md);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

/* App-like main container */
.app-main {
  min-height: 100svh;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
}

@media (min-width: 1024px) {
  .app-main {
    padding-bottom: 1rem;
  }
}

/* Page transition */
.page-transition {
  animation: pageFadeIn 0.35s ease-out both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page content wrapper */
.page-section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .page-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
}

.event-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.event-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}

/* ============================================================
   Micro-interaction CSS (spec §4.2)
   ============================================================ */

/* --- Button Ripple --- */
[data-ripple] {
  position: relative;
  overflow: hidden;
}
.ripple-span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transform: scale(0);
}

/* --- Skeleton Loading --- */
.skeleton-box {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
  border-radius: 8px;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Progress Bar --- */
.progress-track {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--brand-primary, #00AEEF);
  transition: width 0.3s ease;
}

/* --- Bottom Nav (VELOCITY HUD) --- */
.vh-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  height: calc(74px + var(--safe-bottom));
  padding-bottom: calc(10px + var(--safe-bottom));
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 2px solid var(--sky, #00AEEF);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.vh-bn-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 60px;
  height: 64px;
  gap: 3px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.vh-bn-tab:hover {
  color: var(--sky, #00AEEF);
}

.vh-bn-tab:active {
  transform: scale(0.95);
}

.vh-bn-tab-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 30px;
  height: 4px;
  background: var(--sky, #00AEEF);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.vh-bn-tab.nav-active {
  color: var(--sky, #00AEEF);
}

.vh-bn-tab.nav-active .vh-bn-tab-indicator {
  transform: translateX(-50%) skewX(-12deg) scaleX(1);
  box-shadow: 0 2px 12px rgba(0, 174, 239, 0.8);
}

.vh-bn-tab.nav-active .vh-bn-icon {
  filter: drop-shadow(0 0 6px rgba(0, 174, 239, 0.6));
}

.vh-bn-icon {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.vh-bn-label {
  font-family: var(--font-display, 'Archivo', 'Kanit', sans-serif);
  font-style: italic;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Badge */
.vh-bn-badge {
  position: absolute;
  top: 6px;
  right: 50%;
  transform: translateX(20px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--sky, #00AEEF);
  color: var(--black, #000);
  font-family: var(--font-data, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2.5px solid var(--black, #000);
}

/* FAB: ส่งผลงาน */
.vh-bn-fab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 62px;
  height: 64px;
  padding-bottom: 4px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.vh-bn-fab-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: linear-gradient(160deg, var(--sky, #00AEEF), var(--sky-deep, #0088CC));
  transform: skewX(-12deg);
  box-shadow: 0 0 0 5px var(--black, #000), 0 10px 28px rgba(0, 174, 239, 0.55);
  margin-top: -24px;
  transition: transform 0.15s ease;
}

.vh-bn-fab:active .vh-bn-fab-body {
  transform: skewX(-12deg) scale(0.93);
}

.vh-bn-fab-icon {
  width: 28px;
  height: 28px;
  color: #fff;
  transform: skewX(12deg);
}

.vh-bn-fab-pulse {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 62px;
  background: var(--sky, #00AEEF);
  transform-origin: center;
  animation: vhFabPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes vhFabPulse {
  0% { transform: translateX(-50%) skewX(-12deg) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) skewX(-12deg) scale(1.45); opacity: 0; }
}

.vh-bn-fab-label {
  font-family: var(--font-display, 'Archivo', 'Kanit', sans-serif);
  font-style: italic;
  font-size: 10px;
  font-weight: 700;
  color: var(--sky, #00AEEF);
  margin-top: 2px;
  white-space: nowrap;
}

/* Floating action button (mobile) */
.fab-button {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 1rem);
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-button:active {
  transform: scale(0.92);
}

@media (min-width: 1024px) {
  .fab-button {
    display: none;
  }
}

/* --- Pull-to-Refresh --- */
.ptr-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: #000000;
  color: #fff;
  border-radius: 0 0 16px 16px;
  font-size: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.ptr-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #00AEEF;
  border-radius: 50%;
}
.ptr-spinning {
  animation: ptrSpin 0.8s linear infinite;
}
@keyframes ptrSpin {
  to { transform: rotate(360deg); }
}

/* --- AI Loading Spinner --- */
.ai-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 174, 239, 0.2);
  border-top-color: #00AEEF;
  border-radius: 50%;
  animation: aiSpin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes aiSpin {
  to { transform: rotate(360deg); }
}

/* --- Success Checkmark --- */
[data-success-anim] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Lottie Container fallback --- */
[data-anim] {
  display: inline-block;
}

/* --- Card stagger fallback (no JS) --- */
[data-stagger] {
  opacity: 1;
}

/* --- Tilt card fallback (no JS) --- */
[data-tilt-card] {
  opacity: 1;
}

/* --- Podium block fallback (no JS) --- */
[data-podium-block] {
  transform: scaleY(1);
}

/* --- Feature card fallback (no JS) --- */
[data-feature-card] {
  opacity: 1;
}

/* --- Ranking is-me pulse fallback (CSS) --- */
.is-me {
  animation: isMePulse 1.6s ease-in-out infinite;
}
@keyframes isMePulse {
  0%, 100% { background-color: rgba(230, 247, 254, 1); }
  50% { background-color: rgba(230, 247, 254, 0.4); }
}

/* --- Hero Section --- */
.hero-section {
  scroll-margin-top: 0;
}
.hero-bg {
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-overlay {
  pointer-events: none;
}

/* --- Scroll Indicator --- */
.scroll-dot {
  will-change: transform, opacity;
}

/* --- Event Card Hover --- */
.event-card {
  will-change: transform, box-shadow;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--brand-primary);
  color: white;
}
.btn-primary:hover {
  background: #0088CC;
}
.btn-secondary {
  background: white;
  color: var(--brand-primary);
  border: 1px solid rgba(0, 174, 239, 0.3);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn-sm {
  min-height: 36px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}
.btn-success {
  background: var(--adm-green, #2E7D32);
  color: white;
}
.btn-success:hover {
  background: #1B5E20;
}
.btn-danger {
  background: #D32F2F;
  color: white;
}
.btn-danger:hover {
  background: #B71C1C;
}

/* Admin icon action buttons */
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: #6b7280;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.admin-action-btn:hover {
  background: rgba(0, 174, 239, 0.08);
  color: var(--brand-primary);
}
.admin-action-btn:active {
  transform: scale(0.95);
}

/* --- Badges / Pills --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Sticky section headers (mobile) --- */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Section reveal fallback --- */
[data-section-header],
[data-stat-item],
[data-feature-card],
[data-rank-card] {
  opacity: 1;
}

/* --- Mobile typography --- */
@media (max-width: 639px) {
  .page-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }
}

/* --- Safe area helpers --- */
.pb-safe {
  padding-bottom: var(--safe-bottom);
}
.mb-safe {
  margin-bottom: var(--safe-bottom);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .is-me { animation: none; }
  .skeleton-box { animation: none; }
  .ptr-spinning { animation: none; }
  .ai-spinner { animation: none; }
  .page-transition { animation: none; }
  .vh-bn-fab-pulse { animation: none; }
  html { scroll-behavior: auto; }
  .hero-bg { will-change: auto; }
}

/* ============================================================
   ADMIN DESIGN SYSTEM — iSuper FIT Backoffice (sporty theme)
   ============================================================ */
:root {
  --adm-bg: #F4F5F7;
  --adm-sidebar: #101216;
  --adm-sidebar-hover: rgba(255, 255, 255, 0.06);
  --adm-red: #00AEEF;
  --adm-red-hot: #33C2FF;
  --adm-amber: #FF8F00;
  --adm-green: #2E7D32;
  --adm-blue: #1565C0;
  --adm-ink: #000000;
}

.admin-body {
  background:
    radial-gradient(1200px 400px at 100% -10%, rgba(0, 174, 239, 0.05), transparent 60%),
    var(--adm-bg);
}

/* --- Sidebar --- */
.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(0, 174, 239, 0.12), transparent 220px),
    var(--adm-sidebar);
}
.admin-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--adm-red), #0077B6);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
  color: #fff;
  flex-shrink: 0;
}
.admin-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding: 0 0.75rem;
  margin: 1.1rem 0 0.35rem;
}
.admin-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.admin-nav-item svg { flex-shrink: 0; opacity: 0.8; }
.admin-nav-item:hover {
  background: var(--adm-sidebar-hover);
  color: #fff;
}
.admin-nav-item.active {
  background: linear-gradient(90deg, rgba(0, 174, 239, 0.22), rgba(0, 174, 239, 0.08));
  color: #fff;
  font-weight: 600;
}
.admin-nav-item.active::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 3px;
  background: var(--adm-red-hot);
  box-shadow: 0 0 8px rgba(51, 194, 255, 0.8);
}
.admin-nav-item.active svg { opacity: 1; color: var(--adm-red-hot); }

/* --- Page header --- */
.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
.admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--adm-red);
}
.admin-kicker::before {
  content: "";
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--adm-red), var(--adm-red-hot));
}
.admin-title {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--adm-ink);
  letter-spacing: 0;
}
.admin-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

/* --- Stat cards --- */
.stat-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--stat-accent, var(--adm-red));
}
.stat-card .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--stat-accent, var(--adm-red));
  background: color-mix(in srgb, var(--stat-accent, var(--adm-red)) 10%, white);
  margin-bottom: 0.6rem;
}
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--adm-ink);
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  margin-top: 0.15rem;
}
.stat-card.stat-alert { --stat-accent: var(--adm-amber); }
.stat-card.stat-alert .stat-value { color: var(--adm-amber); }

/* --- Tables --- */
.admin-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.admin-table thead th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  background: #F8F9FB;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}
.admin-table thead th.text-right { text-align: right; }
.admin-table tbody td {
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}
.admin-table tbody tr { transition: background-color 0.12s ease; }
.admin-table tbody tr:hover { background: rgba(0, 174, 239, 0.025); }
.admin-table .empty-row td {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive admin table: stacks into cards on small screens.
   Each td needs data-label="..." (td without it spans full width). */
@media (max-width: 767px) {
  .admin-table.responsive thead { display: none; }
  .admin-table.responsive tbody { display: block; }
  .admin-table.responsive tbody tr {
    display: block;
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .admin-table.responsive tbody tr:first-child { border-top: none; }
  .admin-table.responsive tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.3rem 0;
    border: none;
    text-align: right;
  }
  .admin-table.responsive tbody td::before {
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    text-align: left;
    flex-shrink: 0;
  }
  .admin-table.responsive tbody td:not([data-label]) {
    display: block;
    text-align: left;
    padding-top: 0.4rem;
  }
  .admin-table.responsive tbody td:not([data-label])::before { content: none; }
  .admin-table.responsive tbody tr.empty-row td {
    text-align: center;
    padding: 1.5rem 0;
  }
}

/* --- Status badges (dot style) --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.st-green { background: #E8F5E9; color: var(--adm-green); }
.status-badge.st-yellow { background: #FFF8E1; color: #B26A00; }
.status-badge.st-red { background: #FFEBEE; color: #D32F2F; }
.status-badge.st-gray { background: #F3F4F6; color: #6b7280; }
.status-badge.st-blue { background: #E3F2FD; color: var(--adm-blue); }
.status-badge.st-purple { background: #F3E5F5; color: #7B1FA2; }

/* --- Admin form input standard class --- */
.admin-input {
  width: 100%;
  border: 1px solid #d7dae0;
  border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-input:focus {
  border-color: var(--adm-red);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
  outline: none;
}

/* --- Admin breadcrumb --- */
.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.admin-breadcrumb a {
  color: #6b7280;
  transition: color 0.15s ease;
}
.admin-breadcrumb a:hover { color: var(--adm-red); }
.admin-breadcrumb .sep { color: #d1d5db; }
.admin-breadcrumb .current { color: var(--adm-ink); font-weight: 600; }

/* --- Admin empty state --- */
.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.admin-empty svg { color: #d1d5db; }
.admin-empty p { color: #9ca3af; font-size: 0.875rem; }

/* --- Admin loading button state --- */
.btn[data-loading] {
  pointer-events: none;
  opacity: 0.7;
}

/* --- Admin form controls --- */
.admin-main input[type="text"],
.admin-main input[type="email"],
.admin-main input[type="password"],
.admin-main input[type="number"],
.admin-main input[type="tel"],
.admin-main input[type="date"],
.admin-main input[type="datetime-local"],
.admin-main select,
.admin-main textarea {
  background: #fff;
  border: 1px solid #d7dae0;
}
.admin-main input:focus,
.admin-main select:focus,
.admin-main textarea:focus {
  border-color: var(--adm-red);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
  outline: none;
}
.admin-main input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--adm-red);
}
.admin-main label { color: #374151; }

/* --- Filter pills --- */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  transition: all 0.15s ease;
}
.filter-pill:hover { border-color: var(--adm-red); color: var(--adm-red); }
.filter-pill.active {
  background: var(--adm-red);
  border-color: var(--adm-red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.35);
}

/* --- Pill buttons (role/ban/delete in user management) --- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-pill:active { transform: scale(0.95); }
.btn-pill-purple {
  border-color: #D1C4E9;
  color: #7B1FA2;
  background: transparent;
}
.btn-pill-purple:hover { background: #F3E5F5; }
.btn-pill-red {
  border-color: #FFCDD2;
  color: #D32F2F;
  background: transparent;
}
.btn-pill-red:hover { background: #FFEBEE; }
.btn-pill-green {
  border-color: #C8E6C9;
  color: #2E7D32;
  background: transparent;
}
.btn-pill-green:hover { background: #E8F5E9; }
.btn-pill-gray {
  border-color: #E5E7EB;
  color: #6B7280;
  background: transparent;
}
.btn-pill-gray:hover { background: #F3F4F6; }

/* --- Admin toast --- */
.admin-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 90;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.admin-toast.hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.admin-toast.ok { background: var(--adm-green, #2E7D32); }
.admin-toast.err { background: #D32F2F; }

/* --- Medal colors (ranking) --- */
.medal-gold { background: #FFB300; }
.medal-silver { background: #9E9E9E; }
.medal-bronze { background: #8D6E63; }

/* --- Tabs --- */
.admin-tab {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.admin-tab:hover { color: var(--adm-ink); }
.admin-tab.active { color: var(--adm-red); border-color: var(--adm-red); }
.admin-tab.has-error {
  color: #0077B6;
}
.admin-tab.has-error::after {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--adm-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  vertical-align: 1px;
}

/* --- Section card header --- */
.admin-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--adm-ink);
  margin-bottom: 1rem;
}
.admin-card-title::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--adm-red), var(--adm-red-hot));
}

/* --- Flash messages --- */
.admin-flash {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.admin-flash.ok { background: #E8F5E9; color: var(--adm-green); border-color: #C8E6C9; }
.admin-flash.err { background: #FFEBEE; color: #D32F2F; border-color: #FFCDD2; }

/* --- Modal form styling --- */
#modal-body input[type="text"],
#modal-body input[type="email"],
#modal-body input[type="password"],
#modal-body input[type="number"],
#modal-body input[type="datetime-local"],
#modal-body input[type="file"],
#modal-body select,
#modal-body textarea {
  width: 100%;
  border: 1px solid #d7dae0;
  border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#modal-body input:focus,
#modal-body select:focus,
#modal-body textarea:focus {
  border-color: var(--adm-red);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
  outline: none;
}
#modal-body label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

/* ============================================================
   FRONTEND — shared sporty components
   ============================================================ */

/* Auto-switching brand logo — shows white logo on dark backgrounds, dark logo on light */
.auto-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.auto-logo-img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}
.auto-logo-dark { display: none; }

/* Dark backgrounds → show white logo */
.bg-black .auto-logo-light,
.admin-sidebar .auto-logo-light,
[data-dark-bg] .auto-logo-light,
.vh-dark .auto-logo-light,
.vh-cta .auto-logo-light,
.vh-hud .auto-logo-light,
.vh-ticker .auto-logo-light,
.cookie-banner .auto-logo-light,
.vh-phero .auto-logo-light,
.vh-ehero .auto-logo-light,
.vh-cover .auto-logo-light,
.vh-el-phero .auto-logo-light,
.vh-mob-header .auto-logo-light,
.vh-desktop-header .auto-logo-light,
.vh-bottom-nav .auto-logo-light,
.vh-specbar .auto-logo-light,
.vh-side-card.dark .auto-logo-light { display: none; }
.bg-black .auto-logo-dark,
.admin-sidebar .auto-logo-dark,
[data-dark-bg] .auto-logo-dark,
.vh-dark .auto-logo-dark,
.vh-cta .auto-logo-dark,
.vh-hud .auto-logo-dark,
.vh-ticker .auto-logo-dark,
.cookie-banner .auto-logo-dark,
.vh-phero .auto-logo-dark,
.vh-ehero .auto-logo-dark,
.vh-cover .auto-logo-dark,
.vh-el-phero .auto-logo-dark,
.vh-mob-header .auto-logo-dark,
.vh-desktop-header .auto-logo-dark,
.vh-bottom-nav .auto-logo-dark,
.vh-specbar .auto-logo-dark,
.vh-side-card.dark .auto-logo-dark { display: block; }

/* ============================================================
   Auto-switching text colors — dark text on light bg, white on dark bg
   Usage:  .text-auto  .text-auto-muted  .text-auto-subtle
   Add  data-dark-bg  to any container to flip text colors
   ============================================================ */
:root {
  --auto-fg: #0D0F12;
  --auto-fg-muted: #6B7280;
  --auto-fg-subtle: #9CA3AF;
  --auto-border: rgba(0,0,0,.10);
}

/* Dark background containers → switch to light text */
.bg-black,
.admin-sidebar,
[data-dark-bg],
.vh-dark,
.vh-cta,
.vh-hud,
.vh-ticker,
.cookie-banner,
.vh-phero,
.vh-ehero,
.vh-cover,
.vh-el-phero,
.vh-mob-header,
.vh-desktop-header,
.vh-bottom-nav,
.vh-specbar,
.vh-side-card.dark {
  --auto-fg: rgba(255,255,255,.88);
  --auto-fg-muted: rgba(255,255,255,.55);
  --auto-fg-subtle: rgba(255,255,255,.40);
  --auto-border: rgba(255,255,255,.10);
}

/* Utility classes — !important to override Tailwind CDN injection order */
.text-auto { color: var(--auto-fg) !important; }
.text-auto-muted { color: var(--auto-fg-muted) !important; }
.text-auto-subtle { color: var(--auto-fg-subtle) !important; }
.border-auto { border-color: var(--auto-border) !important; }

/* Headings & body text inside dark backgrounds automatically switch to light text */
.bg-black h1, .bg-black h2, .bg-black h3, .bg-black h4, .bg-black h5, .bg-black h6,
.admin-sidebar h1, .admin-sidebar h2, .admin-sidebar h3, .admin-sidebar h4, .admin-sidebar h5, .admin-sidebar h6,
[data-dark-bg] h1, [data-dark-bg] h2, [data-dark-bg] h3, [data-dark-bg] h4, [data-dark-bg] h5, [data-dark-bg] h6,
.vh-dark h1, .vh-dark h2, .vh-dark h3, .vh-dark h4, .vh-dark h5, .vh-dark h6,
.vh-cta h1, .vh-cta h2, .vh-cta h3, .vh-cta h4, .vh-cta h5, .vh-cta h6,
.vh-hud h1, .vh-hud h2, .vh-hud h3, .vh-hud h4, .vh-hud h5, .vh-hud h6,
.vh-ticker h1, .vh-ticker h2, .vh-ticker h3, .vh-ticker h4, .vh-ticker h5, .vh-ticker h6,
.cookie-banner h1, .cookie-banner h2, .cookie-banner h3, .cookie-banner h4, .cookie-banner h5, .cookie-banner h6,
.vh-phero h1, .vh-phero h2, .vh-phero h3, .vh-phero h4, .vh-phero h5, .vh-phero h6,
.vh-ehero h1, .vh-ehero h2, .vh-ehero h3, .vh-ehero h4, .vh-ehero h5, .vh-ehero h6,
.vh-cover h1, .vh-cover h2, .vh-cover h3, .vh-cover h4, .vh-cover h5, .vh-cover h6,
.vh-el-phero h1, .vh-el-phero h2, .vh-el-phero h3, .vh-el-phero h4, .vh-el-phero h5, .vh-el-phero h6,
.vh-mob-header h1, .vh-mob-header h2, .vh-mob-header h3, .vh-mob-header h4, .vh-mob-header h5, .vh-mob-header h6,
.vh-bottom-nav h1, .vh-bottom-nav h2, .vh-bottom-nav h3, .vh-bottom-nav h4, .vh-bottom-nav h5, .vh-bottom-nav h6,
.vh-specbar h1, .vh-specbar h2, .vh-specbar h3, .vh-specbar h4, .vh-specbar h5, .vh-specbar h6,
.vh-side-card.dark h1, .vh-side-card.dark h2, .vh-side-card.dark h3, .vh-side-card.dark h4, .vh-side-card.dark h5, .vh-side-card.dark h6,
.bg-black p, .bg-black li, .bg-black dd, .bg-black dt,
.admin-sidebar p, .admin-sidebar li, .admin-sidebar dd, .admin-sidebar dt,
[data-dark-bg] p, [data-dark-bg] li, [data-dark-bg] dd, [data-dark-bg] dt,
.vh-dark p, .vh-dark li, .vh-dark dd, .vh-dark dt,
.vh-cta p, .vh-cta li, .vh-cta dd, .vh-cta dt,
.vh-hud p, .vh-hud li, .vh-hud dd, .vh-hud dt,
.vh-ticker p, .vh-ticker li, .vh-ticker dd, .vh-ticker dt,
.cookie-banner p, .cookie-banner li, .cookie-banner dd, .cookie-banner dt,
.vh-phero p, .vh-phero li, .vh-phero dd, .vh-phero dt,
.vh-ehero p, .vh-ehero li, .vh-ehero dd, .vh-ehero dt,
.vh-cover p, .vh-cover li, .vh-cover dd, .vh-cover dt,
.vh-el-phero p, .vh-el-phero li, .vh-el-phero dd, .vh-el-phero dt,
.vh-mob-header p, .vh-mob-header li, .vh-mob-header dd, .vh-mob-header dt,
.vh-bottom-nav p, .vh-bottom-nav li, .vh-bottom-nav dd, .vh-bottom-nav dt,
.vh-specbar p, .vh-specbar li, .vh-specbar dd, .vh-specbar dt,
.vh-side-card.dark p, .vh-side-card.dark li, .vh-side-card.dark dd, .vh-side-card.dark dt {
  color: var(--auto-fg);
}

/* Preserve brand-sky color on <em> inside headings even on dark backgrounds */
.bg-black h1 em, .bg-black h2 em, .bg-black h3 em,
.admin-sidebar h1 em, .admin-sidebar h2 em, .admin-sidebar h3 em,
[data-dark-bg] h1 em, [data-dark-bg] h2 em, [data-dark-bg] h3 em,
.vh-dark h1 em, .vh-dark h2 em, .vh-dark h3 em,
.vh-cta h1 em, .vh-cta h2 em, .vh-cta h3 em,
.vh-hud h1 em, .vh-hud h2 em, .vh-hud h3 em,
.vh-ticker h1 em, .vh-ticker h2 em, .vh-ticker h3 em,
.cookie-banner h1 em, .cookie-banner h2 em, .cookie-banner h3 em,
.vh-phero h1 em, .vh-phero h2 em, .vh-phero h3 em,
.vh-ehero h1 em, .vh-ehero h2 em, .vh-ehero h3 em,
.vh-cover h1 em, .vh-cover h2 em, .vh-cover h3 em,
.vh-el-phero h1 em, .vh-el-phero h2 em, .vh-el-phero h3 em,
.vh-mob-header h1 em, .vh-mob-header h2 em, .vh-mob-header h3 em,
.vh-bottom-nav h1 em, .vh-bottom-nav h2 em, .vh-bottom-nav h3 em,
.vh-specbar h1 em, .vh-specbar h2 em, .vh-specbar h3 em,
.vh-side-card.dark h1 em, .vh-side-card.dark h2 em, .vh-side-card.dark h3 em {
  color: var(--sky);
}

/* Brand logo mark (lightning bolt) — shared by top-nav */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00AEEF, #0077B6);
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.35);
  color: #fff;
  flex-shrink: 0;
}

/* Sport type chip */
.sport-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: #E6F7FE;
  color: #0077B6;
  border: 1px solid rgba(0, 174, 239, 0.15);
  white-space: nowrap;
}

/* Capacity progress bar on event cards */
.capacity-bar {
  height: 5px;
  border-radius: 3px;
  background: #eef0f3;
  overflow: hidden;
}
.capacity-bar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #00AEEF, #0077B6);
  transition: width 0.6s ease;
}
.capacity-bar.is-full > span {
  background: #9ca3af;
}

/* Ended event card treatment */
.event-card.is-ended img {
  filter: grayscale(0.7);
  opacity: 0.85;
}

/* ============================================================
   HOMEPAGE REDESIGN v2 — Futuristic / Glassmorphism / Mesh
   ============================================================ */

/* --- Display font class (English only, sporty condensed) --- */
.display-en {
  font-family: var(--font-display);
  font-stretch: condensed;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 700;
}

/* --- Glassmorphism Utilities --- */
.glass-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 239, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.glass-card-dark {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.glass-card-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 239, 0.25);
  background: rgba(255, 255, 255, 0.07);
}
.glass-badge {
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.glass-btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #00AEEF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.glass-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* --- Noise Texture Overlay --- */
.hero-noise {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  mix-blend-mode: overlay;
}

/* --- Grid Lines Overlay --- */
.hero-grid-lines {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* --- Gradient Mesh Blobs (Hero) --- */
.hero-mesh {
  z-index: 5;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 174, 239, 0.25);
  top: -10%;
  left: -5%;
  animation: blobFloat1 12s ease-in-out infinite;
}
.hero-blob-2 {
  width: 350px;
  height: 350px;
  background: rgba(0, 119, 182, 0.15);
  bottom: 10%;
  right: -5%;
  animation: blobFloat2 15s ease-in-out infinite;
}
.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: rgba(0, 174, 239, 0.12);
  top: 40%;
  left: 50%;
  animation: blobFloat3 18s ease-in-out infinite;
}
@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 80px) scale(0.95); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -50px) scale(1.15); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -60px) scale(0.9); }
}

/* --- Gradient Text --- */
.hero-gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 40%, rgba(0, 174, 239, 0.8) 70%, #00AEEF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Stats Mesh Blobs --- */
.stats-mesh {
  z-index: 0;
}
.stats-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.stats-blob-1 {
  width: 300px;
  height: 300px;
  background: rgba(0, 174, 239, 0.08);
  top: -50%;
  left: 10%;
}
.stats-blob-2 {
  width: 250px;
  height: 250px;
  background: rgba(0, 119, 182, 0.05);
  bottom: -50%;
  right: 10%;
}

/* --- Stat Number Gradient --- */
.stat-number {
  background: linear-gradient(135deg, #FFFFFF 0%, #00AEEF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Page Load Progress Bar --- */
.page-load-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #00AEEF, #0077B6);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9999;
  will-change: transform;
}

/* --- Page Load Overlay Wipe --- */
.page-load-overlay {
  position: fixed;
  inset: 0;
  background: var(--brand-primary);
  z-index: 9998;
  pointer-events: none;
  will-change: transform;
}

/* --- Scroll Progress Indicator --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #00AEEF, #0077B6);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9997;
  will-change: transform;
}

/* --- Custom Cursor (desktop) --- */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 174, 239, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9996;
  will-change: transform;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
  mix-blend-mode: difference;
}
.custom-cursor.cursor-grow {
  width: 40px;
  height: 40px;
  border-color: rgba(0, 174, 239, 0.8);
}

/* --- Hero: Oversized Typography --- */
.hero-title {
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  will-change: transform, opacity;
}
.hero-title .split-char {
  display: inline-block;
  will-change: transform, opacity;
}
.hero-title .split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

/* --- Hero: Kinetic Marquee --- */
.hero-marquee {
  height: clamp(2rem, 5vw, 4rem);
}
.hero-marquee-track,
.hero-marquee-track-reverse {
  will-change: transform;
}
.hero-marquee-text {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-right: 2rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-stretch: condensed;
}

/* --- Hero: Background scale on load --- */
.hero-bg {
  transform: scale(1.1);
  will-change: transform;
}

/* --- Stats: Accent Line --- */
.stat-block {
  will-change: transform, opacity;
}
.stat-accent-line {
  will-change: transform;
  transform: scaleX(0);
}

/* --- Bento Grid --- */
.bento-grid {
  grid-auto-rows: 1fr;
}
.bento-featured {
  grid-row: span 2;
}
@media (max-width: 1023px) {
  .bento-featured {
    grid-row: span 1;
    grid-column: span 1;
  }
}

/* --- Event Cards: 3D Tilt + Glow --- */
[data-tilt-card] {
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
[data-tilt-card]:hover {
  border-color: rgba(0, 174, 239, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}
[data-tilt-card] .event-card-glow {
  box-shadow: 0 0 0 0 rgba(0, 174, 239, 0);
  transition: box-shadow 0.3s ease;
  border-radius: 1rem;
}
[data-tilt-card]:hover .event-card-glow {
  box-shadow: inset 0 0 0 2px rgba(0, 174, 239, 0.4), 0 0 24px 4px rgba(0, 174, 239, 0.12);
}
[data-tilt-card] img {
  will-change: transform;
}

/* --- Podium --- */
.podium-container {
  min-height: 200px;
  padding-top: 2rem;
  perspective: 1000px;
}
.podium-item {
  will-change: transform, opacity;
}
.podium-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) {
  .podium-avatar {
    width: 72px;
    height: 72px;
  }
}
.podium-avatar-placeholder {
  background: linear-gradient(135deg, #00AEEF, #0077B6);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  border: 3px solid #fff;
}
.podium-glow {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
  filter: blur(8px);
  animation: podiumGlowPulse 2s ease-in-out infinite;
  will-change: opacity;
}
@keyframes podiumGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}
.podium-crown {
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
  animation: crownBob 3s ease-in-out infinite;
}
@keyframes crownBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}
.podium-block {
  background: linear-gradient(180deg, #000000, #0a0a0e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: scaleY(0);
  transform-origin: bottom;
  will-change: transform;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.podium-item[data-podium-rank="1"] .podium-block {
  background: linear-gradient(180deg, #FFD700, #C9A227);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 -4px 30px rgba(255, 215, 0, 0.25);
}
.podium-item[data-podium-rank="2"] .podium-block {
  background: linear-gradient(180deg, #C0C0C0, #9A9A9A);
  box-shadow: 0 -4px 20px rgba(192, 192, 192, 0.2);
}
.podium-item[data-podium-rank="3"] .podium-block {
  background: linear-gradient(180deg, #CD7F32, #A05A2C);
  box-shadow: 0 -4px 20px rgba(205, 127, 50, 0.2);
}

/* --- Features: Grid Layout --- */
.features-grid {
  will-change: transform;
}
.feature-card-horizontal {
  will-change: transform, opacity;
}

/* --- Features: Card Glow --- */
.feature-card-glow {
  background: radial-gradient(circle at 50% 0%, rgba(0, 174, 239, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card-horizontal:hover .feature-card-glow {
  opacity: 1;
}

/* --- Features: Stroke Animate --- */
[data-stroke-animate] path,
[data-stroke-animate] circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  will-change: stroke-dashoffset;
}

/* --- CTA: Animated Gradient Background --- */
.cta-gradient-bg {
  background: linear-gradient(135deg, #00AEEF 0%, #0077B6 30%, #00AEEF 60%, #005B8C 100%);
  background-size: 200% 200%;
  animation: ctaGradientShift 8s ease infinite;
}
@keyframes ctaGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- CTA: Floating Blobs --- */
.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.cta-blob-1 {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.12);
  top: -20%;
  right: 10%;
  animation: ctaBlobFloat1 10s ease-in-out infinite;
}
.cta-blob-2 {
  width: 250px;
  height: 250px;
  background: rgba(255, 143, 0, 0.15);
  bottom: -10%;
  left: 5%;
  animation: ctaBlobFloat2 12s ease-in-out infinite;
}
.cta-blob-3 {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  top: 30%;
  left: 60%;
  animation: ctaBlobFloat3 14s ease-in-out infinite;
}
@keyframes ctaBlobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes ctaBlobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(0.9); }
}
@keyframes ctaBlobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 50px) scale(1.15); }
}

/* --- CTA: Magnetic Button --- */
[data-magnetic] {
  will-change: transform;
  transition: transform 0.2s ease;
}

/* --- Bottom Nav: Active Indicator (legacy — hidden, replaced by .vh-bn-tab-indicator) --- */
.nav-indicator {
  display: none !important;
}

/* --- Editorial Section Number --- */
[data-section-header] .display-en {
  font-size: 0.75rem;
  font-weight: 800;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 174, 239, 0.3);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 174, 239, 0.5);
}

/* --- Reduced Motion: disable all new animations --- */
@media (prefers-reduced-motion: reduce) {
  .hero-title .split-char,
  .hero-marquee-track,
  .hero-marquee-track-reverse,
  .hero-bg,
  .hero-blob,
  .stat-accent-line,
  [data-tilt-card],
  .podium-block,
  .podium-glow,
  .podium-crown,
  .feature-card-horizontal,
  .features-grid,
  [data-stroke-animate] path,
  [data-stroke-animate] circle,
  [data-magnetic],
  .page-load-bar,
  .page-load-overlay,
  .scroll-progress,
  .custom-cursor,
  .nav-indicator,
  .cta-blob,
  .cta-gradient-bg,
  .stats-blob {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .hero-bg { transform: scale(1) !important; }
  .podium-block { transform: scaleY(1) !important; }
  .stat-accent-line { transform: scaleX(1) !important; }
  [data-stroke-animate] path,
  [data-stroke-animate] circle {
    stroke-dashoffset: 0 !important;
  }
  .page-load-bar,
  .page-load-overlay,
  .scroll-progress,
  .custom-cursor {
    display: none !important;
  }
  .hero-gradient-text {
    -webkit-text-fill-color: #FFFFFF !important;
    color: #FFFFFF !important;
  }
  .stat-number {
    -webkit-text-fill-color: #FFFFFF !important;
    color: #FFFFFF !important;
  }
}

/* ============================================================
   Profile Page — Mobile-first redesign
   ============================================================ */

/* --- Header Card --- */
.profile-header-card {
  position: relative;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.profile-header-bg {
  height: 100px;
  background: linear-gradient(135deg, #0A1A2F 0%, #142A3F 40%, #00AEEF 100%);
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.profile-cover-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.profile-cover-btn:hover {
  background: rgba(0,0,0,0.7);
}
.cover-color-picker {
  position: absolute;
  top: 48px;
  right: 10px;
  z-index: 3;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 16px;
  min-width: 220px;
}
.cover-color-picker-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}
.cover-color-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #666;
}
.cover-color-field input[type="color"] {
  width: 48px;
  height: 48px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  padding: 2px;
  background: #fff;
}
.cover-color-picker-actions {
  display: flex;
  gap: 8px;
}
.cover-color-save-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: 10px;
  background: #00AEEF;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.cover-color-save-btn:hover {
  background: #0088CC;
}
.cover-color-cancel-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: 10px;
  background: #f5f5f5;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.cover-color-cancel-btn:hover {
  background: #e0e0e0;
}
.profile-header-bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  transform: translate(40%, -40%);
}
.profile-header-noise {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.profile-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 24px;
  margin-top: -44px;
  position: relative;
  z-index: 1;
}
.profile-avatar-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #00AEEF, #0077B6);
  box-shadow: 0 4px 16px rgba(0,174,239,0.25);
}
.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid #fff;
}
.profile-camera-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #00AEEF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,174,239,0.4);
  transition: background 0.2s;
}
.profile-camera-btn:hover {
  background: #0088CC;
}
.profile-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: #000000;
  margin-top: 12px;
}
.profile-email {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 2px;
}
.profile-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #F3F4F6;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4B5563;
}

/* --- Tab Bar --- */
.profile-tab-bar {
  display: flex;
  gap: 4px;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 16px;
}
.profile-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
  white-space: nowrap;
}
.profile-tab-btn.active {
  background: #fff;
  color: #00AEEF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.profile-tab-btn:not(.active):hover {
  color: #000000;
}
.profile-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  background: #E6F7FE;
  color: #00AEEF;
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- Form Card --- */
.profile-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  max-width: 480px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .profile-form-card {
    padding: 28px;
  }
}
.profile-section-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: -4px;
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}
.profile-input {
  width: 100%;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.9375rem;
  color: #000000;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
}
.profile-input:focus {
  outline: none;
  border-color: #00AEEF;
  box-shadow: 0 0 0 3px rgba(0,174,239,0.1);
}
.profile-input::placeholder {
  color: #9CA3AF;
}
.profile-input-disabled {
  background: #F9FAFB;
  color: #9CA3AF;
  border-color: #F3F4F6;
  cursor: not-allowed;
}
.profile-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.profile-input-with-unit {
  padding-right: 38px;
}
.profile-input-unit {
  position: absolute;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9CA3AF;
  pointer-events: none;
}
.profile-bmi-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #F9FAFB;
  border-radius: 12px;
}
.profile-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #F9FAFB;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 52px;
}
.profile-link-row:hover {
  background: #F3F4F6;
}
.profile-save-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding-top: 8px;
  z-index: 5;
}
.profile-save-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: #00AEEF;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-height: 52px;
  box-shadow: 0 4px 12px rgba(0,174,239,0.25);
}
.profile-save-btn:hover {
  background: #0088CC;
}
.profile-save-btn:active {
  transform: scale(0.98);
}
.profile-logout-btn {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}
.profile-logout-btn:hover {
  color: #00AEEF;
  background: #E6F7FE;
}

/* --- Events Tab --- */
.profile-empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.profile-btn-primary {
  background: #00AEEF;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-btn-primary:hover {
  background: #0088CC;
}
.profile-event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 1024px) {
  .profile-event-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
.profile-event-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.profile-event-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
@media (min-width: 640px) {
  .profile-event-card {
    padding: 20px;
  }
}
.profile-event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.profile-event-title {
  font-weight: 700;
  font-size: 1rem;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.profile-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.profile-status-approved {
  background: #DCFCE7;
  color: #15803D;
}
.profile-status-pending {
  background: #FEF3C7;
  color: #B45309;
}
.profile-status-rejected {
  background: #FEE2E2;
  color: #B91C1C;
}
.profile-reject-reason {
  margin-top: 8px;
  padding: 8px 12px;
  background: #FEE2E2;
  border-radius: 10px;
  font-size: 0.75rem;
  color: #B91C1C;
  line-height: 1.4;
}
.profile-event-qr-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  background: #F9FAFB;
  border-radius: 14px;
}
.profile-qr-box {
  width: 80px;
  height: 80px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-qr-info {
  font-size: 0.8125rem;
  color: #4B5563;
  min-width: 0;
}
.profile-qr-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #000000;
}
.profile-quota-row {
  margin-top: 6px;
}
.profile-quota-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
}
.profile-quota-ok {
  background: #DCFCE7;
  color: #15803D;
}
.profile-quota-done {
  background: #FEE2E2;
  color: #B91C1C;
}
.profile-event-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.profile-btn-submit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #00AEEF;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  min-height: 48px;
}
.profile-btn-submit:hover {
  background: #0088CC;
}
.profile-btn-submit:active {
  transform: scale(0.98);
}
.profile-btn-report {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #F3F4F6;
  color: #000000;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 48px;
}
.profile-btn-report:hover {
  background: #E5E7EB;
}
.profile-section-subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  color: #000000;
  margin-top: 28px;
  margin-bottom: 12px;
}
.profile-joinable-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 640px) {
  .profile-joinable-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .profile-joinable-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.profile-joinable-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  text-decoration: none;
  transition: box-shadow 0.2s;
  min-height: 52px;
}
.profile-joinable-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.profile-joinable-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #E6F7FE;
  color: #00AEEF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-infographic-card {
  display: block;
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #E6F7FE 0%, #FFFFFF 100%);
  border: 1px solid rgba(0,174,239,0.1);
  border-radius: 16px;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.profile-infographic-card:hover {
  box-shadow: 0 4px 16px rgba(0,174,239,0.08);
}

/* --- Profile reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .profile-camera-btn,
  .profile-save-btn,
  .profile-btn-submit,
  .profile-btn-report,
  .profile-tab-btn,
  .profile-joinable-card,
  .profile-event-card,
  .profile-infographic-card {
    transition: none !important;
  }
}

/* ============================================================
   SPORT THEME — Typography & Visual Enhancements
   ============================================================ */

/* Sport display headings — condensed uppercase for English labels */
.sport-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Sport kicker — small accent label above section titles */
.sport-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-primary);
}
.sport-kicker::before {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent2));
}

/* Sport stat number — bold condensed for metrics */
.sport-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Sport section title — bold tight tracking */
.sport-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

/* Sport accent bar — left border accent for cards */
.sport-accent-bar {
  position: relative;
}
.sport-accent-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent2));
}

/* Sport emphasis — highlighted text with accent underline */
.sport-emphasis {
  font-weight: 700;
  color: var(--brand-primary);
}

/* Sport tag — pill badge for sport types */
.sport-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--brand-accent1);
  color: var(--brand-accent2);
}

/* Sport number badge — circular number with accent */
.sport-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--brand-primary);
  color: #fff;
}

/* Admin sport font overrides */
.admin-main .admin-title {
  font-family: var(--font-display);
  font-weight: 800;
}
.admin-main .admin-kicker {
  font-family: var(--font-display);
}
.admin-main .stat-card .stat-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.admin-main .admin-table thead th {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

/* Button sport styling */
.btn-primary {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
}

/* Heading defaults for sport feel */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

/* Tabular numbers for all numeric displays */
[data-count-up],
.stat-number,
.podium-score {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   VELOCITY HUD — Homepage Design System
   ขาว = สนาม / ฟ้า = ความเร็ว / ดำ = พลัง
   Signature: มุมตัด 12° (speed cut) + telemetry แบบนาฬิกากีฬา
   Scoped under .vh to avoid conflicts with existing styles
   ============================================================ */
.vh {
  --vh-sky: #00AEEF;
  --vh-sky-deep: #0088CC;
  --vh-sky-tint: #E6F7FE;
  --vh-black: #000000;
  --vh-ink: #0D0F12;
  --vh-gray: #6B7280;
  --vh-line: #EAECEF;
  --vh-cut: 12deg;
  --vh-radius: 18px;
  --vh-font-display: 'Archivo', 'Kanit', sans-serif;
  --vh-font-body: 'Sarabun', 'Kanit', sans-serif;
  --vh-font-data: 'JetBrains Mono', monospace;
  font-family: var(--vh-font-body);
  color: var(--vh-ink);
  line-height: 1.65;
  overflow-x: hidden;
}
.vh img { max-width: 100%; display: block; }
.vh a { color: inherit; text-decoration: none; }
.vh ::selection { background: var(--vh-sky); color: #fff; }

/* ---------- utility ---------- */
.vh .vh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.vh .vh-display { font-family: var(--vh-font-display); }
.vh .vh-data { font-family: var(--vh-font-data); font-variant-numeric: tabular-nums; }
.vh .vh-eyebrow {
  font-family: var(--vh-font-data); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--vh-sky);
  display: inline-flex; align-items: center; gap: 8px;
}
.vh .vh-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--vh-sky); transform: skewX(calc(var(--vh-cut) * -1)) }

/* speed-cut shapes */
.vh .vh-cut-r { clip-path: polygon(0 0,100% 0,calc(100% - 14px) 100%,0 100%) }
.vh .vh-cut-l { clip-path: polygon(14px 0,100% 0,100% 100%,0 100%) }

/* ---------- buttons (scoped to override existing .btn) ---------- */
.vh .btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--vh-font-display); font-weight: 800; font-size: 15px;
  padding: 15px 30px; border: none; cursor: pointer; position: relative;
  transform: skewX(calc(var(--vh-cut) * -1)); transition: .25s;
  border-radius: 0; min-height: auto;
}
.vh .btn > span { display: inline-flex; align-items: center; gap: 10px; transform: skewX(var(--vh-cut)) }
.vh .btn-primary { background: var(--vh-sky); color: #fff; box-shadow: 0 8px 24px rgba(0,174,239,.35) }
.vh .btn-primary:hover { background: var(--vh-sky-deep); transform: skewX(calc(var(--vh-cut) * -1)) translateY(-2px); box-shadow: 0 12px 32px rgba(0,174,239,.45) }
.vh .btn-dark { background: var(--vh-black); color: #fff }
.vh .btn-dark:hover { background: #1a1d22; transform: skewX(calc(var(--vh-cut) * -1)) translateY(-2px) }
.vh .btn-ghost { background: transparent; color: var(--vh-ink); box-shadow: inset 0 0 0 2px var(--vh-ink); backdrop-filter: none; }
.vh .btn-ghost:hover { background: var(--vh-ink); color: #fff }
.vh .btn-ghost-w { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6) }
.vh .btn-ghost-w:hover { background: #fff; color: var(--vh-black) }

/* ============================================================
   HERO
   ============================================================ */
.vh .vh-hero {
  position: relative; padding: 72px 0 0; overflow: hidden;
  background: radial-gradient(900px 500px at 85% -10%, rgba(0,174,239,.10), transparent 60%), var(--vh-sky-tint);
}
.vh .vh-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(102deg, transparent 0 180px, rgba(0,0,0,.035) 180px 182px);
}
.vh .vh-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 2 }
.vh .vh-hero h1 {
  font-family: var(--vh-font-display); font-weight: 900; font-style: italic;
  font-size: clamp(42px, 7.5vw, 96px); line-height: .92; letter-spacing: -.035em;
  text-transform: uppercase; color: var(--vh-black);
}
.vh .vh-hero h1 .row2 { color: transparent; -webkit-text-stroke: 2px var(--vh-black) }
.vh .vh-hero h1 .row3 { color: var(--vh-sky) }
.vh .vh-hero-sub { margin-top: 22px; font-size: 17px; color: var(--vh-gray); max-width: 480px }
.vh .vh-hero-sub b { color: var(--vh-ink) }
.vh .vh-hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap }
.vh .vh-hero-proof { margin-top: 44px; display: flex; gap: 0; border-top: 1px solid var(--vh-line) }
.vh .vh-proof { padding: 18px 28px 26px 0; border-right: 1px solid var(--vh-line); margin-right: 28px }
.vh .vh-proof:last-child { border: none; margin: 0 }
.vh .vh-proof .n { font-family: var(--vh-font-data); font-size: 26px; font-weight: 700; color: var(--vh-black) }
.vh .vh-proof .n em { color: var(--vh-sky); font-style: normal }
.vh .vh-proof .l { font-size: 12.5px; color: var(--vh-gray); margin-top: 2px }

/* HUD card */
.vh .vh-hud {
  background: var(--vh-black); color: #fff; padding: 26px 26px 22px; position: relative;
  clip-path: polygon(0 0,100% 0,100% calc(100% - 26px),calc(100% - 26px) 100%,0 100%);
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  transform: rotate(-1.5deg);
}
.vh .vh-hud-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px }
.vh .vh-hud-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--vh-font-data); font-size: 11px; letter-spacing: .18em; color: var(--vh-sky) }
.vh .vh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vh-sky); animation: vhPulse 1.4s infinite }
@keyframes vhPulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,174,239,.6) } 50% { opacity: .6; box-shadow: 0 0 0 7px rgba(0,174,239,0) } }
.vh .vh-hud-metric { display: flex; align-items: baseline; gap: 10px }
.vh .vh-hud-metric .big { font-family: var(--vh-font-data); font-weight: 700; font-size: 64px; line-height: 1; color: #fff }
.vh .vh-hud-metric .unit { font-family: var(--vh-font-data); font-size: 13px; color: rgba(255,255,255,.55) }
.vh .vh-hud-label { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 4px }
.vh .vh-hud-bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin: 20px 0 16px }
.vh .vh-hud-bars i { flex: 1; background: linear-gradient(to top, var(--vh-sky), rgba(0,174,239,.25)); transform-origin: bottom; animation: vhBar 2.6s ease-in-out infinite }
@keyframes vhBar { 0%,100% { transform: scaleY(var(--h)) } 50% { transform: scaleY(calc(var(--h) * .55)) } }
.vh .vh-hud-row { display: flex; justify-content: space-between; font-family: var(--vh-font-data); font-size: 12px; color: rgba(255,255,255,.7); padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.15) }
.vh .vh-hud-row b { color: var(--vh-sky) }
.vh .vh-hud-badge {
  position: absolute; top: -16px; right: 22px; background: var(--vh-sky); color: #fff;
  font-family: var(--vh-font-data); font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  padding: 7px 14px; transform: skewX(calc(var(--vh-cut) * -1));
}
@media(max-width:900px) {
  .vh .vh-hero-grid { grid-template-columns: 1fr; gap: 40px }
  .vh .vh-hud { transform: rotate(0); max-width: 420px }
  .vh .vh-hero-proof { flex-wrap: wrap }
}

/* ---------- ticker ---------- */
.vh .vh-ticker { background: var(--vh-black); color: #fff; overflow: hidden; padding: 13px 0; border-top: 3px solid var(--vh-sky) }
.vh .vh-ticker-track { display: flex; gap: 48px; white-space: nowrap; animation: vhSlide 26s linear infinite; width: max-content }
@keyframes vhSlide { to { transform: translateX(-50%) } }
.vh .vh-ticker span { font-family: var(--vh-font-data); font-size: 12.5px; letter-spacing: .12em; display: inline-flex; align-items: center; gap: 48px }
.vh .vh-ticker em { color: var(--vh-sky); font-style: normal }

/* ============================================================
   SECTIONS
   ============================================================ */
.vh .vh-sec { padding: 88px 0 }
.vh .vh-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px }
.vh .vh-sec-head h2 { font-family: var(--vh-font-display); font-weight: 900; font-style: italic; font-size: clamp(30px,4.4vw,46px); letter-spacing: 0; line-height: 1.15; text-transform: uppercase; margin-top: 10px }
.vh .vh-sec-head h2 em { color: var(--vh-sky); font-style: italic }
.vh .vh-link-more { font-weight: 700; font-size: 14px; color: var(--vh-sky); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: .2s }
.vh .vh-link-more:hover { gap: 10px }
.vh .vh-link-more svg { transition: .2s }

/* ============================================================
   EVENTS — การ์ดมุมตัด
   ============================================================ */
.vh .vh-egrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px }
.vh .vh-ecard {
  background: #fff; border: 1px solid var(--vh-line); position: relative; overflow: hidden;
  clip-path: polygon(0 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%);
  transition: .3s; display: flex; flex-direction: column;
}
.vh .vh-ecard:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,.10); border-color: transparent }
.vh .vh-ecard.feat { grid-row: span 2; grid-column: span 2 }
.vh .vh-ecard-img { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--vh-ink) }
.vh .vh-ecard.feat .vh-ecard-img { aspect-ratio: auto; flex: 1; min-height: 280px }
.vh .vh-ecard-img img { width: 100%; height: 100%; object-fit: cover; }
.vh .vh-ecard-img .vh-ph {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 80px;
  background: linear-gradient(135deg,#101318,#1b2431 55%,#0c3247);
}
.vh .vh-ecard.feat .vh-ecard-img .vh-ph { font-size: 130px }
.vh .vh-ecard-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.55),transparent 55%) }
.vh .vh-badge-live {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--vh-sky); color: #fff;
  font-family: var(--vh-font-data); font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  padding: 6px 12px; display: inline-flex; align-items: center; gap: 7px;
  transform: skewX(calc(var(--vh-cut) * -1));
}
.vh .vh-badge-live > * { transform: skewX(var(--vh-cut)) }
.vh .vh-badge-live .vh-dot { width: 6px; height: 6px }
.vh .vh-ecard-sport {
  position: absolute; bottom: 14px; left: 14px; z-index: 2; color: #fff;
  font-family: var(--vh-font-display); font-weight: 800; font-style: italic; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
}
.vh .vh-ecard-body { padding: 20px 20px 22px }
.vh .vh-ecard-body h3 { font-family: var(--vh-font-display); font-weight: 800; font-size: 19px; letter-spacing: 0; line-height: 1.15 }
.vh .vh-ecard.feat .vh-ecard-body h3 { font-size: 24px }
.vh .vh-ecard-body p { font-size: 13.5px; color: var(--vh-gray); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.vh .vh-ecard-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-family: var(--vh-font-data); font-size: 12px; color: var(--vh-gray) }
.vh .vh-ecard-meta b { color: var(--vh-ink) }
.vh .vh-cap { height: 5px; background: var(--vh-line); margin-top: 10px; transform: skewX(calc(var(--vh-cut) * -1)); overflow: hidden }
.vh .vh-cap i { display: block; height: 100%; background: linear-gradient(90deg, var(--vh-sky), var(--vh-sky-deep)) }
.vh .vh-ecard-detail {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--vh-line);
  display: flex; flex-direction: column; gap: 10px;
}
.vh .vh-ecard-drow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vh .vh-ecard-dlabel {
  font-family: var(--vh-font-data); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--vh-gray); white-space: nowrap;
}
.vh .vh-ecard-dval {
  font-family: var(--vh-font-data); font-size: 12.5px; color: var(--vh-ink);
  text-align: right; font-weight: 500;
}
.vh .vh-ecard-ai {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(90deg, var(--vh-sky), var(--vh-sky-deep));
  color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 4px; transform: skewX(calc(var(--vh-cut) * -1));
}
.vh .vh-ecard-ai::before { content: "✦"; transform: skewX(var(--vh-cut)); font-size: 9px }
@media(max-width:900px) { .vh .vh-egrid { grid-template-columns: 1fr 1fr } .vh .vh-ecard.feat { grid-row: auto; grid-column: span 2 } }
@media(max-width:620px) { .vh .vh-egrid { grid-template-columns: 1fr } .vh .vh-ecard.feat { grid-row: auto; grid-column: auto } }

/* ============================================================
   AI / HOW — แถบดำ 3 ขั้นตอน
   ============================================================ */
.vh .vh-dark { background: var(--vh-black); color: #fff; position: relative; overflow: hidden }
.vh .vh-dark::before {
  content: "AI"; position: absolute; right: -40px; top: -60px;
  font-family: var(--vh-font-display); font-weight: 900; font-style: italic; font-size: 340px;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.07); pointer-events: none;
}
.vh .vh-dark .vh-sec-head h2 { color: #fff }
.vh .vh-dark .vh-sec-head p { color: rgba(255,255,255,.6) }
.vh .vh-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; position: relative; z-index: 2 }
.vh .vh-step {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
  padding: 30px 26px; position: relative; transition: .3s;
  clip-path: polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%);
}
.vh .vh-step:hover { background: rgba(0,174,239,.09); border-color: rgba(0,174,239,.4); transform: translateY(-4px) }
.vh .vh-step .icon {
  width: 56px; height: 56px; background: rgba(0,174,239,.15); display: grid; place-items: center;
  margin-bottom: 20px; transform: skewX(calc(var(--vh-cut) * -1));
}
.vh .vh-step .icon svg { width: 26px; height: 26px; stroke: var(--vh-sky); transform: skewX(var(--vh-cut)) }
.vh .vh-step h3 { font-family: var(--vh-font-display); font-weight: 800; font-size: 19px; margin-bottom: 8px }
.vh .vh-step p { font-size: 14px; color: rgba(255,255,255,.62) }
.vh .vh-step .tag {
  position: absolute; top: 22px; right: 22px; font-family: var(--vh-font-data);
  font-size: 11px; color: var(--vh-sky); letter-spacing: .14em;
}
.vh .vh-ai-demo {
  margin-top: 44px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  padding: 22px 26px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  clip-path: polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%);
}
.vh .vh-ai-demo .shot {
  width: 120px; height: 150px; background: linear-gradient(160deg,#15202e,#0b3a52);
  display: grid; place-items: center; font-size: 44px; flex-shrink: 0; border: 1px solid rgba(255,255,255,.12);
}
.vh .vh-ai-demo .arrow { font-family: var(--vh-font-data); color: var(--vh-sky); font-size: 13px; letter-spacing: .1em; white-space: nowrap }
.vh .vh-ai-out { display: flex; gap: 14px; flex-wrap: wrap; flex: 1 }
.vh .vh-chip {
  font-family: var(--vh-font-data); font-size: 12.5px; padding: 10px 16px;
  background: rgba(0,174,239,.12); border: 1px solid rgba(0,174,239,.35); color: #fff;
  transform: skewX(calc(var(--vh-cut) * -1));
}
.vh .vh-chip span { display: inline-block; transform: skewX(var(--vh-cut)) }
.vh .vh-chip b { color: var(--vh-sky) }
@media(max-width:820px) { .vh .vh-steps { grid-template-columns: 1fr } }

/* ============================================================
   LEADERBOARD — พอเดียม telemetry
   ============================================================ */
.vh .vh-board { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center }
.vh .vh-podium { display: flex; align-items: flex-end; gap: 14px; justify-content: center }
.vh .vh-pcol { text-align: center; flex: 1; max-width: 150px }
.vh .vh-pcol .pav {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center;
  font-family: var(--vh-font-display); font-weight: 900; font-size: 24px; color: #fff; position: relative;
}
.vh .vh-pcol.p1 .pav { background: var(--vh-sky); width: 88px; height: 88px; box-shadow: 0 0 0 4px var(--vh-sky-tint),0 12px 30px rgba(0,174,239,.4) }
.vh .vh-pcol.p2 .pav { background: #33414f }
.vh .vh-pcol.p3 .pav { background: #8593a1 }
.vh .vh-pcol .crown { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 20px }
.vh .vh-pcol .pname { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.vh .vh-pcol .pscore { font-family: var(--vh-font-data); font-weight: 700; font-size: 18px; color: var(--vh-sky) }
.vh .vh-pcol .pscore small { font-size: 10px; color: var(--vh-gray); font-weight: 500 }
.vh .vh-pblock {
  margin-top: 12px; background: var(--vh-black); color: #fff; display: grid; place-items: center;
  font-family: var(--vh-font-display); font-weight: 900; font-style: italic; font-size: 28px;
  clip-path: polygon(0 10px,100% 0,100% 100%,0 100%);
}
.vh .vh-pcol.p1 .vh-pblock { height: 130px; background: linear-gradient(180deg, var(--vh-sky), var(--vh-sky-deep)) }
.vh .vh-pcol.p2 .vh-pblock { height: 96px }
.vh .vh-pcol.p3 .vh-pblock { height: 70px; background: #2a3540 }
.vh .vh-board-list { display: flex; flex-direction: column; gap: 10px }
.vh .vh-brow {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--vh-line);
  transition: .2s; clip-path: polygon(0 0,100% 0,100% 100%,10px 100%);
}
.vh .vh-brow:hover { border-color: var(--vh-sky); background: var(--vh-sky-tint) }
.vh .vh-brow .rk { font-family: var(--vh-font-data); font-weight: 700; width: 34px; color: var(--vh-gray) }
.vh .vh-brow .nm { font-weight: 600; flex: 1 }
.vh .vh-brow .sc { font-family: var(--vh-font-data); font-weight: 700; color: var(--vh-ink) }
.vh .vh-brow .delta { font-family: var(--vh-font-data); font-size: 11px; color: var(--vh-sky) }
@media(max-width:900px) { .vh .vh-board { grid-template-columns: 1fr } }

/* Rank Carousel */
.vh .vh-rank-carousel { position: relative; overflow: hidden; touch-action: pan-y }
.vh .vh-rank-track { display: flex; transition: transform .5s ease-out; will-change: transform }
.vh .vh-rank-slide { min-width: 100%; flex-shrink: 0; padding: 4px }
.vh .vh-rank-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px;
}
.vh .vh-rank-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--vh-line);
  background: #fff; color: var(--vh-ink); display: grid; place-items: center;
  cursor: pointer; transition: .2s;
}
.vh .vh-rank-btn:hover { border-color: var(--vh-sky); color: var(--vh-sky); box-shadow: 0 4px 14px rgba(0,174,239,.18) }
.vh .vh-rank-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 200px }
.vh .vh-rank-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--vh-line); cursor: pointer; transition: .2s;
}
.vh .vh-rank-dot.active { background: var(--vh-sky); width: 24px; border-radius: 4px }
.vh .vh-rank-dot:hover { background: var(--vh-sky-tint) }
@media(max-width:900px) {
  .vh .vh-rank-nav { gap: 12px }
  .vh .vh-rank-btn { display: none }
  .vh .vh-rank-dots { max-width: 100% }
  .vh .vh-podium { gap: 8px }
  .vh .vh-pcol { max-width: none; flex: 1 1 0; min-width: 0 }
  .vh .vh-pcol .pav { width: 52px; height: 52px; font-size: 18px }
  .vh .vh-pcol.p1 .pav { width: 62px; height: 62px }
  .vh .vh-pcol .pname { font-size: 11px }
  .vh .vh-pcol .pscore { font-size: 14px }
  .vh .vh-pcol.p1 .vh-pblock { height: 80px; font-size: 20px }
  .vh .vh-pcol.p2 .vh-pblock { height: 58px; font-size: 18px }
  .vh .vh-pcol.p3 .vh-pblock { height: 44px; font-size: 16px }
  .vh .vh-brow { padding: 10px 14px; gap: 10px }
  .vh .vh-brow .rk { width: 28px; font-size: 11px }
  .vh .vh-brow .nm { font-size: 13px }
  .vh .vh-brow .sc { font-size: 13px }
}
@media(max-width:620px) {
  .vh .vh-wrap { padding: 0 16px }
  .vh .vh-rank-slide { padding: 2px; overflow: hidden }
  .vh .vh-podium { gap: 6px }
  .vh .vh-pcol .pav { width: 44px; height: 44px; font-size: 16px }
  .vh .vh-pcol.p1 .pav { width: 54px; height: 54px }
  .vh .vh-pcol .pname { font-size: 10px }
  .vh .vh-pcol .pscore { font-size: 12px }
  .vh .vh-pcol .pscore small { font-size: 8px }
  .vh .vh-pcol.p1 .vh-pblock { height: 64px; font-size: 18px }
  .vh .vh-pcol.p2 .vh-pblock { height: 48px; font-size: 16px }
  .vh .vh-pcol.p3 .vh-pblock { height: 36px; font-size: 14px }
  .vh .vh-brow { padding: 8px 12px; gap: 8px }
  .vh .vh-brow .rk { width: 24px; font-size: 10px }
  .vh .vh-brow .nm { font-size: 12px }
  .vh .vh-brow .sc { font-size: 12px }
}

/* ============================================================
   DEVICES
   ============================================================ */
.vh .vh-devices { background: linear-gradient(180deg, var(--vh-sky-tint), #fff) }
.vh .vh-dev-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 8px }
.vh .vh-dev {
  background: #fff; border: 1px solid var(--vh-line); padding: 26px 22px; text-align: center; transition: .25s;
  clip-path: polygon(0 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%);
}
.vh .vh-dev:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,174,239,.14); border-color: rgba(0,174,239,.35) }
.vh .vh-dev .di { font-size: 36px; margin-bottom: 12px }
.vh .vh-dev h4 { font-family: var(--vh-font-display); font-weight: 800; font-size: 15.5px }
.vh .vh-dev p { font-family: var(--vh-font-data); font-size: 11px; color: var(--vh-gray); margin-top: 4px; letter-spacing: .06em }
@media(max-width:820px) { .vh .vh-dev-strip { grid-template-columns: 1fr 1fr } }

/* ============================================================
   CTA
   ============================================================ */
.vh .vh-cta { position: relative; overflow: hidden; background: var(--vh-black); color: #fff; text-align: center; padding: 100px 20px }
.vh .vh-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 120%, rgba(0,174,239,.35), transparent 70%);
}
.vh .vh-cta h2 {
  position: relative; font-family: var(--vh-font-display); font-weight: 900; font-style: italic;
  font-size: clamp(38px,6.5vw,72px); text-transform: uppercase; letter-spacing: -.02em; line-height: 1;
}
.vh .vh-cta h2 em { color: var(--vh-sky); font-style: italic }
.vh .vh-cta p { position: relative; color: rgba(255,255,255,.65); margin: 18px auto 34px; max-width: 440px }
.vh .vh-cta .btn { position: relative }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.vh .vh-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease }
.vh .vh-rv.in { opacity: 1; transform: none }
@media(prefers-reduced-motion:reduce) {
  .vh .vh-rv { opacity: 1; transform: none }
  .vh .vh-dot, .vh .vh-hud-bars i, .vh .vh-ticker-track { animation: none !important }
}

/* ============================================================
   VELOCITY HUD — GLOBAL DESIGN SYSTEM (strict spec)
   ขาว = สนาม / ฟ้า = ความเร็ว / ดำ = พลัง
   Signature: มุมตัด 12° (speed cut) + telemetry
   ============================================================ */

:root {
  --white: #FFFFFF;
  --sky: #00AEEF;
  --sky-deep: #0088CC;
  --sky-tint: #E6F7FE;
  --black: #000000;
  --ink: #0D0F12;
  --gray: #6B7280;
  --line: #EAECEF;
  --cut: 12deg;
  --font-display: 'Archivo', 'Kanit', sans-serif;
  --font-body: 'Sarabun', 'Kanit', sans-serif;
  --font-data: 'JetBrains Mono', monospace;
  --brand-primary: var(--sky);
  --brand-secondary: var(--black);
  --brand-accent1: var(--sky-tint);
  --brand-accent2: var(--sky-deep);
  --brand-dark: var(--black);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --bottom-nav-height: 74px;
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--ink);
}
h1 em, h2 em, h3 em { color: var(--sky); font-style: italic }
.display-en {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

/* --- All numbers use JetBrains Mono --- */
[data-count-up], .stat-number, .stat-value, .podium-score,
.vh-data, .num-mono {
  font-family: var(--font-data) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* --- Focus --- */
*:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 20px;
}
@media (max-width: 640px) {
  .page-section { padding: 48px 16px }
}

/* ============================================================
   EYEBROW (section label)
   ============================================================ */
.vh-eyebrow,
.eyebrow {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vh-eyebrow::before,
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sky);
  transform: skewX(calc(var(--cut) * -1));
}
.dot{width:8px;height:8px;border-radius:50%;background:var(--sky);animation:vh-pulse 1.4s infinite}
@keyframes vh-pulse{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(0,174,239,.6)}50%{opacity:.6;box-shadow:0 0 0 7px rgba(0,174,239,0)}}
/* Auto-style existing eyebrow paragraphs */
.page-section p.text-xs.font-semibold.text-\[\#00AEEF\].uppercase.tracking-widest {
  font-family: var(--font-data) !important;
  font-size: 11px !important;
  letter-spacing: .22em !important;
  font-weight: 700 !important;
  color: var(--sky) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.page-section p.text-xs.font-semibold.text-\[\#00AEEF\].uppercase.tracking-widest::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sky);
  transform: skewX(calc(var(--cut) * -1));
  display: inline-block;
}

/* ============================================================
   CARDS — clip-path speed cut, NO border-radius
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,.10);
  border-color: transparent;
}

/* ============================================================
   BUTTONS — 3 types only, skewX(-12deg), Archivo 800
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 15px;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  position: relative;
  transform: skewX(calc(var(--cut) * -1));
  transition: .25s;
  border-radius: 0;
  min-height: auto;
  letter-spacing: -.01em;
}
.btn > span,
.btn > *:not(.btn) {
  transform: skewX(var(--cut));
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn:active { transform: skewX(calc(var(--cut) * -1)) scale(.97) }
.btn-primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0,174,239,.35);
}
.btn-primary:hover {
  background: var(--sky-deep);
  transform: skewX(calc(var(--cut) * -1)) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,174,239,.45);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover {
  background: #1a1d22;
  transform: skewX(calc(var(--cut) * -1)) translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  backdrop-filter: none;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}
.btn-secondary { background: var(--sky); color: var(--white); box-shadow: 0 8px 24px rgba(0,174,239,.35) }
.btn-secondary:hover { background: var(--sky-deep); transform: skewX(calc(var(--cut) * -1)) translateY(-2px) }

/* ============================================================
   FORM INPUTS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 15px;
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 12px 16px;
  min-height: 48px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0,174,239,.1);
  outline: none;
}
label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
input[type="checkbox"] {
  accent-color: var(--sky);
  width: 1.1rem;
  height: 1.1rem;
}

/* ============================================================
   FILTER PILLS — skewed
   ============================================================ */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 8px 18px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray);
  border: 1.5px solid var(--line);
  transition: all .15s ease;
  transform: skewX(calc(var(--cut) * -1));
}
.filter-pill > * { transform: skewX(var(--cut)); display: inline-block }
.filter-pill:hover {
  border-color: var(--sky);
  color: var(--sky);
}
.filter-pill.active {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--white);
}

/* ============================================================
   STATUS BADGES — skewed, mono font
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 5px 12px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-data);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: skewX(calc(var(--cut) * -1));
}
.status-badge > * { transform: skewX(var(--cut)); display: inline-block }
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: skewX(var(--cut));
}
.status-badge.st-green { background: var(--sky-tint); color: var(--sky-deep) }
.status-badge.st-yellow { background: #FFF8E1; color: #B26A00 }
.status-badge.st-red { background: #FFEBEE; color: #e0533d }
.status-badge.st-gray { background: #F3F4F6; color: var(--gray) }
.status-badge.st-blue { background: var(--sky-tint); color: var(--sky-deep) }
.status-badge.st-purple { background: #F3E5F5; color: #7B1FA2 }

/* ============================================================
   EVENT CARDS — clip-path, no border-radius
   ============================================================ */
.event-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  will-change: transform, box-shadow;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,.10);
  border-color: transparent;
}
.event-card.is-ended img {
  filter: grayscale(.7);
  opacity: .85;
}

/* --- Capacity bar — skewed --- */
.capacity-bar {
  height: 5px;
  background: var(--line);
  border-radius: 0;
  overflow: hidden;
  transform: skewX(calc(var(--cut) * -1));
}
.capacity-bar > span {
  display: block;
  height: 100%;
  border-radius: 0;
  background: var(--sky);
  transition: width .6s ease;
}
.capacity-bar.is-full > span { background: var(--gray) }

/* ============================================================
   SKELETON
   ============================================================ */
.skeleton-box {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
  border-radius: 0;
}

/* ============================================================
   NAV — VELOCITY HUD (Mobile Header + Desktop Navbar + Bottom Nav)
   ============================================================ */

/* --- Mobile Header (< lg) --- */
.vh-mob-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  background: var(--black);
  border-bottom: 1px solid rgba(0, 174, 239, 0.18);
}
.vh-mob-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vh-mob-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.vh-mob-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vh-mob-login {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}
.vh-mob-login:hover {
  color: var(--sky);
}

/* --- Avatar (shared mobile + desktop) --- */
.vh-avatar-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.vh-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--sky);
}
.vh-avatar-img-lg {
  width: 38px;
  height: 38px;
}
.vh-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 174, 239, 0.15);
  color: var(--sky);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--sky);
}
.vh-avatar-fallback-lg {
  width: 38px;
  height: 38px;
  font-size: 16px;
}

/* --- Desktop Navbar (lg+) --- */
.vh-desktop-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: var(--black);
  border-bottom: 1px solid rgba(0, 174, 239, 0.18);
}
.vh-desktop-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.vh-desktop-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.vh-desktop-logo .auto-logo {
  height: 42px;
}

/* --- Desktop nav links --- */
.vh-desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}
.vh-nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 18px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 16.5px;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s ease;
  overflow: visible;
}
.vh-nav-link:hover {
  color: #fff;
}
.vh-nav-num {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.15s ease;
  pointer-events: none;
}
.vh-nav-link:hover .vh-nav-num {
  color: var(--sky);
}
.vh-nav-text {
  display: inline-block;
  margin-top: 12px;
}

/* Active tab: skewed background + bottom border */
.vh-nav-link.nav-active {
  color: #fff;
}
.vh-nav-link.nav-active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 174, 239, 0.1);
  transform: skewX(-12deg);
  z-index: -1;
}
.vh-nav-link.nav-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sky);
}
.vh-nav-link.nav-active .vh-nav-num {
  color: var(--sky);
}

/* Non-active: hover blue underline from left */
.vh-nav-link:not(.nav-active)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.vh-nav-link:not(.nav-active):hover::after {
  transform: scaleX(1);
}

/* Admin link */
.vh-nav-admin {
  color: var(--sky);
}
.vh-nav-admin:hover {
  color: var(--sky);
}
.vh-nav-admin .vh-nav-num {
  color: rgba(0, 174, 239, 0.5);
}

/* --- Desktop right zone --- */
.vh-desktop-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Submit button (login only) */
.vh-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--sky);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  transform: skewX(-12deg);
  box-shadow: 0 4px 14px rgba(0, 174, 239, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
}
.vh-btn-submit:hover {
  background: var(--sky-deep);
  transform: skewX(-12deg) translateY(-2px);
}
.vh-btn-submit-icon {
  width: 20px;
  height: 20px;
  transform: skewX(12deg);
}
.vh-btn-submit-text {
  display: inline-block;
  transform: skewX(12deg);
}

/* User zone */
.vh-user-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.vh-user-zone:hover {
  color: var(--sky);
}
.vh-user-name {
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1279px) {
  .vh-user-name { display: none; }
}

/* Login link (not logged in) */
.vh-login-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}
.vh-login-link:hover {
  color: var(--sky);
}

/* Register button (not logged in) */
.vh-btn-register {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--sky);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  transform: skewX(-12deg);
  box-shadow: 0 4px 14px rgba(0, 174, 239, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
}
.vh-btn-register:hover {
  background: var(--sky-deep);
  transform: skewX(-12deg) translateY(-2px);
}
.vh-btn-register-text {
  display: inline-block;
  transform: skewX(12deg);
}

/* --- Focus visible for all nav links and buttons --- */
.vh-nav-link:focus-visible,
.vh-bn-tab:focus-visible,
.vh-bn-fab:focus-visible,
.vh-btn-submit:focus-visible,
.vh-btn-register:focus-visible,
.vh-login-link:focus-visible,
.vh-mob-login:focus-visible,
.vh-user-zone:focus-visible,
.vh-avatar-link:focus-visible,
.vh-mob-logo:focus-visible,
.vh-desktop-logo:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-body {
  background: var(--white);
}
.admin-sidebar {
  background: var(--black);
  border-right: 1px solid rgba(0,174,239,.1);
}
.admin-nav-label {
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(0,174,239,.5);
  padding: 0 .75rem;
  margin: 1.1rem 0 .35rem;
}
.admin-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .75rem;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: all .15s ease;
}
.admin-nav-item svg { flex-shrink: 0; opacity: .7 }
.admin-nav-item:hover {
  background: rgba(0,174,239,.08);
  color: var(--white);
}
.admin-nav-item.active {
  background: rgba(0,174,239,.12);
  color: var(--white);
  font-weight: 600;
}
.admin-nav-item.active::before {
  content: "";
  position: absolute;
  left: -.35rem;
  top: 50%;
  transform: translateY(-50%) skewX(calc(var(--cut) * -1));
  width: 3px;
  height: 20px;
  background: var(--sky);
}
.admin-nav-item.active svg { opacity: 1; color: var(--sky) }
.admin-main { background: var(--white) }
.admin-main input,
.admin-main select,
.admin-main textarea {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 0;
}
.admin-main input:focus,
.admin-main select:focus,
.admin-main textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0,174,239,.1);
  outline: none;
}
.admin-page-header h1,
.admin-page-header h2,
.admin-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0;
}
.admin-kicker {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 700;
}

/* --- Stat cards (admin) --- */
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  border-radius: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,174,239,.10);
}
.stat-value {
  font-family: var(--font-data) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ============================================================
   GLASS (dark bg contexts)
   ============================================================ */
.glass-pill {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
}
.glass-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,174,239,.3);
  box-shadow: 0 24px 48px rgba(0,0,0,.10);
}
.glass-card-dark {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 0;
}
.glass-card-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(0,174,239,.25);
  background: rgba(255,255,255,.07);
}
.glass-badge {
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  background: rgba(255,255,255,.15) !important;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 0;
}

/* ============================================================
   COOKIE NOTICE
   ============================================================ */
.cookie-banner {
  background: var(--black) !important;
  border: 1px solid rgba(0,174,239,.15) !important;
  border-radius: 0 !important;
  color: rgba(255,255,255,.85) !important;
}
.cookie-banner a { color: var(--sky) !important }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb { background: rgba(0,174,239,.2); border-radius: 0 }
::-webkit-scrollbar-thumb:hover { background: rgba(0,174,239,.4) }

/* ============================================================
   SCROLL REVEAL (global)
   ============================================================ */
.vh-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease }
.vh-rv.in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) {
  .vh-rv { opacity: 1; transform: none }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important }
}

/* ============================================================
   HUD DECORATION — outline text for dark sections
   ============================================================ */
.vh-dark-section {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.vh-dark-section::before {
  content: attr(data-bg-text);
  position: absolute;
  right: -40px;
  top: -60px;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 340px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.07);
  pointer-events: none;
}

/* ============================================================
   RANK OVERVIEW — VELOCITY HUD
   ============================================================ */
.vh-phero{background:var(--black);color:#fff;position:relative;overflow:hidden;padding:56px 0 64px}
.vh-phero::before{
  content:"RANK";position:absolute;right:-30px;top:-70px;
  font-family:var(--font-display);font-weight:900;font-style:italic;font-size:300px;line-height:1;
  color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.07);pointer-events:none;
}
.vh-phero::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(700px 320px at 15% 120%,rgba(0,174,239,.22),transparent 70%);
}
.vh-phero .wrap{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:28px;max-width:1200px;margin:0 auto;padding:0 20px}
.vh-phero h1{
  font-family:var(--font-display);font-weight:900;font-style:italic;text-transform:uppercase;
  font-size:clamp(38px,6vw,64px);line-height:1.15;letter-spacing:0;margin-top:12px;
}
.vh-phero h1 em{color:var(--sky)}
.vh-phero .sub{color:rgba(255,255,255,.6);font-size:15px;margin-top:12px;max-width:440px}
.vh-live-pill{
  display:inline-flex;align-items:center;gap:8px;background:rgba(0,174,239,.14);
  border:1px solid rgba(0,174,239,.4);color:#fff;padding:7px 14px;
  font-family:var(--font-data);font-size:11px;letter-spacing:.16em;
  transform:skewX(-12deg);margin-top:16px;
}
.vh-live-pill > *{transform:skewX(12deg)}
.vh-pstats{display:flex;gap:0;border:1px solid rgba(255,255,255,.14);clip-path:polygon(0 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%)}
.vh-pstat{padding:20px 28px;border-right:1px solid rgba(255,255,255,.14);text-align:left;min-width:130px}
.vh-pstat:last-child{border-right:none}
.vh-pstat .n{font-family:var(--font-data);font-weight:700;font-size:34px;line-height:1;color:#fff}
.vh-pstat .n em{color:var(--sky);font-style:normal}
.vh-pstat .l{font-family:var(--font-data);font-size:10px;letter-spacing:.18em;color:rgba(255,255,255,.5);margin-top:8px;text-transform:uppercase}

.vh-rsec{padding:56px 0 88px}
.vh-rgrid{display:grid;grid-template-columns:1fr 1fr;gap:26px;max-width:1200px;margin:0 auto;padding:0 20px}
@media(max-width:900px){.vh-rgrid{grid-template-columns:1fr}}

.vh-rcard{
  background:var(--white);border:1px solid var(--line);position:relative;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%);
  transition:transform .3s,box-shadow .3s,border-color .3s;
}
.vh-rcard:hover{transform:translateY(-5px);box-shadow:0 24px 48px rgba(0,0,0,.10);border-color:transparent}
.vh-rcard.has-me{border-color:rgba(0,174,239,.45)}
.vh-rcard.has-me::before{
  content:"YOU'RE ON PODIUM";position:absolute;top:0;right:0;z-index:5;
  font-family:var(--font-data);font-size:9px;letter-spacing:.16em;color:#fff;
  background:var(--sky);padding:5px 12px 5px 16px;
  clip-path:polygon(10px 0,100% 0,100% 100%,0 100%);
}

.vh-rhead{position:relative;height:120px;overflow:hidden;background:var(--ink)}
.vh-rhead img,.vh-rhead .ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.vh-rhead .ph{display:grid;place-items:center;font-size:52px;background:linear-gradient(135deg,#101318,#1b2431 55%,#0c3247)}
.vh-rcard:hover .vh-rhead img,.vh-rcard:hover .vh-rhead .ph{transform:scale(1.05)}
.vh-rhead::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.8),rgba(0,0,0,.15) 60%)}
.vh-rhead-in{position:absolute;inset:0;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:16px}
.vh-rhead h2{font-family:var(--font-display);font-weight:800;font-style:italic;font-size:20px;color:#fff;text-transform:uppercase;letter-spacing:0;line-height:1.15}
.vh-metric-tag{
  display:inline-flex;align-items:center;gap:6px;font-family:var(--font-data);
  font-size:10px;letter-spacing:.14em;color:#fff;background:rgba(0,174,239,.9);
  padding:5px 11px;transform:skewX(-12deg);margin-bottom:8px;
}
.vh-metric-tag span{display:inline-block;transform:skewX(12deg);text-transform:uppercase}
.vh-mode-tag{
  font-family:var(--font-data);font-size:10px;letter-spacing:.12em;color:rgba(255,255,255,.85);
  border:1px solid rgba(255,255,255,.35);padding:4px 10px;transform:skewX(-12deg);
  white-space:nowrap;align-self:flex-start;margin-top:16px;
}
.vh-mode-tag span{display:inline-block;transform:skewX(12deg)}

.vh-rbody{padding:22px 20px 20px}
.vh-pod{display:flex;align-items:flex-end;justify-content:center;gap:14px}
.vh-pc{display:flex;flex-direction:column;align-items:center;flex:1;max-width:120px;min-width:0}
.vh-pc .pav{
  width:56px;height:56px;border-radius:50%;overflow:hidden;position:relative;margin-bottom:8px;
  display:grid;place-items:center;background:var(--sky-tint);color:var(--sky);
  font-family:var(--font-display);font-weight:900;font-size:20px;
}
.vh-pc .pav img{width:100%;height:100%;object-fit:cover}
.vh-pc.r1 .pav{width:68px;height:68px;box-shadow:0 0 0 3px var(--white),0 0 0 6px var(--sky),0 10px 24px rgba(0,174,239,.35)}
.vh-pc.r2 .pav{box-shadow:0 0 0 3px var(--white),0 0 0 5px #33414f}
.vh-pc.r3 .pav{box-shadow:0 0 0 3px var(--white),0 0 0 5px #8593a1}
.vh-pc .crown{position:absolute;top:-19px;left:50%;transform:translateX(-50%);font-size:16px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.2))}
.vh-pc .nm{font-weight:700;font-size:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.vh-pc .sc{font-family:var(--font-data);font-weight:700;font-size:16px;color:var(--sky);line-height:1.2}
.vh-pc .me{
  font-family:var(--font-data);font-size:9px;letter-spacing:.1em;background:var(--sky);
  color:#fff;padding:2px 8px;margin-top:3px;transform:skewX(-12deg);
}
.vh-pc .me span{display:inline-block;transform:skewX(12deg)}
.vh-pblk{
  width:100%;margin-top:10px;color:#fff;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:900;font-style:italic;font-size:22px;
  clip-path:polygon(0 8px,100% 0,100% 100%,0 100%);
}
.vh-pc.r1 .pblk{height:86px;background:linear-gradient(180deg,var(--sky),var(--sky-deep))}
.vh-pc.r2 .pblk{height:62px;background:var(--black)}
.vh-pc.r3 .pblk{height:44px;background:#2a3540}

.vh-pod-empty{
  text-align:center;padding:26px 10px;border:1px dashed var(--line);
  font-family:var(--font-data);font-size:11px;letter-spacing:.14em;color:var(--gray);
}
.vh-pod-empty b{display:block;font-size:13px;color:var(--ink);margin-bottom:4px}

.vh-rcta{
  margin-top:18px;display:flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--font-display);font-weight:800;font-size:13.5px;letter-spacing:.02em;
  background:var(--sky-tint);color:var(--sky);padding:12px;transform:skewX(-12deg);
  transition:background .2s,color .2s;
}
.vh-rcta > *{transform:skewX(12deg)}
.vh-rcta:hover{background:var(--sky);color:#fff}
.vh-rcta svg{transition:transform .2s}
.vh-rcta:hover svg{transform:skewX(12deg) translateX(3px)}

.rv{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.rv.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.rv{opacity:1;transform:none}}

/* ============================================================
   EVENT RANK PAGE — VELOCITY HUD
   ============================================================ */
.vh-ehero{background:var(--black);color:#fff;position:relative;overflow:hidden;padding:44px 0 0}
.vh-ehero::before{
  content:"TOP";position:absolute;right:-20px;top:-60px;
  font-family:var(--font-display);font-weight:900;font-style:italic;font-size:260px;line-height:1;
  color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.07);pointer-events:none;
}
.vh-ehero::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(650px 300px at 10% 130%,rgba(0,174,239,.25),transparent 70%)}
.vh-ehero .wrap{position:relative;z-index:2;max-width:1000px;margin:0 auto;padding:0 20px}
.vh-crumbs{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.vh-icon-btn{
  width:38px;height:38px;display:grid;place-items:center;color:#fff;
  border:1px solid rgba(255,255,255,.25);transform:skewX(-12deg);transition:background .2s,border-color .2s;
}
.vh-icon-btn svg{transform:skewX(12deg)}
.vh-icon-btn:hover{background:var(--sky);border-color:var(--sky)}
.vh-crumb-label{font-family:var(--font-data);font-size:10.5px;letter-spacing:.2em;color:rgba(255,255,255,.5);text-transform:uppercase}
.vh-ehero h1{
  font-family:var(--font-display);font-weight:900;font-style:italic;text-transform:uppercase;
  font-size:clamp(34px,6vw,60px);line-height:1.15;letter-spacing:0;
}
.vh-ehero h1 em{color:var(--sky)}
.vh-ehero-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.vh-htag{
  display:inline-flex;align-items:center;gap:8px;font-family:var(--font-data);
  font-size:11px;letter-spacing:.14em;padding:7px 14px;transform:skewX(-12deg);text-transform:uppercase;
}
.vh-htag > *{transform:skewX(12deg)}
.vh-htag.live{background:rgba(0,174,239,.14);border:1px solid rgba(0,174,239,.45);color:#fff}
.vh-htag.mode{border:1px solid rgba(255,255,255,.3);color:rgba(255,255,255,.85)}
.vh-htag.metric{background:var(--sky);color:#fff}

.vh-pod-stage{position:relative;z-index:3;margin-top:36px;display:flex;align-items:flex-end;justify-content:center;gap:18px}
.vh-pcv{display:flex;flex-direction:column;align-items:center;flex:1;max-width:170px;min-width:0}
.vh-pcv .pav{
  border-radius:50%;overflow:hidden;position:relative;margin-bottom:10px;
  display:grid;place-items:center;background:var(--sky-tint);color:var(--sky);
  font-family:var(--font-display);font-weight:900;
}
.vh-pcv.r1 .pav{width:92px;height:92px;font-size:32px;box-shadow:0 0 0 4px var(--black),0 0 0 8px var(--sky),0 0 40px rgba(0,174,239,.55)}
.vh-pcv.r2 .pav,.vh-pcv.r3 .pav{width:66px;height:66px;font-size:22px}
.vh-pcv.r2 .pav{box-shadow:0 0 0 3px var(--black),0 0 0 6px #4a5865}
.vh-pcv.r3 .pav{box-shadow:0 0 0 3px var(--black),0 0 0 6px #8593a1}
.vh-pcv .pav img{width:100%;height:100%;object-fit:cover}
.vh-pcv .crown{position:absolute;top:-26px;left:50%;transform:translateX(-50%);font-size:22px;filter:drop-shadow(0 3px 6px rgba(0,0,0,.4))}
.vh-pcv .nm{font-weight:700;font-size:13px;color:#fff;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.vh-pcv.r1 .nm{font-size:14.5px}
.vh-pcv .sc{font-family:var(--font-data);font-weight:700;color:var(--sky);line-height:1.25;font-size:17px}
.vh-pcv.r1 .sc{font-size:26px;text-shadow:0 0 24px rgba(0,174,239,.5)}
.vh-pcv .sc small{font-size:9px;letter-spacing:.14em;color:rgba(255,255,255,.45);display:block;text-transform:uppercase}
.vh-pblk{
  width:100%;margin-top:12px;color:#fff;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:900;font-style:italic;font-size:30px;
  clip-path:polygon(0 10px,100% 0,100% 100%,0 100%);
}
.vh-pcv.r1 .pblk{height:120px;background:linear-gradient(180deg,var(--sky),var(--sky-deep));box-shadow:0 -8px 40px rgba(0,174,239,.35)}
.vh-pcv.r2 .pblk{height:84px;background:#1a232d}
.vh-pcv.r3 .pblk{height:60px;background:#2a3540}
.vh-pod-under{background:linear-gradient(180deg,var(--sky-tint),var(--white) 70%);height:56px;margin-top:-1px}

.vh-rsec{padding:8px 0 40px}
.vh-rsec .wrap{max-width:1000px;margin:0 auto;padding:0 20px}
.vh-list-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.vh-list-head .t{
  font-family:var(--font-data);font-size:11px;font-weight:700;letter-spacing:.22em;
  text-transform:uppercase;color:var(--sky);display:inline-flex;align-items:center;gap:8px;
}
.vh-list-head .t::before{content:"";width:22px;height:2px;background:var(--sky);transform:skewX(-12deg)}
.vh-list-head .c{font-family:var(--font-data);font-size:11px;color:var(--gray);letter-spacing:.1em}

.vh-rlist{display:flex;flex-direction:column;gap:8px}
.vh-rrow{
  display:flex;align-items:center;gap:14px;padding:13px 18px;border:1px solid var(--line);
  background:var(--white);transition:border-color .2s,background .2s,transform .2s;position:relative;
  clip-path:polygon(0 0,100% 0,100% 100%,12px 100%);
}
.vh-rrow:hover{border-color:var(--sky);background:var(--sky-tint);transform:translateX(4px)}
.vh-rrow .rk{font-family:var(--font-data);font-weight:700;font-size:14px;color:var(--gray);width:44px;flex-shrink:0}
.vh-rrow .rk::before{content:"#";opacity:.4}
.vh-rrow .rav{
  width:38px;height:38px;border-radius:50%;overflow:hidden;flex-shrink:0;
  background:var(--sky-tint);color:var(--sky);display:grid;place-items:center;
  font-weight:800;font-size:14px;
}
.vh-rrow .rav img{width:100%;height:100%;object-fit:cover}
.vh-rrow .nm{font-weight:600;font-size:14.5px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vh-rrow .sc{font-family:var(--font-data);font-weight:700;font-size:15px;flex-shrink:0}
.vh-rrow .prog{position:absolute;left:0;bottom:0;height:2.5px;background:linear-gradient(90deg,var(--sky),transparent);opacity:.55;pointer-events:none}
.vh-rrow.me{border-color:var(--sky);background:linear-gradient(90deg,var(--sky-tint),var(--white))}
.vh-rrow.me .nm::after{
  content:"\u0E04\u0E38\u0E13";font-family:var(--font-data);font-size:9.5px;letter-spacing:.08em;
  background:var(--sky);color:#fff;padding:2px 9px;margin-left:10px;
  display:inline-block;transform:skewX(-12deg);
}
.vh-total{text-align:center;font-family:var(--font-data);font-size:11px;letter-spacing:.16em;color:var(--gray);margin-top:22px;text-transform:uppercase}

.vh-mybar{position:fixed;left:0;right:0;z-index:90;bottom:calc(var(--bottom-nav-height,74px) + var(--safe-bottom,0px))}
@media(min-width:1024px){.vh-mybar{bottom:0}}
.vh-mybar .in{max-width:1000px;margin:0 auto;padding:0 20px 12px}
.vh-mybar .card{
  background:var(--black);color:#fff;display:flex;align-items:center;gap:14px;
  padding:12px 18px;box-shadow:0 -8px 30px rgba(0,0,0,.25);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%);
  border-top:2px solid var(--sky);
}
.vh-mybar .rk{font-family:var(--font-display);font-weight:900;font-style:italic;font-size:26px;color:var(--sky);flex-shrink:0}
.vh-mybar .lbl{font-family:var(--font-data);font-size:9px;letter-spacing:.18em;color:rgba(255,255,255,.5);text-transform:uppercase}
.vh-mybar .nm{font-weight:700;font-size:14px;line-height:1.2}
.vh-mybar .sc{margin-left:auto;text-align:right;flex-shrink:0}
.vh-mybar .sc .v{font-family:var(--font-data);font-weight:700;font-size:19px;color:var(--sky)}
.vh-mybar .gap{font-family:var(--font-data);font-size:10px;color:rgba(255,255,255,.55)}
.vh-mybar .gap b{color:#fff}

@media(max-width:560px){
  .vh-pcv.r1 .pav{width:76px;height:76px}
  .vh-pcv.r2 .pav,.vh-pcv.r3 .pav{width:56px;height:56px}
  .vh-pcv.r1 .sc{font-size:21px}
  .vh-pod-stage{gap:10px}
}

/* ============================================================
   EVENT DETAIL PAGE — VELOCITY HUD
   ============================================================ */
.vh-cover{position:relative;min-height:420px;display:flex;align-items:flex-end;overflow:hidden;background:var(--black)}
@media(min-width:768px){.vh-cover{min-height:480px}}
.vh-cover-img{position:absolute;inset:0}
.vh-cover-img .ph{
  position:absolute;inset:0;display:grid;place-items:center;font-size:120px;
  background:linear-gradient(135deg,#0a1a26,#0c3247 55%,#0b5a7d);
}
/* blur-extend: blurred background fills the hero, foreground poster shown in full */
.vh-cover-img .bg-blur{
  position:absolute;inset:0;
  background-position:center;background-size:cover;background-repeat:no-repeat;
  filter:blur(30px) brightness(.4);
  transform:scale(1.1);
}
.vh-cover-img .fg{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:contain;
  cursor:zoom-in;
  z-index:1;
}
.vh-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.92) 8%,rgba(0,0,0,.35) 55%,rgba(0,0,0,.25))}

/* lightbox for poster zoom */
.vh-lightbox{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.9);padding:24px;cursor:zoom-out}
.vh-lightbox.open{display:flex}
.vh-lightbox img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;box-shadow:0 8px 40px rgba(0,0,0,.6)}
.vh-cover .vh-lanes{position:absolute;inset:0;background:repeating-linear-gradient(102deg,transparent 0 140px,rgba(255,255,255,.05) 140px 142px);pointer-events:none}
.vh-cover .wrap{position:relative;z-index:3;width:100%;max-width:1100px;margin:0 auto;padding:120px 20px 40px}
.vh-back-link{
  display:inline-flex;align-items:center;gap:8px;color:rgba(255,255,255,.75);
  font-family:var(--font-data);font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  margin-bottom:22px;transition:color .2s;
}
.vh-back-link:hover{color:var(--sky)}
.vh-cover-tags{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.vh-ctag{
  display:inline-flex;align-items:center;gap:7px;font-family:var(--font-data);
  font-size:10.5px;letter-spacing:.14em;padding:6px 13px;transform:skewX(-12deg);text-transform:uppercase;
}
.vh-ctag > *{transform:skewX(12deg)}
.vh-ctag.open{background:var(--sky);color:#fff}
.vh-ctag.sport{border:1px solid rgba(255,255,255,.2);color:#fff;background:rgba(0,0,0,.45);backdrop-filter:blur(8px)}
.vh-count-strip{
  position:relative;z-index:3;display:flex;gap:0;margin-top:28px;width:fit-content;
  border:1px solid rgba(255,255,255,.2);background:rgba(0,0,0,.45);backdrop-filter:blur(8px);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%);
}
.vh-cd{padding:14px 22px;border-right:1px solid rgba(255,255,255,.15);text-align:center;min-width:82px}
.vh-cd:last-child{border-right:none}
.vh-cd .n{font-family:var(--font-data);font-weight:700;font-size:28px;color:#fff;line-height:1}
.vh-cd .l{font-family:var(--font-data);font-size:9px;letter-spacing:.2em;color:var(--sky);margin-top:6px;text-transform:uppercase}

.vh-specbar{background:var(--black);border-top:1px solid rgba(255,255,255,.08)}
.vh-specbar .in{max-width:1100px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:repeat(4,1fr)}
.vh-spec{padding:20px 18px;border-right:1px solid rgba(255,255,255,.08);color:#fff}
.vh-spec:first-child{padding-left:0}
.vh-spec:last-child{border-right:none}
.vh-spec .l{font-family:var(--font-data);font-size:9.5px;letter-spacing:.2em;color:rgba(255,255,255,.45);text-transform:uppercase;display:flex;align-items:center;gap:7px}
.vh-spec .l svg{width:13px;height:13px;stroke:var(--sky)}
.vh-spec .v{font-family:var(--font-data);font-weight:700;font-size:15px;margin-top:7px}
.vh-spec .v small{font-size:10.5px;color:rgba(255,255,255,.5);font-weight:500}
@media(max-width:820px){
  .vh-specbar .in{grid-template-columns:1fr 1fr}
  .vh-spec{padding:16px 14px}
  .vh-spec:first-child{padding-left:14px}
  .vh-spec:nth-child(2n){border-right:none}
  .vh-spec:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.08)}
}

.vh-edsec{padding:52px 0 72px}
.vh-cgrid{display:grid;grid-template-columns:1.9fr 1fr;gap:34px;align-items:start;max-width:1100px;margin:0 auto;padding:0 20px}
@media(max-width:900px){.vh-cgrid{grid-template-columns:1fr}}
.vh-block-title{
  font-family:var(--font-data);font-size:11px;font-weight:700;letter-spacing:.22em;
  text-transform:uppercase;color:var(--sky);display:inline-flex;align-items:center;gap:8px;
  margin-bottom:18px;
}
.vh-block-title::before{content:"";width:22px;height:2px;background:var(--sky);transform:skewX(-12deg)}
.vh-content-card{
  border:1px solid var(--line);padding:28px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%);
}
.vh-content-card .event-content h2{font-family:var(--font-display);font-weight:800;font-size:21px;line-height:1.15;letter-spacing:0;margin:26px 0 10px;color:var(--ink)}
.vh-content-card .event-content h2:first-child{margin-top:0}
.vh-content-card .event-content p{color:#3d434b;margin-bottom:14px;font-size:15px}
.vh-content-card .event-content ul{margin:0 0 14px 22px;color:#3d434b;font-size:15px}
.vh-content-card .event-content li{margin-bottom:6px}
.vh-content-card .event-content img{margin:18px 0;max-width:100%;height:auto}
.vh-content-card .event-content iframe{width:100%;aspect-ratio:16/9}

.vh-event-head{padding:40px 0 20px;background:var(--white)}
.vh-event-head .in{max-width:1100px;margin:0 auto;padding:0 20px}
.vh-event-title{
  font-family:var(--font-display);font-weight:900;font-style:italic;text-transform:uppercase;
  font-size:clamp(32px,6vw,60px);line-height:1.1;letter-spacing:0;color:var(--ink);
}
.vh-event-title em{color:var(--sky)}
.vh-event-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:14px}
.vh-em-item{font-family:var(--font-data);font-size:13px;font-weight:600;color:var(--gray);letter-spacing:.02em}
.vh-em-dot{width:4px;height:4px;border-radius:50%;background:var(--line);flex-shrink:0}

.vh-prize-row{display:flex;align-items:center;gap:14px;padding:13px 0;border-bottom:1px dashed var(--line)}
.vh-prize-row:last-child{border-bottom:none}
.vh-prize-row .pk{
  font-family:var(--font-display);font-weight:900;font-style:italic;font-size:19px;
  width:44px;height:38px;display:grid;place-items:center;color:#fff;flex-shrink:0;
  transform:skewX(-12deg);
}
.vh-prize-row .pk span{transform:skewX(12deg)}
.vh-prize-row:nth-child(1) .pk{background:linear-gradient(180deg,var(--sky),var(--sky-deep))}
.vh-prize-row:nth-child(2) .pk{background:var(--black)}
.vh-prize-row:nth-child(3) .pk{background:#2a3540}
.vh-prize-row .pn{font-weight:600;font-size:14.5px;flex:1}
.vh-prize-row .pv{font-family:var(--font-data);font-weight:700;color:var(--sky)}

.vh-side{display:flex;flex-direction:column;gap:22px;position:sticky;top:84px}
@media(max-width:900px){.vh-side{position:static}}
.vh-side-card{
  border:1px solid var(--line);padding:22px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%);
}
.vh-side-card.dark{background:var(--black);color:#fff;border-color:transparent}
.vh-tl{position:relative;padding-left:24px}
.vh-tl::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:var(--line);transform:skewX(-12deg)}
.vh-tl-item{position:relative;padding-bottom:20px}
.vh-tl-item:last-child{padding-bottom:0}
.vh-tl-item::before{
  content:"";position:absolute;left:-24px;top:5px;width:14px;height:14px;
  background:var(--white);border:3px solid var(--line);transform:skewX(-12deg);
}
.vh-tl-item.on::before{border-color:var(--sky);background:var(--sky);box-shadow:0 0 12px rgba(0,174,239,.5)}
.vh-tl-item .tn{font-weight:700;font-size:14px}
.vh-tl-item.on .tn{color:var(--sky)}
.vh-tl-item .td{font-family:var(--font-data);font-size:11.5px;color:var(--gray);margin-top:2px}
.vh-tl-item .ts{
  display:inline-block;font-family:var(--font-data);font-size:9px;letter-spacing:.14em;
  background:var(--sky-tint);color:var(--sky);padding:3px 9px;margin-top:6px;
  transform:skewX(-12deg);
}
.vh-tl-item .ts span{display:inline-block;transform:skewX(12deg)}

.vh-capline{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.vh-capline .cl{font-family:var(--font-data);font-size:10px;letter-spacing:.18em;color:rgba(255,255,255,.5);text-transform:uppercase}
.vh-capline .cv{font-family:var(--font-data);font-weight:700;font-size:20px}
.vh-capline .cv em{color:var(--sky);font-style:normal}
.vh-capbar{height:7px;background:rgba(255,255,255,.12);transform:skewX(-12deg);overflow:hidden}
.vh-capbar i{display:block;height:100%;background:linear-gradient(90deg,var(--sky),var(--sky-deep))}
.vh-capnote{font-family:var(--font-data);font-size:10.5px;color:rgba(255,255,255,.5);margin-top:9px;letter-spacing:.06em}

.vh-mini-step{display:flex;gap:12px;padding:10px 0;border-bottom:1px dashed var(--line);font-size:13.5px}
.vh-mini-step:last-child{border-bottom:none}
.vh-mini-step .ms-n{font-family:var(--font-data);font-weight:700;color:var(--sky);flex-shrink:0}

.vh-joinbar{position:fixed;left:0;right:0;z-index:90;bottom:calc(var(--bottom-nav-height,74px) + var(--safe-bottom,0px))}
@media(min-width:1024px){.vh-joinbar{display:none}}
.vh-joinbar .in{padding:0 16px 12px;display:flex;gap:12px;align-items:center}
.vh-joinbar .vh-join-price{
  background:var(--black);color:#fff;padding:12px 18px;flex-shrink:0;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
}
.vh-joinbar .vh-join-price .l{font-family:var(--font-data);font-size:8.5px;letter-spacing:.18em;color:rgba(255,255,255,.5)}
.vh-joinbar .vh-join-price .v{font-family:var(--font-data);font-weight:700;font-size:16px;color:var(--sky)}

/* ============================================================
   EVENTS LISTING PAGE — VELOCITY HUD
   ============================================================ */
.vh-el-phero{background:var(--black);color:#fff;position:relative;overflow:hidden;padding:44px 0 32px}
.vh-el-phero::before{
  content:"EVENTS";position:absolute;right:-30px;top:-55px;
  font-family:var(--font-display);font-weight:900;font-style:italic;font-size:220px;line-height:1;
  color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.07);pointer-events:none;
}
.vh-el-phero::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(600px 280px at 12% 130%,rgba(0,174,239,.22),transparent 70%)}
.vh-el-phero .wrap{position:relative;z-index:2;max-width:1200px;margin:0 auto;padding:0 20px}
.vh-el-phero h1{
  font-family:var(--font-display);font-weight:900;font-style:italic;text-transform:uppercase;
  font-size:clamp(36px,6vw,60px);line-height:1.15;letter-spacing:0;margin-top:12px;
}
.vh-el-phero h1 em{color:var(--sky)}
.vh-el-phero .sub{color:rgba(255,255,255,.6);font-size:15px;margin-top:10px}

.vh-filters{
  position:relative;z-index:3;display:flex;flex-wrap:wrap;gap:10px;margin-top:30px;
  padding:4px 0 14px;
}
.vh-ftab{
  display:inline-flex;align-items:center;gap:9px;white-space:nowrap;cursor:pointer;
  font-family:var(--font-display);font-weight:800;font-size:13.5px;
  padding:12px 22px;transform:skewX(-12deg);transition:background .2s,color .2s,border-color .2s;flex-shrink:0;
  background:rgba(255,255,255,.07);color:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.15);
  border-bottom:none;text-decoration:none;
}
.vh-ftab > *{transform:skewX(12deg)}
.vh-ftab:hover{color:#fff;border-color:rgba(0,174,239,.5)}
.vh-ftab.on{background:var(--white);color:var(--ink);border-color:var(--white)}
.vh-ftab .cnt{
  font-family:var(--font-data);font-weight:700;font-size:10.5px;padding:2px 8px;
  background:rgba(255,255,255,.12);color:inherit;
}
.vh-ftab.on .cnt{background:var(--sky);color:#fff}

.vh-toolbar{border-bottom:1px solid var(--line);background:var(--white)}
.vh-toolbar .in{
  max-width:1200px;margin:0 auto;padding:14px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.vh-result-count{font-family:var(--font-data);font-size:11px;letter-spacing:.14em;color:var(--gray);text-transform:uppercase}
.vh-result-count b{color:var(--sky)}
.vh-searchbox{
  display:flex;align-items:center;gap:10px;border:1px solid var(--line);
  padding:9px 16px;min-width:240px;flex:1;max-width:340px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%);
  transition:border-color .2s;
}
.vh-searchbox:focus-within{border-color:var(--sky)}
.vh-searchbox svg{width:16px;height:16px;stroke:var(--gray);flex-shrink:0}
.vh-searchbox input{
  border:none;outline:none;font-family:var(--font-body);font-size:14px;width:100%;
  background:transparent;color:var(--ink);
}
.vh-searchbox input::placeholder{color:#aab0b8}

.vh-el-sec{padding:36px 0 80px}
.vh-egrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:1200px;margin:0 auto;padding:0 20px}
@media(max-width:960px){.vh-egrid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.vh-egrid{grid-template-columns:1fr}}

.vh-ecard{
  background:var(--white);border:1px solid var(--line);position:relative;overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%);
  transition:transform .3s,box-shadow .3s,border-color .3s;display:flex;flex-direction:column;
  text-decoration:none;color:inherit;
}
.vh-ecard:hover{transform:translateY(-6px);box-shadow:0 24px 48px rgba(0,0,0,.10);border-color:transparent}
.vh-ecard-img{aspect-ratio:16/10;position:relative;overflow:hidden;background:var(--ink)}
.vh-ecard-img .ph{position:absolute;inset:0;display:grid;place-items:center;font-size:64px;background:linear-gradient(135deg,#101318,#1b2431 55%,#0c3247);transition:transform .5s}
.vh-ecard-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.vh-ecard:hover .vh-ecard-img .ph,.vh-ecard:hover .vh-ecard-img img{transform:scale(1.05)}
.vh-ecard-img::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.5),transparent 55%)}
.vh-sbadge{
  position:absolute;top:13px;left:13px;z-index:2;
  display:inline-flex;align-items:center;gap:7px;font-family:var(--font-data);
  font-size:10px;font-weight:700;letter-spacing:.14em;padding:6px 12px;
  transform:skewX(-12deg);text-transform:uppercase;
}
.vh-sbadge > *{transform:skewX(12deg)}
.vh-sbadge.live{background:var(--sky);color:#fff}
.vh-sbadge.soon{background:var(--white);color:var(--ink);border:1px solid var(--ink)}
.vh-sbadge.ended{background:var(--black);color:rgba(255,255,255,.75)}
.vh-ecard-sport{
  position:absolute;bottom:12px;left:13px;z-index:2;color:#fff;
  font-family:var(--font-display);font-weight:800;font-style:italic;font-size:12px;
  letter-spacing:.06em;text-transform:uppercase;display:flex;align-items:center;gap:7px;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}
.vh-dl-tag{
  position:absolute;top:13px;right:13px;z-index:2;
  font-family:var(--font-data);font-size:9.5px;letter-spacing:.1em;
  background:rgba(0,0,0,.65);backdrop-filter:blur(6px);color:#fff;
  padding:5px 10px;transform:skewX(-12deg);
}
.vh-dl-tag span{display:inline-block;transform:skewX(12deg)}
.vh-dl-tag b{color:var(--sky)}

.vh-ecard-body{padding:18px 18px 20px;display:flex;flex-direction:column;flex:1}
.vh-ecard-body h3{font-family:var(--font-display);font-weight:800;font-size:18px;letter-spacing:0;line-height:1.15;color:var(--ink)}
.vh-ecard:hover .vh-ecard-body h3{color:var(--sky)}
.vh-ecard-body p{font-size:13.5px;color:var(--gray);margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.vh-ecard-meta{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  margin-top:14px;font-family:var(--font-data);font-size:11.5px;color:var(--gray);
}
.vh-ecard-meta b{color:var(--ink)}
.vh-ecard-meta .full{color:var(--sky);font-weight:700}
.vh-cap{height:5px;background:var(--line);margin-top:9px;transform:skewX(-12deg);overflow:hidden}
.vh-cap i{display:block;height:100%;background:linear-gradient(90deg,var(--sky),var(--sky-deep))}
.vh-cap.hot i{background:linear-gradient(90deg,var(--sky-deep),var(--sky))}

.vh-ecard.ended .vh-ecard-img .ph,.vh-ecard.ended .vh-ecard-img img{filter:grayscale(1);opacity:.75}
.vh-ecard.ended .vh-ecard-body h3{color:var(--gray)}
.vh-ecard.ended:hover{transform:none;box-shadow:0 10px 24px rgba(0,0,0,.06)}
.vh-ecard.ended .vh-view-result{
  margin-top:12px;display:inline-flex;align-items:center;gap:6px;
  font-family:var(--font-data);font-size:10.5px;letter-spacing:.12em;color:var(--sky);
}

.vh-el-empty{
  grid-column:1/-1;text-align:center;padding:70px 20px;border:1px dashed var(--line);
}
.vh-el-empty .big{font-family:var(--font-display);font-weight:900;font-style:italic;font-size:26px;color:var(--ink);text-transform:uppercase}
.vh-el-empty .big em{color:var(--sky)}
.vh-el-empty p{font-size:14px;color:var(--gray);margin-top:8px}

/* ============================================================
   LOGIN PAGE — VELOCITY HUD
   ============================================================ */
.vh-auth-page{
  min-height:calc(100svh - var(--bottom-nav-height,74px));
  display:flex;flex-direction:column;align-items:center;
  padding:32px 20px 80px;
  position:relative;overflow:hidden;
  background:
    linear-gradient(160deg,rgba(0,174,239,.08) 0%,transparent 50%),
    radial-gradient(600px 380px at 90% 10%,rgba(0,174,239,.14),transparent 70%),
    radial-gradient(500px 300px at 10% 90%,rgba(0,174,239,.10),transparent 70%),
    var(--white);
}
.vh-auth-page::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(102deg,transparent 0 180px,rgba(0,174,239,.06) 180px 182px);
}
.vh-auth-page::after{
  content:"iF";position:absolute;right:-60px;bottom:-80px;
  font-family:var(--font-display);font-weight:900;font-style:italic;font-size:320px;line-height:1;
  color:transparent;-webkit-text-stroke:1.5px rgba(0,174,239,.14);pointer-events:none;
}
.vh-auth-page > *{position:relative;z-index:2}
@media(min-width:901px){
  .vh-auth-page{padding:48px 20px 60px}
}

/* --- Brand header --- */
.vh-auth-brand{
  display:flex;flex-direction:column;align-items:center;gap:10px;
  margin-bottom:32px;text-align:center;
}
.vh-auth-tag{
  font-family:var(--font-data);font-size:11px;font-weight:700;letter-spacing:.24em;
  text-transform:uppercase;color:var(--sky);
}
.vh-bp-logo{display:inline-flex;align-items:center;text-decoration:none;transition:opacity .2s}
.vh-bp-logo:hover{opacity:.7}
.vh-bp-logo .auto-logo{display:inline-flex;align-items:center}
.vh-bp-logo .auto-logo-img{height:40px;width:auto}

/* --- Form grid --- */
.vh-auth-grid{
  width:100%;max-width:920px;
  display:grid;grid-template-columns:1fr 1fr;gap:24px;
}
@media(max-width:900px){
  .vh-auth-grid{grid-template-columns:1fr;max-width:440px}
}
.vh-auth-card{
  background:var(--white);border:1px solid var(--line);
  padding:32px 28px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%);
}
@media(max-width:900px){
  .vh-auth-card{padding:24px 20px}
}

.vh-form-box{width:100%;max-width:400px}
.vh-form-head{margin-bottom:30px}
.vh-form-head .fl{
  font-family:var(--font-data);font-size:10.5px;font-weight:700;letter-spacing:.22em;
  text-transform:uppercase;color:var(--sky);display:inline-flex;align-items:center;gap:8px;
}
.vh-form-head .fl::before{content:"";width:20px;height:2px;background:var(--sky);transform:skewX(-12deg)}
.vh-form-head h1{
  font-family:var(--font-display);font-weight:900;font-style:italic;text-transform:uppercase;
  font-size:34px;letter-spacing:0;line-height:1.15;margin-top:8px;
}
.vh-form-head h1 em{color:var(--sky)}
.vh-form-head p{font-size:14px;color:var(--gray);margin-top:4px}

.vh-err{
  display:none;align-items:flex-start;gap:10px;font-size:13.5px;
  border:1px solid rgba(224,83,61,.4);background:rgba(224,83,61,.06);color:#b3402e;
  padding:12px 16px;margin-bottom:20px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
}
.vh-err.show{display:flex}
.vh-err b{font-family:var(--font-data);font-size:10px;letter-spacing:.14em;display:block;text-transform:uppercase}
.vh-ok{
  display:flex;align-items:flex-start;gap:10px;font-size:13.5px;
  border:1px solid rgba(34,197,94,.4);background:rgba(34,197,94,.06);color:#15803d;
  padding:12px 16px;margin-bottom:20px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
}

.vh-field{margin-bottom:18px}
.vh-field label{
  display:flex;justify-content:space-between;align-items:baseline;
  font-size:13.5px;font-weight:600;margin-bottom:7px;
}
.vh-field label .hint{font-family:var(--font-data);font-size:10px;letter-spacing:.1em;color:var(--gray)}
.vh-input-wrap{position:relative;display:flex;align-items:center}
.vh-input-wrap > svg{position:absolute;left:15px;width:17px;height:17px;stroke:#aab0b8;transition:stroke .2s;pointer-events:none;fill:none;stroke-width:2}
.vh-field input{
  width:100%;border:1.5px solid var(--line);background:var(--white);
  font-family:var(--font-body);font-size:15px;color:var(--ink);
  padding:13px 15px 13px 44px;min-height:50px;outline:none;transition:border-color .2s,background .2s;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
}
.vh-field input:focus{border-color:var(--sky);background:var(--sky-tint)}
.vh-field input:focus ~ svg,.vh-input-wrap:focus-within > svg{stroke:var(--sky)}
.vh-toggle-pw{
  position:absolute;right:6px;background:none;border:none;cursor:pointer;padding:8px;
  display:grid;place-items:center;color:#aab0b8;
}
.vh-toggle-pw:hover{color:var(--sky)}
.vh-toggle-pw svg{position:static;width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.vh-forgot{display:block;text-align:right;font-size:13px;font-weight:600;color:var(--sky);margin:-6px 0 20px;text-decoration:none}
.vh-forgot:hover{text-decoration:underline}

/* Password strength meter */
.vh-pw-strength{height:4px;margin-top:6px;background:var(--line);border-radius:2px;overflow:hidden}
.vh-pw-strength-fill{height:100%;width:0;border-radius:2px;transition:width .3s,background .3s}
.vh-pw-strength-fill.weak{background:#ef4444}
.vh-pw-strength-fill.fair{background:#f59e0b}
.vh-pw-strength-fill.good{background:#10b981}
.vh-pw-strength-fill.strong{background:#059669}

/* PDPA checkbox */
.vh-pdpa-field{margin-top:6px}
.vh-pdpa-alert{
  display:none;margin-top:8px;font-size:13px;color:#b3402e;
  padding:8px 12px;border:1px solid rgba(224,83,61,.3);background:rgba(224,83,61,.06);
  border-radius:4px;animation:vhFadeIn .25s ease;
}
.vh-pdpa-alert.show{display:block}
.vh-checkbox-wrap{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:13.5px;font-weight:400;line-height:1.5}
.vh-checkbox-wrap input[type="checkbox"]{position:absolute;opacity:0;width:0;height:0}
.vh-checkbox-custom{flex-shrink:0;width:20px;height:20px;border:2px solid var(--line);border-radius:4px;margin-top:1px;transition:border-color .2s,background .2s;position:relative}
.vh-checkbox-wrap input:checked ~ .vh-checkbox-custom{background:var(--sky);border-color:var(--sky)}
.vh-checkbox-wrap input:checked ~ .vh-checkbox-custom::after{content:"";position:absolute;top:3px;left:6px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.vh-checkbox-label a{color:var(--sky);text-decoration:underline}

.vh-btn{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  font-family:var(--font-display);font-weight:800;font-size:15px;cursor:pointer;
  padding:15px 24px;border:none;transform:skewX(-12deg);transition:background .25s,transform .25s,box-shadow .25s;
}
.vh-btn > span{display:inline-flex;align-items:center;gap:10px;transform:skewX(12deg)}
.vh-btn-primary{background:var(--sky);color:#fff;box-shadow:0 8px 24px rgba(0,174,239,.3)}
.vh-btn-primary:hover{background:var(--sky-deep);transform:skewX(-12deg) translateY(-2px);box-shadow:0 12px 30px rgba(0,174,239,.4)}

.vh-or{display:flex;align-items:center;gap:14px;margin:26px 0}
.vh-or::before,.vh-or::after{content:"";flex:1;height:1px;background:var(--line)}
.vh-or span{font-family:var(--font-data);font-size:10px;letter-spacing:.2em;color:var(--gray);text-transform:uppercase}

.vh-social{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  font-family:var(--font-body);font-weight:600;font-size:14.5px;cursor:pointer;
  padding:13px 20px;min-height:50px;background:var(--white);border:1.5px solid var(--line);
  transition:border-color .2s,background .2s;margin-bottom:12px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
  text-decoration:none;color:var(--ink);
}
.vh-social:hover{border-color:var(--ink);background:#fafafa}
.vh-social svg{width:19px;height:19px;flex-shrink:0}
.vh-social.line:hover{border-color:#06C755;background:rgba(6,199,85,.04)}

.vh-signup{
  text-align:center;font-size:14px;color:var(--gray);margin-top:28px;
  padding-top:24px;border-top:1px dashed var(--line);
}
.vh-signup a{
  display:inline-block;font-family:var(--font-display);font-weight:800;color:var(--sky);
  margin-left:6px;text-decoration:none;
}
.vh-signup a:hover{text-decoration:underline}

.vh-secure{
  display:flex;align-items:center;justify-content:center;gap:7px;margin-top:18px;
  font-family:var(--font-data);font-size:9.5px;letter-spacing:.16em;color:#aab0b8;text-transform:uppercase;
}
.vh-secure svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2}

/* ============================================================
   VERIFY-NOTICE PAGE — VELOCITY HUD / Email Confirmation
   ============================================================ */
.vh-verify-wrap{width:100%;max-width:440px;display:flex;flex-direction:column;align-items:center}

.vh-verify-card{max-width:440px;width:100%}
.vh-verify-card .vh-form-box{max-width:100%}

.vh-verify-icon{
  width:64px;height:64px;display:grid;place-items:center;margin:0 auto 20px;
  background:var(--black);color:var(--sky);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%);
}
.vh-verify-icon svg{width:32px;height:32px}

.vh-verify-head{text-align:center;margin-bottom:24px}
.vh-verify-head .fl{justify-content:center}
.vh-verify-head .fl::before{display:none}
.vh-verify-head h1{font-size:28px}
.vh-verify-head p{font-size:14px;line-height:1.6;margin-top:8px}
.vh-verify-email{color:var(--ink);font-weight:700;word-break:break-all}

.vh-otp-input{
  width:100%;border:1.5px solid var(--line);background:var(--white);
  font-family:var(--font-data);font-size:32px;font-weight:700;
  color:var(--ink);text-align:center;letter-spacing:.5em;
  padding:18px 15px;min-height:64px;outline:none;
  transition:border-color .2s,background .2s,box-shadow .2s;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
}
.vh-otp-input:focus{
  border-color:var(--sky);background:var(--sky-tint);
  box-shadow:0 0 0 3px rgba(0,174,239,.12);
}
.vh-otp-input::placeholder{color:#c8ccd0;font-weight:400}

.vh-verify-resend{margin-top:24px;text-align:center}
.vh-resend-msg{font-size:13.5px;margin-bottom:8px;min-height:20px}
.vh-resend-msg.ok{color:#15803d}
.vh-resend-msg.err{color:#b3402e}
.vh-resend-btn{
  display:inline-flex;align-items:center;gap:7px;
  font-family:var(--font-body);font-size:14px;font-weight:600;
  color:var(--sky);background:none;border:none;cursor:pointer;
  padding:6px 4px;transition:color .2s;
}
.vh-resend-btn:hover{color:var(--sky-deep);text-decoration:underline}
.vh-resend-btn svg{flex-shrink:0}

.vh-verify-back{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font-body);font-size:14px;font-weight:600;
  color:var(--gray);margin-top:28px;text-decoration:none;transition:color .2s;
}
.vh-verify-back:hover{color:var(--sky)}
.vh-verify-back svg{flex-shrink:0}

/* ============================================================
   PROFILE PAGE — VELOCITY HUD / Light Athlete Dashboard
   ============================================================ */
.vh-profile{max-width:960px;margin:0 auto;padding:12px 16px calc(var(--bottom-nav-height) + var(--safe-bottom) + 24px)}
@media(min-width:1024px){.vh-profile{padding:20px 24px calc(var(--bottom-nav-height) + var(--safe-bottom) + 32px)}}

/* --- Hero (light) --- */
.vh-prof-hero{
  position:relative;overflow:hidden;
  border:1px solid var(--line);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%);
  margin-bottom:16px;background:var(--white);
}
@media(min-width:1024px){.vh-prof-hero{margin-bottom:20px}}
.vh-prof-cover{position:absolute;inset:0;z-index:0;opacity:.12}
.vh-prof-cover-btn{
  position:absolute;top:10px;right:10px;z-index:5;
  width:44px;height:44px;display:grid;place-items:center;
  background:rgba(255,255,255,.7);color:var(--gray);border:1px solid var(--line);
  cursor:pointer;transition:.2s;backdrop-filter:blur(4px);text-decoration:none;
}
@media(min-width:640px){.vh-prof-cover-btn{top:12px;right:12px}}
.vh-prof-cover-btn:hover{background:var(--sky);border-color:var(--sky);color:#fff}
.vh-prof-cover-btn svg{flex-shrink:0}

.vh-prof-picker{
  position:absolute;top:58px;right:10px;z-index:10;
  background:var(--white);border:1px solid var(--line);
  padding:12px;min-width:200px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
@media(min-width:640px){.vh-prof-picker{padding:14px;min-width:220px}}
.vh-prof-picker-row{display:flex;gap:12px}
.vh-prof-picker-field{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--gray)}
.vh-prof-picker-field input[type="color"]{width:80px;height:36px;border:1px solid var(--line);cursor:pointer;padding:2px}
.vh-prof-picker-actions{display:flex;gap:8px;margin-top:10px}
.vh-prof-picker-save{
  flex:1;background:var(--sky);color:#fff;border:none;cursor:pointer;
  padding:8px;font-family:var(--font-display);font-weight:700;font-size:13px;
  transform:skewX(-12deg);
}
.vh-prof-picker-save > span{display:inline-block;transform:skewX(12deg)}
.vh-prof-picker-save:hover{background:var(--sky-deep)}
.vh-prof-picker-cancel{
  flex:1;background:var(--white);color:var(--gray);border:1px solid var(--line);
  cursor:pointer;padding:8px;font-size:13px;font-weight:600;
}
.vh-prof-picker-cancel:hover{border-color:var(--ink);color:var(--ink)}
.vh-prof-picker-status{font-size:11px;margin-top:6px}
.vh-prof-picker-status.ok{color:#15803d}
.vh-prof-picker-status.err{color:#b3402e}
.vh-prof-picker-status.info{color:var(--gray)}

.vh-prof-info{
  position:relative;z-index:2;display:flex;align-items:center;gap:14px;
  padding:24px 16px 18px;
}
@media(min-width:640px){.vh-prof-info{padding:32px 24px 24px;gap:18px}}
@media(min-width:1024px){.vh-prof-info{padding:40px 32px 28px;gap:24px}}
.vh-prof-avatar-wrap{position:relative;flex-shrink:0}
.vh-prof-avatar-ring{
  width:72px;height:72px;border-radius:50%;padding:3px;
  background:linear-gradient(135deg,var(--sky),var(--sky-deep));
  box-shadow:0 4px 16px rgba(0,174,239,.25);
}
@media(min-width:640px){.vh-prof-avatar-ring{width:88px;height:88px}}
@media(min-width:1024px){.vh-prof-avatar-ring{width:96px;height:96px}}
.vh-prof-avatar{
  width:100%;height:100%;border-radius:50%;overflow:hidden;
  background:var(--sky-tint);
}
.vh-prof-avatar img{width:100%;height:100%;object-fit:cover}
.vh-prof-avatar-placeholder{
  width:100%;height:100%;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:900;font-size:26px;color:var(--sky);
}
@media(min-width:640px){.vh-prof-avatar-placeholder{font-size:32px}}
.vh-prof-camera{
  position:absolute;bottom:-2px;right:-2px;
  width:28px;height:28px;background:var(--sky);color:#fff;
  border-radius:50%;display:grid;place-items:center;cursor:pointer;
  border:2px solid var(--white);transition:background .2s;
}
@media(min-width:640px){.vh-prof-camera{width:30px;height:30px}}
.vh-prof-camera:hover{background:var(--sky-deep)}
.vh-prof-meta{min-width:0;flex:1}
.vh-prof-name{font-family:var(--font-display);font-weight:800;font-size:18px;color:var(--ink);line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:640px){.vh-prof-name{font-size:22px}}
@media(min-width:1024px){.vh-prof-name{font-size:24px}}
.vh-prof-email{font-family:var(--font-data);font-size:11px;letter-spacing:.06em;color:var(--gray);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:640px){.vh-prof-email{font-size:12px}}
.vh-prof-tags{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.vh-prof-tag-id{
  display:inline-flex;align-items:center;gap:5px;
  font-family:var(--font-data);font-size:9.5px;font-weight:700;letter-spacing:.12em;
  border:1px solid var(--line);color:var(--gray);padding:4px 10px;
  text-transform:uppercase;
}
.vh-prof-tag-bmi{
  display:inline-flex;align-items:center;gap:5px;
  font-family:var(--font-data);font-size:9.5px;font-weight:700;letter-spacing:.12em;
  background:var(--sky-tint);border:1px solid rgba(0,174,239,.3);color:var(--ink);padding:4px 10px;
}
.vh-prof-tag-bmi b{color:var(--sky)}
.vh-prof-upload-status{font-size:12px;margin-top:8px}
.vh-prof-upload-status.ok{color:#15803d}
.vh-prof-upload-status.err{color:#b3402e}
.vh-prof-upload-status.info{color:var(--gray)}

/* --- Athlete stat strip --- */
.vh-prof-stats{
  display:grid;grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line);position:relative;z-index:2;
}
.vh-prof-stat{
  padding:14px 12px;border-right:1px solid var(--line);text-align:center;
}
.vh-prof-stat:last-child{border-right:none}
.vh-prof-stat-v{font-family:var(--font-data);font-weight:700;font-size:22px;color:var(--ink);line-height:1}
@media(min-width:640px){.vh-prof-stat-v{font-size:26px}}
@media(min-width:1024px){.vh-prof-stat-v{font-size:30px}}
.vh-prof-stat-l{font-family:var(--font-data);font-size:9px;letter-spacing:.14em;color:var(--gray);margin-top:6px;text-transform:uppercase}

/* --- Block title --- */
.vh-prof-block-title{
  font-family:var(--font-data);font-size:10.5px;font-weight:700;letter-spacing:.22em;
  text-transform:uppercase;color:var(--sky);display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;
}
.vh-prof-block-title::before{content:"";width:20px;height:2px;background:var(--sky);transform:skewX(-12deg)}

/* --- Tabs --- */
.vh-prof-tabs{
  display:flex;gap:0;margin-bottom:16px;
  border:1px solid var(--line);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
  background:var(--white);
}
@media(min-width:640px){.vh-prof-tabs{margin-bottom:20px}}
@media(min-width:1024px){.vh-prof-tabs{margin-bottom:24px}}
.vh-prof-tab{
  flex:1;display:flex;align-items:center;justify-content:center;gap:6px;
  background:var(--white);border:none;cursor:pointer;
  padding:12px 8px;font-family:var(--font-body);font-size:13px;font-weight:600;
  color:var(--gray);transition:background .2s,color .2s;min-height:48px;
  border-right:1px solid var(--line);white-space:nowrap;
}
@media(min-width:640px){.vh-prof-tab{padding:14px 12px;font-size:14px;gap:8px;min-height:50px}}
.vh-prof-tab:last-child{border-right:none}
.vh-prof-tab.active{background:var(--ink);color:#fff}
.vh-prof-tab:not(.active):hover{color:var(--ink);background:#fafafa}
.vh-prof-tab-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;padding:0 6px;
  font-family:var(--font-data);font-size:11px;font-weight:700;
  background:var(--sky);color:#fff;
}

/* --- Event Sub-tabs --- */
.vh-prof-subtabs{
  display:flex;gap:0;margin-bottom:16px;overflow-x:auto;
  border:1px solid var(--line);border-radius:8px;background:var(--white);
  -webkit-overflow-scrolling:touch;
}
.vh-prof-subtab{
  flex:1;display:flex;align-items:center;justify-content:center;gap:6px;
  background:var(--white);border:none;cursor:pointer;
  padding:10px 8px;font-family:var(--font-body);font-size:12px;font-weight:600;
  color:var(--gray);transition:background .2s,color .2s;min-height:42px;
  border-right:1px solid var(--line);white-space:nowrap;
}
@media(min-width:640px){.vh-prof-subtab{padding:12px 10px;font-size:13px;gap:8px;min-height:46px}}
.vh-prof-subtab:last-child{border-right:none}
.vh-prof-subtab.active{background:var(--ink);color:#fff}
.vh-prof-subtab:not(.active):hover{color:var(--ink);background:#fafafa}
.vh-prof-subtab-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;padding:0 5px;
  font-family:var(--font-data);font-size:10px;font-weight:700;
  background:var(--sky);color:#fff;border-radius:9px;
}
.vh-prof-subtab.active .vh-prof-subtab-badge{background:rgba(255,255,255,.25)}
.vh-prof-subpanel-empty{
  text-align:center;padding:32px 16px;color:var(--gray);font-size:14px;
}

/* --- Form --- */
.vh-prof-form{background:var(--white);border:1px solid var(--line);padding:18px 16px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%)}
@media(min-width:640px){.vh-prof-form{padding:36px 32px}}
@media(min-width:1024px){.vh-prof-form{padding:40px 40px}}
.vh-prof-section{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}
@media(min-width:640px){.vh-prof-section{gap:20px;margin-bottom:28px}}
.vh-prof-section:last-of-type{margin-bottom:0}
.vh-prof-section-label{
  font-family:var(--font-display);font-size:15px;font-weight:800;
  letter-spacing:0;color:var(--ink);
  margin-bottom:-2px;
}
@media(min-width:640px){.vh-prof-section-label{font-size:16px}}
.vh-prof-body-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media(min-width:640px){.vh-prof-body-grid{gap:12px}}
.vh-prof-form .vh-field{margin-bottom:0}
.vh-prof-form .vh-field label{
  font-size:14px;font-weight:600;margin-bottom:6px;
}
@media(min-width:640px){.vh-prof-form .vh-field label{font-size:15px;margin-bottom:8px}}
.vh-prof-form .vh-field input{
  font-size:16px;padding:12px 14px 12px 42px;min-height:48px;
}
@media(min-width:640px){.vh-prof-form .vh-field input{padding:15px 16px 15px 46px;min-height:54px}}
.vh-prof-form .vh-input-wrap > svg{left:14px;width:18px;height:18px}
@media(min-width:640px){.vh-prof-form .vh-input-wrap > svg{left:16px;width:19px;height:19px}}
.vh-input-disabled{background:#f9fafb;color:#9ca3af;cursor:not-allowed}
.vh-field-note{font-size:12px;color:#9ca3af;margin-top:4px}
.vh-input-unit{padding-right:38px}
.vh-unit{
  position:absolute;right:16px;font-size:14px;font-weight:600;color:var(--gray);pointer-events:none;
}
.vh-prof-bmi{
  display:flex;align-items:center;gap:10px;padding:12px 16px;
  background:var(--sky-tint);font-size:14px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%);
}
.vh-prof-bmi-label{font-family:var(--font-data);font-size:11px;letter-spacing:.1em;color:var(--gray)}
.vh-prof-bmi-value{font-family:var(--font-data);font-weight:700;font-size:22px}
.vh-prof-bmi-cat{font-size:14px;font-weight:600}

.vh-prof-link-row{
  display:flex;align-items:center;gap:10px;
  padding:14px 16px;border:1px solid var(--line);
  text-decoration:none;color:var(--ink);font-size:15px;font-weight:600;
  transition:background .2s,border-color .2s;min-height:48px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
}
@media(min-width:640px){.vh-prof-link-row{gap:12px;padding:16px 18px;font-size:16px;min-height:54px}}
.vh-prof-link-row:hover{background:#fafafa;border-color:var(--sky);color:var(--sky)}
.vh-prof-link-row svg{color:var(--gray);flex-shrink:0}

.vh-prof-save-bar{position:sticky;bottom:0;left:0;padding-top:12px;z-index:5;
  background:linear-gradient(to top,var(--white) 60%,transparent)}
.vh-prof-form .vh-btn{
  font-size:16px;padding:14px 20px;min-height:50px;width:100%;
}
@media(min-width:640px){.vh-prof-form .vh-btn{padding:16px 24px;min-height:54px;width:auto}}
.vh-prof-logout{
  display:block;text-align:center;margin-top:16px;padding:14px;
  font-family:var(--font-data);font-size:11px;letter-spacing:.16em;color:#b3402e;text-decoration:none;
  text-transform:uppercase;transition:color .2s;
}
@media(min-width:640px){.vh-prof-logout{margin-top:20px;padding:16px;font-size:12px}}
.vh-prof-logout:hover{text-decoration:underline}

/* --- Events Tab --- */
.vh-prof-empty{text-align:center;padding:48px 20px;border:1px dashed var(--line)}
.vh-prof-empty-text{font-size:15px;color:var(--gray);margin-top:12px}

.vh-prof-event-list{display:flex;flex-direction:column;gap:12px}
.vh-prof-ecard{
  background:var(--white);border:1px solid var(--line);
  border-left:4px solid var(--line);
  overflow:hidden;
  transition:border-color .2s;
}
.vh-prof-ecard.approved{border-left-color:var(--sky)}
.vh-prof-ecard.pending{border-left-color:#9aa1a9}
.vh-prof-ecard.rejected{border-left-color:#e0533d}
.vh-prof-ecard-body{display:flex;flex-direction:column;gap:0}
@media(min-width:768px){.vh-prof-ecard-body{flex-direction:row;align-items:stretch}}
.vh-prof-ecard-info{flex:1;min-width:0;padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.vh-prof-ecard-head{display:flex;align-items:center;gap:14px}
.vh-prof-esport{
  width:46px;height:46px;flex-shrink:0;display:grid;place-items:center;font-size:22px;
  background:var(--sky-tint);
}
.vh-prof-ecard.rejected .vh-prof-esport{background:#faf0ee}
.vh-prof-einfo{flex:1;min-width:0}
.vh-prof-ecard-title{font-family:var(--font-display);font-weight:700;font-size:16px;color:var(--ink);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:640px){.vh-prof-ecard-title{font-size:17px}}
.vh-prof-est{display:flex;align-items:center;gap:10px;margin-top:4px;flex-wrap:wrap}
.vh-prof-st{
  display:inline-flex;align-items:center;gap:6px;font-family:var(--font-data);
  font-size:9px;font-weight:700;letter-spacing:.12em;padding:3.5px 10px;
  text-transform:uppercase;
}
.vh-prof-st.ok{background:var(--sky);color:#fff}
.vh-prof-st.wait{border:1.5px solid var(--gray);color:var(--gray)}
.vh-prof-st.no{background:#0D0F12;color:#ff9d8c}
.vh-prof-est-sub{font-family:var(--font-data);font-size:10px;color:var(--gray);letter-spacing:.04em}
.vh-prof-ecard-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:4px}
.vh-prof-btn-primary{
  display:inline-flex;align-items:center;gap:8px;font-family:var(--font-display);
  font-weight:700;font-size:13px;padding:10px 18px;
  background:var(--sky);color:#fff;text-decoration:none;transition:.2s;white-space:nowrap;
}
.vh-prof-btn-primary:hover{background:var(--sky-deep)}
.vh-prof-btn-ghost{
  display:inline-flex;align-items:center;gap:8px;font-family:var(--font-display);
  font-weight:700;font-size:13px;padding:10px 18px;
  border:1px solid var(--line);color:var(--gray);text-decoration:none;transition:.2s;white-space:nowrap;
}
.vh-prof-btn-ghost:hover{border-color:var(--ink);color:var(--ink)}

/* rejected reason */
.vh-prof-ereason{
  display:flex;gap:10px;align-items:flex-start;
  font-size:13.5px;color:#b3402e;
}
.vh-prof-ereason svg{flex-shrink:0;margin-top:3px}
.vh-prof-ereason a{font-weight:700;text-decoration:underline;margin-left:4px}

/* QR not-yet-available notice (pending) */
.vh-prof-qr-notice{
  display:flex;align-items:center;gap:8px;
  font-size:12.5px;color:var(--gray);
}
.vh-prof-qr-notice svg{flex-shrink:0;color:#9aa1a9}
.vh-prof-qr-notice.ended{color:#b3402e}
.vh-prof-qr-notice.ended svg{color:#b3402e}

/* QR inline section (right side of horizontal card) */
.vh-prof-ecard-qr{
  flex-shrink:0;padding:16px;display:flex;flex-direction:column;align-items:center;gap:10px;
  border-left:1px dashed var(--line);width:180px;
}
@media(max-width:767px){.vh-prof-ecard-qr{border-left:none;border-top:1px dashed var(--line);width:100%}}
.vh-prof-ecard-qr .qr-card{padding:0;background:none;border:none;flex-direction:column;gap:10px;width:100%}
.vh-prof-ecard-qr .qr-card-left{align-items:center}
.vh-prof-ecard-qr .qr-card-canvas{width:128px;height:128px}
.vh-prof-ecard-qr .qr-card-right{gap:6px;align-items:center;text-align:center;width:100%}
.vh-prof-ecard-qr .qr-card-actions{gap:6px;justify-content:center;flex-wrap:wrap}
.vh-prof-ecard-qr .qr-card-btn{font-size:11px;padding:6px 10px;min-height:34px}
.vh-prof-ecard-qr .qr-card-quota{margin:0 auto}

/* Mobile: stack actions */
@media(max-width:560px){
  .vh-prof-ecard-actions{flex-direction:column}
  .vh-prof-ecard-actions .vh-prof-btn-primary,
  .vh-prof-ecard-actions .vh-prof-btn-ghost{width:100%;justify-content:center}
}

.vh-prof-subtitle{
  font-family:var(--font-display);font-weight:800;font-size:18px;color:var(--ink);
  letter-spacing:0;line-height:1.15;margin-top:28px;margin-bottom:12px;
}
.vh-prof-joinable-list{display:flex;flex-direction:column;gap:8px}
@media(min-width:640px){.vh-prof-joinable-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}}
@media(min-width:1024px){.vh-prof-joinable-list{grid-template-columns:repeat(3,1fr);gap:12px}}
.vh-prof-joinable{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:13px 16px;background:var(--white);border:1px solid var(--line);
  text-decoration:none;transition:.2s;min-height:48px;
  clip-path:polygon(0 0,100% 0,100% 100%,8px 100%);
}
.vh-prof-joinable:hover{border-color:var(--sky);background:var(--sky-tint)}
.vh-prof-joinable-left{display:flex;align-items:center;gap:10px;min-width:0}
.vh-prof-joinable-icon{
  width:32px;height:32px;background:var(--sky-tint);color:var(--sky);
  display:grid;place-items:center;flex-shrink:0;
}
.vh-prof-joinable-title{font-weight:600;font-size:14px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vh-prof-joinable-cta{font-family:var(--font-data);font-size:10px;letter-spacing:.1em;color:var(--sky);white-space:nowrap}

.vh-prof-infographic{
  display:flex;align-items:center;gap:14px;margin-top:20px;margin-bottom:16px;padding:16px 18px;
  background:var(--white);color:var(--ink);text-decoration:none;
  border:1px solid var(--line);
  transition:.25s;
}
@media(min-width:640px){.vh-prof-infographic{margin-top:24px;margin-bottom:20px;padding:18px 20px}}
@media(min-width:1024px){.vh-prof-infographic{margin-top:28px;margin-bottom:24px;padding:20px 24px}}
.vh-prof-infographic:hover{box-shadow:0 8px 24px rgba(0,174,239,.12);border-color:var(--sky)}
.vh-prof-infographic-icon{
  width:40px;height:40px;background:rgba(0,174,239,.12);color:var(--sky);
  display:grid;place-items:center;flex-shrink:0;
}
.vh-prof-infographic-text{min-width:0;flex:1}
.vh-prof-infographic-title{font-family:var(--font-display);font-weight:700;font-size:14px;color:var(--ink)}
.vh-prof-infographic-sub{font-size:12.5px;color:var(--gray);margin-top:2px}
.vh-prof-infographic > svg{color:var(--sky);flex-shrink:0}

/* --- Profile reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .vh-prof-ecard,.vh-prof-joinable,.vh-prof-infographic{transition:none}
}

/* ============================================================
   MY REPORT PAGE — VELOCITY HUD / Telemetry design
   ============================================================ */

/* --- Report Hero (light, auth-style) --- */
.vh-rhero{
  background:
    radial-gradient(500px 300px at 90% 10%,rgba(0,174,239,.08),transparent 70%),
    radial-gradient(500px 300px at 10% 90%,rgba(0,174,239,.10),transparent 70%),
    var(--vh-white);
  color:var(--vh-ink);position:relative;overflow:hidden;padding:32px 0 0;
}
.vh-rhero::before{
  content:"DATA";position:absolute;right:-30px;top:-55px;
  font-family:'Archivo',sans-serif;font-weight:900;font-style:italic;font-size:230px;line-height:1;
  color:transparent;-webkit-text-stroke:1.5px rgba(0,174,239,.10);pointer-events:none;
}
.vh-rhero::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(102deg,transparent 0 180px,rgba(0,174,239,.05) 180px 182px)}
.vh-rhero-wrap{max-width:1000px;margin:0 auto;padding:0 20px;position:relative;z-index:2}
.vh-rhero-crumbs{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.vh-rhero-back{
  width:38px;height:38px;display:grid;place-items:center;color:var(--vh-ink);
  border:1px solid var(--vh-line);transform:skewX(-12deg);transition:.2s;
}
.vh-rhero-back svg{transform:skewX(12deg)}
.vh-rhero-back:hover{background:var(--vh-sky);border-color:var(--vh-sky)}
.vh-rhero-crumb-label{font-family:var(--vh-font-data);font-size:10.5px;letter-spacing:.2em;color:var(--vh-gray);text-transform:uppercase}
.vh-rhero-title{font-family:var(--vh-font-display);font-weight:900;font-style:italic;font-size:clamp(26px,5vw,44px);line-height:1.15;letter-spacing:0}
.vh-rhero-title em{color:var(--vh-sky);font-style:italic}
.vh-rhero-sub{color:var(--vh-gray);font-size:14px;margin-top:6px}
.vh-rhero-who{
  display:inline-flex;align-items:center;gap:8px;margin-top:14px;
  font-family:var(--vh-font-data);font-size:11px;letter-spacing:.14em;
  border:1px solid var(--vh-line);padding:7px 14px;transform:skewX(-12deg);
}
.vh-rhero-who > *{transform:skewX(12deg)}
.vh-rhero-who b{color:var(--vh-sky)}

/* stat strip */
.vh-rhero-statbar{display:grid;grid-template-columns:repeat(4,1fr);margin-top:24px;border-top:1px solid var(--vh-line)}
.vh-rhero-stt{padding:18px 14px;border-right:1px solid var(--vh-line);position:relative}
.vh-rhero-stt:last-child{border-right:none}
.vh-rhero-stt-l{font-family:var(--vh-font-data);font-size:9.5px;letter-spacing:.18em;color:var(--vh-gray);text-transform:uppercase;display:flex;align-items:center;gap:7px}
.vh-rhero-stt-l svg{width:13px;height:13px;stroke:var(--vh-sky);flex-shrink:0}
.vh-rhero-stt-v{font-family:var(--vh-font-data);font-weight:700;font-size:clamp(20px,3vw,28px);margin-top:8px;line-height:1}
.vh-rhero-stt-v small{font-size:11px;color:var(--vh-gray);font-weight:500;margin-left:4px}
.vh-rhero-flames{display:inline-flex;gap:2px;margin-left:8px;font-size:14px}
@media(max-width:680px){
  .vh-rhero-statbar{grid-template-columns:1fr 1fr}
  .vh-rhero-stt:nth-child(2n){border-right:none}
  .vh-rhero-stt:nth-child(-n+2){border-bottom:1px solid var(--vh-line)}
}

/* --- Content section --- */
.vh-rpt-sec{padding:36px 0 calc(var(--bottom-nav-height) + var(--safe-bottom) + 40px)}
.vh-rpt-wrap{max-width:1000px;margin:0 auto;padding:0 20px}
.vh-block-title{
  font-family:var(--vh-font-data);font-size:11px;font-weight:700;letter-spacing:.22em;
  text-transform:uppercase;color:var(--vh-sky);display:inline-flex;align-items:center;gap:8px;
  margin-bottom:14px;
}
.vh-block-title::before{content:"";width:22px;height:2px;background:var(--vh-sky);transform:skewX(-12deg)}
.vh-panel{
  border:1px solid var(--vh-line);padding:20px;margin-bottom:28px;background:var(--vh-white);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%);
}
@media(min-width:640px){.vh-panel{padding:24px;margin-bottom:34px}}
.vh-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.vh-panel-t{font-family:var(--vh-font-display);font-weight:800;font-style:italic;font-size:17px;letter-spacing:0}
@media(min-width:640px){.vh-panel-t{font-size:18px}}
.vh-panel-c{font-family:var(--vh-font-data);font-size:10.5px;letter-spacing:.12em;color:var(--vh-gray);text-transform:uppercase}
.vh-panel-c b{color:var(--vh-sky)}

/* --- AI Insight card (light, auth-style) --- */
.vh-insight{
  background:
    radial-gradient(400px 240px at 85% 15%,rgba(0,174,239,.06),transparent 70%),
    var(--vh-white);
  color:var(--vh-ink);border:1px solid var(--vh-line);position:relative;overflow:hidden;
  padding:22px;margin-bottom:28px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%);
}
@media(min-width:640px){.vh-insight{padding:26px;margin-bottom:34px}}
.vh-insight::before{
  content:"AI";position:absolute;right:-16px;bottom:-46px;
  font-family:'Archivo',sans-serif;font-weight:900;font-style:italic;font-size:180px;line-height:1;
  color:transparent;-webkit-text-stroke:1.5px rgba(0,174,239,.10);pointer-events:none;
}
.vh-insight-top{display:flex;align-items:center;gap:12px;margin-bottom:16px;position:relative}
.vh-ai-mark{
  width:40px;height:40px;background:rgba(0,174,239,.16);display:grid;place-items:center;
  transform:skewX(-12deg);flex-shrink:0;position:relative;
}
.vh-ai-mark::after{content:"";position:absolute;inset:0;background:rgba(0,174,239,.2);filter:blur(12px);z-index:-1}
.vh-ai-mark svg{width:20px;height:20px;stroke:var(--vh-sky);transform:skewX(12deg)}
.vh-insight-top h2{font-family:'Archivo',sans-serif;font-weight:800;font-style:italic;font-size:17px;letter-spacing:.02em}
@media(min-width:640px){.vh-insight-top h2{font-size:18px}}
.vh-insight-tag{
  margin-left:auto;font-family:var(--vh-font-data);font-size:9.5px;letter-spacing:.16em;
  color:var(--vh-sky);border:1px solid rgba(0,174,239,.4);padding:4px 11px;transform:skewX(-12deg);
}
.vh-insight-tag span{display:inline-block;transform:skewX(12deg)}

/* score ring + headline */
.vh-insight-main{display:flex;gap:20px;align-items:center;position:relative;flex-wrap:wrap}
@media(min-width:640px){.vh-insight-main{gap:22px}}
.vh-score-ring{position:relative;width:92px;height:92px;flex-shrink:0}
.vh-score-ring svg{transform:rotate(-90deg)}
.vh-ring-bg{stroke:rgba(0,174,239,.12)}
.vh-ring-fg{stroke:var(--vh-sky);stroke-linecap:butt;filter:drop-shadow(0 0 8px rgba(0,174,239,.6))}
.vh-score-num{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.vh-score-num b{font-family:var(--vh-font-data);font-weight:700;font-size:26px;line-height:1}
.vh-score-num small{font-family:var(--vh-font-data);font-size:8.5px;letter-spacing:.14em;color:var(--vh-gray)}
.vh-insight-txt{flex:1;min-width:220px}
.vh-insight-hl{font-family:var(--vh-font-display);font-weight:800;font-style:italic;font-size:17px;line-height:1.35;letter-spacing:0}
@media(min-width:640px){.vh-insight-hl{font-size:19px}}
.vh-insight-hl em{color:var(--vh-sky);font-style:italic}
.vh-insight-txt p{font-size:13.5px;color:var(--vh-gray);margin-top:8px;line-height:1.6}
@media(min-width:640px){.vh-insight-txt p{font-size:14px}}

/* recommendations */
.vh-recs{margin-top:18px;display:grid;grid-template-columns:1fr;gap:10px;position:relative}
@media(min-width:720px){.vh-recs{grid-template-columns:repeat(3,1fr);gap:12px}}
.vh-rec{
  background:#fff;border:1px solid var(--vh-line);padding:12px 14px;
  font-size:13px;color:var(--vh-ink);display:flex;gap:10px;transition:.2s;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);
}
.vh-rec:hover{border-color:rgba(0,174,239,.45);background:rgba(0,174,239,.08)}
.vh-rec-n{font-family:var(--vh-font-data);font-weight:700;font-size:11px;color:var(--vh-sky);flex-shrink:0;padding-top:2px}
.vh-rec strong{color:var(--vh-ink)}

/* insight quote */
.vh-insight-quote{
  border-left:3px solid var(--vh-sky);padding:10px 14px;margin-top:16px;
  background:rgba(0,174,239,.08);position:relative;z-index:2;
}
.vh-insight-quote-mark{font-size:28px;font-weight:900;color:var(--vh-sky);line-height:1;display:block;margin-bottom:2px}
.vh-insight-quote-txt{font-size:14px;color:var(--vh-gray);line-height:1.6;font-style:italic}

/* insight empty / loading / actions */
.vh-insight-empty{position:relative;text-align:center;padding:14px 0 6px;z-index:2}
.vh-insight-empty p{color:var(--vh-gray);font-size:14px;margin-bottom:16px}
.vh-insight-loading{text-align:center;padding:24px 20px;position:relative;z-index:2}
.vh-insight-loading p{color:var(--vh-gray);font-size:14px;margin-top:10px}
.vh-insight-actions{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:18px;position:relative;z-index:2;flex-wrap:wrap;
}
.vh-insight-gencount{font-size:12px;color:var(--vh-gray)}
.vh-btn-insight-regen{
  background:transparent;color:var(--vh-sky);border:1px solid rgba(0,174,239,.4);
  font-family:var(--vh-font-display);font-weight:700;font-size:13px;cursor:pointer;
  padding:10px 18px;transition:.2s;
}
.vh-btn-insight-regen:hover{background:rgba(0,174,239,.1)}
.vh-btn-insight-regen:disabled{opacity:.5;cursor:not-allowed}
.vh .vh-btn-primary{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--vh-font-display);font-weight:800;font-style:italic;font-size:14px;cursor:pointer;
  padding:13px 26px;border:none;transform:skewX(-12deg);transition:.25s;letter-spacing:0;
  background:var(--vh-sky);color:#fff;box-shadow:0 8px 24px rgba(0,174,239,.35);
}
.vh .vh-btn-primary > span{display:inline-flex;align-items:center;gap:8px;transform:skewX(12deg)}
.vh .vh-btn-primary:hover{background:var(--vh-sky-deep);transform:skewX(-12deg) translateY(-2px)}
.vh-report-download{
  display:inline-block;margin-top:12px;font-family:var(--vh-font-data);font-size:13px;font-weight:700;
  color:var(--vh-sky);text-decoration:none;position:relative;z-index:2;
}
.vh-report-download:hover{text-decoration:underline}
.vh-report-error{font-size:14px;color:#EF4444;margin-top:12px;position:relative;z-index:2}
.vh-report-limit{font-size:13px;color:#F59E0B;font-weight:600}

/* --- Chart --- */
.vh-empty-chart{
  text-align:center;padding:36px 16px;color:var(--vh-gray);font-size:14px;
  background:var(--vh-sky-tint);border:1px dashed rgba(0,174,239,.3);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%);
}

/* --- History list --- */
.vh-empty-history{
  text-align:center;padding:36px 16px;color:var(--vh-gray);font-size:14px;
  background:var(--vh-sky-tint);border:1px dashed rgba(0,174,239,.3);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%);
}
.vh-hlist{display:flex;flex-direction:column;gap:10px}
.vh-hrow{
  border:1px solid var(--vh-line);padding:12px 14px;transition:.2s;
  clip-path:polygon(0 0,100% 0,100% 100%,12px 100%);
}
@media(min-width:640px){.vh-hrow{padding:14px 18px}}
.vh-hrow:hover{border-color:rgba(0,174,239,.4)}
.vh-hrow-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.vh-hrow-dt{font-family:var(--vh-font-data);font-weight:700;font-size:13px}
.vh-hrow-tm{font-family:var(--vh-font-data);font-size:10.5px;color:var(--vh-gray);letter-spacing:.08em}
.vh-st{
  margin-left:auto;display:inline-flex;align-items:center;gap:7px;
  font-family:var(--vh-font-data);font-size:9.5px;font-weight:700;letter-spacing:.14em;
  padding:5px 12px;transform:skewX(-12deg);text-transform:uppercase;flex-shrink:0;
}
.vh-st > *{transform:skewX(12deg)}
.vh-st.ok{background:var(--vh-sky);color:#fff}
.vh-st.wait{background:transparent;color:var(--vh-ink);border:1.5px solid var(--vh-ink)}
.vh-st.no{background:#fee2e1;color:#b3402e;border:1px solid rgba(224,83,61,.5)}

/* metric chips */
.vh-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.vh-chip{
  display:inline-flex;align-items:baseline;gap:8px;border:1px solid var(--vh-line);
  background:#fafbfc;padding:6px 12px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);
}
.vh-chip-k{font-family:var(--vh-font-data);font-size:9px;letter-spacing:.1em;color:var(--vh-gray);text-transform:uppercase}
.vh-chip-v{font-family:var(--vh-font-data);font-weight:700;font-size:14px;color:var(--vh-ink)}
.vh-chip.hero-chip{border-color:rgba(0,174,239,.45);background:var(--vh-sky-tint)}
.vh-chip.hero-chip .vh-chip-v{color:var(--vh-sky)}

/* rejected row */
.vh-hrow.rejected{background:#fbf6f5}
.vh-hrow-reason{margin-top:8px;font-size:12.5px;color:#b3402e;display:flex;gap:8px;align-items:flex-start}
.vh-hrow-reason svg{width:15px;height:15px;stroke:currentColor;flex-shrink:0;margin-top:3px}

/* pagination */
.vh-pgn{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.vh-pgn-btn{
  display:inline-flex;align-items:center;gap:7px;background:none;cursor:pointer;
  font-family:var(--vh-font-data);font-size:11px;letter-spacing:.12em;color:var(--vh-ink);
  border:1px solid var(--vh-line);padding:9px 16px;transform:skewX(-12deg);transition:.2s;text-transform:uppercase;
}
.vh-pgn-btn > *{transform:skewX(12deg)}
.vh-pgn-btn:hover:not(:disabled){border-color:var(--vh-sky);color:var(--vh-sky)}
.vh-pgn-btn:disabled{opacity:.3;cursor:not-allowed}
.vh-pgn-info{font-family:var(--vh-font-data);font-size:10.5px;letter-spacing:.12em;color:var(--vh-gray)}
.vh-pgn-info b{color:var(--vh-sky)}

/* --- Mobile responsive --- */
@media(max-width:640px){
  .vh-rhero{padding:24px 0 0}
  .vh-rhero-wrap{padding:0 16px}
  .vh-rpt-wrap{padding:0 16px}
  .vh-rpt-sec{padding:28px 0 calc(var(--bottom-nav-height) + var(--safe-bottom) + 24px)}
  .vh-insight{padding:18px}
  .vh-panel{padding:16px}
  .vh-insight-main{flex-direction:column;align-items:flex-start;gap:14px}
  .vh-recs{margin-top:14px}
  .vh-hrow{padding:12px}
  .vh-chips{gap:6px}
  .vh-chip{padding:5px 10px}
  .vh-pgn{flex-wrap:wrap;gap:8px}
}
@media(max-width:380px){
  .vh-rhero-statbar{grid-template-columns:1fr}
  .vh-rhero-stt{border-right:none;border-bottom:1px solid var(--vh-line)}
  .vh-rhero-stt:last-child{border-bottom:none}
  .vh-st{margin-left:0;width:100%;justify-content:center}
}

/* ===== QR Card (shared) ===== */
.qr-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:16px;
  padding:16px;
  background:linear-gradient(135deg,#F0F9FF 0%,#FFFFFF 100%);
  border:1px solid #E0F2FE;
  border-radius:16px;
}
@media(min-width:640px){.qr-card{flex-direction:row;align-items:center;gap:20px;padding:20px}}
.qr-card-left{display:flex;flex-direction:column;align-items:center;gap:10px;flex-shrink:0}
.qr-card-canvas{
  width:160px;
  height:160px;
  background:#fff;
  border:2px solid #00AEEF;
  border-radius:16px;
  display:grid;
  place-items:center;
  padding:10px;
  position:relative;
  transition:box-shadow .25s,transform .25s;
  box-shadow:0 2px 8px rgba(0,174,239,.12);
}
.qr-card-canvas:hover{box-shadow:0 4px 16px rgba(0,174,239,.2);transform:scale(1.02)}
.qr-card-canvas canvas{border-radius:4px!important}
.qr-card-canvas::after{
  content:"";
  position:absolute;
  inset:-2px;
  border:2px solid #00AEEF;
  border-radius:16px;
  opacity:0;
  animation:qr-pulse 2.5s ease-in-out infinite;
  pointer-events:none;
}
@keyframes qr-pulse{
  0%,100%{opacity:0;transform:scale(1)}
  50%{opacity:.3;transform:scale(1.04)}
}
@media(prefers-reduced-motion:reduce){
  .qr-card-canvas::after{animation:none}
  .qr-card-canvas:hover{transform:none}
}
.qr-card-right{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.qr-card-label{font-weight:700;font-size:14px;color:#1C1C1E;display:flex;align-items:center;gap:6px}
.qr-card-label svg{flex-shrink:0;color:#00AEEF}
.qr-card-quota{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:9999px;font-size:12px;font-weight:700;width:fit-content}
.qr-card-quota.ok{background:#DCFCE7;color:#15803D}
.qr-card-quota.done{background:#FEE2E2;color:#B91C1C}
.qr-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.qr-card-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:10px;
  font-size:13px;
  font-weight:600;
  border:1px solid #E5E7EB;
  background:#fff;
  color:#1C1C1E;
  cursor:pointer;
  transition:background .2s,border-color .2s;
  min-height:40px;
}
.qr-card-btn:hover{background:#F9FAFB;border-color:#D1D5DB}
.qr-card-btn.primary{background:#00AEEF;border-color:#00AEEF;color:#fff}
.qr-card-btn.primary:hover{background:#0088CC;border-color:#0088CC}
.qr-card-btn svg{flex-shrink:0}

/* ===== QR Modal ===== */
.qr-modal-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  animation:qr-fade-in .2s ease;
}
@keyframes qr-fade-in{from{opacity:0}to{opacity:1}}
.qr-modal-card{
  background:#fff;
  border-radius:20px;
  padding:32px 28px 28px;
  max-width:360px;
  width:100%;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  animation:qr-scale-in .25s ease;
}
@keyframes qr-scale-in{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
.qr-modal-close{
  position:absolute;
  top:12px;
  right:12px;
  width:36px;
  height:36px;
  border-radius:50%;
  background:#F3F4F6;
  border:none;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:#6B7280;
  transition:background .2s;
}
.qr-modal-close:hover{background:#E5E7EB;color:#1C1C1E}
.qr-modal-title{font-weight:700;font-size:16px;color:#1C1C1E;text-align:center}
.qr-modal-canvas{
  width:280px;
  height:280px;
  background:#fff;
  border:2px solid #00AEEF;
  border-radius:16px;
  display:grid;
  place-items:center;
  padding:12px;
}
.qr-modal-canvas canvas{border-radius:4px!important;max-width:100%;height:auto}
.qr-modal-hint{font-size:13px;color:#6B7280;text-align:center;line-height:1.5}
