/**
 * ViewPay v4 — "Velocity Flux" Theme
 * Facebook-inspired social-utility design system: card-based layout, glassmorphic
 * navigation, Plus Jakarta Sans headlines over Inter body text.
 * Design source: stitch_facebook_inspired_viewrunner_pwa/velocity_flux/DESIGN.md
 * Developed by Jcode | Author: Obrempong
 */

/* ── Design Tokens — Velocity Flux ────────────────────────── */
:root {
  /* Brand — primary is overridable from Admin → Settings → Appearance */
  --vp-primary:       #0058bc;
  --vp-primary-dk:    color-mix(in srgb, var(--vp-primary) 80%, #000);
  --vp-primary-lt:    color-mix(in srgb, var(--vp-primary) 12%, #fff);
  --vp-primary-ctr:   #0070eb;   /* primary-container — hover / gradient stop  */
  --vp-on-primary:    #ffffff;

  /* Semantic — green reads as "money in", amber as urgency/popularity */
  --vp-success:       #006e25;   /* secondary        */
  --vp-success-ctr:   #80f98b;   /* secondary-container */
  --vp-warning:       #946f00;   /* tertiary-container  */
  --vp-tertiary:      #fabd00;
  --vp-danger:        #ba1a1a;   /* error            */
  --vp-danger-ctr:    #ffdad6;
  --vp-info:          #3b82f6;

  /* Surfaces — tonal layers, no shadow on level-1 cards */
  --vp-bg:            #f7f9fc;   /* surface          */
  --vp-card:          #ffffff;   /* surface-container-lowest */
  --vp-surface-low:   #f2f4f7;
  --vp-surface:       #eceef1;
  --vp-surface-high:  #e6e8eb;
  --vp-border:        #e4e6eb;   /* ad-border        */
  --vp-outline:       #c1c6d6;   /* outline-variant  */
  --vp-text:          #191c1e;   /* on-surface       */
  --vp-text-muted:    #414754;   /* on-surface-variant */
  --vp-sponsored:     #65676b;
  --vp-sidebar-bg:    #191c1e;
  --vp-momo-blue:     #0056b3;

  /* Glassmorphism — level 2 (nav + overlays) */
  --vp-glass:         rgba(255,255,255,.72);
  --vp-glass-blur:    12px;
  --vp-glass-border:  rgba(255,255,255,.3);

  /* Shape — rounded, friendly; buttons go pill-ish on mobile */
  --vp-radius:        1rem;      /* cards            */
  --vp-radius-sm:     .5rem;     /* inputs           */
  --vp-radius-md:     .75rem;
  --vp-radius-pill:   9999px;

  --vp-shadow:        0 1px 4px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
  --vp-shadow-lg:     0 8px 32px rgba(0,0,0,.10);

  /* Type */
  --vp-font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vp-font-display:  "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;

  /* Spacing — 8px base unit */
  --vp-unit:          8px;
  --vp-gutter:        24px;
  --vp-gutter-mobile: 16px;
  --vp-card-gap:      16px;

  --touch-min:        48px;
  --bottom-nav-h:     64px;
  --vp-sidenav-w:     280px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--vp-font-body);
  font-size: 1rem;          /* body-md: 16px / 24px */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--vp-bg);
  color: var(--vp-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--vp-primary); }
button { cursor: pointer; font-family: inherit; }

/* ── Typography — Plus Jakarta Sans display / Inter body ──── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--vp-font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}
h1 { font-size: clamp(1.75rem, 4vw, 3rem);   font-weight: 800; letter-spacing: -.02em; } /* display-lg */
h2 { font-size: clamp(1.5rem, 3vw, 2rem);    }                                          /* headline-lg */
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }                                        /* headline-md */
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .9rem; }
.text-display { font-family: var(--vp-font-display); font-weight: 800; letter-spacing: -.02em; }
/* label-sm-caps — "Sponsored" tags and metadata */
.label-caps {
  font-size: .75rem; font-weight: 700; line-height: 1rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.small  { font-size: .82rem !important; }
.font-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ── Buttons — all 48px touch targets ────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: .55rem 1.1rem;
  border-radius: var(--vp-radius-sm);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  user-select: none;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.4;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: .35rem .75rem; font-size: .8rem; }
.btn-lg { min-height: 52px; padding: .75rem 1.5rem; font-size: 1rem; }
.btn:disabled, [disabled] { opacity: .55; pointer-events: none; }
.btn-primary    { background: var(--vp-primary);  border-color: var(--vp-primary);  color: #fff; }
.btn-primary:hover { background: var(--vp-primary-dk); border-color: var(--vp-primary-dk); color: #fff; }
.btn-success    { background: var(--vp-success);  border-color: var(--vp-success);  color: #fff; }
.btn-danger     { background: var(--vp-danger);   border-color: var(--vp-danger);   color: #fff; }
.btn-warning    { background: var(--vp-warning);  border-color: var(--vp-warning);  color: #1a1a2e; }
.btn-secondary  { background: #6b7280; border-color: #6b7280; color: #fff; }
.btn-outline-primary   { background: transparent; color: var(--vp-primary);  border-color: var(--vp-primary); }
.btn-outline-primary:hover { background: var(--vp-primary); color: #fff; }
.btn-outline-success   { background: transparent; color: var(--vp-success);  border-color: var(--vp-success); }
.btn-outline-success:hover { background: var(--vp-success); color: #fff; }
.btn-outline-danger    { background: transparent; color: var(--vp-danger);   border-color: var(--vp-danger); }
.btn-outline-danger:hover { background: var(--vp-danger); color: #fff; }
.btn-outline-warning   { background: transparent; color: var(--vp-warning);  border-color: var(--vp-warning); }
.btn-outline-warning:hover { background: var(--vp-warning); color: #1a1a2e; }
.btn-outline-secondary { background: transparent; color: var(--vp-text-muted); border-color: var(--vp-border); }
.btn-outline-secondary:hover { background: #f3f4f8; color: var(--vp-text); }
.btn-outline-info { background: transparent; color: var(--vp-info); border-color: var(--vp-info); }
.btn-outline-info:hover { background: var(--vp-info); color: #fff; }
.btn-check { position: absolute; clip: rect(0,0,0,0); }
.w-100 { width: 100% !important; }

/* ── Forms — fluid, min 44px inputs ──────────────────────── */
.form-control, .form-select {
  display: block; width: 100%; min-height: 44px;
  padding: .5rem .8rem;
  background: var(--vp-card); color: var(--vp-text);
  border: 1.5px solid var(--vp-border);
  border-radius: var(--vp-radius-sm);
  font-family: inherit; font-size: .9rem;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--vp-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vp-primary) 20%, transparent);
}
.form-control::placeholder { color: var(--vp-text-muted); opacity: .7; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-control-sm { min-height: 36px; padding: .3rem .65rem; font-size: .82rem; }
.form-label { display: block; margin-bottom: .35rem; font-size: .82rem; font-weight: 600; }
.form-text  { font-size: .72rem; color: var(--vp-text-muted); margin-top: .25rem; }
.form-check { display: flex; align-items: center; gap: .5rem; min-height: var(--touch-min); padding-left: 0; }
.form-check-input {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--vp-border); border-radius: 4px;
  cursor: pointer; accent-color: var(--vp-primary);
}
.form-switch .form-check-input { width: 34px; height: 18px; border-radius: 99px; }
.form-control-color { width: 100%; min-height: 44px; padding: .25rem; border-radius: var(--vp-radius-sm); }
.input-group { display: flex; }
.input-group .form-control { border-radius: 0; }
.input-group > :first-child { border-radius: var(--vp-radius-sm) 0 0 var(--vp-radius-sm); }
.input-group > :last-child  { border-radius: 0 var(--vp-radius-sm) var(--vp-radius-sm) 0; }
.input-group-text {
  display: flex; align-items: center;
  padding: .5rem .8rem; background: #f9fafb;
  border: 1.5px solid var(--vp-border);
  font-size: .85rem; color: var(--vp-text-muted); white-space: nowrap;
}

/* ── Cards — level 1: white surface, 1px border, no shadow ── */
.card {
  background: var(--vp-card);
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius);
  box-shadow: none;
}
.card-body   { padding: 1.25rem; }
.card-header { padding: .9rem 1.25rem; background: transparent; border-bottom: 1px solid var(--vp-border); }
.card-footer { padding: .75rem 1.25rem; background: transparent; border-top: 1px solid var(--vp-border); }
.rounded-xl  { border-radius: 1rem !important; }
.border-0    { border: none !important; }
.card-hover  { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--vp-shadow-lg); }

/* ── Stat cards ───────────────────────────────────────────── */
.stat-card {
  background: var(--vp-card); border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius); padding: 1rem 1.125rem;
  box-shadow: var(--vp-shadow); transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--vp-shadow-lg); }
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }

/* ── Tables — horizontal scroll on mobile ─────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table th {
  padding: .65rem .75rem; text-align: left;
  font-weight: 600; font-size: .75rem;
  color: var(--vp-text-muted); text-transform: uppercase;
  letter-spacing: .04em; background: #f9fafb;
  border-bottom: 1px solid var(--vp-border); white-space: nowrap;
}
.table td { padding: .65rem .75rem; border-bottom: 1px solid #f3f4f8; vertical-align: middle; }
.table-hover tbody tr:hover { background: rgba(0,88,188,.03); }
.table-light th { background: #f9fafb; }
.ps-4 { padding-left: 1.25rem !important; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .2em .55em; border-radius: 99px;
  font-size: .7rem; font-weight: 700; white-space: nowrap; line-height: 1.3;
}
.bg-primary   { background: var(--vp-primary)  !important; color: #fff; }
.bg-success   { background: var(--vp-success)  !important; color: #fff; }
.bg-warning   { background: var(--vp-warning)  !important; color: #1a1a2e; }
.bg-danger    { background: var(--vp-danger)   !important; color: #fff; }
.bg-info      { background: var(--vp-info)     !important; color: #fff; }
.bg-secondary { background: #6b7280            !important; color: #fff; }
.text-dark    { color: #1a1a2e !important; }
.text-white   { color: #fff    !important; }
.text-success { color: var(--vp-success) !important; }
.text-danger  { color: var(--vp-danger)  !important; }
.text-warning { color: var(--vp-warning) !important; }
.text-muted   { color: var(--vp-text-muted) !important; }
.text-primary { color: var(--vp-primary) !important; }
.text-info    { color: var(--vp-info) !important; }
.text-secondary { color: #6b7280 !important; }
.bg-primary-subtle  { background: var(--vp-primary-lt) !important; }
.bg-success-subtle  { background: #ecfdf5 !important; }
.bg-warning-subtle  { background: #fffbeb !important; }
.bg-danger-subtle   { background: #fef2f2 !important; }
.bg-secondary-subtle{ background: #f3f4f6 !important; }
.bg-body-secondary  { background: #f9fafb !important; }
.bg-dark            { background: #111827 !important; }
.bg-light           { background: #f9fafb !important; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: .75rem 1rem; border-radius: var(--vp-radius-sm);
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .875rem; line-height: 1.5;
  position: relative;
}
.alert-success   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger    { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning   { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info      { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-secondary { background: #f9fafb; color: #374151; border: 1px solid var(--vp-border); }
.btn-close {
  background: none; border: none; font-size: 1.1rem;
  color: currentColor; opacity: .5; cursor: pointer;
  margin-left: auto; padding: .25rem; min-height: 32px; min-width: 32px;
  display: flex; align-items: center; justify-content: center;
}
.btn-close:hover { opacity: 1; }

/* ── Progress ─────────────────────────────────────────────── */
.progress { background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.progress-bar {
  background: var(--vp-primary); border-radius: 99px;
  transition: width .6s cubic-bezier(.16,1,.3,1);
}

/* ── Navbar — level 2: glassmorphic, floats above content ─── */
.vp-navbar {
  background: var(--vp-glass);
  -webkit-backdrop-filter: blur(var(--vp-glass-blur)) saturate(180%);
          backdrop-filter: blur(var(--vp-glass-blur)) saturate(180%);
  border-bottom: 1px solid var(--vp-border);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  min-height: 62px;
}
/* Browsers without backdrop-filter get an opaque bar rather than unreadable text. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vp-navbar { background: var(--vp-card); }
}
.vp-navbar-inner {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem; min-height: 62px;
  max-width: 1320px; margin: 0 auto;
}
.navbar-brand {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
  text-decoration: none; color: var(--vp-text);
  display: flex; align-items: center; gap: .5rem;
}
.navbar-brand .brand-icon {
  width: 32px; height: 32px; background: var(--vp-primary);
  border-radius: 7px; display: grid; place-items: center; flex-shrink: 0;
}
.vp-hamburger {
  display: none;
  min-height: 44px; min-width: 44px;
  background: none; border: 1.5px solid var(--vp-border); border-radius: .5rem;
  align-items: center; justify-content: center;
  color: var(--vp-text-muted); font-size: 1.25rem;
}

/* ── Off-canvas mobile drawer ─────────────────────────────── */
.vp-drawer {
  position: fixed; inset: 0; z-index: 1200;
  pointer-events: none;
}
.vp-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45); opacity: 0;
  transition: opacity .3s;
}
.vp-drawer-panel {
  position: absolute; top: 0; left: 0;
  width: min(300px, 85vw); height: 100%;
  background: var(--vp-card);
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.16,1,.3,1);
  overflow-y: auto; display: flex; flex-direction: column;
  padding: 1rem;
}
.vp-drawer.open { pointer-events: auto; }
.vp-drawer.open .vp-drawer-backdrop { opacity: 1; }
.vp-drawer.open .vp-drawer-panel { transform: translateX(0); }
.vp-drawer-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .8rem; border-radius: .65rem;
  font-size: .9rem; font-weight: 500;
  color: var(--vp-text); text-decoration: none;
  transition: background .15s; min-height: var(--touch-min);
}
.vp-drawer-link i { width: 22px; text-align: center; color: var(--vp-text-muted); flex-shrink: 0; }
.vp-drawer-link:hover, .vp-drawer-link.active {
  background: var(--vp-primary-lt); color: var(--vp-primary);
}
.vp-drawer-link.active i, .vp-drawer-link:hover i { color: var(--vp-primary); }
.vp-drawer-sep { height: 1px; background: var(--vp-border); margin: .5rem 0; }
.vp-drawer-user {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem; background: var(--vp-bg); border-radius: .75rem; margin-bottom: 1rem;
}
.vp-drawer-user img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }

/* ── Bottom Tab Bar ───────────────────────────────────────── */
.vp-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: var(--vp-glass);
  -webkit-backdrop-filter: blur(var(--vp-glass-blur)) saturate(180%);
          backdrop-filter: blur(var(--vp-glass-blur)) saturate(180%);
  border-top: 1px solid var(--vp-border);
  box-shadow: 0 -1px 2px rgba(0,0,0,.04);
  z-index: 850;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vp-bottom-nav { background: var(--vp-card); }
}
.vp-bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
  align-items: stretch;
}
.vp-tab-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  text-decoration: none; color: var(--vp-text-muted);
  font-size: .6rem; font-weight: 600;
  transition: color .15s; padding: .4rem .2rem;
  min-height: var(--touch-min); position: relative;
}
.vp-tab-btn i { font-size: 1.3rem; line-height: 1; transition: transform .2s, color .2s; }
.vp-tab-btn.active { color: var(--vp-primary); }
.vp-tab-btn.active i { transform: translateY(-2px); }
.vp-tab-dot {
  position: absolute; top: 6px; right: 50%;
  transform: translateX(9px);
  width: 8px; height: 8px;
  background: var(--vp-danger); border-radius: 50%;
  border: 2px solid var(--vp-card);
}
body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }

/* ── Wallet card ──────────────────────────────────────────── */
.wallet-card {
  background: linear-gradient(135deg, var(--vp-primary), var(--vp-primary-ctr));
  border-radius: var(--vp-radius); color: #fff; padding: 1.5rem;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--vp-primary) 28%, transparent);
}

/* ── Admin sidebar ────────────────────────────────────────── */
.vp-sidebar {
  width: 250px; min-width: 250px; background: var(--vp-sidebar-bg);
  height: 100vh; position: sticky; top: 0;
  overflow-y: auto; display: flex; flex-direction: column;
  flex-shrink: 0; scrollbar-width: thin;
}
.vp-sidebar::-webkit-scrollbar { width: 3px; }
.vp-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 99px; }
.vp-nav-section {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: rgba(255,255,255,.3);
  padding: .85rem .75rem .3rem; margin-top: .25rem;
}
.vp-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  color: rgba(255,255,255,.65); font-size: .83rem; font-weight: 500;
  text-decoration: none; transition: background .15s, color .15s;
  margin-bottom: 1px; min-height: 40px;
}
.vp-nav-link i { width: 20px; text-align: center; flex-shrink: 0; font-size: .95rem; }
.vp-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.vp-nav-link.active { background: var(--vp-primary); color: #fff; }

/* ── Ad placements ────────────────────────────────────────── */
.vp-ad-topbar {
  width: 100%; overflow: hidden; max-height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: #fffbeb;
}
.vp-ad-sidebar {
  width: 100%; overflow: hidden; border-radius: var(--vp-radius);
  margin-bottom: 1rem;
}
.vp-ad-under-post {
  margin: 1.5rem 0; padding: 1rem;
  background: var(--vp-bg); border-radius: var(--vp-radius);
  border: 1px solid var(--vp-border);
}
.vp-ad-under-post::before {
  content: 'Sponsored';
  display: block; font-size: .65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--vp-text-muted); margin-bottom: .5rem;
}

/* v6 — banner slot under the game player / offer wall. Its own label is
   rendered in the markup, so no ::before here. */
.vp-ad-banner img,
.vp-ad-banner video,
.vp-ad-banner iframe { max-width: 100%; height: auto; border-radius: 8px; }

/* v6 — full-screen interstitials (before play, on exit) and admin popups.
   Both are laid out inline so they still work if this stylesheet is cached
   stale; these rules only refine them. */
.vp-ad-interstitial img,
.vp-ad-interstitial video,
.vp-popup img { max-width: 100%; height: auto; }
.vp-ad-interstitial > div,
.vp-popup > div { animation: vpPopIn .22s ease-out; }
@keyframes vpPopIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-ad-interstitial > div, .vp-popup > div { animation: none; }
}
/* Keep the page behind an open overlay from scrolling under it on mobile. */
body:has(.vp-ad-interstitial[style*="flex"]),
body:has(.vp-popup[style*="flex"]) { overflow: hidden; }

/* ── Blog post content ────────────────────────────────────── */
.blog-post-content {
  line-height: 1.85; font-size: 1.0625rem;
  color: var(--vp-text); max-width: 720px;
}
.blog-post-content h2 { font-size: clamp(1.2rem,3vw,1.5rem); margin: 2rem 0 .75rem; }
.blog-post-content h3 { font-size: clamp(1.1rem,2.5vw,1.25rem); margin: 1.5rem 0 .5rem; }
.blog-post-content p  { margin-bottom: 1.125rem; }
.blog-post-content img{ border-radius: var(--vp-radius); margin: 1rem 0; }
.blog-post-content blockquote {
  border-left: 4px solid var(--vp-primary);
  padding: .75rem 1rem;
  background: var(--vp-primary-lt);
  border-radius: 0 var(--vp-radius-sm) var(--vp-radius-sm) 0;
  margin: 1rem 0;
}
.blog-post-content pre {
  background: #1a1a2e; color: #e2e8f0;
  padding: 1rem; border-radius: var(--vp-radius-sm);
  overflow-x: auto; font-size: .85rem; margin: 1rem 0;
}
.blog-post-content code {
  background: #f3f4f8; padding: .1em .35em;
  border-radius: .25em; font-size: .875em;
}
.blog-post-content ul, .blog-post-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-post-content li { margin-bottom: .4rem; }
.blog-post-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; overflow-x: auto; display: block; }
.blog-post-content th, .blog-post-content td { padding: .6rem .8rem; border: 1px solid var(--vp-border); }
.blog-post-content th { background: #f9fafb; font-weight: 600; }

/* ── Splash screen ────────────────────────────────────────── */
#vp-splash {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .5s .2s, visibility .5s .2s;
}
#vp-splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#vp-splash .splash-title { color: #fff; font-weight: 800; font-size: 1.6rem; margin-top: 1rem; }
#vp-splash .splash-sub   { color: rgba(255,255,255,.65); font-size: .875rem; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0; }
.page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; min-height: 38px; padding: .3rem .65rem;
  border-radius: .5rem; background: var(--vp-card);
  border: 1.5px solid var(--vp-border); color: var(--vp-text);
  text-decoration: none; font-size: .85rem; font-weight: 500; transition: .15s;
}
.page-link:hover { background: var(--vp-primary-lt); border-color: var(--vp-primary); color: var(--vp-primary); }
.page-item.active .page-link { background: var(--vp-primary); border-color: var(--vp-primary); color: #fff; }

/* ── Layout utilities ─────────────────────────────────────── */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1rem; }
.d-flex  { display: flex; } .d-grid { display: grid; } .d-block { display: block; }
.d-none  { display: none !important; } .d-inline-flex { display: inline-flex; }
.flex-grow-1 { flex-grow: 1; } .flex-shrink-0 { flex-shrink: 0; } .flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; } .align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-center  { justify-content: center; }
.justify-content-end     { justify-content: flex-end; }
.gap-1{gap:.25rem} .gap-2{gap:.5rem} .gap-3{gap:.75rem} .gap-4{gap:1rem}
.text-center { text-align: center; } .text-end { text-align: right; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; } .position-absolute { position: absolute; }
.top-0{top:0} .bottom-0{bottom:0} .start-0{left:0} .end-0{right:0}
.translate-middle { transform: translate(-50%,-50%); }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill   { border-radius: 99px !important; }
.rounded-3      { border-radius: .5rem !important; }
.border-top     { border-top: 1px solid var(--vp-border) !important; }
.border-bottom  { border-bottom: 1px solid var(--vp-border) !important; }
.shadow-sm  { box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05) !important; }
.shadow     { box-shadow: var(--vp-shadow) !important; }
.shadow-lg  { box-shadow: var(--vp-shadow-lg) !important; }
.opacity-75 { opacity: .75; } .opacity-25 { opacity: .25; }
.p-0{padding:0!important} .p-2{padding:.5rem!important} .p-3{padding:.75rem!important} .p-4{padding:1.25rem!important} .p-5{padding:2rem!important}
.px-3{padding-left:.75rem!important;padding-right:.75rem!important}
.px-4{padding-left:1.25rem!important;padding-right:1.25rem!important}
.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}
.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}
.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}
.py-4{padding-top:1.25rem!important;padding-bottom:1.25rem!important}
.py-5{padding-top:2.5rem!important;padding-bottom:2.5rem!important}
.mb-0{margin-bottom:0!important} .mb-1{margin-bottom:.25rem!important}
.mb-2{margin-bottom:.5rem!important} .mb-3{margin-bottom:.75rem!important}
.mb-4{margin-bottom:1.25rem!important} .mb-5{margin-bottom:2rem!important}
.mt-1{margin-top:.25rem!important} .mt-2{margin-top:.5rem!important}
.mt-3{margin-top:.75rem!important} .mt-4{margin-top:1.25rem!important}
.mt-auto{margin-top:auto!important}
.ms-1{margin-left:.25rem!important} .ms-2{margin-left:.5rem!important} .ms-auto{margin-left:auto!important}
.me-1{margin-right:.25rem!important} .me-2{margin-right:.5rem!important}
.h-100{height:100%!important} .min-vh-100{min-height:100vh}
.sticky-top { position: sticky; top: 0; z-index: 900; }
.vr { width:1px; background:var(--vp-border); margin:0 .25rem; align-self:stretch; }

/* ── Bootstrap-compatible grid ────────────────────────────── */
.row { display: flex; flex-wrap: wrap; margin: -.375rem; }
.row > * { padding: .375rem; }
.g-1>.col,.g-1>[class*="col"]{padding:.125rem}
.g-2>.col,.g-2>[class*="col"]{padding:.25rem}
.g-3>.col,.g-3>[class*="col"]{padding:.375rem}
.g-4>.col,.g-4>[class*="col"]{padding:.5rem}
.col-12{flex:0 0 100%;max-width:100%}
.col-6 {flex:0 0 50%;max-width:50%}
.col-4 {flex:0 0 33.333%;max-width:33.333%}
.col-3 {flex:0 0 25%;max-width:25%}
.col-auto { flex:0 0 auto; width:auto; }

/* ── Dropdowns ────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  border: none; border-radius: var(--vp-radius);
  box-shadow: var(--vp-shadow-lg); padding: .5rem;
  min-width: 200px; font-size: .875rem;
  background: var(--vp-card);
  position: absolute; right: 0; top: calc(100% + 4px);
  z-index: 1000;
}
.dropdown-item {
  border-radius: .5rem; padding: .55rem .75rem;
  min-height: 40px; display: flex; align-items: center; gap: .5rem;
  color: var(--vp-text); text-decoration: none;
  transition: background .12s; background: none; border: none;
  width: 100%; cursor: pointer; font-size: .875rem;
}
.dropdown-item:hover { background: var(--vp-primary-lt); color: var(--vp-primary); }
.dropdown-item.text-danger:hover { background: #fef2f2; color: var(--vp-danger); }
.dropdown-divider { height: 1px; background: var(--vp-border); margin: .35rem 0; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-content  { border: none; border-radius: 1rem; box-shadow: var(--vp-shadow-lg); background: var(--vp-card); }
.modal-header   { border-bottom: none; padding: 1.25rem 1.25rem .5rem; }
.modal-footer   { border-top: none; padding: .5rem 1.25rem 1.25rem; gap: .5rem; }
.modal-body     { padding: 1rem 1.25rem; }

/* ── Collapsible ──────────────────────────────────────────── */
.collapse:not(.show) { display: none; }

/* ── RESPONSIVE — Mobile ≤767px ──────────────────────────── */
@media (max-width: 767.98px) {

  /* Show hamburger, hide desktop nav links */
  .vp-hamburger { display: inline-flex !important; }
  .vp-nav-desktop { display: none !important; }

  /* Show bottom tab bar */
  .vp-bottom-nav { display: block; }

  /* Grid: stack all columns */
  .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-xl-2, .col-xl-3,
  .col-xl-4, .col-xl-6 { flex: 0 0 100%; max-width: 100%; }
  .col-6 { flex: 0 0 50%; max-width: 50%; }

  /* Tables: min width so they scroll instead of wrap */
  .table { min-width: 520px; }

  /* Modals: nearly full screen */
  .modal-dialog { margin: .5rem; }

  /* Admin sidebar: off-canvas */
  .vp-sidebar {
    display: none; position: fixed; z-index: 1050;
    height: 100%; width: 260px;
    box-shadow: 8px 0 30px rgba(0,0,0,.25);
  }
  .vp-sidebar.open { display: flex; }
  .vp-admin-main { padding: 1rem; }

  /* Compact navbar */
  .vp-navbar-inner { padding: .6rem .875rem; min-height: 56px; }

  /* Reward/blog grids: 2-col */
  .col-6 { flex: 0 0 50%; max-width: 50%; }

  /* Form rows: always stack */
  .row .col-md-3, .row .col-md-4, .row .col-md-5, .row .col-md-6 {
    flex: 0 0 100%; max-width: 100%;
  }

  /* Adjust font sizes for tiny screens */
  @media (max-width: 359px) {
    body { font-size: .875rem; }
    .btn { font-size: .8rem; padding: .5rem .8rem; }
  }
}

/* ── Tablet 768–991 ───────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-6  { flex: 0 0 50%;     max-width: 50%; }
  .col-md-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-3  { flex: 0 0 25%;     max-width: 25%; }
  .col-md-8  { flex: 0 0 66.666%; max-width: 66.666%; }
}

/* ── Desktop ≥992 ─────────────────────────────────────────── */
@media (min-width: 992px) {
  .col-lg-3  { flex: 0 0 25%;     max-width: 25%; }
  .col-lg-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6  { flex: 0 0 50%;     max-width: 50%; }
  .col-lg-8  { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-9  { flex: 0 0 75%;     max-width: 75%; }
  .d-lg-none  { display: none !important; }
  .d-lg-flex  { display: flex !important; }
  .d-lg-block { display: block !important; }
  .d-md-inline-flex { display: inline-flex !important; }
  .d-none.d-md-block { display: block !important; }
  .d-none.d-md-inline { display: inline !important; }
}

/* ── Extra large ≥1200 ────────────────────────────────────── */
@media (min-width: 1200px) {
  .col-xl-2  { flex: 0 0 16.666%; max-width: 16.666%; }
  .col-xl-3  { flex: 0 0 25%;     max-width: 25%; }
  .col-xl-4  { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .vp-navbar, .vp-sidebar, .vp-bottom-nav, .btn, .vp-drawer { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ══════════════════════════════════════════════════════════════
   VELOCITY FLUX — Component layer
   Facebook-inspired "social utility" primitives layered on top of
   the base theme. Source: velocity_flux/DESIGN.md
   ══════════════════════════════════════════════════════════════ */

/* ── Native premium ad slot ───────────────────────────────────
   Ads are treated as first-class content: same 16px radius as a card,
   recessed tonal background, and a required "Sponsored" label so the
   placement reads as intentional rather than intrusive. */
.vp-ad-slot {
  position: relative;
  background: #f8f9fa;
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius);
  padding: 1rem;
  margin-block: var(--vp-card-gap);
  overflow: hidden;
  font-family: var(--vp-font-body);
}
.vp-ad-slot::after {
  content: "Sponsored";
  position: absolute; top: .625rem; right: .875rem;
  font-size: .75rem; font-weight: 700; line-height: 1rem;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--vp-sponsored); pointer-events: none;
}
/* Reserve height so late-loading ads don't shift the layout (CLS). */
.vp-ad-slot[data-reserve] { min-height: 280px; }
.vp-ad-slot.is-leaderboard { min-height: 96px; }
.vp-ad-slot > ins, .vp-ad-slot > iframe { display: block; max-width: 100%; }

/* ── Progress / stat badge — pill, success green ───────────── */
.vp-badge-progress {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .625rem;
  border-radius: var(--vp-radius-pill);
  background: var(--vp-success); color: #fff;
  font-size: .75rem; font-weight: 700; line-height: 1rem;
}
.vp-badge-progress.is-muted { background: var(--vp-surface-high); color: var(--vp-text-muted); }
.vp-badge-popular {
  background: var(--vp-tertiary); color: #261a00;
  border-radius: var(--vp-radius-pill);
  padding: .25rem .625rem; font-size: .72rem; font-weight: 700;
}

/* ── Glass panel — reusable level-2 surface ───────────────── */
.vp-glass-panel {
  background: var(--vp-glass);
  -webkit-backdrop-filter: blur(var(--vp-glass-blur));
          backdrop-filter: blur(var(--vp-glass-blur));
  border: 1px solid var(--vp-glass-border);
  border-radius: var(--vp-radius);
}

/* ── Desktop left rail (Facebook-style side navigation) ───── */
.vp-side-rail {
  display: none;
  width: var(--vp-sidenav-w); flex-shrink: 0;
  position: sticky; top: calc(62px + var(--vp-unit));
  align-self: flex-start;
  max-height: calc(100vh - 62px - var(--vp-unit) * 2);
  overflow-y: auto; padding: var(--vp-unit);
}
.vp-side-rail-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .75rem; margin-bottom: 2px;
  border-radius: var(--vp-radius-md);
  color: var(--vp-text); text-decoration: none;
  font-size: .9375rem; font-weight: 600;
  transition: background .15s;
}
.vp-side-rail-link i { font-size: 1.35rem; color: var(--vp-primary); width: 24px; text-align: center; }
.vp-side-rail-link:hover { background: var(--vp-surface); }
.vp-side-rail-link.active { background: var(--vp-primary-lt); color: var(--vp-primary); }
@media (min-width: 1024px) { .vp-side-rail { display: block; } }

/* ── Compact density toggle (power users) ─────────────────── */
body.vp-compact .card-body { padding: .75rem; }
body.vp-compact .vp-ad-slot { padding: .625rem; }
body.vp-compact .table th,
body.vp-compact .table td { padding-block: .4rem; }

/* ── Buttons: pill-shaped primary CTAs on touch ───────────── */
@media (max-width: 767.98px) {
  .btn-primary, .btn-success, .btn-lg { border-radius: var(--vp-radius-pill); }
}

/* ── Focus ring — 2px primary + soft glow ─────────────────── */
.form-control:focus, .form-select:focus, .btn:focus-visible, a:focus-visible {
  outline: none;
  border-color: var(--vp-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vp-primary) 22%, transparent);
}

/* ── Motion preferences ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Component classes used across pages ──────────────────── */
.vp-footer      { border-top: 1px solid var(--vp-border); background: var(--vp-card); }
.badge-soft     { background: var(--vp-primary-lt); color: var(--vp-primary); }
.task-card      { transition: transform .18s, box-shadow .18s; }
.task-card:hover{ transform: translateY(-2px); box-shadow: var(--vp-shadow-lg) !important; }
.pkg-card       { transition: transform .2s; }
.pkg-card:hover { transform: translateY(-4px); }
.ad-slot-card {
  border: 2px dashed var(--vp-border);
  border-radius: var(--vp-radius);
  background: #f8f9fa;
  transition: border-color .2s, background .2s;
}
.ad-slot-card.active-period { border-color: var(--vp-primary); background: var(--vp-primary-lt); }

/* ── Utilities ────────────────────────────────────────────── */
.text-truncate-2 {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.opacity-60 { opacity: .6 !important; }
.opacity-65 { opacity: .65 !important; }
.gap-lg-4   { gap: 1.5rem !important; }

/* ══════════════════════════════════════════════════════════════
   APP SHELL — Facebook-style three-column layout
   Left rail (nav + balance) · centre feed · right rail (ads + blog).
   Collapses to a single column with a bottom tab bar under 1024px.
   ══════════════════════════════════════════════════════════════ */
.vp-shell {
  display: grid;
  /* minmax(0,1fr), never bare 1fr: .vp-shell-main carries inline-size
     containment, so its content contributes 0 to track sizing and a
     content-sized track would collapse the whole layout to nothing. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--vp-gutter);
  width: 100%;              /* body is a flex column; `margin:0 auto` alone
                               makes this shrink-to-fit and collapse */
  max-width: 1600px;
  margin-inline: auto;
  padding: var(--vp-gutter-mobile);
  align-items: start;
}
.vp-rail-left, .vp-rail-right { display: none; }
.vp-shell-main { min-width: 0; }   /* lets flex/grid children shrink instead of overflowing */

@media (min-width: 1024px) {
  .vp-shell { grid-template-columns: 260px minmax(0, 1fr); padding: var(--vp-gutter); }
  .vp-rail-left { display: block; }
}
@media (min-width: 1400px) {
  .vp-shell { grid-template-columns: 260px minmax(0, 1fr) 320px; }
  .vp-rail-right { display: block; }
}

/* Sticky rails that scroll independently of the feed */
.vp-rail-left, .vp-rail-right {
  position: sticky;
  top: calc(62px + var(--vp-unit));
  max-height: calc(100vh - 62px - var(--vp-unit) * 2);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.vp-rail-left::-webkit-scrollbar, .vp-rail-right::-webkit-scrollbar { width: 4px; }
.vp-rail-left::-webkit-scrollbar-thumb, .vp-rail-right::-webkit-scrollbar-thumb {
  background: var(--vp-outline); border-radius: 99px;
}

/* ── Left rail navigation ─────────────────────────────────── */
.vp-rail-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--vp-card-gap); }
.vp-rail-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem;
  border-radius: var(--vp-radius-md);
  color: var(--vp-text); text-decoration: none;
  font-size: .9375rem; font-weight: 600;
  transition: background .15s;
  min-height: 44px;
}
.vp-rail-link i { font-size: 1.3rem; width: 26px; text-align: center; color: var(--vp-text-muted); flex-shrink: 0; }
.vp-rail-link:hover { background: var(--vp-surface); color: var(--vp-text); }
.vp-rail-link.active { background: var(--vp-primary-lt); color: var(--vp-primary); }
.vp-rail-link.active i { color: var(--vp-primary); }
.vp-rail-link .badge { margin-left: auto; }

/* Balance card at the top of the left rail */
.vp-balance-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; margin-bottom: .75rem;
  border-radius: var(--vp-radius-md);
  background: var(--vp-card); border: 1px solid var(--vp-border);
}
.vp-balance-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vp-balance-label { font-size: .78rem; color: var(--vp-text-muted); line-height: 1.2; }
.vp-balance-amount { font-family: var(--vp-font-display); font-weight: 700; color: var(--vp-success); font-size: .95rem; }

/* ── Right rail sections ──────────────────────────────────── */
.vp-rail-card {
  background: var(--vp-card);
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius);
  padding: 1rem;
  margin-bottom: var(--vp-card-gap);
}
.vp-rail-heading {
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--vp-sponsored);
  margin-bottom: .625rem;
}
.vp-rail-post {
  display: block; padding: .625rem 0; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--vp-border);
}
.vp-rail-post:last-child { border-bottom: 0; padding-bottom: 0; }
.vp-rail-post-title { font-weight: 700; font-size: .9rem; line-height: 1.35; color: var(--vp-text); }
.vp-rail-post-meta  { font-size: .75rem; color: var(--vp-text-muted); margin-top: .25rem; }
.vp-rail-post:hover .vp-rail-post-title { color: var(--vp-primary); }

/* Wallet summary in the right rail */
.vp-rail-wallet {
  background: linear-gradient(135deg, var(--vp-primary), var(--vp-primary-ctr));
  border-radius: var(--vp-radius-md); color: #fff; padding: 1rem; margin-bottom: .75rem;
}
.vp-rail-wallet .label { font-size: .72rem; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.vp-rail-wallet .amount { font-family: var(--vp-font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.2; }

/* ── Top bar centre tabs (desktop only) ───────────────────── */
.vp-toptabs { display: none; gap: .25rem; }
@media (min-width: 992px) { .vp-toptabs { display: flex; } }
.vp-toptab {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 0 1.5rem; min-height: 52px;
  color: var(--vp-text-muted); text-decoration: none;
  font-weight: 600; font-size: .9rem;
  border-radius: var(--vp-radius-sm);
  transition: background .15s, color .15s;
}
.vp-toptab:hover { background: var(--vp-surface); color: var(--vp-text); }
.vp-toptab.active { color: var(--vp-primary); }
.vp-toptab.active::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--vp-primary);
}
/* Circular icon buttons on the right of the top bar */
.vp-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--vp-surface); color: var(--vp-text);
  border: 0; text-decoration: none; position: relative;
  transition: background .15s;
}
.vp-icon-btn:hover { background: var(--vp-surface-high); color: var(--vp-primary); }
.vp-icon-btn i { font-size: 1.15rem; }

/* ══════════════════════════════════════════════════════════════
   APP SHELL — corrections after live review
   ══════════════════════════════════════════════════════════════ */

/* ── Top bar: one row, one mobile menu control ─────────────── */
.vp-navbar-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  max-width: none;
  padding: .5rem var(--vp-gutter-mobile);
  min-height: 62px;
}
@media (min-width: 1024px) { .vp-navbar-inner { padding-inline: var(--vp-gutter); } }
.vp-navbar-inner .navbar-brand { margin: 0; flex-shrink: 0; }
.vp-navbar-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0; }
/* The drawer button is the ONLY mobile menu; it disappears once the rails show. */
.vp-hamburger { display: flex; order: -1; }
@media (min-width: 1024px) { .vp-hamburger { display: none; } }
/* Centre the tabs without letting them squeeze the brand or actions. */
.vp-toptabs { flex: 1 1 auto; justify-content: center; min-width: 0; }

/* ── Centre column: adapt legacy page markup to a narrower feed ──
   Pages were written for a full-width container. Inside the shell the
   column is ~800px, so Bootstrap's md/lg columns end up far too narrow
   (a col-md-3 lands at ~197px). Container queries re-flow them against
   the COLUMN width instead of the viewport width. */
.vp-shell-main { container-type: inline-size; container-name: feed; }

@container feed (max-width: 900px) {
  .vp-shell-main .col-md-2,
  .vp-shell-main .col-lg-2  { flex: 0 0 33.333%; max-width: 33.333%; }
  .vp-shell-main .col-md-3,
  .vp-shell-main .col-lg-3  { flex: 0 0 50%;     max-width: 50%; }
  .vp-shell-main .col-md-4,
  .vp-shell-main .col-lg-4  { flex: 0 0 50%;     max-width: 50%; }
}
@container feed (max-width: 560px) {
  .vp-shell-main .col-md-2, .vp-shell-main .col-lg-2,
  .vp-shell-main .col-md-3, .vp-shell-main .col-lg-3,
  .vp-shell-main .col-md-4, .vp-shell-main .col-lg-4,
  .vp-shell-main .col-md-6, .vp-shell-main .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Legacy full-bleed <section> bands become feed cards inside the shell,
   instead of edge-to-edge stripes in an 800px ribbon. */
.vp-shell-main > section {
  border-radius: var(--vp-radius);
  overflow: hidden;
  margin-bottom: var(--vp-card-gap);
  padding-block: 2rem !important;
}
.vp-shell-main > section.bg-white,
.vp-shell-main > section:not([style*="gradient"]):not([class*="text-white"]) {
  background: var(--vp-card);
  border: 1px solid var(--vp-border);
}
/* Containers inside the feed should fill the column, not re-centre in it. */
.vp-shell-main .container,
.vp-shell-main .container-fluid { max-width: 100%; padding-inline: 1.25rem; }

/* ── Give the feed more room ───────────────────────────────── */
@media (min-width: 1400px) {
  .vp-shell { grid-template-columns: 250px minmax(0, 1fr) 300px; }
}
@media (min-width: 1800px) {
  .vp-shell { grid-template-columns: 260px minmax(0, 1fr) 320px; max-width: 1800px; }
}

/* Fallback for browsers without container queries: relax at viewport level
   so the columns never collapse to unusably narrow cards. */
@supports not (container-type: inline-size) {
  @media (min-width: 1024px) and (max-width: 1500px) {
    .vp-shell-main .col-md-3, .vp-shell-main .col-lg-3 { flex: 0 0 50%; max-width: 50%; }
    .vp-shell-main .col-md-2, .vp-shell-main .col-lg-2 { flex: 0 0 33.333%; max-width: 33.333%; }
  }
}

/* ── Top bar must never overflow on small screens ─────────── */
.vp-navbar-inner > .navbar-brand { min-width: 0; overflow: hidden; }
.vp-navbar-inner > .navbar-brand img { max-width: 120px; }
@media (max-width: 575.98px) {
  .vp-navbar-inner { gap: .375rem; padding-inline: .625rem; }
  .vp-navbar-inner > .navbar-brand img { max-width: 92px; }
  /* "Log In" also lives in the drawer, so drop it here rather than overflow. */
  .vp-navbar-actions .btn-outline-secondary { display: none; }
  .vp-navbar-actions .btn { padding-inline: .625rem; font-size: .78rem; }
  .vp-icon-btn { width: 36px; height: 36px; }
}

/* ── Button groups ────────────────────────────────────────────
   Bootstrap sizes grouped buttons via `.btn-group-sm > .btn`, but this
   theme restyles `.btn` from scratch, so that selector has to be handled
   explicitly — otherwise the 48px base wins and a 4-button filter group
   overflows a 375px screen. */
.btn-group, .btn-group-vertical { display: inline-flex; flex-wrap: wrap; vertical-align: middle; }
.btn-group > .btn { position: relative; flex: 0 1 auto; }
.btn-group-sm > .btn {
  min-height: 38px;
  padding: .35rem .7rem;
  font-size: .8rem;
}
.btn-group-lg > .btn { min-height: 52px; padding: .75rem 1.5rem; font-size: 1rem; }
/* Segmented look: square off the inner edges. */
.btn-group > .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.btn-group > .btn:not(:last-child)  { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn.active { z-index: 1; }

@media (max-width: 575.98px) {
  /* Let a long filter group wrap instead of pushing the page sideways. */
  .btn-group { width: 100%; }
  .btn-group > .btn { flex: 1 1 auto; }
  .btn-group > .btn,
  .btn-group > .btn:not(:first-child),
  .btn-group > .btn:not(:last-child) { border-radius: var(--vp-radius-sm); margin-left: 0; }
  .btn-group { gap: .375rem; }
}

/* On phones the shell already supplies the page gutter, so an inner
   .container padding just steals ~40px of usable width from stat tiles. */
@media (max-width: 767.98px) {
  .vp-shell { padding: var(--vp-gutter-mobile) 12px; }
  .vp-shell-main .container,
  .vp-shell-main .container-fluid { padding-inline: 0; }
  .vp-shell-main > section { padding-block: 1.25rem !important; }
}
