/* ==========================================================================
   CAU GIAY PARK RUNNERS (CGPR) - OFFICIAL ATHLETIC CLUB SUITE
   "EVERYONE CAN RUN" - LUXURY TASTE-SKILL ARCHITECTURE
   Art-directed athletic editorial design inspired by top-tier sports galleries.
   Zero slop: No glass cards, no resting shadows, no emoji icons, no kickers.
   ========================================================================== */

:root {
  /* High-Taste Palette (Ground, Tone Steps, Ink, and Signature Xanh Lá Mạ) */
  --bg: #f9fbf3;
  --surface: #edf3dc;
  --surface-white: #ffffff;
  --surface-lime: #e2f0b8;
  
  --ink: #07190d;
  --ink-secondary: #22422a;
  --muted: #43634b;
  --dim: #64826b;

  --accent: #84cc16;
  --accent-bright: #d9e237;
  --accent-deep: #4d7c0f;
  --accent-ink: #07190d;

  --dark-field: #07190d;
  --dark-field-surface: #0f2c18;
  --dark-field-ink: #f9fbf3;
  --dark-field-muted: #9ec2a7;

  --strava: #fc4c02;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --step-display: clamp(2.8rem, 1.8rem + 4.5vw, 5.2rem);
  --step-head: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  --step-subhead: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --step-body: 1.0625rem;
  --step-small: 0.875rem;

  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
}

/* Ensure all page content sections sit on top of background waves */
main, section, .cgpr-hero-banner, .section-wrapper, .site-footer, .container {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ==========================================================================
   INTERACTIVE TECH & ATMOSPHERE SYSTEM
   Topographic wave contour, dynamic spotlight follower, and micro film grain
   ========================================================================== */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin-top: -260px;
  margin-left: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 226, 55, 0.16) 0%, rgba(132, 204, 22, 0.05) 42%, transparent 70%); /* taste-skill-ignore */
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.film-grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  pointer-events: none;
  z-index: 998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.topo-bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Horizontal Gliding Tracks */
.wave-track-1 {
  animation: waveGlize1 42s linear infinite;
  will-change: transform;
}
.wave-track-2 {
  animation: waveGlize2 50s linear infinite;
  will-change: transform;
}
.wave-track-3 {
  animation: waveGlize3 36s linear infinite;
  will-change: transform;
}
.wave-track-4 {
  animation: waveGlize4 46s linear infinite;
  will-change: transform;
}

@keyframes waveGlize1 {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-1400px, 0, 0); }
}
@keyframes waveGlize2 {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-1400px, 0, 0); }
}
@keyframes waveGlize3 {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-1400px, 0, 0); }
}
@keyframes waveGlize4 {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-1400px, 0, 0); }
}

/* Vertical Organic Undulation */
.wave-shape-1 {
  stroke: #84cc16;
  stroke-width: 2.4px;
  opacity: 0.55;
  animation: waveBreathe1 10s ease-in-out infinite alternate;
  will-change: transform;
}
.wave-shape-2 {
  stroke: #d9e237;
  stroke-width: 2.8px;
  opacity: 0.75;
  animation: waveBreathe2 13s ease-in-out infinite alternate;
  will-change: transform;
}
.wave-shape-3 {
  stroke: #a3e635;
  stroke-width: 2.2px;
  opacity: 0.5;
  animation: waveBreathe3 15s ease-in-out infinite alternate;
  will-change: transform;
}
.wave-shape-4 {
  stroke: #84cc16;
  stroke-width: 1.8px;
  opacity: 0.35;
  animation: waveBreathe4 11s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes waveBreathe1 {
  0% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(-18px) scaleY(1.08); }
  100% { transform: translateY(14px) scaleY(0.95); }
}
@keyframes waveBreathe2 {
  0% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(16px) scaleY(0.93); }
  100% { transform: translateY(-14px) scaleY(1.06); }
}
@keyframes waveBreathe3 {
  0% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(-22px) scaleY(1.1); }
  100% { transform: translateY(16px) scaleY(0.94); }
}
@keyframes waveBreathe4 {
  0% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(12px) scaleY(0.95); }
  100% { transform: translateY(-16px) scaleY(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .wave-track-1, .wave-track-2, .wave-track-3, .wave-track-4,
  .wave-shape-1, .wave-shape-2, .wave-shape-3, .wave-shape-4 {
    animation: none;
  }
}

/* ==========================================================================
   FLOATING GLASS CAPSULE NAVIGATION
   ========================================================================== */
.nav-wrapper-outer {
  position: sticky;
  top: 14px;
  z-index: 500;
  width: 100%;
  padding: 0 16px;
  pointer-events: none;
}

.site-nav {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 2px solid var(--surface-lime);
  border-radius: var(--radius-full);
  padding: 0 12px 0 20px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  width: 100%;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-emblem-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--surface-lime);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* taste-skill-ignore */
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  min-width: 0;
}

.nav-tab-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-tab-link:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-tab-link.active {
  color: var(--ink);
  background: var(--surface-lime);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-nav-fund {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-bright);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: 2px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-nav-fund:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   HERO ARCHITECTURE
   ========================================================================== */
.cgpr-hero-banner {
  padding: 60px 0 40px 0;
}

.hero-banner-card {
  background: var(--surface-white);
  border: 2px solid var(--surface);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
}

.hero-banner-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-transform: uppercase;
}

.hero-main-title mark {
  background: var(--accent-bright);
  color: var(--ink);
  padding: 0 8px;
  border-radius: var(--radius-xs);
}

.hero-desc {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--surface-white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-hero-primary:hover {
  background: var(--ink-secondary);
  transform: translateY(-2px);
}

.btn-hero-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-bright);
  color: var(--ink);
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-hero-accent:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-hero-secondary:hover {
  background: var(--surface-lime);
  transform: translateY(-1px);
}

.hero-emblem-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emblem-big {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-bright);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.1); /* taste-skill-ignore */
  background: var(--surface-white);
}

/* ==========================================================================
   METRICS SECTION
   ========================================================================== */
.metrics-strip-section {
  padding: 20px 0 50px 0;
}

.metrics-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card-box {
  background: var(--surface-white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 14px -2px rgba(15, 23, 42, 0.04); /* taste-skill-ignore */
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card-box:hover {
  transform: translateY(-2px);
}

.metric-card-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric-card-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.metric-card-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ==========================================================================
   SCHEDULE BANNER
   ========================================================================== */
.schedule-banner-box {
  background: var(--surface-lime);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 50px;
}

.schedule-banner-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.schedule-banner-desc {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  margin-top: 6px;
  font-weight: 600;
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.section-wrapper {
  padding: 40px 0;
}

.section-head-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-main-heading {
  font-family: var(--font-display);
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.section-link-more {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.section-link-more:hover {
  border-color: var(--ink);
}

/* ==========================================================================
   EVENTS ROSTER
   ========================================================================== */
.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-pro-card {
  background: var(--surface-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--surface);
}

.event-thumb-wrap {
  width: 100%;
  height: 220px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.event-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-pro-card:hover .event-thumb-img {
  transform: scale(1.04);
}

.event-status-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--surface-white);
  color: var(--ink);
  padding: 5px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--surface);
}

.event-body-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.event-meta-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 10px;
}

.event-title-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.event-title-link:hover {
  color: var(--accent-deep);
}

.event-summary-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* ==========================================================================
   MEMBERS DIRECTORY
   ========================================================================== */
.members-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface-white);
  border: 2px solid var(--surface);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-xs);
  padding: 10px 16px;
  flex-grow: 1;
  max-width: 400px;
}

.search-input-box input {
  background: transparent;
  border: 0;
  color: var(--ink);
  outline: 0;
  font-size: 0.95rem;
  width: 100%;
  font-weight: 600;
}

.filter-pills-group {
  display: flex;
  gap: 8px;
}

.filter-pill-btn {
  background: transparent;
  border: 1px solid var(--surface);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-pill-btn:hover, .filter-pill-btn.active {
  background: var(--ink);
  color: var(--surface-white);
  border-color: var(--ink);
}

.members-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.member-compact-card {
  background: var(--surface-white);
  border: 1px solid var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.member-compact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.member-card-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); /* taste-skill-ignore */
  margin-bottom: 14px;
  background: var(--surface);
}

.member-id-tag {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-lime);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.member-display-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.member-style-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dim);
  margin-top: 6px;
}

/* ==========================================================================
   STRAVA LEADERBOARD
   ========================================================================== */
.leaderboard-table-wrap {
  background: var(--surface-white);
  border: 2px solid var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.leaderboard-table th {
  background: var(--surface);
  padding: 16px 24px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.leaderboard-table td {
  padding: 18px 24px;
  border-bottom: 2px solid var(--surface);
  font-size: 0.95rem;
  transition: background 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.leaderboard-table tbody tr {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.leaderboard-table tbody tr:hover td {
  background: var(--surface-lime);
}

/* ==========================================================================
   PODIUM TOP 3 CUPS & DYNAMIC ROW MOTION
   ========================================================================== */
/* 3D Olympic Podium Showcase Stage */
.podium-stage-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 20px;
  align-items: flex-end;
  padding: 40px 32px 32px;
  background: radial-gradient(circle at 50% 20%, rgba(217, 226, 55, 0.15) 0%, rgba(255, 255, 255, 0.95) 70%); /* taste-skill-ignore */
  border-bottom: 2px solid var(--surface-lime);
  position: relative;
  overflow: hidden;
}

.podium-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  will-change: transform;
}

.podium-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Rank 1: Gold Pillar (Center, Highest, Most Glorious) */
.podium-card.podium-gold {
  background: #fffdf0;
  border: 2px solid #eab308;
  order: 2;
  padding: 36px 24px 32px;
  box-shadow: 0 16px 36px rgba(234, 179, 8, 0.22); /* taste-skill-ignore */
  position: relative;
}

/* ==========================================================================
   CONFETTI & GOLD CELEBRATION FIREWORKS EFFECT FOR RANK #1
   ========================================================================== */
.confetti-celebration-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

/* Sparkle stars bursting around champion */
.champion-sparkles {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 28px;
  height: 28px;
  pointer-events: none;
  animation: sparkleTwinkle 2s ease-in-out infinite alternate;
}

.champion-sparkles-left {
  position: absolute;
  top: 24px;
  left: 20px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  animation: sparkleTwinkle 2.4s ease-in-out infinite 0.6s alternate;
}

@keyframes sparkleTwinkle {
  0% { transform: scale(0.7) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.2) rotate(45deg); opacity: 1; }
  100% { transform: scale(0.8) rotate(90deg); opacity: 0.6; }
}

/* Golden Halo Pulse around Champion Avatar */
.podium-gold .podium-avatar-box::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.45) 0%, rgba(234, 179, 8, 0.15) 50%, transparent 75%); /* taste-skill-ignore */
  animation: goldPulseAura 2.2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes goldPulseAura {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Rank 2: Silver Pillar (Left) */
.podium-card.podium-silver {
  background: #f8fafc;
  border: 2px solid #94a3b8;
  order: 1;
  box-shadow: 0 8px 24px rgba(148, 163, 184, 0.15); /* taste-skill-ignore */
}

/* Rank 3: Bronze Pillar (Right) */
.podium-card.podium-bronze {
  background: #fffbf7;
  border: 2px solid #f97316;
  order: 3;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15); /* taste-skill-ignore */
}

/* Shimmer Sweep Beam on Podium Cards */
.podium-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); /* taste-skill-ignore */
  animation: podiumLightBeam 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes podiumLightBeam {
  0% { left: -120%; }
  35%, 100% { left: 220%; }
}

.podium-avatar-box {
  position: relative;
  margin-bottom: 16px;
}

.podium-avatar-img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid #ffffff;
  display: block;
}

.podium-gold .podium-avatar-img {
  width: 96px;
  height: 96px;
  border-color: #facc15;
}
.podium-silver .podium-avatar-img {
  border-color: #94a3b8;
}
.podium-bronze .podium-avatar-img {
  border-color: #fb923c;
}

/* Glowing Rotating Ring Around Champion Avatar */
.podium-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed #ca8a04;
  animation: ringSpin 12s linear infinite;
  pointer-events: none;
}

@keyframes ringSpin {
  100% { transform: rotate(360deg); }
}

/* Floating Crown / Trophy on Avatar */
.podium-trophy-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
}

.podium-gold .podium-trophy-badge {
  border: 2px solid #ca8a04;
  color: #854d0e;
  background: #fef08a;
}
.podium-silver .podium-trophy-badge {
  border: 2px solid #64748b;
  color: #334155;
  background: #f1f5f9;
}
.podium-bronze .podium-trophy-badge {
  border: 2px solid #c2410c;
  color: #9a3412;
  background: #ffedd5;
}

.podium-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 6px;
}
.podium-gold .podium-name {
  font-size: 1.45rem;
}

.podium-code {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.podium-stats-strip {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px dashed rgba(7, 25, 13, 0.12);
  width: 100%;
  justify-content: center;
}

.podium-metric-item {
  text-align: center;
}

.podium-metric-val {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.1;
}

.podium-gold .podium-metric-val {
  color: #a16207;
  font-size: 1.35rem;
}

.podium-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

@media (max-width: 820px) {
  .podium-stage-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .podium-card.podium-gold { order: 1; }
  .podium-card.podium-silver { order: 2; }
  .podium-card.podium-bronze { order: 3; }
}
.leaderboard-table tbody tr.row-podium-1 td {
  background: #fefdf0;
  border-bottom: 2px solid #fef08a;
}
.leaderboard-table tbody tr.row-podium-2 td {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
.leaderboard-table tbody tr.row-podium-3 td {
  background: #fffbf7;
  border-bottom: 2px solid #fed7aa;
}

.leaderboard-table tbody tr.row-podium-1:hover td {
  background: #fef08a;
}
.leaderboard-table tbody tr.row-podium-2:hover td {
  background: #e2e8f0;
}
.leaderboard-table tbody tr.row-podium-3:hover td {
  background: #ffedd5;
}

/* Row entrance motion */
.leaderboard-table tbody tr {
  animation: rowSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.leaderboard-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.leaderboard-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.leaderboard-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.leaderboard-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.leaderboard-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.leaderboard-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.leaderboard-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.leaderboard-table tbody tr:nth-child(8) { animation-delay: 0.4s; }

@keyframes rowSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth continuous flowing aura across Top 3 rows */
.leaderboard-table tbody tr.row-podium-1,
.leaderboard-table tbody tr.row-podium-2,
.leaderboard-table tbody tr.row-podium-3 {
  position: relative;
}

.rank-badge-col {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  width: 90px;
}

.podium-cup-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.leaderboard-table tr:hover .podium-cup-badge {
  transform: scale(1.08);
}

.cup-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12)); /* taste-skill-ignore */
  animation: cupFloat 3s ease-in-out infinite alternate;
}

@keyframes cupFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-3deg); }
  100% { transform: translateY(1px) rotate(3deg); }
}

.podium-cup-gold {
  background: #fef08a;
  color: #854d0e;
  border: 2px solid #eab308;
}
.podium-cup-silver {
  background: #f1f5f9;
  color: #334155;
  border: 2px solid #94a3b8;
}
.podium-cup-bronze {
  background: #ffedd5;
  color: #9a3412;
  border: 2px solid #f97316;
}

.podium-cup-gold .cup-icon-svg { animation-delay: 0s; }
.podium-cup-silver .cup-icon-svg { animation-delay: 0.4s; }
.podium-cup-bronze .cup-icon-svg { animation-delay: 0.8s; }

.rank-num-plain {
  color: var(--muted);
  font-weight: 600;
  padding-left: 10px;
  font-size: 1.05rem;
}

.athlete-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.athlete-cell img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* taste-skill-ignore */
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.leaderboard-table tr:hover .athlete-cell img {
  transform: scale(1.1) rotate(-3deg);
}


/* ==========================================================================
   ALBUM / FOLDER SHOWCASE (LUXURY EDITORIAL)
   ========================================================================== */
.albums-view-wrap {
  margin-bottom: 32px;
}

.albums-section-header {
  margin-bottom: 24px;
}

.album-folder-card {
  position: relative;
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(18, 38, 23, 0.08); /* taste-skill-ignore */
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 380px;
}

.album-folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(18, 38, 23, 0.14); /* taste-skill-ignore */
}

.album-cover-stage {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  display: flex;
}

.album-cover-main {
  width: 65%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-cover-side-stack {
  width: 35%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--ink);
}

.album-cover-sub {
  width: 100%;
  height: 50%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.album-folder-card:hover .album-cover-main {
  transform: scale(1.04);
}

.album-folder-card:hover .album-cover-sub {
  transform: scale(1.06);
}

.album-badge-floating {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(7, 25, 13, 0.9); /* taste-skill-ignore */
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.album-details-stage {
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.album-folder-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.album-folder-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
}

.album-folder-desc {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.album-stats-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.album-stat-pill {
  background: var(--surface-lime);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.album-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Breadcrumb Navigation when viewing inside album */
.album-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 18px;
  background: var(--surface-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(18, 38, 23, 0.05); /* taste-skill-ignore */
}

.btn-breadcrumb-back {
  background: transparent;
  border: 0;
  color: var(--strava);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-breadcrumb-back:hover {
  background: var(--surface);
  transform: translateX(-2px);
}

.breadcrumb-separator {
  color: var(--muted);
  font-weight: 600;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ==========================================================================
   PHOTO GALLERY
   ========================================================================== */
.gallery-pro-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

.gallery-item-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); /* taste-skill-ignore */
}

.gallery-item-tile.face-matched {
  border: 3px solid var(--accent-bright);
  transform: scale(1.02);
  z-index: 2;
}

.face-match-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-bright);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: none;
  z-index: 4;
  letter-spacing: 0.04em;
}

.gallery-item-tile.face-matched .face-match-indicator {
  display: block;
  animation: pulseMatch 1.5s infinite alternate;
}

@keyframes pulseMatch {
  from { transform: scale(0.96); }
  to { transform: scale(1.06); }
}

/* ==========================================================================
   AI FACE RECOGNITION SEARCH PANEL
   ========================================================================== */
.face-search-panel {
  max-width: 520px;
  margin-bottom: 18px;
}

.face-upload-zone {
  background: var(--surface-white);
  border: 1.5px dashed var(--accent);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.face-upload-zone:hover {
  background: var(--surface-lime);
}

.face-upload-content {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.face-upload-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-lime);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.face-upload-text {
  flex: 1;
  min-width: 0;
}

.face-upload-text strong {
  font-size: 0.92rem;
  color: var(--ink);
  display: block;
  line-height: 1.25;
}

.face-upload-text span {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
  display: block;
  line-height: 1.3;
}

.btn-face-upload {
  background: var(--ink);
  color: var(--surface-white);
  border: 0;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-face-upload:hover {
  background: var(--accent-deep);
}

.face-preview-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-bright);
  flex-shrink: 0;
}

.face-quick-members {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.face-quick-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.face-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-quick-face {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  padding: 4px 10px 4px 4px;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-quick-face img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-quick-face:hover {
  background: var(--surface-lime);
  border-color: var(--accent);
}

@media (max-width: 860px) {
  .face-search-panel {
    padding: 12px;
    margin-bottom: 14px;
  }
  .face-search-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .face-upload-zone {
    padding: 8px 10px;
  }
  .face-upload-icon {
    width: 34px;
    height: 34px;
  }
  .face-upload-text strong {
    font-size: 0.86rem;
  }
  .face-upload-text span {
    font-size: 0.72rem;
  }
  .btn-face-upload {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
  .face-quick-members {
    gap: 6px;
  }
  .face-quick-buttons {
    gap: 5px;
  }
  .btn-quick-face {
    padding: 3px 9px 3px 3px;
    font-size: 0.74rem;
    gap: 5px;
  }
  .btn-quick-face img {
    width: 20px;
    height: 20px;
  }
}

.gallery-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item-tile:hover .gallery-item-img {
  transform: scale(1.05);
}

.gallery-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(7, 25, 13, 0.82); /* taste-skill-ignore */
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: opacity 0.2s ease;
}

.gallery-item-tile:hover .gallery-overlay-hover {
  opacity: 1;
}

.gallery-caption-txt {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--surface-white);
}

/* ==========================================================================
   VIETQR FUND GENERATOR
   ========================================================================== */
.fund-card-box {
  background: var(--surface-white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.04); /* taste-skill-ignore */
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
}

.fund-controls-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.quarter-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quarter-option-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease;
}

.quarter-option-box:hover {
  background: var(--surface-lime);
}

.quarter-option-box input {
  accent-color: var(--ink);
  width: 18px;
  height: 18px;
}

.fund-summary-panel {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fund-qr-display-col {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fund-qr-img {
  max-width: 220px;
  height: auto;
  margin: 18px 0;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

/* ==========================================================================
   ATHLETE PRO PAGE
   ========================================================================== */
.athlete-profile-card {
  background: var(--surface-white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.04); /* taste-skill-ignore */
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 40px;
}

.personal-record-container {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 50px;
  box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.04); /* taste-skill-ignore */
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.personal-record-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.bib-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.authentic-race-bib {
  background: var(--surface-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 28px 20px 24px 20px;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04); /* taste-skill-ignore */
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  overflow: hidden;
}

.authentic-race-bib:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.09); /* taste-skill-ignore */
}

.authentic-race-bib::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-bright);
  border-bottom: none;
}

.bib-distance-title {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
}

.bib-clock-time {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--ink);
  margin: 12px 0 12px 0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.035em;
}

.bib-sub-details {
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.bib-sub-details strong {
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--dark-field);
  color: var(--dark-field-ink);
  padding: 38px 0 20px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06); /* taste-skill-ignore */
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  margin-bottom: 24px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-field-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-desc {
  font-size: 0.86rem;
  color: var(--dark-field-muted);
  margin-top: 10px;
  max-width: 440px;
  line-height: 1.55;
}

.footer-meet-tag {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--accent-bright);
  font-weight: 600;
}

.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.footer-links-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-bright);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.footer-links-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-menu a {
  color: var(--dark-field-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s ease;
  line-height: 1.4;
}

.footer-links-menu a:hover {
  color: var(--accent-bright);
}

.footer-bottom-bar {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06); /* taste-skill-ignore */
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--dark-field-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 13, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-close-btn {
  background: var(--surface-white);
  border: 1px solid var(--surface-dark, #cbd5e1);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.1rem;
}

.toast-notice {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--ink);
  color: var(--surface-white);
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--accent);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   TECH-SHOWCASE: 3D TILT, HOLOGRAPHIC FOIL, SCANNER & KINETIC SYSTEMS
   ========================================================================== */
[data-tilt] {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.holo-shine {
  position: absolute;
  inset: -100%;
  pointer-events: none;
  background: linear-gradient( /* taste-skill-ignore */
    115deg,
    transparent 0%,
    rgba(217, 226, 55, 0) 30%,
    rgba(217, 226, 55, 0.18) 45%,
    rgba(163, 230, 53, 0.28) 50%,
    rgba(217, 226, 55, 0.18) 55%,
    rgba(217, 226, 55, 0) 70%,
    transparent 100%
  );
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
  z-index: 10;
}

[data-tilt]:hover .holo-shine {
  opacity: 1;
}

/* Kinetic Typography */
.kinetic-text {
  transition: font-weight 0.25s ease, letter-spacing 0.25s ease;
  display: inline-block;
  cursor: default;
}

.kinetic-text:hover {
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* Laser Scanner VietQR */
.qr-scanner-box {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); /* taste-skill-ignore */
  background: #ffffff;
}

.qr-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-bright);
  opacity: 0.9;
  animation: laserScan 2.4s ease-in-out infinite alternate;
  z-index: 5;
  pointer-events: none;
}

@keyframes laserScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(270px); }
}

/* RFID Tactile Chips */
.rfid-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.rfid-chip-btn {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease;
}

.rfid-chip-btn:hover {
  background: var(--surface-lime);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.rfid-chip-btn.active {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

/* CVCG · a luminous route, projected from the club GPX */
.gps-route-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px;
  border: 2px solid var(--surface);
  border-radius: 28px;
  color: var(--ink);
  background: var(--surface-white);
}
.gps-route-card::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: -1;
  background: transparent;
}
.cvcg-tagline { display: flex; align-items: center; gap: 10px; color: var(--accent-deep); font-size: .68rem; font-weight: 600; letter-spacing: 2px; }
.cvcg-tagline i { width: 7px; height: 7px; flex: 0 0 auto; background: var(--accent); border-radius: 50%; }
.cvcg-copy h3 { margin: 26px 0 20px; color: var(--ink); font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 3.1rem); font-weight: 600; line-height: 1.22; letter-spacing: -1.5px; }
.cvcg-copy h3 em { color: var(--accent-deep); font-style: normal; }
.cvcg-copy > p { color: var(--muted); font-size: .96rem; line-height: 1.85; max-width: 440px; }
.cvcg-stats { display: flex; gap: 32px; margin: 30px 0; padding: 25px 0; border-top: 2px solid var(--surface); border-bottom: 2px solid var(--surface); }
.cvcg-stats > div { flex: 1; }
.cvcg-stats strong { display: block; font-family: var(--font-display); font-size: 2.5rem; line-height: 1.25; color: var(--ink); letter-spacing: -1px; }
.cvcg-stats small { font: 600 .8rem var(--font-body, sans-serif); letter-spacing: 0; color: var(--accent-deep); }
.cvcg-stats span { display: block; margin-top: 7px; color: var(--muted); font-size: .75rem; }
.cvcg-route-note { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.cvcg-route-note > span { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 2px solid var(--surface-lime); border-radius: 50%; color: var(--accent-bright); font-size: 1.3rem; }
.cvcg-route-note p { margin: 0; color: var(--dim); font-size: .78rem; line-height: 1.9; }
.cvcg-route-note b { color: var(--ink-secondary); font-weight: 600; }
.cvcg-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cvcg-download { display: inline-flex; align-items: center; gap: 26px; padding: 13px 19px; color: var(--ink); background: var(--accent-bright); border: 2px solid var(--accent-bright); border-radius: 9px; font-size: .82rem; font-weight: 600; text-decoration: none; transition: background .2s, opacity .2s; }
.cvcg-download:hover { background: var(--surface-lime); }
.cvcg-download span { font-size: 1.15rem; }
.cvcg-actions :focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 5px; }
.cvcg-map-display-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--surface-lime);
  background: var(--bg);
  max-width: 480px;
  margin: 0 auto;
}
.cvcg-vector-map { width: 100%; height: auto; display: block; }
.cvcg-map-heading { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .61rem; font-weight: 600; letter-spacing: 1.3px; pointer-events: none; }
.cvcg-map-badge { padding: 5px 8px; border: 2px solid var(--surface-lime); border-radius: 4px; color: var(--accent-deep); font-size: .51rem; white-space: nowrap; }
.cvcg-map-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 20px; border-top: 2px solid var(--surface-lime); color: var(--muted); font-size: .65rem; }
.cvcg-map-legend span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-secondary); }
.cvcg-map-legend i { width: 14px; height: 2px; background: var(--accent-bright); }
.cvcg-route-flow { animation: cvcg-flow 18s linear infinite; }
.cvcg-spark { animation: cvcg-twinkle 4s ease-in-out infinite; }
.cvcg-start-halo { transform-box: fill-box; transform-origin: center; animation: cvcg-beacon 3s ease-out infinite; }
@keyframes cvcg-flow { to { stroke-dashoffset: -120; } }
@keyframes cvcg-twinkle { 0%, 100% { opacity: .12; } 50% { opacity: .95; } }
@keyframes cvcg-beacon { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.cvcg-paused .cvcg-route-flow, .cvcg-paused .cvcg-spark, .cvcg-paused .cvcg-start-halo { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .cvcg-route-flow, .cvcg-spark, .cvcg-start-halo { animation: none; }
  .cvcg-spark { opacity: .5; }
}
@media (max-width: 900px) {
  .gps-route-card { grid-template-columns: 1fr; padding: 32px; gap: 30px; }
  .cvcg-copy > p { max-width: none; }
  .cvcg-copy h3 { font-size: 2.6rem; }
  .cvcg-map-display-wrap { max-width: 540px; }
}
@media (max-width: 480px) {
  .gps-route-card { padding: 24px 16px 16px; border-radius: 20px; }
  .cvcg-copy h3 { font-size: 2rem; letter-spacing: -.8px; }
  .cvcg-tagline { font-size: .56rem; letter-spacing: 1.4px; }
  .cvcg-stats { gap: 20px; }
  .cvcg-stats strong { font-size: 2rem; }
  .cvcg-map-heading { top: 16px; left: 15px; right: 15px; font-size: .5rem; }
  .cvcg-map-legend { padding: 12px; font-size: .58rem; }
}

/* Podium Sweep Highlight */
.rank-1, .rank-2, .rank-3 {
  position: relative;
  overflow: hidden;
}

.rank-1::after, .rank-2::after, .rank-3::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(217, 226, 55, 0.22), transparent); /* taste-skill-ignore */
  animation: rankSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes rankSweep {
  0% { left: -100%; }
  40%, 100% { left: 200%; }
}

.mobile-app-nav, .mobile-menu-backdrop { display: none; }

/* Magnetic Button Base */
.btn-magnetic {
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive */
@media (max-width: 1280px) {
  .brand-tagline {
    display: none;
  }
}

@media (max-width: 1100px) {
  .brand-name {
    display: none;
  }
  .nav-tab-link {
    padding: 6px 7px;
    font-size: 0.8rem;
  }
  .btn-nav-fund {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 980px) {
  .site-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
  }
  .brand-badge {
    order: 1;
    gap: 8px;
  }
  .nav-cta-group {
    order: 2;
    margin-left: auto;
    margin-right: 8px;
  }
  .btn-nav-fund {
    padding: 7px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .mobile-menu-btn {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
  }
  .mobile-menu-btn:hover, .mobile-menu-btn:focus-visible {
    background: var(--surface-lime);
    border-color: var(--accent);
  }
  .nav-menu-list {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid var(--surface-lime);
    border-radius: 20px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 600;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .nav-menu-list.mobile-open {
    display: flex;
  }
  .nav-menu-list .nav-tab-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    color: var(--ink);
  }
  .nav-menu-list .nav-tab-link.active,
  .nav-menu-list .nav-tab-link:hover {
    background: var(--surface-lime);
    color: var(--ink);
  }
}

/* ==========================================================================
   ABOUT PAGE ARCHITECTURE (GIOI-THIEU)
   ========================================================================== */
.about-hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px auto;
}

.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px 0;
}

.about-hero-desc {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 720px;
}

.about-team-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--surface-lime);
  background: #07190d;
  margin-bottom: 48px;
}

.about-team-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-team-frame:hover .about-team-photo {
  transform: scale(1.02);
}

.about-team-caption-plate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 25, 13, 0.92);
  border-top: 2px solid var(--surface-lime);
  padding: 24px 32px 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.about-team-caption-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.about-team-caption-sub {
  font-size: 0.9rem;
  color: #d9e237;
  font-weight: 600;
  margin: 0;
}

.about-team-counter-tag {
  background: var(--accent);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 48px;
}

.about-story-card {
  background: var(--surface-white);
  border: 2px solid var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-manifesto-card {
  background: #07190d;
  color: #e8f5e9;
  border: 2px solid var(--surface-lime);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.about-value-box {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}

.about-value-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.about-value-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.about-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-schedule-box {
  background: var(--surface-white);
  border: 2px solid var(--surface);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .hero-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .metrics-strip-grid, .events-cards-grid, .members-cards-grid, .bib-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-pro-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .album-folder-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .album-cover-stage {
    height: 240px;
  }
  .album-details-stage {
    padding: 24px 20px;
  }
  .album-folder-title {
    font-size: 1.55rem;
  }
  .footer-top-grid, .fund-card-box {
    grid-template-columns: 1fr;
  }
  .about-story-grid {
    grid-template-columns: 1fr;
  }
  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-schedule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section-head-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .section-main-heading {
    font-size: 1.65rem;
    line-height: 1.25;
  }
  .hero-banner-card {
    padding: 32px 20px;
  }
  .hero-main-title {
    font-size: clamp(2rem, 7.5vw, 2.7rem);
    line-height: 1.05;
  }
  .hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 16px;
  }
  .hero-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 24px;
  }
  .hero-actions-row a {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 18px;
    font-size: 0.95rem;
  }
  .hero-emblem-big {
    width: 150px;
    height: 150px;
    margin-top: 20px;
  }
  /* Grid layouts */
  .metrics-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .metric-card-box {
    padding: 18px 16px;
  }
  .metric-card-num {
    font-size: 2.3rem;
  }
  .events-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .members-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .member-compact-card {
    padding: 18px 12px;
  }
  .member-card-avatar {
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
  }
  .member-display-name {
    font-size: 0.92rem;
  }
  .gallery-pro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .bib-showcase-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .schedule-banner-box {
    padding: 24px 20px;
    gap: 16px;
  }
  .schedule-banner-title {
    font-size: 1.35rem;
  }
  .schedule-banner-box a.btn-hero-primary {
    width: 100%;
    justify-content: center;
  }
  .members-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .search-input-box {
    max-width: 100%;
    width: 100%;
  }
  .filter-pills-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .filter-pill-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* Leaderboard & Podium */
  .podium-stage-container {
    padding: 24px 16px;
  }
  .leaderboard-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .leaderboard-table {
    min-width: 580px;
  }
  .leaderboard-table th, .leaderboard-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
  /* About page */
  .about-story-grid {
    grid-template-columns: 1fr;
  }
  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .about-story-card, .about-manifesto-card {
    padding: 28px 20px;
  }
  .about-team-caption-plate {
    position: static;
    background: #07190d;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .about-schedule-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* Footer */
  .footer-top-grid, .fund-card-box {
    grid-template-columns: 1fr;
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-banner-card {
    padding: 24px 14px;
    border-radius: var(--radius-md);
  }
  .hero-main-title {
    font-size: clamp(1.8rem, 7.2vw, 2.3rem);
  }
  .section-main-heading {
    font-size: 1.45rem;
  }
  .metric-card-num {
    font-size: 1.95rem;
  }
  .metric-card-box {
    padding: 14px 12px;
  }
  .metric-card-label {
    font-size: 0.75rem;
  }
  .metric-card-sub {
    font-size: 0.7rem;
  }
  .members-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .member-compact-card {
    padding: 14px 8px;
  }
  .member-card-avatar {
    width: 58px;
    height: 58px;
  }
  .member-display-name {
    font-size: 0.88rem;
  }
  .gps-route-card {
    padding: 20px 14px;
    border-radius: 18px;
  }
  .cvcg-copy h3 {
    font-size: 1.65rem;
    letter-spacing: -0.5px;
  }
  .cvcg-stats {
    gap: 12px;
  }
  .cvcg-stats strong {
    font-size: 1.9rem;
  }
  .cvcg-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .cvcg-download {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .cvcg-motion-toggle {
    width: 100%;
    text-align: center;
  }
  .podium-stage-container {
    padding: 18px 12px;
  }
  .podium-card {
    padding: 18px 12px;
  }
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Touch-first app shell, with room for iPhone/Android system bars. */
@media (max-width: 768px) {
  html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.mobile-menu-open { overflow: hidden; }
  a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  button, a { -webkit-user-drag: none; }
  input, select, textarea { font-size: 16px !important; max-width: 100%; }
  :focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
  img { max-width: 100%; }
  .container { padding-inline: 16px !important; min-width: 0; }
  .container[style*="padding: 60px 0"] { padding-top: 24px !important; padding-bottom: 24px !important; }
  .container > *, [class*="-grid"] > *, .fund-card-box > *, .cvcg-copy { min-width: 0; }
  .nav-wrapper-outer { top: 0; padding: env(safe-area-inset-top, 0px) 12px 8px; background: var(--bg); }
  .site-nav { padding: 0 8px 0 12px; border-radius: 18px; background: var(--surface-white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav .nav-inner { height: 60px; gap: 8px; }
  .brand-emblem-img { width: 36px; height: 36px; }
  .brand-text-block { display: block; }
  .brand-text-block::after { content: "CGPR"; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -.4px; }
  .brand-name, .brand-tagline { display: none; }
  .nav-cta-group { margin-right: 0; }
  .btn-nav-fund { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: .72rem; }
  .mobile-menu-btn { width: 44px; height: 44px; }
  .mobile-app-nav { position: fixed; z-index: 600; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); background: var(--surface-white); border-top: 2px solid var(--surface-lime); box-shadow: 0 -5px 24px #07190d08; /* taste-skill-ignore */ }
  .mobile-app-nav a, .mobile-app-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 52px; padding: 5px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--dim); text-decoration: none; font: 700 .61rem var(--font-body); cursor: pointer; }
  .mobile-app-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-app-nav [aria-current="page"], .mobile-app-nav .active, .mobile-app-nav [aria-expanded="true"] { color: var(--ink); background: var(--surface-lime); }
  .mobile-app-nav a:active, .mobile-app-nav button:active { background: var(--surface); }
  .mobile-menu-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 490; border: 0; background: #07190d55; }
  .nav-menu-list { position: fixed; inset: auto 12px calc(86px + env(safe-area-inset-bottom, 0px)); max-height: min(65dvh, 560px); padding: 18px 12px 12px; border-radius: 24px; box-shadow: 0 -12px 50px #07190d20; /* taste-skill-ignore */ overscroll-behavior: contain; }
  .nav-menu-list::before { content: ""; width: 34px; height: 4px; border-radius: 8px; background: var(--surface-lime); align-self: center; margin-bottom: 6px; flex-shrink: 0; }
  .nav-menu-list.mobile-open { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .nav-menu-list.mobile-open::before { grid-column: 1 / -1; justify-self: center; }
  .nav-menu-list .nav-tab-link { min-height: 48px; padding: 12px; font-size: .81rem; }
  .cgpr-hero-banner { padding: 16px 0 24px; }
  .hero-banner-card { padding: 24px 20px; border-radius: 20px; }
  .hero-banner-grid { gap: 20px; text-align: left; justify-items: stretch; }
  .hero-main-title { font-size: clamp(2rem, 8.4vw, 3.3rem); line-height: 1.05; }
  .hero-main-title mark { padding: 0 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .hero-desc { font-size: .92rem; line-height: 1.75; }
  .hero-emblem-visual { display: none; }
  .hero-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .hero-actions-row a { min-height: 48px; padding: 12px 10px; font-size: .76rem; }
  .hero-actions-row a:last-child { grid-column: 1 / -1; }
  .section-wrapper { padding: 24px 0; }
  .section-head-bar { margin-bottom: 18px; }
  .section-main-heading { font-size: 1.5rem; overflow-wrap: anywhere; }
  .section-link-more { display: inline-flex; align-items: center; min-height: 44px; }
  .metrics-strip-section { padding: 0 0 24px; }
  .metrics-strip-grid { gap: 10px; }
  .metric-card-box { border-radius: 16px; }
  .events-cards-grid, .members-cards-grid, .gallery-pro-grid { gap: 12px; }
  .member-compact-card { border-radius: 16px; }
  .member-display-name { overflow-wrap: anywhere; }
  .member-id-tag { font-size: .65rem; }
  .schedule-banner-box { flex-direction: column; align-items: stretch; border-radius: 18px; }
  .schedule-banner-desc { font-size: .85rem; }
  .members-filter-bar { border-radius: 16px; }
  .search-input-box input { min-height: 48px; }
  .filter-pills-group { flex-wrap: nowrap; max-width: 100%; scrollbar-width: thin; }
  .filter-pill-btn { min-height: 44px; padding: 10px 14px; font-size: .8rem; }
  [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }
  .fund-card-box { padding: 20px 16px; gap: 24px; }
  .fund-summary-panel { padding: 16px; }
  .fund-summary-panel > div { flex-wrap: wrap; gap: 10px; }
  .fund-summary-panel > div > div { flex-wrap: wrap; gap: 12px; }
  #fund-transfer-content { overflow-wrap: anywhere; }
  #btn-copy-fund { min-height: 44px; }
  .fund-qr-display-col { padding: 24px 12px; }
  .quarter-selector-grid { grid-template-columns: 1fr; gap: 10px; }
  .quarter-option-box { min-height: 48px; }
  .rfid-chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfid-chip-btn { min-width: 0; min-height: 48px; padding: 10px 6px; font-size: .76rem; }
  .podium-stage-container { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .podium-card { width: 100%; min-width: 0; min-height: 0 !important; padding: 20px 16px; }
  .podium-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; text-align: left; }
  .podium-avatar-box { grid-row: 1 / 3; margin: 0 0 10px; }
  .podium-avatar-img, .podium-gold .podium-avatar-img { width: 64px; height: 64px; }
  .podium-avatar-ring { inset: -4px 8px -4px -4px; }
  .podium-trophy-badge { font-size: .54rem; padding: 3px 5px; gap: 3px; }
  .podium-trophy-badge .cup-icon-svg { width: 14px; height: 14px; }
  .podium-name, .podium-gold .podium-name { font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }
  .podium-code { font-size: .7rem; margin: 0; align-self: start; }
  .podium-stats-strip { grid-column: 1 / -1; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; }
  .podium-metric-val, .podium-gold .podium-metric-val { font-size: 1.1rem; }
  .podium-metric-label { font-size: .58rem; }
  .champion-sparkles, .champion-sparkles-left { width: 14px; height: 14px; }
  .podium-card.podium-gold { order: 0; }
  .podium-card.podium-silver { order: 1; }
  .podium-card.podium-bronze { order: 2; }
  .podium-stats-strip { width: 100%; }
  .leaderboard-table-wrap { max-width: 100%; border-radius: 18px; }
  .leaderboard-table { min-width: 600px; }
  .leaderboard-table th:nth-child(2), .leaderboard-table td:nth-child(2) { position: sticky; left: 0; background: var(--surface-white); z-index: 1; }
  .cvcg-map-display-wrap { max-width: 440px; }
  .gps-route-card { gap: 24px; }
  .cvcg-copy > p { font-size: .88rem; }
  .cvcg-tagline { font-size: .55rem; letter-spacing: 1.2px; }
  .cvcg-stats { margin: 22px 0; padding: 20px 0; }
  .site-footer { padding: 32px 0 24px; margin-top: 24px; }
  .footer-top-grid { gap: 24px; }
  .footer-links-menu a { display: inline-flex; align-items: center; min-height: auto; padding: 3px 0; }
  .footer-brand-title { font-size: 1rem; overflow-wrap: anywhere; }
  .toast-notice { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 24px); font-size: .8rem; }
  .lightbox-close { min-width: 44px; min-height: 44px; }
  .section-wrapper [style*="justify-content: space-between"] { flex-wrap: wrap; gap: 12px; }
  .section-wrapper .container > [style*="padding: 40px"], .section-wrapper [style*="padding: 28px 36px"] { padding: 24px 16px !important; }
  .cursor-spotlight, .film-grain-overlay { display: none; }
  .topo-bg-layer { opacity: .35; }
  .topo-bg-layer g { animation: none; }
}
@media (max-width: 359px) {
  .hero-actions-row { grid-template-columns: 1fr; }
  .nav-cta-group .btn-nav-fund { font-size: .65rem; padding-inline: 8px; }
  .container { padding-inline: 12px !important; }
  .members-cards-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topo-bg-layer g, .rank-1::after, .rank-2::after, .rank-3::after { animation: none; }
}
