/* Bibpix DS - ban gop 4 file CSS cua layout DS. KHONG sua tay.
   Sinh bang: php scripts/build-ds-site-css-bundle.php (sua file nguon xong phai chay lai). */

/* ===== styles.bundle.css ===== */
/* Bibpix DS - ban gop san cua styles.css (bo tokens/fonts.css: font nap bang <link> trong layout).
   Sinh bang: for f in tokens/{colors,typography,spacing,effects,motion,base}.css css/{components,site}.css; do cat $f; done
   Sua token/component thi sinh lai file nay. KHONG sua tay. */

/* ===== tokens/colors.css ===== */
/* ============================================================
   Bibpix — Color tokens
   Derived from the Bibpix logo: steel-blue mark + amber/gold ribbon.
   Base palette + semantic aliases.
   ============================================================ */
:root {
  /* --- Brand: Yellow ribbon (warm, finish-line energy) ---
     Official brand gradient: #FFCD1C (light) -> #FA8F1C (deep). */
  --amber-50:  #FFF8E4;
  --amber-100: #FFEFBE;
  --amber-200: #FFE285;
  --amber-300: #FFCD1C; /* official YELLOW gradient — light stop */
  --amber-400: #FDB81C; /* core brand yellow (mid) */
  --amber-500: #FCA31B;
  --amber-600: #FA8F1C; /* official YELLOW gradient — deep stop */
  --amber-700: #D9740F;
  --amber-800: #A8580B;

  /* --- Brand: Steel blue (structural, trust) ---
     Official brand gradient: #4A83BA (light) -> #1F5D8C (deep). */
  --blue-50:  #EAF2F9;
  --blue-100: #CFE1F0;
  --blue-200: #A7C6E0;
  --blue-300: #7AA6CE;
  --blue-400: #4A83BA; /* official BLUE gradient — light stop */
  --blue-500: #1F5D8C; /* core brand blue (wordmark) + gradient deep stop */
  --blue-600: #184E78;
  --blue-700: #133F62;
  --blue-800: #0F3350;
  --blue-900: #0B2942;

  /* --- Neutrals: cool blue-grey tint --- */
  --ink-950: #0B1620;
  --ink-900: #0E1B26;
  --ink-800: #18272F;
  --ink-700: #2B3A45;
  --ink-600: #41525E;
  --ink-500: #5C6E7A;
  --ink-400: #7D8E99;
  --ink-300: #A6B4BD;
  --ink-200: #CAD5DC;
  --ink-100: #E3EAEF;
  --ink-50:  #F2F5F7;
  --white:   #FFFFFF;

  /* --- Semantic status --- */
  --success-500: #1E9E5A;
  --success-50:  #E6F6EC;
  --warning-500: #F2A516;
  --warning-50:  #FEF4DF;
  --danger-500:  #E23B3B;
  --danger-50:   #FCE9E9;
  --info-500:    var(--blue-500);
  --info-50:     var(--blue-50);

  /* --- Brand gradients (official) --- */
  --grad-ribbon: linear-gradient(116deg, #FFCD1C 0%, #FA8F1C 100%); /* @kind color */
  --grad-blue:   linear-gradient(150deg, #4A83BA 0%, #1F5D8C 100%); /* @kind color */
  --grad-hero-veil: linear-gradient(180deg, rgba(11,41,66,0) 0%, rgba(11,41,66,.74) 100%); /* @kind color */

  /* ===== Semantic aliases ===== */
  --brand-primary:      var(--amber-300);
  --brand-primary-deep: var(--amber-600);
  --brand-secondary:    var(--blue-500);
  --brand-secondary-deep: var(--blue-700);

  --text-strong:  var(--ink-900);
  --text-body:    var(--ink-700);
  --text-muted:   var(--ink-500);
  --text-subtle:  var(--ink-400);
  --text-invert:  var(--white);
  --text-on-amber: var(--ink-900);
  --text-link:    var(--blue-500);

  --surface-page:   #F6F8FA;
  --surface-card:   var(--white);
  --surface-sunken: var(--ink-50);
  --surface-raised: var(--white);
  --surface-inverse: var(--blue-900);

  --border-subtle:  var(--ink-100);
  --border-default: var(--ink-200);
  --border-strong:  var(--ink-300);
  --border-focus:   var(--blue-400);
  --info-strong:    var(--blue-500);

  --icon-default: var(--ink-500);
  --icon-strong:  var(--ink-800);
  --icon-brand:   var(--blue-500);

  --overlay-scrim: rgba(10,34,54,.55); /* @kind color */
}

/* ===== tokens/typography.css ===== */
/* ============================================================
   Bibpix — Typography tokens
   Display: Saira (athletic, sporty, supports condensed + italic — echoes the
            bold-italic logo wordmark).
   UI/Body: Be Vietnam Pro (purpose-built for full Vietnamese diacritics).
   NOTE: Brand font files were not provided — these are Google Fonts stand-ins.
   ============================================================ */
:root {
  --font-display: 'Montserrat', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-sans:    'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Montserrat', ui-monospace, 'SF Mono', Menlo, monospace; /* bib numbers */

  /* Weights */
  --fw-regular: 400; /* @kind font */
  --fw-medium:  500; /* @kind font */
  --fw-semibold:600; /* @kind font */
  --fw-bold:    700; /* @kind font */
  --fw-extrabold: 800; /* @kind font */

  /* Fluid display sizes — sporty, large */
  --fs-display-1: clamp(44px, 6vw, 72px); /* @kind font */
  --fs-display-2: clamp(34px, 4.4vw, 52px); /* @kind font */
  --fs-h1: clamp(28px, 3.2vw, 38px); /* @kind font */
  --fs-h2: clamp(23px, 2.4vw, 29px); /* @kind font */
  --fs-h3: 22px; /* @kind font */
  --fs-h4: 18px; /* @kind font */
  --fs-body-lg: 18px; /* @kind font */
  --fs-body:    16px; /* @kind font */
  --fs-body-sm: 14px; /* @kind font */
  --fs-caption: 13px; /* @kind font */
  --fs-overline: 12px; /* @kind font */

  /* Line heights */
  --lh-tight:   1.04; /* @kind font */
  --lh-snug:    1.18; /* @kind font */
  --lh-normal:  1.5; /* @kind font */
  --lh-relaxed: 1.65; /* @kind font */

  /* Letter spacing */
  --ls-tight:   -0.02em; /* @kind font */
  --ls-normal:  0; /* @kind font */
  --ls-wide:    0.04em; /* @kind font */
  --ls-overline:0.14em; /* @kind font */
}

/* Optional helper classes (components reference vars directly; these
   are convenience for prose/specimens). */
.t-display-1 { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-size: var(--fs-display-1); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); font-style: italic; }
.t-display-2 { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-size: var(--fs-display-2); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.t-h1 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h1); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
.t-h2 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h2); line-height: var(--lh-snug); }
.t-h3 { font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: var(--fs-h3); line-height: var(--lh-snug); }
.t-h4 { font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-h4); line-height: var(--lh-snug); }
.t-body-lg { font-family: var(--font-sans); font-weight: var(--fw-regular); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }
.t-body { font-family: var(--font-sans); font-weight: var(--fw-regular); font-size: var(--fs-body); line-height: var(--lh-normal); }
.t-body-sm { font-family: var(--font-sans); font-weight: var(--fw-regular); font-size: var(--fs-body-sm); line-height: var(--lh-normal); }
.t-caption { font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--fs-caption); line-height: var(--lh-normal); color: var(--text-muted); }
.t-overline { font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: var(--fs-overline); line-height: 1; letter-spacing: var(--ls-overline); text-transform: uppercase; }

/* ===== tokens/spacing.css ===== */
/* ============================================================
   Bibpix — Spacing & layout tokens (4px base grid)
   ============================================================ */
:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 112px;

  /* Layout */
  --container-max: 1240px; /* @kind spacing */
  --container-pad: clamp(16px, 4vw, 40px); /* @kind spacing */
  --gutter: 24px; /* @kind spacing */
  --section-y: clamp(48px, 7vw, 96px); /* @kind spacing */

  /* Component sizing */
  --control-h-sm: 36px; /* @kind spacing */
  --control-h-md: 44px; /* @kind spacing */
  --control-h-lg: 52px; /* @kind spacing */
}

/* ===== tokens/effects.css ===== */
/* ============================================================
   Bibpix — Effects: radius, shadow, blur, borders, z-index
   ============================================================ */
:root {
  /* Corner radii — minimal, squared-off (brand: bo ít) */
  --radius-xs: 1px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-pill: 999px;
  --radius-control: var(--radius-md); /* buttons, inputs */
  --radius-card: var(--radius-lg);

  /* Elevation — lighter, fewer layers, cool blue-tinted */
  --shadow-xs: 0 1px 1px rgba(15,47,73,.04);
  --shadow-sm: 0 1px 2px rgba(15,47,73,.06);
  --shadow-md: 0 2px 6px rgba(15,47,73,.08);
  --shadow-lg: 0 6px 16px rgba(15,47,73,.10);
  --shadow-xl: 0 12px 28px rgba(15,47,73,.14);
  --shadow-amber: 0 2px 8px rgba(250,143,28,.22);
  --shadow-focus: 0 0 0 3px rgba(74,131,186,.32);

  /* Borders */
  --border-w: 1px; /* @kind spacing */
  --border-w-strong: 2px; /* @kind spacing */

  /* Blur / glass */
  --blur-sm: 8px; /* @kind other */
  --blur-md: 16px; /* @kind other */
  --glass-bg: rgba(255,255,255,.72); /* @kind color */
  --glass-border: rgba(255,255,255,.5); /* @kind color */

  /* z-index scale */
  --z-base: 0; /* @kind other */
  --z-raised: 10; /* @kind other */
  --z-sticky: 100; /* @kind other */
  --z-header: 200; /* @kind other */
  --z-overlay: 800; /* @kind other */
  --z-modal: 900; /* @kind other */
  --z-toast: 1000; /* @kind other */
}

/* ===== tokens/motion.css ===== */
/* ============================================================
   Bibpix — Motion tokens
   Sporty = quick, decisive ease-out; subtle press-shrink. No bounce.
   ============================================================ */
:root {
  --dur-instant: 80ms; /* @kind other */
  --dur-fast: 140ms; /* @kind other */
  --dur-base: 220ms; /* @kind other */
  --dur-slow: 360ms; /* @kind other */

  --ease-out: cubic-bezier(.2, .7, .2, 1); /* @kind other */
  --ease-in-out: cubic-bezier(.5, 0, .2, 1); /* @kind other */
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1); /* @kind other */

  --press-scale: 0.98; /* @kind other */
  --hover-lift: -1px; /* @kind spacing */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant:0ms; /* @kind other */
    --dur-fast:0ms; /* @kind other */
    --dur-base:0ms; /* @kind other */
    --dur-slow:0ms; /* @kind other */
  }
}

/* ===== tokens/base.css ===== */
/* ============================================================
   Bibpix — base reset & element defaults
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { color: var(--text-strong); }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--amber-200); color: var(--ink-900); }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

/* Thin, branded scrollbar for inner scroll areas */
.bx-scroll::-webkit-scrollbar { height: 8px; width: 8px; }
.bx-scroll::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: var(--radius-pill); }
.bx-scroll::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* Layout helper */
.bx-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ===== css/components.css ===== */
/* ============================================================
   Bibpix — component classes (framework-agnostic).
   Authored for Blade/HTML output (no React, no CSS-in-JS).
   Uses the design tokens from tokens/*.css.
   Aesthetic: tighter corners, light shadows, sporty.
   ============================================================ */

/* ---------- Layout ---------- */
.bx-container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
.bx-section { padding-block: var(--section-y); }
.bx-stack { display: flex; flex-direction: column; }
.bx-row { display: flex; align-items: center; }
.bx-spacer { flex: 1 1 auto; }

/* ---------- Icon ---------- */
.bx-ic { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bx-ic--sm { width: 16px; height: 16px; }
.bx-ic--lg { width: 24px; height: 24px; }

/* ---------- Button ---------- */
.bx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-h-md); padding: 0 20px;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-body); line-height: 1;
  border: 1px solid transparent; border-radius: var(--radius-control);
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.bx-btn:active { transform: scale(var(--press-scale)); }
.bx-btn--sm { height: var(--control-h-sm); padding: 0 14px; font-size: var(--fs-body-sm); }
.bx-btn--lg { height: var(--control-h-lg); padding: 0 28px; font-size: var(--fs-body-lg); }
.bx-btn--block { width: 100%; }

.bx-btn--primary { background: var(--grad-ribbon); color: var(--text-on-amber); box-shadow: var(--shadow-amber); }
.bx-btn--primary:hover { filter: brightness(1.04) saturate(1.05); }
.bx-btn--secondary { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.bx-btn--secondary:hover { filter: brightness(1.08); }
.bx-btn--outline { background: #fff; color: var(--blue-600); border-color: var(--border-default); }
.bx-btn--outline:hover { border-color: var(--blue-400); }
.bx-btn--ghost { background: transparent; color: var(--ink-700); }
.bx-btn--ghost:hover { background: var(--ink-50); }
.bx-btn--danger { background: var(--danger-500); color: #fff; border-color: var(--danger-500); }
.bx-btn--danger:hover { filter: brightness(1.08); }
.bx-btn[disabled], .bx-btn--disabled { opacity: .5; pointer-events: none; }

/* ---------- Icon button ---------- */
.bx-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--control-h-md); height: var(--control-h-md); flex: 0 0 auto;
  border: 1px solid transparent; border-radius: var(--radius-control);
  cursor: pointer; background: var(--ink-50); color: var(--ink-700);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.bx-iconbtn:active { transform: scale(var(--press-scale)); }
.bx-iconbtn--sm { width: var(--control-h-sm); height: var(--control-h-sm); }
.bx-iconbtn--lg { width: var(--control-h-lg); height: var(--control-h-lg); }
.bx-iconbtn--round { border-radius: var(--radius-pill); }
.bx-iconbtn--soft:hover { background: var(--ink-100); }
.bx-iconbtn--outline { background: #fff; border-color: var(--border-default); }
.bx-iconbtn--outline:hover { border-color: var(--blue-400); }
.bx-iconbtn--ghost { background: transparent; color: var(--ink-600); }
.bx-iconbtn--ghost:hover { background: var(--ink-50); }
.bx-iconbtn--solid { background: var(--blue-500); color: #fff; }
.bx-iconbtn--amber { background: var(--grad-ribbon); color: var(--text-on-amber); }

/* ---------- Field / input ---------- */
.bx-field { display: flex; flex-direction: column; gap: 6px; }
.bx-label { font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--text-body); }
.bx-inputwrap {
  display: flex; align-items: center; gap: 10px;
  height: var(--control-h-md); padding: 0 14px;
  background: #fff; border: 1.5px solid var(--border-default); border-radius: var(--radius-control);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.bx-inputwrap--lg { height: var(--control-h-lg); }
.bx-inputwrap:focus-within { border-color: var(--blue-400); box-shadow: var(--shadow-focus); }
.bx-inputwrap .bx-ic { color: var(--icon-default); }
.bx-inputwrap > input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; font-family: var(--font-sans); font-size: var(--fs-body); color: var(--text-strong); }
.bx-inputwrap > input::placeholder { color: var(--text-subtle); }
.bx-inputwrap--error { border-color: var(--danger-500); }
.bx-hint { font-size: var(--fs-caption); color: var(--text-muted); }
.bx-hint--error { color: var(--danger-500); }

/* ---------- Select (event picker, dropdowns) ---------- */
.bx-select { display: flex; align-items: center; gap: 10px; height: var(--control-h-md); padding: 0 14px; background: #fff; border: 1.5px solid var(--border-default); border-radius: var(--radius-control); cursor: pointer; color: var(--text-strong); font-family: var(--font-sans); font-size: var(--fs-body); transition: border-color var(--dur-fast) var(--ease-out); }
.bx-select--lg { height: var(--control-h-lg); }
.bx-select:hover { border-color: var(--blue-400); }
.bx-select .bx-ic { color: var(--icon-default); }
.bx-select__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-select__val--placeholder { color: var(--text-subtle); }
.bx-select__caret { margin-left: auto; color: var(--icon-default); }
.bx-select__native { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font: inherit; color: var(--text-strong); appearance: none; -webkit-appearance: none; cursor: pointer; }

/* ---------- Badge ---------- */
.bx-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: var(--fs-caption); font-weight: var(--fw-semibold); line-height: 1.1; white-space: nowrap;
}
.bx-badge--sm { padding: 2px 7px; font-size: var(--fs-overline); }
.bx-badge--pill { border-radius: var(--radius-pill); }
.bx-badge--neutral { background: var(--ink-100); color: var(--ink-700); }
.bx-badge--blue { background: var(--blue-50); color: var(--blue-700); }
.bx-badge--amber { background: var(--amber-100); color: var(--amber-800); }
.bx-badge--success { background: var(--success-50); color: var(--success-500); }
.bx-badge--warning { background: var(--warning-50); color: var(--amber-800); }
.bx-badge--danger { background: var(--danger-50); color: var(--danger-500); }
.bx-badge--solid-amber { background: var(--grad-ribbon); color: var(--ink-900); }
.bx-badge--solid-blue { background: var(--blue-500); color: #fff; }

/* ---------- Segmented tabs ---------- */
.bx-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--ink-50); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.bx-tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-body-sm);
  color: var(--ink-500); border-radius: var(--radius-sm); white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.bx-tab[aria-selected="true"], .bx-tab.is-active { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }

/* ---------- Section heading ---------- */
.bx-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bx-heading__bar { width: 5px; height: 24px; border-radius: var(--radius-xs); background: var(--grad-ribbon); flex: 0 0 auto; }
.bx-heading__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: var(--fw-extrabold); font-size: var(--fs-h1); line-height: 1.05; letter-spacing: var(--ls-tight); color: var(--text-strong); text-transform: uppercase; }
.bx-heading__sub { color: var(--text-muted); font-size: var(--fs-body); margin-left: 17px; margin-top: 4px; }

/* ---------- Event card ---------- */
.bx-card { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); text-decoration: none; color: inherit; }
.bx-card:hover { transform: translateY(var(--hover-lift)); box-shadow: var(--shadow-md); }
.bx-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--ink-100); overflow: hidden; }
.bx-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.bx-card:hover .bx-card__media > img { transform: scale(1.04); }
.bx-card__badge { position: absolute; top: 10px; left: 10px; }
.bx-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.bx-card__title { font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: var(--fs-h4); line-height: 1.3; color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bx-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; color: var(--text-muted); font-size: var(--fs-body-sm); }
.bx-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
/* horizontal variant */
.bx-card--row { flex-direction: row; }
.bx-card--row .bx-card__media { flex: 0 0 132px; aspect-ratio: auto; }

/* ---------- Pagination ---------- */
.bx-pagination { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bx-page { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-default); background: #fff; color: var(--ink-700); border-radius: var(--radius-md); cursor: pointer; font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); user-select: none; }
.bx-page:hover { border-color: var(--blue-400); }
.bx-page.is-active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.bx-page--ellipsis { border: none; background: transparent; min-width: 28px; color: var(--text-subtle); pointer-events: none; }
.bx-page[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Photo tile (search results / grid) ---------- */
.bx-photo { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/2; background: var(--ink-100); border: 2px solid transparent; }
.bx-photo > img { width: 100%; height: 100%; object-fit: cover; }
.bx-photo__bib { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.94); color: var(--ink-900); font-family: var(--font-mono); font-style: italic; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: var(--radius-sm); }
.bx-photo.is-selected { border-color: var(--amber-300); }

/* ---------- Bib plate ---------- */
.bx-bib { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 3px solid var(--ink-900); border-radius: var(--radius-md); padding: 8px 18px; box-shadow: var(--shadow-sm); }
.bx-bib small { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--danger-500); }
.bx-bib b { font-family: var(--font-mono); font-weight: 800; font-size: 44px; font-style: italic; letter-spacing: .02em; color: var(--blue-700); font-variant-numeric: tabular-nums; line-height: 1; }

/* ===== css/site.css ===== */
/* ============================================================
   Bibpix — site chrome (header / hero / rails / footer) + responsive.
   PADDING RULE: horizontal page padding comes ONLY from .bx-container
   (var(--container-pad)). Sections and inner blocks must NOT re-add
   horizontal padding — this prevents the "double padding" on mobile.
   ============================================================ */

/* ---------- Header ---------- */
.bx-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--glass-bg); backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md)); border-bottom: 1px solid var(--border-subtle); }
.bx-header__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.bx-header__logo img { height: 32px; width: auto; }
.bx-header__nav { display: flex; gap: 2px; margin-left: 6px; }
.bx-header__nav a { padding: 8px 14px; border-radius: var(--radius-md); color: var(--ink-600); font-weight: var(--fw-medium); font-size: var(--fs-body-sm); text-decoration: none; }
.bx-header__nav a:hover { background: var(--ink-50); text-decoration: none; }
.bx-header__nav a.is-active { color: var(--blue-700); font-weight: var(--fw-bold); }
.bx-header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bx-langswitch { display: flex; gap: 2px; background: var(--ink-50); border-radius: var(--radius-md); padding: 3px; }
.bx-langswitch a { padding: 5px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; color: var(--ink-400); text-decoration: none; }
.bx-langswitch a.is-active { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-xs); }
.bx-header__burger { display: none; }

/* ---------- Hero ---------- */
.bx-hero { position: relative; overflow: hidden; background: var(--blue-900); }
.bx-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.bx-hero__veil { position: absolute; inset: 0; background: linear-gradient(102deg, rgba(11,41,66,.86) 0%, rgba(11,41,66,.38) 60%, rgba(11,41,66,.1) 100%); }
.bx-hero__inner { position: relative; padding-block: 64px 56px; }
.bx-hero__eyebrow { margin-bottom: 16px; }
.bx-hero__title { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-style: italic; font-size: var(--fs-display-1); line-height: 1.0; letter-spacing: var(--ls-tight); color: #fff; text-transform: uppercase; max-width: 760px; }
.bx-hero__title em { color: var(--amber-300); font-style: italic; }
.bx-hero__sub { color: rgba(255,255,255,.84); font-size: var(--fs-body-lg); max-width: 520px; margin-top: 16px; }

/* Search box on hero */
.bx-searchbox { margin-top: 28px; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 16px; max-width: 660px; }
.bx-searchbox__row { display: flex; gap: 10px; margin-top: 12px; }
.bx-searchbox__row .bx-field { flex: 1; }
.bx-dropzone { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 16px; height: var(--control-h-lg); border: 1.5px dashed var(--border-strong); border-radius: var(--radius-control); color: var(--text-muted); font-size: var(--fs-body-sm); }

/* ---------- Featured rail ---------- */
.bx-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: var(--gutter); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.bx-rail > * { scroll-snap-align: start; }
.bx-railhead__arrows { display: flex; gap: 8px; }

/* ---------- Event list ---------- */
.bx-listlayout { display: grid; grid-template-columns: 232px 1fr; gap: 32px; align-items: start; }
.bx-yearnav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 6px; }
.bx-yearnav__label { font-size: var(--fs-overline); font-weight: 700; letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--text-subtle); margin-bottom: 6px; }
.bx-yearnav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: #fff; color: var(--ink-700); text-decoration: none; font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); }
.bx-yearnav a .n { font-size: 12px; font-weight: 700; color: var(--text-subtle); }
.bx-yearnav a.is-active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.bx-yearnav a.is-active .n { color: rgba(255,255,255,.85); }
.bx-eventgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: var(--gutter); }
.bx-photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ---------- Detail header ---------- */
.bx-detail { position: relative; overflow: hidden; background: var(--blue-900); }
.bx-detail__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .36; }
.bx-detail__inner { position: relative; padding-block: 26px 28px; }
.bx-detail__title { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-style: italic; font-size: var(--fs-display-2); line-height: 1.02; color: #fff; text-transform: uppercase; max-width: 800px; }
.bx-back { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border: none; color: #fff; padding: 7px 13px; border-radius: var(--radius-md); cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none; }
/* Cùng nút đó khi đặt trên nền sáng (ngoài hero) — nền mờ trắng sẽ tàng hình. */
.bx-back--onlight { background: var(--surface-card); border: 1px solid var(--border-subtle); color: var(--text-body); }
.bx-back--onlight:hover { border-color: var(--blue-400); color: var(--blue-600); }
.bx-filterbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-block: 18px; border-bottom: 1px solid var(--border-subtle); }

/* ---------- Buy basket (sticky) ---------- */
.bx-basket { position: sticky; bottom: 16px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 14px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.bx-footer { background: var(--blue-900); color: rgba(255,255,255,.72); margin-top: var(--section-y); }
/* 4 cột: logo+BCT · pháp nhân · liên kết nhanh · chính sách */
.bx-footer__grid { padding-block: 48px 26px; display: grid; grid-template-columns: 1.1fr 1.5fr .8fr 1fr; gap: 32px; }
.bx-footer__logo { height: 38px; width: auto; margin-bottom: 16px; }
.bx-footer__org { font-weight: 700; color: #fff; font-size: 14px; }
.bx-footer__addr { font-size: 13px; margin-top: 8px; line-height: 1.6; }
.bx-footer__col h4, .bx-footer__col .bx-footer__h { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; line-height: 1.4; }
.bx-footer__col a { display: block; color: rgba(255,255,255,.72); font-size: 13px; text-decoration: none; margin-bottom: 10px; }
.bx-footer__col a:hover { color: #fff; }
.bx-footer__base { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Mobile bottom tab bar (app-like) ---------- */
.bx-tabbar { display: none; }

/* ============================================================
   RESPONSIVE — mobile. Single horizontal padding from .bx-container.
   ============================================================ */
@media (max-width: 860px) {
  :root { --container-pad: 16px; --section-y: 36px; }
  .bx-header__nav { display: none; }
  .bx-langswitch { display: flex; }
  .bx-langswitch a { padding: 5px 9px; }
  .bx-listlayout { grid-template-columns: 1fr; gap: 18px; }
  .bx-yearnav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .bx-yearnav__label { display: none; }
  .bx-yearnav a { flex: 0 0 auto; }
  .bx-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bx-hero__title { font-size: clamp(34px, 9vw, 48px); }
}

@media (max-width: 560px) {
  .bx-hero__inner { padding-block: 36px 30px; }
  .bx-searchbox { padding: 12px; border-radius: var(--radius-lg); }
  .bx-searchbox__row { flex-direction: column; }
  .bx-searchbox__row .bx-btn { width: 100%; }
  .bx-searchbox .bx-tabs { display: flex; width: 100%; }
  .bx-searchbox .bx-tab { flex: 1; justify-content: center; padding: 0 10px; }
  /* Ngoài hộp tìm ở hero, dải tab là nội dung thường: nhiều tab dài (Tìm theo BIB /
     Tìm theo mặt / Tất cả ảnh) không vừa 390px nên cho cuộn ngang trong chính nó,
     tránh đẩy tràn cả trang. */
  .bx-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .bx-tabs::-webkit-scrollbar { display: none; }
  .bx-tab { flex: 0 0 auto; }
  .bx-eventgrid { grid-template-columns: 1fr; gap: 12px; }
  .bx-photogrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bx-rail { grid-auto-columns: 78%; }
  .bx-card__title { font-size: var(--fs-body); }
  .bx-filterbar { gap: 8px; }
  /* App-like bottom tab bar on small screens */
  .bx-tabbar { position: sticky; bottom: 0; z-index: var(--z-sticky); display: flex; justify-content: space-around; align-items: center; background: #fff; border-top: 1px solid var(--border-subtle); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bx-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 12px; color: var(--ink-400); text-decoration: none; font-size: 11px; font-weight: 600; }
  .bx-tabbar a.is-active { color: var(--blue-600); }
  .bx-tabbar .bx-ic { width: 22px; height: 22px; }
}

/* ===== css/prototype-pages.css ===== */
/* ============================================================
   Bibpix prototype — page-composition patterns NOT in the core DS
   mirror (checkout, static prose, video, breadcrumb, order result).
   Built on DS tokens/classes. Linked AFTER styles.css.
   Kept separate so the DS mirror (css/*.css) stays 1:1 with source.
   ============================================================ */

/* ---------- Header top menu (marketing nav) ---------- */
.bx-header__nav { display: flex; gap: 2px; margin-left: 24px; }
.bx-header__mobnav { display: none; }
@media (max-width: 860px) {
  .bx-header__nav { display: none; }
  .bx-header__burger { display: inline-flex; }
  .bx-header__mobnav { border-top: 1px solid var(--border-subtle); background: #fff; padding: 8px var(--container-pad); }
  .bx-header__mobnav a { display: block; padding: 11px 4px; color: var(--ink-700); font-weight: var(--fw-semibold); font-size: var(--fs-body); text-decoration: none; border-bottom: 1px solid var(--border-subtle); }
  .bx-header__mobnav a:last-child { border-bottom: none; }
  .bx-header__mobnav a.is-active { color: var(--blue-700); }
}
@media (min-width: 861px) { .bx-header__mobnav { display: none !important; } }

/* ---------- Breadcrumb ---------- */
.bx-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-block: 16px; font-size: var(--fs-body-sm); color: var(--text-muted); }
.bx-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.bx-breadcrumb a:hover { color: var(--blue-600); }
.bx-breadcrumb .sep { color: var(--ink-300); }
.bx-breadcrumb .cur { color: var(--text-strong); font-weight: var(--fw-semibold); }

/* ---------- Page title block ---------- */
.bx-pagehead { padding-block: 8px 20px; }
.bx-pagehead h1 { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-style: italic; text-transform: uppercase; font-size: var(--fs-h1); letter-spacing: var(--ls-tight); color: var(--text-strong); }
.bx-pagehead p { color: var(--text-muted); margin-top: 6px; }

/* ---------- Checkout layout ---------- */
.bx-checkout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; padding-bottom: var(--section-y); }
.bx-panel { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 20px; }
.bx-panel__title { font-weight: var(--fw-bold); color: var(--text-strong); font-size: var(--fs-h4); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.bx-formgrid { display: grid; gap: 14px; }
.bx-textarea { min-height: 76px; padding: 10px 14px; resize: vertical; width: 100%; border: 1.5px solid var(--border-default); border-radius: var(--radius-control); background: #fff; font: inherit; color: var(--text-strong); }
.bx-textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: var(--shadow-focus); }

/* Payment method radio cards */
.bx-paylist { display: grid; gap: 10px; margin-top: 4px; }
.bx-paycard { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--border-default); border-radius: var(--radius-control); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.bx-paycard:hover { border-color: var(--blue-400); }
.bx-paycard input { margin-top: 3px; accent-color: var(--blue-500); }
.bx-paycard.is-active, .bx-paycard:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }
.bx-paycard__logo { height: 22px; width: auto; display: block; margin-bottom: 6px; }
.bx-paycard__desc { font-size: var(--fs-caption); color: var(--text-muted); line-height: 1.5; }
.bx-paylogo { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--ink-100); font-weight: 800; font-size: 12px; color: var(--ink-700); letter-spacing: .04em; }

/* Order summary */
.bx-summary { position: sticky; top: 84px; }
.bx-orderitem { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.bx-orderitem img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); flex: 0 0 auto; }
.bx-orderitem__name { font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.bx-orderitem__price { margin-left: auto; font-family: var(--font-mono); font-weight: 700; font-style: italic; color: var(--blue-700); white-space: nowrap; }
.bx-sumrow { display: flex; justify-content: space-between; padding: 8px 0; font-size: var(--fs-body-sm); color: var(--text-body); }
.bx-sumrow--total { border-top: 1px solid var(--border-subtle); margin-top: 4px; padding-top: 12px; font-weight: 700; font-size: var(--fs-body); color: var(--text-strong); }
.bx-sumrow--total b { font-family: var(--font-mono); font-style: italic; }
.bx-terms { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-caption); color: var(--text-muted); margin: 14px 0; line-height: 1.5; }
.bx-terms input { margin-top: 2px; accent-color: var(--blue-500); }

/* ---------- Order result ---------- */
.bx-result { max-width: 560px; margin-inline: auto; text-align: center; padding-block: var(--section-y); }
.bx-result__icon { width: 72px; height: 72px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.bx-result__icon--ok { background: var(--success-50); color: var(--success-500); }
.bx-result__icon--fail { background: var(--danger-50); color: var(--danger-500); }
.bx-result h1 { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-style: italic; text-transform: uppercase; font-size: var(--fs-h1); margin-bottom: 10px; }
.bx-result p { color: var(--text-muted); margin-bottom: 8px; }
.bx-result__card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 18px 20px; margin: 22px 0; text-align: left; }
.bx-result__row { display: flex; justify-content: space-between; padding: 7px 0; font-size: var(--fs-body-sm); }
.bx-result__row + .bx-result__row { border-top: 1px solid var(--border-subtle); }
.bx-result__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Static article / prose ---------- */
.bx-article { max-width: 820px; margin-inline: auto; padding-block: 8px var(--section-y); }
.bx-article h2 { font-family: var(--font-display); font-weight: var(--fw-bold); text-transform: uppercase; font-size: var(--fs-h2); margin: 28px 0 12px; color: var(--text-strong); }
.bx-article h3 { font-weight: var(--fw-bold); font-size: var(--fs-h4); margin: 20px 0 8px; color: var(--text-strong); }
.bx-article p { color: var(--text-body); line-height: var(--lh-relaxed); margin-bottom: 12px; }
.bx-article ul, .bx-article ol { margin: 0 0 14px 20px; color: var(--text-body); line-height: var(--lh-relaxed); }
.bx-article li { margin-bottom: 6px; }
.bx-article a { color: var(--text-link); }
.bx-article img { border-radius: var(--radius-md); margin: 12px 0; }
.bx-article__lead { font-size: var(--fs-body-lg); color: var(--text-body); line-height: var(--lh-relaxed); }

/* Info/policy side nav (for long static pages) */
.bx-doclayout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; padding-block: 8px var(--section-y); }
.bx-docnav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.bx-docnav a { padding: 9px 14px; border-radius: var(--radius-md); color: var(--ink-600); font-size: var(--fs-body-sm); font-weight: var(--fw-medium); text-decoration: none; }
.bx-docnav a:hover { background: var(--ink-50); }
.bx-docnav a.is-active { background: var(--blue-50); color: var(--blue-700); font-weight: var(--fw-bold); }

/* ---------- Video ---------- */
.bx-videocard { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.bx-videocard:hover { transform: translateY(var(--hover-lift)); box-shadow: var(--shadow-md); }
.bx-videocard__media { position: relative; aspect-ratio: 16/9; background: var(--ink-900); overflow: hidden; }
.bx-videocard__media > img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.bx-videocard__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.bx-videocard__play span { width: 54px; height: 54px; border-radius: var(--radius-pill); background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.bx-videocard__play svg { width: 22px; height: 22px; fill: var(--blue-700); stroke: none; margin-left: 3px; }
.bx-videocard__dur { position: absolute; right: 8px; bottom: 8px; background: rgba(11,25,38,.82); color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-sm); }
.bx-videocard__lock { position: absolute; inset: 0; background: rgba(11,41,66,.42); display: flex; align-items: center; justify-content: center; color: #fff; }
.bx-videocard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.bx-videocard__title { font-weight: var(--fw-bold); font-size: var(--fs-body); color: var(--text-strong); }
.bx-videocard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.bx-videocard__price { font-family: var(--font-mono); font-style: italic; font-weight: 700; color: var(--blue-700); }

/* ---------- Marketing sections (services / events / NAG) ---------- */
.mk-sec { padding-block: 56px; }
.mk-lbl { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--amber-600); margin-bottom: 10px; }
.mk-ttl { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(22px,3.4vw,32px); color: var(--blue-500); letter-spacing: var(--ls-tight); margin-bottom: 8px; }
.mk-sub { color: var(--text-muted); margin-bottom: 24px; max-width: 760px; }
.mk-grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.mk-grid2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.mk-svc { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 22px; }
.mk-svc__ic { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--blue-50); color: var(--blue-500); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.mk-svc h3 { font-size: var(--fs-h4); color: var(--text-strong); margin-bottom: 8px; }
.mk-svc p { color: var(--text-muted); line-height: 1.6; font-size: var(--fs-body-sm); }
.mk-svc ul { margin: 8px 0 0 18px; color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.7; }
/* Quote / contact-for-quote band */
.mk-quote { background: var(--grad-blue); color: #fff; border-radius: var(--radius-xl); padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.mk-quote h3 { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: var(--fs-h2); color: #fff; margin-bottom: 6px; }
.mk-quote p { color: rgba(255,255,255,.85); }
.mk-quote__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mk-quote__actions .bx-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.mk-logos { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 14px; }
.mk-logo { height: 72px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink-600); font-weight: 700; font-size: 13px; text-align: center; padding: 10px; }
.mk-logo img { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
/* Series ranked list (events-partners) */
.mk-series { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 12px; }
.mk-serie { display: flex; align-items: center; gap: 14px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 14px 16px; }
.mk-serie__r { flex: 0 0 auto; width: 34px; height: 34px; border-radius: var(--radius-md); background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-style: italic; font-weight: 800; font-size: 14px; }
.mk-serie b { display: block; color: var(--text-strong); font-size: var(--fs-body-sm); line-height: 1.3; }
.mk-serie span { color: var(--text-muted); font-size: var(--fs-caption); }
.mk-serie--ext { border-style: dashed; }
.mk-serie--ext .mk-serie__r { background: var(--amber-100); color: var(--amber-800); }
.mk-serie__pc { margin-left: auto; font-family: var(--font-mono); font-style: italic; font-weight: 800; color: var(--blue-700); font-size: var(--fs-body-sm); white-space: nowrap; }

/* Hero big stats */
.mk-bigstats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }
.mk-bigstat { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); padding: 14px 22px; text-align: center; min-width: 130px; }
.mk-bigstat b { display: block; font-family: var(--font-mono); font-style: italic; font-weight: 800; font-size: 28px; color: var(--amber-300); }
.mk-bigstat span { font-size: 12px; color: rgba(255,255,255,.85); }

/* Capability row */
.mk-cap { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.mk-cap__i { display: flex; gap: 14px; align-items: flex-start; }
.mk-cap__ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--amber-100); color: var(--amber-700); display: flex; align-items: center; justify-content: center; }
.mk-cap__i b { display: block; color: var(--text-strong); }
.mk-cap__i p { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.55; margin-top: 2px; }

/* International */
.mk-intl { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.mk-intl__c { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 18px; }
.mk-intl__flag { font-size: 30px; line-height: 1; }
.mk-intl__c b { display: block; margin: 8px 0 2px; color: var(--text-strong); }
.mk-intl__c span { color: var(--text-muted); font-size: var(--fs-caption); }
.mk-intl__c .n { font-family: var(--font-mono); font-style: italic; font-weight: 800; color: var(--blue-700); }

/* Growth bar chart */
.mk-growth { display: flex; align-items: flex-end; gap: 12px; height: 240px; padding-top: 20px; }
.mk-gbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.mk-gbar__v { font-family: var(--font-mono); font-style: italic; font-weight: 700; font-size: 12px; color: var(--blue-700); }
.mk-gbar__b { width: 100%; max-width: 54px; background: var(--grad-blue); border-radius: var(--radius-sm) var(--radius-sm) 0 0; min-height: 4px; }
.mk-gbar:last-child .mk-gbar__b { background: var(--grad-ribbon); }
.mk-gbar__y { font-size: 12px; font-weight: 700; color: var(--text-muted); }

/* Testimonial with FB image */
.mk-testi__img { border-radius: var(--radius-md) var(--radius-md) 0 0; aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--ink-100); }
.mk-testi--img { padding: 0; overflow: hidden; }
.mk-testi--img .mk-testi__body { padding: 18px; }
@media (max-width: 860px) { .mk-cap, .mk-intl { grid-template-columns: 1fr 1fr; } .mk-growth { gap: 5px; } .mk-gbar__v { font-size: 10px; } }
@media (max-width: 560px) { .mk-cap, .mk-intl { grid-template-columns: 1fr; } }
.mk-testi { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.mk-testi__card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 22px; }
.mk-testi__q { color: var(--text-body); line-height: 1.7; font-style: italic; }
.mk-testi__by { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.mk-testi__by b { color: var(--text-strong); font-size: var(--fs-body-sm); }
.mk-testi__by span { color: var(--text-muted); font-size: var(--fs-caption); }
.mk-avatar { width: 38px; height: 38px; border-radius: var(--radius-pill); background: var(--ink-100); flex: 0 0 auto; }
@media (max-width: 860px) { .mk-grid3, .mk-grid2, .mk-testi { grid-template-columns: 1fr; } .mk-quote { grid-template-columns: 1fr; } }

/* ============================================================
   Events & Partners — premium redesign (ep-*). DS-compliant.
   ============================================================ */
.ep-band { padding-block: clamp(28px,3.4vw,46px); }
.ep-band--soft { background: var(--surface-page); }
.ep-band--ink { background: var(--blue-900); color: #fff; position: relative; overflow: hidden; }
.ep-head { max-width: 720px; margin-bottom: 20px; }
.ep-head--c { margin-inline: auto; text-align: center; }
.ep-head--wide { max-width: none; }
.ep-h2--nowrap { white-space: nowrap; }
@media (max-width: 640px) { .ep-h2--nowrap { white-space: normal; } }
.ep-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--amber-600); margin-bottom: 12px; }
.ep-band--ink .ep-eyebrow { color: var(--amber-300); }
.ep-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-ribbon); }
.ep-h2 { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(26px,4vw,40px); line-height: 1.02; letter-spacing: var(--ls-tight); color: var(--blue-700); }
.ep-band--ink .ep-h2 { color: #fff; }
.ep-lead { color: var(--text-muted); font-size: var(--fs-body-lg); line-height: 1.6; margin-top: 14px; }
.ep-band--ink .ep-lead { color: rgba(255,255,255,.8); }

/* Hero */
.ep-hero { position: relative; overflow: hidden; background: var(--blue-900); min-height: clamp(340px,44vh,440px); display: flex; align-items: flex-end; }
.ep-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.ep-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,41,66,.35) 0%, rgba(11,41,66,.72) 55%, rgba(11,41,66,.96) 100%); }
.ep-hero__grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; background-image: radial-gradient(rgba(255,255,255,.25) .5px, transparent .5px); background-size: 4px 4px; }
.ep-hero__in { position: relative; padding-block: clamp(30px,4.5vw,52px); width: 100%; }
.ep-hero__eyebrow { color: var(--amber-300); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 13px; margin-bottom: 12px; }
.ep-hero__title { font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(30px,4.4vw,54px); line-height: .98; letter-spacing: -.02em; color: #fff; }
.ep-hero__title em { color: var(--amber-300); font-style: italic; }
.ep-hero__sub { color: rgba(255,255,255,.82); font-size: var(--fs-body); max-width: 540px; margin-top: 14px; }
/* stat strip */
.ep-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; }
.ep-stat { flex: 1; min-width: 130px; padding-right: 24px; position: relative; }
.ep-stat + .ep-stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.ep-stat b { display: block; font-family: var(--font-mono); font-style: italic; font-weight: 900; font-size: clamp(26px,2.9vw,40px); color: #fff; line-height: 1; white-space: nowrap; }
.ep-stat b em, .ep-stat--amber { color: var(--amber-300); font-style: italic; }
.ep-stat b { font-variant-numeric: tabular-nums; }
.ep-stat span { display: block; margin-top: 7px; font-size: 12.5px; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .06em; }

/* Capability */
.ep-caps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; }
.ep-cap { background: var(--surface-card); padding: 26px; }
.ep-cap__n { font-family: var(--font-mono); font-style: italic; font-weight: 800; color: var(--amber-600); font-size: 13px; letter-spacing: .1em; }
.ep-cap__ic { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--blue-50); color: var(--blue-500); display: flex; align-items: center; justify-content: center; margin: 14px 0 12px; }
.ep-cap h3 { font-size: var(--fs-h4); color: var(--text-strong); margin-bottom: 6px; }
.ep-cap p { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.6; }

/* Series showcase — refined text cards */
.ep-races { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.ep-race { position: relative; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 16px 16px 15px; overflow: hidden; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.ep-race::after { content: ""; position: absolute; right: -30px; top: -30px; width: 80px; height: 80px; border-radius: 50%; background: var(--grad-blue); opacity: .06; }
.ep-race:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.ep-race__r { font-family: var(--font-mono); font-style: italic; font-weight: 900; font-size: 14px; color: var(--ink-300); }
.ep-race__name { font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-body); color: var(--text-strong); line-height: 1.25; margin: 6px 0 10px; }
.ep-race__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ep-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 700; }
.ep-race__years { color: var(--text-subtle); font-size: 12.5px; }
.ep-race--ext { border-style: dashed; background: var(--amber-50); }
.ep-race--ext .ep-chip { background: var(--amber-100); color: var(--amber-800); }

/* International (dark band) — compact horizontal cards */
.ep-intl { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.ep-ic { display: flex; align-items: center; gap: 14px; min-height: 112px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-card); padding: 18px 18px; }
.ep-ic--home { background: rgba(255,205,28,.12); border-color: rgba(255,205,28,.3); }
.ep-ic__flag { font-size: 34px; line-height: 1; flex: 0 0 auto; }
.ep-ic b { display: block; color: #fff; font-size: var(--fs-h4); line-height: 1.2; }
.ep-ic span { display: block; color: rgba(255,255,255,.66); font-size: var(--fs-caption); line-height: 1.35; margin-top: 3px; }
.ep-intl__note { margin-top: 18px; color: rgba(255,255,255,.8); font-size: var(--fs-body-sm); border-left: 3px solid var(--amber-300); padding-left: 14px; max-width: 760px; }

/* Organizer / agency chips (BTC đồng hành) */
.ep-orgs { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-org { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); font-weight: 700; color: var(--text-strong); font-size: var(--fs-body-sm); transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.ep-org:hover { transform: translateY(-1px); border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.ep-org::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-ribbon); flex: 0 0 auto; }

/* Logo wall — trimmed color logos, compact rows */
.ep-logowall { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; background: var(--border-subtle); }
.ep-logo { background: var(--surface-card); height: 92px; display: flex; align-items: center; justify-content: center; padding: 16px 22px; transition: background var(--dur-fast) var(--ease-out); }
.ep-logo:hover { background: var(--ink-50); }
.ep-logo img { max-height: 34px; max-width: 128px; width: auto; object-fit: contain; }

/* Testimonials — quote-forward (FB screenshot only as small proof thumbnail) */
.ep-quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ep-quote { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 26px 24px; display: flex; flex-direction: column; position: relative; }
.ep-quote::before { content: "\201D"; position: absolute; top: 10px; right: 22px; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 84px; line-height: 1; color: var(--amber-300); opacity: .28; }
.ep-quote__q { color: var(--text-strong); line-height: 1.55; font-size: var(--fs-body-lg); font-weight: 500; margin-bottom: 20px; position: relative; }
.ep-quote__q strong { color: var(--blue-600); font-weight: 700; }
.ep-quote__by { margin-top: auto; display: flex; align-items: center; gap: 11px; }
.ep-quote__thumb { width: 46px; height: 46px; border-radius: var(--radius-md); object-fit: cover; flex: 0 0 auto; border: 1px solid var(--border-subtle); }
.ep-quote__who b { display: block; color: var(--text-strong); font-size: var(--fs-body-sm); line-height: 1.25; }
.ep-quote__who span { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: var(--fs-caption); }
.ep-quote__who span .bx-ic { color: var(--info-500); width: 14px; height: 14px; }

/* Growth chart (events / year) */
.ep-growth { display: flex; align-items: flex-end; gap: clamp(6px,1.4vw,18px); height: 260px; padding-top: 24px; }
.ep-gb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 10px; }
.ep-gb__v { font-family: var(--font-mono); font-style: italic; font-weight: 800; font-size: 13px; color: var(--blue-600); }
.ep-gb__bar { width: 100%; max-width: 56px; background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); border-radius: 4px 4px 0 0; min-height: 4px; transition: filter var(--dur-fast); }
.ep-gb:hover .ep-gb__bar { filter: brightness(1.08); }
.ep-gb:last-child .ep-gb__bar { background: var(--grad-ribbon); }
.ep-gb:last-child .ep-gb__v { color: var(--amber-700); }
.ep-gb__y { font-size: 13px; font-weight: 700; color: var(--text-muted); }

@media (max-width: 860px) {
  .ep-races { grid-template-columns: repeat(2,1fr); }
  .ep-caps, .ep-quotes { grid-template-columns: 1fr; }
  .ep-intl { grid-template-columns: repeat(2,1fr); }
  .ep-logowall { grid-template-columns: repeat(3,1fr); }
  .ep-stat { min-width: 45%; flex: 0 0 45%; padding: 0; margin-bottom: 16px; }
  .ep-stat + .ep-stat { border-left: none; padding-left: 0; }
}
@media (max-width: 480px) {
  .ep-races, .ep-intl, .ep-logowall { grid-template-columns: 1fr 1fr; }
  .ep-growth { gap: 4px; height: 200px; }
  .ep-gb__v { font-size: 10px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .bx-checkout { grid-template-columns: 1fr; gap: 18px; }
  .bx-summary { position: static; }
  .bx-doclayout { grid-template-columns: 1fr; gap: 16px; }
  .bx-docnav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   Services page — customer-value narrative (sv-*). DS-compliant.
   Tái dùng ep-band / ep-eyebrow / ep-h2 / ep-lead của trang Sự kiện.
   ============================================================ */

/* Hero: kế thừa ep-hero, thêm hàng nút + dòng tin cậy */
.sv-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.sv-hero__link { color: #fff; font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; }
.sv-hero__link:hover { color: var(--amber-300); border-color: var(--amber-300); }
.sv-hero__trust { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); font-size: var(--fs-body-sm); color: rgba(255,255,255,.72); }
.sv-hero__trust a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.4); }
.sv-hero__trust a:hover { color: var(--amber-300); border-color: var(--amber-300); }

/* 1 — Đồng cảm */
.sv-worries { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 24px; }
.sv-worry { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-card); border: 1px solid var(--border-subtle); border-left: 3px solid var(--amber-400); border-radius: var(--radius-card); padding: 18px 20px; }
.sv-worry__ic { width: 34px; height: 34px; border-radius: var(--radius-md); background: var(--amber-50); color: var(--amber-700); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sv-worry p { color: var(--text-body); font-size: var(--fs-body-sm); line-height: 1.6; }

/* 2 — Hành trình 3 chặng */
.sv-stages { display: grid; gap: 20px; }
.sv-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; }
.sv-stage--flip .sv-stage__media { order: 2; }
.sv-stage__media { position: relative; min-height: 300px; background: var(--blue-900); }
.sv-stage__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.sv-stage__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,41,66,.1), rgba(11,41,66,.55)); }
.sv-stage__step { position: absolute; left: 20px; top: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: var(--radius-pill); background: var(--grad-ribbon); color: var(--ink-900); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.sv-stage__body { padding: clamp(22px,2.4vw,34px); display: flex; flex-direction: column; }
.sv-stage__title { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(20px,2.2vw,28px); line-height: 1.05; letter-spacing: var(--ls-tight); color: var(--text-strong); margin-bottom: 16px; }
.sv-row + .sv-row { margin-top: 14px; }
.sv-row__k { display: block; font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--amber-600); margin-bottom: 5px; }
.sv-row--win .sv-row__k { color: var(--blue-600); }
.sv-row p { color: var(--text-body); font-size: var(--fs-body-sm); line-height: 1.65; }
.sv-row--win p { color: var(--text-strong); font-weight: 500; }
.sv-row ul { margin: 6px 0 0; padding-left: 18px; }
.sv-row li { color: var(--text-body); font-size: var(--fs-body-sm); line-height: 1.6; margin-bottom: 4px; }
.sv-stage__svcs { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; gap: 8px; }
.sv-tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 700; }

/* 3 — Vì sao chọn Bibpix (dark band) */
.sv-reasons { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 24px; }
.sv-reason { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-card); padding: 22px 20px; }
.sv-reason__n { font-family: var(--font-mono); font-style: italic; font-weight: 900; font-size: 14px; color: var(--amber-300); letter-spacing: .1em; }
.sv-reason b { display: block; color: #fff; font-size: var(--fs-h4); line-height: 1.3; margin: 10px 0 8px; }
.sv-reason p { color: rgba(255,255,255,.72); font-size: var(--fs-body-sm); line-height: 1.6; }
.sv-reason a { color: var(--amber-300); font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(255,205,28,.5); }
.sv-reason--wide { grid-column: span 2; }
.sv-kicker { margin-top: 22px; border-left: 3px solid var(--amber-300); padding: 4px 0 4px 16px; color: #fff; font-size: var(--fs-body-lg); font-weight: 500; line-height: 1.55; max-width: 820px; }

/* 4 — Ngoài giải chạy */
.sv-alt { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 22px; }
.sv-altcard { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 26px 24px; display: flex; flex-direction: column; }
.sv-altcard__ic { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--blue-50); color: var(--blue-500); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.sv-altcard h3 { font-size: var(--fs-h4); color: var(--text-strong); margin-bottom: 8px; }
.sv-altcard p { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.65; }
.sv-altcard a { margin-top: 16px; align-self: flex-start; color: var(--blue-600); font-weight: 700; font-size: var(--fs-body-sm); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sv-altcard a:hover { color: var(--amber-700); }

/* 5 — Dịch vụ (xem nhanh) */
.sv-svcs { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; margin-top: 22px; }
.sv-svc { background: var(--surface-card); padding: 24px 22px; }
.sv-svc__ic { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--amber-50); color: var(--amber-700); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.sv-svc h3 { font-size: var(--fs-body); color: var(--text-strong); line-height: 1.3; margin-bottom: 6px; }
.sv-svc p { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.6; }

/* 6 — Cầu nối */
.sv-bridge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--surface-page); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 22px 26px; }
.sv-bridge p { color: var(--text-strong); font-weight: 500; font-size: var(--fs-body-lg); }

/* 7 — CTA cuối */
.sv-cta { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--blue-900); padding: clamp(26px,3vw,40px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,3vw,44px); }
.sv-cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--grad-ribbon); opacity: .12; }
.sv-cta__l { position: relative; }
.sv-cta__l h2 { font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(24px,3vw,38px); line-height: 1.02; color: #fff; }
.sv-cta__l p { color: rgba(255,255,255,.78); margin-top: 14px; line-height: 1.6; }
.sv-cta__chan { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 9px; }
.sv-cta__chan span { color: rgba(255,255,255,.8); font-size: var(--fs-body-sm); display: inline-flex; align-items: center; gap: 9px; }
.sv-cta__chan b { color: #fff; }
.sv-cta__chan .bx-ic { color: var(--amber-300); }
.sv-form { position: relative; background: var(--surface-card); border-radius: var(--radius-card); padding: 22px; display: grid; gap: 12px; }
.sv-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sv-field { display: grid; gap: 5px; }
.sv-field label { font-size: var(--fs-caption); font-weight: 700; color: var(--text-muted); }
.sv-field input, .sv-field select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border-default); border-radius: var(--radius-control); background: #fff; font: inherit; font-size: var(--fs-body-sm); color: var(--text-strong); }
.sv-field input:focus, .sv-field select:focus { outline: none; border-color: var(--blue-400); box-shadow: var(--shadow-focus); }
.sv-form__note { font-size: var(--fs-caption); color: var(--text-subtle); line-height: 1.5; }

@media (max-width: 960px) {
  .sv-reasons { grid-template-columns: repeat(2,1fr); }
  .sv-reason--wide { grid-column: auto; }
  .sv-svcs { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .sv-worries, .sv-alt, .sv-cta { grid-template-columns: 1fr; }
  .sv-stage { grid-template-columns: 1fr; }
  .sv-stage--flip .sv-stage__media { order: 0; }
  .sv-stage__media { min-height: 200px; }
}
@media (max-width: 560px) {
  .sv-reasons, .sv-svcs { grid-template-columns: 1fr; }
  .sv-form__grid { grid-template-columns: 1fr; }
}

/* Callout nhấn trong stage (highlight trả nhanh để BTC lên bài ngay) */
.sv-hl { display: flex; gap: 13px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--amber-50); border: 1px solid var(--amber-200); }
.sv-hl__ic { width: 30px; height: 30px; border-radius: var(--radius-md); background: var(--grad-ribbon); color: var(--ink-900); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sv-hl b { display: block; color: var(--amber-800); font-size: var(--fs-body-sm); margin-bottom: 3px; }
.sv-hl p { color: var(--text-body); font-size: var(--fs-body-sm); line-height: 1.6; }

/* ============================================================
   Ảnh xung quanh (nearby) — bám dashboard/nearby.php
   Giữ nguyên prefix nb-* của view thật để lúc port chỉ thay giá trị,
   không phải đổi tên class trong PHP lẫn JS phân trang cursor.
   ============================================================ */
.nb-wrap { max-width: 1100px; margin-inline: auto; padding-bottom: var(--section-y); }

/* Dải đầu trang: tên chức năng + tên giải */
.nb-head {
  background: var(--grad-blue); color: var(--text-invert);
  padding: 14px 18px; border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.nb-head__title { display: flex; align-items: center; gap: 10px; font-weight: var(--fw-bold); font-size: var(--fs-h4); }
.nb-head__race  { font-size: var(--fs-caption); opacity: .85; }
.nb-sub {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-top: 0;
  padding: 11px 18px; font-size: var(--fs-body-sm); color: var(--text-muted);
}

/* Một danh sách (theo thứ tự ảnh / theo thời gian chụp) */
.nb-section {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-top: 0;
  padding: 16px 18px 10px;
}
.nb-section:last-child { border-radius: 0 0 var(--radius-card) var(--radius-card); }
.nb-sec-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; flex-wrap: wrap; }
.nb-sec-icon {
  width: 28px; height: 28px; border-radius: var(--radius-md); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.nb-sec-icon--file { background: var(--blue-400); }
.nb-sec-icon--time { background: var(--success-500); }
.nb-sec-label { font-weight: var(--fw-bold); font-size: var(--fs-body-sm); color: var(--text-strong); }
.nb-sec-meta  { font-size: var(--fs-caption); color: var(--text-muted); }
.nb-sec-diff  { margin-left: auto; }

/* Lưới ảnh: PC 5 cột, tablet 4, mobile 3 — giữ đúng bậc của view thật */
.nb-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 4px 0 6px; }
.nb-tile {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  border-radius: var(--radius-lg); border: 2px solid transparent;
}
.nb-tile img { display: block; width: 100%; height: 100px; object-fit: cover; background: var(--ink-100); }
.nb-tile:hover img { opacity: .92; }
/* Ảnh mốc (anchor) — ảnh mà người dùng bấm để mở trang này */
.nb-tile.is-anchor { border-color: var(--amber-600); box-shadow: 0 0 0 2px var(--amber-600); }
.nb-anchor-badge {
  position: absolute; left: 5px; bottom: 5px; background: var(--amber-600); color: #fff;
  font-size: 10px; font-weight: var(--fw-bold); padding: 2px 7px; border-radius: var(--radius-md);
}
.nb-paid-badge {
  position: absolute; top: 5px; right: 5px; background: rgba(11,41,66,.82); color: #fff;
  font-size: 10px; font-weight: var(--fw-bold); padding: 2px 7px; border-radius: var(--radius-md);
}

/* Nút nạp thêm hai đầu — bấm là chèn ảnh vào đúng đầu đó, không tải lại trang */
.nb-more {
  width: 100%; height: 38px; margin-bottom: 6px;
  border: 1px solid var(--border-subtle); background: var(--surface-sunken);
  border-radius: var(--radius-lg); color: var(--ink-600);
  font: inherit; font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nb-more:hover { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.nb-more.nb-hidden { display: none; }

/* Ghi chú: 2 danh sách trùng nhau / ảnh gốc không có EXIF thời gian */
.nb-note {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: var(--fs-caption); line-height: var(--lh-relaxed);
  border-radius: var(--radius-lg); padding: 9px 12px; margin-bottom: 12px;
}
.nb-note--dedup { background: var(--amber-50); border: 1px solid var(--amber-200); color: var(--ink-700); }
.nb-note--notime { background: var(--blue-50); border: 1px dashed var(--blue-200); color: var(--ink-600); }

@media (max-width: 860px) { .nb-track { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) {
  .nb-track { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .nb-tile img { height: 84px; }
  .nb-head, .nb-sub, .nb-section { padding-inline: 13px; }
  .nb-sec-diff { margin-left: 0; }
}

/* ============================================================
   Gửi yêu cầu (ticket) — bám payment/ticket.php
   ============================================================ */
.tk-wrap { max-width: 620px; margin-inline: auto; padding-bottom: var(--section-y); }
/* Băng báo gửi thành công — controller redirect kèm flash rồi mới render lại form */
.tk-flash {
  display: flex; gap: 10px; align-items: center; margin-bottom: 18px;
  background: var(--success-50); border: 1px solid var(--success-500);
  border-radius: var(--radius-card); padding: 12px 15px;
  color: var(--ink-800); font-size: var(--fs-body-sm); font-weight: var(--fw-semibold);
}
.tk-flash svg { color: var(--success-500); flex: 0 0 auto; }

/* Bố cục 2 cột "nội dung chính + cột phụ" của trang video cá nhân.
   Đặt thành class thay vì style nội tuyến — inline style không có media query
   nào đè được, nên để nội tuyến là khoá cứng 2 cột kể cả trên điện thoại. */
.bx-splitmain { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: start; }
/* Ô lưới mặc định min-width:auto nên KHÔNG co nhỏ hơn nội dung — bảng giá bên trong
   sẽ banh cột ra và đẩy tràn cả trang. Ép min-width:0 để khung cuộn bên trong ăn. */
.bx-splitmain > * { min-width: 0; }
@media (max-width: 860px) { .bx-splitmain { grid-template-columns: 1fr; gap: 18px; } }
/* Trang mua ảnh chia cột hơi khác trang video — giữ đúng tỉ lệ đã duyệt của từng trang. */
.bx-splitmain--buy { grid-template-columns: 1.3fr .7fr; padding-bottom: var(--section-y); }
/* Bảng giá gói có nhiều cột — ở khổ hẹp cho cuộn ngang trong khung riêng,
   không để bảng đẩy tràn cả trang. */
.bx-tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bx-tablescroll > table { min-width: 420px; }

/* ===== css/redesign-2026.css ===== */
/* ============================================================
   Bibpix — lớp style cho bản redesign 2026 (5 trang marketing/kho giải).
   Dùng chung với components.css + site.css + prototype-pages.css.

   Quy ước:
   - .bx-imgph  = ô ảnh còn TRỐNG (chưa có asset). Mỗi ô có data-img="IMG-xx"
     để đối chiếu với danh sách ảnh cần cung cấp.
   - .bx-racecard = CHUẨN CARD GIẢI dùng lại ở trang chủ / Sự kiện / Đối tác.
   - Padding ngang chỉ đến từ .bx-container (xem site.css).
   ============================================================ */

/* ---------- Ô ảnh còn trống (placeholder chờ asset) ---------- */
.bx-imgph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 18px;
  background: repeating-linear-gradient(135deg, var(--ink-50) 0 10px, var(--ink-100) 10px 20px);
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg);
  color: var(--text-subtle); min-height: 120px; overflow: hidden;
}
.bx-imgph::before {
  content: attr(data-img); position: absolute; top: 8px; left: 8px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  background: var(--blue-700); color: #fff; padding: 3px 7px; border-radius: var(--radius-xs);
}
.bx-imgph__t { font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--ink-600); max-width: 320px; line-height: 1.5; }
.bx-imgph__d { font-size: var(--fs-caption); color: var(--text-subtle); max-width: 340px; line-height: 1.5; }
.bx-imgph--hero { position: absolute; inset: 0; border: none; border-radius: 0; min-height: 0; background: var(--blue-800); opacity: .5; }
.bx-imgph--hero::before { top: 12px; left: 12px; }
.bx-imgph--ratio { aspect-ratio: 3/2; min-height: 0; }
.bx-imgph--wide { aspect-ratio: 16/7; min-height: 0; }
.bx-imgph--sq { aspect-ratio: 1/1; min-height: 0; }

/* ---------- CHUẨN CARD GIẢI (dùng lại toàn site) ---------- */
.bx-racegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gutter); }
.bx-racecard {
  display: flex; flex-direction: column; background: var(--surface-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bx-racecard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.bx-racecard__media { position: relative; aspect-ratio: 3/2; background: var(--ink-100); }
.bx-racecard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bx-racecard__media .bx-imgph { position: absolute; inset: 0; border-radius: 0; }
.bx-racecard__status {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.94); box-shadow: var(--shadow-xs);
}
.bx-racecard__status i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.bx-racecard__status--ready { color: #16663d; } .bx-racecard__status--ready i { background: var(--success-500); }
.bx-racecard__status--soon  { color: #8a5a06; } .bx-racecard__status--soon  i { background: var(--warning-500); }
.bx-racecard__status--closed{ color: var(--ink-600); } .bx-racecard__status--closed i { background: var(--ink-400); }
.bx-racecard__body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bx-racecard__title { font-weight: var(--fw-bold); color: var(--text-strong); font-size: var(--fs-body); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bx-racecard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-muted); font-size: var(--fs-body-sm); }
.bx-racecard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.bx-racecard__cta { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-bold); font-size: var(--fs-body-sm); color: var(--blue-600); }
.bx-racecard__cta--soon { color: var(--amber-700); }
.bx-racecard--ext .bx-racecard__cta::after { content: "↗"; font-size: 12px; }

/* ---------- HERO tìm ảnh (trang chủ + trang Sự kiện) ---------- */
.hp-hero__inner { position: relative; padding-block: 58px 52px; }
.hp-hero__kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 6px 13px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hp-hero__title { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-style: italic; text-transform: uppercase; color: #fff; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; letter-spacing: var(--ls-tight); margin: 16px 0 0; max-width: 900px; }
.hp-hero__title em { color: var(--amber-300); font-style: italic; }

.hp-finder { margin-top: 26px; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; max-width: 940px; }
.hp-finder__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-subtle); background: var(--ink-50); }
.hp-finder__tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 12px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--ink-500);
  border-bottom: 3px solid transparent;
}
.hp-finder__tab:hover { color: var(--blue-700); background: rgba(255,255,255,.6); }
.hp-finder__tab.is-active { background: #fff; color: var(--blue-700); font-weight: var(--fw-bold); border-bottom-color: var(--amber-500); }
.hp-finder__panel { display: none; padding: 18px; }
.hp-finder__panel.is-active { display: block; }
.hp-finder__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.hp-finder__row--2 { grid-template-columns: 1fr auto; }
.hp-finder__hint { margin-top: 10px; font-size: var(--fs-caption); color: var(--text-subtle); }
.hp-selfie { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-muted); }
.hp-selfie__ic { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--amber-100); color: var(--amber-700); }
.hp-selfie b { display: block; color: var(--text-strong); font-size: var(--fs-body); }
.hp-selfie span { font-size: var(--fs-body-sm); }

/* ---------- Thanh lọc + sắp xếp ---------- */
.hp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 16px; }
.hp-filters__lbl { font-size: var(--fs-caption); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-overline); color: var(--text-subtle); margin-right: 2px; }
.hp-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border: 1px solid var(--border-default); border-radius: var(--radius-pill);
  background: #fff; color: var(--ink-600); font-size: var(--fs-body-sm); font-weight: var(--fw-semibold);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.hp-chip:hover { border-color: var(--blue-400); color: var(--blue-700); text-decoration: none; }
.hp-chip.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.hp-chip--clear { color: var(--ink-500); border-style: dashed; }
.hp-filters__spacer { margin-left: auto; }

/* ---------- Tiêu đề section ---------- */
.hp-secthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hp-secthead h2 { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-style: italic; text-transform: uppercase; font-size: clamp(21px, 2.6vw, 30px); color: var(--blue-700); letter-spacing: var(--ls-tight); }
.hp-secthead p { color: var(--text-muted); font-size: var(--fs-body-sm); margin-top: 6px; max-width: 620px; }
.hp-secthead a { font-weight: var(--fw-bold); font-size: var(--fs-body-sm); color: var(--blue-600); white-space: nowrap; }

/* ---------- Dải BTC (làn phụ ở trang chủ) ---------- */
.hp-btcband { background: var(--grad-blue); color: #fff; border-radius: var(--radius-xl); padding: 30px 34px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.hp-btcband h3 { font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-weight: var(--fw-extrabold); font-size: clamp(19px, 2.2vw, 26px); color: #fff; }
.hp-btcband p { color: rgba(255,255,255,.86); margin-top: 10px; max-width: 620px; line-height: 1.7; font-size: var(--fs-body-sm); }
.hp-btcband p strong { color: var(--amber-300); }

/* ---------- Khối nhắc email khi có ảnh ---------- */
.hp-notify { background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: var(--radius-xl); padding: 22px 24px; display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 20px; align-items: center; }
.hp-notify h3 { font-weight: var(--fw-bold); color: var(--text-strong); font-size: var(--fs-h4); }
.hp-notify p { color: var(--text-muted); font-size: var(--fs-body-sm); margin-top: 6px; }
.hp-notify__form { display: flex; gap: 10px; }
.hp-notify__form .bx-inputwrap { flex: 1; background: #fff; }

/* ---------- Dải tin cậy 1 dòng ---------- */
.hp-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 18px 0; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: var(--fs-body-sm); }
.hp-trust b { color: var(--text-strong); font-weight: var(--fw-bold); }
.hp-trust .sep { color: var(--border-strong); }

/* ---------- Trang Sự kiện: thanh tìm dính + tab tình trạng ---------- */
.ev-searchbar { position: sticky; top: 68px; z-index: var(--z-sticky); background: rgba(255,255,255,.92); backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md)); border-bottom: 1px solid var(--border-subtle); }
/* min-width:0 để grid item được phép co lại, không bị nội dung nút đẩy tràn ngang */
.ev-searchbar__in { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding-block: 12px; }
.ev-searchbar__alt { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }

.ev-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 4px; overflow-x: auto; }
.ev-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: none; background: none; cursor: pointer; font-family: var(--font-sans); font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--ink-500); border-bottom: 3px solid transparent; white-space: nowrap; }
.ev-tab.is-active { color: var(--blue-700); font-weight: var(--fw-bold); border-bottom-color: var(--amber-500); }
.ev-tab .n { background: var(--ink-100); color: var(--ink-600); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill); }
.ev-tab.is-active .n { background: var(--amber-100); color: var(--amber-700); }
.ev-panel { display: none; padding-top: 22px; }
.ev-panel.is-active { display: block; }
.ev-count { color: var(--text-muted); font-size: var(--fs-body-sm); margin-bottom: 16px; }
.ev-count b { color: var(--text-strong); }
.ev-yeargroup { margin-bottom: 34px; }
.ev-yeargroup__h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ev-yeargroup__h h3 { font-family: var(--font-mono); font-style: italic; font-weight: 800; font-size: 24px; color: var(--blue-700); }
.ev-yeargroup__h span { color: var(--text-subtle); font-size: var(--fs-body-sm); }
.ev-yeargroup__h::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }
.ev-empty { text-align: center; padding: 56px 20px; border: 1.5px dashed var(--border-default); border-radius: var(--radius-xl); background: var(--surface-page); }
.ev-empty h3 { font-weight: var(--fw-bold); color: var(--text-strong); font-size: var(--fs-h4); margin-bottom: 8px; }
.ev-empty p { color: var(--text-muted); font-size: var(--fs-body-sm); max-width: 460px; margin: 0 auto 18px; }
.ev-empty__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Trang Dịch vụ: 2 làn ---------- */
.sv-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.sv-lane { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--border-subtle); border-top: 4px solid var(--blue-500); border-radius: var(--radius-xl); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.sv-lane--ai { border-top-color: var(--amber-500); }
.sv-lane__tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; background: var(--blue-50); color: var(--blue-700); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: var(--radius-pill); }
.sv-lane--ai .sv-lane__tag { background: var(--amber-100); color: var(--amber-700); }
.sv-lane h3 { font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-weight: var(--fw-extrabold); font-size: clamp(18px, 2vw, 23px); color: var(--blue-700); line-height: 1.2; }
.sv-lane p { color: var(--text-body); line-height: 1.75; font-size: var(--fs-body-sm); }
.sv-lane p strong { color: var(--text-strong); }
.sv-lane__foot { margin-top: auto; padding-top: 8px; }

.sv-lanehead { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sv-lanehead__n { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-600); color: #fff; font-family: var(--font-mono); font-style: italic; font-weight: 800; font-size: 19px; }
.sv-lanehead--ai .sv-lanehead__n { background: var(--brand-primary); color: var(--text-on-amber); }
.sv-lanehead__t { font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-weight: var(--fw-extrabold); font-size: clamp(20px, 2.6vw, 30px); color: var(--blue-700); letter-spacing: var(--ls-tight); }
.sv-lanehead__s { color: var(--text-muted); font-size: var(--fs-body-sm); margin-top: 4px; max-width: 700px; }

.sv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); counter-reset: st; }
.sv-step { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 22px; }
.sv-step__n { font-family: var(--font-mono); font-style: italic; font-weight: 800; font-size: 26px; color: var(--amber-500); }
.sv-step h3, .sv-step h4 { font-size: 1em; font-weight: var(--fw-bold); color: var(--text-strong); margin: 8px 0 6px; }
/* sv-lanehead__t la h2 (tieu de SEO cua tung dich vu): bo margin mac dinh cua the */
h2.sv-lanehead__t { margin: 0; }
.sv-cta__chan a { color: inherit; text-decoration: none; }
.sv-cta__chan a:hover b { text-decoration: underline; }
/* Hoi dap trang Dich vu */
.sv-faq { display: grid; gap: 10px; max-width: 880px; }
.sv-faq__item { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 0 20px; }
.sv-faq__item summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; }
.sv-faq__item summary::-webkit-details-marker { display: none; }
.sv-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; line-height: 1; color: var(--amber-500); }
.sv-faq__item[open] summary::after { content: "\2212"; }
.sv-faq__item summary h3 { display: inline; font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--text-strong); margin: 0; }
.sv-faq__item p { color: var(--text-body); font-size: var(--fs-body-sm); line-height: 1.75; padding-bottom: 16px; margin: 0; }
/* Giai da lam: luoi the giai dung lai bx-racecard */
.sv-showcase { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sv-step p { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.7; }
.sv-for { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-bottom: 26px; }
.sv-for__c { border-left: 3px solid var(--amber-400); padding-left: 14px; }
.sv-for__c b { display: block; color: var(--text-strong); margin-bottom: 5px; }
.sv-for__c span { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.7; }
.sv-gain { background: var(--blue-50); border-radius: var(--radius-lg); padding: 18px 20px; color: var(--blue-800); font-size: var(--fs-body-sm); line-height: 1.75; margin-top: 22px; }
.sv-gain b { color: var(--blue-900); }

.sv-svc__lane { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); }

/* ---------- Trang Đối tác ---------- */
.pt-statband { background: var(--grad-blue); border-radius: var(--radius-xl); padding: 34px 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pt-stat { text-align: center; }
.pt-stat__n { font-family: var(--font-mono); font-style: italic; font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); color: var(--amber-300); line-height: 1.1; }
.pt-stat__d { color: #fff; font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); margin-top: 6px; }
.pt-stat__d small { display: block; color: rgba(255,255,255,.72); font-weight: var(--fw-regular); font-size: var(--fs-caption); margin-top: 3px; }

.pt-featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gutter); }
.pt-feat { border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden; background: #fff; text-decoration: none; box-shadow: var(--shadow-xs); }
.pt-feat:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.pt-feat__media { aspect-ratio: 16/9; background: var(--ink-100); }
.pt-feat__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-feat__media .bx-imgph { height: 100%; border-radius: 0; border: none; }
.pt-feat__b { padding: 12px 14px; }
.pt-feat__b b { display: block; color: var(--text-strong); font-size: var(--fs-body-sm); line-height: 1.4; }
.pt-feat__b span { color: var(--text-subtle); font-size: var(--fs-caption); }

.pt-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pt-group h3 { font-size: var(--fs-body-sm); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-overline); color: var(--text-subtle); margin-bottom: 14px; }

.pt-quote { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.pt-quote__q { color: var(--text-body); line-height: 1.8; font-size: var(--fs-body); }
.pt-quote__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.pt-quote__av { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.pt-quote__av .bx-imgph { min-height: 0; height: 100%; border-radius: 50%; padding: 0; }
.pt-quote__av .bx-imgph::before { display: none; }
.pt-quote__who b { display: block; color: var(--text-strong); font-size: var(--fs-body-sm); }
.pt-quote__who span { color: var(--text-subtle); font-size: var(--fs-caption); }
.pt-note { background: var(--warning-50); border: 1px solid var(--amber-200); border-radius: var(--radius-lg); padding: 12px 16px; color: var(--amber-800); font-size: var(--fs-caption); line-height: 1.6; margin-top: 16px; }

/* ---------- Trang Giới thiệu ---------- */
.ab-sec { padding-block: 58px; }
.ab-lbl { font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--amber-600); margin-bottom: 10px; }
.ab-blue .ab-lbl { color: var(--amber-300); }
.ab-ttl { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(22px, 3.4vw, 34px); color: var(--blue-700); margin-bottom: 16px; letter-spacing: var(--ls-tight); }
.ab-blue { background: var(--grad-blue); color: #fff; }
.ab-blue .ab-ttl { color: #fff; }
.ab-txt { max-width: 900px; line-height: 1.85; color: var(--text-body); }
.ab-txt + .ab-txt { margin-top: 14px; }
.ab-blue .ab-txt { color: rgba(255,255,255,.9); }
.ab-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ab-img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.ab-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ab-time { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 26px; }
.ab-tnode { position: relative; padding-top: 26px; }
.ab-tnode::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--border-default); }
.ab-tnode::after { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--amber-300); }
.ab-tnode__y { font-family: var(--font-mono); font-style: italic; font-weight: 800; font-size: 26px; color: var(--blue-700); }
.ab-tnode p { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.7; margin-top: 6px; }
.ab-pull { margin-top: 30px; background: var(--blue-50); border-left: 4px solid var(--brand-primary); border-radius: var(--radius-lg); padding: 20px 22px; color: var(--blue-800); font-size: var(--fs-body-lg); line-height: 1.75; font-weight: var(--fw-medium); }

.ab-vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-top: 26px; }
.ab-val { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 22px 20px; }
.ab-val__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--amber-100); color: var(--amber-700); margin-bottom: 12px; }
.ab-val b { display: block; color: var(--text-strong); margin-bottom: 6px; }
.ab-val p { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.7; }

.ab-mission { text-align: center; }
.ab-mission blockquote { font-family: var(--font-display); font-style: italic; font-weight: var(--fw-extrabold); font-size: clamp(20px, 2.8vw, 30px); line-height: 1.45; color: #fff; max-width: 900px; margin: 0 auto; }
.ab-mission blockquote em { color: var(--amber-300); }

.ab-cta { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 32px; text-align: center; }
.ab-cta h2 { font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-weight: var(--fw-extrabold); font-size: clamp(20px, 2.6vw, 28px); color: var(--blue-700); }
.ab-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.ab-cta__link { display: block; margin-top: 14px; font-size: var(--fs-body-sm); color: var(--blue-600); font-weight: var(--fw-semibold); }

/* ============================================================
   TRANG ĐỘI NGŨ NAG — 3 loại ảnh làm 3 việc khác nhau:
   tác phẩm (tay nghề) · chân dung (con người) · tác nghiệp (chuyên nghiệp).
   ============================================================ */

/* Dải 3 số dưới intro */
.nag-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 26px; }
.nag-stat b { font-family: var(--font-mono); font-style: italic; font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); color: var(--blue-700); line-height: 1; display: block; }
.nag-stat span { color: var(--text-muted); font-size: var(--fs-body-sm); margin-top: 6px; display: block; max-width: 200px; line-height: 1.5; }

/* Nút ảnh mở lightbox — dùng chung cho mọi gallery (tác phẩm + hậu trường) */
.lb-item { border: none; padding: 0; background: none; cursor: pointer; display: block; width: 100%; position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.lb-item img { width: 100%; display: block; transition: transform .4s ease; }
.lb-item:hover img { transform: scale(1.04); }
.lb-item::after { content: ""; position: absolute; inset: 0; background: rgba(11,41,66,0); transition: background .25s ease; }
.lb-item:hover::after { background: rgba(11,41,66,.18); }
.lb-item .bx-imgph { border-radius: var(--radius-lg); }

/* Khối "Tay nghề" — gallery tác phẩm masonry (ngôi sao của trang) */
.nag-gallery { columns: 4 240px; column-gap: 14px; margin-top: 24px; }
.nag-gallery > * { break-inside: avoid; margin-bottom: 14px; }
.nag-gallery img { width: 100%; display: block; }
.nag-gallery .bx-imgph { border-radius: var(--radius-lg); }
.nag-gallery .bx-imgph--t1 { aspect-ratio: 3/4; }
.nag-gallery .bx-imgph--t2 { aspect-ratio: 4/3; }
.nag-gallery .bx-imgph--t3 { aspect-ratio: 1/1; }
.nag-gallery .bx-imgph--t4 { aspect-ratio: 4/5; }
/* Gallery Hậu trường (.nag-bts) cũng cần tỉ lệ khung như Tay nghề — nếu không,
   ô rỗng chỉ đứng nhờ min-height + chữ, khi gán ảnh (is-filled bỏ min-height + chữ)
   sẽ sập chiều cao về 0 và ảnh biến mất. */
.nag-bts .bx-imgph--t1 { aspect-ratio: 3/4; }
.nag-bts .bx-imgph--t2 { aspect-ratio: 4/3; }
.nag-bts .bx-imgph--t3 { aspect-ratio: 1/1; }
.nag-bts .bx-imgph--t4 { aspect-ratio: 4/5; }

/* Khối "Đội ngũ" — roster chân dung */
.nag-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 24px; }
.nag-person { display: flex; flex-direction: column; }
.nag-person__ph { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-100); }
.nag-person__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nag-person:hover .nag-person__ph img { transform: scale(1.05); }
.nag-person__ph .bx-imgph { position: absolute; inset: 0; border-radius: 0; min-height: 0; }
.nag-person__n { font-weight: var(--fw-bold); color: var(--text-strong); font-size: var(--fs-body); margin-top: 10px; }
.nag-person__r { color: var(--text-muted); font-size: var(--fs-body-sm); margin-top: 2px; }
.nag-roster__more { grid-column: 1 / -1; text-align: center; color: var(--text-muted); font-size: var(--fs-body-sm); margin-top: 8px; }
.nag-roster__more b { color: var(--blue-700); }

/* Khối "Cách chúng tôi làm việc" — quy trình kỷ luật 3 cột, mỗi giai đoạn 1 ảnh */
.nag-work { margin-top: 26px; }
.nag-proc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.nag-phase__img { aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.nag-phase__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nag-phase__img .bx-imgph { height: 100%; min-height: 0; border-radius: var(--radius-lg); }
.nag-phase__h { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-style: italic; font-weight: 800; font-size: 15px; color: var(--amber-700); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--amber-300); }
.nag-phase ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.nag-phase li { position: relative; padding-left: 20px; color: var(--text-body); font-size: var(--fs-body-sm); line-height: 1.6; }
.nag-phase li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue-500); }
.nag-work__media { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.nag-work__media .bx-imgph { aspect-ratio: 4/3; }
.nag-rules { background: var(--blue-50); border-left: 4px solid var(--brand-primary); border-radius: var(--radius-lg); padding: 18px 20px; }
.nag-rules h4 { font-weight: var(--fw-bold); color: var(--blue-900); font-size: var(--fs-body-sm); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.nag-rules li { color: var(--blue-800); }
.nag-rules li::before { background: var(--brand-primary); }

/* Khối "Hậu trường" — gallery ảnh NAG tác nghiệp + lightbox popup */
.nag-bts { columns: 4 220px; column-gap: 12px; margin-top: 24px; }
.nag-bts__item { break-inside: avoid; margin-bottom: 12px; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; display: block; position: relative; background: var(--ink-100); border: none; padding: 0; width: 100%; }
.nag-bts__item img { width: 100%; display: block; transition: transform .4s ease, filter .3s ease; }
.nag-bts__item .bx-imgph { border-radius: var(--radius-lg); }
.nag-bts__item:hover img { transform: scale(1.04); }
.nag-bts__item::after { content: ""; position: absolute; inset: 0; background: rgba(11,41,66,0); transition: background .25s ease; }
.nag-bts__item:hover::after { background: rgba(11,41,66,.18); }
.nag-bts__more { grid-column: 1/-1; text-align: center; margin-top: 8px; }

/* Lightbox overlay */
.nag-lb { position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center; background: rgba(6,22,36,.92); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.nag-lb.is-open { display: flex; }
.nag-lb__img { max-width: min(92vw, 1200px); max-height: 86vh; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); }
.nag-lb__ph { width: min(92vw, 1000px); aspect-ratio: 3/2; }
.nag-lb__cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.9); font-size: var(--fs-body-sm); }
.nag-lb__cap b { color: #fff; }
.nag-lb__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s ease; }
.nag-lb__btn:hover { background: rgba(255,255,255,.26); }
.nag-lb__btn .bx-ic { width: 24px; height: 24px; }
.nag-lb__prev { left: 20px; } .nag-lb__next { right: 20px; }
.nag-lb__close { position: absolute; top: 20px; right: 20px; transform: none; width: 44px; height: 44px; }

/* CTA 2 nhóm (BTC + NAG ứng tuyển) */
.nag-cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.nag-ctacard { border-radius: var(--radius-xl); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.nag-ctacard--btc { background: var(--grad-blue); color: #fff; }
.nag-ctacard--nag { background: #fff; border: 1px solid var(--border-subtle); }
.nag-ctacard__lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nag-ctacard--btc .nag-ctacard__lbl { color: var(--amber-300); }
.nag-ctacard--nag .nag-ctacard__lbl { color: var(--amber-600); }
.nag-ctacard h3 { font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-weight: var(--fw-extrabold); font-size: clamp(19px, 2.2vw, 25px); line-height: 1.15; }
.nag-ctacard--btc h3 { color: #fff; }
.nag-ctacard--nag h3 { color: var(--blue-700); }
.nag-ctacard p { font-size: var(--fs-body-sm); line-height: 1.65; }
.nag-ctacard--btc p { color: rgba(255,255,255,.86); }
.nag-ctacard--nag p { color: var(--text-muted); }
.nag-ctacard__foot { margin-top: auto; padding-top: 6px; }

@media (max-width: 900px) {
  .nag-proc { grid-template-columns: 1fr; gap: 26px; }
  .nag-phase__img { aspect-ratio: 16/8; }
  .nag-cta2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nag-gallery { columns: 2 140px; }
  .nag-bts { columns: 2 140px; }
  .nag-roster { grid-template-columns: 1fr 1fr; }
  .nag-lb__btn { width: 42px; height: 42px; }
  .nag-lb__prev { left: 8px; } .nag-lb__next { right: 8px; }
}

/* ---------- Caption nhỏ trên ảnh chặng (ghi rõ ảnh đã làm mờ) ---------- */
.sv-media-note {
  position: absolute; left: 14px; bottom: 12px; z-index: 3; max-width: calc(100% - 28px);
  padding: 5px 10px; border-radius: var(--radius-sm);
  background: rgba(11,41,66,.62); color: rgba(255,255,255,.92);
  font-size: 11px; line-height: 1.35; font-weight: var(--fw-medium);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .sv-lanes { grid-template-columns: 1fr; }
  .sv-steps, .sv-for { grid-template-columns: 1fr; }
  .pt-groups { grid-template-columns: 1fr; }
  .ab-split { grid-template-columns: 1fr; gap: 24px; }
  .ab-vals { grid-template-columns: 1fr 1fr; }
  .pt-statband { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hp-btcband { grid-template-columns: 1fr; padding: 26px 22px; }
  .hp-notify { grid-template-columns: 1fr; }
  /* Header cũng sticky (cao 68px, z-index cao hơn) → thanh tìm phải nằm ngay dưới,
     không được top:0 nếu không ô nhập bị header che khi cuộn. */
  .ev-searchbar__in { grid-template-columns: minmax(0, 1fr); }
  .ev-searchbar__alt { display: grid; grid-template-columns: 1fr 1fr; }
  .ev-searchbar__alt .bx-btn { min-width: 0; padding-inline: 8px; font-size: 12px; }
  .ab-time { grid-template-columns: 1fr; gap: 22px; }
  .ab-tnode::before { display: none; }
}
@media (max-width: 640px) {
  .hp-finder__row, .hp-finder__row--2 { grid-template-columns: 1fr; }
  .hp-finder__tab { flex-direction: column; gap: 4px; font-size: 12px; padding: 10px 6px; }
  .hp-finder__tab .bx-ic { width: 18px; height: 18px; }
  .hp-notify__form { flex-direction: column; }
  .bx-racegrid { grid-template-columns: 1fr; }
  .ab-vals { grid-template-columns: 1fr; }
  .pt-statband { grid-template-columns: 1fr; gap: 20px; }
  .ev-tabs { margin-inline: calc(-1 * var(--container-pad)); padding-inline: var(--container-pad); }

  /* Nút .bx-btn mặc định white-space:nowrap → nút CTA chữ dài tràn ngang ở màn hẹp.
     Ở mobile cho các nút trong hero/CTA/dải xuống dòng + full-width để không tràn. */
  .sv-hero__actions .bx-btn,
  .hp-btcband .bx-btn,
  .sv-bridge > div .bx-btn,
  .sv-cta .bx-btn,
  .ab-cta__btns .bx-btn,
  .mk-quote__actions .bx-btn {
    white-space: normal; width: 100%; text-align: center; justify-content: center;
  }
  .sv-hero__actions, .ab-cta__btns, .mk-quote__actions, .sv-bridge > div { width: 100%; }

  /* Chốt chặn: mọi nút lớn cho phép xuống dòng ở màn hẹp (kể cả nút đứng lẻ
     trong div không class) — nút CTA chữ dài không còn tràn ngang. */
  .bx-btn--lg { white-space: normal; }

  /* Biểu đồ tăng trưởng 9 cột: cho cuộn ngang trong khối, không đẩy tràn trang */
  .ep-growth { overflow-x: auto; padding-bottom: 6px; }
  .ep-gb { min-width: 26px; }
}

/* Ô ảnh đã gán (tool gán-ảnh chèn <img> vào, thêm class is-filled).
   Ảnh phủ tuyệt đối trong khung đã khoá tỉ lệ → không cần crop tay. */
.bx-imgph.is-filled { padding: 0; border: none; background: none; min-height: 0; }
.bx-imgph.is-filled::before { display: none; }
.bx-imgph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Avatar testimonial tự sinh khi chưa có ảnh khách: icon người trên nền gradient
   thương hiệu. Vẫn giữ data-img nên tool gán ảnh có thể đè ảnh thật lên sau. */
.pt-av-gen { border: none !important; display: flex; align-items: center; justify-content: center; }
.pt-av-gen::before { display: none !important; }
.pt-av-gen svg { width: 22px; height: 22px; color: #fff; opacity: .95; }

/* Card "BibPix tại các giải" giờ là link tới hashtag #bibpix trên Facebook */
a.ep-quote--link { text-decoration: none; color: inherit; display: flex; cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
a.ep-quote--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ep-fbcta { grid-column: 1 / -1; text-align: center; margin-top: 6px; }
.ep-fbcta a { color: var(--blue-600); font-weight: var(--fw-semibold); text-decoration: none; }
.ep-fbcta a:hover { text-decoration: underline; }

/* Trang giai: doan tom tat duoi ten giai (partials/race-summary) */
.ph-hero__summary { margin: 8px 0 0; max-width: 760px; color: rgba(255,255,255,.86); font-size: var(--fs-body-sm); line-height: 1.6; }

/* ===== css/ds-server.css ===== */
/*
 * CSS cho markup do CODE SERVER sinh ra ma prototype khong co.
 *
 * Prototype la HTML tinh, khong chay PagerHelper hay cac helper PHP khac. Khi port
 * sang view that, cac markup do (vd phan trang kieu Bootstrap `ul.pagination`) di
 * vao trang DS nhung layout DS khong nap Bootstrap -> khong co style, hien tho
 * (dau cham bullet, khong khoang cach). File nay bu style theo tone DS.
 *
 * Nap SAU cac css DS khac de de dang de bat.
 */

/* Phan trang — PagerHelper::generateHtml sinh `ul.pagination > li.page-item > a.page-link` */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.pagination .page-item {
    list-style: none;
    margin: 0;
}
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border-default, #cbd5e1);
    border-radius: var(--radius-md, 4px);
    background: var(--surface-card, #fff);
    color: var(--text-link, #1F5D8C);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.pagination .page-link:hover {
    background: var(--amber-50, #FFF8E4);
    border-color: var(--amber-300, #FFCD1C);
}
.pagination .page-item.active .page-link,
.pagination .page-item.active > .page-link {
    background: var(--amber-300, #FFCD1C);
    border-color: var(--amber-300, #FFCD1C);
    color: var(--ink-900, #0E1B26);
}
.pagination .page-item.disabled .page-link {
    opacity: .45;
    pointer-events: none;
}

/* ===========================================================================
   Hop nhap mat khau giai. Dung o ca trang danh sach su kien va trang anh giai
   nen dat o day thay vi lap lai trong tung view.
   =========================================================================== */
.bx-pwdlg { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.bx-pwdlg[hidden] { display: none; }
.bx-pwdlg__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.bx-pwdlg__box { position: relative; background: #fff; border-radius: 12px; padding: 24px; width: min(420px, 92vw); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.bx-pwdlg__box h3 { margin: 0 0 14px; font-size: 1.05rem; }
.bx-pwdlg__box input { width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; }
.bx-pwdlg__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ===========================================================================
   Trang anh cua mot giai (site_views_ds/photo.blade.php).
   =========================================================================== */

/* Banner dau trang do BTC/doi tac cung cap - kich thuoc bat ky, chi ep chieu ngang. */
.ph-banner img { width: 100%; display: block; border-radius: var(--radius-md, 10px); }

.ph-hero__title { margin: 0; }
.ph-hero__title a { color: inherit; text-decoration: none; }
.ph-hero__title a:hover { text-decoration: underline; }

.ph-tabs { margin-bottom: 14px; flex-wrap: wrap; }

.ph-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.ph-form__field { flex: 1; min-width: 220px; max-width: 420px; margin: 0; }
.ph-form__file { max-width: 100%; }

.ph-cert { margin-bottom: 10px; }

.ph-note { color: var(--text-muted, #64748b); font-size: var(--fs-body-sm, 14px); margin: 0 0 8px; }
.ph-note[hidden] { display: none; }

.ph-info { border: 1px solid var(--border-subtle, #e2e8f0); border-radius: 8px; padding: 10px 14px;
    margin-bottom: 10px; color: var(--blue-700, #1d4ed8); font-weight: 600; }

.ph-alert { border-radius: 8px; padding: 10px 14px; margin-bottom: 10px;
    background: var(--ink-50, #f1f5f9); font-size: var(--fs-body-sm, 14px); }
.ph-alert--warn { background: #fef3c7; }

.ph-uploaded img { max-width: 240px; border-radius: 8px; margin: 6px 0 12px; }

.ph-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }

.ph-results { padding-top: 16px; }

.ph-resulthead, .ph-resultfoot { display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ph-resultfoot { margin: 16px 0 0; }
.ph-resulthead__side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* So cot co dinh la uoc cua 48 (so anh/trang o che do Tat ca anh): 6 / 4 / 3 / 2 cot ->
   hang cuoi luon kin. auto-fill cu ra 5 cot o man 1280px, 48 anh le 3 o hang cuoi. */
.ph-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .ph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ph-photo { display: block; }
.ph-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ph-empty { min-height: 320px; padding: 20px 0; color: var(--text-muted, #64748b); }
.ph-empty--notice { background: var(--amber-300, #ffcd1c); color: var(--ink-900, #0f1c2e);
    border-radius: 10px; padding: 20px; text-align: center; }
.ph-empty--blank { min-height: 200px; }

.ph-video { text-align: center; margin: 0 auto 24px; max-width: 560px; }
.ph-video__title { font-size: 22px; border-bottom: 1px solid var(--amber-300, #ffcd1c); margin-bottom: 10px; }
.ph-video__msg { margin-bottom: 10px; }
.ph-video video { width: 500px; height: 315px; max-width: 100%; }

/* Nut Zalo noi. Ban cu dat goc phai duoi, nhung ban DS da co nut "Giao dien cu" o do
   nen doi sang goc trai; tren mobile nang len khoi thanh tab. */
.ph-zalo { position: fixed; bottom: 16px; left: 16px; opacity: .8; z-index: 900; }
.ph-zalo img { width: 48px; display: block; }

/* Nut "Anh xung quanh" chen vao toolbar Fancybox (markup do JS sinh). */
.bx-nearby-tb { width: auto; min-width: 0; height: 34px; padding: 0 11px; gap: 6px; margin: auto 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #ffcd1c; color: #1c3a5c; border-radius: 8px; font-weight: 700; }
.bx-nearby-tb span { font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* ===========================================================================
   Trang BAN ANH cua mot giai (site_views_ds/photo-sell.blade.php).
   =========================================================================== */
.ph-debug { background: #ffe; border: 2px solid red; padding: 10px; overflow-x: auto; font-size: 12px; }
.ph-sellmsg { color: var(--blue-700, #1d4ed8); background: var(--amber-300, #ffcd1c); padding: 10px 14px;
    font-size: 14px; margin-bottom: 12px; border-radius: 8px; }
.ph-sell__promo { max-width: 100%; margin-bottom: 12px; border-radius: 8px; }
.ph-sell__h4 { margin: 6px 0 10px; font-weight: 700; }

.ph-sell__box { border: 1px solid var(--border-subtle, #e2e8f0); border-radius: 12px; padding: 18px;
    margin: 8px 0 18px; background: var(--surface-card, #fff); }
.ph-sell__pkgtitle { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 12px; color: var(--text-strong, #0f1c2e); }

/* Bang gia goi anh. */
.bx-pkg { width: 100%; border-collapse: collapse; font-size: var(--fs-body-sm, 14px); }
.bx-pkg th { background: var(--ink-50, #f1f5f9); text-align: left; padding: 10px 14px; font-weight: 700;
    color: var(--text-strong, #0f1c2e); border: 1px solid var(--border-subtle, #e2e8f0); }
.bx-pkg td { padding: 10px 14px; border: 1px solid var(--border-subtle, #e2e8f0); vertical-align: middle; line-height: 1.3em; }
.bx-pkg td.r { text-align: right; white-space: nowrap; }
.bx-pkg tr:has(input:checked) { background: var(--blue-50, #eff6ff); }
.ph-radio input { accent-color: var(--blue-500, #3b82f6); margin-left: 10px; transform: scale(1.15); vertical-align: middle; }

.ph-sell__order { margin-top: 14px; text-align: center; }
.ph-sell__sum { font-size: 15px; text-align: left; margin-bottom: 4px; }
.ph-sell__cap { text-align: left; font-size: 13px; }
.ph-sell__hint { font-size: 12px; text-align: left; margin-bottom: 6px; color: var(--text-muted, #64748b); }
.ph-sell__tot { text-align: left; font-size: 13px; margin-bottom: 10px; }
.ph-sell__tot span { font-weight: 700; }
.ph-sell__order .bx-btn { margin-top: 6px; }
.ph-sell__help { display: block; margin-top: 8px; font-style: italic; font-size: 14px; color: var(--blue-700, #1d4ed8); }

/* Anh chon mua: thumbnail + o tick "chon anh". */
.ph-sellitem { display: flex; flex-direction: column; }
.ph-sellitem__pick { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; cursor: pointer; }
.ph-sellitem__pick--paid { color: var(--text-muted, #64748b); cursor: default; }
.ph-sellitem__pick input { accent-color: var(--blue-500, #3b82f6); }

.ph-sell__paid { text-align: center; border-bottom: 1px solid var(--amber-300, #ffcd1c);
    margin: 0 auto 16px; max-width: 560px; padding-bottom: 12px; }
.ph-sell__paid-title { font-size: 22px; margin-bottom: 10px; }
.ph-sell__paid .bx-btn { margin-bottom: 10px; }

.ph-sell__vpromo { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; text-align: center; }
.ph-sell__vpromo img { width: 480px; max-width: 100%; border: 1px solid var(--amber-300, #ffcd1c); border-radius: 7px; padding: 3px; margin-bottom: 5px; }

.ph-sell__fallback { padding: 10px 0; }

/* Custom clip (dnim2025) - mang lai style filmstrip/play-icon tu style.css cu. */
.ph-clip__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 12px; }
.ph-clip__mid { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 18px; text-align: center; }
.ph-clip__thumb { max-height: 180px; border-radius: 6px; }
.ph-clip__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.ph-clip__pick { display: flex; align-items: center; gap: 10px; }
.ph-clip__meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.video-thumbnail { padding: 10px; margin: 10px; position: relative; max-width: 100%; width: 400px; height: 225px;
    cursor: pointer; overflow: hidden; border-radius: 7px; box-shadow: 0 4px 8px rgba(0,0,0,.2); }
.video-thumbnail img { width: 100%; height: 100%; display: block; transition: transform .3s ease; }
.play-icon { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; background: rgba(255,255,255,.5);
    border-radius: 50%; transform: translate(-50%,-50%); display: flex; justify-content: center; align-items: center; }
.play-icon::before { content: ''; border-style: solid; border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #000; margin-left: 4px; }
.filmstrip { margin-top: 15px; display: flex; background: #000; padding: 5px 5px 10px; border: 8px solid #000;
    border-radius: 6px; gap: 6px; overflow-x: auto; white-space: nowrap; overflow-y: hidden; flex: 1; min-width: 0; }
.frame { width: 100px; height: 70px; background: #222; border: 2px solid #555; flex: 0 0 auto; }
.frame img { min-width: 100px; width: 100%; height: 100%; object-fit: cover; }

/* ===========================================================================
   Trang VIDEO ca nhan (site_views_ds/video-personal.blade.php + video-personal-paid).
   =========================================================================== */
.ph-vid__msg { font-size: 18px; padding: 10px 0 16px; }
.ph-vid__grid { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.ph-vid__col { flex: 1; min-width: 200px; }
.ph-vid__col h5 { margin: 0 0 8px; font-weight: 700; }
.ph-vid__thumb { max-height: 180px; border-radius: 6px; border: 1px solid var(--border-subtle, #e2e8f0); }
.ph-vid__poster { max-width: 100%; border-radius: 6px; margin-bottom: 10px; }
.ph-vid__result { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 14px; }
.ph-vid__result td { border: 1px solid var(--border-subtle, #e2e8f0); padding: 6px 10px; }
.ph-vid__regen { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 8px; text-align: center; }
.ph-vid__dl { text-align: center; }
.ph-vid__uploaded { margin-bottom: 12px; }
.ph-vid__cliptitle { margin: 20px 0 4px; }
.ph-vid__product ul { padding-left: 20px; }
.ph-vid__browseitem { width: 100%; aspect-ratio: 16/9; height: auto; }

/* Thanh tien trinh gia lap khi cho ghep video. */
.bar-chassis { width: 100%; background-color: #e0e0e0; border-radius: 12px; overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,.1); margin-bottom: 16px; height: 35px; }
.level-indicator { height: 100%; width: 0%; background-color: var(--blue-500, #4A83BA); display: block;
    transition: width 5s cubic-bezier(.25,.46,.45,.94); box-shadow: 2px 0 5px rgba(74,131,186,.5); }

/* ===========================================================================
   Trang chung chi hoan thanh (site_views_ds/cert/info.blade.php).
   =========================================================================== */
.cert-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.cert-form__field { flex: 1; min-width: 220px; margin: 0; }
.cert-race-link { margin-top: 12px; }
.cert-result { margin-top: 20px; text-align: center; }
.cert-result__frame { border-radius: var(--radius-md, 10px); overflow: hidden;
    border: 1px solid var(--border-subtle, #e2e8f0); box-shadow: var(--shadow-md, 0 5px 15px rgba(0,0,0,.1)); }
.cert-result__frame img { width: 100%; display: block; }
.cert-result__dl { margin-top: 14px; }

/* Nhung ?iframe=1 tren site doi tac: giong ban cu, bo banner dau trang, khoi ten giai
   va nut Zalo - trang cha cua doi tac da co nhan dien rieng. */
.is-embed .ph-banner,
.is-embed .ph-hero,
.is-embed .ph-zalo { display: none !important; }

/* Thuoc tinh hidden phai thang moi luat display cua component (vd .bx-field la flex):
   thieu dong nay o BIB van hien khi dang o tab tim theo mat. */
[hidden] { display: none !important; }

/* O chon anh khuon mat: nut chon file theo kieu nut outline cua DS thay vi nut mac dinh. */
.ph-form__file { font: inherit; font-size: var(--fs-body-sm, 14px); color: var(--text-muted, #64748b); }
.ph-form__file::file-selector-button {
    font: inherit; font-weight: 600; margin-right: 10px; padding: 9px 16px; cursor: pointer;
    border: 1px solid var(--border-default, #cbd5e1); border-radius: 4px; background: #fff;
    color: var(--blue-600, #1F5D8C);
}
.ph-form__file::file-selector-button:hover { border-color: var(--blue-400, #60a5fa); }

/* Phan trang: SitePaginationHelper sinh o "." (href="#") cho khoang bi luoc - hien thanh
   dau "…" khong bam duoc thay vi mot nut rong. */
.pagination .page-link[href="#"] { font-size: 0; border-color: transparent; background: transparent;
    pointer-events: none; min-width: 24px; }
.pagination .page-link[href="#"]::after { content: "\2026"; font-size: 16px; color: var(--text-muted, #64748b); }

/* Dien thoai: luoi anh 2 cot nhu mockup (site.css), luat .ph-grid o tren lam roi ve 1 cot. */
@media (max-width: 560px) {
    .ph-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Select nam trong khung .bx-inputwrap (o chon giai trang chu): components.css chi bo vien
   cho input, select giu vien mac dinh cua trinh duyet -> thanh hai vien long nhau. */
.bx-inputwrap > select { flex: 1; min-width: 0; height: 100%; border: none; outline: none;
    background: transparent; font-family: var(--font-sans); font-size: var(--fs-body);
    color: var(--text-strong); cursor: pointer; }

/* The giai: anh bia doc (poster) keo cao ca the vi img van chiem cho theo chieu cao that
   du khung da dat aspect-ratio 3/2. Cho anh nam tuyet doi trong khung -> khung luon 3:2,
   anh cat vua khung, moi the trong hang cao bang nhau. */
.bx-racecard__media { overflow: hidden; }
.bx-racecard__media > img { position: absolute; inset: 0; }
.bx-racecard__meta { font-size: var(--fs-caption, 12px); }
.bx-racecard__meta .bx-ic--sm { width: 13px; height: 13px; }

/* O nhap/chon trong khung .bx-inputwrap: khung da co vong sang :focus-within, bo vong sang
   rieng cua input (luat :focus chung) de khong thanh hai vong long nhau. */
.bx-inputwrap > input:focus, .bx-inputwrap > select:focus { box-shadow: none; outline: none; }

/* Khung noi dung 1360px (noi dung 1280px): man Full HD 1920 pho bien nhat bot trong hai ben,
   laptop 1366-1536 van du le. Dat o day chu khong sua tokens/spacing.css: tokens nap qua
   @import khong kem ?v= nen bi cache 10 nam o trinh duyet va Cloudflare, sua se khong toi khach.
   Hop tim giai o trang chu rong het khung de thang mep voi hang the ben duoi. */
:root { --container-max: 1360px; }
.hp-finder { max-width: none; }

/* Phan trang cuoi trang chu: dem ben trai, nut trang ben phai cung mot hang, cach luoi the. */
.hp-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
    flex-wrap: wrap; margin-top: 24px; color: var(--text-muted, #64748b); font-size: var(--fs-body-sm, 14px); }
.hp-pager .pagination { margin: 0; }

/* Thanh tim trang Su kien chi con mot o: luoi 3 cot cu (1fr auto auto) de lai 2 cot trong
   + 2 khoang gap lam o tim hut 20px so voi mep khung. */
.ev-searchbar__in { grid-template-columns: minmax(0, 1fr); }

/* Loc trang Su kien tren dien thoai: hai o chon cung mot hang, bo chu "Loc", nut xoa loc gon
   ben duoi - truoc day moi thu mot hang, day danh sach su kien xuong qua thap. */
@media (max-width: 560px) {
    .hp-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding-block: 12px; }
    .hp-filters__lbl { display: none; }
    .hp-filters .bx-select { min-width: 0; padding-inline: 10px; gap: 6px; }
    .hp-filters .bx-select__native { min-width: 0; width: 100%; font-size: 14px; text-overflow: ellipsis; }
    .hp-filters .hp-chip--clear { grid-column: 1 / -1; justify-self: start; }
}

/* Nut "Chia se" tren hero trang giai: cung hang voi nut quay lai Su kien, day ve ben phai. */
.ph-herotop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ph-share { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.ph-share:hover { background: rgba(255,255,255,.24); color: #fff; }
.vbuy-band .ph-share { margin-left: 8px; vertical-align: middle; }

/* Trang chia se su kien + ma QR */
.rs-wrap { padding-block: 28px 56px; }
.rs-back { color: var(--blue-600, #1F5D8C); background: var(--ink-50, #f1f5f9); margin-bottom: 18px; }
.rs-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.rs-head__img { width: 132px; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.rs-head__eyebrow { font-size: var(--fs-caption, 13px); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-700, #b45309); }
.rs-head__title { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; margin: 4px 0 6px; color: var(--blue-800, #173f63); }
.rs-head__lead { color: var(--text-muted, #64748b); margin: 0; }
.rs-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rs-card { background: #fff; border: 1px solid var(--border-subtle, #e2e8f0); border-radius: 10px; padding: 20px; box-shadow: var(--shadow-sm); }
.rs-label { display: block; font-weight: 700; color: var(--text-strong, #0f172a); margin-bottom: 10px; }
.rs-label--sm { font-size: var(--fs-body-sm, 14px); margin: 14px 0 6px; }
.rs-linkrow { display: flex; gap: 8px; }
.rs-link { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1.5px solid var(--border-default, #cbd5e1); border-radius: 4px; font: inherit; color: var(--text-strong); background: var(--ink-50, #f8fafc); }
.rs-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rs-qr__canvas { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; border: 1px solid var(--border-subtle, #e2e8f0); border-radius: 8px; }
.rs-select { width: 100%; height: 42px; padding: 0 10px; border: 1.5px solid var(--border-default, #cbd5e1); border-radius: 4px; font: inherit; background: #fff; }
.rs-check { display: flex; align-items: center; gap: 8px; margin: 12px 0; cursor: pointer; }
.rs-qr__url { font-size: 12px; color: var(--text-muted, #64748b); word-break: break-all; margin-bottom: 14px; }
.rs-hint { font-size: var(--fs-caption, 13px); color: var(--text-muted, #64748b); margin: 10px 0 0; }
@media (max-width: 800px) {
    .rs-grid { grid-template-columns: minmax(0, 1fr); }
    .rs-head { flex-direction: column; align-items: flex-start; }
}

/* Doi tac to chuc & media dang logo (thay o chu): o trang cao deu, logo gioi han trong
   khung de logo ngang dai (VTS) va logo vuong (Pulse Active) nhin can nhau. */
.ep-orgs:has(.ep-org--logo) { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ep-org--logo { padding: 10px 14px; height: 68px; background: #fff; justify-content: center; border-radius: 10px; }
.ep-org--logo::before { display: none; }
/* Logo chu trang (Topas Travel) thiet ke cho nen xanh navy: giu nguyen mau goc. */
.ep-org--dark { background: #22317a; border-color: #22317a; }
.ep-org--logo { min-width: 0; overflow: hidden; }
.ep-org--logo img { max-height: 38px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 560px) {
    .ep-orgs:has(.ep-org--logo) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ep-org--logo { height: 56px; padding: 8px 10px; }
    .ep-org--logo img { max-height: 30px; }
}

/* Bo chuyen ngon ngu: 10 ngon ngu khong vua hang nut EN/VI/KR cu nen thanh menu tha
   xuong bang <details>. Ghi de .bx-langswitch cua site.css (flex nhieu nut). */
.bx-langswitch { display: block; position: relative; background: none; padding: 0; }
.bx-langswitch > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 10px; border-radius: var(--radius-md); background: var(--ink-50); font-size: 12px; font-weight: 700; color: var(--ink-600); }
.bx-langswitch > summary::-webkit-details-marker { display: none; }
.bx-langswitch[open] > summary { color: var(--blue-700); }
.bx-langswitch__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 168px;
  max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--ink-100, #e6e8ee);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md, 0 8px 24px rgba(15, 23, 42, .12)); padding: 4px; }
.bx-langswitch__menu a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px;
  color: var(--ink-700, #333); text-decoration: none; white-space: nowrap; }
.bx-langswitch__menu a:hover { background: var(--ink-50); text-decoration: none; }
.bx-langswitch__menu a.is-active { color: var(--blue-700); font-weight: 700; }
@media (max-width: 860px) {
  .bx-langswitch { display: block; }
  .bx-langswitch__menu { right: -8px; }
}
/* Ten su kien noi bat trang chu: nho lai, toi da 2 dong de doc het ten dai. */
.hp-hl__title { font-size: var(--fs-body-sm, 14px); line-height: 1.35; -webkit-line-clamp: 2; min-height: 2.7em; }

/* Select2 o chon giai trang chu: nam trong khung .bx-inputwrap, bo vien rieng cua Select2. */
.hp-finder .select2-container { flex: 1; min-width: 0; }
.hp-finder .select2-container--default .select2-selection--single { border: 0; background: transparent; height: 100%; display: flex; align-items: center; }
.hp-finder .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 0; font-size: var(--fs-body, 16px); color: var(--text-strong, #0f172a); line-height: 1.4; }
.hp-finder .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--text-subtle, #94a3b8); }
.hp-finder .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
.select2-container--open .select2-dropdown { border-color: var(--border-default, #cbd5e1); border-radius: 6px; box-shadow: var(--shadow-md); font-size: 15px; }
.select2-container--open .select2-search__field { border-radius: 4px; padding: 8px 10px !important; }
.select2-container--open .select2-results__group { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #64748b); }
.select2-container--open .select2-results__option--highlighted[aria-selected] { background: var(--blue-600, #1F5D8C) !important; }
.select2-container--open .select2-results > .select2-results__options { max-height: 360px; }

/* Tab tim (BIB / mat / tat ca) tren dien thoai: luon mot hang, chia deu, chu nho lai -
   truoc day "Tat ca anh" roi xuong dong thu hai. Nhan dai (fr, id, ru...) xuong dong
   ben trong o tab thay vi tran de len tab ben canh. */
@media (max-width: 560px) {
    .ph-tabs { display: flex; flex-wrap: nowrap; width: 100%; }
    .ph-tabs .ph-tab { flex: 1 1 0; min-width: 0; justify-content: center; padding: 4px 6px;
        font-size: 13px; white-space: normal; text-align: center; line-height: 1.2;
        height: auto; min-height: 36px; overflow-wrap: break-word; gap: 5px; }
    /* Tieng Han mac dinh ngat giua am tiet ("검 / 색"); giu tron tu, chi ngat o dau cach. */
    .ph-tabs .ph-tab:lang(ko) { word-break: keep-all; }
    .ph-tabs .ph-tab .bx-ic { width: 14px; height: 14px; flex: 0 0 auto; }
}

/* Logo header to hon (32 -> 42px); dien thoai 36px de van du cho nut ngon ngu + menu. */
.bx-header__logo img { height: 42px; }
@media (max-width: 560px) { .bx-header__logo img { height: 36px; } }

/* Tieu de hero trang giai: dau tieng Viet chong (Ễ, Ệ) cua dong dau trom len nut "Su kien"
   voi line-height 1.02 -> gian dong va chua khoang duoi hang nut. */
.ph-herotop { margin-bottom: 14px; }
.ph-hero__title { line-height: 1.16; padding-top: .08em; }
/* Minh hoa quy trinh (thay anh IMG-07 chu tieng Viet o cac ngon ngu khac). */
.bx-proc { margin-top: 28px; padding: 24px; border: 1px solid var(--ink-100, #e6e8ee); border-radius: 16px; background: #fff; }
.bx-proc__head { text-align: center; max-width: 680px; margin: 0 auto 20px; }
.bx-proc__title { margin: 0 0 6px; font-size: clamp(18px, 2vw, 22px); }
.bx-proc__lead { margin: 0; color: var(--text-muted, #64748b); }
.bx-proc__flow { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.bx-proc__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px 14px; border-radius: 12px; background: var(--ink-50, #f5f7fb); }
.bx-proc__step + .bx-proc__step::before { content: "→"; position: absolute; left: -12px; top: 30px; transform: translateX(-50%); color: var(--blue-600, #2563eb); font-weight: 700; }
.bx-proc__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-50, #eaf2ff); color: var(--blue-700, #1d4ed8); }
.bx-proc__icon .bx-ic { width: 24px; height: 24px; }
.bx-proc__icon--sm { width: 38px; height: 38px; flex: 0 0 38px; }
.bx-proc__icon--sm .bx-ic { width: 20px; height: 20px; }
.bx-proc__n { font-size: 12px; font-weight: 700; color: var(--text-muted, #64748b); }
.bx-proc__label { font-weight: 700; line-height: 1.35; }
.bx-proc__desc { font-size: 14px; line-height: 1.5; color: var(--text-muted, #64748b); max-width: 30ch; }
.bx-proc__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.bx-proc__tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #fff;
    border: 1px solid var(--ink-100, #e6e8ee); font-size: 12.5px; font-weight: 600; color: var(--blue-700, #1d4ed8); }
.bx-proc__tag .bx-ic { width: 13px; height: 13px; }
.bx-proc__tag--hi { background: var(--amber-300, #ffcd1c); border-color: var(--amber-300, #ffcd1c); color: var(--ink-900, #0e1b26); }
.bx-proc__subtitle { margin: 0 0 10px; text-align: center; font-size: 16px; }
.bx-proc__values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bx-proc__value { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px dashed var(--ink-200, #d5dae3); }
.bx-proc__value b { display: block; margin-bottom: 2px; }
.bx-proc__value span { color: var(--text-muted, #64748b); font-size: 14px; }
@media (max-width: 640px) {
  .bx-proc { padding: 16px; }
  .bx-proc__flow, .bx-proc__values { grid-template-columns: minmax(0, 1fr); }
  .bx-proc__step + .bx-proc__step::before { content: "↓"; left: 50%; top: -14px; }
}

/* Phan trang tren dien thoai: toi da 9 o (« … 2 3 4 5 6 7 … ») phai nam mot hang - truoc
   o 38px + gap 6px tran dong o man 390-430px, nut "»" roi xuong duoi. */
@media (max-width: 560px) {
    .pagination { flex-wrap: nowrap; gap: 4px; max-width: 100%; }
    .pagination .page-link { min-width: 32px; height: 34px; padding: 0 6px; font-size: 13px; }
    .pagination .page-link[href="#"] { min-width: 16px; padding: 0; }
}

/* Form tim (BIB / khuon mat) tren dien thoai: o nhap hoac o chon file cung hang voi nut
   "Tim anh". Truoc o BIB bi ep toi thieu 220px, cong nut > be ngang 358px (man 390) nen
   nut roi xuong dong. O phu bib_check (vai giai) hien ra thi cho xuong dong nhu cu. */
@media (max-width: 560px) {
    .ph-form { flex-wrap: nowrap; gap: 8px; }
    .ph-form:has([data-bibcheck]:not([hidden])) { flex-wrap: wrap; }
    .ph-form__field { min-width: 0; flex: 1 1 auto; max-width: none; }
    .ph-form__file { min-width: 0; flex: 1 1 auto; font-size: 13px; }
    .ph-form__file::file-selector-button { padding: 8px 10px; margin-right: 6px; }
    .ph-form > .bx-btn { flex: 0 0 auto; padding-inline: 14px; white-space: nowrap; }
}
