/* React UI refresh — intentionally loaded after the legacy foundation styles. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
:root {
  --bg: #07060c;
  --bg-elevated: rgba(18, 12, 28, 0.78);
  --bg-panel: rgba(14, 10, 22, 0.72);
  --bg-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(167, 139, 250, 0.16);
  --border-strong: rgba(196, 181, 253, 0.28);
  --text: #f6f3fb;
  --text-secondary: #c9c0d8;
  --text-muted: #8d849e;
  --accent: #8b5cf6;
  --accent-2: #ddd6fe;
  --accent-glow: rgba(139, 92, 246, 0.34);
  --green: #54d990;
  --red: #ff747f;
  --amber: #f4bd62;
  --blue: #7dd3fc;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

html { font-size: 16px; }
body {
  background: #07060d;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  letter-spacing: -.018em;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

::selection { color: #fff; background: rgba(196, 181, 253, .72); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07060d; }
::-webkit-scrollbar-thumb { background: #2a2438; border: 3px solid #07060d; border-radius: 20px; }

.shell {
  width: min(100%, 1240px);
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.mesh-bg { background: transparent; }
.grid-bg { display: none; }
.grain-orbs {
  display: block;
  opacity: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
}
.grain-orbs::after { display: none; }
.grain-orbs span { filter: blur(90px); opacity: .85; }
.grain-orbs span:nth-child(1) {
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  top: auto;
  bottom: -18%;
  left: -8%;
  background: radial-gradient(circle, rgba(124, 58, 237, .55), transparent 68%);
  animation: bloom-drift 16s ease-in-out infinite;
}
.grain-orbs span:nth-child(2) {
  width: 34vw;
  height: 34vw;
  top: -12%;
  right: -8%;
  left: auto;
  background: radial-gradient(circle, rgba(192, 132, 252, .35), transparent 70%);
  animation-duration: 20s;
}
.grain-orbs span:nth-child(3) {
  opacity: .35;
  top: 40%;
  left: 38%;
  background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 70%);
}
@keyframes bloom-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, 6%, 0) scale(1.08); }
}

.glass, .panel {
  background: linear-gradient(180deg, rgba(167, 139, 250, .08), rgba(12, 8, 20, .78));
  border: 1px solid rgba(167, 139, 250, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px) saturate(150%);
}

.eyebrow,
.market-hero__eyebrow {
  color: #c4b5fd;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.btn {
  min-height: 40px;
  gap: .45rem;
  padding: .62rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: -.01em;
  box-shadow: none;
  transition: transform .2s var(--ease-out), border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(196, 181, 253, .92);
  outline-offset: 3px;
}
.btn--primary {
  color: #fff;
  border: 1px solid rgba(221, 214, 254, .4);
  background: linear-gradient(115deg, #a78bfa, #7c3aed 58%, #6d28d9);
  box-shadow: 0 10px 30px rgba(124, 58, 237, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--primary:hover:not(:disabled) {
  filter: none;
  box-shadow: 0 14px 36px rgba(124, 58, 237, .38), inset 0 1px 0 rgba(255, 255, 255, .65);
}
.btn--ghost {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .025);
}
.btn--ghost:hover:not(:disabled) { color: #fff; border-color: rgba(196, 181, 253, .32); background: rgba(139, 92, 246, .08); }
.btn--danger { background: rgba(255, 94, 108, .1); border-color: rgba(255, 94, 108, .22); color: #ff969e; }
.btn--sm { min-height: 34px; padding: .45rem .72rem; font-size: .74rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(167, 139, 250, .35);
  border-radius: 0;
  background: rgba(10, 7, 16, .88);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(160%);
}
.site-header__inner {
  width: 100%;
  min-height: 58px;
  padding: .4rem .55rem .4rem .85rem;
}
.site-brand__banner { width: auto; max-width: 142px; object-fit: contain; }
.site-nav {
  gap: 1.15rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.site-nav__link {
  padding: .35rem 0;
  border-radius: 0;
  color: #9b93ad;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  box-shadow: inset 0 -2px 0 transparent;
}
.site-nav__link:hover { color: #fff; background: transparent; }
.site-nav__link--active {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 -2px 0 #c4b5fd;
}
.site-header__actions { gap: .55rem; }
.cart-btn,
.user-menu__trigger {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .03);
}
.cart-btn:hover,
.user-menu__trigger:hover { border-color: rgba(196, 181, 253, .28); background: rgba(139, 92, 246, .08); }
.user-menu__dropdown {
  padding: .45rem;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(10, 10, 14, .94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .58), 0 0 0 1px rgba(139, 92, 246, .1);
  backdrop-filter: blur(22px) saturate(150%);
}
.user-menu__item { border-radius: 8px; }

.market-main,
.dashboard-main,
.pdp-main,
.cart-main,
.redeem-main,
.delivery-main {
  padding-top: clamp(2.25rem, 5vw, 4.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.market-hero { margin-bottom: 1.35rem; }
.market-hero__title,
.dash-hero__title,
.pdp-title,
.redeem-title,
.delivery-title,
.legal-head h1 {
  color: #fff;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.market-hero__sub,
.dash-hero .market-hero__sub,
.pdp-desc,
.redeem-sub,
.delivery-sub {
  max-width: 640px;
  margin-top: .45rem;
  color: #8d8b98;
  font-size: .92rem;
  line-height: 1.55;
}

.market-toolbar {
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .55rem;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, .022);
}
.market-select {
  appearance: none;
  padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #9b99a6 50%),
    linear-gradient(135deg, #9b99a6 50%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, .03), rgba(255, 255, 255, .03));
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px),
    0 0;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  background-repeat: no-repeat;
}
.market-search__input,
.market-select,
.field__input,
.auth-field input,
.reseller-field__input,
.reseller-field__textarea,
.redeem-field input {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 11px;
  background: rgba(0, 0, 0, .28);
  color: #f5f5f7;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.market-search__input:focus,
.market-select:focus,
.field__input:focus,
.auth-field input:focus,
.reseller-field__input:focus,
.reseller-field__textarea:focus,
.redeem-field input:focus {
  border-color: rgba(139, 92, 246, .58);
  background: rgba(10, 9, 15, .85);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .1);
  outline: none;
}
.category-bar { gap: .45rem; margin: 0 0 1.25rem; padding: .15rem 0 .3rem; overflow-x: auto; }
.category-pill {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: #9a98a6;
  font-size: .74rem;
}
.category-pill:hover,
.category-pill--active {
  color: #fff;
  border-color: rgba(196, 181, 253, .45);
  background: linear-gradient(180deg, rgba(139, 92, 246, .42), rgba(109, 40, 217, .28));
  box-shadow: 0 8px 22px rgba(139, 92, 246, .28);
}
.market-results { color: #74727e; font-size: .74rem; }

.product-grid { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); perspective: 1200px; }
.product-card {
  border-color: rgba(255, 255, 255, .08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 22, 28, .9), rgba(10, 9, 16, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 181, 253, .4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .4), 0 0 40px rgba(139, 92, 246, .18);
}
.product-card__media { aspect-ratio: 16 / 10; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.product-card__media img { transition: transform .55s var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { padding: 1.05rem; }
.product-card__title { color: #f5f4f8; font-size: .95rem; line-height: 1.35; }
.product-card__desc { min-height: 2.8em; color: #7f7d89; font-size: .76rem; line-height: 1.55; }
.product-card__price { color: #fff; font-size: 1.05rem; }
.product-card__sold { color: #74727d; }

.dash-hero {
  margin-bottom: .85rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  overflow: hidden;
}
.dash-hero__title { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
.dash-hero__glow { display: none; }
.pay-banner,
.checkout-notice {
  border-radius: 16px;
  background: rgba(6, 18, 24, .55);
  backdrop-filter: blur(12px);
}

.bloom-select { position: relative; min-width: 190px; }
.bloom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(6, 14, 18, .55);
  color: #f4f2f8;
  cursor: pointer;
}
.bloom-select__trigger i {
  width: 8px;
  height: 8px;
  border-right: 1.6px solid #b7b4c2;
  border-bottom: 1.6px solid #b7b4c2;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .28s var(--ease-spring);
}
.bloom-select.is-open .bloom-select__trigger {
  border-color: rgba(196, 181, 253, .5);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .14);
}
.bloom-select.is-open .bloom-select__trigger i { transform: rotate(225deg) translateY(-1px); }
.bloom-select__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 100%;
  padding: .4rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(8, 18, 24, .94);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(139, 92, 246, .16);
  transform-origin: top right;
  transform: scale(.94) translateY(-8px);
  opacity: 0;
  visibility: hidden;
  filter: blur(8px);
  pointer-events: none;
  transition: transform .32s var(--ease-spring), opacity .2s ease, filter .22s ease, visibility .22s;
}
.bloom-select.is-open .bloom-select__menu {
  transform: none;
  opacity: 1;
  visibility: visible;
  filter: none;
  pointer-events: auto;
}
.bloom-select__menu button {
  padding: .65rem .8rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #c8c6d2;
  text-align: left;
  cursor: pointer;
}
.bloom-select__menu button:hover,
.bloom-select__menu button.is-active {
  color: #fff;
  background: rgba(139, 92, 246, .22);
}

.cart-items {
  display: grid;
  gap: .7rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.cart-item {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(6, 16, 22, .72));
}
.cart-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cart-summary {
  border-radius: 22px;
  position: sticky;
  top: 96px;
}
.cart-pay-methods__choice {
  border-radius: 999px;
  transition: transform .2s var(--ease-out), border-color .2s, background .2s, box-shadow .2s;
}
.cart-pay-methods__choice.is-active {
  color: #fff;
  border-color: rgba(196, 181, 253, .5);
  background: linear-gradient(180deg, rgba(139, 92, 246, .45), rgba(109, 40, 217, .28));
  box-shadow: 0 10px 24px rgba(139, 92, 246, .28);
}
.cart-gift__results {
  border-radius: 16px;
  background: rgba(8, 18, 24, .96);
  transform-origin: top center;
  animation: panel-in .28s var(--ease-out);
}
.pay-layout { align-items: start; }
.pay-card,
.pay-status { border-radius: 22px; padding: 1.35rem; }
.pay-card__qr { border-radius: 18px; box-shadow: 0 16px 40px rgba(139, 92, 246, .2); }
.pay-card__value {
  padding: .75rem .85rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .08);
}
.pay-status__pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: .7rem;
  border-radius: 50%;
  background: #ddd6fe;
  box-shadow: 0 0 0 0 rgba(196, 181, 253, .7);
  animation: pay-pulse 1.6s ease-out infinite;
}
.pay-status__timer { font-size: 1.15rem; letter-spacing: -.03em; }
@keyframes pay-pulse {
  70% { box-shadow: 0 0 0 12px rgba(196, 181, 253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 181, 253, 0); }
}
.pay-done { text-align: center; }
.pay-done__mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .35), rgba(139, 92, 246, .05));
  border: 1px solid rgba(196, 181, 253, .45);
  animation: pay-pop .45s var(--ease-spring);
}
.pay-done__mark span {
  width: 18px;
  height: 10px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -2px);
}
.pay-done .pay-card__actions { justify-content: center; }
@keyframes pay-pop {
  from { transform: scale(.7); opacity: 0; filter: blur(6px); }
  to { transform: none; opacity: 1; filter: none; }
}
.user-menu__dropdown {
  border-radius: 16px;
  transform-origin: top right;
  filter: blur(8px);
}
.user-menu--open .user-menu__dropdown { filter: none; }
.dash-tabs {
  position: sticky;
  top: 92px;
  z-index: 10;
  margin-bottom: 1.15rem;
  padding: .4rem;
  border-radius: 14px;
  background: rgba(10, 10, 14, .84);
  backdrop-filter: blur(20px);
}
.pill-tabs { position: relative; gap: .25rem; }
.pill-tabs__tab {
  min-height: 38px;
  padding: .55rem .9rem;
  border-radius: 9px;
  color: #7f7d89;
  font-size: .77rem;
  font-weight: 650;
  transition: color .2s, background .2s, transform .2s;
}
.pill-tabs__tab:hover { color: #d9d7df; }
.pill-tabs__tab--active { color: #fff; background: rgba(255, 255, 255, .075); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.dash-panel--active { animation: panel-in .36s var(--ease-out) both; }
.dash-stats-grid { gap: .8rem; margin-bottom: 1rem; }
.user-stat-card {
  min-height: 118px;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .016));
}
.user-stat-card::before { height: 2px; opacity: .75; }
.user-stat-card__value { color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.user-stat-card__label { color: #777582; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }

.analytics-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 18px;
}
.analytics-card__head,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.analytics-card__head h2,
.section-heading h2 { margin-top: .35rem; color: #fff; font-size: 1.15rem; letter-spacing: -.03em; }
.analytics-card__head p,
.section-heading > span { margin-top: .25rem; color: #74727e; font-size: .76rem; }
.analytics-range { display: flex; gap: .2rem; padding: .25rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, .24); }
.analytics-range button { padding: .35rem .55rem; border: 0; border-radius: 7px; background: transparent; color: #777582; font-size: .68rem; font-weight: 700; cursor: pointer; }
.analytics-range button.is-active { color: #fff; background: rgba(139, 92, 246, .2); }
.analytics-summary { display: flex; gap: clamp(1rem, 4vw, 2.5rem); margin: 1.25rem 0 .2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.analytics-summary div { display: grid; gap: .18rem; }
.analytics-summary span { color: #706e7a; font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; }
.analytics-summary strong { color: #e9e7ee; font-size: .92rem; }
.analytics-chart { position: relative; margin-top: .65rem; min-height: 230px; overflow: hidden; }
.analytics-chart svg { display: block; width: 100%; min-width: 0; height: auto; overflow: visible; }
.analytics-gridline { stroke: rgba(255, 255, 255, .06); }
.analytics-axis-label { fill: #6a6874; font: 11px var(--font); }
.analytics-axis-label--end { text-anchor: end; }
.analytics-axis-label--day { font-size: 10px; }
.analytics-area { animation: chart-fade .45s ease both; }
.analytics-line {
  fill: none;
  stroke: #ddd6fe;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.analytics-cursor line { stroke: rgba(196, 181, 253, .45); stroke-dasharray: 3 4; }
.analytics-cursor circle { fill: #0b0b0e; stroke: #ddd6fe; stroke-width: 2; }
.analytics-hit { fill: transparent; cursor: pointer; }
.analytics-empty {
  position: absolute;
  inset: 18% 12% auto;
  padding: .85rem 1rem;
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(6, 14, 18, .72);
  color: #8b8896;
  font-size: .78rem;
  text-align: center;
  pointer-events: none;
}
.analytics-tooltip {
  position: absolute;
  display: grid;
  min-width: 104px;
  gap: .1rem;
  padding: .6rem .7rem;
  transform: translate(-50%, -100%);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  background: rgba(12, 11, 17, .95);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.analytics-tooltip span,
.analytics-tooltip small { color: #777582; font-size: .64rem; }
.analytics-tooltip strong { color: #fff; font-size: .86rem; }

.profile-panel,
.dash-order,
.referral-panel { border-radius: 17px; border: 1px solid var(--border); }
.profile-panel { padding: clamp(1rem, 3vw, 1.5rem); }
.dash-order { overflow: hidden; transition: border-color .2s, transform .2s; }
.dash-order:hover { border-color: rgba(157, 130, 255, .2); transform: translateY(-1px); }
.dash-order__toggle { padding: 1rem 1.1rem; }
.dashboard-status { border-radius: 7px; font-weight: 700; letter-spacing: .04em; }

.warranty-box {
  margin-top: .85rem;
  padding: .85rem .95rem;
  border: 1px solid rgba(157, 130, 255, .18);
  border-radius: 12px;
  background: rgba(139, 92, 246, .06);
}
.warranty-box--closed {
  border-color: var(--border);
  background: rgba(255, 255, 255, .02);
}
.warranty-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.warranty-box__row p,
.warranty-box__msg {
  margin: .2rem 0 0;
  color: #8a8894;
  font-size: .78rem;
  line-height: 1.45;
}
.warranty-box__row strong {
  color: #fff;
  font-size: .82rem;
}
.warranty-box__hint {
  opacity: .85;
}
.warranty-box__msg { margin-top: .55rem; }
.dash-order .warranty-box { margin: .15rem 1.1rem 1rem; }

.pdp-layout { gap: clamp(1.5rem, 5vw, 4rem); }
.pdp-gallery__main,
.pdp-info,
.pdp-buy {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 15, 21, .62);
}
.pdp-gallery__main { overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.pdp-buy { align-self: start; padding: clamp(1.2rem, 3vw, 1.8rem); }
.pdp-title { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
.pdp-variant { min-height: 58px; border-radius: 11px; background: rgba(255, 255, 255, .022); }
.pdp-variant--active { border-color: rgba(139, 92, 246, .58); background: rgba(139, 92, 246, .1); box-shadow: 0 0 0 3px rgba(139, 92, 246, .07); }
.pdp-add { width: 100%; min-height: 50px; }

.cart-layout { gap: 1rem; }
.cart-items,
.cart-summary,
.delivery-card,
.redeem-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(14, 14, 20, .7);
}
.cart-item { gap: 1rem; padding: 1.05rem; }
.cart-summary { padding: 1.25rem; }
.cart-summary__title { font-size: 1.05rem; }
.cart-summary__row { padding: .8rem 0; }

.reseller-apply,
.reseller-pending { padding: clamp(1.2rem, 4vw, 2.25rem); border-radius: 20px; }
.reseller-apply__layout { gap: clamp(1.4rem, 4vw, 3rem); }
.reseller-apply__title { max-width: 560px; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -.03em; }
.reseller-perks { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; color: #aaa8b3; }
.reseller-perks li { padding: .55rem 0; }
.reseller-tier-preview { display: grid; gap: .45rem; margin-top: 1.5rem; }
.reseller-tier-preview__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .72rem .8rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .022);
}
.reseller-tier-preview__row span { display: grid; gap: .12rem; color: #d4d2da; font-size: .78rem; font-weight: 650; }
.reseller-tier-preview__row small { color: #686671; font-size: .63rem; font-weight: 500; }
.reseller-tier-preview__row strong { color: #ad99ff; font-size: .78rem; white-space: nowrap; }
.reseller-apply__card {
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: rgba(5, 5, 8, .42);
}
.reseller-apply__card h3 { margin: .45rem 0 .3rem; font-size: 1.25rem; }
.reseller-apply__card > p { color: #7f7d89; font-size: .76rem; line-height: 1.55; }
.reseller-apply__form { gap: .85rem; margin-top: 1.15rem; }
.reseller-apply__form .btn { width: 100%; margin-top: .25rem; }
.reseller-apply__card > .btn--ghost { width: 100%; margin-top: .55rem; }
.reseller-tier-card,
.reseller-catalog-preview,
.reseller-shop,
.reseller-balance-panel,
.reseller-api-panel,
.reseller-orders-panel,
.reseller-program-info,
.reseller-branding-panel { margin-bottom: 1rem; padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: 17px; }
.reseller-tier-card__head { align-items: center; }
.reseller-tier-card__head h2 { margin-top: .35rem; font-size: 1.25rem; letter-spacing: -.03em; }
.reseller-tier-card__desc { margin: 1rem 0; color: #8a8894; font-size: .8rem; }
.reseller-tier-progress { height: 7px; overflow: hidden; border-radius: 20px; background: rgba(255, 255, 255, .06); }
.reseller-tier-progress__bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6d28d9, #c4b5fd); box-shadow: 0 0 18px rgba(139, 92, 246, .4); transition: width .8s var(--ease-out); }
.reseller-tier-card__stat { display: flex; justify-content: space-between; margin-top: .7rem; color: #777582; font-size: .7rem; }
.reseller-tier-card__stat strong { color: #d8d6de; }
.reseller-catalog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .65rem; margin-top: 1rem; }
.reseller-catalog-item { display: flex; justify-content: space-between; gap: .8rem; min-height: 92px; padding: .85rem; border: 1px solid rgba(255, 255, 255, .07); border-radius: 11px; background: rgba(255, 255, 255, .02); }
.reseller-catalog-item > div { display: grid; align-content: start; gap: .25rem; }
.reseller-catalog-item strong { color: #e6e4eb; font-size: .78rem; }
.reseller-catalog-item span { color: #706e7a; font-size: .65rem; }
.reseller-catalog-item p { display: grid; align-content: start; justify-items: end; gap: .15rem; white-space: nowrap; }
.reseller-catalog-item b { color: #ad98ff; font-size: .82rem; }
.reseller-catalog-item s { color: #5f5d67; font-size: .68rem; }
.reseller-catalog-item em { color: #55d592; font-size: .6rem; font-style: normal; }
.reseller-tier-row { border-radius: 10px; }
.reseller-tier-row--active { border-color: rgba(139, 92, 246, .36); background: rgba(139, 92, 246, .09); }

.referral-panel { padding: clamp(1rem, 3vw, 1.5rem); }
.referral-card,
.referral-stat { border-color: rgba(255, 255, 255, .075); background: rgba(255, 255, 255, .018); }
.referral-copy-input,
.referral-embed { background: rgba(0, 0, 0, .3); color: #d8d6de; }

.auth-page,
.login-page { background: radial-gradient(38rem 30rem at 50% 28%, rgba(109, 40, 217, .14), transparent 70%); }
.auth-panel { width: min(100%, 470px); }
.auth-card,
.login-card {
  padding: clamp(1.35rem, 4vw, 2rem);
  border-color: rgba(255, 255, 255, .12);
  border-radius: 19px;
  background: rgba(12, 12, 17, .78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.auth-card h1 { font-size: 1.45rem; letter-spacing: -.04em; }
.auth-card__sub { margin-top: .5rem; color: #7f7d89; line-height: 1.55; }
.auth-field { gap: .38rem; margin-top: .9rem; }
.auth-field span,
.reseller-field > span { color: #8a8894; font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.auth-error:not(:empty) { padding: .65rem .75rem; border: 1px solid rgba(255, 105, 117, .2); border-radius: 9px; background: rgba(255, 105, 117, .07); }

.admin-tabs { gap: .25rem; padding: .3rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .022); }
.admin-tab { min-height: 36px; padding: .48rem .72rem; border-radius: 8px; color: #7d7b87; }
.admin-tab--active { color: #fff; background: rgba(255, 255, 255, .07); }
.manage-head,
.manage-toolbar,
.manage-table-wrap,
.input-section,
.progress-section,
.results-wrap { border-radius: 16px; }
.manage-table th { color: #6f6d78; background: rgba(255, 255, 255, .025); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
.manage-table td { color: #aaa8b2; border-color: rgba(255, 255, 255, .055); }
.manage-table tr:hover td { background: rgba(255, 255, 255, .018); }

.site-footer { border-top-color: rgba(255, 255, 255, .06); background: rgba(0, 0, 0, .24); }

.docs-shell { display: grid; gap: 1rem; margin-top: 1rem; }
.docs-hero {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 22px;
}
.docs-hero h2 {
  margin: .35rem 0 0;
  font-size: 1.45rem;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.docs-hero p:last-child {
  max-width: 42rem;
  margin-top: .7rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.docs-grid {
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(0, 1.4fr);
  gap: 1rem;
  align-items: start;
}
.docs-cred,
.docs-group {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 20px;
}
.docs-kicker {
  margin: 0 0 .35rem;
  color: #c4b5fd;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.docs-cred h3,
.docs-group__head h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -.03em;
}
.docs-group__head p {
  margin: .45rem 0 1rem;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.55;
}
.docs-secret {
  display: flex;
  gap: .5rem;
  align-items: stretch;
  margin: .85rem 0 .7rem;
}
.docs-secret code {
  flex: 1;
  min-width: 0;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, .38);
  font-size: .78rem;
  line-height: 1.45;
  word-break: break-all;
}
.docs-cred__actions { display: flex; gap: .5rem; }
.docs-warn {
  margin: .75rem 0 0;
  color: #f6d58a;
  font-size: .78rem;
  line-height: 1.45;
}
.docs-chips { display: grid; gap: .55rem; margin-top: 1rem; }
.docs-chip {
  display: grid;
  gap: .2rem;
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease-out);
}
.docs-chip:hover { border-color: rgba(196, 181, 253, .32); background: rgba(139, 92, 246, .07); transform: translateY(-1px); }
.docs-chip span {
  color: var(--text-muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.docs-chip code { font-size: .74rem; color: #dddce6; word-break: break-all; }
.docs-main { display: grid; gap: 1rem; }
.docs-acc {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .018);
  overflow: hidden;
}
.docs-acc + .docs-acc { margin-top: .55rem; }
.docs-acc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  padding: .85rem .95rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.docs-acc__trigger:hover { background: rgba(255, 255, 255, .03); }
.docs-acc__title,
.docs-acc__meta strong { font-size: .9rem; letter-spacing: -.02em; }
.docs-acc__meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.docs-acc__meta em {
  color: var(--text-muted);
  font-style: normal;
  font-size: .74rem;
}
.docs-acc__meta code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
}
.docs-acc__chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid #9b99a6;
  border-bottom: 1.6px solid #9b99a6;
  transform: rotate(45deg);
  transition: transform .32s var(--ease-spring);
}
.docs-acc.is-open .docs-acc__chevron { transform: rotate(225deg); }
.docs-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s var(--ease-out);
}
.docs-acc.is-open .docs-acc__panel { grid-template-rows: 1fr; }
.docs-acc__inner {
  overflow: hidden;
  padding: 0 .95rem;
}
.docs-acc.is-open .docs-acc__inner { padding-bottom: 1rem; }
.docs-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: .84rem;
  line-height: 1.65;
}
.docs-variant-list { display: grid; gap: .55rem; }
.docs-variant {
  display: grid;
  grid-template-columns: minmax(140px, .7fr) minmax(0, 1.3fr) auto;
  gap: .65rem;
  align-items: center;
  padding: .75rem .8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
}
.docs-variant strong { display: block; font-size: .82rem; }
.docs-variant span { display: block; margin-top: .15rem; color: var(--text-muted); font-size: .72rem; }
.docs-variant code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .68rem;
  color: #c9c7d4;
}
.docs-method {
  flex: 0 0 auto;
  padding: .18rem .45rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.docs-method--get { color: #93c5fd; background: rgba(59, 130, 246, .14); }
.docs-method--post { color: #86efac; background: rgba(16, 185, 129, .14); }
.docs-endpoint__desc {
  margin: 0 0 .75rem;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.55;
}
.docs-code {
  margin: 0 0 .7rem;
  padding: .85rem .9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, .38);
  color: #d7d5e0;
  font-size: .74rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}
.docs-code--out { border-color: rgba(139, 92, 246, .18); }

@media (max-width: 900px) {
  .docs-grid,
  .docs-variant { grid-template-columns: 1fr; }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes chart-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes chart-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .pdp-layout { grid-template-columns: 1fr; }
  .reseller-apply__layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .reseller-perks { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  html { font-size: 15px; }
  .site-header { top: 0; width: 100%; border-radius: 0; }
  .site-header__inner { min-height: 54px; }
  .site-brand__banner { max-width: 114px; }
  .user-menu__name { display: none; }
  .site-header__actions > .btn { display: none; }
  .market-main,
  .dashboard-main,
  .pdp-main,
  .cart-main,
  .redeem-main,
  .delivery-main { padding-top: 1.75rem; }
  .market-toolbar { display: grid; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 116px 1fr; }
  .product-card__media { height: 100%; min-height: 136px; aspect-ratio: auto; border-right: 1px solid rgba(255, 255, 255, .06); border-bottom: 0; }
  .product-card__badge, .product-card__cat { font-size: .55rem; }
  .dash-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-stat-card { min-height: 100px; }
  .dash-tabs { top: 69px; margin-left: -1rem; margin-right: -1rem; border-radius: 0; border-left: 0; border-right: 0; overflow: visible; }
  .pill-tabs--block { min-width: 0; }
  .scroll-row__track.pill-tabs--block { min-width: 0; }
  .analytics-card__head,
  .section-heading { display: grid; }
  .analytics-summary { justify-content: space-between; gap: .7rem; }
  .analytics-chart { overflow-x: auto; }
  .cart-item { grid-template-columns: 70px 1fr auto; }
  .cart-item__qty { grid-column: 2; }
  .cart-item__total { grid-column: 3; }
  .reseller-catalog-list { grid-template-columns: 1fr; }
  .reseller-tier-card__head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Icons, edge normalization, and admin inventory intelligence */
.ui-icon { flex: 0 0 auto; display: block; }
.site-nav__link,
.user-menu__item,
.profile-panel__banner-text,
.admin-tab { display: flex; align-items: center; gap: .45rem; }
.cart-btn {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border-radius: 12px;
}
.cart-btn__badge {
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #08080c;
  border-radius: 9px;
  font-size: .58rem;
}
.profile-panel__banner-text > div { display: grid; gap: .15rem; }

.pill-tabs,
.tier-tabs,
.results-view-tabs {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
  overflow: visible;
}
.pill-tabs__tab,
.tier-tab,
.results-view-tab { border-radius: 9px; }
.pill-tabs__tab:first-child,
.pill-tabs__tab:last-child,
.tier-tab:first-child,
.tier-tab:last-child { border-radius: 9px; }
.tier-tabs { display: flex; flex-wrap: wrap; gap: 3px; }
.tier-tab {
  min-height: 34px;
  padding: .45rem .68rem;
  border: 0;
  background: transparent;
  color: #777582;
  font-size: .7rem;
  font-weight: 700;
  text-transform: capitalize;
  cursor: pointer;
}
.tier-tab:hover { color: #d8d6de; }
.tier-tab--active { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045); }

.results-view-tabs {
  display: inline-flex;
  gap: 3px;
  margin-bottom: .85rem;
}
.results-view-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 36px;
  padding: .48rem .85rem;
  border: 0;
  background: transparent;
  color: #777582;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
.results-view-tab span { color: #9b87e9; font-size: .62rem; }
.results-view-tab.is-active { color: #fff; background: rgba(139, 92, 246, .14); }
.organizer__toolbar { grid-template-columns: minmax(150px, .75fr) minmax(150px, .75fr) minmax(220px, 1.5fr); }

.account-card__inventory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  margin-top: .75rem;
}
.account-card__inventory > span {
  display: grid;
  gap: .12rem;
  min-width: 0;
  padding: .48rem;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 9px;
  background: rgba(255, 255, 255, .02);
}
.account-card__inventory small { overflow: hidden; color: #66646e; font-size: .55rem; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.account-card__inventory strong { color: #dedce4; font-size: .72rem; }
.account-card__games { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.account-card__games > span:not(.account-card__games-empty) {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .42rem;
  border: 1px solid rgba(118, 168, 255, .12);
  border-radius: 7px;
  background: rgba(76, 120, 210, .06);
  color: #9daed3;
  font-size: .59rem;
}
.account-card__games b { color: #6f8bc6; font-size: .55rem; }
.account-card__games em,
.account-card__games-empty { color: #66646f; font-size: .6rem; font-style: normal; }

.admin-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.admin-game-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: .85rem;
  padding: .9rem;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
}
.admin-game-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: #a995f7;
  font-size: .7rem;
  font-weight: 800;
}
.admin-game-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.admin-game-card__body h3 { margin: .25rem 0 .55rem; color: #eeeef2; font-size: .9rem; }
.admin-game-card__stats { display: flex; flex-wrap: wrap; gap: .65rem; color: #6e6c77; font-size: .62rem; }
.admin-game-card__stats strong { color: #aaa8b3; font-weight: 700; }

.account-modal__body { display: grid; gap: .85rem; }
.account-modal__section {
  padding: .9rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: rgba(255, 255, 255, .018);
}
.account-modal__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin-top: .7rem;
}
.account-modal__stats > div { display: grid; gap: .15rem; padding: .55rem; border-radius: 9px; background: rgba(0, 0, 0, .2); }
.account-modal__stats span { color: #686671; font-size: .58rem; text-transform: uppercase; }
.account-modal__stats strong { color: #dddbe3; font-size: .76rem; }
.account-modal__games { display: grid; gap: .35rem; margin-top: .65rem; }
.account-modal__games > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .65rem; border-radius: 9px; background: rgba(0, 0, 0, .2); }
.account-modal__games span { display: grid; color: #cfccd6; font-size: .72rem; }
.account-modal__games small { color: #5f5d67; font-size: .57rem; }
.account-modal__games strong { color: #9681e6; font-size: .68rem; white-space: nowrap; }
.account-modal__games p { color: #6f6d77; font-size: .7rem; }
.account-modal__raw summary { padding: .6rem 0; color: #777582; font-size: .68rem; cursor: pointer; }

@media (max-width: 720px) {
  .organizer__toolbar { grid-template-columns: 1fr; }
  .account-modal__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-games-grid { grid-template-columns: 1fr; }
}

.manage-application { max-width: 25rem; }
.manage-application > span {
  overflow: hidden;
  max-width: 25rem;
  color: #aaa8b3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manage-inline-link {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a84ed;
  font-size: .64rem;
  font-weight: 700;
  cursor: pointer;
}
.manage-inline-link:hover { color: #c0b1fa; }
.reseller-application-detail { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: 1rem 0; }
.reseller-application-detail > div {
  display: grid;
  gap: .28rem;
  padding: .75rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
}
.reseller-application-detail span { color: #6e6c77; font-size: .6rem; font-weight: 700; text-transform: uppercase; }
.reseller-application-detail strong { color: #e4e2e8; font-size: .8rem; }
.reseller-application-detail__note { grid-column: 1 / -1; }
.reseller-application-detail__note p { margin: 0; color: #bbb8c3; font-size: .75rem; line-height: 1.65; white-space: pre-wrap; }

.reseller-shop__filters { display: grid; gap: .75rem; margin: 1rem 0 1.15rem; }
.reseller-shop__products { display: grid; gap: .85rem; }
.reseller-delivery-card {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
  padding: .95rem;
  border: 1px solid rgba(84, 217, 144, .22);
  border-radius: 12px;
  background: rgba(84, 217, 144, .06);
}
.reseller-delivery-card h3 { margin: .2rem 0 .15rem; font-size: .95rem; }
.reseller-delivery-card p { margin: 0; color: #8a8894; font-size: .75rem; }
.reseller-product {
  padding: .9rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px;
  background: rgba(255, 255, 255, .02);
}
.reseller-product__head h3 { margin: 0; font-size: .95rem; }
.reseller-product__head p { margin: .25rem 0 0; color: #7f7d89; font-size: .72rem; }
.reseller-variant-list { display: grid; gap: .45rem; margin-top: .8rem; }
.reseller-variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: .75rem;
  align-items: center;
  padding: .7rem .75rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 11px;
  background: rgba(0, 0, 0, .18);
}
.reseller-variant-row--oos { opacity: .55; }
.reseller-variant-row strong { display: block; color: #e6e4eb; font-size: .78rem; }
.reseller-variant-row span { color: #706e7a; font-size: .65rem; }
.reseller-variant-row__price { display: grid; justify-items: end; gap: .1rem; }
.reseller-variant-row__price b { color: #ad98ff; font-size: .84rem; }
.reseller-variant-row__price s { color: #5f5d67; font-size: .68rem; }
.reseller-variant-row__buy { display: flex; align-items: center; gap: .45rem; }
.reseller-buy-qty {
  width: 4.2rem;
  min-height: 36px;
  padding: .35rem .45rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(0, 0, 0, .28);
  color: #f7f7fb;
}
.reseller-api-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: 1.15rem; align-items: start; }
.reseller-api-key-block__label,
.reseller-api-endpoints__label {
  display: block;
  margin-bottom: .45rem;
  color: #8a8894;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.reseller-api-key-box { display: flex; align-items: stretch; gap: .5rem; margin-bottom: .65rem; }
.reseller-api-key-box code {
  flex: 1;
  min-width: 0;
  padding: .7rem .85rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  background: rgba(0, 0, 0, .35);
  font-size: .78rem;
  line-height: 1.4;
  word-break: break-all;
}
.reseller-api-key-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.reseller-api-key__warn { margin: .65rem 0 0; color: #fde68a; font-size: .78rem; }
.reseller-api-endpoints__base,
.reseller-api-endpoints__auth { margin: .55rem 0 0; color: #8a8894; font-size: .78rem; line-height: 1.5; }
.reseller-api-endpoints__base code,
.reseller-api-endpoints__auth code {
  padding: .12rem .4rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(0, 0, 0, .25);
  font-size: .74rem;
}
.reseller-api-endpoints__list { display: grid; gap: .45rem; }
.reseller-api-endpoint {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem .75rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 11px;
  background: rgba(255, 255, 255, .02);
}
.reseller-api-endpoint__method {
  flex-shrink: 0;
  padding: .2rem .45rem;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.reseller-api-endpoint__method--get { color: #93c5fd; background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .22); }
.reseller-api-endpoint__method--post { color: #6ee7b7; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .22); }
.reseller-api-endpoint__body { display: grid; gap: .28rem; min-width: 0; }
.reseller-api-endpoint__path { font-size: .78rem; word-break: break-all; }
.reseller-api-endpoint__desc { margin: 0; color: #8a8894; font-size: .74rem; }
.reseller-api-docs {
  margin: .15rem 0 0;
  padding: .65rem .7rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  background: rgba(0, 0, 0, .35);
  color: #cfcde0;
  font-size: .72rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .reseller-application-detail { grid-template-columns: 1fr; }
  .reseller-application-detail__note { grid-column: auto; }
  .reseller-variant-row,
  .reseller-api-layout { grid-template-columns: 1fr; }
  .reseller-variant-row__price,
  .reseller-variant-row__buy { justify-items: start; }
}

/* Dashboard profile alignment and upload controls */
.profile-panel { padding: 0; overflow: hidden; }
.profile-panel__banner {
  min-height: 76px;
  padding: 1rem 1.25rem;
}
.profile-panel__banner-text {
  flex-direction: row;
  align-items: center;
  gap: .75rem;
}
.profile-panel__discord-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(248, 113, 113, .16);
  border-radius: 11px;
  background: rgba(248, 113, 113, .08);
  color: #fca5a5;
}
.profile-panel__banner--linked .profile-panel__discord-icon {
  border-color: rgba(139, 92, 246, .22);
  background: rgba(139, 92, 246, .12);
  color: #b7a5fb;
}
.profile-panel__banner-copy { display: grid; gap: .16rem; min-width: 0; }
.profile-panel__banner-copy span { line-height: 1.35; }
.profile-panel__head { padding: 1.25rem; }
.profile-logo__preview {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 15px;
}
.profile-logo__preview--head {
  width: 52px;
  height: 52px;
  border-width: 1px;
  border-radius: 13px;
}
.profile-logo__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.profile-logo__pick { position: relative; width: max-content; cursor: pointer; }
.key-shop .mesh-bg {
  background:
    radial-gradient(ellipse 75% 48% at 50% -12%, rgba(var(--key-shop-rgb), .28), transparent 67%),
    radial-gradient(ellipse 36% 40% at 92% 30%, rgba(var(--key-shop-rgb), .12), transparent),
    radial-gradient(ellipse 34% 38% at 5% 82%, rgba(var(--key-shop-rgb), .1), transparent);
}
.key-shop .grain-orbs span:nth-child(1) {
  background: radial-gradient(circle, rgba(var(--key-shop-rgb), 0.62), transparent 70%);
}
.key-shop .grain-orbs span:nth-child(2) {
  background: radial-gradient(circle, rgba(var(--key-shop-rgb), 0.38), transparent 70%);
}
.key-shop .grain-orbs span:nth-child(3) {
  background: radial-gradient(circle, rgba(var(--key-shop-rgb), 0.26), transparent 70%);
}
.key-shop .auth-field input {
  border-radius: 14px;
  border-color: rgba(var(--key-shop-rgb), .28);
}
.key-shop .auth-field input:focus {
  border-color: rgba(var(--key-shop-rgb), .72);
  box-shadow: 0 0 0 4px rgba(var(--key-shop-rgb), .16), 0 10px 28px rgba(var(--key-shop-rgb), .18);
}
.key-shop .btn--primary,
.key-shop .key-shop__card .btn--primary {
  background: var(--key-shop-accent);
  background-image: none;
  box-shadow: 0 12px 32px rgba(var(--key-shop-rgb), .42), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.key-shop .btn--ghost:hover:not(:disabled) {
  border-color: rgba(var(--key-shop-rgb), .5);
  background: rgba(var(--key-shop-rgb), .12);
}
.reseller-field--logo { grid-column: 1 / -1; }
.key-shop__owned a { color: #fff; }
.reseller-shop-url a { color: #fff; }
.profile-field--logo { grid-column: 1 / -1; }
.profile-logo {
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px;
  background: rgba(255, 255, 255, .018);
}

.page-swap { animation: page-forward .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes page-forward {
  from { opacity: 0; transform: translate3d(36px, 0, 0); filter: blur(8px); }
  to { opacity: 1; }
}

.pay-stage { width: 100%; overflow: hidden; }
.pay-stage__track {
  display: flex;
  width: 200%;
  transform: translate3d(0, 0, 0);
  transition: transform .62s cubic-bezier(.77, 0, .18, 1);
  will-change: transform;
}
.pay-stage.is-done .pay-stage__track { transform: translate3d(-50%, 0, 0); }
.pay-stage__pane { width: 50%; flex: 0 0 50%; min-width: 0; }

.pay-card__amount { animation: num-in .55s var(--ease-spring) both; }
@keyframes num-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(12px); }
  to { opacity: 1; filter: none; transform: none; }
}
.pay-done__mark span { animation: check-draw .5s .12s var(--ease-spring) both; }
@keyframes check-draw {
  from { opacity: 0; filter: blur(8px); transform: rotate(-80deg) scale(.45); }
  to { opacity: 1; filter: none; transform: rotate(-45deg) translate(1px, -2px); }
}

.sliding-pills { position: relative; display: flex; align-items: center; gap: .45rem; width: max-content; min-width: 100%; }
.sliding-pills.pill-tabs,
.pill-tabs .sliding-pills { width: max-content; min-width: 100%; }
.slide-pill {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #a78bfa, #6d28d9);
  box-shadow: 0 8px 22px rgba(124, 58, 237, .28);
  transition: transform .42s cubic-bezier(.34, 1.4, .64, 1), width .42s cubic-bezier(.34, 1.4, .64, 1), height .42s cubic-bezier(.34, 1.4, .64, 1), opacity .2s ease;
  pointer-events: none;
}
.sliding-pills .category-pill,
.sliding-pills .pill-tabs__tab { position: relative; z-index: 1; }
.sliding-pills .category-pill--active,
.sliding-pills .pill-tabs__tab--active {
  color: #fff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-swap,
  .pay-card__amount,
  .pay-done__mark,
  .pay-done__mark span,
  .grain-orbs span { animation: none; }
  .pay-stage__track,
  .slide-pill { transition: none; }
}

@media (max-width: 720px) {
  .profile-panel__banner { align-items: stretch; }
  .profile-panel__banner-text { align-items: center; }
  .profile-panel__actions .btn { width: 100%; }
}

.market-main,
.catalog.dashboard-main,
.catalog.cart-main { padding-top: 1.5rem; }
.catalog.redeem-main {
  display: block;
  place-items: normal;
  justify-items: stretch;
  width: 100%;
  padding: 1.5rem 1.25rem 4rem;
}
.catalog.redeem-main .catalog-head { grid-template-columns: minmax(0, 1fr); }
.catalog .account-panel {
  border: 1px solid rgba(167, 139, 250, .16);
  background: rgba(16, 12, 24, .72);
}
.catalog .redeem-form,
.catalog .redeem-field,
.catalog .redeem-field input { width: 100%; min-width: 0; }
.catalog-head__balance { justify-self: end; text-align: right; }
.catalog-head__balance span {
  display: block;
  color: #c4b5fd;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.catalog-head__balance strong {
  display: block;
  margin-top: .15rem;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
}
.catalog-stage { display: grid; gap: 1rem; align-content: start; }
.account-panel { padding: 1.2rem 1.25rem; border-radius: 12px; }
.catalog-rail .btn { width: 100%; margin-top: .85rem; }
.catalog-rail .category-pill[aria-current] { cursor: default; }
.catalog .balance-ledger { margin-top: 0; border-radius: 12px; }
.catalog .user-stat-card { border-radius: 12px; }
.catalog .dash-order,
.catalog .profile-panel,
.catalog .analytics-card { border-radius: 12px; }
.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(167, 139, 250, .22);
}
.catalog-head__title {
  margin: .2rem 0 0;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .95;
}
.catalog-head__tools { margin: 0; padding: 0; border: 0; background: transparent; }
.catalog-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}
.catalog-rail { position: sticky; top: 76px; }
.catalog-rail__label {
  margin: 0 0 .55rem;
  color: #c4b5fd;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.catalog-rail .sliding-pills {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  gap: .28rem;
}
.catalog-rail .category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 8px;
  padding: .62rem .75rem;
  text-align: left;
}
.catalog-rail .category-pill span { opacity: .72; font-variant-numeric: tabular-nums; }
.catalog-rail .slide-pill { border-radius: 8px; }
.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #140e1f;
}
.catalog-card .product-card__media { aspect-ratio: 5 / 4; border-bottom: 0; }
.catalog-card .product-card__desc { display: none; }
.catalog-card .product-card__body { padding: .85rem .95rem 1rem; }
.catalog-card .product-card__title { font-size: 1rem; letter-spacing: -.02em; }
.catalog-card .product-card__price {
  display: inline-flex;
  padding: .16rem .5rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(124, 58, 237, .4);
  border: 1px solid rgba(196, 181, 253, .4);
  font-size: .8rem;
}
.catalog-card:hover { transform: translateY(-4px); }
.dash-tabs { top: 64px; }
.pay-layout {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, .3);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(139, 92, 246, .1), rgba(12, 8, 20, .82));
}
.pay-layout .pay-card,
.pay-layout .pay-status {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.pay-layout .pay-status { border-left: 1px dashed rgba(196, 181, 253, .4); }

@media (max-width: 900px) {
  .catalog-head,
  .catalog-body { grid-template-columns: 1fr; }
  .catalog-rail { position: static; overflow-x: auto; }
  .catalog-rail .sliding-pills { flex-direction: row; width: max-content; }
  .catalog-rail .category-pill { width: auto; }
  .pay-layout .pay-status { border-left: 0; border-top: 1px dashed rgba(196, 181, 253, .4); }
}
@media (max-width: 680px) {
  .catalog .product-grid { grid-template-columns: 1fr 1fr; }
  .catalog-card { display: flex; flex-direction: column; }
  .catalog-card .product-card__media {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    border-right: 0;
  }
}

.reseller-stage .catalog-stage > .glass,
.reseller-stage .catalog-stage > .dash-panel,
.reseller-stage .docs-shell,
.reseller-stage .docs-group,
.reseller-stage .docs-cred {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}
.reseller-stage .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .75rem;
}
.reseller-stage .section-heading h2,
.reseller-stage .docs-group h3,
.reseller-stage .reseller-balance-topup h2,
.reseller-stage .reseller-program-info h2 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -.03em;
}
.reseller-stage .reseller-catalog-list,
.reseller-stage .reseller-shop__products,
.reseller-stage .dashboard-orders,
.reseller-stage .docs-shell {
  display: grid;
  gap: .7rem;
}
.reseller-stage .reseller-product,
.reseller-stage .reseller-delivery-card,
.reseller-stage .dashboard-order,
.reseller-stage .docs-acc,
.reseller-stage .docs-cred,
.reseller-stage .docs-group,
.reseller-stage .reseller-shop-url,
.reseller-stage .reseller-balance-topup,
.reseller-stage .user-stat-card {
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, .16);
  background: rgba(16, 12, 24, .72);
}
.reseller-stage .reseller-product,
.reseller-stage .reseller-delivery-card,
.reseller-stage .dashboard-order,
.reseller-stage .docs-cred,
.reseller-stage .docs-group,
.reseller-stage .reseller-shop-url,
.reseller-stage .reseller-balance-topup { padding: 1rem 1.05rem; }
.reseller-stage .reseller-product h3 { margin: 0; font-size: .98rem; }
.reseller-stage .reseller-product__head p,
.reseller-stage .reseller-balance-panel__hint,
.reseller-stage .reseller-tier-card__desc,
.reseller-stage .reseller-shop-url p,
.reseller-stage .docs-group__head p {
  margin: .25rem 0 0;
  color: #8d849e;
  font-size: .8rem;
  line-height: 1.45;
}
.reseller-stage .reseller-shop__filters { display: grid; gap: .65rem; margin-bottom: .85rem; }
.reseller-stage .reseller-txn {
  display: grid;
  grid-template-columns: 1.2fr .7fr .8fr 1.3fr;
  gap: .6rem;
  align-items: center;
  padding: .7rem 0;
  border-top: 1px solid rgba(167, 139, 250, .14);
  font-size: .82rem;
}
.reseller-stage .reseller-feature-list {
  display: grid;
  gap: .45rem;
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
}
.reseller-stage .reseller-feature-list li {
  padding: .7rem .85rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, .16);
  background: rgba(16, 12, 24, .72);
}
.reseller-page .reseller-apply,
.reseller-page .reseller-pending {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.reseller-page .reseller-apply__layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}
.reseller-page .reseller-apply__card,
.reseller-page .reseller-pending__inner {
  padding: 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, .16);
  background: rgba(16, 12, 24, .72);
}
.reseller-page .reseller-perks { display: grid; gap: .4rem; margin-top: .8rem; }
.reseller-page .reseller-perks li {
  padding: .55rem .7rem;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, .14);
  background: rgba(255, 255, 255, .03);
}
@media (max-width: 900px) {
  .reseller-page .reseller-apply__layout { grid-template-columns: 1fr; }
  .reseller-stage .reseller-txn { grid-template-columns: 1fr 1fr; }
}

.crypto-steps { display: grid; gap: .28rem; }
.crypto-steps .category-pill {
  display: flex;
  width: 100%;
  border-radius: 8px;
  justify-content: flex-start;
  cursor: default;
}
.crypto-steps .category-pill--active {
  color: #fff;
  background: linear-gradient(180deg, #a78bfa, #6d28d9);
  border-color: transparent;
  box-shadow: none;
}
.crypto-invoice {
  display: grid;
  justify-items: start;
  gap: .7rem;
}
.crypto-invoice .pay-card__qr { width: min(220px, 100%); height: auto; margin: 0; }
.crypto-invoice .pay-card__amount {
  margin: 0;
  text-align: left;
  font-size: 1.55rem;
  letter-spacing: -.03em;
}
.crypto-invoice .pay-card__value { width: 100%; word-break: break-all; }
.catalog-cart .cart-summary { position: static; }
.catalog-cart .cart-item { border-radius: 12px; }
.catalog-cart .cart-summary__checkout,
.catalog-cart .cart-summary__continue { width: 100%; margin-top: .45rem; }
.catalog-rail__note {
  margin: .8rem 0 0;
  color: #8d849e;
  font-size: .75rem;
  line-height: 1.45;
}
