/* ============================================================
   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; }
