/* React UI refresh — intentionally loaded after the legacy foundation styles. */
:root {
  --bg: #050508;
  --bg-elevated: rgba(18, 18, 25, 0.82);
  --bg-panel: rgba(16, 16, 23, 0.72);
  --bg-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f7f7fb;
  --text-secondary: #b8b7c3;
  --text-muted: #777684;
  --accent: #8868f8;
  --accent-2: #b09cff;
  --accent-glow: rgba(136, 104, 248, 0.3);
  --green: #54d990;
  --red: #ff747f;
  --amber: #f4bd62;
  --blue: #76a8ff;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

html { font-size: 16px; }
body {
  background:
    radial-gradient(70rem 42rem at 50% -18rem, rgba(119, 82, 239, .2), transparent 70%),
    #050508;
  color: var(--text);
  letter-spacing: -.008em;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

::selection { color: #fff; background: rgba(139, 92, 246, .55); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07070a; }
::-webkit-scrollbar-thumb { background: #292733; border: 3px solid #07070a; border-radius: 20px; }

.shell {
  width: min(100%, 1240px);
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.mesh-bg {
  background:
    radial-gradient(ellipse 75% 48% at 50% -12%, rgba(139, 92, 246, .24), transparent 67%),
    radial-gradient(ellipse 36% 40% at 92% 30%, rgba(69, 103, 235, .08), transparent),
    radial-gradient(ellipse 34% 38% at 5% 82%, rgba(181, 71, 220, .08), transparent);
}
.grid-bg { opacity: .52; background-size: 72px 72px; }
.grain-orbs { opacity: .7; }

.glass, .panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .014));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.eyebrow,
.market-hero__eyebrow {
  color: #b7a7ff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.btn {
  min-height: 42px;
  gap: .45rem;
  padding: .68rem 1rem;
  border-radius: 11px;
  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(168, 139, 250, .92);
  outline-offset: 3px;
}
.btn--primary {
  color: #fff;
  border: 1px solid rgba(194, 178, 255, .3);
  background: linear-gradient(115deg, #7652eb, #906cf6 52%, #6e5ee9);
  box-shadow: 0 10px 30px rgba(119, 82, 235, .24), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn--primary:hover:not(:disabled) {
  filter: none;
  box-shadow: 0 13px 36px rgba(119, 82, 235, .34), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.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(173, 151, 255, .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 {
  height: auto;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
  background: rgba(5, 5, 8, .7);
  backdrop-filter: blur(22px) saturate(150%);
}
.site-header__inner { min-height: 68px; padding-top: .65rem; padding-bottom: .65rem; }
.site-brand__banner { width: auto; max-width: 142px; object-fit: contain; }
.site-nav {
  gap: .25rem;
  padding: .28rem;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}
.site-nav__link {
  padding: .5rem .76rem;
  border-radius: 8px;
  color: #8d8b98;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav__link:hover,
.site-nav__link--active { color: #fff; background: rgba(255, 255, 255, .065); }
.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(172, 148, 255, .28); background: rgba(139, 92, 246, .07); }
.user-menu__dropdown {
  padding: .45rem;
  border-color: var(--border-strong);
  background: rgba(14, 14, 20, .96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.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: clamp(1.75rem, 4vw, 3.25rem); }
.market-hero__title,
.dash-hero__title,
.pdp-title,
.redeem-title,
.delivery-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.market-hero__sub,
.dash-hero .market-hero__sub,
.pdp-desc,
.redeem-sub,
.delivery-sub {
  max-width: 670px;
  margin-top: .85rem;
  color: #9896a4;
  font-size: clamp(.9rem, 1.4vw, 1.04rem);
  line-height: 1.7;
}

.market-toolbar {
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .55rem;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, .022);
}
.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(155, 124, 255, .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: 36px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  color: #8f8d9a;
  font-size: .75rem;
}
.category-pill:hover,
.category-pill--active { color: #fff; border-color: rgba(158, 132, 255, .28); background: rgba(139, 92, 246, .1); }
.market-results { color: #74727e; font-size: .74rem; }

.product-grid { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); }
.product-card {
  border-color: rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(12, 12, 17, .72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .025);
  transition: transform .32s var(--ease-out), border-color .25s, box-shadow .32s;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(161, 137, 255, .28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38), 0 0 45px rgba(111, 80, 220, .08);
}
.product-card__media { aspect-ratio: 16 / 10; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.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: 1rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: 22px;
  overflow: hidden;
}
.dash-hero__title { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.dash-tabs {
  position: sticky;
  top: 78px;
  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); stroke-dasharray: 3 6; }
.analytics-axis-label { fill: #5f5d68; font: 10px var(--font); }
.analytics-axis-label--end { text-anchor: end; }
.analytics-axis-label--day { font-size: 9px; }
.analytics-bar { transition: opacity .2s, filter .2s; }
.analytics-bar.has-value {
  opacity: .92;
  filter: drop-shadow(0 6px 12px rgba(139, 92, 246, .28));
  transform-box: fill-box;
  transform-origin: bottom;
  animation: analytics-bar-rise .55s cubic-bezier(.22, 1, .36, 1) both;
}
.analytics-bar.is-empty { opacity: .55; }
.analytics-bar.is-active.has-value,
.analytics-bar.has-value:hover { opacity: 1; filter: drop-shadow(0 8px 16px rgba(167, 139, 250, .45)); }
@keyframes analytics-bar-rise {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.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(10, 8, 16, .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__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(2rem, 4vw, 3.1rem); }
.pdp-variant { min-height: 58px; border-radius: 11px; background: rgba(255, 255, 255, .022); }
.pdp-variant--active { border-color: rgba(158, 132, 255, .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.75rem, 3.5vw, 2.7rem); line-height: 1.08; letter-spacing: -.045em; }
.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, #7754ea, #ab8fff); 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(157, 131, 255, .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(119, 82, 235, .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); }

@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__inner { min-height: 62px; }
  .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);
}

@media (max-width: 720px) {
  .profile-panel__banner { align-items: stretch; }
  .profile-panel__banner-text { align-items: center; }
  .profile-panel__actions .btn { width: 100%; }
}
