@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --text: #f4f8ff;
  --muted: #c5daf8;
  --line: rgba(176, 216, 255, 0.38);
  --glass: linear-gradient(180deg, rgba(78, 158, 255, 0.28), rgba(8, 42, 122, 0.46));
  font-family: Manrope, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  position: relative;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: #020714;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #020714 url("/static/bg.jpg") center top / cover no-repeat;
}

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #b9ddff;
  outline-offset: 2px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 16px calc(78px + env(safe-area-inset-bottom));
}

.wave { display: none; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero {
  position: relative;
  min-height: 0;
  padding-top: 8px;
}

.hero-art {
  position: absolute;
  left: -16px;
  right: -16px;
  top: 28px;
  bottom: -36px;
  pointer-events: none;
}

.chart {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.coin {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f5fbff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), transparent 26%),
    linear-gradient(155deg, #8ad4ff 0%, #1d74f3 52%, #0a3f9e 100%);
  box-shadow:
    0 12px 28px rgba(0, 70, 190, 0.45),
    inset 0 0 0 1.5px rgba(214, 238, 255, 0.7);
}

.coin svg { width: 58%; height: 58%; display: block; }
.coin-ton svg { width: 100%; height: 100%; }
.coin-usdt { width: 78px; height: 78px; right: 12px; top: 8px; background: none; box-shadow: 0 12px 28px rgba(0, 80, 60, 0.35); }
.coin-usdt svg { width: 100%; height: 100%; }
.coin-ton { width: 52px; height: 52px; right: 98px; top: 86px; }
.coin-gram { width: 64px; height: 64px; right: 12px; top: 92px; font-size: 28px; }

.balance,
.menu-card,
.panel,
.quote,
.banner {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow:
    0 12px 30px rgba(0, 36, 110, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 18px rgba(48, 140, 255, 0.16);
  backdrop-filter: blur(16px);
}

.balance {
  position: relative;
  z-index: 2;
  width: min(214px, 64%);
  min-height: 74px;
  margin-top: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  text-align: left;
}

.balance:active,
.menu-card:active,
.btn:active { transform: translateY(1px); }

.kicker,
.card-sub,
.fine,
.field span,
.row span,
.leader p,
.empty,
.hint {
  color: var(--muted);
}

.kicker { display: block; font-size: 12px; }
.balance strong { display: block; font-size: 18px; letter-spacing: -0.03em; }
.fine { display: block; margin-top: 2px; font-size: 11px; }

.menu-card {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
}

.menu-card.wide {
  min-height: 112px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.menu-card.compact {
  min-height: 150px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-title {
  display: block;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.compact .card-title { font-size: 16px; line-height: 1.2; }
.card-head > span:first-child { min-width: 0; }
.card-sub { display: block; margin-top: 4px; font-size: 13px; }

.card-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.icon-tile {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #67c2ff 0%, #1a6ef0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 16px rgba(10, 80, 200, 0.35);
}

.icon-tile svg,
.chevron svg,
.back svg { width: 28px; height: 28px; display: block; }
.icon-tile.small { width: 42px; height: 42px; border-radius: 14px; }
.icon-tile.small svg { width: 22px; height: 22px; }

.chevron,
.back {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(198, 226, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.back { width: 40px; height: 40px; border-radius: 14px; }

.bars {
  position: absolute;
  right: 58px;
  top: 22px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
  opacity: 0.7;
}

.bars i {
  display: block;
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(#d8ecff, #3c8ef0);
}

.bars i:nth-child(1) { height: 14px; }
.bars i:nth-child(2) { height: 28px; }
.bars i:nth-child(3) { height: 18px; }

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.topbar h1,
.panel h2,
.leader strong { margin: 0; }

.topbar h1 { font-size: 22px; letter-spacing: -0.04em; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.panel {
  border-radius: 24px;
  padding: 16px;
}

.panel h2 { font-size: 22px; letter-spacing: -0.04em; }
.panel p { margin: 8px 0 0; }

.field { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.field span { font-size: 13px; }

.field input,
.field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(176, 214, 255, 0.28);
  background: rgba(3, 16, 48, 0.42);
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
}

.field textarea { min-height: 96px; resize: vertical; }

.field-card > .seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 0;
  margin-top: 12px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(3, 16, 46, 0.62);
  border: 1px solid rgba(176, 214, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.seg-thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 14px;
  background: linear-gradient(180deg, #8ad0ff 0%, #2f86f6 55%, #1a68e8 100%);
  box-shadow: 0 8px 18px rgba(18, 92, 220, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateX(calc(var(--seg-index, 0) * 100%));
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.seg button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 48px;
  text-align: center;
  border-radius: 14px;
  padding: 13px 8px;
  color: rgba(215, 232, 255, 0.72);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.seg button.active {
  background: none;
  color: white;
  font-weight: 800;
}
.seg button:focus,
.seg button:focus-visible {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

.quote {
  margin-top: 14px;
  border-radius: 16px;
  padding: 14px 16px;
  color: #e8f3ff;
}

.btn {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  text-align: center;
  border-radius: 16px;
  font-weight: 800;
  background: linear-gradient(180deg, #6ec4ff, #1a6df0);
  box-shadow: 0 10px 24px rgba(18, 96, 240, 0.35);
}

.btn.secondary { margin-top: 10px; background: rgba(8, 32, 84, 0.35); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: default; }

.hint { margin: 10px 2px 0; font-size: 12px; }

.banner {
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px 14px;
  color: #ffe1e1;
  background: linear-gradient(180deg, rgba(180, 50, 70, 0.28), rgba(80, 16, 32, 0.32));
  border-color: rgba(255, 170, 180, 0.35);
}

.banner.calm {
  color: #e7f2ff;
  background: var(--glass);
  border-color: var(--line);
}

.leader {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(180, 214, 255, 0.16);
}

.leader:last-child { border-bottom: 0; }
.leader.me { margin: 0 -8px; padding: 12px 8px; border-radius: 14px; background: rgba(120, 186, 255, 0.12); }
.leader p { margin: 3px 0 0; font-size: 13px; }
.place { width: 28px; font-weight: 800; color: #8ec8ff; }

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(180, 214, 255, 0.16);
}

.row:last-child { border-bottom: 0; }
.row strong { text-align: right; }

.empty, .loading, .lock {
  padding: 28px 8px;
  text-align: center;
}

.lock h1 { margin: 12px 0 8px; font-size: 24px; }
.loading { color: var(--muted); }

.calc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.give-card, .get-card { position: relative; border-radius: 28px; }
.give-card {
  z-index: 2;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, rgba(28, 52, 112, 0.55), rgba(8, 18, 46, 0.78));
  border: 1px solid rgba(176, 208, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 32px rgba(0, 8, 30, 0.28);
  backdrop-filter: blur(18px);
}
.get-card {
  z-index: 1;
  overflow: visible;
  padding: 22px 18px 16px;
  background:
    radial-gradient(90% 80% at 100% 120%, rgba(255, 255, 255, 0.28), transparent 46%),
    linear-gradient(165deg, #59adff 0%, #2f84f8 46%, #1764e8 100%);
  border: 1px solid rgba(214, 234, 255, 0.55);
  box-shadow: 0 0 28px rgba(46, 132, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.get-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.get-sheen {
  position: absolute;
  right: -30%;
  bottom: -55%;
  width: 90%;
  height: 140%;
  background: linear-gradient(118deg, transparent 36%, rgba(255, 255, 255, 0.2) 50%, transparent 64%);
  pointer-events: none;
}
.calc-head, .calc-amount, .calc-receive, .calc-rate { position: relative; z-index: 1; }
.give-card:has(.asset-menu),
.get-card:has(.asset-menu) { z-index: 6; }
.calc-head:has(.asset-menu) { z-index: 2; }
.calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
.calc-head > span:first-child { color: #d7e7ff; font-size: 17px; font-weight: 600; }
.get-card .calc-head > span:first-child { color: white; }
.calc-amount, .calc-receive, .rub-line {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0;
  letter-spacing: -0.045em;
  line-height: 1;
}
.calc-amount {
  margin: 26px 0 6px;
  color: #c5d4ea;
  font-size: 46px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}
.calc-amount:focus,
.calc-amount:focus-visible {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}
.calc-amount::placeholder { color: #c5d4ea; }
.rub-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
}
.rub-line .calc-rub {
  width: 1ch;
  min-width: 1ch;
  max-width: calc(100% - 36px);
  margin: 0;
  color: white;
  font-size: 42px;
  font-weight: 700;
}
.rub-line .calc-rub::placeholder { color: white; }
.rub-sign {
  flex: none;
  color: white;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}
.calc-rate {
  display: block;
  margin: 18px 0 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
}
.pay-method {
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(190, 214, 255, 0.38);
  background: rgba(5, 14, 36, 0.28);
  color: white;
}
.asset-chip b { font-size: 17px; font-weight: 700; }
.asset-chip .mark { width: 30px; height: 30px; display: block; flex: none; }
.asset-chip .caret { width: 12px; height: 8px; opacity: 0.9; transition: transform 0.15s ease; }
.asset-chip .caret path { fill: none; stroke: white; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.asset-chip[aria-expanded="true"] .caret { transform: rotate(180deg); }
.asset-chip:focus,
.asset-chip:focus-visible,
.asset-option:focus,
.asset-option:focus-visible {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}
.asset-picker { position: relative; }
.asset-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  min-width: 168px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(190, 214, 255, 0.38);
  background: rgba(7, 16, 42, 0.96);
  box-shadow: 0 16px 32px rgba(0, 8, 30, 0.5);
  backdrop-filter: blur(16px);
}
.asset-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 6px 12px 6px 6px;
  border-radius: 14px;
  color: white;
  -webkit-tap-highlight-color: transparent;
}
.asset-option b { font-size: 16px; font-weight: 700; }
.asset-option .mark { width: 30px; height: 30px; display: block; flex: none; }
.asset-option.active { background: rgba(120, 170, 255, 0.18); }
.calc-swap {
  position: relative;
  z-index: 4;
  pointer-events: none;
  align-self: center;
  width: 48px;
  height: 48px;
  margin: -31px 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2456aa, #0c1d42 70%);
  border: 4px solid #041228;
  box-shadow: 0 8px 16px rgba(0, 16, 48, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.calc-swap svg { width: 26px; height: 26px; }

.status-note {
  margin: 2px 4px 0;
  color: #d7e9ff;
  font-size: 13px;
}

.screen { display: flex; flex-direction: column; gap: 14px; }
.form-stack, .leaderboard, .settings-list { display: flex; flex-direction: column; gap: 12px; }

.field-card, .input-card, .quote-card, .leader-row, .profile-head, .stats-grid, .setting-row, .info-card {
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.pay-card {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: 28px;
  border: 1px solid rgba(120, 190, 255, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(34, 92, 190, 0.34), rgba(6, 22, 58, 0.72));
  box-shadow:
    0 0 0 1px rgba(90, 170, 255, 0.18),
    0 0 28px rgba(40, 130, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
}
.pay-glow {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(120, 190, 255, 0.28), transparent 68%);
  pointer-events: none;
}
.pay-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.pay-badge {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #5eb6ff 0%, #1a6ef0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 18px rgba(20, 90, 220, 0.35);
}
.pay-badge svg { width: 28px; height: 28px; display: block; }
.pay-head strong {
  display: block;
  color: white;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pay-head small {
  display: block;
  margin-top: 4px;
  color: #9ec4ef;
  font-size: 13px;
  font-weight: 500;
}
.pay-fields {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 190, 255, 0.42);
  background: rgba(4, 14, 40, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(40, 120, 255, 0.12);
}
.pay-ico {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
}
.pay-ico svg { width: 20px; height: 20px; display: block; }
.pay-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: white;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  padding: 0;
}
.pay-field input::placeholder { color: rgba(170, 200, 235, 0.62); font-weight: 500; }
.pay-field input:focus,
.pay-field input:focus-visible {
  outline: none;
  box-shadow: none;
}

.field-card, .quote-card, .info-card { padding: 14px 16px; }

.terms-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(176, 214, 255, 0.32);
  background: linear-gradient(180deg, rgba(40, 92, 180, 0.24), rgba(6, 20, 54, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.terms-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}
.terms-caret {
  width: 12px;
  height: 8px;
  flex: none;
  opacity: 0.85;
  transition: transform 0.22s ease;
}
.terms-caret path {
  fill: none;
  stroke: #b7d8ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.terms-toggle[aria-expanded="true"] .terms-caret { transform: rotate(180deg); }
.terms-body {
  max-height: 420px;
  overflow: auto;
  margin: 0 12px 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(176, 214, 255, 0.18);
  background: rgba(3, 12, 36, 0.55);
}
.terms-body p {
  margin: 0 0 10px;
  color: #d5e6ff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}
.terms-body p:last-child { margin-bottom: 0; }
.terms-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border-top: 1px solid rgba(176, 214, 255, 0.16);
  color: #eef5ff;
  font-size: 15px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.terms-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.check-box {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1.5px solid rgba(160, 205, 255, 0.45);
  background: rgba(4, 14, 40, 0.72);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.check-box svg {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.check-box path {
  fill: none;
  stroke: white;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.terms-check.on .check-box,
.terms-check input:checked + .check-box {
  border-color: rgba(186, 224, 255, 0.95);
  background: linear-gradient(180deg, #63b8ff 0%, #1d6ff0 100%);
  box-shadow: 0 6px 14px rgba(24, 96, 220, 0.35);
}
.terms-check.on .check-box svg,
.terms-check input:checked + .check-box svg {
  opacity: 1;
  transform: scale(1);
}
.terms-check-text { flex: 1; min-width: 0; }
.terms-check input:focus-visible + .check-box {
  outline: 2px solid #b9ddff;
  outline-offset: 2px;
}
.field-card > span, .input-card > span, .quote-card > span { display: block; color: var(--muted); font-size: 13px; }
.field-card .seg { margin-top: 10px; }

.input-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  padding: 12px 16px;
}
.input-card > span { grid-column: 1 / -1; }
.input-card input, .input-card textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: white;
  font-size: 16px;
  outline: none;
  padding: 0;
}
.input-card textarea { min-height: 72px; resize: vertical; grid-column: 1 / -1; }
.input-card b { color: #d7e9ff; font-size: 13px; }

.quote-card strong { display: block; margin-top: 6px; font-size: 20px; }
.quote-card small, .leader-name small, .profile-head small, .setting-row small, .info-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.leader-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}
.leader-row.podium { background: linear-gradient(180deg, rgba(96, 176, 255, 0.34), rgba(10, 48, 130, 0.42)); }
.leader-row.me { outline: 1px solid rgba(190, 224, 255, 0.55); }
.avatar, .profile-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #6ec4ff, #1a6ef0);
  font-weight: 800;
}
.profile-avatar { width: 52px; height: 52px; border-radius: 18px; font-size: 22px; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.turnover { font-size: 14px; }

.profile-head, .setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.profile-head div, .setting-row span { flex: 1; }
.profile-head strong, .setting-row strong { display: block; }
.profile-head button, .setting-row button {
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}
.stats-grid div { padding: 8px; }
.stats-grid small { display: block; color: var(--muted); font-size: 12px; }
.stats-grid strong { display: block; margin-top: 4px; }
.stats-grid .wide { grid-column: 1 / -1; }

.info-card small { margin-top: 4px; }
