/* VoltUp 2026 interface polish. This file intentionally sits after styles.css
   and consolidates the visual system without touching the simulator logic. */

:root {
  --bg: #07090e;
  --surface: #10131b;
  --surface-2: #151924;
  --surface-3: #1b202c;
  --surface-soft: rgba(20, 24, 34, .78);
  --border: rgba(255, 255, 255, .075);
  --border-bright: rgba(255, 255, 255, .14);
  --text: #f6f8fb;
  --muted: #8d96a8;
  --muted-2: #646d7d;
  --lime: #c8ff38;
  --lime-soft: rgba(200, 255, 56, .1);
  --violet: #9670ff;
  --violet-soft: rgba(150, 112, 255, .12);
  --red: #ff627c;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 22px 64px rgba(0, 0, 0, .36);
  --ease-out: cubic-bezier(.2, .78, .24, 1);
}

html {
  color-scheme: dark;
  scrollbar-color: #303746 #0b0e15;
}

body {
  min-height: 100svh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(150, 112, 255, .095), transparent 29rem),
    radial-gradient(circle at 92% 46%, rgba(200, 255, 56, .045), transparent 34rem),
    linear-gradient(180deg, #080a10, #07090e 52%, #090b11);
  font-weight: 520;
  letter-spacing: -.008em;
}

body::before {
  content: '';
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

::selection { color: #080b0d; background: var(--lime); }

button,
a,
input,
select { touch-action: manipulation; }

button { letter-spacing: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.ambient { opacity: .12; filter: blur(130px); }
.ambient-one { background: #8057ff; }
.ambient-two { background: #85c33f; opacity: .07; }

/* Boot scene */
.site-loader {
  background:
    radial-gradient(ellipse at 50% -8%, rgba(189, 167, 255, .2), transparent 48%),
    radial-gradient(circle at 50% 54%, rgba(200, 255, 56, .035), transparent 32%),
    #07090e;
}

.site-loader-core { width: min(400px, 76vw); gap: 28px; }

.site-loader-brand { gap: 16px; }

.site-loader-brand img {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  border-radius: 18px;
  filter: drop-shadow(0 0 28px rgba(200, 255, 56, .22));
}

.site-loader-brand span {
  font-size: clamp(30px, 5vw, 45px);
  letter-spacing: -.07em;
}

.site-loader-track {
  height: 4px;
  background: rgba(255, 255, 255, .065);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .025);
}

.site-loader-track i {
  background: linear-gradient(90deg, #7f55ff, #b995ff 58%, var(--lime));
  box-shadow: 0 0 22px rgba(150, 112, 255, .55);
}

.site-loader-grid { opacity: .55; background-size: 54px 54px; }
.site-loader-beam { opacity: .9; }

/* Header and navigation */
.site-header {
  min-height: 72px;
  grid-template-columns: auto auto 1fr auto;
  gap: clamp(14px, 2vw, 28px);
  padding: 0 clamp(18px, 2.6vw, 38px);
  border-bottom-color: rgba(255, 255, 255, .065);
  background: rgba(8, 10, 15, .82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .17);
  backdrop-filter: blur(22px) saturate(135%);
}

.site-header > .brand { gap: 11px; }

.site-header > .brand .brand-mark {
  width: 34px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(200, 255, 56, .13);
}

.brand-name { font-size: 19px; }

.main-nav {
  justify-self: start;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 15px;
  background: rgba(18, 21, 30, .84);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.main-nav a,
.main-nav .nav-button {
  min-height: 38px;
  gap: 7px;
  padding: 0 12px;
  color: #9da5b5;
  border: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.main-nav .nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav a:hover,
.main-nav .nav-button:hover {
  color: #f3f5f9;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.main-nav a.active {
  color: #0a0d0d;
  background: linear-gradient(135deg, #bdf52f, #ddff69);
  box-shadow: 0 8px 22px rgba(200, 255, 56, .12);
}

.header-metrics { justify-self: end; gap: 18px; }

.header-metrics > .online,
.header-metrics > .upgrade-count { gap: 8px; }

.header-metrics svg { width: 21px; height: 21px; }

.header-metrics span > span {
  min-width: 60px;
  grid-template-rows: 11px 17px;
}

.header-metrics em { color: #70798a; font-size: 9px; line-height: 11px; }
.header-metrics b { min-width: 56px; font-size: 13px; line-height: 17px; }

.header-actions { gap: 7px; }

.balance-box {
  min-width: 138px;
  height: 42px;
  gap: 8px;
  padding: 0 10px;
  border-color: rgba(150, 112, 255, .25);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(35, 30, 54, .95), rgba(18, 21, 30, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.balance-box:hover {
  border-color: rgba(174, 143, 255, .52);
  box-shadow: 0 0 24px rgba(139, 92, 255, .1), inset 0 1px rgba(255, 255, 255, .05);
}

.balance-box strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
}

.balance-box svg { width: 15px; color: #b9a7e9; stroke: currentColor; }

.balance-box span.balance-coin {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 25%, #fff 0 7%, #c6adff 22%, #8461e9 58%, #38256f 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14), 0 0 13px rgba(130, 91, 232, .28);
}

.notification-button,
.profile-button {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, .075);
  background: linear-gradient(145deg, #181c26, #11141c);
}

.notification-button:hover,
.profile-button:hover {
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 0 20px rgba(150, 112, 255, .1);
}

.profile-button { border-radius: 13px; }
.profile-button span { border-radius: 10px; background: linear-gradient(135deg, #9a73ff, #4b2d9a); }

/* Live activity */
.live-strip {
  height: 66px;
  border-bottom-color: rgba(255, 255, 255, .06);
  background: rgba(10, 13, 19, .84);
}

.live-title {
  flex-basis: 94px;
  color: var(--lime);
  border-right-color: rgba(255, 255, 255, .065);
  font-size: 11px;
}

.live-viewport {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent);
}

.live-item {
  min-width: 196px;
  grid-template-columns: 47px minmax(0, 1fr);
  padding: 7px 14px;
  border-right-color: rgba(255, 255, 255, .055);
}

.live-item img { width: 43px; height: 43px; }
.live-item small { font-size: 9px; }
.live-item b { font-size: 11px; }
.live-item em { color: #beaaff; font-size: 9px; }

/* Pages and section chrome */
.app-main,
main {
  width: min(1360px, calc(100% - 40px));
}

.app-page { min-height: 64vh; }

.app-page.is-active {
  animation: vuPageEnter .34s var(--ease-out) both;
}

.upgrade-section { padding-top: 18px; }

.upgrade-section::before {
  opacity: .42;
  filter: saturate(.8);
  mask-image: linear-gradient(to bottom, #000 0 72%, transparent 100%);
}

.stage-title { padding-bottom: 13px; }
.stage-title h1 { gap: 11px; font-size: 22px; }
.stage-title .brand-mark { width: 31px; height: 33px; }

.section-heading.compact {
  min-height: 102px;
  align-items: center;
  margin-bottom: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 120%, rgba(200, 255, 56, .07), transparent 35%),
    linear-gradient(145deg, rgba(24, 28, 39, .96), rgba(13, 16, 23, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 18px 46px rgba(0, 0, 0, .18);
}

.section-heading.compact .eyebrow { margin-bottom: 4px; font-size: 9px; }
.section-heading.compact h2 { font-size: clamp(23px, 2vw, 30px); }

.inventory-section.app-page,
.history-section.app-page { padding-top: 34px; }

/* Upgrade cockpit */
.upgrade-workspace {
  min-height: 536px;
  grid-template-columns: minmax(260px, .94fr) minmax(360px, 1.12fr) minmax(260px, .94fr);
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.item-panel,
.wheel-panel,
.mobile-stake-panel,
.mobile-quick-panel {
  border: 1px solid rgba(255, 255, 255, .075);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .018), transparent 46%),
    linear-gradient(160deg, rgba(20, 24, 34, .97), rgba(11, 14, 21, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 20px 54px rgba(0, 0, 0, .24);
}

.item-panel {
  min-width: 0;
  height: 100%;
  padding: 22px;
  border-radius: 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.item-panel:hover {
  border-color: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 22px 58px rgba(0, 0, 0, .28);
}

.source-panel,
.target-panel { border: 1px solid rgba(255, 255, 255, .075); }

.panel-topline { align-items: center; }
.panel-topline h2 { margin-top: 4px; font-size: 17px; }
.step-label { color: #7d8697; font-size: 9px; letter-spacing: .135em; }
.small-link { color: #b7c48e; font-size: 11px; }
.small-link:hover { color: var(--lime); }

.stake-addon {
  margin-top: 16px;
  padding: 12px;
  border-color: rgba(255, 255, 255, .075);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 48%, rgba(200, 255, 56, .055), transparent 55%),
    rgba(10, 13, 19, .72);
}

.stake-addon-head b,
.cash-addon-head b { font-size: 12px; }
.stake-addon-head small,
.cash-addon-head small { color: #747d8e; font-size: 9px; }

.stake-addon-picker {
  min-height: 190px;
  margin-top: 10px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(25, 30, 41, .88), rgba(13, 16, 23, .9));
}

.stake-addon-picker:hover,
.stake-addon-picker:focus-visible {
  border-color: rgba(200, 255, 56, .36);
  background: linear-gradient(155deg, rgba(200, 255, 56, .055), rgba(15, 18, 25, .94));
}

.source-addon-empty > i,
.target-empty i {
  color: #d7ff70;
  border-color: rgba(200, 255, 56, .24);
  background: rgba(200, 255, 56, .065);
  box-shadow: inset 0 0 18px rgba(200, 255, 56, .03), 0 0 26px rgba(200, 255, 56, .055);
}

.source-addon-empty b,
.target-empty b { color: #f0f3f7; font-size: 12px; }
.source-addon-empty small,
.target-empty small { color: #727b8c; font-size: 9px; }

.source-balance {
  margin-top: 12px;
  padding: 13px 14px 11px;
  border-color: rgba(150, 112, 255, .14);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(150, 112, 255, .045), transparent 60%), rgba(9, 12, 18, .76);
}

.cash-addon-value {
  min-width: 76px;
  color: #d8ccff;
  border-color: rgba(150, 112, 255, .2);
  background: rgba(150, 112, 255, .07);
}

.stake-range-block input::-webkit-slider-runnable-track,
.multiplier-range-wrap input::-webkit-slider-runnable-track { height: 6px; }

.stake-range-block input::-webkit-slider-thumb,
.multiplier-range-wrap input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
}

.stake-range-scale { color: #687183; font-size: 9px; }

.source-tools {
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top-color: rgba(255, 255, 255, .06);
}

.source-tools button {
  height: 46px;
  min-height: 46px;
  color: #9fa8b8;
  border-color: rgba(255, 255, 255, .075);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
  font-size: 18px;
}

.source-tools button:hover,
.source-tools .fast-spin-toggle.active {
  color: var(--lime);
  border-color: rgba(200, 255, 56, .25);
  background: rgba(200, 255, 56, .055);
  box-shadow: 0 0 20px rgba(200, 255, 56, .055);
}

.wheel-panel {
  min-height: 536px;
  padding: 20px;
  border-radius: 23px;
  background:
    radial-gradient(circle at 50% 40%, rgba(150, 112, 255, .15), transparent 43%),
    radial-gradient(circle at 50% 76%, rgba(200, 255, 56, .035), transparent 35%),
    linear-gradient(165deg, rgba(16, 19, 28, .84), rgba(9, 12, 18, .82));
  overflow: hidden;
}

.wheel-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .025), transparent 26%, transparent 74%, rgba(200, 255, 56, .018));
}

.wheel-wrap { width: min(300px, 100%); }

.chance-ring {
  box-shadow: 0 0 68px rgba(139, 92, 255, .14), inset 0 0 34px rgba(255, 255, 255, .018);
}

.ring-core {
  border-color: rgba(255, 255, 255, .075);
  background: radial-gradient(circle at 50% 35%, rgba(31, 35, 48, .98), rgba(10, 13, 20, .98) 72%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 16px 34px rgba(0, 0, 0, .3);
}

.ring-core span { color: #8c95a6; }
.ring-core strong { letter-spacing: -.06em; }
.ring-core small { color: #c7b8f3; }

.wheel-pointer::before {
  filter: drop-shadow(0 0 11px rgba(200, 255, 56, .7));
}

.multiplier-control {
  width: min(306px, 100%);
  margin-top: 7px;
  padding: 12px 14px 10px;
  border-color: rgba(255, 255, 255, .075);
  border-radius: 15px;
  background: rgba(11, 14, 21, .74);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.multiplier-head > span { color: #9099aa; font-size: 10px; }
.multiplier-head strong { color: var(--lime); }
.multiplier-head em { color: #cabbf5; }
.multiplier-scale { color: #626c7e; }

.spin-button {
  width: min(306px, 100%);
  min-height: 62px;
  margin-top: 13px;
  border: 1px solid rgba(231, 255, 164, .3);
  border-radius: 15px;
  background: linear-gradient(135deg, #bdf42f, #dbff67);
  box-shadow: 0 13px 34px rgba(200, 255, 56, .13), inset 0 1px rgba(255, 255, 255, .42);
}

.spin-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, .34) 48%, transparent 72%);
  transform: translateX(-130%);
}

.spin-button:hover:not(:disabled)::before { animation: vuButtonSweep .75s var(--ease-out); }
.spin-button span { font-size: 14px; letter-spacing: -.025em; }
.spin-button small { font-size: 9px; }
.spin-button:disabled { border-color: rgba(255, 255, 255, .07); background: #2c3138; box-shadow: none; }

.wheel-note { min-height: 17px; margin-top: 8px; color: #747d8e; font-size: 10px; }

.selected-target {
  height: 218px;
  margin-top: 16px;
  border-color: rgba(255, 255, 255, .075);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 45%, var(--skin-glow, rgba(150, 112, 255, .08)), transparent 52%),
    linear-gradient(160deg, rgba(25, 29, 40, .96), rgba(11, 14, 21, .96));
}

.selected-target:hover,
.selected-target:focus-visible {
  border-color: rgba(200, 255, 56, .3);
  box-shadow: 0 0 24px rgba(200, 255, 56, .055);
}

.selected-target img { height: 130px; }
.selected-target h3 { font-size: 12px; }
.selected-target p { color: #747d8e; font-size: 9px; }
.rarity-tag,
.wear-tag { border-radius: 8px; background: rgba(7, 9, 14, .72); backdrop-filter: blur(8px); }

.target-price-line {
  margin: 12px 0;
  color: #7d8697;
  font-size: 10px;
}

.target-panel > .button {
  min-height: 44px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  font-size: 11px;
}

.target-panel > .button:hover {
  border-color: rgba(200, 255, 56, .28);
  background: rgba(200, 255, 56, .055);
}

.target-presets { margin-top: 13px; padding-top: 12px; border-top-color: rgba(255, 255, 255, .06); }
.target-presets-head > span { color: #929bab; font-size: 9px; }
.target-presets-head output { color: #c7d09c; font-size: 9px; }

.target-preset-grid { gap: 5px; }

.target-preset-grid button {
  min-height: 35px;
  color: #a1a9b8;
  border-color: rgba(255, 255, 255, .075);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  font-size: 10px;
}

.target-preset-grid button:hover,
.target-preset-grid button.active {
  color: #f4f7ed;
  border-color: rgba(200, 255, 56, .32);
  background: rgba(200, 255, 56, .06);
  box-shadow: 0 0 18px rgba(200, 255, 56, .055);
}

.fairness-row {
  margin-top: 12px;
  padding: 12px 18px;
  border-color: rgba(255, 255, 255, .055);
  border-radius: 16px;
  background: rgba(12, 15, 22, .58);
  color: #7f8898;
  font-size: 10px;
}

.fairness-row i { color: var(--lime); background: rgba(200, 255, 56, .08); }

/* Inline target catalog */
.upgrade-workspace.target-picker-active {
  grid-template-columns: minmax(250px, .78fr) minmax(330px, .9fr) minmax(560px, 1.7fr);
}

.target-panel.picker-open { padding: 0; overflow: hidden; }

.target-picker-inline .target-picker-shell {
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 0, rgba(150, 112, 255, .1), transparent 34%),
    linear-gradient(160deg, rgba(18, 22, 31, .98), rgba(9, 12, 18, .99));
  box-shadow: none;
}

.target-picker-inline .target-picker-header { padding: 16px 17px 12px; }

.target-picker-inline .target-picker-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.target-picker-inline .target-picker-header > div > span { font-size: 8px; }
.target-picker-inline .target-picker-header h2 { font-size: 18px; }

.target-picker-inline .target-picker-header > button {
  color: #a8b0bf;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
}

.target-picker-inline .target-picker-filters { gap: 7px; padding: 0 17px 10px; }

.target-picker-inline .target-picker-filters label,
.target-picker-inline .target-picker-sort {
  height: 42px;
  border-color: rgba(255, 255, 255, .075);
  border-radius: 11px;
  background: rgba(7, 10, 16, .58);
}

.target-picker-inline .target-picker-filters label:focus-within,
.target-picker-inline .target-picker-sort.open {
  border-color: rgba(200, 255, 56, .32);
  box-shadow: 0 0 0 3px rgba(200, 255, 56, .045);
}

.target-kind-filters button {
  border-color: rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .025);
}

.target-kind-filters button.active {
  color: #0b0e0e;
  border-color: var(--lime);
  background: var(--lime);
}

.target-picker-inline .target-picker-summary { color: #747d8e; }
.target-picker-inline .target-picker-summary button { color: #aeb6c5; }

.target-picker-inline .target-picker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 17px 15px;
}

.target-picker-inline .target-skin-option {
  min-height: 184px;
  grid-template-rows: 100px auto auto;
  border-color: rgba(255, 255, 255, .07);
  border-radius: 15px;
  background: linear-gradient(165deg, rgba(27, 31, 43, .98), rgba(11, 14, 21, .99));
}

.target-picker-inline .target-skin-option:hover {
  border-color: color-mix(in srgb, var(--rarity) 46%, rgba(255, 255, 255, .1));
  box-shadow: 0 0 24px color-mix(in srgb, var(--rarity) 12%, transparent);
}

.target-picker-inline .target-option-copy small { color: #727b8d; font-size: 9px; }
.target-picker-inline .target-option-copy b { font-size: 11px; }
.target-picker-inline .target-option-price { font-size: 11px; }

.target-picker-empty {
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: rgba(255, 255, 255, .018);
}

.target-picker-more {
  border-color: rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

/* Inventory */
.inventory-actions {
  align-items: flex-end;
  gap: 10px;
}

.inventory-actions #inventoryValue {
  color: #9aa3b3;
  font-size: 11px;
}

.inventory-actions .button {
  min-height: 40px;
  padding: 0 15px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  font-size: 11px;
}

.inventory-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 250px));
  justify-content: start;
  gap: 12px;
}

.inventory-item {
  min-height: 250px;
  padding: 12px;
  border-color: rgba(255, 255, 255, .075);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(26, 30, 42, .98), rgba(11, 14, 21, .99));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 14px 36px rgba(0, 0, 0, .2);
  overflow: hidden;
}

.inventory-item::after {
  content: '';
  position: absolute;
  inset: auto 12px 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--rarity);
  opacity: .48;
}

.inventory-item:hover {
  border-color: color-mix(in srgb, var(--rarity) 42%, rgba(255, 255, 255, .1));
  box-shadow: 0 0 28px color-mix(in srgb, var(--rarity) 11%, transparent), 0 18px 40px rgba(0, 0, 0, .24);
}

.inventory-media { height: 138px; }
.inventory-item .inventory-media img { height: 126px; transition: filter .2s ease, scale .2s ease; }
.inventory-item:hover .inventory-media img { scale: 1.035; }
.inventory-copy { padding: 8px 5px 7px; text-align: left; }
.inventory-copy small { color: #767f90; font-size: 9px; }
.inventory-item .inventory-copy h3 { min-height: 34px; font-size: 12px; }

.inventory-item .inventory-bottom {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.inventory-price {
  justify-content: flex-start;
  min-height: 30px;
  margin: 0;
  padding: 6px 9px;
  font-size: 12px;
}

.inventory-item .inventory-bottom button {
  position: static;
  min-height: 30px;
  padding: 0 9px;
  color: #cbd39f;
  border: 1px solid rgba(200, 255, 56, .13);
  border-radius: 9px;
  background: rgba(200, 255, 56, .045);
  font-size: 9px;
}

.inventory-item .inventory-bottom button:hover {
  color: #11150c;
  border-color: var(--lime);
  background: var(--lime);
}

/* History */
.history-list {
  display: grid;
  gap: 8px;
}

.history-row {
  min-height: 76px;
  grid-template-columns: 70px 54px minmax(0, 1fr) 118px 88px;
  gap: 13px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(23, 27, 37, .88), rgba(12, 15, 22, .92));
  box-shadow: inset 0 1px rgba(255, 255, 255, .02);
}

.history-row:hover {
  border-color: rgba(255, 255, 255, .11);
  background: linear-gradient(145deg, rgba(26, 30, 41, .94), rgba(13, 16, 23, .96));
}

.history-row time { color: #6f7889; font-size: 10px; }
.history-thumb { width: 54px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.history-item-name b { font-size: 12px; }
.history-item-name small { color: #757e8f; font-size: 9px; }
.history-chance { color: #adb5c3; font-size: 10px; }

.history-status {
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: rgba(255, 255, 255, .02);
  font-size: 9px;
  letter-spacing: .06em;
}

.history-status.win { background: rgba(200, 255, 56, .055); }
.history-status.loss { background: rgba(255, 98, 124, .05); }

.empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px 20px;
  color: #7f8898;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 40%, rgba(150, 112, 255, .065), transparent 40%),
    rgba(14, 17, 24, .62);
  text-align: center;
}

.empty-state > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #cbbdff;
  border: 1px solid rgba(150, 112, 255, .18);
  border-radius: 15px;
  background: rgba(150, 112, 255, .07);
  font-size: 23px;
}

.empty-state > span svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state p { max-width: 330px; margin: 0; font-size: 13px; }

.empty-state .empty-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  padding: 0 14px;
  color: #10130d;
  border-radius: 11px;
  background: var(--lime);
  font-size: 11px;
  font-weight: 850;
}

/* Profile workspace */
.profile-view {
  inset: 72px 0 0;
  padding: 18px 14px 74px;
  background:
    radial-gradient(circle at 50% -10%, rgba(150, 112, 255, .13), transparent 36%),
    radial-gradient(circle at 100% 45%, rgba(200, 255, 56, .045), transparent 30%),
    rgba(6, 8, 13, .965);
}

.profile-view .profile-shell { width: min(720px, 100%); }

.profile-heading .eyebrow { font-size: 9px; }
.profile-heading small { color: #7e8798; font-size: 11px; }

.profile-balance-card,
.profile-stats section,
.profile-option,
.profile-collection {
  border-color: rgba(255, 255, 255, .075);
  background: linear-gradient(150deg, rgba(24, 28, 39, .98), rgba(12, 15, 22, .99));
}

.profile-balance-card {
  border-color: rgba(150, 112, 255, .15);
  background:
    radial-gradient(circle at 5% 120%, rgba(200, 255, 56, .09), transparent 36%),
    radial-gradient(circle at 92% -20%, rgba(150, 112, 255, .17), transparent 40%),
    linear-gradient(145deg, #191d28, #0e121a);
}

.profile-card-label small { font-size: 8px; }
.profile-card-head button { font-size: 11px; }

.profile-balance-actions button { min-height: 56px; }

.profile-stats section { min-height: 108px; }
.profile-stats section > span { color: #a0a8b6; font-size: 12px; }
.profile-stats small { font-size: 9px; }

.profile-best {
  border-color: color-mix(in srgb, var(--best-rarity, #8b5cff), transparent 76%);
  background:
    radial-gradient(circle at 82% 42%, color-mix(in srgb, var(--best-rarity, #8b5cff), transparent 72%), transparent 43%),
    linear-gradient(140deg, #171b25, #0f121a 60%, #161222);
}

.profile-best-copy small { font-size: 8px; }
.profile-best-copy h3 { font-size: 14px; }
.profile-best-copy b { font-size: 17px; }

.profile-option b { font-size: 13px; }
.profile-option small { font-size: 10px; }

.profile-tabs button > span:not(.brand-mini-icon) { font-size: 11px; }
.profile-tabs button small { font-size: 9px; }

.profile-tab-content { background: rgba(7, 10, 16, .62); }
.profile-empty p { font-size: 13px; }

.profile-inventory-grid article {
  border-color: rgba(255, 255, 255, .07);
  background: linear-gradient(160deg, rgba(27, 31, 43, .98), rgba(11, 14, 21, .99));
}

.profile-footer { background: linear-gradient(145deg, #11151e, #0b0e14); }

/* Dialogs and supporting UI */
.modal { background: rgba(4, 6, 10, .78); backdrop-filter: blur(14px); }

.modal-card {
  border-color: rgba(255, 255, 255, .09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0, rgba(150, 112, 255, .1), transparent 30%),
    linear-gradient(160deg, #171b25, #0d1017);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .035);
}

.modal-close {
  border-color: rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.modal-card.coupon-card {
  width: min(390px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 22px;
}

.coupon-card .modal-head { margin-bottom: 12px; }
.coupon-card .modal-head h2 { font-size: 22px; }
.coupon-help { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.coupon-label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; }
.coupon-input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  font-size: 16px;
  font-weight: 700;
}
.coupon-input:focus-visible { outline: none; border-color: rgba(200, 255, 56, .58); box-shadow: 0 0 0 3px rgba(200, 255, 56, .1); }
.coupon-status, .promo-feedback { min-height: 18px; margin: 8px 0 0; color: var(--lime); font-size: 11px; line-height: 1.4; }
.coupon-status.is-error, .promo-feedback.is-error { color: #ff8c9e; }
.coupon-submit { min-height: 44px; margin-top: 10px; }

.notice-card,
.payment-grid button,
.deposit-input,
.promo-line label,
.deposit-summary,
.preset-settings-section {
  border-color: rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .025);
}

.payment-grid button.active,
.payment-grid button:hover {
  border-color: rgba(200, 255, 56, .32);
  background: rgba(200, 255, 56, .055);
}

.deposit-presets button,
.promo-line button {
  border-color: rgba(255, 255, 255, .085);
  background: rgba(255, 255, 255, .03);
}

.deposit-presets button.active {
  color: #11150d;
  border-color: var(--lime);
  background: var(--lime);
}

.info-modal ol li {
  border-color: rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .025);
}

.formula {
  border-color: rgba(150, 112, 255, .2);
  background: rgba(150, 112, 255, .07);
}

.toast {
  border-color: rgba(255, 255, 255, .09);
  border-radius: 15px;
  background: rgba(18, 22, 31, .96);
  box-shadow: 0 20px 58px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}

footer {
  width: min(1360px, calc(100% - 40px));
  color: #697284;
  border-top-color: rgba(255, 255, 255, .055);
}

footer button { color: #8992a2; }
footer button:hover { color: var(--lime); }

/* Bottom navigation appears on tablets and phones. */
.mobile-tabs {
  border-color: rgba(255, 255, 255, .11);
  background: rgba(12, 15, 22, .88);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(22px) saturate(135%);
}

.mobile-tabs a {
  color: #7f8899;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.mobile-tabs a.active {
  color: #11140e;
  background: linear-gradient(135deg, #bdf42f, #dcff68);
  box-shadow: 0 7px 22px rgba(200, 255, 56, .13);
}

.mobile-tabs .brand-tab-icon,
.mobile-tabs .inventory-tab-icon,
.mobile-tabs .history-tab-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
}

.mobile-tabs .inventory-tab-icon svg,
.mobile-tabs .history-tab-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tablet */
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    padding: 0 20px;
  }

  .main-nav { display: none; }
  .header-metrics { justify-self: end; }
  .header-actions { justify-self: end; }

  .mobile-tabs {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    gap: 4px;
    padding: 5px;
    border-radius: 18px;
  }

  .mobile-tabs a { min-height: 54px; border-radius: 13px; font-size: 10px; }

  .upgrade-workspace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .wheel-panel {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 510px;
  }

  .source-panel { grid-column: 1; grid-row: 2; }
  .target-panel { grid-column: 2; grid-row: 2; }

  .upgrade-workspace.target-picker-active { display: block; }
  .upgrade-workspace.target-picker-active > .source-panel,
  .upgrade-workspace.target-picker-active > .wheel-panel,
  .upgrade-workspace.target-picker-active > .mobile-stake-panel,
  .upgrade-workspace.target-picker-active > .mobile-quick-panel { display: none; }

  .upgrade-workspace.target-picker-active > .target-panel.picker-open {
    width: 100%;
    height: min(760px, calc(100svh - 112px));
    min-height: 600px;
    display: block;
    padding: 0;
  }

  .target-picker-inline .target-picker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .header-metrics .upgrade-count { display: none; }
  .header-metrics { gap: 8px; }

  .target-picker-inline .target-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .history-row { grid-template-columns: 62px 48px minmax(0, 1fr) 78px; }
  .history-chance { display: none; }
}

/* Phone */
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .site-header {
    min-height: 62px;
    gap: 8px;
    padding: 0 9px;
  }

  .site-header > .brand .brand-mark { width: 31px; height: 33px; }
  .site-header > .brand .brand-name { display: none; }

  .header-metrics { justify-self: start; }
  .header-metrics .online { gap: 5px; }
  .header-metrics .online svg { width: 18px; height: 18px; }
  .header-metrics .online > span { min-width: 43px; grid-template-rows: 9px 16px; }
  .header-metrics .online em { display: block; height: 9px; font-size: 7px; line-height: 9px; }
  .header-metrics .online b { min-width: 43px; font-size: 12px; line-height: 16px; }

  .header-actions { gap: 5px; }
  .balance-box { width: clamp(98px, 30vw, 124px); min-width: 0; height: 38px; padding: 0 8px; }
  .balance-box span.balance-coin { width: 20px; height: 20px; flex-basis: 20px; font-size: 8px; }
  .balance-box strong { font-size: 11px; }
  .balance-box svg { width: 12px; }
  .notification-button,
  .profile-button { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }

  .live-strip { height: 54px; border-bottom: 0; }
  .live-title { flex-basis: 57px; gap: 5px; font-size: 8px; }
  .live-item { min-width: 154px; grid-template-columns: 38px minmax(0, 1fr); padding: 5px 8px; }
  .live-item img { width: 36px; height: 36px; }
  .live-item small,
  .live-item em { font-size: 8px; }
  .live-item b { max-width: 96px; font-size: 9px; }

  .app-main,
  main { width: calc(100% - 16px); }

  .upgrade-section { padding-top: 8px; }
  .upgrade-section .stage-title,
  .upgrade-section .fairness-row { display: none; }

  .section-heading.compact {
    min-height: 0;
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 18px;
  }

  .section-heading.compact .eyebrow { font-size: 8px; }
  .section-heading.compact h2 { font-size: 23px; }

  .inventory-section.app-page,
  .history-section.app-page { padding-top: 16px; }

  .inventory-actions { width: auto; max-width: 55%; align-items: flex-end; gap: 7px; }
  .inventory-actions #inventoryValue { justify-content: flex-end; flex-wrap: wrap; font-size: 10px; }
  .inventory-actions .button { min-height: 38px; font-size: 10px; }

  /* Mobile upgrade order: wheel, two choices, CTA, helper, risk, balance, presets. */
  .upgrade-workspace,
  .upgrade-workspace.target-picker-active {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(7, auto);
    gap: 8px;
  }

  .upgrade-workspace > .wheel-panel { display: contents; }

  .upgrade-workspace .wheel-wrap {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: min(284px, calc(100vw - 38px));
    margin: 3px 0 2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(150, 112, 255, .12), transparent 68%);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .23));
  }

  .upgrade-workspace .chance-ring {
    width: clamp(204px, 59vw, 228px);
    height: clamp(204px, 59vw, 228px);
  }

  .upgrade-workspace .ring-core { width: calc(100% - 58px); height: calc(100% - 58px); }
  .upgrade-workspace .ring-core span { font-size: 11px; }
  .upgrade-workspace .ring-core strong { font-size: clamp(27px, 8.2vw, 33px); }
  .upgrade-workspace .ring-core small { font-size: 11px; }

  .upgrade-workspace > .source-panel,
  .upgrade-workspace > .target-panel:not(.picker-open) {
    width: auto;
    height: auto;
    min-height: 212px;
    padding: 10px;
    overflow: hidden;
    border-radius: 17px;
  }

  .upgrade-workspace > .source-panel {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
  }

  .upgrade-workspace > .target-panel:not(.picker-open) {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
  }

  .upgrade-workspace .panel-topline { min-height: 28px; gap: 6px; }
  .upgrade-workspace .panel-topline h2 { display: none; }
  .desktop-step-copy { display: none; }
  .mobile-step-copy { display: inline; }
  .upgrade-workspace .step-label { color: var(--lime); font-size: 10px; letter-spacing: .09em; }

  .target-panel:not(.picker-open) .small-link {
    width: 30px;
    height: 30px;
    min-height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(200, 255, 56, .18);
    border-radius: 9px;
    background: rgba(200, 255, 56, .045);
    font-size: 0;
  }

  .target-panel:not(.picker-open) .small-link::before { content: '↻'; font-size: 17px; }

  .source-panel .stake-addon {
    position: relative;
    min-height: 0;
    flex: 1;
    display: flex;
    margin-top: 5px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .source-panel .stake-addon-head { position: absolute; z-index: 4; top: 7px; right: 7px; }
  .source-panel .stake-addon-head > span { display: none; }
  .source-panel .source-skin-remove {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 9px;
    background: rgba(9, 12, 18, .84);
    font-size: 0;
  }
  .source-panel .source-skin-remove::before { content: '×'; font-size: 17px; }

  .source-panel .stake-addon-picker {
    min-height: 126px;
    flex: 1;
    margin: 0;
    padding: 7px;
    border-color: rgba(200, 255, 56, .16);
    border-radius: 14px;
  }

  .source-panel .source-addon-empty { min-height: 108px; gap: 6px; }
  .source-panel .source-addon-empty > i { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; font-size: 21px; }
  .source-panel .source-addon-empty b { font-size: 11px; }
  .source-panel .source-addon-empty small { display: none; }

  .source-panel .source-addon-selected { min-height: 108px; grid-template-rows: minmax(60px, 1fr) auto auto; }
  .source-panel .source-addon-selected img { height: 68px; }
  .source-panel .source-addon-selected b { font-size: 10px; }
  .source-panel .source-addon-selected small { display: none; }
  .source-panel .source-addon-selected strong { font-size: 11px; }
  .source-panel > .source-balance { display: none; }

  .source-panel .source-tools {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 5px;
    padding-top: 0;
    border: 0;
  }

  .source-panel .source-tools button { width: 100%; min-height: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
  .source-panel .source-tools svg { width: 16px; height: 16px; }

  .target-panel:not(.picker-open) .selected-target {
    min-height: 127px;
    height: auto;
    flex: 1;
    margin-top: 5px;
    padding: 7px;
    border-radius: 14px;
  }

  .target-panel:not(.picker-open) .selected-target img { width: 100%; height: 76px; }
  .target-panel:not(.picker-open) .selected-target h3 { margin-top: 4px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .target-panel:not(.picker-open) .selected-target p { font-size: 8px; }
  .target-panel:not(.picker-open) .target-empty { gap: 6px; }
  .target-panel:not(.picker-open) .target-empty i { width: 39px; height: 39px; margin: 0; border-radius: 12px; font-size: 21px; }
  .target-panel:not(.picker-open) .target-empty b { font-size: 11px; }
  .target-panel:not(.picker-open) .target-empty small { display: none; }
  .target-panel:not(.picker-open) .rarity-tag,
  .target-panel:not(.picker-open) .wear-tag { top: 7px; padding: 3px 5px; font-size: 8px; }
  .target-panel:not(.picker-open) .rarity-tag { left: 7px; }
  .target-panel:not(.picker-open) .wear-tag { right: 7px; }
  .target-panel:not(.picker-open) .target-price-line { min-height: 23px; margin: 5px 0 0; font-size: 10px; }
  .target-panel:not(.picker-open) .target-price-line strong,
  .target-panel:not(.picker-open) .target-price-line .vcoin-price { font-size: 11px; }
  .target-panel:not(.picker-open) > .button,
  .target-panel:not(.picker-open) > .target-presets { display: none; }

  .upgrade-workspace .spin-button {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    width: 100%;
    min-height: 54px;
    margin: 0;
    border-radius: 14px;
  }

  .upgrade-workspace .spin-button span { font-size: 14px; }
  .upgrade-workspace .spin-button small { max-width: 100%; margin-top: 2px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

  .upgrade-workspace .wheel-note {
    grid-column: 1 / -1;
    grid-row: 4;
    min-height: 15px;
    margin: -1px 0 0;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
  }

  .upgrade-workspace .multiplier-control {
    grid-column: 1 / -1;
    grid-row: 5;
    justify-self: stretch;
    width: 100%;
    margin: 0;
    padding: 11px 13px 9px;
    border-radius: 15px;
  }

  .upgrade-workspace .multiplier-head { margin-bottom: 3px; }
  .upgrade-workspace .multiplier-head > span { font-size: 11px; }
  .upgrade-workspace .multiplier-head strong { font-size: 13px; }
  .upgrade-workspace .multiplier-head em { font-size: 14px; }
  .upgrade-workspace .multiplier-scale span { font-size: 9px; }
  .upgrade-workspace .multiplier-scale b { font-size: 10px; }
  .upgrade-workspace .multiplier-scale small { font-size: 8px; }

  .upgrade-workspace > .mobile-stake-panel,
  .upgrade-workspace > .mobile-quick-panel {
    grid-column: 1 / -1;
    width: 100%;
    display: block;
    border-radius: 15px;
  }

  .upgrade-workspace > .mobile-stake-panel { grid-row: 6; padding: 10px 13px 9px; }
  .mobile-control-head { margin-bottom: 3px; }
  .mobile-control-head b { font-size: 11px; }
  .mobile-control-head output {
    min-width: 78px;
    padding: 6px 8px;
    color: #d9cdff;
    border-color: rgba(150, 112, 255, .2);
    border-radius: 9px;
    background: rgba(150, 112, 255, .07);
    font-size: 11px;
  }
  .mobile-stake-panel .stake-range-scale { font-size: 9px; }

  .upgrade-workspace > .mobile-quick-panel { grid-row: 7; padding: 7px; }
  .mobile-preset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .mobile-preset-grid button {
    min-height: 40px;
    padding: 0 5px;
    border-color: rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    font-size: 11px;
  }

  .upgrade-workspace.target-picker-active { display: block; }
  .upgrade-workspace.target-picker-active > .source-panel,
  .upgrade-workspace.target-picker-active > .wheel-panel,
  .upgrade-workspace.target-picker-active > .mobile-stake-panel,
  .upgrade-workspace.target-picker-active > .mobile-quick-panel { display: none; }
  .upgrade-workspace.target-picker-active > .target-panel.picker-open {
    width: 100%;
    height: calc(100svh - 78px);
    min-height: 560px;
    display: block;
    padding: 0;
    border-radius: 17px;
  }

  .target-picker-inline .target-picker-header { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 9px; padding: 13px 12px 10px; }
  .target-picker-inline .target-picker-mark,
  .target-picker-inline .target-picker-header > button { width: 38px; height: 38px; border-radius: 11px; }
  .target-picker-inline .target-picker-header > div > span { font-size: 8px; }
  .target-picker-inline .target-picker-header h2 { font-size: 17px; }
  .target-picker-inline .target-picker-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 12px 9px; }
  .target-picker-inline .target-picker-search,
  .target-picker-inline .target-picker-sort { grid-column: 1 / -1; }
  .target-picker-inline .target-picker-filters label,
  .target-picker-inline .target-picker-sort { height: 44px; padding: 0 10px; }
  .target-picker-inline .target-picker-filters input,
  .target-picker-inline .target-sort-trigger { font-size: 14px !important; }
  .target-picker-inline .target-kind-filters { gap: 5px; padding: 0 12px 8px; overflow-x: auto; }
  .target-picker-inline .target-kind-filters button { min-height: 34px; padding: 0 12px; font-size: 10px; }
  .target-picker-inline .target-picker-summary { padding: 0 12px 9px; font-size: 10px; }
  .target-picker-inline .target-picker-summary button { min-height: 32px; font-size: 10px; }
  .target-picker-inline .target-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 12px 13px; }
  .target-picker-inline .target-skin-option { min-height: 190px; grid-template-rows: 102px auto auto; padding: 9px; }
  .target-picker-inline .target-option-media { height: 102px; }
  .target-picker-inline .target-skin-option .target-option-media img { height: 94px; }
  .target-picker-inline .target-option-copy small { font-size: 9px; }
  .target-picker-inline .target-option-copy b { font-size: 11px; }
  .target-picker-inline .target-option-price { min-height: 29px; padding: 6px 9px; font-size: 11px; }
  .target-picker-inline .target-picker-more { min-height: 44px; margin: 7px 12px 13px; font-size: 11px; }

  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .inventory-item { min-height: 218px; padding: 9px; border-radius: 16px; }
  .inventory-media { height: 112px; }
  .inventory-item .inventory-media img { height: 102px; }
  .inventory-copy { padding: 6px 3px; }
  .inventory-copy small { font-size: 9px; }
  .inventory-item .inventory-copy h3 { min-height: 31px; font-size: 11px; }
  .inventory-item .inventory-bottom { gap: 4px; }
  .inventory-price { min-width: 0; padding: 5px 7px; font-size: 11px; }
  .inventory-item .inventory-bottom button { min-height: 30px; padding: 0 7px; font-size: 9px; }

  .history-list { gap: 7px; }
  .history-row {
    min-height: 78px;
    grid-template-columns: 42px 42px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
    border-radius: 14px;
  }
  .history-row time { font-size: 9px; }
  .history-thumb { width: 42px; height: 34px; }
  .history-item-name b { font-size: 11px; }
  .history-item-name small { font-size: 8px; }
  .history-status { min-height: 26px; padding: 0 6px; font-size: 8px; }
  .history-chance { display: none; }

  .empty-state { min-height: 220px; padding: 28px 18px; border-radius: 18px; }
  .empty-state p { font-size: 12px; }

  .profile-view {
    top: var(--profile-viewport-top, 0px);
    inset-inline: 0;
    bottom: 0;
    padding: 9px 8px calc(86px + env(safe-area-inset-bottom));
  }

  .profile-heading small { font-size: 10px; }
  .profile-balance-card { padding: 17px; }
  .profile-card-head button span { display: none; }
  .profile-card-head button { width: 36px; padding: 0; justify-content: center; }
  .profile-card-head button b { display: none; }
  .profile-balance { font-size: clamp(26px, 7.5vw, 32px); }
  .profile-balance-actions button { min-height: 52px; font-size: 12px; }
  .profile-stats section { min-height: 98px; padding: 15px; }
  .profile-stats section > span { font-size: 11px; }
  .profile-stats small { font-size: 8px; }
  .profile-best { min-height: 178px; }
  .profile-option { min-height: 66px; }
  .profile-option b { font-size: 12px; }
  .profile-option small { font-size: 9px; }
  .profile-tabs button { min-height: 54px; }
  .profile-tabs button > span:not(.brand-mini-icon) { font-size: 10px; }
  .profile-sale-toggle { font-size: 10px; }

  .modal-card { border-radius: 20px; }

  .mobile-tabs {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    padding: 5px;
    border-radius: 17px;
  }
  .mobile-tabs a { min-height: 55px; gap: 3px; border-radius: 12px; font-size: 11px; }

  footer { display: none; }
}

@media (max-width: 420px) {
  .notification-button { display: none; }
  .balance-box { width: clamp(98px, 34vw, 118px); }

  .upgrade-workspace > .source-panel,
  .upgrade-workspace > .target-panel:not(.picker-open) { min-height: 204px; padding: 9px; }

  .source-panel .stake-addon-picker { min-height: 120px; }
  .target-panel:not(.picker-open) .selected-target { min-height: 121px; }

  .inventory-item { min-height: 207px; padding: 8px; }
  .inventory-media { height: 102px; }
  .inventory-item .inventory-media img { height: 94px; }
  .inventory-price { font-size: 10px; }
  .inventory-price .vcoin-icon { font-size: 9px; }

  .profile-heading small { display: none; }
  .profile-tabs { gap: 3px; padding: 7px; }
  .profile-tabs button { column-gap: 4px; padding-inline: 5px; }
  .profile-tabs button > span:not(.brand-mini-icon) { font-size: 9px; }
  .profile-tabs button small { font-size: 8px; }
}

@media (max-width: 360px) {
  .site-header { gap: 5px; padding-inline: 6px; }
  .site-header > .brand .brand-mark { width: 29px; height: 31px; }
  .header-metrics .online > span { min-width: 39px; }
  .header-metrics .online b { min-width: 39px; font-size: 11px; }
  .balance-box { width: 104px; }
  .profile-button { width: 36px; height: 36px; flex-basis: 36px; }

  .upgrade-workspace { gap: 6px; }
  .upgrade-workspace .wheel-wrap { width: min(270px, calc(100vw - 32px)); }
  .upgrade-workspace .chance-ring { width: 204px; height: 204px; }
  .upgrade-workspace > .source-panel,
  .upgrade-workspace > .target-panel:not(.picker-open) { min-height: 194px; padding: 8px; }
  .source-panel .stake-addon-picker { min-height: 112px; }
  .target-panel:not(.picker-open) .selected-target { min-height: 113px; }
  .upgrade-workspace .step-label { font-size: 9px; }
  .mobile-preset-grid { gap: 4px; }
  .mobile-preset-grid button { min-height: 38px; font-size: 10px; }

  .section-heading.compact { padding: 14px; }
  .section-heading.compact h2 { font-size: 21px; }
  .inventory-actions { max-width: 58%; }
  .inventory-actions .button { padding-inline: 11px; }

  .inventory-item .inventory-bottom { align-items: stretch; flex-direction: column; }
  .inventory-price { justify-content: center; }
  .inventory-item .inventory-bottom button { width: 100%; }

  .history-row { grid-template-columns: 36px 38px minmax(0, 1fr) auto; gap: 6px; padding: 8px; }
  .history-thumb { width: 38px; height: 30px; }
  .history-status { padding-inline: 4px; font-size: 7px; }

  .mobile-tabs { right: 6px; left: 6px; gap: 3px; padding: 4px; }
  .mobile-tabs a { min-height: 51px; font-size: 10px; }
}

@keyframes vuPageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes vuButtonSweep {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

@media (prefers-reduced-motion: reduce) {
  .app-page.is-active { animation: none; }
  .live-track { animation: none; }
  .spin-button:hover:not(:disabled)::before { animation: none; }
  .inventory-item:hover .inventory-media img { scale: 1; }
}

/* Screenshot QA fixes: keep the mobile stage seamless and unobstructed. */
.site-header > .brand .brand-mark {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: calc(50% + 2px) center;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(200,255,56,.18));
}

.toast-region,
.toast {
  display: none !important;
}

@media (max-width: 760px) {
  .site-header > .brand .brand-mark {
    width: 38px;
    height: 31px;
    flex-basis: 38px;
  }

  body[data-page="upgrade"] .app-main { width: 100%; }
  .upgrade-section { max-width: none; padding-inline: 8px; }

  .upgrade-section,
  .upgrade-workspace,
  .upgrade-workspace.target-picker-active {
    border-radius: 0 !important;
  }

  .upgrade-section::before {
    inset: 0 0 -28px;
    width: auto;
    transform: none;
    border-radius: 0;
    background:
      radial-gradient(ellipse 52% 270px at 50% 270px, rgba(139,92,255,.14), transparent 100%),
      radial-gradient(ellipse 70% 55% at 50% 65%, rgba(200,255,56,.025), transparent 100%);
    opacity: 1;
    filter: none;
    mask-image: linear-gradient(to bottom, #000 0 84%, transparent 100%);
  }

  .upgrade-workspace > .wheel-panel::after { content: none; }

  .upgrade-workspace .wheel-wrap {
    background: radial-gradient(circle, rgba(139,92,255,.105), transparent 68%);
  }

  .upgrade-workspace .wheel-pointer {
    background: none !important;
  }

  .upgrade-workspace .wheel-pointer::before {
    top: -3px;
    width: 14px;
    height: 27px;
    background: linear-gradient(180deg, #fff 0 10%, var(--lime) 11% 100%);
    clip-path: polygon(0 0, 100% 0, 62% 62%, 50% 100%, 38% 62%);
  }

  .upgrade-workspace .wheel-pointer::after {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .site-header > .brand .brand-mark {
    width: 36px;
    height: 30px;
    flex-basis: 36px;
  }
}

/* Keep touch focus inside the component's rounded surface instead of drawing
   a second rectangular browser outline around its inner control. */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(200, 255, 56, .62);
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
}

.target-picker-inline .target-picker-filters input:focus-visible,
.search-box input:focus-visible,
.quick-deposit-input input:focus-visible,
.promo-line input:focus-visible,
.preset-settings-grid input:focus-visible,
.deposit-input input:focus-visible {
  outline: none;
}

.deposit-input input:focus {
  border-color: rgba(200, 255, 56, .58);
  box-shadow: 0 0 0 3px rgba(200, 255, 56, .07);
}

.search-box:focus-within {
  border-color: rgba(200, 255, 56, .42);
  box-shadow: 0 0 0 3px rgba(200, 255, 56, .055);
}

@media (hover: none) and (pointer: coarse) {
  button:focus-visible,
  a:focus-visible,
  select:focus-visible,
  [role="button"]:focus-visible,
  [tabindex]:focus-visible {
    box-shadow: none;
  }
}

/* The catalog is the only active mobile surface while it is open. */
.mobile-tabs {
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

@media (max-width: 1180px) {
  body.target-picker-open .mobile-tabs {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition-delay: 0s;
  }
}

@media (max-width: 760px) {
  body.target-picker-open {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Keep the page width steady when the profile locks background scrolling. */
@media (min-width: 761px) {
  html { scrollbar-gutter: stable; }
}

/* Inventory dashboard: the account layout follows the reference without copying its branding. */
.site-loader-brand { color: inherit; text-decoration: none; }
.stage-title .stage-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.inventory-section.app-page { max-width: 1180px; margin-inline: auto; }
.inventory-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 18px; padding: 0 2px; }
.inventory-intro .eyebrow { margin-bottom: 7px; font-size: 9px; }
.inventory-intro h2 { font-size: clamp(25px, 2.6vw, 34px); }
.inventory-intro p { margin: 8px 0 0; color: #8d96a6; font-size: 12px; }
.inventory-demo-badge { flex: 0 0 auto; padding: 8px 11px; color: #bfcf94; border: 1px solid rgba(200,255,56,.16); border-radius: 9px; background: rgba(200,255,56,.045); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.inventory-dashboard { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.05fr); gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: linear-gradient(145deg,#1e222d,#151922); box-shadow: 0 20px 45px rgba(0,0,0,.18); }
.inventory-account-card,.inventory-wallet-card,.inventory-best-card,.inventory-stat-grid section { min-width: 0; border: 1px solid rgba(255,255,255,.065); border-radius: 17px; background: linear-gradient(145deg,rgba(12,15,22,.73),rgba(23,27,36,.78)); }
.inventory-account-card,.inventory-wallet-card { min-height: 238px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.inventory-account-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.inventory-avatar { width: 62px; height: 62px; flex: 0 0 62px; display: grid; place-items: center; color: #d3ff66; border: 1px solid rgba(200,255,56,.22); border-radius: 17px; background: radial-gradient(circle at 30% 20%,rgba(200,255,56,.18),rgba(85,107,28,.07) 72%),#252c20; }
.inventory-avatar svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.inventory-account-head > div { min-width: 0; display: grid; gap: 4px; }
.inventory-account-head small,.inventory-card-label { color: #a9b879; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.inventory-account-head strong { overflow: hidden; color: #f1f3f7; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-account-head div > span,.inventory-wallet-note { color: #838c9b; font-size: 11px; }
.inventory-account-foot { display: grid; gap: 9px; }
.inventory-account-foot > span { display: flex; justify-content: space-between; padding: 11px 12px; color: #a6afbd; border-radius: 10px; background: rgba(255,255,255,.035); font-size: 11px; }
.inventory-account-foot b { color: #e9f6c3; }
.inventory-account-foot button { min-height: 37px; padding: 0 12px; color: #e5ebd9; border: 1px solid rgba(200,255,56,.15); border-radius: 10px; background: rgba(200,255,56,.045); cursor: pointer; font-size: 11px; font-weight: 750; text-align: left; }
.inventory-account-foot button span { float: right; font-size: 14px; }
.inventory-wallet-card > strong { display: block; margin-top: 9px; color: #f6f8fc; font-size: clamp(25px,2.4vw,34px); line-height: 1.15; }
.inventory-wallet-card > strong .vcoin-price { gap: 8px; }
.inventory-wallet-card > strong .vcoin-icon { width: 27px; height: 27px; font-size: 16px; }
.inventory-wallet-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.inventory-wallet-actions button { min-height: 39px; padding: 0 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.055); color: #e8ecf2; cursor: pointer; font-size: 11px; font-weight: 800; }
.inventory-wallet-actions button:first-child { color: #10150b; border-color: var(--lime); background: var(--lime); }
.inventory-highlights { min-width: 0; display: grid; grid-template-rows: 1.22fr 1fr; gap: 9px; }
.inventory-best-card { position: relative; display: flex; justify-content: space-between; gap: 4px; min-height: 119px; padding: 14px; overflow: hidden; background: radial-gradient(circle at 90% 50%,color-mix(in srgb,var(--best-rarity) 16%,transparent),transparent 58%),linear-gradient(135deg,#202333,#171b26); }
.inventory-best-card > div:first-child { z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; }
.inventory-best-card strong { display: -webkit-box; overflow: hidden; color: #f1f2f6; font-size: 12px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.inventory-best-card #inventoryBestPrice { color: var(--lime); font-size: 12px; font-weight: 800; }
.inventory-best-image { width: 42%; min-width: 85px; display: grid; place-items: center; }
.inventory-best-image img { width: 100%; max-height: 100px; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(0,0,0,.5)); }
.inventory-stat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.inventory-stat-grid section { display: flex; flex-direction: column; justify-content: space-between; gap: 3px; padding: 12px; }
.inventory-stat-grid span { color: #bcc4d1; font-size: 11px; font-weight: 650; }
.inventory-stat-grid strong { color: var(--lime); font-size: 24px; line-height: 1; }
.inventory-stat-grid small { color: #77818f; font-size: 10px; }
.inventory-shell { overflow: hidden; border: 1px solid rgba(255,255,255,.085); border-radius: 22px; background: #151922; box-shadow: 0 20px 45px rgba(0,0,0,.16); }
.inventory-toolbar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.065); background: #20242e; }
.inventory-toolbar button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; color: #a9b2c0; border: 1px solid transparent; border-radius: 10px; background: rgba(6,9,15,.45); cursor: pointer; font-size: 11px; font-weight: 750; white-space: nowrap; }
.inventory-toolbar button.active { color: #10140b; border-color: var(--lime); background: var(--lime); }
.inventory-toolbar small { display: grid; place-items: center; min-width: 19px; min-height: 19px; padding: 0 4px; border-radius: 6px; background: rgba(255,255,255,.085); font-size: 9px; }
.inventory-toolbar button.active small { background: rgba(0,0,0,.11); }
.inventory-panel { min-height: 248px; padding: 16px; }
.inventory-shell .inventory-actions { width: 100%; max-width: none; display: flex; align-items: center; justify-content: space-between; flex-direction: row; gap: 12px; margin-bottom: 15px; }
.inventory-shell .inventory-actions #inventoryValue { justify-content: flex-start; flex-wrap: wrap; }
.inventory-sale-controls { display: inline-flex; align-items: center; justify-content: flex-end; gap: 11px; }
.inventory-sale-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: #a9b2c0; border: 0; background: none; cursor: pointer; font-size: 11px; }
.inventory-sale-toggle .switch { transform: scale(.8); transform-origin: right center; }
.inventory-shell .inventory-actions .button { min-height: 36px; }
.inventory-shell .inventory-actions .button:disabled { opacity: .42; cursor: default; }
.inventory-shell .inventory-grid { grid-template-columns: repeat(auto-fill,minmax(185px,1fr)); min-height: 188px; align-content: start; gap: 10px; }
.inventory-panel:not(.sale-mode) .inventory-item [data-sell] { display: none; }
.inventory-panel.show-activity .inventory-actions { display: none; }
.inventory-panel [hidden] { display: none !important; }
.inventory-shell .inventory-grid .empty-state,.inventory-activity .empty-state { min-height: 195px; border-color: rgba(255,255,255,.07); background: rgba(6,9,15,.25); }
.inventory-activity { display: grid; gap: 8px; align-content: start; }
.inventory-activity-row { min-width: 0; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 80px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.025); }
.inventory-activity-thumb { width: 64px; height: 52px; display: grid; place-items: center; border-radius: 9px; background: radial-gradient(circle,color-mix(in srgb,var(--rarity) 17%,transparent),transparent 72%); }
.inventory-activity-thumb img { width: 100%; height: 100%; object-fit: contain; }
.inventory-activity-row > div { min-width: 0; display: grid; gap: 3px; }
.inventory-activity-row time,.inventory-activity-row small { color: #8792a2; font-size: 10px; }
.inventory-activity-row strong { overflow: hidden; color: #e9edf4; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-activity-result { color: #aeb7c5; font-size: 11px; font-weight: 800; white-space: nowrap; }
.inventory-activity-result.win { color: var(--lime); }
.inventory-activity-result.loss { color: #ff8d9e; }
@media (max-width: 1050px) and (min-width: 761px) {
  .inventory-dashboard { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inventory-highlights { grid-column: 1/-1; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}
@media (max-width: 760px) {
  .inventory-intro { align-items: start; margin-bottom: 12px; }
  .inventory-intro h2 { font-size: 24px; }
  .inventory-intro p { max-width: 220px; font-size: 10px; line-height: 1.35; }
  .inventory-demo-badge { padding: 6px; font-size: 7px; }
  .inventory-dashboard { grid-template-columns: minmax(0,1fr); gap: 8px; margin-bottom: 12px; padding: 8px; border-radius: 18px; }
  .inventory-account-card,.inventory-wallet-card { min-height: 0; gap: 13px; padding: 13px; border-radius: 13px; }
  .inventory-avatar { width: 47px; height: 47px; flex-basis: 47px; border-radius: 12px; }
  .inventory-avatar svg { width: 25px; height: 25px; }
  .inventory-account-head strong { font-size: 14px; }
  .inventory-account-foot { grid-template-columns: 1fr auto; align-items: center; }
  .inventory-account-foot > span { gap: 6px; padding: 8px; font-size: 10px; }
  .inventory-account-foot button { min-height: 34px; font-size: 10px; }
  .inventory-account-foot button span { display: none; }
  .inventory-wallet-card > strong { margin-top: 0; font-size: 28px; }
  .inventory-wallet-actions { margin-top: 0; }
  .inventory-highlights { gap: 8px; }
  .inventory-best-card { min-height: 115px; border-radius: 13px; }
  .inventory-stat-grid section { min-height: 70px; border-radius: 13px; }
  .inventory-stat-grid strong { font-size: 20px; }
  .inventory-shell { border-radius: 17px; }
  .inventory-toolbar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; padding: 7px; }
  .inventory-toolbar button { min-width: 0; min-height: 39px; gap: 3px; padding: 0 4px; font-size: 10px; }
  .inventory-toolbar small { min-width: 16px; min-height: 16px; padding: 0 2px; font-size: 8px; }
  .inventory-panel { min-height: 210px; padding: 10px; }
  .inventory-shell .inventory-actions { flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
  .inventory-shell .inventory-actions #inventoryValue { width: 100%; font-size: 10px; }
  .inventory-sale-controls { width: 100%; justify-content: space-between; }
  .inventory-shell .inventory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; min-height: 170px; }
  .inventory-activity-row { grid-template-columns: 45px minmax(0,1fr); gap: 8px; padding: 8px; }
  .inventory-activity-thumb { width: 45px; height: 42px; }
  .inventory-activity-result { grid-column: 2; font-size: 10px; }
  .inventory-activity-row strong { font-size: 11px; }
}
@media (max-width: 340px) {
  .inventory-demo-badge { max-width: 67px; text-align: center; }
  .inventory-account-foot { grid-template-columns: 1fr; }
  .inventory-account-foot button { text-align: center; }
  .inventory-toolbar button { font-size: 9px; }
}

/* The new inventory dashboard is the profile page; navigation uses a person icon. */
a.profile-button { color: #f0eaff; text-decoration: none; background: linear-gradient(145deg,#5e43a2,#2b2345); }
.profile-button > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-tabs .profile-tab-icon { width: 21px; height: 21px; display: grid; place-items: center; }
.mobile-tabs .profile-tab-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inventory-account-foot .inventory-account-push { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inventory-account-push .switch { transform: scale(.72); transform-origin: right center; }
