@font-face {
  font-family: Mulish;
  src: url(mulish.ttf) format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  font-family: Mulish, system-ui, sans-serif;
  color: #1f2226;
  background: #fff;
  --ink: #1f2226;
  --mute: #5c646b;
  --line: #cbd4d8;
  --edge: #e3e8eb;
  --fill: #f3f5f6;
  --cta: #ffdd00;
  --cta-hover: #f5d200;
  --mint: #42fdcc;
  --blue: #3975c8;
  --blue-soft: #e3edfa;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px max(16px, env(safe-area-inset-right)) 48px;
  background: #fff;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
::selection {
  background: var(--cta);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.shell {
  margin: auto;
  width: min(100%, 980px);
}
.topbar {
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 3;
  inset: max(5px, env(safe-area-inset-top)) 0 auto;
  margin: auto;
  justify-content: space-between;
  padding: 0 12px;
  width: 216px;
  height: 42px;
  border-radius: 0 0 20px 20px;
  background: #fff;
  box-shadow: 0 8px 24px #0d0d0d10;
}
.topbar.signed-in {
  width: 248px;
}
.topbar.telegram-checkout {
  width: max-content;
  max-width: 92vw;
  gap: 8px;
}
body:has(dialog[open]) .topbar {
  visibility: hidden;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  border-radius: 9px;
  margin-right: 3px;
}
.brand b {
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 1000;
  font-style: italic;
}
.brand span {
  font-size: 15px;
  font-weight: 740;
}
.heading nav {
  margin-left: auto;
  display: flex;
  background: var(--fill);
  border: 1px solid var(--edge);
  border-radius: 100px;
  padding: 3px;
}
.heading nav button {
  font-weight: 750;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 100px;
}
.heading nav button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 5px #10182812;
}
.balance-pill {
  display: grid;
  justify-items: center;
  line-height: 1.1;
  white-space: nowrap;
  background: var(--mint);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 800;
  font-size: 14px;
}
.balance-pill small {
  font-size: 10px;
  font-weight: 600;
}
.balance-pill strong {
  font-size: 13px;
  font-weight: 850;
}
.mobile-stock {
  display: none;
}
.shell {
  margin-top: max(42px, env(safe-area-inset-top));
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 28px;
  padding: 28px 30px 22px;
  box-shadow: 0 18px 55px -32px #10182838;
}
.heading,
.tools,
.row,
.sheet-top,
.ticket,
.delivery,
.order-row {
  display: flex;
  align-items: center;
}
.heading {
  gap: 10px;
  margin-bottom: 17px;
}
h1 {
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 870;
  letter-spacing: -0.04em;
  margin: 0;
}
#preview-label {
  font-size: 11px;
  color: var(--mute);
  font-weight: 700;
}
.tools {
  gap: 8px;
  margin-bottom: 14px;
}
.search,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 43px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  flex: 1;
  min-width: 0;
}
.search span {
  width: 15px;
  height: 15px;
  border: 1.8px solid var(--mute);
  font-size: 0;
  border-radius: 50%;
  position: relative;
  transform: scale(0.8);
  flex: none;
}
.search span:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--mute);
  right: -6px;
  bottom: -3px;
  transform: rotate(46deg);
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}
.search:focus-within {
  outline: 2px solid var(--blue);
}
.search input::placeholder {
  color: var(--mute);
}
select {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 740;
}
.sort-control {
  flex: 0 0 auto;
}
#sort-trigger,
#sort {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  height: 43px;
  font-weight: 740;
  font-size: 13px;
}
#sort-trigger {
  display: flex;
  gap: 12px;
  align-items: center;
}
#sort-menu {
  display: none;
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 5px;
  min-width: 166px;
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 15px;
  background: #fffffff5;
  box-shadow: 0 12px 32px #0d0d0d1f;
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  transition:
    opacity 160ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    display 160ms allow-discrete,
    overlay 160ms allow-discrete;
}
#sort-menu:popover-open {
  display: grid;
  opacity: 1;
  transform: none;
}
@starting-style {
  #sort-menu:popover-open {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}
#sort-menu label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 37px;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 13px;
  cursor: pointer;
}
#sort-menu label:hover,
#sort-menu label:focus-within {
  background: var(--fill);
}
#sort-menu input {
  accent-color: var(--ink);
}
.list {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.list:empty {
  display: none;
}
.columns,
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 100px 30px;
  gap: 10px;
  align-items: center;
  padding: 12px 17px;
}
.columns {
  color: var(--mute);
  background: var(--fill);
  font-weight: 770;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.right,
.cost {
  text-align: right;
}
.row,
.order-row {
  border-top: 1px solid var(--line);
  width: 100%;
  text-align: left;
  min-height: 65px;
  transition: background 0.15s;
}
.row:hover,
.row:focus-visible {
  background: var(--blue-soft);
}
.row:focus-visible {
  outline-offset: -3px;
}
.name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.name > span:last-child {
  min-width: 0;
}
.name strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.35;
}
.sub {
  display: block;
  font-size: 12px;
  color: var(--mute);
  margin-top: 2px;
}
.mark {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--fill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  flex: none;
}
.mark img {
  width: 22px;
  height: 22px;
}
.mark[data-service="claude"] {
  background: #f7e5d9;
}
.mark[data-service="chatgpt"] {
  background: #e8ecee;
}
.mark[data-service="spotify"] {
  background: #e6f6eb;
}
.mark[data-service="youtube"] {
  background: #fff0f0;
}
.mark[data-service="perplexity"] {
  background: #e5f0f0;
}
.mark[data-service="telegram"] {
  background: #e1f1fb;
}
.stock {
  font-size: 12px;
  color: #0b7054;
  font-weight: 720;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stock:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12805f;
}
.stock.off {
  color: var(--mute);
}
.stock.off:before {
  background: #859098;
}
.cost {
  font-weight: 830;
  white-space: nowrap;
}
.chevron {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--mute);
  background: var(--fill);
}
.chevron::after,
#sort-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: solid currentColor;
  border-width: 0 1.7px 1.7px 0;
  transform: translateY(-1.5px) rotate(45deg);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.row[aria-expanded="true"] .chevron,
.row:hover .chevron {
  background: #e3edfa;
  color: var(--blue);
}
.row[aria-expanded="true"] .fold::after,
#sort-trigger[aria-expanded="true"]::after {
  transform: translateY(1.5px) rotate(225deg);
}
.next::after {
  transform: translateX(-1px) rotate(-45deg);
}
.access,
.variant {
  position: relative;
  min-height: 52px;
}
.access {
  background: #f6f8f9;
}
.variant {
  background: #fcfdfd;
}
.access .name {
  padding-left: 32px;
}
.variant .name {
  padding-left: 56px;
}
.access .name strong,
.variant .name strong {
  font-size: 14px;
}
.access::before,
.variant::before {
  position: absolute;
  content: "";
  left: 31px;
  top: 0;
  height: 50%;
  width: 10px;
  border: solid var(--line);
  border-width: 0 0 1.5px 1.5px;
  border-bottom-left-radius: 7px;
}
.variant::before {
  left: 55px;
}
.branch > .row {
  animation: plan-in 160ms ease-out both;
  animation-delay: calc(var(--row-index, 0) * 25ms);
}
@keyframes plan-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#notice {
  font-size: 14px;
  color: var(--mute);
  text-align: center;
  margin: 25px 0 6px;
}
#notice:empty {
  display: none;
}
#retry {
  display: block;
  margin: 14px auto;
  text-decoration: underline;
}
.order-row {
  justify-content: space-between;
  padding: 15px 17px;
  gap: 16px;
}
.order-row:first-child {
  border-top: 0;
}
.order-row strong {
  font-size: 14px;
}
dialog {
  --panel-height: min(470px, calc(100dvh - 84px));
  position: fixed;
  inset: max(57px, calc((100dvh - var(--panel-height)) / 2)) 0 auto;
  margin: 0 auto;
  color: inherit;
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: 44px;
  width: min(420px, 92vw);
  max-width: 92vw;
  height: var(--panel-height);
  max-height: none;
  padding: 8px;
  background: rgb(238 242 244 / 0.91);
  box-shadow:
    inset 0 1px 0 #fff,
    0 24px 60px #0000002e;
  overflow: visible;
}
dialog::backdrop {
  background: rgb(0 0 0 / 0.14);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 240ms ease-out;
}
dialog[open]::backdrop {
  opacity: 1;
}
dialog.closing::backdrop {
  opacity: 0;
}
.dock-return,
dialog.closing .sheet-frame {
  display: none;
}
dialog.closing .dock-return {
  position: absolute;
  inset: 0 0 auto;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  overflow: hidden;
}
dialog.closing {
  background: white;
  box-shadow: 0 8px 24px #0d0d0d10;
  transition:
    background-color 340ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 340ms cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 36px;
  overflow: hidden;
}
.sheet {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 23px 23px 8px;
}
.sheet-actions {
  flex: none;
  padding: 8px 23px 17px;
  background: white;
  box-shadow: 0 -1px 0 var(--edge);
}
.sheet-actions .primary {
  margin: 0;
}
.sheet-top {
  gap: 10px;
}
.sheet-top strong {
  font-size: 14px;
}
.sheet-top .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.sheet-top .mark img {
  width: 20px;
  height: 20px;
}
.close {
  position: absolute;
  z-index: 1;
  top: -44px;
  left: calc(50% - 18px);
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #ffffffbf;
  background: #ffffffd9;
  box-shadow: 0 6px 20px #0000001f;
  font-size: 24px;
  line-height: 1;
  transition:
    opacity 160ms ease-out 60ms,
    transform 160ms ease-out 60ms;
}
.close:hover {
  background: white;
}
dialog.closing .close {
  opacity: 0;
  transform: translateY(4px) scale(0.8);
}
@starting-style {
  dialog[open]::backdrop {
    opacity: 0;
  }
  dialog[open] .close {
    opacity: 0;
    transform: translateY(4px) scale(0.8);
  }
}
h2 {
  font-size: clamp(23px, 5vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 20px 0 17px;
  overflow-wrap: anywhere;
}
.ticket {
  align-items: stretch;
  gap: 1px;
  border: 1px solid var(--edge);
  border-radius: 15px;
  overflow: hidden;
  background: var(--edge);
}
.ticket > div {
  flex: 1;
  padding: 13px;
  background: var(--fill);
}
.ticket small,
.delivery span {
  font-size: 12px;
  color: var(--mute);
  font-weight: 650;
}
.ticket strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  margin-top: 4px;
  color: var(--ink);
}
#availability {
  font-size: 14px;
  margin-top: 7px;
}
.delivery {
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.delivery strong {
  font-size: 13px;
}
.sheet p {
  font-size: 14px;
  line-height: 1.45;
  margin: 12px 0;
  white-space: pre-line;
}
.requirements {
  color: #514715;
  background: #fff8cf;
  border-radius: 10px;
  padding: 10px;
}
.quote {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.quote > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 5px;
}
.quote span {
  color: var(--mute);
}
details {
  margin: 12px 0;
  font-size: 13px;
}
summary {
  font-weight: 700;
}
#terms-text {
  font-size: 12px;
  max-height: 165px;
  overflow: auto;
}
.consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 13px 0;
}
.consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
#email-field,
#payer-field {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0;
}
#email,
#payer {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  min-width: 0;
}
#feedback {
  font-size: 13px;
  line-height: 1.45;
  margin: 10px 0;
  color: var(--ink);
}
#feedback:empty {
  display: none;
}
.primary {
  background: var(--cta);
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 12px;
  min-height: 46px;
  width: 100%;
  font-size: 15px;
  font-weight: 790;
  margin-top: 6px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: var(--cta-hover);
}
.primary:active {
  transform: scale(0.987);
}
.primary:disabled {
  background: var(--fill);
  color: var(--mute);
}
@media (max-width: 640px) {
  body {
    padding: 14px 9px 24px;
  }
  .topbar {
    gap: 8px;
    padding: 0 12px;
  }
  .brand b {
    font-size: 23px;
  }
  .brand span {
    font-size: 12px;
  }
  .heading nav button {
    padding: 7px 10px;
    font-size: 12px;
  }
  .balance-pill {
    font-size: 12px;
  }
  .shell {
    margin-top: max(47px, env(safe-area-inset-top));
    padding: 17px 10px 12px;
    border-radius: 21px;
  }
  .heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 6px;
    margin: 0 4px 13px;
  }
  .heading h1,
  #preview-label {
    grid-column: 1;
  }
  .heading nav {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .mobile-stock {
    display: inline;
  }
  .columns,
  .row {
    grid-template-columns: minmax(0, 1fr) auto 24px;
    padding: 11px 10px;
    gap: 6px;
  }
  .columns span:nth-child(2),
  .row > .stock {
    display: none;
  }
  .name {
    gap: 8px;
  }
  .name strong {
    font-size: 13px;
  }
  .mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  .mark img {
    width: 19px;
    height: 19px;
  }
  .cost {
    font-size: 13px;
  }
  .sub {
    font-size: 11px;
  }
  .chevron {
    width: 24px;
    height: 24px;
  }
  .access .name {
    padding-left: 19px;
  }
  .variant .name {
    padding-left: 32px;
  }
  .access::before {
    left: 14px;
    width: 7px;
  }
  .variant::before {
    left: 27px;
    width: 7px;
  }
  #sort-trigger {
    padding: 0 9px;
    gap: 7px;
    font-size: 12px;
  }

  .search {
    padding: 0 9px;
    gap: 7px;
  }
  .search input,
  select {
    font-size: 12px;
  }
  select {
    padding: 0 5px;
  }
  .sheet {
    padding: 17px 17px 8px;
  }
  .sheet-actions {
    padding: 8px 17px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::backdrop {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

.bank-contact {
  display: block;
  margin-top: 8px;
  color: #285da5;
}

#account {
  inset: 0;
  margin: auto;
  width: min(360px, 92vw);
  height: fit-content;
  max-height: calc(100dvh - 100px);
  padding: 24px;
  border-radius: 24px;
  background: white;
}
#account h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
#account p {
  font-size: 14px;
  color: var(--mute);
}
#login-form,
#wallet-view {
  display: grid;
  gap: 12px;
}
#login-form p {
  margin: 0;
}
#login-form label {
  font-size: 13px;
  font-weight: 700;
}
#login-code {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px;
  border-radius: 10px;
}
#account .primary {
  margin: 0;
}
.account-link {
  background: var(--fill);
  padding: 11px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
#account #wallet-amount {
  color: var(--ink);
  font-size: 32px;
  font-weight: 850;
  margin: 0 0 4px;
}
#account-status:empty {
  display: none;
}
#account-status {
  margin: 10px 0 0;
}
