:root {
  --bg: #0b0f14;
  --bg2: #0f151d;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-solid: #141b24;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef3f8;
  --muted: #8b9aad;
  --accent: #2f9cf4;
  --accent2: #7c5cff;
  --ok: #35c98a;
  --danger: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* `hidden` must win over the display value of any component below */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  /* stops the pull-to-close gesture from bubbling to Telegram */
  overscroll-behavior-y: contain;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(700px 420px at 92% 4%, rgba(47, 156, 244, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 40%);
  background-attachment: fixed;
}

body {
  padding: 14px 14px calc(30px + env(safe-area-inset-bottom));
  font-size: 15px;
  line-height: 1.45;
}

#app { max-width: 560px; margin: 0 auto; }
.view { animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { margin-bottom: 18px; }
.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(92deg, #fff, #9dc7ff 60%, #b9a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.sub { margin: 3px 0 0; color: var(--muted); font-size: 0.87rem; }

/* ---------- category tabs ---------- */
.category-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.category-tab {
  appearance: none;
  border: 0;
  border-radius: 11px;
  padding: 9px 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.category-tab.selected {
  background: linear-gradient(92deg, rgba(47, 156, 244, 0.28), rgba(124, 92, 255, 0.28));
  color: #eef3f8;
  box-shadow: inset 0 0 0 1px rgba(157, 199, 255, 0.25);
}
.category-tab:active { transform: scale(0.98); }

.badge-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(92deg, rgba(47,156,244,0.25), rgba(124,92,255,0.25));
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: #cfe2ff;
}
.badge.ghosty {
  background: var(--panel);
  border-color: var(--line);
  color: var(--muted);
}
.badge.link {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #cfe2ff;
}
.badge.link:active { transform: scale(0.96); }

/* ---------- my rentals ---------- */
.hero-actions { display: flex; gap: 8px; }
.icon-btn { position: relative; }
.dot-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffb340;
  box-shadow: 0 0 0 2px var(--panel);
}

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

.rental-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 14px;
}
.rental-tab {
  flex: 1;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.rental-tab.selected {
  background: linear-gradient(92deg, rgba(47,156,244,0.3), rgba(124,92,255,0.3));
  color: #eaf2ff;
}

.rental-list { display: flex; flex-direction: column; gap: 10px; }
.rental-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s;
}
.rental-item:active { transform: scale(0.985); }
.rental-item.dim { opacity: 0.55; }
.rental-img {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #0e141c;
}
.rental-img.text {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #9dc7ff;
  background: linear-gradient(135deg, rgba(47, 156, 244, 0.2), rgba(124, 92, 255, 0.18));
  border: 1px solid var(--line);
}
.rental-info { flex: 1; min-width: 0; }
.rental-name {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rental-sub { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.rental-price { font-size: 0.82rem; font-weight: 600; color: #9dc7ff; margin-top: 3px; }
.rental-badge {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.rental-badge.ok { color: #7ee2a8; border-color: rgba(126, 226, 168, 0.35); background: rgba(126, 226, 168, 0.12); }
.rental-badge.action { color: #ffd28a; border-color: rgba(255, 179, 64, 0.35); background: rgba(255, 179, 64, 0.12); }
.rental-badge.wait { color: #9dc7ff; border-color: rgba(157, 199, 255, 0.3); background: rgba(157, 199, 255, 0.1); }
.rental-badge.bad { color: #ffb4b4; border-color: rgba(255, 107, 107, 0.35); background: rgba(255, 107, 107, 0.12); }

/* ---------- sort ---------- */
.catalog-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.sort-trigger:active { transform: scale(0.97); }
.sort-trigger .caret { color: var(--muted); }
.filter-count {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(92deg, var(--accent), var(--accent2));
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
}

.catalog-search {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 14px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  color: var(--muted);
}
.catalog-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}
.catalog-search input::placeholder { color: var(--muted); }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 11, 0.6);
  backdrop-filter: blur(3px);
  z-index: 60;
  animation: fade 0.2s ease;
}
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 61;
  max-width: 560px;
  margin: 0 auto;
  background: #121924;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 10px 12px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-grip {
  width: 38px; height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 auto 12px;
}
.sheet-title {
  margin: 0 0 8px;
  padding: 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.sheet-list { display: grid; }
.sort-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 10px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
}
.sort-item + .sort-item { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.sort-item:active { background: rgba(255, 255, 255, 0.05); }
.sort-item.selected { color: #9dc7ff; }
.sort-item .arrow {
  flex: none;
  width: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.sort-item.selected .arrow { color: #9dc7ff; }
.sort-item .check { margin-left: auto; color: var(--accent); }

.filter-sheet {
  max-height: min(82vh, 680px);
  overflow-y: auto;
}
.filter-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 6px;
}
.filter-title-row .sheet-title { margin-bottom: 0; }
.text-btn {
  border: 0;
  background: none;
  color: #8fc5ff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px;
}
.filter-fields {
  display: grid;
  gap: 13px;
  margin: 14px 2px 4px;
}
.field-hint {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}
select:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.icon-btn {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.icon-btn:active { transform: scale(0.93); }

/* ---------- grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:active { transform: scale(0.975); }
.card:hover { border-color: rgba(47, 156, 244, 0.5); }

.card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 12, 18, 0.75));
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.card:hover .card-img { transform: scale(1.05); }
.card-img.placeholder {
  background: linear-gradient(135deg, #1b2431, #131a24);
}

.card-text-wrap {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(47, 156, 244, 0.22), transparent 60%),
    linear-gradient(160deg, #152033, #0e141c);
}
.card-text-wrap.number {
  background:
    radial-gradient(circle at 50% 30%, rgba(20, 184, 166, 0.22), transparent 60%),
    linear-gradient(160deg, #10241f, #0e141c);
}
.card-text-wrap .card-emoji {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.card-text-wrap .card-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  word-break: break-all;
  line-height: 1.25;
  max-width: 100%;
}
.card.card-text .card-body {
  padding-top: 10px;
}
.card.card-text .card-price {
  margin-top: 0;
}

.login-code {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 226, 168, 0.35);
  background: rgba(126, 226, 168, 0.1);
}
.login-code > span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.login-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #7ee2a8;
  word-break: break-all;
}

.card-num {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(9, 13, 19, 0.7);
  border: 1px solid var(--line);
  color: #cfe2ff;
  backdrop-filter: blur(6px);
}

.card-body { padding: 10px 12px 12px; }
.card-title {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-model {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.card-price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}
.card-price small { color: var(--muted); font-weight: 600; font-size: 0.7rem; }
.card-days { margin-top: 3px; color: var(--muted); font-size: 0.72rem; }

/* ---------- skeleton ---------- */
.skel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}
.skel-img { aspect-ratio: 1; background: linear-gradient(90deg, #151c26, #1d2734, #151c26); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skel-line { height: 10px; margin: 10px 12px; border-radius: 6px; background: linear-gradient(90deg, #151c26, #1d2734, #151c26); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skel-line.short { width: 55%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- detail ---------- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 4px 0 12px;
  cursor: pointer;
}
.back-btn:active { color: var(--text); }

.stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0e141c;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.stage-glow {
  position: absolute;
  inset: -30%;
  filter: blur(60px);
  opacity: 0.55;
  background: radial-gradient(circle, var(--accent2), transparent 65%);
}
.stage-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stage-lottie {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.stage-lottie svg {
  width: 100% !important;
  height: 100% !important;
}

.detail-name {
  margin: 16px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #c4d3e4;
}
.chip b { color: var(--muted); font-weight: 600; margin-right: 4px; }

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}

.field { display: grid; gap: 7px; }
.field > span { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select, textarea {
  width: 100%;
  appearance: none;
  background: #10161f;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  outline: none;
}
select:focus, textarea:focus { border-color: rgba(47, 156, 244, 0.6); }
textarea { resize: vertical; font-size: 0.85rem; }

.rows { margin-top: 14px; display: grid; gap: 9px; }
.row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.88rem; }
.row span { color: var(--muted); }
.row b { font-weight: 700; }
.row.total {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  font-size: 1.02rem;
}
.row.total b {
  font-size: 1.15rem;
  background: linear-gradient(92deg, #9dc7ff, #b9a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.975); }
.btn.primary {
  color: #fff;
  background: linear-gradient(92deg, var(--accent), #4f7dff);
  box-shadow: 0 8px 22px rgba(47, 156, 244, 0.28);
}
.btn.primary.alt {
  background: linear-gradient(92deg, var(--accent2), #b06bff);
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.28);
}
.btn.ghost {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}
.full { width: 100%; margin-top: 10px; }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.85; }

/* ---------- order ---------- */
.order-head { display: flex; gap: 13px; align-items: center; margin-bottom: 16px; }
.order-thumb {
  width: 76px; height: 76px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #141b24;
  flex: none;
}
.order-meta { min-width: 0; }
.order-name { font-weight: 800; font-size: 1.05rem; }
.order-total {
  margin-top: 4px;
  font-weight: 800;
  background: linear-gradient(92deg, #9dc7ff, #b9a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.step { text-align: center; color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.step i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin-bottom: 6px;
  transition: background 0.3s ease;
}
.step.active i { background: linear-gradient(92deg, var(--accent), var(--accent2)); }
.step.active { color: var(--text); }
.step.done i { background: var(--ok); }

.status-pill {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--panel);
  border: 1px solid var(--line);
  color: #cfe2ff;
}

.howto { margin-bottom: 14px; }
.howto-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.howto-warn {
  margin-bottom: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 180, 70, 0.12);
  border: 1px solid rgba(255, 180, 70, 0.35);
  color: #ffd39a;
  font-size: 0.82rem;
  line-height: 1.45;
}
.howto-warn strong {
  display: block;
  margin-bottom: 4px;
  color: #ffc266;
  font-size: 0.85rem;
}
.howto-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.howto-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #d7e3f0;
  font-size: 0.84rem;
  line-height: 1.4;
}
.howto-steps li::marker { color: var(--accent); font-weight: 700; }
.howto-steps + .howto-steps { margin-top: 8px; }
.howto-sub {
  margin: 6px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}
.howto-sub li::marker { color: var(--muted); }

/* Two per row so each shot is larger than a three-up grid and still fits */
.howto-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.howto-shot { margin: 0; min-width: 0; }
/* Desktop shot takes its own row; the two phone shots share the next one */
.howto-shot.wide { grid-column: 1 / -1; }
.howto-shot.wide img {
  max-width: 62%;
  margin: 0 auto;
}
.howto-shot img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e141c;
  display: block;
}
.howto-shot figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.83rem;
}
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--muted); flex: none; }
.kv code {
  font-size: 0.76rem;
  word-break: break-all;
  text-align: right;
  color: #cfe2ff;
}
.tc-btn {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.tc-btn > * { margin: 0 auto; }

/* ---------- misc ---------- */
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.error {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ffb4b4;
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: #1b232e;
  border: 1px solid var(--line);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: fade 0.2s ease;
}
