:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-soft: #090a0c;
  --surface: rgba(17, 18, 21, 0.86);
  --surface-solid: #111215;
  --surface-raised: rgba(25, 27, 32, 0.9);
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-accent: rgba(103, 245, 231, 0.38);
  --text: #f7f8fb;
  --soft: #d7dce5;
  --muted: #9198a5;
  --faint: #626975;
  --cyan: #67f5e7;
  --blue: #7fb2ff;
  --green: #7af0a2;
  --red: #ff7189;
  --violet: #b9a2ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --radius-sm: 6px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(155deg, rgba(103, 245, 231, 0.12), rgba(103, 245, 231, 0) 30%),
    linear-gradient(25deg, rgba(127, 178, 255, 0.10), rgba(127, 178, 255, 0) 34%),
    linear-gradient(180deg, #08090b 0%, #050506 48%, #030304 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 22%, rgba(0, 0, 0, 0.22));
  opacity: 0.85;
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .72), transparent 86%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(103, 245, 231, .82);
  outline-offset: 3px;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.boot {
  width: 142px;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.boot img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .54), 0 0 34px rgba(103, 245, 231, .18);
  animation: riseIn .24s var(--ease) both;
}

.boot-line {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}

.boot-line::before {
  content: "";
  display: block;
  height: 100%;
  width: 44%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  animation: loading 1.1s infinite var(--ease);
}

@keyframes loading {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(18px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
  0% { background-position: 140% 0; }
  100% { background-position: -140% 0; }
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
  padding: calc(12px + env(safe-area-inset-top)) 12px calc(96px + env(safe-area-inset-bottom));
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .048), transparent 18%),
    linear-gradient(120deg, rgba(103, 245, 231, .08), transparent 34%),
    linear-gradient(240deg, rgba(185, 162, 255, .055), transparent 38%);
}

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  flex: 0 0 auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .42);
}

.brand-title {
  margin: 0;
  font-size: 19px;
  line-height: 1;
  font-weight: 850;
}

.brand-subtitle,
.caption {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--soft);
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  touch-action: manipulation;
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line-accent);
}

.view {
  display: grid;
  gap: 12px;
}

.logo-stage {
  display: grid;
  place-items: center;
  padding-top: 18px;
}

.logo-stage img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.command-surface {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .032) 58%, rgba(103, 245, 231, .075)),
    rgba(15, 16, 19, .9);
  box-shadow: var(--shadow);
  animation: riseIn .24s var(--ease) both;
}

.command-surface::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 245, 231, .58), transparent);
}

.command-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.command-head h2 {
  margin: 0;
  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.02;
  font-weight: 860;
}

.command-head p {
  max-width: 27ch;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.rate-token {
  min-width: 82px;
  padding: 10px;
  text-align: right;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
}

.rate-token span,
.signal-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.rate-token strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.signal-row div {
  min-width: 0;
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}

.signal-row svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  margin-bottom: 2px;
}

.signal-row strong {
  min-width: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.hero-button,
.primary-button,
.ghost-button,
.danger-button,
.mini-button {
  min-height: 48px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), opacity .18s var(--ease), filter .18s var(--ease);
  touch-action: manipulation;
}

.hero-button {
  width: 100%;
  min-height: 66px;
  padding: 0 14px 0 16px;
  justify-content: space-between;
  text-align: left;
  background: linear-gradient(100deg, #f7f8fb 0%, #dffefa 46%, #87f2e9 100%);
  color: #050506;
  border: 1px solid rgba(255, 255, 255, .52);
  box-shadow: 0 16px 44px rgba(103, 245, 231, .18), inset 0 1px 0 rgba(255, 255, 255, .8);
  position: relative;
  overflow: hidden;
}

.hero-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-130%);
  animation: shimmer 2.6s var(--ease) 1 .45s;
}

.hero-button strong,
.hero-button small,
.hero-button svg {
  position: relative;
}

.hero-button strong {
  display: block;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 880;
}

.hero-button small {
  display: block;
  margin-top: 4px;
  color: rgba(5, 5, 6, .63);
  font-size: 12px;
  line-height: 1.25;
}

.hero-button svg {
  color: #050506;
  flex: 0 0 auto;
}

.primary-button {
  padding: 0 15px;
  background: linear-gradient(100deg, #f7f8fb, #82f3e9);
  color: #050506;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, .48);
  box-shadow: 0 14px 38px rgba(103, 245, 231, .15);
}

.ghost-button {
  padding: 0 15px;
  background: rgba(255, 255, 255, .052);
  border: 1px solid var(--line);
  color: var(--soft);
  font-weight: 760;
}

.danger-button {
  padding: 0 15px;
  background: rgba(255, 113, 137, .10);
  border: 1px solid rgba(255, 113, 137, .34);
  color: #ffd9df;
  font-weight: 760;
}

.mini-button {
  min-height: 38px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .052);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 780;
}

.hero-button:active,
.primary-button:active,
.ghost-button:active,
.danger-button:active,
.mini-button:active,
.icon-button:active,
.nav-item:active,
.chip:active,
.size-grid button:active,
.address-choice:active {
  transform: scale(.982);
}

button:disabled {
  cursor: not-allowed;
  opacity: .44;
  filter: grayscale(.18);
}

.panel,
.process-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .064), rgba(255, 255, 255, .028)),
    rgba(12, 13, 16, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: riseIn .22s var(--ease) both;
}

.panel-pad,
.process-panel {
  padding: 14px;
}

.orders-preview {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    rgba(12, 13, 16, .9);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  color: rgba(247, 248, 251, .92);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 820;
  text-transform: uppercase;
}

.link-button {
  min-height: 34px;
  padding: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.order-row,
.address-row,
.promo-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .038);
}

.order-row + .order-row,
.address-row + .address-row,
.promo-row + .promo-row {
  margin-top: 9px;
}

.order-thumb,
.product-card img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #090a0d;
  border: 1px solid var(--line-soft);
}

.order-title,
.address-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.18;
  font-weight: 820;
}

.order-meta,
.address-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.price {
  grid-column: 2;
  margin-top: 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 880;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(103, 245, 231, .42);
}

.status-paid::before,
.status-delivered::before {
  background: var(--green);
  box-shadow: 0 0 14px rgba(122, 240, 162, .36);
}

.status-cancelled::before {
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 113, 137, .36);
}

.empty-state {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, .026);
}

.empty-state .empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--cyan);
  border: 1px solid rgba(103, 245, 231, .25);
  background: rgba(103, 245, 231, .055);
  font-weight: 850;
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.22;
  font-weight: 820;
}

.empty-state span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.process-step {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.18;
}

.process-step .step-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}

.process-step svg {
  width: 20px;
  height: 20px;
}

.info-grid,
.admin-grid,
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.info-card,
.admin-tile,
.calc-tile {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.info-card svg,
.admin-tile svg {
  width: 21px;
  height: 21px;
  color: var(--cyan);
  margin-bottom: 9px;
}

.info-card strong,
.admin-tile strong,
.calc-tile strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.22;
  font-weight: 810;
  overflow-wrap: anywhere;
}

.info-card span,
.admin-tile span,
.calc-tile span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.34;
}

.flow-panel {
  position: relative;
  border-color: rgba(103, 245, 231, .34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .026)),
    rgba(10, 11, 14, .96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58), 0 0 0 1px rgba(103, 245, 231, .08);
  animation: sheetIn .24s var(--ease) both;
}

.flow-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 42px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 17px 0 15px;
}

.step-dot {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.step-dot.active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 16px rgba(103, 245, 231, .22);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.segmented button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.segmented button svg {
  width: 19px;
  height: 19px;
}

.segmented button.active {
  color: #050506;
  background: linear-gradient(100deg, #f7f8fb, #87f2e9);
}

.form-grid {
  display: grid;
  gap: 11px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 780;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, .055);
  outline: none;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.textarea {
  min-height: 98px;
  padding-top: 12px;
  resize: vertical;
}

.select {
  color: var(--text);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(145, 152, 165, .76);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(103, 245, 231, .7);
  background: rgba(255, 255, 255, .072);
  box-shadow: 0 0 0 3px rgba(103, 245, 231, .105);
}

.file-drop {
  min-height: 76px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(103, 245, 231, .24);
  border-radius: var(--radius);
  background: rgba(103, 245, 231, .055);
  color: var(--soft);
  cursor: pointer;
}

.file-drop svg {
  color: var(--cyan);
}

.file-drop span {
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.actions.single {
  grid-template-columns: 1fr;
}

.product-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.product-card img {
  width: 112px;
  height: 112px;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.14;
  font-weight: 840;
}

.product-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.product-original {
  margin-top: 5px;
  color: rgba(247, 248, 251, .52);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 650;
}

.product-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--cyan);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 780;
  text-transform: uppercase;
}

.product-source svg {
  width: 16px;
  height: 16px;
}

.size-groups {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.size-group {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
  border-radius: var(--radius);
}

.size-group-title {
  color: rgba(247, 248, 251, .68);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 820;
  text-transform: uppercase;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.size-grid button,
.chip {
  min-height: 42px;
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(255, 255, 255, .052);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 780;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.size-grid button span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1;
  color: rgba(247, 248, 251, .58);
}

.size-grid button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.size-grid button.active,
.chip.active {
  color: #050506;
  border-color: rgba(255, 255, 255, .58);
  background: linear-gradient(100deg, #f7f8fb, #87f2e9);
}

.size-grid button.active span {
  color: rgba(5, 5, 6, .62);
}

.calc-grid {
  grid-template-columns: 1fr;
}

.calc-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.calc-tile strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.address-select {
  display: grid;
  gap: 8px;
}

.address-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.address-choice.active {
  border-color: rgba(103, 245, 231, .68);
  background: rgba(103, 245, 231, .07);
}

.radio-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  margin-top: 2px;
}

.address-choice.active .radio-dot {
  border: 5px solid var(--cyan);
}

.skeleton-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .032);
}

.skeleton-thumb,
.skeleton-line {
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 255, 255, .055), rgba(103, 245, 231, .15), rgba(255, 255, 255, .055));
  background-size: 220% 100%;
  animation: shimmer 1.35s infinite linear;
}

.skeleton-thumb {
  width: 64px;
  height: 64px;
}

.skeleton-lines {
  display: grid;
  gap: 8px;
}

.skeleton-line {
  height: 11px;
}

.skeleton-line.short {
  width: 64%;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}

.timeline-mark {
  width: 10px;
  height: 10px;
  margin: 5px auto 0;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(103, 245, 231, .34);
}

.timeline-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.timeline-item strong {
  font-size: 13px;
  line-height: 1.2;
}

.admin-lock {
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(185, 162, 255, .28);
  border-radius: var(--radius);
  background: rgba(185, 162, 255, .055);
}

.admin-lock svg {
  color: var(--violet);
  width: 36px;
  height: 36px;
}

.admin-order {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.admin-order + .admin-order {
  margin-top: 10px;
}

.admin-order-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-form {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
}

.filter-row .chip {
  padding: 0 10px;
  white-space: normal;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: grid;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(6, 7, 9, .86);
  border-top: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(22px);
  z-index: 10;
}

.nav-item {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 760;
  cursor: pointer;
  transition: transform .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, .072);
}

.nav-item.active svg {
  color: var(--cyan);
}

.nav-item.admin.active svg {
  color: var(--violet);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 28px));
  transform: translateX(-50%);
  padding: 13px 14px;
  color: var(--text);
  background: rgba(13, 14, 17, .96);
  border: 1px solid rgba(103, 245, 231, .38);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 20;
}

.hidden {
  display: none !important;
}

@media (hover: hover) {
  .hero-button:hover,
  .primary-button:hover {
    filter: brightness(1.04);
  }

  .ghost-button:hover,
  .mini-button:hover,
  .nav-item:hover,
  .chip:hover,
  .size-grid button:hover {
    border-color: rgba(103, 245, 231, .34);
    background: rgba(255, 255, 255, .075);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding-top: 20px;
  }
}

@media (max-width: 360px) {
  .app-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .command-head {
    grid-template-columns: 1fr;
  }

  .rate-token {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .rate-token strong {
    margin-top: 0;
  }

  .signal-row,
  .info-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .product-card img {
    width: 96px;
    height: 96px;
  }

  .size-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .two-col,
  .actions {
    grid-template-columns: 1fr;
  }
}
