:root {
  color-scheme: dark;
  --bg: #070912;
  --panel: #0c1120;
  --card: #101525;
  --card-raised: #131b2c;
  --border: rgba(238, 246, 255, 0.075);
  --text: #f3f6fc;
  --muted: #909bb0;
  --dim: #6c7890;
  --blue: #4da3ff;
  --blue-bright: #83bdff;
  --blue-deep: #206fb5;
  --mint: #51d7af;
  --danger: #ff7277;
  --space: clamp(16px, 5vw, 22px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(ellipse 88% 38% at 46% -14%, rgba(52, 116, 187, 0.12), transparent 76%),
    linear-gradient(155deg, #080d17 0%, #070912 60%);
  color: var(--text);
}

button, input, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid rgba(116, 182, 255, 0.86);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .13;
  pointer-events: none;
}
.ambient-one { top: 24%; right: -220px; background: #1f7fc7; }
.ambient-two { left: -245px; top: 66%; background: #135a99; }

.application { min-height: 100svh; }
.screen {
  width: min(100%, 560px);
  min-height: 100svh;
  padding:
    max(14px, env(safe-area-inset-top))
    var(--space)
    calc(116px + env(safe-area-inset-bottom));
  margin: 0 auto;
}
.page-content { padding-top: 18px; }
.ui-icon { display: block; width: 22px; height: 22px; flex: none; color: inherit; object-fit: contain; }

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 12px;
}
.topbar-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar {
  position: relative;
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(166, 205, 255, .16);
  border-radius: 16px;
  background: linear-gradient(145deg, #223957, #142235);
  color: #d5eaff;
  font-size: 14px;
  font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hello { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.hello-quiet { color: var(--muted); font-size: 11px; }
.hello strong { overflow: hidden; max-width: 185px; color: #f5f7fb; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.topbar-balance {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(128, 176, 230, .12);
  border-radius: 14px;
  background: rgba(21, 31, 48, .84);
  color: #deecff;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.topbar-balance .ui-icon { width: 18px; height: 18px; color: var(--blue-bright); }

.balance-card {
  position: relative;
  display: flex;
  min-height: 144px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding: 22px 20px;
  border: 1px solid rgba(170, 207, 255, .16);
  border-radius: 23px;
  background:
    radial-gradient(ellipse at 84% 18%, rgba(182, 223, 255, .19), transparent 40%),
    linear-gradient(125deg, #326da9 0%, #255885 46%, #153650 100%);
  box-shadow: 0 16px 45px rgba(13, 48, 82, .22), inset 0 1px rgba(255, 255, 255, .08);
}
.balance-card::before {
  position: absolute;
  right: 13px;
  bottom: -102px;
  width: 224px;
  height: 190px;
  border: 1px solid rgba(220, 239, 255, .11);
  border-radius: 50%;
  content: "";
  transform: rotate(-23deg);
}
.balance-card::after {
  position: absolute;
  right: 33px;
  bottom: -96px;
  width: 176px;
  height: 155px;
  border: 1px solid rgba(220, 239, 255, .1);
  border-radius: 50%;
  content: "";
  transform: rotate(-20deg);
}
.balance-copy { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.eyebrow { color: #9babc2; font-size: 9px; font-weight: 760; letter-spacing: .14em; }
.balance-copy .eyebrow { color: rgba(239, 247, 255, .76); }
.balance-copy strong { overflow-wrap: anywhere; color: white; font-size: clamp(23px, 7.1vw, 33px); font-weight: 740; letter-spacing: -.055em; line-height: 1.1; }
.balance-copy small { color: rgba(231, 243, 255, .78); font-size: 10px; }
.light-button {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: rgba(9, 27, 46, .38);
  color: white;
  font-size: 11px;
  font-weight: 660;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease;
}
.light-button:active { transform: scale(.97); }
.light-button .ui-icon { width: 16px; height: 16px; }

.hero-card {
  position: relative;
  min-height: 213px;
  overflow: hidden;
  margin-top: 17px;
  padding: 20px 18px;
  border: 1px solid rgba(148, 194, 251, .12);
  border-radius: 23px;
  background:
    radial-gradient(ellipse at 89% 65%, rgba(52, 145, 231, .23), transparent 39%),
    linear-gradient(135deg, #101b2b, #0b1220 62%, #0b1422);
}
.hero-copy { position: relative; z-index: 1; max-width: 360px; }
.hero-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(124, 179, 245, .16);
  border-radius: 9px;
  background: rgba(64, 125, 185, .13);
  color: #afd3ff;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .11em;
}
.hero-pill .ui-icon { width: 12px; height: 12px; }
.hero-card h1 { max-width: 345px; margin: 13px 0 7px; color: #f2f6fc; font-size: clamp(22px, 6.6vw, 29px); font-weight: 690; letter-spacing: -.045em; line-height: 1.14; }
.hero-card p { margin: 0; color: #9eabc0; font-size: 12px; }
.hero-button { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; margin-top: 18px; padding: 0 13px; font-size: 11px; }
.hero-button .ui-icon { width: 17px; height: 17px; }
.hero-decoration { position: absolute; top: 22px; right: 21px; width: 100px; height: 117px; opacity: .52; }
.hero-decoration span,.hero-decoration i,.hero-decoration b { position: absolute; display: block; border: 1px solid rgba(102, 180, 255, .37); border-radius: 26px; transform: rotate(32deg); }
.hero-decoration span { top: 6px; right: 17px; width: 63px; height: 98px; background: linear-gradient(180deg, rgba(95, 170, 243, .18), transparent); }
.hero-decoration i { top: 24px; right: 1px; width: 65px; height: 73px; background: rgba(30, 91, 149, .27); }
.hero-decoration b { top: 45px; right: 28px; width: 40px; height: 43px; border-color: rgba(190, 222, 255, .36); background: rgba(33, 102, 168, .32); }

.section-block { margin-top: 27px; }
.section-heading { display: flex; flex-direction: column; gap: 4px; margin-bottom: 13px; }
.section-heading h2 { margin: 0; color: #f2f5fa; font-size: 17px; font-weight: 655; letter-spacing: -.025em; }
.inline-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.text-link { display: inline-flex; min-height: 36px; align-items: center; gap: 4px; border: 0; background: none; color: #91bcf0; font-size: 10px; font-weight: 620; }
.text-link .ui-icon { width: 15px; height: 15px; }

.category-grid { display: grid; gap: 9px; }
.category-card {
  display: grid;
  width: 100%;
  min-height: 74px;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: linear-gradient(110deg, rgba(16, 22, 36, .95), rgba(14, 21, 34, .84));
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}
.category-card:hover { border-color: rgba(120, 181, 245, .3); background: #121b2b; }
.category-card:active { transform: scale(.985); }
.category-icon,.menu-icon {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border: 1px solid rgba(116, 169, 232, .12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(60, 116, 174, .22), rgba(29, 45, 68, .23));
  color: #a9cefc;
}
.category-icon .ui-icon { width: 20px; height: 20px; }
.category-card > span:nth-child(2),.menu-row > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.category-card strong,.menu-row strong { color: #e8eef8; font-size: 12px; font-weight: 610; }
.category-card small,.menu-row small { color: #79869d; font-size: 10px; }
.category-arrow,.menu-arrow { width: 17px; height: 17px; color: #6d7b92; }
.premium-category .category-icon { background: rgba(69, 117, 157, .14); }
.gift-category .category-icon { background: rgba(43, 109, 149, .16); }

.bottom-nav {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: max(9px, env(safe-area-inset-bottom));
  left: 0;
  display: grid;
  width: min(calc(100% - 32px), 500px);
  min-height: 66px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  margin: auto;
  padding: 6px;
  border: 1px solid rgba(219, 232, 250, .085);
  border-radius: 21px;
  background: rgba(13, 18, 30, .94);
  box-shadow: 0 13px 35px rgba(0, 0, 0, .39), inset 0 1px rgba(255, 255, 255, .035);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.nav-item { display: flex; min-width: 50px; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 16px; background: transparent; color: #778299; cursor: pointer; transition: color 160ms ease, background 160ms ease; }
.nav-item span { font-size: 9px; font-weight: 560; }
.nav-item .ui-icon { width: 19px; height: 19px; }
.nav-item.nav-active { background: rgba(67, 133, 199, .13); color: #8fc2ff; }
.nav-active .ui-icon { color: #86bdff; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 244, 255, .07);
  border-radius: 19px;
  background: linear-gradient(150deg, rgba(19, 27, 43, .95), #101521 74%);
  box-shadow: 0 6px 20px rgba(0,0,0,.10), inset 0 1px rgba(255,255,255,.022);
  transition: transform 190ms ease, border-color 190ms ease;
}
.product-card:hover { border-color: rgba(104, 161, 221, .28); transform: translateY(-2px); }
.product-art { position: relative; display: grid; min-height: 99px; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, rgba(66, 119, 176, .16), transparent 64%), #0e1421; }
.product-art-shine { position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 50%, rgba(64,126,190,.055)); pointer-events: none; }
.product-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(115, 176, 241, .14); border-radius: 20px; background: linear-gradient(150deg, rgba(63,133,199,.24), rgba(29,52,78,.25)); color: #b5d9ff; box-shadow: 0 13px 26px rgba(0,0,0,.21); }
.product-icon .ui-icon { width: 28px; height: 28px; }
.gift-icon { border-color: rgba(115,189,223,.15); background: linear-gradient(155deg, rgba(53,130,158,.25), rgba(29,55,75,.32)); }
.gift-image { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.23)); }
.product-copy { padding: 10px 11px 11px; }
.product-copy h3 { overflow: hidden; margin: 0; color: #ecf1f8; font-size: 12px; font-weight: 625; text-overflow: ellipsis; white-space: nowrap; }
.product-copy p { overflow: hidden; min-height: 13px; margin: 5px 0 11px; color: #8c97aa; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.product-purchase { display: flex; min-height: 31px; align-items: center; justify-content: space-between; gap: 4px; }
.product-purchase strong { color: #cde2ff; font-size: 10px; font-weight: 680; white-space: nowrap; }
.round-action { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border: 1px solid rgba(124,181,241,.22); border-radius: 11px; background: rgba(55,113,173,.16); color: #9fcbff; cursor: pointer; }
.round-action .ui-icon { width: 16px; height: 16px; }

.page-intro { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 7px; }
.page-intro > .eyebrow { margin-top: 12px; }
.page-intro h1 { margin: 0; color: #f3f6fc; font-size: clamp(27px, 8vw, 36px); font-weight: 690; letter-spacing: -.05em; line-height: 1.1; }
.page-intro p { margin: 0; color: #96a2b5; font-size: 12px; line-height: 1.55; }
.quiet-link { display: inline-flex; width: fit-content; min-height: 36px; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: #96bce9; font-size: 11px; }
.quiet-link .ui-icon { width: 17px; height: 17px; }
.search-field { display: flex; min-height: 49px; align-items: center; gap: 10px; margin: 14px 0 3px; padding: 0 14px; border: 1px solid rgba(243,247,255,.085); border-radius: 16px; background: #101624; color: #899bb3; }
.search-field .ui-icon { width: 18px; height: 18px; }
.search-field input { width: 100%; min-width: 0; border: none; outline: none; background: transparent; color: #eff5ff; font-size: 12px; }
.search-hint { margin: 6px 2px 12px; color: #78859a; font-size: 10px; }
.page-intro + .section-block { margin-top: 20px; }
.page-intro ~ .section-block + .section-block { margin-top: 25px; }

.form-card,.payment-card,.table-card,.user-hero-card,.profile-banner,.profile-balance,.topup-balance,.order-admin-card,.order-actions-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 24, 39, .97), rgba(13, 18, 29, .96));
}
.topup-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; padding: 16px; }
.topup-balance span { display: inline-flex; align-items: center; gap: 8px; color: #abb6c8; font-size: 11px; }
.topup-balance .ui-icon { width: 18px; height: 18px; color: #89bbf7; }
.topup-balance strong { color: #f0f5fc; font-size: 15px; font-weight: 680; }
.topup-card { margin-top: 13px; padding: 17px; }
.field-label { display: block; margin-bottom: 8px; color: #ced7e5; font-size: 11px; font-weight: 610; }
.money-input { display: flex; min-height: 55px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(114,159,217,.16); border-radius: 14px; background: #0d1320; }
.money-input input { width: 100%; min-width: 0; border: none; outline: none; background: transparent; color: white; font-size: 22px; font-weight: 680; letter-spacing: -.035em; }
.money-input input::placeholder { color: #54627a; }
.money-input span { color: #9ba9bc; font-size: 10px; font-weight: 650; }
.quick-amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.quick-amounts button { min-height: 38px; border: 1px solid rgba(248,250,255,.065); border-radius: 12px; background: #121a29; color: #b5c7dd; font-size: 10px; cursor: pointer; }
.quick-amounts button:active { border-color: rgba(100,169,236,.45); color: #d3e9ff; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 14px; font-size: 12px; font-weight: 640; cursor: pointer; transition: transform 170ms ease, background 170ms ease, opacity 170ms ease; }
.button:active { transform: scale(.985); }
.button .ui-icon { width: 18px; height: 18px; }
.primary-button { border-color: rgba(153,203,255,.14); background: linear-gradient(135deg, #347cbb, #25639e); color: white; box-shadow: inset 0 1px rgba(255,255,255,.10), 0 8px 16px rgba(15,60,102,.17); }
.primary-button:hover { background: linear-gradient(135deg, #418aca, #2d70ad); }
.secondary-button { border-color: rgba(226,235,247,.085); background: #151c2a; color: #d1dce9; }
.danger-button { border-color: rgba(255,129,132,.16); background: rgba(133,44,51,.22); color: #ffabad; }
.full-button { width: 100%; margin-top: 15px; }
.secure-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: #8895aa; font-size: 9px; line-height: 1.45; }
.secure-note .ui-icon { width: 15px; height: 15px; color: #85baf3; }

.payment-card { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; padding: 18px; }
.payment-card > strong { margin-top: -4px; color: #e8eef8; font-size: 13px; line-height: 1.45; }
.payment-status-mark { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgba(126,189,252,.19); border-radius: 15px; background: rgba(47,110,172,.15); color: #9dcbff; }
.payment-status-mark.success { border-color: rgba(90,206,173,.23); background: rgba(57,144,119,.12); color: #6dddb4; }
.payment-status-mark.failed,.payment-status-mark.expired { border-color: rgba(250,115,120,.21); background: rgba(151,51,59,.12); color: #ff9196; }
.payment-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.payment-row span { color: #8895a9; font-size: 10px; }
.payment-row b { color: #e4edf8; font-size: 11px; font-weight: 590; }

.profile-banner { display: flex; align-items: center; gap: 14px; padding: 18px 15px; }
.profile-banner h1 { margin: 4px 0; color: #f4f7fb; font-size: 17px; font-weight: 660; }
.profile-banner p { margin: 0; color: #8996ab; font-size: 11px; }
.profile-banner .avatar { width: 58px; height: 58px; flex-basis: 58px; border-radius: 20px; }
.profile-balance { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; padding: 15px; }
.profile-balance > span { color: #91a0b5; font-size: 11px; }
.profile-balance strong { color: #d9e9fd; font-size: 17px; }
.menu-list { display: grid; gap: 8px; margin-top: 17px; }
.menu-row { display: grid; width: 100%; min-height: 68px; grid-template-columns: 40px minmax(0,1fr) 17px; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: rgba(16, 22, 35, .87); text-align: left; cursor: pointer; }
.menu-icon { width: 39px; height: 39px; border-radius: 13px; }
.menu-icon .ui-icon { width: 19px; height: 19px; }
.menu-arrow { width: 16px; height: 16px; }
.privacy-link { margin-top: 14px; text-decoration: none; }

.activity-list,.orders-list { display: flex; flex-direction: column; gap: 8px; }
.activity-row,.order-row { display: flex; min-height: 67px; align-items: center; gap: 10px; padding: 11px 9px; border: 1px solid rgba(243,247,255,.052); border-radius: 16px; background: rgba(15, 21, 33, .78); }
.activity-mark { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border: 1px solid rgba(111,161,221,.14); border-radius: 13px; background: rgba(40,83,130,.17); color: #8cbaff; }
.activity-mark .ui-icon { width: 17px; height: 17px; }
.activity-mark.success { border-color: rgba(80,206,166,.17); background: rgba(36,121,98,.1); color: #65d5ae; }
.activity-mark.failed { border-color: rgba(249,113,126,.15); background: rgba(139,49,59,.13); color: #f89098; }
.activity-mark.pending { border-color: rgba(128,172,224,.16); background: rgba(48,83,123,.16); color: #92b7e3; }
.activity-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; }
.activity-copy strong { overflow: hidden; color: #dfe6f1; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy small,.order-price small { overflow: hidden; color: #8290a5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-amount { flex: none; color: #82daba; font-size: 9px; font-weight: 650; }
.order-price { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 4px; }
.order-price strong { color: #e1ecfb; font-size: 9px; white-space: nowrap; }
.order-price small { color: #83b4e8; }

.empty-state { display: flex; min-height: 145px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 22px 14px; border: 1px dashed rgba(197,216,241,.11); border-radius: 17px; color: #8a98ad; text-align: center; }
.empty-state .ui-icon { width: 23px; height: 23px; color: #6f90b2; }
.empty-state strong { color: #c6d1df; font-size: 11px; font-weight: 600; }
.empty-state > span { max-width: 245px; color: #78869a; font-size: 9px; line-height: 1.5; }
.privacy-footnote { margin: 19px 0 10px; color: #778398; font-size: 9px; line-height: 1.55; }
.privacy-footnote a { color: #9dc9fb; }

.sheet { position: fixed; inset: auto 0 0; width: min(100%, 560px); max-width: 560px; max-height: min(83dvh, 690px); margin: 0 auto; padding: 0; overflow: visible; border: 0; background: transparent; color: var(--text); }
.sheet::backdrop { background: rgba(2, 5, 11, .66); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.sheet-panel { position: relative; max-height: min(83dvh, 690px); overflow-y: auto; padding: 14px 20px calc(22px + env(safe-area-inset-bottom)); border: 1px solid rgba(192,216,247,.13); border-bottom: 0; border-radius: 25px 25px 0 0; background: #101622; box-shadow: 0 -18px 55px rgba(0,0,0,.27); animation: sheet-in 210ms ease both; }
.sheet-panel h2 { max-width: calc(100% - 40px); margin: 12px 0 5px; color: #f3f6fc; font-size: 21px; font-weight: 660; letter-spacing: -.035em; }
.sheet-product-desc { margin: 0; color: #93a0b5; font-size: 11px; line-height: 1.55; }
.sheet-handle { display: block; width: 37px; height: 4px; margin: 1px auto 19px; border-radius: 8px; background: rgba(223,234,247,.24); }
.sheet-close { position: absolute; top: 13px; right: 16px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(220,231,245,.08); border-radius: 12px; background: #192231; color: #a1aec0; cursor: pointer; }
.sheet-close .ui-icon { width: 17px; height: 17px; }
.sheet-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sheet-price span { color: #a0aec1; font-size: 11px; }
.sheet-price strong { color: #d2e7ff; font-size: 15px; }
#recipient-input { display: block; width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid rgba(208,224,246,.105); border-radius: 14px; outline: none; background: #0b111d; color: #f1f6fc; font-size: 12px; }
#recipient-input + small { display: block; margin: 8px 1px 2px; color: #8592a6; font-size: 9px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.sheet[open] { animation: backdrop-in 160ms ease both; }

.toast-root { position: fixed; z-index: 15; top: max(14px, env(safe-area-inset-top)); right: 0; left: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 15px; pointer-events: none; }
.toast { display: flex; width: min(100%, 500px); min-height: 47px; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(153,194,242,.12); border-radius: 15px; background: rgba(19,26,40,.97); box-shadow: 0 13px 30px rgba(0,0,0,.28); color: #dce5f0; font-size: 11px; opacity: 0; transform: translateY(-7px); transition: opacity 180ms ease, transform 180ms ease; }
.toast-in { opacity: 1; transform: translateY(0); }
.toast .ui-icon { width: 17px; height: 17px; color: #75d7b1; }
.toast-error .ui-icon { color: #fd969c; }
.toast-warning .ui-icon { color: #f2c07a; }

.login-screen { display: flex; width: min(100% - 38px, 390px); min-height: 100svh; flex-direction: column; align-items: center; justify-content: center; gap: 13px; margin: 0 auto; text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #f3f7fc; font-size: 15px; font-weight: 740; letter-spacing: -.035em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(155,200,249,.18); border-radius: 12px; background: linear-gradient(150deg, #254d76, #182a3e); color: #b5d9ff; font-size: 16px; }
.login-screen > .brand { margin-bottom: 34px; }
.login-symbol { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: 10px; border: 1px solid rgba(133,183,237,.18); border-radius: 20px; background: rgba(40,88,137,.17); color: #8cbdff; }
.login-symbol .ui-icon { width: 25px; height: 25px; }
.login-screen h1 { margin: 1px 0; color: #f3f6fb; font-size: 29px; font-weight: 680; letter-spacing: -.05em; }
.login-screen > p { max-width: 330px; margin: 0 0 9px; color: #98a6bb; font-size: 12px; line-height: 1.65; }
.login-screen .quiet-link { margin-top: 12px; font-size: 10px; }
.error-panel { display: flex; min-height: 48svh; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.error-panel > .ui-icon { width: 34px; height: 34px; color: #9cbedf; }
.error-panel h1 { margin: 0; font-size: 21px; }
.error-panel p { color: #99a8bb; font-size: 12px; }

.skeleton { background: linear-gradient(100deg, #101625 20%, #172238 39%, #101625 63%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.loading-screen { padding-top: 40px; }
.skeleton-orbit { width: 90px; height: 20px; margin: 0 auto 20px; border-radius: 10px; }
.skeleton-line { width: 61%; height: 12px; margin: 0 auto 15px; border-radius: 8px; }
.skeleton-panel { height: 150px; margin: 0 auto 12px; border-radius: 22px; }
.skeleton-panel.short { height: 115px; }
.skeleton-card { display: grid; min-height: 175px; align-content: start; gap: 12px; padding: 11px; border: 1px solid var(--border); border-radius: 18px; }
.skeleton-art { display: block; width: 100%; height: 74px; border-radius: 13px; }
.skeleton-card .skeleton-line { width: 75%; height: 9px; margin: 0; }
.skeleton-card .tiny-line { width: 51%; height: 8px; }

.privacy-page { min-height: 100svh; padding-top: 30px; }
.privacy-page h1 { margin: 22px 0 15px; font-size: 31px; letter-spacing: -.04em; }
.privacy-page h2 { margin-top: 28px; font-size: 16px; }
.privacy-page p { color: #a1aec0; font-size: 13px; line-height: 1.8; }
.noscript { max-width: 540px; margin: 15px auto; padding: 10px; color: #f2bcbc; font-size: 12px; text-align: center; }

@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes sheet-in { from { transform: translateY(15px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  .screen { padding-top: 24px; }
  .page-content { padding-top: 26px; }
  .hero-card { min-height: 230px; padding: 25px 25px; }
  .hero-decoration { right: 55px; transform: scale(1.19); }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 365px) {
  .screen { --space: 14px; }
  .topbar-balance { gap: 5px; padding: 0 9px; font-size: 10px; }
  .topbar-balance .ui-icon { width: 16px; height: 16px; }
  .balance-card { padding: 18px 14px; }
  .light-button { gap: 4px; padding: 0 8px; font-size: 10px; }
  .hero-decoration { right: 4px; opacity: .38; transform: scale(.8); transform-origin: top right; }
  .product-grid { gap: 8px; }
  .product-copy { padding-right: 8px; padding-left: 8px; }
  .product-copy h3 { font-size: 11px; }
  .product-purchase strong { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}