/* ============================================================
   global.css  —  SHARED across every page
   Holds: design tokens, base reset, the app shell, the sidebar,
   the topbar, and shared building blocks (vk-card, vk-btn,
   vk-pill, cart drawer, modal, toast).
   Everything here is namespaced "vk-" so it never clashes with
   Bootstrap's own classes (.card, .btn, .modal, .badge ...).
   Page-specific looks live in assets/css/pages/<page>.css
   scoped under .page-<name>.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
  --navy: #212121;
  --navy-mid: #1a3a6b;
  --navy-light: #2a4f8a;
  --gold: #FFCC00;
  --gold-light: #FFCC00;
  --gold-pale: #fdf3d7;
  --gold-pale2: #fef8e8;
  --cream: #faf7f2;
  --ink: #1a1a2e;
  --ink2: #3a3a4a;
  --muted: #7a7a8e;
  --muted2: #ababba;
  --border: #e4e2dc;
  --border2: #d0cdc5;
  --surface: #ffffff;
  --surface2: #f5f3ef;
  --green: #1a8c5a;  --green-bg: #e6f6ee;
  --orange: #d4620a; --orange-bg: #fdf0e6;
  --red: #c0392b;    --red-bg: #fce9e7;
  --blue: #1a5fa8;   --blue-bg: #e6f0fa;
  --r: 10px; --r-lg: 16px; --r-xl: 22px;
  --shadow: 0 2px 12px rgba(15,34,70,0.08);
  --shadow-lg: 0 8px 32px rgba(15,34,70,0.12);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
}
body.vk-noscroll { overflow: hidden; }
a { color: inherit; }

/* ============================================================
   SHELL
   ============================================================ */
.vk-shell { display: flex; min-height: 100vh; align-items: stretch; }
.vk-main  { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ============================================================
   SIDEBAR  (Bootstrap responsive offcanvas: static >=992px,
             slide-in drawer <992px)
   Note: Bootstrap forces the offcanvas element background to
   transparent at >=lg, so we paint the navy on the inner wrapper.
   ============================================================ */
.vk-sidebar { --bs-offcanvas-width: 264px; z-index: 1045; }
@media (min-width: 992px) {
  .vk-sidebar { width: 240px; min-width: 240px; height: 100vh; position: sticky; top: 0; }
}
.vk-sidebar-inner {
  background: var(--navy);
  color: #fff;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.vk-side-logo { padding: 22px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.vk-logo-mark { display: flex; align-items: center; gap: 9px; }
.vk-logo-icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', serif; font-size: 16px; font-weight: 600; color: var(--navy); flex-shrink: 0;
}
.vk-logo-text { font-family: 'Poppins', serif; font-size: 16px; color: #fff; }
.vk-logo-sub { font-size: 9px; color: rgba(255,255,255,0.35); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 8px; padding: 0 2px; }

.vk-side-user {
  margin: 14px; background: rgba(255,255,255,0.06); border-radius: var(--r);
  padding: 12px; display: flex; align-items: center; gap: 10px;
}
.vk-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: 'Poppins', serif; font-size: 14px; font-weight: 600; color: var(--navy);
}
.vk-user-name { font-size: 13px; font-weight: 500; color: #fff; }
.vk-user-tier { font-size: 10px; color: var(--gold-light); display: flex; align-items: center; gap: 4px; margin-top: 2px; }

.vk-nav { padding-bottom: 6px; }
.vk-nav-section { padding: 8px 14px 4px; font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: 1.2px; text-transform: uppercase; margin-top: 6px; }
.vk-nav-item {
  margin: 1px 10px; display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r); cursor: pointer;
  color: rgba(255,255,255,0.55); font-size: 13px; text-decoration: none;
  transition: background .18s, color .18s; position: relative;
}
.vk-nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.vk-nav-item.active { background: rgba(232,168,32,0.15); color: var(--gold-light); }
.vk-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 60%; width: 3px; background: var(--gold); border-radius: 0 3px 3px 0;
}
.vk-nav-icon { font-size: 15px; min-width: 18px; text-align: center; }
.vk-nav-label { flex: 1; }
.vk-nav-badge { background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 20px; white-space: nowrap; }
.vk-nav-badge.blue { background: var(--blue); color: #fff; }

.vk-side-bottom { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.vk-coin-mini {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  background: rgba(232,168,32,0.12); border: 1px solid rgba(232,168,32,0.25);
  border-radius: var(--r); padding: 10px 12px;
}
.vk-coin-mini-icon { font-size: 16px; color: var(--gold-light); }
.vk-coin-mini-val { font-size: 16px; font-weight: 600; color: var(--gold-light); }
.vk-coin-mini-label { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 1px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.vk-topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--border);
  height: 58px; padding: 0 24px; display: flex; align-items: center; gap: 14px;
}
.vk-hamburger {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--surface2);
  border-radius: 9px; color: var(--navy); font-size: 17px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.vk-hamburger:hover { background: var(--border); }
.vk-topbar-titles { min-width: 0; }
.vk-topbar-title { font-family: 'Poppins', serif; font-size: 18px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vk-topbar-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.vk-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ============================================================
   CONTENT
   ============================================================ */
.vk-content { padding: 24px 28px; max-width: 1280px; width: 100%; }

/* ============================================================
   SHARED BUILDING BLOCKS  (use anywhere)
   ============================================================ */
.vk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; height: 100%; }
.vk-card-head { padding: 16px 18px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.vk-card-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.vk-card-body { padding: 14px 18px; }
.vk-card-action { font-size: 12px; color: var(--blue); text-decoration: none; background: none; border: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 5px; }

.vk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--navy); color: #fff; border: none; border-radius: var(--r);
  padding: 9px 16px; font-size: 13px; font-weight: 500; font-family: Poppins, sans-serif;
  cursor: pointer; text-decoration: none; transition: background .15s;
}
.vk-btn:hover { background: var(--navy-mid); color: #fff; }
.vk-btn-sm { padding: 7px 12px; font-size: 12px; }
.vk-btn-block { width: 100%; }
.vk-btn-ghost { background: none; border: 1px solid var(--border2); color: var(--navy); }
.vk-btn-ghost:hover { background: var(--surface2); color: var(--navy); border-color: var(--navy); }

.vk-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--gold-pale); border: 1px solid rgba(232,168,32,0.35);
  border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 500;
  color: var(--orange); text-decoration: none;
}

.vk-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--surface2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer; text-decoration: none; position: relative;
}
.vk-icon-btn:hover { color: var(--navy); border-color: var(--navy-light); }
.vk-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }

/* ============================================================
   OVERLAY + CART DRAWER + MODAL + TOAST  (shared)
   ============================================================ */
.vk-overlay { position: fixed; inset: 0; background: rgba(10,20,40,0.45); z-index: 1100; opacity: 0; visibility: hidden; transition: opacity .25s; }
.vk-overlay.show { opacity: 1; visibility: visible; }

.vk-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 380px; max-width: 92vw;
  background: var(--surface); z-index: 1200; transform: translateX(100%);
  transition: transform .28s ease; display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
}
.vk-drawer.open { transform: none; }
.vk-drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.vk-drawer-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.vk-drawer-body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.vk-drawer-foot { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface2); }
.vk-cart-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0; }
.vk-cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.vk-cart-item:last-child { border-bottom: none; }
.vk-cart-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface2); display: flex; align-items: center; justify-content: center; color: var(--navy); flex-shrink: 0; }
.vk-cart-info { flex: 1; min-width: 0; }
.vk-cart-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.vk-cart-coin { font-size: 11px; color: var(--orange); margin-top: 1px; }
.vk-cart-price { font-size: 13px; font-weight: 600; color: var(--navy); }
.vk-cart-rm { border: none; background: none; color: var(--muted2); cursor: pointer; font-size: 13px; }
.vk-cart-rm:hover { color: var(--red); }
.vk-sumrow { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); padding: 4px 0; }
.vk-sumrow-total { font-size: 15px; font-weight: 700; color: var(--navy); padding-top: 8px; }
.vk-coin-apply { background: var(--gold-pale2); border: 1px solid rgba(232,168,32,0.35); border-radius: var(--r); padding: 12px 14px; margin: 12px 0; }
.vk-coin-apply-label { font-size: 12px; color: var(--orange); font-weight: 600; margin-bottom: 6px; }
.vk-earn-note { font-size: 11px; color: var(--orange); margin: 8px 0; }

.vk-modal-wrap { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .2s; }
.vk-modal-wrap.open { opacity: 1; visibility: visible; }
.vk-modal { background: var(--surface); border-radius: var(--r-lg); width: 420px; max-width: 94vw; overflow: hidden; transform: translateY(12px); transition: transform .2s; box-shadow: var(--shadow-lg); }
.vk-modal-wrap.open .vk-modal { transform: none; }
.vk-modal-head { padding: 18px 22px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--border); }
.vk-modal-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.vk-modal-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vk-modal-body { padding: 18px 22px 22px; }
.vk-redeem-row { display: flex; justify-content: space-between; margin: 10px 0 14px; font-size: 13px; color: var(--ink2); }

.vk-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.vk-toast-item { background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: all .25s; }
.vk-toast-item.show { opacity: 1; transform: none; }
.vk-toast-item.green { background: var(--green); }

/* ============================================================
   RESPONSIVE (chrome only — page sections handle their own)
   ============================================================ */
@media (max-width: 991.98px) {
  .vk-topbar { padding: 0 14px; gap: 10px; }
}
@media (max-width: 575.98px) {
  .vk-topbar-sub { display: none; }              /* save space on phones */
  .vk-topbar-title { font-size: 16px; }
  .vk-content { padding: 16px 14px; }
  .vk-drawer { width: 100%; max-width: 100%; }
}

.badge-soft-blue{
  background: var(--blue-bg);
    color: var(--blue);
}
.badge-soft-gold{
    background: var(--gold-pale);
    color: var(--orange);
}
.badge-soft-green{
    background: var(--green-bg);
    color: var(--green);
}
.btn-outline-navy{
  font-size: 10.5px;
    padding: 4px 9px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink2);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
/* BADGES */
.successbadge{
   background: var(--green-bg);
    color: var(--green);
        font-weight: 600;
}
.warningbadge{
    background: var(--orange-bg);
    color: var(--orange);
        font-weight: 600;
}