:root {
  --black: #000;
  --panel: #0f0f0f;
  --panel-top: #171512;
  --gold: #f7b714;
  --gold-bright: #ffc31d;
  --text: #fff;
  --muted: #b9b9b9;
  --border: rgba(255,255,255,.085);
  --gold-border: rgba(247,183,20,.18);
}

* { box-sizing: border-box; }
html { background: #000; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #000;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.narrow-shell { width: min(900px, calc(100% - 32px)); margin-inline: auto; }
.page-view { position: relative; background: #000; }

/* Shared top login — intentionally sparse like the Tebex theme. */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 55px;
  z-index: 50;
  pointer-events: none;
}
.login-link {
  pointer-events: auto;
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(380px);
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

.background-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.18) 0%, rgba(0,0,0,.28) 38%, rgba(0,0,0,.90) 84%, #000 100%),
    url('assets/hero-bg-v5.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  pointer-events: none;
}

/* HOME */
.home-view {
  min-height: calc(100vh - 28px);
  padding-bottom: 28px;
}
.home-background { height: 356px; }
.home-content {
  position: relative;
  z-index: 2;
  min-height: 575px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-logo {
  position: absolute;
  top: 85px;
  width: 220px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.68));
}
.welcome-card {
  position: absolute;
  top: 247px;
  width: min(635px, calc(100% - 32px));
  min-height: 228px;
  padding: 35px 54px 30px;
  text-align: center;
  border: 1px solid rgba(255,190,38,.075);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(24,24,24,.96), rgba(10,10,10,.98));
  box-shadow: 0 14px 35px rgba(0,0,0,.42);
}
.small-kicker {
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.white-kicker { color: #ddd; }
.gold-kicker { color: var(--gold); }
.welcome-card h1 {
  margin: 14px 0 18px;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.welcome-card p {
  max-width: 500px;
  margin: 0 auto;
  color: #c8c8c8;
  font-size: 11px;
  line-height: 1.55;
}
.primary-button,
.secondary-button {
  border-radius: 7px;
  font-weight: 800;
  transition: filter .15s ease, transform .15s ease;
}
.primary-button {
  border: 0;
  color: #111;
  background: linear-gradient(180deg, #ffc627 0%, #f3b30e 100%);
}
.primary-button:hover,
.secondary-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.welcome-card .primary-button {
  width: 103px;
  height: 35px;
  margin-top: 22px;
  font-size: 11px;
}
.account-badge {
  margin: 12px auto 0;
  width: fit-content;
  max-width: 100%;
  color: #d6f7df;
  font-size: 10px;
  border: 1px solid rgba(74,196,113,.24);
  background: rgba(74,196,113,.09);
  border-radius: 999px;
  padding: 5px 9px;
}
.home-info-bar {
  position: relative;
  z-index: 2;
  min-height: 40px;
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.02);
}
.info-bar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #a5a5a5;
  font-size: 7.2px;
}
.payment-badges {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.payment-logo-box,
.payment-logo-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.payment-logo-box--white {
  height: 18px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #fff;
}
.payment-logo-box img,
.payment-logo-plain img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.apple-pay-logo { width: 34px; }
.google-pay-logo { width: 36px; }
.mastercard-logo { width: 24px; height: 18px; }
.visa-logo { width: 35px; height: 18px; }
.amex-logo { width: 23px; height: 18px; }
.visa-logo img { filter: brightness(0) invert(1); }

/* STORE/CATEGORY */
.store-view { min-height: 100vh; padding-bottom: 60px; }
.store-background { height: 405px; }
.store-top {
  position: relative;
  z-index: 2;
  height: 414px;
}
.logo-home-button {
  position: absolute;
  top: 67px;
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  padding: 0;
}
.store-logo {
  width: 272px;
  filter: drop-shadow(0 5px 11px rgba(0,0,0,.72));
}
.category-title-card {
  position: absolute;
  top: 278px;
  left: 0;
  width: 100%;
  height: 136px;
  border: 1px solid rgba(255,190,38,.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22,22,22,.96), rgba(11,11,11,.98));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
}
.category-title-card .small-kicker { margin-bottom: 15px; font-size: 11px; }
.category-title-card h2 {
  margin: 0;
  color: #fff;
  font-size: 39px;
  line-height: 1;
  letter-spacing: -.025em;
}
.store-content { position: relative; z-index: 2; }
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0 0;
}
.category-tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(20,20,20,.88);
  color: #aaa;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 700;
}
.category-tab.active { color: #111; border-color: transparent; background: var(--gold); }
.status-text {
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.package-card {
  min-height: 316px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 4%, rgba(86,66,24,.18), transparent 42%),
    linear-gradient(180deg, #181715 0%, #0d0d0d 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.package-image-wrap {
  height: 185px;
  padding: 22px 26px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.package-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.package-body { padding: 5px 24px 20px; }
.package-name {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 17px;
  line-height: 1.24;
  font-weight: 800;
}
.package-bottom {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}
.price {
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.package-card .primary-button {
  height: 40px;
  width: 100%;
  font-size: 14px;
}
.empty-state {
  margin-top: 30px;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0d0d0d;
}
.empty-state p { color: var(--muted); }

/* TEBEX lower strip */
.tebex-strip {
  min-height: 28px;
  background: #080808;
  border-top: 1px solid rgba(255,255,255,.025);
  color: #a6a6a6;
}
.home-view + .tebex-strip { position: relative; }
.tebex-strip-inner {
  min-height: 28px;
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 6.5px;
}
.tebex-brand { color: #999; font-size: 11px; }
.tebex-icon { font-size: 12px; }
.tebex-copy { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legal-links { display: flex; gap: 13px; white-space: nowrap; }
.legal-links a { color: #b5b5b5; }

/* CART — only appears after add-to-cart so it does not alter the Tebex-like page. */
.floating-cart {
  position: fixed;
  right: 22px;
  bottom: 50px;
  z-index: 60;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  padding: 11px 15px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.floating-cart span { margin-left: 6px; }
.cart-drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.cart-drawer.open { pointer-events: auto; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.68); opacity: 0; transition: opacity .18s ease; }
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 100%);
  height: 100%;
  padding: 24px;
  background: #0a0a0a;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .18s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open .cart-backdrop { opacity: 1; }
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; gap: 14px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.cart-header h3 { margin: 6px 0 0; font-size: 28px; }
.close-btn { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 7px; background: #151515; color: #fff; font-size: 24px; }
.cart-items { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; overflow: auto; }
.cart-empty { color: #aaa; padding: 18px 0; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #111; }
.cart-item-img { width: 70px; height: 70px; object-fit: contain; }
.cart-item-name { font-size: 13px; font-weight: 800; }
.cart-item-meta { margin-top: 5px; color: #aaa; font-size: 11px; }
.remove-btn { border: 0; background: transparent; color: #ff7676; font-size: 11px; }
.coupon-box { margin-top: auto; padding-top: 10px; }
.coupon-box label { display: block; color: #aaa; font-size: 11px; margin-bottom: 7px; }
.coupon-row { display: flex; gap: 7px; }
.coupon-row input { flex: 1; min-width: 0; height: 39px; border: 1px solid var(--border); border-radius: 7px; background: #111; color: #fff; padding: 0 10px; }
.secondary-button { border: 1px solid var(--border); color: #fff; background: #171717; padding: 0 12px; }
.coupon-status { min-height: 20px; color: #aaa; font-size: 10px; margin-top: 6px; }
.cart-summary { padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.cart-summary > div { display: flex; justify-content: space-between; color: #aaa; font-size: 12px; }
.cart-summary strong { color: #fff; }
.cart-summary .total-row { color: #fff; font-weight: 800; font-size: 14px; }
.checkout-button { width: 100%; height: 42px; margin-top: 15px; }
.checkout-note { color: #888; font-size: 10px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 48px; transform: translate(-50%,15px); opacity: 0; z-index: 100; border: 1px solid var(--border); border-radius: 999px; background: #111; color: #fff; padding: 9px 13px; font-size: 11px; transition: .18s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 980px) {
  .login-link { right: 18px; left: auto; transform: none; }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .narrow-shell { width: min(100% - 22px, 900px); }
  .home-view { min-height: auto; padding-bottom: 0; }
  .home-background { height: 360px; }
  .home-content { min-height: 560px; }
  .home-logo { top: 76px; width: 205px; }
  .welcome-card { top: 235px; padding: 28px 22px 24px; min-height: 235px; }
  .welcome-card h1 { font-size: 25px; }
  .welcome-card p { font-size: 10.5px; }
  .info-bar-inner { padding: 10px 0; flex-direction: column; text-align: center; }
  .tebex-strip-inner { grid-template-columns: 1fr; padding: 9px 0; text-align: center; }
  .tebex-copy { white-space: normal; }
  .legal-links { justify-content: center; }
  .store-background { height: 345px; }
  .store-top { height: 355px; }
  .logo-home-button { top: 70px; }
  .store-logo { width: 225px; }
  .category-title-card { top: 240px; height: 115px; }
  .category-title-card h2 { font-size: 28px; }
  .package-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .package-card { min-height: 0; }
  .package-image-wrap { height: 205px; }
}

/* V6 — fixed cinematic background + glass/sliding foreground */
body {
  background: #000;
}

.fixed-backdrop,
.fixed-backdrop-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.fixed-backdrop {
  z-index: 0;
  background-color: #000;
  background-image: url('assets/hero-bg-v5.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  transform: scale(1.015);
  transform-origin: center top;
  will-change: transform;
}

.fixed-backdrop-shade {
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.08) 0%,
      rgba(0,0,0,.12) 26%,
      rgba(0,0,0,.36) 58%,
      rgba(0,0,0,.74) 86%,
      rgba(0,0,0,.94) 100%);
}

#siteApp,
.cart-drawer,
.floating-cart,
.toast {
  position: relative;
  z-index: 2;
}

.background-stage {
  display: none !important;
}

.page-view,
.home-view,
.store-view,
.store-content,
.home-content {
  background: transparent !important;
}

.home-view {
  min-height: 100vh;
}

.home-content {
  min-height: 640px;
}

.home-info-bar,
.tebex-strip {
  background: rgba(6,6,6,.62) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.welcome-card,
.category-title-card,
.package-card,
.empty-state {
  background:
    linear-gradient(180deg, rgba(18,18,18,.64), rgba(8,8,8,.54)) !important;
  border-color: rgba(255,255,255,.11) !important;
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  box-shadow:
    0 16px 42px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.welcome-card {
  background:
    linear-gradient(180deg, rgba(19,19,19,.70), rgba(7,7,7,.60)) !important;
}

.store-view {
  min-height: 135vh;
  padding-bottom: 110px;
}

.store-top {
  height: 430px;
}

.logo-home-button {
  top: 78px;
}

.store-logo {
  width: 292px;
}

.category-title-card {
  top: 286px;
  height: 142px;
}

.package-grid {
  margin-top: 34px;
  gap: 22px;
}

.package-card {
  transform: translateY(26px);
  opacity: 0;
  transition:
    transform .62s cubic-bezier(.22,.61,.36,1),
    opacity .62s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.package-card.reveal-visible {
  transform: translateY(0);
  opacity: 1;
}

.package-card:hover {
  border-color: rgba(247,183,20,.28) !important;
  box-shadow:
    0 22px 52px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.package-image-wrap {
  background: transparent;
}

.topbar {
  position: fixed;
  z-index: 55;
}

.login-link {
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}

@media (max-width: 980px) {
  .fixed-backdrop {
    background-size: auto 72vh;
    background-position: center top;
  }
}

@media (max-width: 650px) {
  .fixed-backdrop {
    background-size: auto 62vh;
    background-position: center top;
  }
  .store-top { height: 372px; }
  .category-title-card { top: 252px; height: 118px; }
  .logo-home-button { top: 76px; }
  .store-logo { width: 230px; }
}

/* V7 — home is a locked one-screen landing page; only the store scrolls. */
body.home-mode {
  height: 100dvh;
  overflow: hidden;
}

body.store-mode {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body.home-mode #siteApp {
  height: 100dvh;
  overflow: hidden;
}

body.home-mode main,
body.home-mode .home-view {
  height: 100dvh;
  min-height: 0 !important;
  overflow: hidden;
}

body.home-mode .home-content {
  height: calc(100dvh - 68px);
  min-height: 0 !important;
}

/* Copyright/payment bar is part of the fixed home footer. */
body.home-mode .home-info-bar {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 45;
  min-height: 40px;
}

/* Tebex legal strip is the bottom-most fixed footer row on home. */
body.home-mode .tebex-strip {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 46;
  min-height: 28px;
}

/* On the store page the footer belongs to the document and scrolls into view normally. */
body.store-mode .tebex-strip {
  position: relative !important;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
}

/* Keep enough room above the fixed home footer at short desktop heights. */
@media (min-width: 651px) and (max-height: 760px) {
  body.home-mode .home-logo {
    top: 62px;
    width: 190px;
  }
  body.home-mode .welcome-card {
    top: 205px;
    transform: scale(.92);
    transform-origin: top center;
  }
}

@media (max-width: 650px) {
  body.home-mode {
    min-height: 100dvh;
  }
  body.home-mode .home-content {
    height: calc(100dvh - 112px);
  }
  body.home-mode .home-info-bar {
    bottom: 44px;
    min-height: 68px;
  }
  body.home-mode .tebex-strip {
    min-height: 44px;
  }
  body.home-mode .tebex-strip-inner {
    min-height: 44px;
    padding: 5px 0;
  }
  body.home-mode .tebex-copy {
    display: none;
  }
}

/* V8 — both footer rows stay pinned on HOME and SHOP. */
.site-info-bar {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 45;
  min-height: 40px;
  background: rgba(6,6,6,.72) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tebex-strip {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 46 !important;
  min-height: 28px;
}

/* Override the old V7 store-only scrolling footer rule. */
body.store-mode .tebex-strip,
body.home-mode .tebex-strip {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 46 !important;
}

body.store-mode .site-info-bar,
body.home-mode .site-info-bar {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 45;
}

/* Shop content scrolls behind the fixed footer without its last row being covered. */
body.store-mode .store-view {
  padding-bottom: 145px !important;
}

body.store-mode .floating-cart {
  bottom: 86px;
}

@media (max-width: 650px) {
  .site-info-bar {
    bottom: 44px;
    min-height: 68px;
  }
  .tebex-strip {
    min-height: 44px;
  }
  .tebex-strip-inner {
    min-height: 44px;
    padding: 5px 0;
  }
  .tebex-copy {
    display: none;
  }
  body.store-mode .store-view {
    padding-bottom: 170px !important;
  }
  body.store-mode .floating-cart {
    bottom: 126px;
  }
}

/* V13 — ONLY the Tebex-style account/login header UI. Store layout remains V9. */
.header-auth {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(315px);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
}
.header-auth .login-link {
  position: static;
  transform: none;
  top: auto;
  left: auto;
}
.account-button,
.header-cart-button {
  height: 27px;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.account-button {
  min-width: 112px;
  max-width: 180px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  overflow: hidden;
  color: #fff;
  background: rgba(66,66,66,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.account-user-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: inline-flex;
}
.account-user-icon svg { width: 12px; height: 12px; fill: #c7c7c7; }
.account-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.account-logout-text { display: none; }
.account-button:hover .account-name { display: none; }
.account-button:hover .account-logout-text { display: inline; }
.header-cart-button {
  padding: 0 11px;
  color: #111;
  background: var(--gold);
}
.header-cart-button span { margin-left: 3px; }

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
.login-modal.open { opacity: 1; pointer-events: auto; }
.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}
.login-modal-card {
  position: relative;
  z-index: 1;
  width: min(438px, calc(100% - 32px));
  min-height: 270px;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
  padding: 88px 48px 45px;
  text-align: center;
}
.login-modal-title {
  margin-bottom: 22px;
  color: #eee;
  font-size: 17px;
  font-weight: 800;
}
.login-modal-close {
  position: absolute;
  top: 11px;
  right: 15px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #bfbfbf;
  font-size: 24px;
  line-height: 1;
}
.fivem-login-button {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: #0d0d0d;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}
.fivem-login-button:disabled { opacity: .72; cursor: wait; }
.fivem-mark {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #eee;
  background: #222;
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
}

@media (max-width: 980px) {
  .header-auth { right: 18px; left: auto; transform: none; }
}

/* V14 — HOME sizing only. Keep store, login, cart and footer untouched. */
@media (min-width: 651px) {
  /* Match the store logo exactly: same position and same size. */
  body.home-mode .home-logo {
    top: 78px;
    width: 292px;
  }

  /* Make the home welcome panel larger without changing its mechanics. */
  body.home-mode .welcome-card {
    top: 265px;
    width: min(760px, calc(100% - 32px));
    min-height: 270px;
    padding: 42px 64px 34px;
  }

  body.home-mode .welcome-card h1 {
    margin: 16px 0 20px;
    font-size: 34px;
  }

  body.home-mode .welcome-card p {
    max-width: 610px;
    font-size: 13px;
    line-height: 1.6;
  }

  body.home-mode .welcome-card .primary-button {
    width: 122px;
    height: 42px;
    margin-top: 24px;
    font-size: 13px;
  }
}

/* Preserve a usable one-screen layout on shorter desktop displays. */
@media (min-width: 651px) and (max-height: 760px) {
  body.home-mode .home-logo {
    top: 58px;
    width: 250px;
  }
  body.home-mode .welcome-card {
    top: 220px;
    width: min(720px, calc(100% - 32px));
    min-height: 245px;
    padding: 34px 54px 28px;
    transform: none;
  }
  body.home-mode .welcome-card h1 { font-size: 31px; }
}

/* V15 — footer sizing only. No store/login/cart/layout logic changed. */
.info-bar-inner {
  min-height: 52px;
  font-size: 10px;
}
.payment-badges { gap: 11px; }
.payment-logo-box--white { height: 24px; padding: 3px 7px; }
.apple-pay-logo { width: 45px; }
.google-pay-logo { width: 48px; }
.mastercard-logo { width: 32px; height: 24px; }
.visa-logo { width: 47px; height: 24px; }
.amex-logo { width: 31px; height: 24px; }

.site-info-bar {
  bottom: 38px !important;
  min-height: 52px !important;
}
body.store-mode .site-info-bar,
body.home-mode .site-info-bar {
  bottom: 38px !important;
}

.tebex-strip,
body.store-mode .tebex-strip,
body.home-mode .tebex-strip {
  min-height: 38px !important;
}
.tebex-strip-inner {
  min-height: 38px !important;
  grid-template-columns: 78px 1fr auto;
  gap: 16px;
  font-size: 9px;
}
.tebex-brand { font-size: 15px; }
.tebex-icon { font-size: 16px; }
.legal-links { gap: 17px; font-size: 9px; }

body.store-mode .store-view {
  padding-bottom: 175px !important;
}
body.store-mode .floating-cart {
  bottom: 108px;
}

@media (max-width: 650px) {
  .site-info-bar {
    bottom: 50px !important;
    min-height: 76px !important;
  }
  .info-bar-inner {
    min-height: 76px;
    font-size: 9.5px;
  }
  .tebex-strip,
  body.store-mode .tebex-strip,
  body.home-mode .tebex-strip {
    min-height: 50px !important;
  }
  .tebex-strip-inner {
    min-height: 50px !important;
    padding: 6px 0;
    font-size: 8px;
  }
  .tebex-brand { font-size: 14px; }
  .tebex-icon { font-size: 15px; }
  .legal-links { font-size: 8px; }
  body.store-mode .store-view {
    padding-bottom: 205px !important;
  }
  body.store-mode .floating-cart {
    bottom: 146px;
  }
}

/* V17 — legal links: force clickable above all fixed footer layers. */
.tebex-strip { pointer-events: auto !important; }
.tebex-strip-inner { position: relative; z-index: 1000; pointer-events: auto !important; }
.legal-links { position: relative; z-index: 1001; pointer-events: auto !important; }
.legal-links a { position: relative; z-index: 1002; pointer-events: auto !important; cursor: pointer; }

/* V18 — footer is outside the overflow-locked app shell.
   These rules only guarantee the legal links receive clicks on HOME and SHOP. */
.site-info-bar,
.tebex-strip {
  pointer-events: auto !important;
}
.tebex-strip {
  isolation: isolate;
}
.legal-links,
.legal-links a {
  pointer-events: auto !important;
}


/* V20 — cart overlay fix only.
   V6's shared layering rule accidentally changed .cart-drawer from fixed to relative,
   so clicking Kosár added the .open class but the drawer could not appear as an overlay. */
.cart-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 120 !important;
}
.floating-cart {
  position: fixed !important;
  z-index: 70 !important;
}

/* V21 — no numeric cart badges; package button reflects basket membership. */
#cartCount,
#headerCartCount {
  display: none !important;
}
.add-btn.in-cart,
.add-btn.in-cart:disabled {
  opacity: 0.78;
  cursor: default;
  filter: none;
}

/* V22 — editable basket quantity; summary shows only the final total. */
.cart-item-main { min-width: 0; }

.qty-control {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255,255,255,.035);
}

.qty-btn {
  width: 34px;
  height: 32px;
  border: 0;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.qty-btn:hover { background: rgba(255,255,255,.09); }

.qty-value {
  min-width: 38px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border-left: 1px solid rgba(255,255,255,.08);
  border-right: 1px solid rgba(255,255,255,.08);
}

.cart-summary .total-row {
  font-size: 20px;
  font-weight: 900;
}
