/* ============================================================
   Voltage — Bakuzone storefront theme
   Drop-in stylesheet. Load AFTER the existing theme CSS so the
   overrides win, or paste the :root block + .bz-* rules into
   resources/views/themes/gameshop/partials/product-detail/styles.blade.php

   Class names match the ones already in the codebase (.bz-sect,
   .bz-payrow, .bz-step-prefix...). Everything new is prefixed .vz-.
   Every value here is lifted from the mockups, so a screen built
   with these classes matches the design without eyeballing.
   ============================================================ */

:root {
  /* base */
  --vz-bg:            #05070E;
  --vz-surface:       #0D1220;
  --vz-raised:        #151C31;
  --vz-raised-hover:  #1A2340;
  --vz-border:        #232D4B;
  --vz-border-strong: #3A487A;

  /* text */
  --vz-text:          #E9EFFF;
  --vz-text-soft:     #D6DFF5;
  --vz-text-body:     #B4C0DD;
  --vz-muted:         #8593B8;
  --vz-faint:         #5E6A90;
  --vz-on-accent:     #0A0800;

  /* signal */
  --vz-accent:        #FFC107;   /* the action. never anything else */
  --vz-accent-soft:   rgba(255,193,7,.10);
  --vz-accent-line:   rgba(255,193,7,.40);
  --vz-cta:           linear-gradient(180deg,#FFD84D,#FFA800);
  --vz-value:         #C6FF3D;   /* best value, verified, credit */
  --vz-value-soft:    rgba(198,255,61,.11);
  --vz-pending:       #F79009;
  --vz-danger:        #FF5C7A;
  --vz-danger-soft:   rgba(255,92,122,.12);

  /* type */
  --vz-head: 'Chakra Petch', system-ui, sans-serif;
  --vz-body: 'Barlow', system-ui, sans-serif;
  --vz-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* geometry — one cut, three sizes */
  --vz-cut:       10px;  /* cards, tiles */
  --vz-cut-sm:     9px;  /* pills, buttons */
  --vz-cut-lg:    16px;  /* hero blocks */

  /* spacing scale: 4 8 12 16 24 32 48 */
}

/* ---------- base ---------- */

body {
  background: var(--vz-bg);
  color: var(--vz-text);
  font-family: var(--vz-body);
  -webkit-font-smoothing: antialiased;
}

a       { color: var(--vz-accent); text-decoration: none; }
a:hover { color: #FFD65C; }

/* Every price, ID, order number and timestamp is mono.
   Monospaced numerals stop prices jittering in a scrolling list. */
.vz-num { font-family: var(--vz-mono); font-weight: 500; }

/* The corner cut. Apply to any surface. Do not round corners anywhere. */
.vz-cut     { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--vz-cut)),    calc(100% - var(--vz-cut)) 100%,    0 100%); }
.vz-cut-sm  { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--vz-cut-sm)), calc(100% - var(--vz-cut-sm)) 100%, 0 100%); }
.vz-cut-lg  { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--vz-cut-lg)), calc(100% - var(--vz-cut-lg)) 100%, 0 100%); }

/* ---------- existing codebase classes, restyled ---------- */

.bz-sect {
  background: var(--vz-surface);
  border: 1px solid var(--vz-border);
  border-radius: 0;
  padding: 18px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.bz-sect-h { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

/* Step heading: white text, amber numeral. 17px desktop, 16px mobile. */
.bz-h {
  font-family: var(--vz-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--vz-text);
}
.bz-step-prefix { color: var(--vz-accent); font-weight: 700; margin-right: 6px; }

.bz-note {
  margin-left: auto;
  font: 500 11px var(--vz-mono);
  color: var(--vz-faint);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Payment row. Reuse for anything gateway-like, including the wallet row. */
.bz-payrow {
  display: flex; align-items: center; gap: 12px;
  background: var(--vz-raised);
  border: 1px solid var(--vz-border);
  padding: 12px;
  min-height: 62px;          /* ≥44px tap target, with room for two lines */
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}
.bz-payrow:hover { border-color: var(--vz-border-strong); }
input.gateway-check:checked + .bz-payrow,
.bz-payrow.is-selected {
  background: var(--vz-accent-soft);
  border: 1.5px solid var(--vz-accent);
}
.bz-payrow.is-disabled { opacity: .55; cursor: default; pointer-events: none; }
.bz-payrow__name { font: 600 13.5px var(--vz-body); }
.bz-payrow__sub  { font: 500 11px var(--vz-mono); color: var(--vz-muted); margin-top: 1px; letter-spacing: .04em; text-transform: uppercase; }
.bz-payrow__logo { width: 36px; height: 36px; object-fit: contain; flex: none; }
.bz-payrow__tick { width: 18px; height: 18px; background: var(--vz-accent); color: var(--vz-bg);
                   font: 700 10px var(--vz-body); display: grid; place-items: center; flex: none; }
/* gateway rows when the wallet is paying in full */
.bz-payrow__veil { position: absolute; inset: 0; background: rgba(5,7,14,.62); pointer-events: none;
                   display: flex; align-items: center; justify-content: flex-end; padding: 0 12px;
                   font: 500 9.5px var(--vz-mono); color: var(--vz-faint); letter-spacing: .06em; }

/* ---------- package / denomination tile ---------- */

.vz-tile {
  position: relative;
  background: var(--vz-raised);
  border: 1px solid var(--vz-border);
  padding: 12px;
  min-height: 92px;
  display: flex; flex-direction: column;
  cursor: pointer;
}
.vz-tile:hover { background: var(--vz-raised-hover); border-color: var(--vz-border-strong); }
.vz-tile.is-selected { background: var(--vz-accent-soft); border: 1.5px solid var(--vz-accent); }

.vz-tile__qty    { font: 700 18px/1 var(--vz-head); }              /* the hero number */
.vz-tile__unit   { font: 600 10px var(--vz-body); color: var(--vz-muted); letter-spacing: .06em; }
.vz-tile__foot   { margin-top: auto; padding-top: 8px; }
.vz-tile__price  { font: 500 13px var(--vz-mono); }
.vz-tile__was    { font: 400 10px var(--vz-mono); color: var(--vz-faint); text-decoration: line-through; }
.vz-tile__save   { font: 500 10px var(--vz-mono); color: var(--vz-value); }
.vz-tile__points { font: 600 10.5px var(--vz-body); color: var(--vz-accent); margin-top: 5px; }
.vz-tile__best   { font: 500 9px var(--vz-mono); color: var(--vz-value); letter-spacing: .10em; margin-bottom: 3px; }
/* gift-card face value: three type styles in one line */
.vz-tile__face      { font: 700 20px/1 var(--vz-head); }
.vz-tile__face-cur  { font: 600 10px var(--vz-body); color: var(--vz-muted); letter-spacing: .06em; }

/* Grid: 5-up desktop, 2-up mobile. auto-fill keeps it fluid between. */
.vz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 10px; }

/* ---------- buttons ---------- */

.vz-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--vz-head); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 15px 24px; min-height: 48px; border: 0; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}
.vz-btn--primary   { background: var(--vz-cta); color: var(--vz-on-accent); }
.vz-btn--secondary { background: none; color: var(--vz-text); border: 1px solid var(--vz-border-strong); clip-path: none; }
.vz-btn--ghost     { background: none; color: var(--vz-accent); padding: 14px 6px; clip-path: none; letter-spacing: 0;
                     font-family: var(--vz-body); font-size: 13px; text-transform: none; }
.vz-btn--danger    { background: none; color: var(--vz-danger); border: 1px solid rgba(255,92,122,.5); clip-path: none; }
.vz-btn[disabled], .vz-btn--disabled { background: var(--vz-raised); color: var(--vz-faint); cursor: default; }
.vz-btn--lg { font-size: 15px; padding: 16px 28px; min-height: 52px; }

/* ---------- pills, badges, status ---------- */

.vz-pill {
  display: inline-flex; align-items: center;
  font: 500 11.5px var(--vz-mono);
  padding: 5px 9px; letter-spacing: .04em;
  background: var(--vz-raised); color: var(--vz-muted);
}
.vz-pill--accent  { background: var(--vz-accent-soft); color: var(--vz-accent); }
.vz-pill--value   { background: var(--vz-value-soft);  color: var(--vz-value); }
.vz-pill--outline { background: none; border: 1px solid var(--vz-accent-line); color: var(--vz-accent); padding: 4px 9px; }

/* Category tab. Active = solid amber fill + dark label — never a blended overlay,
   it has to be legible on a bright phone in daylight. 46px tall. */
.vz-tab {
  flex: none; display: inline-flex; align-items: center;
  font: 600 12px var(--vz-head); text-transform: uppercase; letter-spacing: .05em;
  color: var(--vz-text-body); background: var(--vz-raised);
  padding: 15px 16px; min-height: 46px; white-space: nowrap; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.vz-tab:hover      { color: var(--vz-text); background: var(--vz-raised-hover); }
.vz-tab.is-active  { color: var(--vz-bg); background: var(--vz-accent); font-weight: 700; }
.vz-tab__count     { color: var(--vz-faint); margin-left: 4px; }
.vz-tab.is-active .vz-tab__count { color: inherit; opacity: .55; }
.vz-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.vz-tabs::-webkit-scrollbar { display: none; }

/* Status pill — one per order state */
.vz-status { font: 500 10px var(--vz-mono); padding: 5px 8px; letter-spacing: .06em; }
.vz-status--delivered  { color: var(--vz-value);   background: var(--vz-value-soft); }
.vz-status--processing { color: var(--vz-pending); background: rgba(247,144,9,.13); }
.vz-status--pending    { color: var(--vz-muted);   background: var(--vz-raised); }
.vz-status--failed     { color: var(--vz-danger);  background: var(--vz-danger-soft); }

/* ---------- inputs ---------- */

.vz-label { display: block; font: 500 10px var(--vz-mono); color: var(--vz-muted);
            letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.vz-input {
  width: 100%; background: var(--vz-bg); border: 1px solid var(--vz-border);
  padding: 13px 12px; min-height: 50px;
  color: var(--vz-text); font: 500 15px var(--vz-mono); outline: none;
}
.vz-input::placeholder { color: var(--vz-faint); }
.vz-input:focus        { border-color: var(--vz-accent); box-shadow: 0 0 0 3px rgba(255,193,7,.18); }
.vz-input.is-invalid   { border-color: var(--vz-danger); }
.vz-input--text        { font: 400 14px var(--vz-body); }
.vz-hint  { font: 400 12.5px/1.6 var(--vz-body); color: var(--vz-muted); margin-top: 8px; }
.vz-error { font: 500 11.5px var(--vz-mono); color: var(--vz-danger); margin-top: 7px; letter-spacing: .04em; }
.vz-ok    { font: 500 12px var(--vz-mono); color: var(--vz-value); }

/* checkbox — 22px box, 44px hit area via the row it sits in */
.vz-check { width: 22px; height: 22px; border: 1.5px solid var(--vz-border-strong); flex: none;
            display: grid; place-items: center; font-size: 12px; color: var(--vz-accent); }
.vz-check.is-checked { border-color: var(--vz-accent); background: var(--vz-accent-soft); }

/* ---------- notices ---------- */

.vz-notice { display: flex; gap: 10px; align-items: center;
             background: var(--vz-raised); border-left: 2px solid var(--vz-border);
             padding: 11px 13px; font: 400 12.5px/1.55 var(--vz-body); color: var(--vz-muted); }
.vz-notice--value   { border-left-color: var(--vz-value); color: var(--vz-text-soft); }
.vz-notice--pending { border-left-color: var(--vz-pending); }
.vz-notice--danger  { border-left-color: var(--vz-danger); }
.vz-notice--accent  { border-left-color: var(--vz-accent); }

/* ---------- summary rail (desktop) ---------- */

.vz-rail { position: sticky; top: 78px; width: 340px; flex: none;
           background: var(--vz-surface); border: 1px solid var(--vz-border);
           clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.vz-rail__head { padding: 15px 16px; border-bottom: 1px solid var(--vz-border);
                 font: 700 13px var(--vz-head); text-transform: uppercase; letter-spacing: .08em; }
.vz-rail__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.vz-row  { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.vz-row__k { font: 500 11px var(--vz-mono); color: var(--vz-muted); letter-spacing: .05em; text-transform: uppercase; }
.vz-row__v { font: 600 13px var(--vz-body); text-align: right; }
.vz-total  { font: 700 25px var(--vz-head); }

/* ---------- sticky bottom bar (mobile only) ---------- */

.vz-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
          background: rgba(13,18,32,.97); backdrop-filter: blur(14px);
          border-top: 1px solid var(--vz-border);
          padding: 11px 14px 16px; display: flex; align-items: center; gap: 12px; }
.vz-bar__total { font: 700 21px/1 var(--vz-head); }
.vz-bar__sub   { font: 500 10.5px var(--vz-mono); color: var(--vz-muted); letter-spacing: .04em;
                 margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Reserve the bar's height at the end of the page or it covers the last row. */
.vz-bar-spacer { height: 96px; }
@media (min-width: 920px) { .vz-bar, .vz-bar-spacer { display: none; } }
@media (max-width: 919px) { .vz-rail { display: none; } }

/* ---------- ledger table ---------- */

.vz-table { border: 1px solid var(--vz-border); }
.vz-table__head, .vz-table__row { display: grid; gap: 14px; padding: 13px 16px; align-items: center; }
.vz-table__head { background: var(--vz-surface); border-bottom: 1px solid var(--vz-border);
                  font: 500 10px var(--vz-mono); color: var(--vz-muted); letter-spacing: .09em; padding: 11px 16px; }
.vz-table__row  { border-bottom: 1px solid var(--vz-raised); }
.vz-table__row:last-child { border-bottom: 0; }
.vz-debit  { font: 500 12.5px var(--vz-mono); color: var(--vz-danger); text-align: right; }
.vz-credit { font: 500 12.5px var(--vz-mono); color: var(--vz-value);  text-align: right; }
.vz-balance{ font: 400 12px var(--vz-mono);   color: var(--vz-muted);  text-align: right; }

/* ---------- skeletons ---------- */

/* Match the real element's box exactly — same ratio, same cut — so nothing
   reflows when the image lands on 3G. No shimmer: it costs paint on cheap phones. */
.vz-skel      { background: var(--vz-surface); }
.vz-skel--alt { background: var(--vz-raised); }
.vz-skel-line { height: 12px; background: var(--vz-raised); }
.vz-skel-tile { width: 100%; aspect-ratio: 1; background: var(--vz-surface);
                clip-path: polygon(0 0, 100% 0, 100% 84%, 84% 100%, 0 100%); }

/* ---------- utilities ---------- */

.vz-hero { position: relative; display: flex; gap: 20px; align-items: flex-start;
           background: linear-gradient(100deg, var(--vz-surface), var(--vz-bg) 72%);
           border: 1px solid var(--vz-border); padding: 20px;
           clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.vz-hero__art { width: clamp(80px, 17vw, 124px); aspect-ratio: 1; object-fit: cover; flex: none;
                border: 1px solid #303C63;
                clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%); }
.vz-h1 { margin: 0; font: 700 clamp(22px, 3.6vw, 38px)/1.04 var(--vz-head);
         text-transform: uppercase; letter-spacing: .005em; text-wrap: pretty; }
.vz-divider { height: 1px; background: var(--vz-border); }
.vz-tap { min-height: 44px; display: inline-flex; align-items: center; }  /* wrap any small link in this */

@keyframes vz-pulse { 0%,100% { opacity: .5 } 50% { opacity: 1 } }
.vz-pulse { animation: vz-pulse 1.4s ease-in-out infinite; }
