:root {
  --bg: #05060a;
  --bg-2: #090b11;
  --panel: #0d1017;
  --panel-2: #12161f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f9;
  --muted: #8a93a7;
  --muted-2: #5b6375;
  --orange: #ff5a1f;
  --orange-2: #ff8b45;
  --lime: #b8f24b;
  --blue: #6f8cff;
  --green: #3fe0a0;
  --red: #ff5c7a;
  --radius: 22px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(255, 90, 31, 0.35); color: #fff; }

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
  pointer-events: none;
}
.glow {
  position: fixed;
  z-index: 0;
  width: 62vw;
  height: 62vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.glow-a {
  top: -28vw;
  left: -18vw;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.32), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-b {
  right: -24vw;
  bottom: -32vw;
  background: radial-gradient(circle, rgba(92, 120, 255, 0.2), transparent 66%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 3vw, 0) scale(1.08); }
}

.app {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px) 130px;
}

/* --- boot -------------------------------------------------------------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: var(--bg);
  transition: opacity 0.4s ease;
}
.boot.hidden { opacity: 0; pointer-events: none; }
.boot-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: #120601;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  animation: pulse 1.6s ease-in-out infinite;
}
.boot-text { font-family: var(--display); letter-spacing: 0.14em; font-size: 13px; }
.boot-status { color: var(--muted); font-size: 13px; max-width: 280px; text-align: center; }
.boot.error .boot-mark { background: linear-gradient(135deg, var(--red), #ff8aa0); }
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 90, 31, 0); }
  50% { transform: scale(1.04); box-shadow: 0 0 44px rgba(255, 90, 31, 0.35); }
}

/* --- topbar ------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 14px;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0.55) 70%, transparent);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: #120601;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.05;
}
.brand-text small { color: var(--muted); font-size: 9px; letter-spacing: 0.34em; }
.topbar-meta { display: flex; align-items: center; gap: 8px; }
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.live b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(63, 224, 160, 0.12);
  animation: blink 2.2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11px;
}
.pill span { text-transform: uppercase; letter-spacing: 0.14em; font-size: 9px; }
.pill b { color: var(--text); font-family: var(--mono); font-size: 12px; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, #1b2130, #0b0e14);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- shared ------------------------------------------------------------ */
.view { animation: fade-up 0.4s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange));
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn.primary {
  border: 0;
  color: #140801;
  background: linear-gradient(135deg, var(--orange), #ff8a3d);
  box-shadow: 0 12px 34px rgba(255, 90, 31, 0.28);
  position: relative;
  overflow: hidden;
}
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.42) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn.primary:hover::after { transform: translateX(120%); }
.btn.ghost { background: transparent; }
.btn.small { padding: 9px 12px; border-radius: 11px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn.danger { border-color: rgba(255, 92, 122, 0.35); color: #ffb6c4; }
.btn.success { border-color: rgba(63, 224, 160, 0.35); color: #b9ffe4; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.badge.plus { color: #ffd2bc; border-color: rgba(255, 90, 31, 0.35); background: rgba(255, 90, 31, 0.1); }
.badge.premium { color: #d7ddff; border-color: rgba(111, 140, 255, 0.35); background: rgba(111, 140, 255, 0.1); }
.badge.gift { color: #ecffc9; border-color: rgba(184, 242, 75, 0.32); background: rgba(184, 242, 75, 0.09); }
.badge.ok { color: #b9ffe4; border-color: rgba(63, 224, 160, 0.32); background: rgba(63, 224, 160, 0.08); }
.badge.warn { color: #ffe1b0; border-color: rgba(255, 176, 46, 0.32); background: rgba(255, 176, 46, 0.08); }
.badge.bad { color: #ffb6c4; border-color: rgba(255, 92, 122, 0.32); background: rgba(255, 92, 122, 0.08); }

/* --- hero -------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding: clamp(26px, 5vw, 58px) 0 clamp(30px, 5vw, 54px);
}
.hero h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin: 16px 0 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
  letter-spacing: -0.02em;
  text-shadow: 0 0 46px rgba(255, 90, 31, 0.35);
}
.hero p { color: var(--muted); max-width: 520px; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 26px; }
.hero-action { display: flex; flex-direction: column; gap: 8px; }
.hero-action .quick-panel { margin-top: 0; }
.hero-action .hero-actions { margin: 0; }
.hero-action .hero-actions .btn { width: 100%; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.stat b { font-family: var(--mono); font-size: 15px; }
.stat span { color: var(--muted-2); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-orbit {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 18%, var(--orange) 26%, transparent 34% 58%, var(--blue) 66%, transparent 74% 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: spin 9s linear infinite;
  opacity: 0.9;
}
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 30%, rgba(255, 90, 31, 0.12), transparent 60%), var(--panel);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6), var(--shadow);
}
.orbit-core {
  position: relative;
  z-index: 2;
  text-align: center;
}
.orbit-core b { display: block; font-family: var(--display); font-size: clamp(34px, 7vw, 54px); color: var(--lime); letter-spacing: -0.03em; }
.orbit-core span { color: var(--muted); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- catalog ----------------------------------------------------------- */
.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.catalog-head h2 { font-size: clamp(22px, 3vw, 30px); }
.catalog-head .count { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.filters {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { color: #160901; background: var(--orange); border-color: var(--orange); }
.chip .n { opacity: 0.6; margin-left: 5px; font-family: var(--mono); font-size: 10px; }
.tools { display: flex; gap: 8px; }
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  min-height: 42px;
}
.field input, .field select {
  border: 0;
  background: transparent;
  outline: 0;
  min-width: 0;
  width: 100%;
  color: var(--text);
  font-size: 13px;
}
.field select { width: auto; color: var(--muted); }
.field svg { flex: 0 0 auto; color: var(--muted-2); }
.field.search { width: 220px; }

.grid {
  display: grid;
  gap: 16px;
}
.lot-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(255, 90, 31, 0.06), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}
.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.group-title { display: flex; align-items: center; gap: 9px; min-width: 0; flex-wrap: wrap; }
.group-title h3 { font-family: var(--display); font-size: 15px; letter-spacing: -0.02em; }
.group-note { color: var(--muted); font-size: 11px; }
.group-count {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.group-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 90, 31, 0.85);
}
.group-dot.usd { background: var(--green); box-shadow: 0 0 10px rgba(63, 224, 160, 0.85); }
.group-dot.uah { background: #ffb02e; box-shadow: 0 0 10px rgba(255, 176, 46, 0.85); }
.group-dot.any { background: var(--blue); box-shadow: 0 0 10px rgba(111, 140, 255, 0.85); }
.group-dot.gift { background: var(--lime); box-shadow: 0 0 10px rgba(184, 242, 75, 0.8); }
.group-dot.other { background: var(--muted); box-shadow: 0 0 10px rgba(138, 147, 167, 0.6); }
.lot-list { display: grid; }
.lot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "name money action"
    "meta money action";
  align-items: center;
  gap: 2px 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}
.lot:first-child { border-top: 0; }
.lot:hover { background: rgba(255, 255, 255, 0.03); }
.lot-name { grid-area: name; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lot-name h3 { font-size: 15px; letter-spacing: -0.01em; }
.lot-meta { grid-area: meta; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 11px; line-height: 1.4; }
.lot-meta .cur-names { color: var(--muted-2); }
.lot-money { grid-area: money; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; line-height: 1.15; }
.lot-money b { font-family: var(--mono); font-size: 19px; letter-spacing: -0.04em; }
.lot-was { display: inline-flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 10px; }
.lot-was s { opacity: 0.7; font-family: var(--mono); font-size: 10px; }
.lot-was em { color: var(--lime); font-style: normal; font-weight: 700; }
.lot-action { grid-area: action; display: flex; align-items: center; gap: 8px; }
.lot-action .star { margin: 0; }
.lot-action .btn { padding: 8px 14px; border-radius: 11px; font-size: 12px; white-space: nowrap; }
.star {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1;
}
.star.on { color: var(--lime); border-color: rgba(184, 242, 75, 0.4); background: rgba(184, 242, 75, 0.08); }
.card-btn {
  background: rgba(255, 90, 31, 0.08);
  border-color: rgba(255, 90, 31, 0.28);
  color: #ffb08a;
}
.card-btn:hover { background: var(--orange); border-color: var(--orange); color: #140801; box-shadow: 0 10px 26px rgba(255, 90, 31, 0.24); }
.empty {
  grid-column: 1 / -1;
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }

/* --- lists / orders ---------------------------------------------------- */
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 16px; }
.section-title h1, .section-title h2 { font-size: clamp(26px, 4vw, 40px); font-family: var(--display); letter-spacing: -0.03em; }
.stack { display: grid; gap: 10px; }
.row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.row-card .grow { flex: 1; min-width: 0; }
.row-card h3 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-card .sub { color: var(--muted); font-size: 11px; }
.row-card .amount { font-family: var(--mono); font-weight: 600; }
.status { font-size: 10px; padding: 4px 8px; border-radius: 7px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.status.pending { color: #ffe1b0; background: rgba(255, 176, 46, 0.1); border: 1px solid rgba(255, 176, 46, 0.28); }
.status.done { color: #b9ffe4; background: rgba(63, 224, 160, 0.08); border: 1px solid rgba(63, 224, 160, 0.28); }
.status.refused { color: #ffb6c4; background: rgba(255, 92, 122, 0.08); border: 1px solid rgba(255, 92, 122, 0.28); }
.status.refund { color: #d7ddff; background: rgba(111, 140, 255, 0.1); border: 1px solid rgba(111, 140, 255, 0.3); }
.hint {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
}
.hint b { color: var(--text); }

/* --- debt -------------------------------------------------------------- */
.debt-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-bottom: 20px;
}
.debt-card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(255, 90, 31, 0.16), transparent 65%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.debt-card .label { color: var(--muted); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.debt-card .value { font-family: var(--display); font-size: clamp(38px, 7vw, 64px); letter-spacing: -0.04em; line-height: 1.05; margin: 8px 0 4px; }
.debt-card .value.credit { color: var(--lime); }
.progress {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  margin: 20px 0 8px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--lime));
  transition: width 0.6s ease;
}
.progress-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-family: var(--mono); }
.debt-side { display: grid; gap: 10px; }
.mini-stat { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.mini-stat b { display: block; font-family: var(--mono); font-size: 20px; }
.mini-stat span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; padding: 9px 0; align-items: start; }
.tl-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(63, 224, 160, 0.08); }
.tl-item .sub { color: var(--muted); font-size: 11px; }
.tl-item .amount { font-family: var(--mono); font-size: 13px; color: var(--lime); }

/* --- profile ----------------------------------------------------------- */
.profile-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(111, 140, 255, 0.14), transparent 65%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  margin-bottom: 16px;
}
.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 24px;
  background: linear-gradient(145deg, #1c2231, #0b0e14);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h2 { font-size: 22px; }
.profile-card .handle { color: var(--muted); font-size: 12px; }
.steps { display: grid; gap: 10px; margin: 16px 0; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.step-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 90, 31, 0.12); color: var(--orange-2); font-family: var(--mono); font-size: 12px; }
.step b { display: block; font-size: 13px; }
.step span { color: var(--muted); font-size: 11px; }

/* --- admin ------------------------------------------------------------- */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-tabs { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; width: fit-content; }
.admin-tab { padding: 8px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-tab.active { background: rgba(255, 90, 31, 0.14); color: var(--text); }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.admin-stat { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.admin-stat b { display: block; font-family: var(--mono); font-size: 18px; }
.admin-stat span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; }
.order-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 10px;
}
.order-card .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-card .who { color: var(--muted); font-size: 11px; }
.order-card .price { font-family: var(--mono); font-size: 16px; }
.secret {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #07090d;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
}
.secret code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; filter: blur(5px); user-select: none; }
.secret.revealed code { filter: none; user-select: text; }
.secret button { border: 0; background: transparent; color: var(--orange-2); font-size: 10px; font-weight: 700; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.allow-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.allow-form .field { flex: 1; min-width: 140px; }
.sync-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); margin-bottom: 16px; }
.sync-row .sub { color: var(--muted); font-size: 11px; }

/* --- tabs -------------------------------------------------------------- */
.tabs {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  padding: 5px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 11, 17, 0.86);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tab svg { width: 17px; height: 17px; }
.tab.active { color: var(--text); background: rgba(255, 90, 31, 0.14); }
.tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: translateX(-50%);
}
.tab .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.tab span.label { display: inline; }
@media (max-width: 560px) {
  .tab span.label { display: none; }
  .tab { padding: 12px 15px; }
}

/* --- modal ------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.backdrop { position: absolute; inset: 0; background: rgba(2, 3, 6, 0.74); backdrop-filter: blur(9px); animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(255, 90, 31, 0.13), transparent 65%),
    linear-gradient(180deg, #12161f, #0a0d13);
  box-shadow: var(--shadow);
  animation: sheet-in 0.28s cubic-bezier(0.2, 0.9, 0.25, 1);
  scrollbar-width: thin;
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.sheet-share {
  position: absolute;
  top: 14px;
  right: 56px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}
.sheet-share:hover, .sheet-close:hover { color: var(--text); border-color: var(--line-strong); }
.sheet-head { padding-right: 40px; }
.sheet-head .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sheet-head h2 { font-size: 22px; margin-bottom: 3px; }
.sheet-head .term { color: var(--muted); font-size: 12px; }
.sheet-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.sheet-price b { font-family: var(--mono); font-size: 30px; letter-spacing: -0.04em; }
.sheet-price s { color: var(--muted); opacity: 0.7; font-family: var(--mono); font-size: 13px; }
.sheet-price .save { margin-left: auto; color: var(--lime); font-size: 11px; font-weight: 800; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.24); margin: 14px 0; }
.seg { flex: 1; padding: 9px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.seg.active { background: rgba(255, 90, 31, 0.16); color: var(--text); }
.input, .textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 5, 8, 0.6);
  color: var(--text);
  font-size: 13px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus, .textarea:focus { border-color: rgba(255, 90, 31, 0.55); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.1); }
.textarea { min-height: 96px; resize: vertical; font-family: var(--mono); font-size: 12px; }
.form-grid { display: grid; gap: 9px; margin: 12px 0; }
.note { color: var(--muted-2); font-size: 11px; line-height: 1.45; }
.note b { color: var(--muted); }
.result {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  margin: 12px 0;
  border: 1px solid var(--line);
}
.result.ok { border-color: rgba(63, 224, 160, 0.3); background: rgba(63, 224, 160, 0.07); color: #c8ffe9; }
.result.warn { border-color: rgba(255, 176, 46, 0.3); background: rgba(255, 176, 46, 0.07); color: #ffe6bb; }
.result.bad { border-color: rgba(255, 92, 122, 0.3); background: rgba(255, 92, 122, 0.07); color: #ffc3ce; }
.result b { display: block; margin-bottom: 2px; }
.result.ok { animation: success-pop 0.45s ease both; }
.result .tick {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(63, 224, 160, 0.15);
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}
.result.warn .tick { background: rgba(255, 176, 46, 0.15); color: var(--orange-2); }
@keyframes success-pop {
  0% { transform: scale(0.96); opacity: 0; }
  60% { transform: scale(1.01); opacity: 1; }
  100% { transform: scale(1); }
}
.sheet.is-verified {
  border-color: rgba(63, 224, 160, 0.38);
  box-shadow: 0 0 0 1px rgba(63, 224, 160, 0.12), 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(63, 224, 160, 0.1);
}
.match-btn { margin-top: 8px; }
.matched-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(63, 224, 160, 0.3);
  background: linear-gradient(120deg, rgba(63, 224, 160, 0.12), rgba(63, 224, 160, 0.02));
  animation: success-pop 0.45s ease both;
}
.matched-banner .tick {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(63, 224, 160, 0.16);
  color: var(--green);
  font-weight: 800;
}
.matched-banner b { display: block; font-size: 13px; }
.matched-banner .sub { color: var(--muted); font-size: 11px; }
.matched-banner .btn { margin-left: auto; }
.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}
.shake { animation: shake 0.36s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* --- success overlay --------------------------------------------------- */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(3, 4, 8, 0.78);
  backdrop-filter: blur(12px);
  animation: fade 0.25s ease;
  transition: opacity 0.22s ease;
}
.success-overlay.out { opacity: 0; }
.success-card {
  position: relative;
  z-index: 2;
  width: min(360px, calc(100vw - 40px));
  padding: 30px 24px;
  border-radius: 26px;
  border: 1px solid rgba(63, 224, 160, 0.3);
  background: linear-gradient(180deg, #101a17, #0a0d12);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
  animation: sheet-in 0.35s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.success-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(63, 224, 160, 0.2), transparent 70%);
}
.success-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(63, 224, 160, 0.25);
  border-top-color: var(--green);
  animation: spin 1.2s linear infinite;
}
.success-ring span { color: var(--green); font-size: 38px; animation: pop 0.5s 0.12s both; }
.success-card h2 { font-family: var(--font); font-size: 24px; margin-bottom: 6px; }
.success-card p { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.success-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.success-confetti i {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: 7px;
  height: 12px;
  border-radius: 2px;
  background: var(--c);
  transform: rotate(var(--rot));
  animation: confetti 1.5s var(--delay) ease-in forwards;
}
@keyframes confetti {
  to { transform: translateY(110vh) rotate(calc(var(--rot) + 260deg)); opacity: 0.15; }
}
@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.sheet-actions { display: grid; gap: 8px; margin-top: 14px; }
.sheet-actions .row { display: flex; gap: 8px; }
.sheet-actions .row .btn { flex: 1; }

/* --- toasts ------------------------------------------------------------ */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 96px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  padding: 12px 15px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 15, 22, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: toast-in 0.25s ease both;
}
.toast.ok { border-color: rgba(63, 224, 160, 0.35); }
.toast.bad { border-color: rgba(255, 92, 122, 0.4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- quick token panel -------------------------------------------------- */
.mode-pill { border-color: rgba(255, 90, 31, 0.35); color: #ffd2bc; }
.mode-pill.active { background: rgba(255, 90, 31, 0.16); border-color: rgba(255, 90, 31, 0.6); color: #fff; }
.quick-panel {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 90, 31, 0.28);
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 90, 31, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(18, 22, 31, 0.96), rgba(9, 11, 17, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.quick-panel::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 242, 75, 0.16), transparent 65%);
  pointer-events: none;
}
.quick-panel.is-done { border-color: rgba(63, 224, 160, 0.4); }
.quick-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.quick-head b { font-weight: 700; }
.quick-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  color: #120601;
  background: linear-gradient(120deg, var(--orange), var(--lime));
}
.quick-input {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 10, 0.75);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quick-input:focus {
  outline: none;
  border-color: rgba(255, 90, 31, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.14);
}
.quick-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.quick-actions .quick-btn { flex: 1 1 220px; }
.quick-actions .quick-check { flex: 0 1 auto; }
.quick-error {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #ffc3ce;
  background: rgba(255, 92, 122, 0.08);
  border: 1px solid rgba(255, 92, 122, 0.3);
  animation: shake 0.35s ease both;
}
.quick-result {
  margin-top: 12px;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(63, 224, 160, 0.34);
  background: rgba(63, 224, 160, 0.07);
  animation: success-pop 0.45s ease both;
}
.quick-result b { color: #c8ffe9; }
.quick-result span { font-size: 12px; color: var(--muted); }
.quick-result-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.auto-line { font-size: 12px; color: var(--orange-2); font-weight: 700; }
.badge.dry { color: #e7e0ff; border-color: rgba(160, 130, 255, 0.32); background: rgba(160, 130, 255, 0.09); }
.status.auto { color: #ffd2bc; background: rgba(255, 90, 31, 0.08); border: 1px solid rgba(255, 90, 31, 0.3); }
.live-note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12px; color: var(--muted); }
.live-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: live-pulse 1.4s infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(63, 224, 160, 0.5); } 50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(63, 224, 160, 0); } }
.success-ring.pulse::before { animation: ring-pulse 1.6s infinite; }
@keyframes ring-pulse { 0% { transform: scale(0.9); opacity: 0.8; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }

/* --- operator auto panel ------------------------------------------------ */
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.auto-panel {
  margin: 16px 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 90, 31, 0.25);
  background: linear-gradient(150deg, rgba(18, 22, 31, 0.95), rgba(9, 11, 17, 0.95));
}
.auto-panel.paused { border-color: rgba(255, 176, 46, 0.4); }
.auto-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auto-meta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.auto-meta .warn { color: var(--orange-2); }
.auto-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.auto-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.auto-chip b { color: var(--text); font-size: 12px; }
.auto-chip.failed { border-color: rgba(255, 92, 122, 0.3); color: #ffb6c4; }
.auto-chip.awaiting_operator { border-color: rgba(255, 176, 46, 0.3); color: #ffe1b0; }
.auto-chip.done { border-color: rgba(63, 224, 160, 0.3); color: #b9ffe4; }
.auto-job { border-left: 2px solid rgba(255, 90, 31, 0.5); }
.auto-job.done { border-left-color: rgba(63, 224, 160, 0.6); }
.auto-job.failed { border-left-color: rgba(255, 92, 122, 0.6); }
.auto-job .actions { display: flex; align-items: center; gap: 8px; }
.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(13, 16, 23, 0.8);
  overflow-x: auto;
}
.chart .bar { flex: 1 0 18px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart .bar i { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--orange), rgba(255, 90, 31, 0.25)); min-height: 4px; }
.chart .bar span { font-size: 9px; color: var(--muted-2); }
.audit-payload { margin-top: 3px; font-family: var(--mono); font-size: 10px; color: var(--muted-2); word-break: break-all; }
.terms {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(13, 16, 23, 0.75);
}
.terms summary { cursor: pointer; font-weight: 700; }
.terms-body { margin-top: 10px; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.terms-body b { color: var(--text); }
.terms-body p { margin: 0; }

.quick-login-grid { display: grid; gap: 8px; }
.quick-note { color: var(--muted-2); font-size: 10px; line-height: 1.4; margin-top: 4px; }
.token-link { display: inline-block; margin-top: 4px; color: var(--orange-2); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.token-link:hover { color: var(--orange); }
.quick-note .token-link,
.note .token-link { display: inline; margin-top: 0; font-size: inherit; }
.quick-seg { margin-bottom: 8px; }
.link-btn {
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--text); }
.link-btn:disabled { opacity: 0.5; cursor: default; }
.badge.curr { font-size: 9px; padding: 3px 6px; }
.matched-banner { animation: match-in 0.45s ease both; }
@keyframes match-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1.5fr 0.8fr; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .lot { column-gap: 12px; }
}
@media (min-width: 761px) {
  .chips { flex-wrap: wrap; overflow: visible; row-gap: 7px; }
}
@media (max-width: 760px) {
  .app { padding: 12px 16px 120px; }
  .topbar { padding: 8px 0 12px; }
  .brand-text { display: none; }
  .live { padding: 6px 9px; font-size: 11px; }
  .pill span { display: none; }
  .hero { grid-template-columns: 1fr; padding: 8px 0 18px; gap: 10px; }
  .hero-orbit { display: none; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); margin: 8px 0 10px; }
  .hero p, .hero-stats { display: none; }
  .quick-panel { margin-top: 12px; padding: 14px; }
  .quick-actions { flex-direction: column; align-items: stretch; }
  .quick-actions .quick-btn,
  .quick-actions .quick-check { flex: 1 1 auto; width: 100%; }
  .filters { grid-template-columns: 1fr; }
  .tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .field.search { grid-column: 1 / -1; width: 100%; }
  .group-head { padding: 11px 14px; }
  .group-note { display: none; }
  .lot {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name money"
      "meta action";
    gap: 5px 12px;
    padding: 10px 14px;
  }
  .lot-money { align-items: flex-end; }
  .lot-action { justify-content: flex-end; }
  .debt-hero { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; align-items: flex-start; }
  .modal { padding: 0; align-items: end; }
  .sheet { width: 100%; max-height: 93vh; border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  .row-card { flex-wrap: wrap; }
  .row-card .amount { margin-left: auto; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .toasts { bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
