@font-face {
  font-family: Manrope;
  src: url("assets/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --surface: #141719;
  --card: #1a1e21;
  --line: rgba(171, 190, 226, .20);
  --text: #f3f6fe;
  --muted: #aebfdf;
  --emerald: #9acbb6;
  --emerald-deep: #224b3f;
  --ease: 210ms cubic-bezier(.2,.7,.25,1);
  font: 14px/1.5 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 35%, #202729, #101214 66%);
  color: var(--text);
}
.phone {
  position: relative;
  isolation: isolate;
  width: min(100%, 390px);
  height: min(824px, calc(100dvh - 44px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 85px #0008, 0 0 0 6px #ffffff03;
}
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .10;
  pointer-events: none;
  background: url("assets/card-background.jpg") center / auto 100%;
  filter: grayscale(1);
}
.masthead, .tabs { display: flex; align-items: center; padding-inline: 21px; }
.masthead {
  justify-content: space-between;
  min-height: 65px;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 5px; font-size: 15px; letter-spacing: -.025em; color: #c1d1ec; }
.brand strong { font-weight: 750; color: var(--text); }
.monogram { display: inline-block; position: relative; width: 23px; height: 23px; margin-right: 5px; border: 1px solid #8dbcac94; border-radius: 8px; }
.monogram::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--emerald); border-radius: 50%; }
.demo, .pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 30px; padding: 3px 9px; font-size: 11px; font-weight: 750; color: var(--muted); white-space: nowrap; }
.demo i { width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); }
main { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 23px 20px; }
main:focus { outline: none; }
.view { animation: enter var(--ease) both; }
@keyframes enter { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
h1, h2, p { margin: 0; }
h1 { font-size: 25px; line-height: 1.18; letter-spacing: -.045em; font-weight: 780; }
h2 { font-size: 15px; letter-spacing: -.018em; font-weight: 760; }
.subtle { color: var(--muted); font-size: 12px; }
.intro { margin-bottom: 18px; }
.intro p { margin-top: 6px; }
.card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.balance-card {
  position: relative;
  overflow: hidden;
  padding: 19px 17px 17px;
  background: radial-gradient(ellipse at 22% 52%, #31594b54, transparent 70%), linear-gradient(145deg, #1c2325, #191d21);
  border-color: #a9bfe958;
}
.balance-card::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  right: -29px;
  top: -34px;
  border: 1px solid #a9bfe929;
  border-radius: 50%;
  box-shadow: 0 0 0 13px #a9bfe90c, 0 0 0 27px #a9bfe907;
  pointer-events: none;
}
.amount { font-size: clamp(36px, 11vw, 48px); font-weight: 780; line-height: 1.12; color: #fafbff; letter-spacing: -.05em; margin: 9px 0 11px; white-space: nowrap; }
.amount small { color: var(--emerald); font-size: .56em; font-weight: 660; }
.share { color: #c1d1ec; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 16px; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
button { transition: transform var(--ease), background-color var(--ease), border-color var(--ease); -webkit-tap-highlight-color: transparent; }
button:not(:disabled):active { transform: scale(.97); }
button:disabled { opacity: .48; cursor: default; }
.btn { min-height: 45px; border-radius: 13px; border: 1px solid var(--line); background: #22282b; font-weight: 760; padding: 8px 12px; }
.btn.primary { background: #a1cdbb; border-color: #a1cdbb; color: #14281f; }
.btn.primary:not(:disabled):hover { background: #bbdbce; }
.btn:not(.primary):hover { background-color: #2a3235; }
.block { width: 100%; margin-top: 13px; }
.count-card { padding: 14px 15px; }
.line, .count-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.clock-tile { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #9acbb633; border-radius: 10px; color: var(--emerald); background: #21332d; }
.counter { margin-top: 9px; color: #e6f4ee; font-size: 25px; font-weight: 750; letter-spacing: .035em; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 15px 0 6px; gap: 10px; }
.link { background: none; border: 0; color: var(--emerald); padding: 5px 0; font-size: 12px; font-weight: 750; }
.entry { width: 100%; text-align: left; display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: #1a1e22; }
.entry:hover { background-color: #242a2e; }
.entries { display: grid; gap: 7px; }
.entry strong { font-size: 13px; }
.entry .subtle { margin-top: 3px; }
.pill.pending { color: #d7c698; border-color: #a089514d; background: #332d22; }
.pill.working { color: #bdd2ef; background: #242f3c; }
.pill.paid { color: #acd5c3; border-color: #65a18a55; background: #22352e; }
.pill.rejected { color: #e1b4b6; border-color: #ab768052; background: #36272c; }
.tabs { justify-content: space-around; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); gap: 5px; border-top: 1px solid var(--line); background: #181c20; }
.tabs button { flex: 1; display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 47px; background: transparent; border: 1px solid transparent; border-radius: 12px; color: var(--muted); font-size: 10px; font-weight: 750; }
.tabs button[aria-current="page"] { color: #b7dfce; background: #24352f; border-color: #9acbb621; }
.icon { width: 16px; height: 16px; position: relative; display: inline-block; flex: none; color: inherit; }
.wallet { height: 12px; border: 1.4px solid currentColor; border-radius: 3px; }
.wallet::after { content: ""; position: absolute; right: 2px; top: 4px; background: currentColor; width: 4px; height: 2px; border-radius: 1px; }
.list { border: 1.4px solid currentColor; border-radius: 3px; }
.list::after { content: ""; position: absolute; inset: 4px 3px; border-block: 1px solid currentColor; }
.bars { border-bottom: 1px solid currentColor; background: linear-gradient(currentColor,currentColor) left bottom / 2px 6px no-repeat, linear-gradient(currentColor,currentColor) center bottom / 2px 10px no-repeat, linear-gradient(currentColor,currentColor) right bottom / 2px 14px no-repeat; }
.clock { border: 1.3px solid currentColor; border-radius: 50%; }
.clock::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 5px; border: solid currentColor; border-width: 0 0 1px 1px; }
.back { margin: 0 0 10px; min-height: 30px; }
.field { display: grid; gap: 6px; margin: 12px 0; font-size: 13px; font-weight: 750; }
input { width: 100%; min-height: 43px; padding: 8px 11px; font-size: 16px; color: var(--text); border: 1px solid var(--line); border-radius: 11px; background: #14181c; }
fieldset { border: 0; padding: 0; margin: 12px 0 0; }
legend { font-size: 13px; font-weight: 750; margin-bottom: 7px; padding: 0; }
.banks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bank { min-height: 40px; padding: 6px; border: 1px solid var(--line); background: #20252a; border-radius: 10px; font-size: 11px; font-weight: 720; }
.bank:last-child { grid-column: 1 / -1; }
.bank[aria-pressed="true"] { border-color: #9acbb685; background: #263d34; color: #c4e7d8; }
.error { color: #efb6b9; font-size: 12px; margin-top: 8px; }
[hidden] { display: none !important; }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
dl > div:last-child { border: none; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 740; }
.success { text-align: center; padding: 31px 15px 18px; }
.success-mark { display: grid; place-items: center; width: 63px; height: 63px; margin: 0 auto 17px; border: 1px solid #9acbb67a; box-shadow: 0 0 0 8px #9acbb611; border-radius: 50%; color: var(--emerald); background: #253e34; animation: check-pop 230ms ease-out both; }
.success-mark::before { content: ""; width: 19px; height: 10px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
@keyframes check-pop { from { opacity: 0; transform: scale(.75); } to { opacity: 1; transform: scale(1); } }
.success p { margin-top: 8px; }
.timeline { list-style: none; padding: 0; margin: 11px 0 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: 2px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); background: var(--card); z-index: 1; }
.timeline li.done::before { background: var(--emerald); border-color: var(--emerald); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 10px; bottom: -6px; width: 1px; background: var(--line); }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 13px; }
.column { display: grid; justify-items: center; gap: 5px; min-width: 0; font-size: 10px; color: var(--muted); }
.chart-track { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 78px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 18px, #a9bfe914 19px 20px); }
.chart-bar { width: 9px; height: var(--bar-height); border-radius: 3px 3px 0 0; background: #72a995; }
.credit-list { margin-top: 9px; }
.credit-list .line { padding: 8px 0; border-bottom: 1px solid var(--line); }
.credit-list .line:last-child { border: 0; }
@media (max-width: 520px) {
  body { min-height: 100dvh; display: block; }
  .phone { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
}
.telegram body { display: block; }
.telegram .phone { width: 100%; height: var(--tg-viewport-stable-height, 100dvh); border: 0; border-radius: 0; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  button:not(:disabled):active { transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
