/* Dobriy Rental — тёмный маркет с зелёным акцентом (по образцу), доведённый в деталях. */

@font-face { font-family: "Montserrat"; src: url("/static/fonts/Montserrat.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0b0d0c;
  --s1: #121614;
  --s2: #181d1a;
  --s3: #222823;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #f1f5f2;
  --hint: #8d978f;
  --green: #27d46c;
  --green-hi: #3fe884;
  --green-lo: #17b457;
  --on-green: #03140a;
  --head: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; color: var(--text); font: 400 15px/1.45 var(--body); }
body {
  min-height: 100vh; padding-bottom: calc(96px + env(safe-area-inset-bottom));
  background:
    radial-gradient(60% 32% at 10% -4%, rgba(39, 212, 108, .14), transparent 70%),
    radial-gradient(50% 30% at 100% 0%, rgba(39, 212, 108, .06), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.bg-glow { display: none; }
.ic { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ic svg { width: 100%; height: 100%; }

/* --- шапка --- */
.top { position: sticky; top: 0; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 10px; background: rgba(11, 13, 12, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 40px; height: 40px; border-radius: 12px; flex: none; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-2), 0 6px 18px rgba(39, 212, 108, .15); }
.brand-text { min-width: 0; }
.wordmark { font: 900 18px/1.1 var(--head); letter-spacing: .4px; }
.wordmark span { color: var(--green); }
.tagline { color: var(--hint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balance { display: flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 5px 0 12px; border-radius: 13px;
  background: var(--s1); border: 1px solid var(--line-2); font: 800 14px var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.balance .plus { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--green-hi), var(--green-lo)); color: var(--on-green); font-size: 19px; font-weight: 900; line-height: 1; }

/* --- разделы --- */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 12px 8px; }
.segments button { height: 46px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line);
  font: 700 14px var(--head); color: #c9d1cc; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.segments button.active { background: linear-gradient(180deg, var(--green-hi), var(--green-lo)); color: var(--on-green); border-color: transparent;
  box-shadow: 0 8px 24px -6px rgba(39, 212, 108, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }

/* --- поиск и фильтры --- */
.toolbar { position: sticky; top: 62px; z-index: 6; padding: 6px 12px 6px;
  background: linear-gradient(rgba(11, 13, 12, .96) 72%, rgba(11, 13, 12, 0)); }
.toolrow { display: flex; gap: 8px; align-items: center; }
.toolrow .search { flex: 1; min-width: 0; }
.mode { display: none; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 15px;
  background: var(--s1); border: 1px solid var(--line); color: var(--hint); transition: border-color .15s; }
.search:focus-within { border-color: rgba(39, 212, 108, .5); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search input::placeholder { color: var(--hint); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { color: var(--hint); padding: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .suggest::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 12px;
  border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: #dfe6e1; white-space: nowrap; }
.chip.icon { width: 40px; padding: 0; justify-content: center; }
.chip.on { border-color: var(--green); color: var(--green); background: rgba(39, 212, 108, .09); }
.chip.bell { color: var(--green); border-color: rgba(39, 212, 108, .45); background: rgba(39, 212, 108, .07); }
.chip img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; }
.swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

.suggest { display: flex; gap: 10px; overflow-x: auto; padding: 4px 12px 10px; }
.sug { flex: none; width: 92px; text-align: left; }
.sug .pic { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; background: var(--s2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 34px; }
.sug .pic img { width: 100%; height: 100%; object-fit: cover; }
.sug .nm { font: 700 12.5px/1.25 var(--head); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug .fl { font-size: 11.5px; color: var(--hint); }

main { padding: 6px 12px 20px; }

/* --- карточки --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; text-align: left; cursor: pointer; padding: 6px; border-radius: 20px;
  background: linear-gradient(180deg, #151a17, #101311); border: 1px solid var(--line);
  animation: cardIn .3s ease both; transition: transform .12s, border-color .2s; }
.card:active { transform: scale(.975); border-color: rgba(39, 212, 108, .35); }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-media { position: relative; }
.media { position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; font-size: 46px;
  border-radius: 15px; background: radial-gradient(circle at 50% 36%, #25302a, #121714); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media.word { padding: 14px; text-align: center; font: 800 19px/1.15 var(--head); word-break: break-all; color: #eafff2;
  background: radial-gradient(120% 90% at 20% 0%, rgba(39, 212, 108, .32), transparent 60%), linear-gradient(160deg, #15241b, #0d1210); }
.media.word.phone { font-size: 17px; letter-spacing: .3px;
  background: radial-gradient(120% 90% at 80% 0%, rgba(80, 140, 255, .3), transparent 60%), linear-gradient(160deg, #161a2a, #0d0f16); }
.eye { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.eye .ic { width: 16px; height: 16px; }
.days-badge { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 9px; font: 700 11.5px var(--head);
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .1); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card-body { display: flex; flex-direction: column; padding: 9px 4px 2px; flex: 1; }
.card-name { font: 800 14.5px/1.25 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { color: var(--hint); font-size: 12.5px; font-weight: 600; margin-top: 1px; }
.price-btn { margin-top: 9px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(180deg, var(--green-hi), var(--green-lo)); color: var(--on-green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px -8px rgba(39, 212, 108, .7); }
.price-btn b { font: 900 15.5px var(--head); font-variant-numeric: tabular-nums; }
.price-btn small { font-size: 11.5px; font-weight: 700; opacity: .75; }
.skeleton { border-radius: 20px; aspect-ratio: .68; background: linear-gradient(90deg, var(--s1) 25%, var(--s2) 50%, var(--s1) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
.state { color: var(--hint); text-align: center; padding: 24px 12px; }
.empty { text-align: center; padding: 44px 18px; color: var(--hint); }
.empty .big { font-size: 42px; margin-bottom: 10px; }

/* --- мои аренды --- */
#mine { padding: 6px 12px 20px; }
.page-title { font: 900 21px/1.1 var(--head); letter-spacing: .3px; text-transform: uppercase; margin: 16px 2px 12px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line);
  text-align: left; width: 100%; }
.row .media { width: 62px; height: 62px; border-radius: 14px; flex: none; font-size: 26px; aspect-ratio: auto; }
.row .media.word { font-size: 11px; padding: 4px; }
.row .grow { flex: 1; min-width: 0; }
.row .card-name { font-size: 15px; }
.row .card-num { color: var(--hint); font-size: 12.5px; }
.status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status.on { color: var(--green); }
.status.off { color: var(--hint); }
.gift-badge { display: inline-block; margin-top: 5px; padding: 3px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
  background: rgba(255, 196, 66, .14); color: #ffc442; }

.ref-card { position: relative; overflow: hidden; margin: 8px 0 18px; padding: 18px; border-radius: 22px;
  border: 1px solid rgba(39, 212, 108, .3);
  background: radial-gradient(120% 120% at 0% 0%, rgba(39, 212, 108, .2), transparent 55%), var(--s1); }
.ref-card .h { font: 900 17px/1.15 var(--head); text-transform: uppercase; letter-spacing: .3px; }
.ref-percent { margin: 10px 0 2px; font: 900 40px/1 var(--head); color: var(--green); font-variant-numeric: tabular-nums; }
.ref-percent small { display: block; margin-top: 6px; font: 600 13px var(--body); color: #cfd6d2; }
.ref-card .d { color: var(--hint); font-size: 13px; margin: 8px 0 14px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ref-stats div { padding: 9px 10px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.ref-stats b { display: block; font: 900 16px var(--head); font-variant-numeric: tabular-nums; }
.ref-stats span { color: var(--hint); font-size: 11.5px; }
.ref-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ref-actions .btn { height: 46px; }
.ref-actions .btn.ghost { width: 46px; padding: 0; display: grid; place-items: center; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 2px 10px; }
.section-h b { font: 900 16px var(--head); text-transform: uppercase; letter-spacing: .3px; }
.section-h span { color: var(--hint); font-size: 12px; }
.watch { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); margin-bottom: 8px; }
.watch .ic { color: var(--green); }
.watch .grow { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; }
.watch .grow small { display: block; color: var(--hint); font-weight: 500; font-size: 12px; }
.watch button { color: var(--hint); font-size: 16px; padding: 4px 8px; }
.empty-mini { color: var(--hint); font-size: 13px; padding: 4px 2px 16px; }

/* --- нижнее меню --- */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 8;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 24px;
  background: rgba(18, 22, 20, .86); border: 1px solid var(--line-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7); }
.dock button { display: flex; align-items: center; justify-content: center; gap: 9px; height: 50px; border-radius: 18px;
  font: 700 14.5px var(--head); color: #c9d1cc; transition: background .2s, color .2s; }
.dock button.active { background: linear-gradient(180deg, var(--green-hi), var(--green-lo)); color: var(--on-green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }

/* --- шторка --- */
.sheet-bg { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #131715, #0e1110 45%); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 28px 28px 0 0;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(48px); opacity: .5; } to { transform: none; opacity: 1; } }
.grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; }
.sheet-title { font: 900 20px/1.1 var(--head); letter-spacing: .5px; text-transform: uppercase; }
.close { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--hint); font-size: 16px; background: var(--s2); }
.item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.item-head .media { width: 72px; height: 72px; border-radius: 16px; flex: none; aspect-ratio: auto; font-size: 30px; }
.item-head .media.word { font-size: 12px; padding: 6px; }
.item-head .t { font: 800 18px/1.2 var(--head); word-break: break-word; }
.item-head .s { color: var(--hint); font-size: 13px; }
.preview-media { width: 100%; max-width: 340px; margin: 0 auto 14px; border-radius: 26px; aspect-ratio: 1; }
.preview-media.word { aspect-ratio: 2; font-size: 30px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 14px; }
.tag { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; }
.tag b { color: var(--hint); font-weight: 600; margin-right: 4px; }
.divider { height: 1px; background: var(--line); margin: 4px -16px 14px; }
.term-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 12px; font-weight: 700; }
.term-row .l { display: flex; align-items: center; gap: 8px; color: #dfe5e1; }
.term-row .v { font: 900 16px var(--head); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; outline: none;
  background: linear-gradient(90deg, var(--green) var(--p, 0%), var(--s3) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green);
  border: 4px solid #0e1110; box-shadow: 0 0 0 1px var(--green), 0 0 16px rgba(39, 212, 108, .55); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--green); border: 3px solid #0e1110; }
.range-labels { display: flex; justify-content: space-between; color: var(--hint); font-size: 12px; margin: 8px 0 14px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.quick button { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; }
.quick button.on { background: var(--green); color: var(--on-green); border-color: var(--green); }
.calc { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; }
.calc .ln { display: flex; justify-content: space-between; padding: 6px 0; color: #c9d1cc; font-size: 14px; }
.calc .ln b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.calc .tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--text); font-weight: 700; }
.calc .tot b { font: 900 15px var(--head); }
.note { color: var(--hint); font-size: 12.5px; line-height: 1.5; margin: 12px 2px 0; }
.paybar { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); margin: 16px -16px 0;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); background: #0e1110; border-top: 1px solid var(--line); }
.paybar .sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; color: #c9d1cc; font-weight: 600; }
.paybar .sum b { font: 900 27px/1 var(--head); color: var(--green); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(39, 212, 108, .35); }
.btn { width: 100%; height: 52px; border-radius: 16px; font: 800 15px var(--head); color: var(--on-green);
  background: linear-gradient(180deg, var(--green-hi), var(--green-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -10px rgba(39, 212, 108, .75); }
.btn:active { filter: brightness(.95); }
.btn.ghost { background: var(--s1); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn:disabled { opacity: .45; }
.stack { display: grid; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line);
  text-align: left; width: 100%; }
.method:active { border-color: rgba(39, 212, 108, .4); }
.method .mi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--s3); flex: none; }
.method .grow { flex: 1; min-width: 0; }
.method .mt { font: 800 15px var(--head); }
.method .ms { color: var(--hint); font-size: 12.5px; }
.method .arrow { color: var(--hint); font-size: 20px; }
.method.disabled { opacity: .55; }
.options { display: flex; flex-direction: column; gap: 6px; }
.option { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line);
  text-align: left; width: 100%; }
.option.on { border-color: var(--green); background: rgba(39, 212, 108, .08); }
.option .grow { flex: 1; min-width: 0; font-weight: 700; }
.option .cnt { color: var(--hint); font-size: 12px; text-align: right; }
.option.dim { opacity: .5; }
.option .mini { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex: none; background: var(--s2); display: grid; place-items: center; }
.option .mini img { width: 100%; height: 100%; object-fit: cover; }
.collist { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 10px; }
.collist .sug, .collist .sug .pic { width: 100%; }
.collist .sug .pic { height: auto; aspect-ratio: 1; }
.sheet .search { margin-bottom: 12px; }
.field { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 10px 0; }
.field label { display: flex; justify-content: space-between; color: var(--hint); font-size: 13px; margin-bottom: 10px; }
.amount { width: 100%; height: 54px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  padding: 0 14px; font: 900 24px var(--head); font-variant-numeric: tabular-nums; outline: none; }
.amount:focus { border-color: rgba(39, 212, 108, .5); }
.kv { display: grid; gap: 6px; margin: 10px 0 14px; }
.kv div { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.kv b { display: block; color: var(--hint); font-weight: 600; font-size: 11.5px; }
.kv span { word-break: break-all; font-weight: 700; }
textarea { width: 100%; min-height: 84px; border-radius: 14px; border: 1px solid var(--line-2); padding: 12px; background: var(--bg);
  color: var(--text); font: 13px/1.35 ui-monospace, monospace; resize: vertical; outline: none; }
.field .btn.ghost, .field textarea { background: var(--bg); }
ol.steps { padding-left: 20px; margin: 4px 0 10px; color: #dfe5e1; }
ol.steps li { margin: 6px 0; }
.code { font: 900 32px var(--head); letter-spacing: 6px; text-align: center; padding: 18px; background: var(--s1); border: 1px solid var(--line);
  border-radius: 16px; margin: 10px 0; color: var(--green); font-variant-numeric: tabular-nums; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--s3); border-top-color: var(--green); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 20;
  background: #1c2420; border: 1px solid var(--line-2); color: #fff; padding: 12px 14px; border-radius: 14px; text-align: center; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.gap { height: 10px; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 0 14px;
  border-radius: 16px; background: var(--s1); border: 1px solid var(--line); cursor: pointer; }
.switch-row .t { font: 800 14.5px var(--head); }
.switch-row .s { color: var(--hint); font-size: 12px; }
.switch { width: 46px; height: 28px; border-radius: 14px; background: var(--s3); position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 21px; }
.wallet-input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  padding: 0 14px; font: 600 13px ui-monospace, monospace; outline: none; }

/* --- просмотр подарка как в профиле --- */
.preview-top { display: flex; justify-content: flex-end; margin: -2px 0 6px; }
.stage { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto 16px; border-radius: 30px; overflow: hidden;
  background: #141916; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.stage-bg { position: absolute; inset: -20%; background-image: var(--bg-img); background-size: cover; background-position: center;
  filter: blur(40px) saturate(1.4); opacity: .55; }
.stage-still { position: absolute; inset: 0; border-radius: 0; background: transparent; transition: opacity .35s; }
.stage-anim { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.stage-anim svg { width: 100% !important; height: 100% !important; }
.stage.live .stage-anim { opacity: 1; }
.stage.live .stage-still { opacity: 0; }
.preview-title { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pt-name { font: 900 22px/1.15 var(--head); text-align: center; color: #fff; }
.num-pill { padding: 3px 9px; border-radius: 9px; background: rgba(255, 255, 255, .07); color: var(--hint); font-size: 13px; font-weight: 700; }
.preview-kind { text-align: center; color: var(--hint); font-size: 13px; margin: 4px 0 14px; }
.info { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--s1); margin-bottom: 14px; }
.irow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; font-size: 14px; }
.irow + .irow { border-top: 1px solid var(--line); }
.il { color: var(--hint); }
.iv { font-weight: 800; text-align: right; display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.iv.link { color: var(--green); cursor: pointer; }
.iv .swatch { width: 12px; height: 12px; }
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preview-actions .btn:only-child { grid-column: 1 / -1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- избранное и автопродление --- */
.heart { position: absolute; top: 8px; left: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.heart .ic { width: 16px; height: 16px; }
.heart.on { color: #ff5a7a; border-color: rgba(255, 90, 122, .45); }
.heart.on svg path { fill: currentColor; }
.heart.sm { width: 26px; height: 26px; top: 6px; left: auto; right: 6px; }
.heart.sm .ic { width: 13px; height: 13px; }
.fav-wide { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.fav-wide .ic { width: 18px; height: 18px; }
.fav-wide.on { color: #ff5a7a; border-color: rgba(255, 90, 122, .4); }
.fav-wide.on svg path { fill: currentColor; }
.fav-strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 14px; scrollbar-width: none; }
.fav-strip::-webkit-scrollbar { display: none; }
.fav-tile { flex: none; width: 112px; cursor: pointer; }
.fav-tile.dim .fav-media { opacity: .55; }
.fav-media { position: relative; }
.fav-media .media { width: 112px; height: 112px; border-radius: 16px; aspect-ratio: auto; font-size: 30px; }
.fav-media .media.word { font-size: 12px; padding: 6px; }
.fav-name { margin-top: 6px; font: 800 12.5px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-sub { color: var(--hint); font-size: 11.5px; margin-top: 2px; }
.fav-sub.on { color: var(--green); font-weight: 700; }
.auto-badge { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0 8px; font-size: 11.5px; font-weight: 700; color: var(--green); }
.auto-badge .ic { width: 13px; height: 13px; }
.auto-field label b { color: var(--hint); }
.auto-field label b.on { color: var(--green); }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding-top: 0; }
.note.warn { color: #f0b85a; }

/* --- глазик загорается при нажатии --- */
.eye { transition: background .2s, color .2s, box-shadow .2s, border-color .2s; }
.eye.lit { background: var(--green); color: #052611; border-color: transparent;
  box-shadow: 0 0 0 3px rgba(39, 212, 108, .28), 0 0 18px rgba(39, 212, 108, .75); }
