.a-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.a-boot {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(60vmax 50vmax at 50% 35%, rgba(123,60,255,.22), transparent 60%), #07040d;
  transition: opacity .35s ease, visibility .35s ease;
}
.a-boot.done { opacity: 0; visibility: hidden; }
.a-boot-mark { width: 72px; height: 72px; animation: a-bob 2.2s ease-in-out infinite; }
.a-boot-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(180,132,255,.35)); }
.a-boot-word { font-family: var(--disp); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.a-boot-word span { color: var(--accent); }
.a-boot-line { width: 160px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.a-boot-line i { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--violet-grad); animation: a-slide 1.15s ease-in-out infinite; }
@keyframes a-slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(420%); } }
@keyframes a-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.a-top {
  position: sticky; top: 12px; z-index: 60;
  width: min(1200px, calc(100vw - 28px));
  margin: 14px auto 0;
  border-radius: 18px;
  border: 1px solid var(--hairline-2);
  background: rgba(9, 5, 17, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.a-top-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 9px 12px 9px 14px; }
.a-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); flex: none; justify-self: start; }
.a-logo-mark { width: 40px; height: 30px; display: grid; place-items: center; flex: none; transform-origin: 50% 85%; }
.a-logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 4px 10px rgba(180,132,255,.35)); }
.a-logo-mark.is-jumping { animation: a-logo-jump .65s cubic-bezier(.3, 1.35, .5, 1); }
@keyframes a-logo-jump {
  0%, 100% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-8px) scale(1.08, .94); }
  52% { transform: translateY(0) scale(.96, 1.04); }
  70% { transform: translateY(-3px) scale(1.03, .98); }
  86% { transform: translateY(0) scale(.99, 1.01); }
}
.a-logo b { font-family: var(--disp); font-size: 16px; letter-spacing: .04em; }
.a-nav { display: flex; align-items: center; justify-content: center; gap: 3px; justify-self: center; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.a-nav::-webkit-scrollbar { display: none; }
.a-nav a { flex: none; padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 500; transition: .16s ease; white-space: nowrap; }
.a-nav a:hover { color: var(--text); background: var(--fill-1); }
.a-nav a.active { color: var(--text); background: rgba(180,132,255,.14); box-shadow: inset 0 0 0 1px rgba(180,132,255,.22); }
.a-userbox { display: flex; align-items: center; gap: 9px; flex: none; justify-self: end; }
.a-user-profile { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--text); font-family: var(--body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.a-user-profile:hover .a-avatar { box-shadow: 0 0 0 2px rgba(180,132,255,.35); }
.a-user-profile.active .a-avatar { box-shadow: 0 0 0 2px var(--accent); }
.a-user-profile:active { transform: scale(.97); }
.a-bottomnav, .a-sheet, .a-sheet-back { display: none; }
.a-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: rgba(180,132,255,.15); display: grid; place-items: center; font-family: var(--disp); font-size: 12px; color: var(--accent); flex: none; }
.a-avatar img { width: 100%; height: 100%; object-fit: cover; }
.a-user-name { font-size: 12.5px; color: var(--text-2); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-iconbtn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--hairline-2); background: var(--fill-1); color: var(--text-2); cursor: pointer; transition: .16s ease; }
.a-iconbtn:hover { color: var(--text); background: var(--fill-2); }
.a-iconbtn svg { width: 16px; height: 16px; }
.a-login-link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; font-size: 12px; line-height: 1; color: #fff; text-decoration: none; padding: 0 11px; border-radius: 9px; background: linear-gradient(135deg, #2aabee, #229ed9); box-shadow: 0 6px 16px rgba(42,171,238,.2); font-weight: 700; white-space: nowrap; }
.a-login-link svg { width: 14px; height: 14px; flex: none; }
.a-login-link:hover { filter: brightness(1.06); }
.a-main { width: min(1200px, calc(100vw - 28px)); margin: 0 auto; padding: 26px 0 64px; flex: 1; }
.a-foot { width: min(1200px, calc(100vw - 28px)); margin: 0 auto; padding: 18px 2px 28px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.a-foot a { color: var(--text-2); text-decoration: none; }
.a-foot a:hover { color: var(--text); }
.a-foot > div { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.a-foot-links { gap: 16px !important; }
.hidden { display: none !important; }
.a-glass { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.a-kicker { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.a-kicker::before { content: ''; width: 16px; height: 1px; background: var(--accent); opacity: .6; }
.a-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 4px 0 20px; flex-wrap: wrap; }
.a-page-head h1 { font-family: var(--disp); font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.03em; line-height: 1.05; margin-top: 6px; }
.a-page-head p { color: var(--text-2); font-size: 13.5px; margin-top: 6px; max-width: 620px; }
.a-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font: 600 13px/1 var(--body); color: var(--text); background: var(--fill-2); cursor: pointer; text-decoration: none; transition: transform .12s ease, filter .15s ease, background .15s ease; white-space: nowrap; }
.a-btn svg { width: 16px; height: 16px; }
.a-btn:hover { filter: brightness(1.08); }
.a-btn:active { transform: scale(.98); }
.a-btn[disabled] { opacity: .5; pointer-events: none; }
.a-btn--primary { background: var(--violet-grad); color: #fff; box-shadow: 0 12px 30px rgba(123,60,255,.3); }
.a-btn--ghost { background: var(--fill-1); border-color: var(--hairline-2); }
.a-btn--soft { background: rgba(180,132,255,.12); border-color: rgba(180,132,255,.22); color: var(--text); }
.a-btn--danger { background: rgba(255,138,149,.12); border-color: rgba(255,138,149,.25); color: var(--red); }
.a-btn--sm { min-height: 32px; padding: 0 11px; border-radius: 9px; font-size: 12px; }
.a-btn--wide { width: 100%; }
.a-btn--link { background: none; border: none; padding: 0; min-height: 0; color: var(--accent); cursor: pointer; font-weight: 600; }
.a-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--fill-1); border: 1px solid var(--hairline); font-size: 11px; color: var(--text-2); }
.a-badge svg { width: 12px; height: 12px; }
.a-badge--ok { color: var(--green); border-color: rgba(126,226,168,.25); background: rgba(126,226,168,.08); }
.a-badge--warn { color: var(--amber); border-color: rgba(255,215,106,.25); background: rgba(255,215,106,.08); }
.a-badge--bad { color: var(--red); border-color: rgba(255,138,149,.25); background: rgba(255,138,149,.08); }
.a-muted { color: var(--text-2); }
.a-tiny { font-size: 11.5px; color: var(--text-3); }
.a-mono { font-family: var(--mono); }
.a-login { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(280px,.72fr); gap: 26px; align-items: stretch; min-height: calc(100svh - 230px); padding-top: clamp(10px, 4vh, 48px); }
.a-login-card { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.a-login-glow { position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(180,132,255,.3), transparent 65%); pointer-events: none; }
.a-login-mascot { width: 92px; margin-bottom: 16px; filter: drop-shadow(0 16px 30px rgba(123,60,255,.35)); }
.a-login-mascot img { width: 100%; }
.a-login-card h1 { font-family: var(--disp); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -.04em; margin: 12px 0 14px; }
.a-login-card h1 span { background: linear-gradient(110deg, var(--accent) 10%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.a-login-sub { color: var(--text-2); font-size: 14.5px; max-width: 460px; line-height: 1.65; }
.a-login-body { margin-top: 26px; }
.a-login-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.a-login-foot span { display: inline-flex; align-items: center; gap: 7px; }
.a-login-foot svg { width: 14px; height: 14px; color: var(--green); }
.a-login-foot a { color: var(--text-2); text-decoration: none; }
.a-login-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px; }
.a-login-side-head { padding: 0 6px 4px; }
.a-login-side-head h2 { font-family: var(--disp); font-size: 20px; line-height: 1.15; letter-spacing: -.03em; }
.a-login-side-head .a-kicker { display: block; margin-bottom: 6px; }
.a-login-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 2px; }
.a-login-facts > div { padding: 11px 8px; border-radius: 12px; border: 1px solid var(--hairline); background: rgba(255,255,255,.02); text-align: center; }
.a-login-facts b { display: block; font-family: var(--disp); font-size: 18px; color: var(--accent); }
.a-login-facts span { display: block; font-size: 10px; color: var(--text-3); margin-top: 2px; }
.a-login-point { display: flex; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--hairline); background: rgba(255,255,255,.025); }
.a-login-point > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(180,132,255,.12); color: var(--accent); flex: none; }
.a-login-point svg { width: 20px; height: 20px; }
.a-login-point b { font-size: 14px; }
.a-login-point p { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.a-tg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border-radius: 10px; background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; text-decoration: none; border: none; font: 700 12.5px/1 var(--body); cursor: pointer; box-shadow: 0 8px 18px rgba(42,171,238,.18); }
.a-tg-btn svg { width: 16px; height: 16px; flex: none; }
.a-tg-btn:hover { filter: brightness(1.06); }
.a-login-step { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.a-login-code { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.a-login-wait { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.a-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.16); border-top-color: var(--accent); animation: a-spin .8s linear infinite; flex: none; }
@keyframes a-spin { to { transform: rotate(360deg); } }
.a-login-error { font-size: 12.5px; color: var(--red); }
.a-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 16px; margin-bottom: 18px; }
.a-balance { position: relative; overflow: hidden; padding: 26px 26px 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; }
.a-balance::after { content: ''; position: absolute; width: 340px; height: 340px; right: -110px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(180,132,255,.28), transparent 62%); pointer-events: none; }
.a-balance-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.a-balance-label { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.a-balance-label svg { width: 15px; height: 15px; color: var(--accent); }
.a-balance-value { font-family: var(--disp); font-size: clamp(38px, 5.2vw, 60px); line-height: 1; letter-spacing: -.04em; margin: 18px 0 6px; }
.a-balance-value small { font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin-left: 8px; }
.a-balance-sub { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.a-balance-sub b { color: var(--text); font-weight: 600; }
.a-balance-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.a-side-stats { display: grid; grid-template-rows: repeat(2, minmax(0,1fr)); gap: 16px; }
.a-mini { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.a-mini-label { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.a-mini-label svg { width: 14px; height: 14px; color: var(--accent); }
.a-mini-value { font-family: var(--disp); font-size: 28px; letter-spacing: -.03em; margin-top: 8px; }
.a-mini-note { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

.a-grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.a-grid-2 > *, .a-side-stats > * { min-width: 0; }
.a-panel { padding: 20px; }
.a-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.a-panel-head h2 { font-family: var(--disp); font-size: 16px; letter-spacing: -.02em; display: flex; align-items: center; gap: 7px; min-width: 0; }
.a-panel-head h2 svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.a-link { color: var(--accent); text-decoration: none; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.a-link svg { width: 13px; height: 13px; }
.a-model-list { display: flex; flex-direction: column; gap: 8px; max-height: min(56svh, 480px); overflow: auto; padding-right: 2px; }
.a-model-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 13px; font: inherit; border-radius: 12px; border: 1px solid var(--hairline); background: rgba(255,255,255,.025); color: var(--text); text-align: left; cursor: pointer; }
.a-model-item:hover { border-color: rgba(180,132,255,.4); background: rgba(180,132,255,.06); }
.a-model-item.active { border-color: rgba(180,132,255,.55); background: rgba(180,132,255,.1); }
.a-model-info { min-width: 0; }
.a-model-info b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-model-info span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-model-badges { display: flex; align-items: center; gap: 5px; flex: none; }
.a-model-badge { font-family: var(--mono); font-size: 9.5px; color: var(--accent); background: rgba(180,132,255,.1); border: 1px solid rgba(180,132,255,.18); padding: 3px 6px; border-radius: 6px; }
.a-img-cost { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(180,132,255,.18); background: rgba(180,132,255,.07); }
.a-img-cost > span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.a-img-cost b { font-family: var(--mono); font-size: 12.5px; color: var(--text); text-align: right; }
.a-key-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 9px; min-width: 0; }
.a-key { padding: 12px; border-radius: 13px; border: 1px solid var(--hairline); background: rgba(255,255,255,.025); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.a-key-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.a-key-top > div { min-width: 0; }
.a-key-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-key-prefix { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-key-amount { font-family: var(--disp); font-size: 20px; letter-spacing: -.02em; }
.a-key-amount small { font-family: var(--body); font-size: 10.5px; color: var(--text-3); margin-left: 4px; }
.a-key-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.a-key-bar i { display: block; height: 100%; border-radius: 4px; background: var(--violet-grad); }
.a-key .a-tiny { font-size: 10.5px; }
.a-key .a-badge { padding: 3px 7px; font-size: 10px; }
.a-key-foot { display: flex; gap: 6px; flex-wrap: wrap; }
.a-key-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.a-key-actions .a-btn { min-height: 30px; padding: 0 8px; gap: 5px; font-size: 10.5px; }
.a-key-actions .a-btn svg { width: 13px; height: 13px; }
.a-empty { padding: 26px; text-align: center; color: var(--text-2); border: 1px dashed var(--hairline-2); border-radius: 16px; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.a-empty svg { width: 28px; height: 28px; color: var(--text-3); }
.a-empty-square { width: 42px; height: 42px; border-radius: 12px; border: 1px dashed var(--hairline-2); background: rgba(255,255,255,.015); }
.a-skel { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.045) 20%, rgba(255,255,255,.10) 40%, rgba(255,255,255,.045) 60%); background-size: 200% 100%; animation: a-skel-shimmer 1.35s linear infinite; }
@keyframes a-skel-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.a-skel-card { min-height: 168px; display: flex; flex-direction: column; }
.a-skel-title { width: min(300px, 72%); height: 34px; margin-top: 10px; }
.a-skel-sub { width: min(460px, 92%); height: 13px; margin-top: 12px; }
.a-skel-line { width: 100%; height: 12px; border-radius: 6px; margin-top: 12px; }
.a-skel-value { width: 58%; height: 42px; border-radius: 12px; margin-top: 18px; }
.a-skel-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 20px; }
.a-skel-btn { width: 118px; height: 40px; border-radius: 12px; }
.a-skel-box { height: 70px; border-radius: 14px; margin-top: 14px; }
.a-skel-row { height: 44px; border-radius: 10px; margin-top: 10px; }
.a-key-usage-skel { height: 16px; border-radius: 6px; margin-top: 2px; }
.a-user-skel { width: 34px; height: 34px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
  .a-skel { animation: none; }
}
.a-tx-list { display: flex; flex-direction: column; }
.a-tx { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.a-tx:last-child { border-bottom: none; }
.a-tx-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--fill-1); color: var(--text-2); flex: none; }
.a-tx-ico svg { width: 15px; height: 15px; }
.a-tx-ico.plus { color: var(--green); background: rgba(126,226,168,.08); }
.a-tx-ico.minus { color: var(--red); background: rgba(255,138,149,.07); }
.a-tx-main { flex: 1; min-width: 0; }
.a-tx-main b { font-size: 12.5px; display: block; }
.a-tx-main span { font-size: 11px; color: var(--text-3); display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-tx-amount { font-family: var(--mono); font-size: 12px; font-weight: 600; flex: none; }
.a-tx-amount.plus { color: var(--green); }
.a-tx-amount.minus { color: var(--red); }
.a-ref-list { display: flex; flex-direction: column; }
.a-ref-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.a-ref-row:last-child { border-bottom: none; }
.a-ref-ava { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: rgba(180,132,255,.14); display: grid; place-items: center; font-family: var(--disp); font-size: 13px; color: var(--accent); flex: none; }
.a-ref-ava img { width: 100%; height: 100%; object-fit: cover; }
.a-ref-main { flex: 1; min-width: 0; }
.a-ref-main b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-ref-main span { display: block; margin-top: 2px; font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-ref-meta { display: flex; align-items: center; gap: 8px; flex: none; font-size: 11px; color: var(--text-3); }
.a-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.a-package { position: relative; padding: 14px; border-radius: 14px; border: 1px solid var(--hairline-2); background: rgba(255,255,255,.025); cursor: pointer; transition: .16s ease; text-align: left; color: var(--text); }
.a-package:hover { border-color: rgba(180,132,255,.4); background: rgba(180,132,255,.06); transform: translateY(-1px); }
.a-package b { display: block; font-family: var(--disp); font-size: 18px; letter-spacing: -.02em; }
.a-package span { font-size: 11.5px; color: var(--text-2); }
.a-package em { position: absolute; right: 9px; top: 9px; font-style: normal; font-size: 10px; color: var(--green); background: rgba(126,226,168,.1); border-radius: 6px; padding: 2px 5px; }
.a-form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.a-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 120px; }
.a-field label { font-size: 11px; color: var(--text-3); }
.a-input, .a-select { width: 100%; height: 42px; border-radius: 11px; border: 1px solid var(--hairline-2); background: rgba(8,5,14,.55); color: var(--text); padding: 0 12px; font: 500 13px var(--body); outline: none; }
.a-input:focus, .a-select:focus { border-color: rgba(180,132,255,.5); box-shadow: 0 0 0 3px rgba(180,132,255,.1); }
.a-textarea { min-height: 96px; padding: 10px 12px; resize: vertical; }
.a-note { font-size: 11.5px; color: var(--text-3); line-height: 1.55; }
.a-divider { height: 1px; background: var(--hairline); margin: 16px 0; }
.a-profile { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0,1.1fr); gap: 16px; }
.a-profile-head { display: flex; align-items: center; gap: 14px; }
.a-profile-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: rgba(180,132,255,.14); display: grid; place-items: center; font-family: var(--disp); font-size: 22px; color: var(--accent); }
.a-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.a-profile-name { font-family: var(--disp); font-size: 22px; }
.a-profile-id { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 3px; }
.a-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.a-fact { padding: 13px; border-radius: 12px; background: var(--fill-1); border: 1px solid var(--hairline); }
.a-fact em { display: block; font-style: normal; font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.a-fact b { display: block; font-size: 13px; margin-top: 4px; }
.a-referral-link { display: flex; gap: 8px; align-items: center; }
.a-referral-link .a-input { font-family: var(--mono); font-size: 11.5px; }
.a-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.a-stat-row .a-fact b { font-family: var(--disp); font-size: 20px; }
.a-promo-status { margin-top: 12px; }
.a-modal-back { position: fixed; inset: 0; z-index: 150; background: rgba(4,2,8,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; }
.a-modal { width: min(520px, 100%); max-height: calc(100svh - 36px); overflow: auto; border-radius: 20px; border: 1px solid var(--hairline-2); background: #120a1c; box-shadow: 0 30px 90px rgba(0,0,0,.6); padding: 22px; }
.a-modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.a-modal-head h3 { font-family: var(--disp); font-size: 20px; letter-spacing: -.02em; }
.a-modal-head p { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.a-modal-close { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--hairline-2); background: var(--fill-1); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.a-modal-close svg { width: 15px; height: 15px; }
.a-modal-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.a-order-summary { padding: 14px; border-radius: 13px; background: var(--fill-1); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 8px; }
.a-order-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.a-order-row span { color: var(--text-2); }
.a-order-row b { font-weight: 600; }
.a-pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.a-pay { padding: 13px; border-radius: 12px; border: 1px solid var(--hairline-2); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; text-align: left; }
.a-pay:hover { border-color: rgba(180,132,255,.4); background: rgba(180,132,255,.06); }
.a-pay b { display: block; font-size: 13px; }
.a-pay span { font-size: 10.5px; color: var(--text-3); }
.a-key-reveal { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.a-key-reveal code { flex: 1; font-family: var(--mono); font-size: 11.5px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--hairline-2); background: rgba(8,5,14,.6); overflow-x: auto; white-space: nowrap; }
.a-wait-box { margin-top: 14px; padding: 14px; border-radius: 13px; border: 1px solid rgba(180,132,255,.25); background: rgba(180,132,255,.06); display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.a-wait-row { display: flex; align-items: center; gap: 9px; }
.a-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.a-toast { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hairline-2); background: #150c22; color: var(--text); font-size: 12.5px; box-shadow: 0 14px 40px rgba(0,0,0,.45); animation: a-toast-in .2s ease both; display: flex; gap: 8px; align-items: flex-start; }
.a-toast.ok { border-color: rgba(126,226,168,.3); }
.a-toast.err { border-color: rgba(255,138,149,.3); }
.a-toast svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.a-toast.ok svg { color: var(--green); }
.a-toast.err svg { color: var(--red); }
@keyframes a-toast-in { from { opacity: 0; transform: translateY(8px); } }
.a-keys-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.a-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.a-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.a-search .a-input { padding-left: 38px; }
.a-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.a-stat-logs { display: flex; flex-direction: column; gap: 4px; }
.a-stat-log { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: var(--fill-1); border: 1px solid var(--hairline); font-size: 11.5px; }
.a-stat-log b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-stat-log .a-badge { flex: none; }
.a-stat-log .a-tiny { margin-left: auto; }
.a-topup-mini { display: flex; flex-direction: column; }
.a-topup-get { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(180,132,255,.07); border: 1px solid rgba(180,132,255,.18); font-size: 12.5px; color: var(--text-2); }
.a-topup-get svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.a-topup-get b { color: var(--text); }
.a-topup-tabs { display: inline-flex; padding: 4px; gap: 3px; border-radius: 12px; background: var(--fill-1); border: 1px solid var(--hairline); }
.a-tab { border: none; background: none; color: var(--text-2); padding: 8px 16px; border-radius: 9px; font: 600 12.5px var(--body); cursor: pointer; transition: .15s; }
.a-tab.active { background: var(--violet-grad); color: #fff; box-shadow: 0 6px 18px rgba(123,60,255,.3); }
.a-topup-preview { margin-top: 14px; padding: 16px; border-radius: 14px; background: rgba(180,132,255,.06); border: 1px solid rgba(180,132,255,.2); display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 72px; justify-content: center; text-align: center; }
.a-topup-get-big { font-family: var(--disp); font-size: 30px; letter-spacing: -.03em; }
.a-topup-get-big small { font-family: var(--body); font-size: 11.5px; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
.a-topup-get-sub { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.a-promo-inline { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.a-promo-inline .a-input { flex: 1; }
.a-pay { display: flex; align-items: center; gap: 11px; padding: 12px; }
.a-pay-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden; }
.a-pay-logo-svg { width: 36px; height: 36px; display: block; }
.a-pay-info { display: flex; flex-direction: column; min-width: 0; }
.a-pay-info b { font-size: 13px; }
.a-pay-info span { font-size: 10.5px; color: var(--text-3); }
.a-api-base { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; background: rgba(8,5,14,.6); border: 1px solid var(--hairline-2); margin-bottom: 10px; }
.a-api-base span { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; flex: none; }
.a-api-base code { font-family: var(--mono); font-size: 12px; color: var(--accent); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-api-endpoints { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.a-api-endpoints > div { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.a-api-endpoints code, .a-md-code { font-family: var(--mono); font-size: 11.5px; color: #d9c2ff; }
.a-method { font: 700 9.5px var(--mono); letter-spacing: .04em; padding: 3px 6px; border-radius: 5px; min-width: 38px; text-align: center; }
.a-method.get { color: var(--green); background: rgba(126,226,168,.1); }
.a-method.post { color: #7ab8ff; background: rgba(100,174,255,.12); }
.a-quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 10px; }
.a-quick-links a { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 13px; background: var(--fill-1); border: 1px solid var(--hairline); text-decoration: none; color: var(--text); transition: .16s ease; }
.a-quick-links a:hover { border-color: rgba(180,132,255,.4); background: rgba(180,132,255,.06); }
.a-quick-links svg { width: 18px; height: 18px; color: var(--accent); margin-bottom: 4px; }
.a-quick-links b { font-size: 13px; }
.a-quick-links span { font-size: 11px; color: var(--text-3); }
.a-ai-tabs { display: inline-flex; gap: 3px; padding: 4px; border-radius: 12px; background: var(--fill-1); border: 1px solid var(--hairline); }
.a-ai-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: 600 12px/1 var(--body); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.a-ai-tab svg { width: 14px; height: 14px; }
.a-ai-tab:hover { color: var(--text); }
.a-ai-tab:active { transform: scale(.97); }
.a-ai-tab.active { color: var(--text); background: rgba(180,132,255,.16); box-shadow: inset 0 0 0 1px rgba(180,132,255,.25); }
.a-chat-layout { display: grid; grid-template-columns: 274px minmax(0,1fr); gap: 14px; height: min(72svh, 720px); min-height: 520px; }
.a-chat-side { display: flex; flex-direction: column; overflow: hidden; padding: 10px; }
.a-chat-side-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.a-chat-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; }
.a-chat-row { position: relative; text-align: left; border: 1px solid transparent; background: transparent; color: var(--text); border-radius: 10px; padding: 8px 26px 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; transition: .14s; }
.a-chat-row:hover { background: var(--fill-1); }
.a-chat-row.active { background: rgba(180,132,255,.12); border-color: rgba(180,132,255,.22); }
.a-chat-row b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-chat-row span { font-size: 10px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-chat-del { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: none; place-items: center; border-radius: 7px; color: var(--text-3); }
.a-chat-row:hover .a-chat-del { display: grid; }
.a-chat-del:hover { color: var(--red); background: rgba(255,138,149,.1); }
.a-chat-del svg { width: 13px; height: 13px; }
.a-chat-main { display: flex; flex-direction: column; overflow: hidden; }
.a-chat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.a-chat-title { font-family: var(--disp); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 100px; }
.a-chat-controls { display: flex; gap: 7px; flex-wrap: wrap; }
.a-chat-controls .a-select { height: 34px; font-size: 11.5px; max-width: 210px; padding: 0 9px; }
.a-chat-messages { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.a-chat-welcome { margin: auto; text-align: center; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; }
.a-chat-orb { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(180,132,255,.12); border: 1px solid rgba(180,132,255,.25); color: var(--accent); margin-bottom: 6px; }
.a-chat-orb svg { width: 28px; height: 28px; }
.a-chat-welcome h3 { font-family: var(--disp); font-size: 24px; letter-spacing: -.02em; }
.a-chat-welcome p { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.a-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.a-chat-chips button { border: 1px solid var(--hairline-2); background: var(--fill-1); color: var(--text-2); border-radius: 999px; padding: 7px 11px; font-size: 11px; cursor: pointer; }
.a-chat-chips button:hover { color: var(--text); border-color: rgba(180,132,255,.35); }
.a-msg { display: flex; gap: 10px; align-items: flex-start; }
.a-msg.user { flex-direction: row-reverse; }
.a-msg-ava { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; font-family: var(--disp); font-size: 11px; background: rgba(180,132,255,.13); color: var(--accent); }
.a-msg.user .a-msg-ava { background: var(--violet-grad); color: #fff; }
.a-msg-body { max-width: min(760px, 88%); min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.a-msg.user .a-msg-body { align-items: flex-end; }
.a-msg-text { padding: 11px 14px; border-radius: 14px; background: var(--fill-1); border: 1px solid var(--hairline); font-size: 13px; line-height: 1.62; word-wrap: break-word; overflow-wrap: anywhere; }
.a-msg.user .a-msg-text { background: rgba(180,132,255,.13); border-color: rgba(180,132,255,.22); }
.a-msg-text p { margin: 0 0 8px; }
.a-msg-text p:last-child { margin-bottom: 0; }
.a-msg-text a { color: var(--accent); }
.a-md-pre { font-family: var(--mono); font-size: 11.5px; line-height: 1.55; padding: 11px 13px; border-radius: 11px; background: rgba(0,0,0,.35); border: 1px solid var(--hairline); overflow-x: auto; margin: 8px 0; white-space: pre; }
.a-md-pre code { color: #e6ddff; font-family: var(--mono); }
.a-md-code { font-family: var(--mono); font-size: 12px; background: rgba(180,132,255,.1); border-radius: 5px; padding: 1px 5px; color: #e6ddff; }
.a-reason { border: 1px solid var(--hairline); border-radius: 10px; background: rgba(255,255,255,.02); font-size: 11.5px; color: var(--text-3); padding: 7px 10px; }
.a-reason summary { cursor: pointer; }
.a-reason div { margin-top: 6px; line-height: 1.5; }
.a-cursor { display: inline-block; width: 7px; height: 14px; background: var(--accent); border-radius: 2px; margin-left: 2px; vertical-align: -2px; animation: a-blink 1s step-end infinite; }
@keyframes a-blink { 50% { opacity: 0; } }
.a-chat-composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--hairline); }
.a-chat-composer .a-textarea { min-height: 64px; max-height: 160px; resize: none; padding: 12px 13px; font-size: 13.5px; line-height: 1.5; }
.a-chat-send { width: 44px; min-width: 44px; height: 44px; padding: 0; border-radius: 12px; }
.a-chat-send svg { width: 18px; height: 18px; }
.a-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.a-img-card { padding: 0; border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; background: var(--fill-1); cursor: pointer; color: var(--text); text-align: left; transition: .16s; }
.a-img-card:hover { border-color: rgba(180,132,255,.4); transform: translateY(-1px); }
.a-img-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #0d0815; }
.a-img-card span { display: block; padding: 9px 11px; font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-img-full { border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); background: #0b0712; }
.a-img-full img { width: 100%; max-height: 62svh; object-fit: contain; display: block; }
@media (max-width: 980px) {
  .a-top-inner { gap: 10px; }
  .a-nav a { padding: 8px 9px; font-size: 12px; }
  .a-user-name { display: none; }
  .a-login { grid-template-columns: 1fr; min-height: 0; }
  .a-login-side { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .a-login-side-head { flex: 1 1 100%; }
  .a-login-facts { flex: 1 1 100%; }
  .a-login-point { flex: 1 1 220px; }
  .a-hero-grid { grid-template-columns: 1fr; }
  .a-side-stats { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .a-grid-2, .a-profile { grid-template-columns: 1fr; }
  .a-chat-layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .a-chat-side { max-height: 220px; }
  .a-chat-main { min-height: 520px; }
}
@media (max-width: 760px) {
  body.a-body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }

  .a-top { top: 0; width: 100%; margin: 0; border-radius: 0 0 18px 18px; border-left: 0; border-right: 0; border-top: 0; }
  .a-top-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; flex-wrap: nowrap; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
  .a-logo { flex: 1; min-width: 0; }
  .a-logo-mark { width: 34px; height: 26px; }
  .a-logo b { font-size: 15px; letter-spacing: .03em; }
  .a-userbox { gap: 5px; }
  .a-user-profile { gap: 0; min-width: 38px; min-height: 38px; justify-content: center; }
  .a-avatar { width: 34px; height: 34px; }
  .a-userbox .a-iconbtn { width: 36px; height: 36px; }
  .a-user-name { display: none; }
  .a-nav { display: none; }

  .a-bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(9, 5, 17, .96);
    border-top: 1px solid var(--hairline-2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 0 -14px 40px rgba(0,0,0,.45);
  }
  .a-bn-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 50px; padding: 4px 2px; border: 0; border-radius: 12px;
    background: none; color: var(--text-3); text-decoration: none;
    font: 600 10px/1 var(--body); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .a-bn-item svg { width: 20px; height: 20px; }
  .a-bn-item.active { color: var(--accent); background: rgba(180,132,255,.11); }
  .a-bn-item:active { transform: scale(.96); }

  .a-sheet-back {
    display: block; position: fixed; inset: 0; z-index: 130;
    background: rgba(4,2,8,.64); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity .22s ease;
  }
  .a-sheet-back.open { opacity: 1; pointer-events: auto; }
  .a-sheet {
    display: block; position: fixed; left: 8px; right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 140;
    max-height: 78svh; overflow: auto; padding: 10px 12px 14px;
    border-radius: 22px; border: 1px solid var(--hairline-2);
    background: #120a1c; box-shadow: 0 30px 90px rgba(0,0,0,.65);
    transform: translateY(calc(100% + 30px)); visibility: hidden;
    transition: transform .26s cubic-bezier(.2,.9,.25,1), visibility .26s;
  }
  .a-sheet.open { transform: none; visibility: visible; }
  .a-sheet-grab { width: 42px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.15); margin: 2px auto 8px; }
  .a-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 10px; }
  .a-sheet-head b { font-family: var(--disp); font-size: 16px; letter-spacing: -.02em; }
  .a-sheet-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .a-sheet-item {
    display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 0 12px;
    border-radius: 14px; border: 1px solid var(--hairline); background: var(--fill-1);
    color: var(--text-2); text-decoration: none; font: 600 13px var(--body);
    -webkit-tap-highlight-color: transparent;
  }
  .a-sheet-item svg { width: 19px; height: 19px; flex: none; }
  .a-sheet-item span { flex: 1; min-width: 0; }
  .a-sheet-item svg:last-child { width: 14px; height: 14px; color: var(--text-3); }
  .a-sheet-item.active { color: var(--text); background: rgba(180,132,255,.14); border-color: rgba(180,132,255,.3); }
  .a-sheet-item:active { transform: scale(.985); }

  .a-main { width: calc(100vw - 24px); padding: 16px 0 34px; }
  .a-foot { width: calc(100vw - 24px); flex-direction: column; padding-bottom: 8px; font-size: 11px; }
  .a-foot-links { gap: 10px 14px !important; }

  .a-page-head { align-items: stretch; gap: 10px; margin: 0 0 16px; }
  .a-page-head > div:first-child { min-width: 0; }
  .a-page-head h1 { font-size: 26px; line-height: 1.08; }
  .a-page-head p { font-size: 12.5px; line-height: 1.5; }
  .a-head-actions { width: 100%; }
  .a-head-actions .a-btn, .a-head-actions .a-link { flex: 1 1 140px; min-height: 42px; justify-content: center; }
  .a-head-actions .a-ai-tabs { flex: 1 1 100%; }
  .a-ai-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .a-ai-tab { min-height: 40px; }
  .a-panel { padding: 16px; }
  .a-panel-head { margin-bottom: 12px; }
  .a-panel-head h2 { font-size: 15px; }
  .a-hero-grid, .a-grid-2, .a-profile { gap: 12px; }
  .a-side-stats { gap: 10px; }
  .a-mini { padding: 14px; }

  .a-balance { padding: 18px; }
  .a-balance-value { font-size: 36px; }
  .a-balance-sub { gap: 6px 10px; font-size: 11px; }
  .a-balance-actions { flex-direction: column; margin-top: 16px; }
  .a-balance-actions .a-btn { width: 100%; min-height: 44px; }

  .a-btn { min-height: 44px; font-size: 13.5px; }
  .a-btn--sm { min-height: 38px; font-size: 12.5px; }
  .a-input, .a-select { height: 46px; font-size: 16px; }
  .a-textarea { font-size: 16px; }
  .a-form-row { gap: 9px; }
  .a-form-row > .a-field { flex: 1 1 100%; max-width: none !important; }
  .a-form-row > .a-select, .a-form-row > .a-btn { flex: 1 1 100%; }
  .a-form-row > .a-btn--sm { flex: 1 1 calc(50% - 5px); min-height: 40px; }

  .a-keys-toolbar { gap: 8px; }
  .a-search { flex: 1 1 100%; max-width: none; }
  .a-key-grid { grid-template-columns: 1fr; }
  .a-key-actions { display: grid; grid-template-columns: 1fr; }
  .a-key-actions .a-btn { width: 100%; min-height: 42px; }
  .a-stat-row, .a-facts { grid-template-columns: 1fr 1fr; }
  .a-stat-log { flex-wrap: wrap; }
  .a-stat-log .a-tiny { width: 100%; margin-left: 0; }
  .a-ref-row { gap: 10px; }
  .a-ref-ava { width: 34px; height: 34px; }
  .a-ref-meta { flex-direction: column; align-items: flex-end; gap: 3px; }
  .a-ref-meta > span:first-child { font-size: 10px; }

  .a-pay-methods { grid-template-columns: 1fr; }
  .a-topup-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .a-tab { width: 100%; min-height: 42px; }
  .a-promo-inline { flex-direction: column; align-items: stretch; }
  .a-promo-inline .a-btn { width: 100%; }
  .a-topup-get-big { font-size: 27px; }

  .a-modal-back { align-items: flex-end; padding: 0; }
  .a-modal { width: 100%; max-height: 92svh; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .a-modal-head { margin-bottom: 13px; }
  .a-modal-head h3 { font-size: 18px; }
  .a-modal-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .a-modal-actions .a-btn { width: 100%; min-height: 46px; white-space: normal; }
  .a-model-list { max-height: 58svh; }
  .a-img-cost { align-items: flex-start; flex-direction: column; gap: 5px; }
  .a-img-cost b { text-align: left; }
  .a-key-reveal { flex-direction: column; align-items: stretch; }
  .a-key-reveal .a-btn { width: 100%; }
  .a-order-row { font-size: 12px; gap: 8px; }

  .a-toasts { left: 10px; right: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); max-width: none; }

  .a-chat-layout { display: flex; flex-direction: column; gap: 10px; height: auto; min-height: 0; }
  .a-chat-side { max-height: none; padding: 8px; }
  .a-chat-side-head { padding: 2px 4px 8px; }
  .a-chat-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; }
  .a-chat-row { flex: 0 0 140px; padding: 7px 22px 7px 9px; border: 1px solid var(--hairline); }
  .a-chat-del { display: grid; }
  .a-chat-main { min-height: 60svh; }
  .a-chat-top { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  .a-chat-controls { width: 100%; }
  .a-chat-controls .a-select { flex: 1 1 0; min-width: 0; max-width: none; height: 38px; font-size: 12px; }
  .a-chat-messages { padding: 14px 10px; gap: 12px; }
  .a-msg-body { max-width: calc(100% - 40px); }
  .a-msg-text { font-size: 13px; padding: 10px 12px; }
  .a-chat-composer { padding: 8px; }
  .a-chat-composer .a-textarea { min-height: 70px; font-size: 16px; }
  .a-chat-send { width: 46px; min-width: 46px; height: 46px; }

  .a-img-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .a-img-card span { padding: 8px; font-size: 10.5px; }
  .a-api-base code { font-size: 11px; }
  .a-quick-links { grid-template-columns: 1fr; }

  .a-login-card { padding: 24px 20px; }
  .a-login-side { display: none; }
}
