@font-face { font-family: "STS Pixel"; src: url("/assets/card-font.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #0c0e10;
  --surface: #17191c;
  --surface-2: #1d2024;
  --surface-dark: #101214;
  --border: #2b2f34;
  --text: #f2f2f2;
  --text-2: #c8ccd1;
  --muted: #9399a1;
  --gold: #f2b759;
  --gold-2: #ffd080;
  --green: #73b82c;
  --wrap: 1450px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text-2); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
.wrap { width: min(calc(100% - 38px), var(--wrap)); margin-inline: auto; }
.pixel { font-family: "STS Pixel", ui-monospace, monospace; letter-spacing: .035em; }

.topbar { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--border); background: rgba(12,14,16,.95); backdrop-filter: blur(14px); }
.topbar-inner { min-height: 72px; display: grid; grid-template-columns: 155px minmax(0,1fr) auto; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 132px; height: 50px; object-fit: contain; object-position: left center; }
.category-nav { display: flex; justify-content: center; gap: 3px; }
.category-nav a { position: relative; padding: 11px 10px; color: #aeb3ba; text-decoration: none; font-size: 13px; font-weight: 750; }
.category-nav a:hover, .category-nav a.active { color: #fff; }
.category-nav a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: var(--gold); }
.actions { display: flex; align-items: center; gap: 7px; }
.currency-control { position: relative; display: inline-flex; }
.currency-control select { min-height: 39px; padding: 0 30px 0 12px; border: 1px solid var(--border); border-radius: 5px; background: #15171a; color: #d7d9dc; cursor: pointer; font-size: 12px; font-weight: 750; }
.cart { min-height: 39px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid #8c6429; border-radius: 5px; background: var(--gold); color: #201507; text-decoration: none; font-size: 12px; font-weight: 900; }

.sale-section { padding: 30px 0 0; }
.sale-banner { position: relative; isolation: isolate; min-height: 390px; display: grid; place-items: center; overflow: hidden; border: 2px solid #2b345a; background: #100d17 url("/assets/sale-banner.jpg") center 46% / cover no-repeat; box-shadow: 0 18px 46px rgba(0,0,0,.42); }
.sale-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,7,12,.46), rgba(8,7,12,.28)), linear-gradient(0deg, rgba(8,7,10,.55), transparent 60%); }
.sale-copy { width: min(760px, calc(100% - 32px)); padding: 34px 20px; text-align: center; text-shadow: 0 4px 18px #000; }
.sale-kicker, .sale-countdown-label, .sale-date { color: #f4f4f5; font-size: 11px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.sale-copy h1 { margin: 9px 0 20px; color: #ffd17b; font-size: clamp(42px,7vw,78px); line-height: 1; }
.sale-countdown-label { margin-bottom: 7px; }
.sale-countdown { display: block; color: #fff; font-size: clamp(24px,4vw,45px); letter-spacing: .04em; }
.sale-date { margin-top: 12px; color: #ffd17b; }

.store-main { padding: 42px 0 68px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { margin: 0; color: #fff; font-size: clamp(30px,4vw,46px); }
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.category-card { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; overflow: hidden; padding: 28px; border: 1px solid var(--border); background: #191b1e; color: inherit; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.category-card:hover { transform: translateY(-3px); border-color: #41464d; background: #111315; }
.category-card h3 { margin: 0; color: var(--gold-2); font-size: 22px; font-weight: 650; }
.category-art { width: 165px; height: 165px; object-fit: contain; filter: drop-shadow(0 13px 18px rgba(0,0,0,.62)); transition: transform .18s ease; }
.category-art.pixel-art { image-rendering: pixelated; }
.category-art.rank-art { width: 205px; height: 190px; }
.category-art.pet-art { width: 188px; height: 165px; }
.category-card:hover .category-art { transform: scale(1.055); }
.store-info { max-width: 980px; margin: 54px auto 0; }
.store-info section + section { margin-top: 33px; }
.store-info h2 { margin: 0 0 8px; color: #fff; font-size: 24px; }
.store-info p { margin: 5px 0; font-size: 14px; line-height: 1.55; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 35px; height: 3px; background: var(--gold); }
.page-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--border); background: #101214; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--gold-2); text-decoration: none; }
.page-hero h1 { margin: 0 0 17px; color: #fff; font-size: clamp(38px,5vw,60px); line-height: 1; }
.page-hero p { max-width: 720px; margin: 14px 0 0; line-height: 1.55; }
.currency-note { color: var(--muted); font-size: 12px; }
.rank-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.mode-tabs, .plan-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.mode-tabs button, .plan-tabs button { padding: 9px 14px; border: 1px solid var(--border); border-radius: 4px; background: #191b1e; color: #aeb3ba; cursor: pointer; font-size: 12px; font-weight: 800; }
.mode-tabs button:hover, .plan-tabs button:hover { background: #111315; color: #fff; }
.mode-tabs button.active, .plan-tabs button.active { border-color: #9e742e; color: var(--gold-2); background: #121416; }
.mode-tabs button:disabled { opacity: .38; cursor: not-allowed; }

.product-section { padding: 36px 0 65px; }
.catalog-meta { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 17px; color: var(--muted); font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; align-items: stretch; }
.product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 12px 28px rgba(0,0,0,.22); transition: background .18s ease, border-color .18s ease; }
.product-card:hover { border-color: #40454c; background: #121416; }
.product-art-wrap { position: relative; height: 215px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border); background: #141619; }
.product-card:hover .product-art-wrap { background: #0f1113; }
.product-art-wrap img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: cover !important; object-position: center !important; display: block; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); transition: transform .28s cubic-bezier(.4,0,.2,1); }
.product-card:hover .product-art-wrap img:not(.pixel-art) { transform: scale(1.04); }
.product-art-wrap img.pixel-art { width: 72% !important; height: 72% !important; max-width: 72% !important; max-height: 72% !important; object-fit: contain !important; image-rendering: pixelated; margin: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.7)); }
.tag { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 5px 8px; border: 1px solid #8c6429; border-radius: 3px; background: #19140d; color: var(--gold-2); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 19px; }
.product-body h2 { margin: 0 0 8px; color: #fff; font-size: 19px; line-height: 1.2; }
.product-body > p { margin: 10px 0 15px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.mode-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.mode-chips span { padding: 3px 6px; border: 1px solid #30343a; border-radius: 3px; color: #abb0b7; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.perk-details { margin: 0 0 16px; color: #c0c4c9; font-size: 12px; }
.perk-details summary { color: var(--gold-2); cursor: pointer; font-weight: 800; }
.perk-details ul { display: grid; gap: 7px; margin: 11px 0 0; padding-left: 17px; line-height: 1.4; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border); }
.price { display: grid; gap: 1px; }
.regular-price { color: var(--muted); font-size: 11px; text-decoration: line-through; }
.sale-price { color: #fff; font-size: 21px; font-weight: 850; }
.buy-button { min-width: 76px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border: 1px solid #8c6429; border-radius: 4px; background: var(--gold); color: #201507; text-decoration: none; font-size: 12px; font-weight: 900; }
.buy-button:hover { background: #ffd080; }
.gem-grid .product-card { min-height: 410px; }

.rank-section { padding: 38px 0 68px; }
.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .rank-grid { grid-template-columns: 1fr; }
}

.compare { overflow-x: auto; border: 1px solid var(--border); background: var(--surface); }
.rank-compare table { width: 100%; min-width: 1140px; table-layout: fixed; border-collapse: collapse; }
.rank-compare th, .rank-compare td { padding: 13px 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; font-size: 11.5px; line-height: 1.35; }
.rank-compare tr > :first-child { width: 220px; position: sticky; left: 0; z-index: 3; background: #17191c; text-align: left; color: #e0e2e5; font-weight: 800; }
.rank-compare tbody tr:hover th, .rank-compare tbody tr:hover td { background: #0e1012; }
.rank-compare thead th { padding: 0; vertical-align: top; background: #191b1e; }
.rank-compare thead .feature-head { padding: 18px; color: #fff; font-family: "STS Pixel", ui-monospace, monospace; font-size: 17px; }
.rank-head { min-height: 500px; display: flex; flex-direction: column; align-items: center; padding: 18px 15px; }
.rank-head img { width: 170px; height: 170px; object-fit: cover; border: 1px solid #363a40; border-radius: 6px; }
.rank-head h2 { margin: 15px 0 8px; color: var(--gold-2); font-size: 22px; }
.rank-head p { min-height: 135px; margin: 0 0 12px; color: #b7bbc1; font-size: 11px; line-height: 1.45; font-weight: 450; }
.rank-price { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: auto; margin-bottom: 12px; }
.prefix-badge { width: 92px; height: 33px; margin: auto; object-fit: contain; image-rendering: pixelated; }
.mark { color: var(--green); font-size: 18px !important; font-weight: 900; }
.all-perks { min-width: 1140px; }
.all-perks > summary { padding: 17px; border-bottom: 1px solid var(--border); background: #121416; color: #f2f2f2; cursor: pointer; text-align: center; font-weight: 850; }
.rank-buy-row { min-width: 1140px; display: grid; grid-template-columns: 220px repeat(4,1fr); gap: 0; padding: 13px 0; background: #121416; }
.rank-buy-row .buy-button { width: calc(100% - 34px); margin: auto; }

.trust { border-top: 1px solid #213443; background: #061c2b; color: #6ea0bd; }
.trust-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 70px; padding-top: 36px; padding-bottom: 28px; }
.trust h2 { margin: 0 0 12px; color: #e8edf0; font-size: 18px; }
.trust p { margin: 6px 0; font-size: 12px; line-height: 1.55; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.payment-methods span { width: 82px; height: 42px; display: grid; place-items: center; padding: 7px 10px; border-radius: 4px; background: #fff; color: #1b2931; }
.payment-methods img { width: 64px; height: 26px; object-fit: contain; }
.trust-links { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; padding-top: 0; padding-bottom: 25px; font-size: 12px; }
.trust-links a { color: #b8cbd6; text-decoration: none; }
.trust-links [data-currency-note] { color: #6ea0bd; }
.footer-currency select { min-height: 34px; background: #061722; }
.footer { padding: 27px 0 38px; border-top: 1px solid #292d31; background: #17191c; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 118px; height: 44px; object-fit: contain; }
.footer-inner > div:last-child { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: #aeb3ba; text-decoration: none; }
.load-error { padding: 80px 0; }
.load-error h1 { color: #fff; }

@media (max-width: 1120px) {
  .topbar-inner { grid-template-columns: 115px minmax(0,1fr) auto; }
  .category-nav a { padding-inline: 7px; font-size: 11.5px; }
  .product-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 820px) {
  .topbar { position: relative; }
  .topbar-inner { grid-template-columns: 1fr auto; padding-top: 4px; }
  .category-nav { grid-column: 1/-1; justify-content: flex-start; overflow-x: auto; padding-bottom: 7px; }
  .category-nav a { white-space: nowrap; }
  .catalog-grid, .product-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 22px), var(--wrap)); }
  .brand img { width: 112px; }
  .cart { display: none; }
  .sale-section { padding-top: 12px; }
  .sale-banner { min-height: 300px; }
  .catalog-grid, .product-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 250px; }
  .product-art-wrap { height: 185px; }
  .catalog-meta { flex-direction: column; gap: 4px; }
}

/* =============================================================
   STORE NAVIGATION ACTIONS (Sign In, Cart Button, Checkout Button)
   ============================================================= */
.nav-signin {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #363b44;
  border-radius: 5px;
  background: #1c2026;
  color: #e2e5e9;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nav-signin:hover {
  background: #252b34;
  border-color: #49515d;
  color: #ffffff;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 11px 0 6px;
  border: 1px solid #2b313a;
  border-radius: 5px;
  background: #14171a;
  color: #f0f2f5;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.user-chip:hover {
  background: #1b2024;
  border-color: #424a56;
}
.user-chip img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  image-rendering: pixelated;
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #8c6429;
  border-radius: 5px;
  background: var(--gold, #d99c3b);
  color: #201507;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.cart-btn:hover {
  filter: brightness(1.1);
}
.cart-pill-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  background: #140d04;
  color: #ffd875;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.3;
}
.checkout-btn {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #2e7d32;
  border-radius: 5px;
  background: #43a047;
  color: #081a09;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.checkout-btn:hover {
  filter: brightness(1.12);
}

/* =============================================================
   BUY MODAL OVERLAY & USERNAME PROMPT MODAL
   ============================================================= */
[hidden],
.store-overlay[hidden],
.cart-drawer-overlay[hidden] {
  display: none !important;
}
.store-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 7, 9, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeInOverlay 0.18s ease-out;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.store-modal-card {
  position: relative;
  width: min(520px, 100%);
  background: #15181c;
  border: 1px solid #2b313a;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleUpModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUpModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.store-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #2b313a;
  background: #1a1e23;
  color: #9aa0a6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.store-modal-close:hover {
  color: #ffffff;
  border-color: #454d5a;
  background: #232830;
}

.sm-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #23272e;
}
.sm-art-wrap {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #2d333b;
  background: #0c0e10;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.sm-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sm-head-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sm-badge {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(242, 183, 89, 0.12);
  color: #f2b759;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sm-title {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
}
.sm-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.sm-prices .regular-price {
  color: #7d848d;
  font-size: 13px;
  text-decoration: line-through;
}
.sm-prices .sale-price {
  color: #ffd17b;
  font-size: 20px;
  font-weight: 900;
}

.sm-field-wrap {
  margin-bottom: 16px;
}
.sm-label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  color: #b7bbc1;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.sm-select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #2d333b;
  background: #0e1013;
  color: #f2f2f2;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sm-select:focus {
  outline: none;
  border-color: #f2b759;
}

.sm-perks-wrap {
  margin-bottom: 16px;
  max-height: 160px;
  overflow-y: auto;
  background: #0e1013;
  border: 1px solid #23272e;
  border-radius: 6px;
  padding: 12px 14px;
}
.sm-perks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sm-perks-list li {
  font-size: 12px;
  color: #c0c4cc;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.sm-perks-list li::before {
  content: "✓";
  color: #43a047;
  font-weight: 900;
}

.sm-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: #0e1013;
  border: 1px solid #23272e;
  border-radius: 6px;
}
.sm-qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sm-qty-controls button {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  border: 1px solid #363a40;
  background: #1c2025;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sm-qty-controls button:hover {
  background: #292f37;
  border-color: #4c5460;
}
#sm-qty-display {
  min-width: 28px;
  text-align: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
}

.sm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sm-btn {
  min-height: 44px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.sm-btn:hover {
  filter: brightness(1.12);
}
.sm-btn-cart {
  background: #232831;
  border: 1px solid #3a414e;
  color: #f0f2f5;
}
.sm-btn-buy {
  background: linear-gradient(135deg, #e5a73b, #c98622);
  color: #160f04;
  box-shadow: 0 4px 14px rgba(229, 167, 59, 0.28);
}

/* =============================================================
   CART DRAWER
   ============================================================= */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 7, 9, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  animation: fadeInOverlay 0.18s ease-out;
}
.cart-drawer-panel {
  width: min(440px, 100%);
  height: 100%;
  background: #15181c;
  border-left: 1px solid #292d33;
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cd-header {
  padding: 18px 20px;
  border-bottom: 1px solid #23272e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cd-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffd17b;
}
.cd-title-wrap h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
  color: #ffffff;
}
.cd-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid #2d333b;
  background: #1c2025;
  color: #9aa0a6;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.cd-close-btn:hover {
  color: #ffffff;
  background: #272d36;
}

.cd-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cd-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8e95a0;
}
.cd-empty p {
  margin: 0 0 16px;
  font-size: 14px;
}
.cd-continue-btn {
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid #363b44;
  background: #1c2025;
  color: #ffd17b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.cd-continue-btn:hover {
  background: #252b34;
}

.cd-item-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #0e1013;
  border: 1px solid #23272e;
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.15s ease;
}
.cd-item-card:hover {
  border-color: #363b44;
}
.cd-item-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  border: 1px solid #23272e;
  background: #08090a;
  overflow: hidden;
  object-fit: contain;
  flex-shrink: 0;
}
.cd-item-info {
  flex: 1;
  min-width: 0;
}
.cd-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-item-mode {
  font-size: 11px;
  color: #8e95a0;
  margin: 2px 0 4px;
}
.cd-item-price {
  font-size: 13px;
  font-weight: 850;
  color: #ffd17b;
}
.cd-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cd-item-qty button {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #363a40;
  background: #1c2025;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cd-item-qty button:hover {
  background: #272d36;
}
.cd-item-qty span {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  min-width: 16px;
  text-align: center;
}
.cd-item-del {
  background: none;
  border: none;
  color: #e57373;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.cd-item-del:hover {
  color: #ff5252;
  transform: scale(1.1);
}

.cd-footer {
  padding: 18px 20px;
  border-top: 1px solid #23272e;
  background: #111316;
}
.cd-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.cd-subtotal-price {
  font-size: 20px;
  color: #ffd17b;
  font-weight: 900;
}
.cd-note {
  font-size: 11px;
  color: #808792;
  margin-bottom: 14px;
}
.cd-checkout-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid #2e7d32;
  background: #43a047;
  color: #071708;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.15s ease;
}
.cd-checkout-btn:hover {
  filter: brightness(1.12);
}

/* =============================================================
   USERNAME PROMPT MODAL
   ============================================================= */
.username-modal-card {
  position: relative;
  width: min(440px, 100%);
  background: #15181b;
  border: 1px solid #2d333b;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  text-align: center;
  animation: scaleUpModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.un-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(242, 183, 89, 0.1);
  border: 1px solid rgba(242, 183, 89, 0.25);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.username-modal-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 850;
  color: #ffffff;
}
.username-modal-card p {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: #a4abb5;
  line-height: 1.5;
}
.un-input-wrap {
  margin-bottom: 12px;
}
.un-input-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #363a40;
  background: #0c0e10;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.un-input-wrap input:focus {
  border-color: #f2b759;
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 183, 89, 0.18);
}
.un-error {
  color: #ef5350;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.un-submit-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #e5a73b, #c98622);
  color: #160f04;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.un-submit-btn:hover {
  filter: brightness(1.12);
}

/* =============================================================
   TOAST NOTIFICATION
   ============================================================= */
.store-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  background: #1c2025;
  border: 1px solid #363a40;
  border-left: 4px solid #43a047;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToastUp 0.22s ease-out;
}
@keyframes slideToastUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 560px) {
  .actions { gap: 4px; }
  .nav-signin { padding: 0 8px; font-size: 11px; }
  .cart-btn { padding: 0 9px; font-size: 11px; }
  .checkout-btn { padding: 0 9px; font-size: 11px; }
  .sm-actions { grid-template-columns: 1fr; }
  .cart-drawer-panel { width: 100%; }
}

/* =============================================================
   HALLOWEEN DEALS SPOOKY STYLING
   ============================================================= */
.category-nav a.tab-halloween {
  color: #ff9800 !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.45);
  transition: all 0.2s ease;
}
.category-nav a.tab-halloween:hover {
  color: #ffb74d !important;
  text-shadow: 0 0 16px rgba(255, 183, 77, 0.7);
}
.category-nav a.tab-halloween.active {
  color: #ff9800 !important;
  border-bottom-color: #ff9800 !important;
  text-shadow: 0 0 16px rgba(255, 152, 0, 0.8);
}
.category-nav a.tab-halloween .tab-pumpkin {
  font-size: 15px;
  line-height: 1;
  display: inline-block;
  animation: spookyFloat 2.6s ease-in-out infinite;
}
@keyframes spookyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-6deg); }
}

body[data-page="halloween"] .page-hero {
  background: radial-gradient(circle at 50% 15%, rgba(255, 136, 0, 0.18), transparent 70%), #07090d;
  border-bottom: 1px solid rgba(255, 152, 0, 0.25);
}
body[data-page="halloween"] .page-hero .eyebrow {
  color: #ff9800;
  letter-spacing: 0.14em;
  font-weight: 750;
}
body[data-page="halloween"] .page-hero h1 {
  background: linear-gradient(135deg, #ffcc80 0%, #ff9800 50%, #e65100 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body[data-page="halloween"] .product-card {
  border-color: rgba(255, 152, 0, 0.22);
}
body[data-page="halloween"] .product-card:hover {
  border-color: rgba(255, 152, 0, 0.55);
  box-shadow: 0 10px 30px rgba(255, 110, 0, 0.2);
}

/* Home Page Showcase Styling */
.home-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.cat-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #c9d1d9;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
}
.cat-pill.pill-halloween {
  background: rgba(255, 152, 0, 0.12);
  border-color: rgba(255, 152, 0, 0.4);
  color: #ff9800;
}
.cat-pill.pill-halloween:hover {
  background: rgba(255, 152, 0, 0.22);
  border-color: #ff9800;
  color: #ffb74d;
}
.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.section-see-all {
  color: #f0b429;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: color 0.15s ease;
}
.section-see-all:hover {
  color: #ffd166;
  text-decoration: underline;
}

/* Master Heavenly Popular Styling */
.product-card[data-key="bundle_all_crates"],
.product-card:has(button[data-key="bundle_all_crates"]) {
  border-color: rgba(255, 170, 0, 0.45);
  box-shadow: 0 4px 24px rgba(255, 170, 0, 0.15);
}
.product-card[data-key="bundle_all_crates"] .tag,
.product-card:has(button[data-key="bundle_all_crates"]) .tag {
  background: linear-gradient(135deg, #ff9800, #e65100);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(230, 81, 0, 0.5);
  letter-spacing: 0.05em;
}


/* =============================================================
   STORE HUB CATEGORY CATALOG (Image 4 Exact Layout)
   ============================================================= */
.store-hub-section {
  padding: 40px 0 70px;
}
.hub-header {
  margin-bottom: 28px;
}
.hub-title {
  font-size: 38px;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
}
.hub-halloween-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, rgba(230, 81, 0, 0.22) 0%, rgba(30, 18, 12, 0.6) 100%);
  border: 1px solid rgba(255, 152, 0, 0.4);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(230, 81, 0, 0.15);
  transition: all 0.2s ease;
}
.hub-halloween-banner:hover {
  border-color: #ff9800;
  box-shadow: 0 6px 26px rgba(230, 81, 0, 0.25);
  transform: translateY(-2px);
}
.halloween-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.halloween-banner-pumpkin {
  font-size: 32px;
  animation: pulsePumpkin 2s infinite ease-in-out;
}
.halloween-banner-badge {
  font-size: 10px;
  font-weight: 900;
  color: #ffb74d;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.halloween-banner-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.halloween-banner-desc {
  font-size: 13px;
  color: #ffcc80;
  margin-top: 2px;
}
.halloween-banner-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 5px;
  background: #ff9800;
  color: #1a0f00;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.hub-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hub-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #14171d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 34px 20px 28px;
  min-height: 230px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hub-cat-card:hover {
  background: #181d24;
  border-color: rgba(240, 180, 41, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 16px rgba(240, 180, 41, 0.12);
}
.hub-cat-art {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.hub-cat-art img {
  max-width: 130px;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease;
}
.hub-cat-card:hover .hub-cat-art img {
  transform: scale(1.08);
}
.hub-cat-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffb74d;
  letter-spacing: 0.03em;
  text-transform: capitalize;
}
.hub-cat-card:hover .hub-cat-title {
  color: #ffd54f;
}

.hub-welcome {
  margin-top: 50px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hub-welcome h2 {
  font-size: 21px;
  color: #fff;
  margin: 0 0 10px;
}
.hub-welcome p {
  color: #9ea3ae;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* =============================================================
   SIGNED-IN NAVBAR USER PROFILE (Matches sts.css)
   ============================================================= */
.nav-user {
  position: relative;
  display: inline-block;
}
.nav-user > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #363b44;
  border-radius: 5px;
  background: #1c2026;
  color: #e2e5e9;
  font-size: 12px;
  font-weight: 750;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-user > summary:hover {
  background: #232830;
  border-color: #4b5260;
}
.nav-user > summary::-webkit-details-marker {
  display: none;
}
.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  display: inline-block;
  transition: transform 0.15s ease;
}
.nav-user[open] .nav-caret {
  transform: rotate(180deg);
}
.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 190px;
  padding: 6px;
  background: #15181e;
  border: 1px solid #363b44;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}
.nav-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c0c5cd;
  padding: 9px 12px;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  box-sizing: border-box;
}
.nav-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffb74d;
}
.nav-menu-form {
  margin: 4px 0 0;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-menu-item.danger {
  color: #f87171;
}
.nav-menu-item.danger:hover {
  background: rgba(248, 113, 113, 0.1);
  color: #ef4444;
}

@media (max-width: 820px) {
  .hub-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .hub-cat-card {
    min-height: 190px;
    padding: 24px 14px 20px;
  }
  .hub-cat-art {
    width: 110px;
    height: 110px;
    margin-bottom: 12px;
  }
  .hub-cat-art img {
    max-width: 100px;
    max-height: 100px;
  }
  .hub-halloween-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .hub-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .hub-cat-card {
    min-height: 142px;
    padding: 16px 10px 14px;
    border-radius: 8px;
  }
  .hub-cat-art {
    width: 85px;
    height: 85px;
    margin-bottom: 8px;
  }
  .hub-cat-art img {
    max-width: 76px;
    max-height: 76px;
  }
  .hub-cat-title {
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .hub-category-grid {
    gap: 8px;
  }
  .hub-cat-card {
    min-height: 128px;
    padding: 12px 6px 10px;
  }
  .hub-cat-art {
    width: 72px;
    height: 72px;
  }
  .hub-cat-art img {
    max-width: 64px;
    max-height: 64px;
  }
  .hub-cat-title {
    font-size: 13px;
  }
}

/* =============================================================
   HALLOWEEN COUNTDOWN CLOCK & FOOTER REFINEMENTS (HYPIXEL STYLE)
   ============================================================= */
.halloween-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.halloween-countdown-title {
  font-size: 10px;
  font-weight: 900;
  color: #ffb74d;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.halloween-countdown-clock {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cd-unit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 152, 0, 0.35);
  border-radius: 5px;
  min-width: 38px;
  padding: 4px 6px;
}
.cd-val {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: var(--px, monospace);
}
.cd-lbl {
  font-size: 7.5px;
  font-weight: 800;
  color: #ffb74d;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.cd-sep {
  font-size: 16px;
  font-weight: 900;
  color: #ff9800;
  line-height: 1;
}

/* Payment Methods & Subtext Alignment */
.payment-methods {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 12px 0 14px !important;
  align-items: center !important;
}
.payment-methods span {
  width: 78px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 8px !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #1b2931 !important;
  box-sizing: border-box !important;
}
.payment-methods img {
  max-width: 60px !important;
  max-height: 24px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
.pay-methods-subtext {
  margin: 12px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #6ea0bd !important;
  clear: both !important;
  display: block !important;
}
.trust-sub {
  margin-top: 8px !important;
  font-size: 12.5px !important;
  color: #a0b2c0 !important;
}

/* Hypixel Style Footer Grid & Tebex Merchant Bar */
.footer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 24px;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  width: 105px;
  height: auto;
  object-fit: contain;
}
.footer-copy {
  color: #8c939d;
  font-size: 12px;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #abb1ba;
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-socials a:hover {
  background: rgba(240, 180, 41, 0.15);
  border-color: #f0b429;
  color: #f0b429;
  transform: translateY(-2px);
}
.footer-links-grid {
  display: flex;
  gap: 48px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav-col h4 {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}
.footer-nav-col a {
  font-size: 12.5px;
  color: #9aa1ab;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-nav-col a:hover {
  color: #ffb74d;
}

/* PayNow Bottom Merchant Bar (Exact Tebex Bar on Hypixel) */
.footer-tebex-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 0;
  margin-top: 20px;
}
.tebex-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11.5px;
  color: #7b838f;
}
.tebex-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tebex-legal-links {
  display: flex;
  gap: 16px;
}
.tebex-legal-links a {
  color: #8c95a3;
  text-decoration: none;
}
.tebex-legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 820px) {
  .footer-main-row {
    flex-direction: column;
    gap: 28px;
  }
  .footer-links-grid {
    gap: 24px;
    flex-wrap: wrap;
  }
  .tebex-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================================
   COMPREHENSIVE MOBILE OPTIMIZATION SUITE (BreezeMC Store)
   ============================================================= */

/* Mobile Topbar & Header Actions */
@media (max-width: 640px) {
  .topbar {
    padding: 6px 0;
  }
  .topbar-inner {
    grid-template-columns: auto 1fr !important;
    gap: 8px;
    align-items: center;
  }
  .brand img {
    width: 98px !important;
    height: 36px !important;
  }
  .actions {
    justify-content: flex-end;
    gap: 5px;
  }
  .currency-control select {
    min-height: 34px !important;
    padding: 0 18px 0 6px !important;
    font-size: 11px !important;
    font-weight: 750;
    border-radius: 5px;
  }
  .nav-signin {
    min-height: 34px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
    font-weight: 750;
    border-radius: 5px;
  }
  .nav-user > summary {
    min-height: 34px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    gap: 5px;
  }
  .nav-user .user-chip img {
    width: 20px;
    height: 20px;
  }
  .cart-btn {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 5px;
  }
  /* On mobile, keep cart icon & pill count, hide the word Shopping Cart */
  .cart-btn span:not(.cart-pill-count) {
    display: none !important;
  }
  .cart-btn svg {
    width: 16px;
    height: 16px;
  }
  .cart-pill-count {
    padding: 1px 5px !important;
    font-size: 10px !important;
  }
}

/* Category Navigation Bar (Smooth Touch Horizontal Scrolling) */
@media (max-width: 820px) {
  .category-nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 7px 0 8px;
    gap: 6px;
  }
  .category-nav::-webkit-scrollbar {
    display: none;
  }
  .category-nav a {
    white-space: nowrap;
    padding: 8px 13px !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #c4c9d1 !important;
    font-size: 12px !important;
    font-weight: 750;
    flex-shrink: 0;
    transition: all 0.15s ease;
  }
  .category-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
  }
  .category-nav a.active {
    background: rgba(240, 180, 41, 0.18) !important;
    border-color: rgba(240, 180, 41, 0.5) !important;
    color: #ffd17b !important;
  }
  .category-nav a.active::after {
    display: none !important;
  }
  .category-nav a.tab-halloween {
    background: rgba(255, 152, 0, 0.12) !important;
    border-color: rgba(255, 152, 0, 0.35) !important;
    color: #ff9800 !important;
  }
  .category-nav a.tab-halloween.active {
    background: rgba(255, 152, 0, 0.22) !important;
    border-color: rgba(255, 152, 0, 0.6) !important;
    color: #ffa726 !important;
  }
}

/* Halloween Hero Banner on Mobile */
@media (max-width: 820px) {
  .hub-halloween-banner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px;
    padding: 22px 16px !important;
    border-radius: 10px;
  }
  .halloween-banner-left {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px;
  }
  .halloween-banner-title {
    font-size: 16px !important;
    line-height: 1.3;
  }
  .halloween-banner-desc {
    font-size: 12.5px !important;
    max-width: 380px;
    margin: 4px auto 0;
  }
  .halloween-countdown-wrap {
    margin: 4px 0;
  }
  .halloween-countdown-clock {
    gap: 4px;
  }
  .cd-unit-box {
    min-width: 34px !important;
    padding: 3px 5px !important;
  }
  .cd-val {
    font-size: 15px !important;
  }
  .cd-lbl {
    font-size: 8px !important;
  }
  .halloween-banner-btn {
    width: 100% !important;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 850;
    box-sizing: border-box;
  }
}

/* Product Cards & Catalog Section on Mobile */
@media (max-width: 640px) {
  .page-hero {
    padding: 26px 0 18px !important;
  }
  .page-hero h1 {
    font-size: 26px !important;
    margin-bottom: 12px;
  }
  .product-section {
    padding: 18px 0 42px !important;
  }
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .product-card {
    border-radius: 8px;
    background: #14171c;
  }
  .product-art-wrap {
    height: 180px !important;
  }
  .product-art-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
  }
  .product-art-wrap img.pixel-art {
    width: 68% !important;
    height: 68% !important;
    max-width: 68% !important;
    max-height: 68% !important;
    object-fit: contain !important;
  }
  .product-body {
    padding: 14px !important;
  }
  .product-body h2 {
    font-size: 17px !important;
  }
  .product-body > p {
    font-size: 12.5px !important;
    margin: 6px 0 12px;
  }
  .price-row {
    padding-top: 12px;
    gap: 10px;
  }
  .sale-price {
    font-size: 20px !important;
  }
  .buy-button {
    min-width: 95px;
    min-height: 42px;
    font-size: 13px;
    font-weight: 900;
  }
  .mode-tabs, .plan-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 4px;
  }
  .mode-tabs::-webkit-scrollbar, .plan-tabs::-webkit-scrollbar {
    display: none;
  }
  .mode-tabs button, .plan-tabs button {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 13px !important;
    font-size: 11.5px !important;
    border-radius: 5px;
  }
}

/* Mobile Rank Cards & Swipe Hint */
.mobile-rank-cards {
  display: none;
}
.table-scroll-hint {
  display: none;
}
@media (max-width: 820px) {
  .mobile-rank-cards {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }
  .mobile-rank-card {
    background: #15181c;
    border: 1px solid #2a2e36;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }
  .m-rank-top {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .m-rank-art {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #363b45;
    background: #0e1013;
    flex-shrink: 0;
  }
  .m-rank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .m-rank-name {
    font-size: 18px;
    font-weight: 850;
    color: #fff;
  }
  .m-rank-info .prefix-badge {
    margin: 0;
    width: 78px;
    height: 28px;
  }
  .m-rank-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
  }
  .m-rank-blurb {
    font-size: 12px;
    color: #aeb4be;
    line-height: 1.45;
    margin: 0;
  }
  .m-rank-perks {
    background: #0d0f12;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .m-rank-perk-item {
    font-size: 11.5px;
    color: #e0e4ec;
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .m-rank-perk-item span.chk {
    color: #4ade80;
    font-weight: 900;
  }
  .m-rank-buy {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 14px !important;
    border-radius: 6px;
  }
  .table-scroll-hint {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    color: #f2b759;
    background: rgba(242, 183, 89, 0.08);
    border: 1px dashed rgba(242, 183, 89, 0.3);
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: 750;
  }
}

/* Modal on Mobile Screens */
@media (max-width: 640px) {
  .store-modal-card {
    width: calc(100% - 24px) !important;
    max-width: 440px !important;
    margin: auto 12px !important;
    padding: 20px 16px !important;
    max-height: calc(100vh - 32px) !important;
    overflow-y: auto !important;
    border-radius: 12px !important;
  }
  .sm-head {
    gap: 12px !important;
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
  }
  .sm-art-wrap {
    width: 64px !important;
    height: 64px !important;
  }
  .sm-title {
    font-size: 18px !important;
  }
  .sm-prices .sale-price {
    font-size: 19px !important;
  }
  .sm-actions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .sm-btn {
    min-height: 46px !important;
    font-size: 14px !important;
    font-weight: 850 !important;
  }
}

/* Cart Drawer on Mobile */
@media (max-width: 640px) {
  .cart-drawer-panel {
    width: 100% !important;
  }
  .cd-header {
    padding: 16px !important;
  }
  .cd-body {
    padding: 12px !important;
    gap: 8px !important;
  }
  .cd-item-card {
    padding: 10px !important;
    gap: 10px !important;
  }
  .cd-item-thumb {
    width: 44px !important;
    height: 44px !important;
  }
  .cd-item-title {
    font-size: 13.5px !important;
  }
  .cd-footer {
    padding: 14px 16px max(16px, env(safe-area-inset-bottom)) !important;
  }
  .cd-checkout-btn {
    min-height: 48px !important;
    font-size: 15px !important;
  }
}

/* Hypixel Footer on Mobile */
@media (max-width: 820px) {
  .footer-main-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 22px !important;
  }
  .footer-brand {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-socials {
    justify-content: center !important;
  }
  .footer-payment-badge {
    justify-content: center !important;
  }
  .footer-payment-icons {
    justify-content: center !important;
    max-width: 320px;
    margin: 0 auto;
  }
  .footer-links-grid {
    justify-content: center !important;
    gap: 32px !important;
    text-align: center !important;
  }
  .footer-col {
    align-items: center !important;
  }
  .footer-col ul {
    align-items: center !important;
  }
  .tebex-bar-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .tebex-copy {
    justify-content: center !important;
    text-align: center !important;
  }
  .tebex-legal-links {
    justify-content: center !important;
  }
}

/* =============================================================
   3-LINES HAMBURGER MENU (Matches stsstudio.org phone style)
   ============================================================= */
.subnav-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.subnav-burger i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-burger {
  display: none;
  position: relative;
}
.nav-burger > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.nav-burger > summary::-webkit-details-marker {
  display: none;
}
.nav-burger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  color: #c4c9d1;
  border: 1px solid #363b45;
  border-radius: 6px;
  background: #191c22;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-burger-btn:hover {
  color: #ffffff;
  border-color: #4b5260;
  background: #232832;
}
.nav-burger[open] .nav-burger-btn {
  color: #ffb74d;
  border-color: #ffb74d;
  background: #1c2028;
}
.nav-burger-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #14171d;
  border: 1px solid #323844;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10002;
  animation: scaleUpModal 0.15s ease-out;
}
.nav-burger-menu .nav-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-burger-menu .nav-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.nav-burger-menu .nav-menu-item.active {
  background: rgba(240, 180, 41, 0.15);
  color: #ffd17b;
}
.nav-burger-menu .nav-menu-item.tab-halloween {
  color: #ff9800 !important;
  font-weight: 800;
}
.nav-burger-menu .nav-menu-item.tab-halloween:hover {
  background: rgba(255, 152, 0, 0.15);
  color: #ffb74d !important;
}
.nav-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 6px;
}

/* On mobile (<820px): HIDE tab bar completely, show 3 lines burger, right-align controls */
@media (max-width: 820px) {
  .category-nav {
    display: none !important;
  }
  .nav-burger {
    display: inline-block !important;
  }
  .topbar {
    padding: 10px 0 !important;
  }
  .topbar-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding-top: 0 !important;
  }
  .brand {
    flex-shrink: 0;
  }
  .brand img {
    width: 105px !important;
    height: 38px !important;
  }
  .actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin-left: auto !important;
  }
  .currency-control select {
    min-height: 36px !important;
    padding: 0 18px 0 6px !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    border-radius: 6px !important;
  }
  .nav-signin {
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    font-weight: 750 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }
  .nav-user > summary {
    min-height: 36px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }
  .cart-btn {
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }
  .cart-btn span:not(.cart-pill-count) {
    display: none !important;
  }
  .cart-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
}

@media (max-width: 480px) {
  .brand img {
    width: 88px !important;
    height: 34px !important;
  }
  .actions {
    gap: 4px !important;
  }
  .currency-control select {
    min-height: 34px !important;
    padding: 0 16px 0 5px !important;
    font-size: 10.5px !important;
  }
  .nav-signin {
    min-height: 34px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }
  .cart-btn {
    min-height: 34px !important;
    padding: 0 8px !important;
  }
  .nav-burger-btn {
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 6px !important;
  }
}


/* Master Spooky Popular Styling */
.product-card[data-key="bundle_spooky_master"],
.product-card:has(button[data-key="bundle_spooky_master"]) {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 4px 28px rgba(168, 85, 247, 0.25);
}
.product-card[data-key="bundle_spooky_master"] .tag,
.product-card:has(button[data-key="bundle_spooky_master"]) .tag {
  background: linear-gradient(135deg, #a855f7, #f97316);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.6);
  letter-spacing: 0.05em;
}

/* --- Hub Divine Prestige Banner --- */
.hub-divine-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.4) 0%, rgba(20, 12, 38, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 24px;
  margin: 16px 0 28px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.hub-divine-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.85);
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.35);
}
.divine-banner-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.divine-banner-plate { width: 114px; height: 27px; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.divine-banner-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.divine-prefix-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9333ea, #c084fc);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
}
.divine-banner-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.divine-banner-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 680px;
}
.divine-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(126, 34, 206, 0.35);
  transition: all 0.15s ease;
}
.hub-divine-banner:hover .divine-banner-cta {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .hub-divine-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }
  .divine-banner-cta {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================================
   PAYMENT METHOD SELECTION & DIRECT UPI CHECKOUT MODALS
   ===================================================================== */

.pm-select-modal {
  width: min(540px, 100%);
}

.pm-header {
  margin-bottom: 20px;
}
.pm-title {
  font-family: var(--pixel), monospace;
  font-size: 20px;
  color: #ffffff;
  margin: 0 0 6px;
}
.pm-subtitle {
  font-size: 13.5px;
  color: #9aa0a6;
}
.pm-subtitle b {
  color: #f0b429;
}

.pm-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.pm-select-modal {
  width: min(580px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.pm-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #14181f;
  border: 1px solid #272f3d;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.pm-option-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  opacity: 0.85;
  transition: all 0.2s ease;
}
.pm-option-card:hover {
  transform: translateY(-2px);
}

/* UPI Option Card */
/* Simple uniform dark UI cards */
.pm-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #141820 !important;
  border: 1px solid #232936 !important;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  position: relative;
}
.pm-option-card::before {
  display: none !important;
}
.pm-option-card:hover {
  background: #191f2b !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.pm-option-card.upi-card:hover {
  border-color: #10b981 !important;
}
.pm-option-card.upi-card:hover .pm-option-arrow {
  color: #10b981;
}

.pm-option-card.paynow-card:hover {
  border-color: #a855f7 !important;
}
.pm-option-card.paynow-card:hover .pm-option-arrow {
  color: #c084fc;
}

.pm-option-card.wise-card:hover {
  border-color: #9fe870 !important;
}
.pm-option-card.wise-card:hover .pm-option-arrow {
  color: #9fe870;
}

.pm-option-card.bank-card:hover {
  border-color: #34d399 !important;
}
.pm-option-card.bank-card:hover .pm-option-arrow {
  color: #34d399;
}

.pm-option-card.crypto-card:hover {
  border-color: #F0B90B !important;
}
.pm-option-card.crypto-card:hover .pm-option-arrow {
  color: #F0B90B;
}

/* Transparent Icon Container */
.pm-option-icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}
.pm-option-icon img,
.pm-brand-logo {
  display: block !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
}
.pm-option-icon img.pm-logo-square {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
}
.pm-option-icon img.pm-logo-wide {
  max-width: 48px !important;
  max-height: 20px !important;
  width: auto !important;
  height: auto !important;
}
.pm-option-icon img.pm-crest-logo {
  width: 44px !important;
  height: 44px !important;
  transform: scale(1.1) !important;
}

.pm-badge-upi {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}
.pm-badge-paynow {
  color: #e879f9;
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(192, 132, 252, 0.35);
}
.pm-badge-wise {
  color: #9fe870;
  background: rgba(159, 232, 112, 0.15);
  border-color: rgba(159, 232, 112, 0.35);
}
.pm-badge-bank {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.4);
}
.pm-badge-crypto {
  color: #F0B90B;
  background: rgba(240, 185, 11, 0.15);
  border-color: rgba(240, 185, 11, 0.35);
}

/* Crypto Tabs & Content */
.crypto-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.crypto-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: #121620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.crypto-tab-btn:hover {
  background: #1a202c;
  color: #ffffff;
  border-color: rgba(240, 185, 11, 0.3);
}
.crypto-tab-btn.is-active {
  background: rgba(240, 185, 11, 0.12);
  border-color: #F0B90B;
  color: #F0B90B;
  box-shadow: 0 4px 14px rgba(240, 185, 11, 0.15);
}
.crypto-network-warn {
  font-size: 11.5px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
  line-height: 1.4;
  text-align: left;
}
.crypto-address-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #0d1013;
  border: 1px solid rgba(240, 185, 11, 0.25);
  border-radius: 8px;
  margin-bottom: 12px;
  word-break: break-all;
}
.crypto-address-val {
  font-family: monospace;
  font-size: 12px;
  color: #F0B90B;
  font-weight: 700;
}
.bank-wallets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 10px 0 14px;
}
.bank-wallet-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.pm-option-icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.pm-option-info {
  flex: 1;
  min-width: 0;
}
.pm-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.pm-option-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}
.pm-option-desc {
  font-size: 12px;
  color: #8b949e;
  line-height: 1.4;
}
.pm-option-arrow {
  color: #8b949e;
  font-size: 18px;
  font-weight: 700;
}
.pm-option-card:hover .pm-option-arrow {
  color: #f0b429;
}
.pm-option-card.upi-card:hover .pm-option-arrow {
  color: #22c55e;
}

/* UPI Checkout Modal */
.upi-checkout-modal {
  width: min(560px, 100%);
}

.upi-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #111418;
  border: 1px solid #23272e;
  border-radius: 8px;
  margin-bottom: 16px;
}
.upi-order-item {
  font-size: 13.5px;
  color: #e6edf3;
  font-weight: 600;
}
.upi-order-item small {
  display: block;
  font-size: 11.5px;
  color: #8b949e;
  font-weight: normal;
}
.upi-order-amt {
  font-size: 17px;
  font-weight: 800;
  color: #22c55e;
  text-align: right;
}
.upi-order-amt small {
  display: block;
  font-size: 11px;
  color: #8b949e;
  font-weight: normal;
}

.upi-qr-card {
  background: #161a20;
  border: 1px solid #2d333e;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-bottom: 18px;
}
.upi-qr-img {
  width: 190px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #ffffff;
  background: #ffffff;
  margin: 0 auto 12px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.upi-id-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  background: #0d1013;
  border: 1px dashed #3a424f;
  border-radius: 6px;
  max-width: 340px;
  margin: 0 auto;
}
.upi-id-text {
  font-family: monospace;
  font-size: 13.5px;
  color: #f0b429;
  font-weight: 700;
}
.upi-copy-btn {
  padding: 4px 10px;
  background: #252b35;
  border: 1px solid #3e4756;
  border-radius: 4px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.upi-copy-btn:hover {
  background: #f0b429;
  color: #000000;
  border-color: #f0b429;
}

.upi-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #8b949e;
  margin: 14px 0 0;
  text-align: left;
  padding-left: 20px;
}
.upi-steps-list li {
  line-height: 1.4;
}

.upi-form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.upi-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #c9d1d9;
  margin-bottom: 4px;
}
.upi-field-input {
  width: 100%;
  padding: 10px 12px;
  background: #0d1013;
  border: 1px solid #2d333e;
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.upi-field-input:focus {
  border-color: #f0b429;
}

.upi-file-drop {
  border: 1px dashed #3a424f;
  background: #111418;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease;
}
.upi-file-drop:hover {
  border-color: #22c55e;
}
.upi-file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upi-file-drop-text {
  font-size: 12.5px;
  color: #8b949e;
}
.upi-file-drop-text b {
  color: #22c55e;
}
.upi-preview-name {
  font-size: 12px;
  color: #22c55e;
  margin-top: 4px;
  font-weight: 600;
  display: none;
}

.upi-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.upi-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.upi-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.upi-switch-btn {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 12px;
  cursor: pointer;
  margin-top: 10px;
  text-decoration: underline;
  width: 100%;
  text-align: center;
}
.upi-switch-btn:hover {
  color: #ffffff;
}

/* UPI Success View */
.upi-success-wrap {
  text-align: center;
  padding: 10px 0;
}
.upi-success-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.upi-success-title {
  font-family: var(--pixel), monospace;
  font-size: 22px;
  color: #ffffff;
  margin: 0 0 8px;
}
.upi-success-desc {
  font-size: 13.5px;
  color: #9aa0a6;
  line-height: 1.5;
  margin: 0 0 18px;
}
.upi-success-desc b {
  color: #f0b429;
}

.upi-discord-box {
  background: #1c222c;
  border: 1px solid #2e3848;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}
.upi-discord-box-h {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.upi-discord-box-p {
  font-size: 12px;
  color: #8b949e;
  line-height: 1.45;
  margin-bottom: 12px;
}
.upi-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: #5865f2;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.upi-discord-btn:hover {
  background: #4752c4;
}
.upi-discord-linked {
  padding: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 6px;
  font-size: 13px;
  color: #22c55e;
  text-align: center;
  font-weight: 600;
}

.upi-actions-row {
  display: flex;
  gap: 10px;
}
.upi-action-ticket {
  flex: 1;
  padding: 10px;
  background: #252b35;
  border: 1px solid #3e4756;
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.upi-action-ticket:hover {
  background: #323a48;
}
.upi-action-done {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #3e4756;
  border-radius: 6px;
  color: #8b949e;
  font-size: 13px;
  cursor: pointer;
}
.upi-action-done:hover {
  color: #ffffff;
  border-color: #5d6778;
}

/* ============================================================
   STS STUDIO - STORE EDITION SWITCHER & DUAL ACCOUNT MODAL
   ============================================================ */
.store-edition-switcher-bar {
  margin: 16px 0 6px 0;
  padding: 12px 18px;
  background: rgba(18, 22, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}
.store-edition-switcher-bar.bedrock-only {
  background: rgba(6, 78, 59, 0.25);
  border-color: rgba(16, 185, 129, 0.3);
}
.store-edition-sw-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.store-edition-sw-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.store-edition-sw-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: storePulse 2s infinite;
}
@keyframes storePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.store-edition-sw-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.store-edition-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.store-edition-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.store-edition-btn.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.store-edition-head-icon {
  border-radius: 4px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.store-edition-bedrock-icon {
  color: #34d399;
  flex-shrink: 0;
}
.store-edition-badge-active {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #10b981;
  color: #064e3b;
  text-transform: uppercase;
}
.store-edition-change-btn {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #a78bfa;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.store-edition-change-btn:hover {
  color: #c084fc;
}
.store-edition-modal-overlay {
  transition: opacity 0.2s ease;
}
.store-edition-pick-card:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}
