.acc { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.acc-btn {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--ui-bg-hover); border: 1px solid var(--ui-border); color: var(--ui-text);
    font-family: var(--ui-font); font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: border-color .15s, background .15s; opacity: .9;
}
.acc-alert {
    position: absolute; top: -6px; right: -6px; z-index: 2; min-width: 14px; height: 14px; padding: 0 3px;
    border-radius: 4px; background: var(--ui-danger-text); color: var(--ui-bg-deep);
    font-size: 9px; font-weight: 700; line-height: 14px; text-align: center; letter-spacing: 0; pointer-events: none;
}
.acc-actions .acc-secondary.acc-alert-link, .acc-mrow .acc-secondary.acc-alert-link { color: var(--ui-danger-text); border-color: var(--ui-danger-text); }
.acc-btn:hover, .acc.open .acc-btn { border-color: var(--ui-accent); background: var(--ui-accent-glow); opacity: 1; }
.acc-btn:focus-visible { outline: 2px solid var(--ui-accent-hover); outline-offset: 2px; }

.acc-menu {
    position: absolute; top: calc(100% + 8px); right: 0; width: 272px;
    background: var(--ui-bg); border: 1px solid var(--ui-border); border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow); padding: 12px; display: none; flex-direction: column; gap: 10px;
    z-index: 10001; font-family: var(--ui-font); font-size: 12px; color: var(--ui-text);
}
.acc.open .acc-menu { display: flex; }

.acc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ui-border); }
.acc-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: var(--ui-accent-glow); border: 1px solid var(--ui-accent); color: var(--ui-text);
    font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.acc-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acc-tag {
    font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 1px 6px; border-radius: 3px;
    border: 1px solid var(--ui-accent); color: var(--ui-accent-hover); background: var(--ui-accent-glow);
}
.acc-tag-root { border-color: #e0b15a; color: #e0b15a; background: rgba(224, 177, 90, .1); }

.acc-row { display: flex; justify-content: space-between; gap: 10px; line-height: 1.4; }
.acc-k { color: var(--ui-text-muted); flex-shrink: 0; }
.acc-v { color: var(--ui-text); text-align: right; }
.acc-v.warn, .acc-mval.warn { color: #e0b15a; }
.acc-v.ok, .acc-mval.ok { color: var(--ui-accent-hover); }

.acc-balance { padding-top: 10px; border-top: 1px solid var(--ui-border); display: flex; flex-direction: column; gap: 6px; }
.acc-bal-title { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ui-text-muted); }
.acc-bal-head { font-size: 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acc-big { color: var(--ui-text); font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.acc-big.warn { color: #e0b15a; }
.acc-big.over { color: #e05a5a; }
.acc-big.acc-inf { font-size: 14px; color: var(--ui-accent-hover); }
.acc-bar { height: 4px; border-radius: 2px; background: var(--ui-bg-input); overflow: hidden; }
.acc-bar-fill { height: 100%; background: var(--ui-accent); transition: width .3s; }
.acc-bar-fill.warn { background: #e0b15a; }
.acc-bar-fill.over { background: #e05a5a; }
.acc-bal-foot { font-size: 11px; color: var(--ui-text-dim); }
.acc-hint { color: var(--ui-text-dim); }
.acc-muted { color: var(--ui-text-muted); }
.acc-small { font-size: 10px; }
.acc-err { color: var(--ui-danger-text); font-size: 11px; }
.acc-note { font-size: 12px; line-height: 1.5; }

.acc-actions { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--ui-border); }
.acc-primary, .acc-secondary {
    display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none;
    padding: 8px 10px; border-radius: var(--ui-radius-sm); font-family: var(--ui-font); font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.acc-primary { background: var(--ui-accent); border: 1px solid var(--ui-accent); color: #fff; }
.acc-primary:hover { background: var(--ui-accent-hover); }
.acc-secondary { background: transparent; border: 1px solid var(--ui-border); color: var(--ui-text-dim); }
.acc-secondary:hover { color: var(--ui-text); border-color: var(--ui-text-muted); }
.acc-secondary.acc-inline { display: inline-block; width: auto; padding: 4px 10px; font-size: 11px; }
.acc-balance .acc-topup { margin-top: 4px; }
.acc-balance .acc-topup.acc-topup-now { border-color: var(--ui-accent); color: var(--ui-text); }
.acc-balance .acc-topup.acc-topup-now:hover { background: var(--ui-accent); color: #fff; }
.acc-pkgs-wrap { transition: box-shadow .4s ease; border-radius: var(--ui-radius-sm); }
.acc-pkgs-wrap.acc-pkgs-flash { box-shadow: 0 0 0 2px var(--ui-accent); }

.acc-modal {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
}
.acc-modal .acc-window {
    width: min(860px, 92vw);
    max-width: calc(100vw - 40px);
    height: min(680px, 88vh);
    max-height: 88vh;
    display: flex; flex-direction: column; overflow: hidden;
}
.acc-window .settings-header { flex: 0 0 auto; }
.acc-window .settings-body { flex: 1; min-height: 0; }

.acc-body-tabs {
    display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px;
    align-items: stretch; height: 100%; min-height: 0; overflow: hidden;
}
.acc-tabs { display: flex; flex-direction: column; gap: 2px; align-self: start; }
.acc-tab {
    text-align: left; padding: 8px 10px; border: none; border-radius: var(--ui-radius-sm);
    background: transparent; color: var(--ui-text-dim); font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background .14s, color .14s;
}
.acc-tab:hover { background: var(--ui-bg-hover); color: var(--ui-text); }
.acc-tab.on { background: var(--ui-bg-deep); color: var(--ui-text); }
.acc-tab-body { min-width: 0; min-height: 0; overflow-y: auto; }
.acc-tab-body.acc-tab-journal { overflow: hidden; display: flex; flex-direction: column; }

.aim { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.aim-status {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px;
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius);
    background: var(--ui-bg-deep); font-size: 12px; color: var(--ui-text);
}
.aim-dot {
    flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ui-live);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-live) 20%, transparent);
}
.aim-status-text { flex: 1 1 auto; min-width: 0; line-height: 1.45; }
.aim-status.warn .aim-dot { background: var(--ui-danger-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-danger-text) 20%, transparent); }
.aim-status.warn .aim-status-text { color: var(--ui-danger-text); }
.aim-link {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
    background: transparent; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm);
    color: var(--ui-text-dim); font: inherit; font-size: 11px; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: color .14s, border-color .14s, background .14s;
}
.aim-link:hover { color: var(--ui-text); border-color: var(--ui-text-muted); background: var(--ui-bg-hover); }
.aim-head .settings-section-label { margin-top: 2px; }
.aim-seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--ui-radius-sm); background: rgba(0, 0, 0, 0.22); border: 1px solid var(--ui-border); }
.aim-seg button {
    height: 28px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 600; color: var(--ui-text-dim);
}
.aim-seg button:hover { color: var(--ui-text); }
.aim-seg button.on { background: rgba(255, 255, 255, 0.10); color: var(--ui-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.aim-hint { font-size: 11px; color: var(--ui-text-dim); line-height: 1.5; margin: 0; }
.aim-list { display: flex; flex-direction: column; gap: 2px; }
.aim-item {
    display: grid; grid-template-columns: 28px 110px minmax(0, 1fr); align-items: center; column-gap: 12px;
    padding: 8px 6px; border-radius: var(--ui-radius-sm);
}
.aim-item:has(.aim-pin.tbtn-blue) { background: rgba(255, 255, 255, 0.04); }
.aim-item[data-kind="review"] { margin-top: 10px; border-top: 1px solid var(--ui-border); border-radius: 0; padding-top: 18px; }
.aim-item-sub { padding-top: 0; }
.aim-item-sub .aim-label { color: var(--ui-text-dim); font-size: 11px; }
.aim-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; box-sizing: border-box; border-radius: var(--ui-radius-sm); border: 1px solid var(--ui-border); background: rgba(255, 255, 255, 0.03); color: var(--ui-text-muted); }
.aim-item-sub .aim-ico { border: 0; background: none; }
.aim-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ui-text); margin: 0; }
.aim-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.aim-state { flex: 0 0 150px; font-size: 11px; color: var(--ui-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aim-state.on { color: var(--ui-accent-hover, var(--ui-accent)); }
.aim-item-sub .aim-row::after { content: ""; flex: 0 0 188px; }
.aim-sel { flex: 1; min-width: 0; }
.aim-row > .aim-picker { flex: 1; min-width: 0; }
.aim-row > .aim-picker > .aim-sel { flex: 1 1 auto; }
.aim-native {
    box-sizing: border-box; height: 32px; padding: 0 8px; font: inherit; font-size: 12px;
    background: var(--ui-bg-input); color: var(--ui-text);
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm);
}
.aim-native:hover { border-color: var(--ui-text-muted); }
.aim-native:focus, .aim-native:focus-visible { outline: none; border-color: var(--ui-border-focus); }
.aim-native option { background: var(--ui-bg-deep); color: var(--ui-text); }
.aim-mono { font-family: var(--ui-font-code); }
.aim-pin { flex: 0 0 auto; width: 30px; height: 30px; padding: 0 !important; display: inline-grid; place-items: center; line-height: 0; }
.aim-foot { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.aim-test { flex: 1 1 240px; min-width: 0; padding-top: 5px; font-size: 11px; color: var(--ui-text-dim); line-height: 1.5; max-height: 120px; overflow-y: auto; }
.aim-test:empty { display: none; }
.aim-test.good { color: var(--ui-live); }
.aim-test.bad  { color: var(--ui-danger-text); }

.acc-act {
    flex: 1; min-height: 0; display: flex; flex-direction: column;
}
.acc-act {
    --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70;
    --viz-4: #c98500; --viz-5: #d55181; --viz-6: #008300;
}
.acc-act-cap { font-size: 10.5px; color: var(--ui-text-muted); margin-bottom: 7px; }
.acc-dist {
    display: flex; gap: 2px;
    height: 8px; margin-bottom: 10px; border-radius: 4px; overflow: visible;
}
.acc-bar-seg { min-width: 3px; border-radius: 2px; transition: opacity .14s; }
.acc-bar-seg:first-child { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.acc-bar-seg:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.acc-bar-seg.dim { opacity: .28; }
.acc-bar-empty { flex: 1; border-radius: 4px; background: var(--ui-bg-deep); }
.acc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.acc-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px; border-radius: 999px;
    border: 1px solid var(--ui-border); background: transparent;
    color: var(--ui-text-dim); font-size: 11px; cursor: pointer; white-space: nowrap;
    transition: background .14s, color .14s, border-color .14s;
}
.acc-chip:hover { background: var(--ui-bg-hover); color: var(--ui-text); }
.acc-chip.on { background: var(--ui-bg-deep); color: var(--ui-text); border-color: var(--ui-text-muted); }
.acc-chip-dot { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.acc-chip-n { color: var(--ui-text-muted); font-variant-numeric: tabular-nums; }

.acc-act-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.acc-act-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.acc-act-table thead th {
    position: sticky; top: 0; z-index: 1; background: var(--ui-bg);
    text-align: left; padding: 0 10px 6px 0; font-size: 10px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; color: var(--ui-text-muted);
}
.acc-act-table th.num, .acc-act-table td.num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-act-table td { padding: 7px 10px 7px 0; border-top: 1px solid var(--ui-border); color: var(--ui-text-dim); vertical-align: middle; }
.acc-act-when { white-space: nowrap; color: var(--ui-text-muted); }
.acc-act-kind {
    display: inline-block; padding: 2px 6px; border-radius: 4px;
    background: var(--ui-bg-deep); color: var(--ui-text-muted);
    font-size: 9.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.acc-act-model { color: var(--ui-text); overflow-wrap: anywhere; display: flex; align-items: center; gap: 7px; }
.acc-act-model .acc-chip-dot { margin-top: 0; }
.acc-act-none { color: var(--ui-text-muted); }

.acc-act-foot {
    flex: 0 0 auto; display: flex; align-items: baseline; justify-content: space-between;
    gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ui-border);
}
.acc-act-foot-l { font-size: 11px; color: var(--ui-text-muted); }
.acc-act-foot-r { font-size: 11px; color: var(--ui-text-muted); display: flex; align-items: baseline; gap: 8px; }
.acc-act-total { font-size: 16px; font-weight: 700; color: var(--ui-text); font-variant-numeric: tabular-nums; }
.acc-act-link { margin-top: 10px; align-self: flex-start; }

@media (max-width: 760px) {
    .acc-modal .acc-window { width: 96vw; max-width: 96vw; height: min(680px, 92vh); max-height: 92vh; }
    .acc-body-tabs { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
    .acc-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .acc-tab { flex: 0 0 auto; }
    .acc-side { flex-direction: row; align-items: center; gap: 8px; }
    .acc-side .acc-tabs { flex: 1 1 auto; min-width: 0; }
    .acc-side-out { flex: 0 0 auto; margin: 0; }
    .aim-item { grid-template-columns: 28px minmax(0, 1fr); row-gap: 6px; }
    .aim-item > .aim-row { grid-column: 1 / -1; }
    .aim-state { flex: 0 1 auto; }
    .aim-item-sub .aim-row::after { content: none; }
    .acc-act-table .col-kind { display: none; }
    .acc-act-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.acc-mrow .acc-mval { font-family: var(--ui-font); font-size: 12px; color: var(--ui-text); text-align: right; }
.acc-balance-modal { border-top: none; padding-top: 4px; }
.acc-form { display: flex; flex-direction: column; gap: 10px; }
.acc-label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--ui-text-dim); }
.acc-label input {
    background: var(--ui-bg-input); border: 1px solid var(--ui-border); color: var(--ui-text);
    padding: 8px 10px; border-radius: var(--ui-radius-sm); font-family: var(--ui-font); font-size: 13px; outline: none;
}
.acc-label input:focus { border-color: var(--ui-border-focus); }
.acc-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-side { display: flex; flex-direction: column; align-self: start; min-width: 0; }
.acc-side-out {
    margin-top: 14px; padding: 7px 10px; text-align: left; cursor: pointer;
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); background: transparent;
    font: 500 12px var(--ui-font); color: var(--ui-text-dim);
}
.acc-side-out:hover { color: var(--ui-danger-text); border-color: color-mix(in srgb, var(--ui-danger-text) 50%, transparent); }

.tok { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.tok > .tok-coin { align-self: center; }
.tok-num { line-height: 1; }
.tok-coin {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 1.1em; height: 1.1em; line-height: 0; color: inherit; opacity: .8;
}
.tok-coin svg { display: block; width: 100%; height: 100%; }
.acc-big .tok-coin { width: .9em; height: .9em; }

.tok-chip {
    position: relative; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px;
    border-radius: 13px; cursor: pointer; font-family: var(--ui-font); font-size: 12px; font-weight: 700; color: var(--ui-text);
    font-variant-numeric: tabular-nums; letter-spacing: .01em;
    background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 6px rgba(0, 0, 0, .35);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.tok-chip .tok-coin { width: 15px; height: 15px; }
.tok-chip:hover, .acc.open .tok-chip { border-color: var(--ui-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.tok-chip:focus-visible { outline: 2px solid var(--ui-accent-hover); outline-offset: 2px; }
.tok-chip.over { color: #e0b15a; }
.tok-chip[hidden] { display: none; }
.tok-chip-num { min-width: 1.5em; text-align: right; }

@keyframes tok-up-ring { 0% { box-shadow: 0 0 0 0 var(--ui-accent-glow), 0 2px 6px rgba(0, 0, 0, .35); } 60% { box-shadow: 0 0 0 10px rgba(72, 130, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(72, 130, 126, 0), 0 2px 6px rgba(0, 0, 0, .35); } }
@keyframes tok-coin-pulse { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-12deg); } 65% { transform: scale(1.1) rotate(6deg); } }
.tok-chip--up { animation: tok-up-ring 1.2s ease-out; border-color: var(--ui-accent-hover); }
.tok-chip--up .tok-coin { animation: tok-coin-pulse .9s cubic-bezier(.3, 1.4, .4, 1); }
@keyframes tok-down-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-2px) scale(.98); } 45% { transform: translateX(2px); } 70% { transform: translateX(-1px); } }
@keyframes tok-coin-hit { 0% { transform: scale(1); } 30% { transform: scale(.75); } 100% { transform: scale(1); } }
.tok-chip--down { animation: tok-down-shake .55s ease-out; border-color: #e0b15a; }
.tok-chip--down .tok-coin { animation: tok-coin-hit .5s ease-out; }
.tok-float {
    position: absolute; left: 50%; top: -4px; transform: translate(-50%, 0); pointer-events: none; white-space: nowrap;
    font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.tok-float-up { color: var(--ui-accent-hover); }
.tok-float-down { color: #e0b15a; }
.tok-fly {
    position: fixed; left: 0; top: 0; z-index: 100001; pointer-events: none; color: var(--ui-accent-hover); line-height: 0;
    filter: drop-shadow(0 0 4px var(--ui-accent-glow)) drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
@media (prefers-reduced-motion: reduce) {
    .tok-chip--up, .tok-chip--up .tok-coin, .tok-chip--down, .tok-chip--down .tok-coin { animation: none; }
}

.acc-pkgs-wrap { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 2px; }
.acc-pkgs-head { gap: 10px; }
.acc-pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acc-pkg {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; text-align: center;
    border-radius: var(--ui-radius); border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 4px 12px rgba(0, 0, 0, .3);
    font: inherit; color: inherit; min-width: 0;
}
.acc-pkg-top { border-color: rgba(255, 255, 255, .24); background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); }
.acc-pkg-buy { cursor: pointer; transition: border-color .14s, background-color .14s, transform .14s; }
.acc-pkg-buy:hover { border-color: rgba(255, 255, 255, .32); background-color: rgba(255, 255, 255, .04); }
.acc-pkg-buy:active { transform: translateY(1px); }
.acc-pkg-buy:focus-visible { outline: 2px solid var(--ui-border-focus); outline-offset: 2px; }
.acc-pkg-tier { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ui-text-muted); }
.acc-pkg-top .acc-pkg-tier { color: var(--ui-text-dim); }
.acc-pkg-tokens { font-size: 14px; font-weight: 700; color: var(--ui-text); }
.acc-pkg-price { font-size: 12px; font-weight: 600; color: var(--ui-text-dim); }
.acc-pkg-buy .acc-pkg-price { color: var(--ui-text); }
@media (max-width: 640px) { .acc-pkgs { grid-template-columns: repeat(2, 1fr); } }

.pay-modal:not(.pay-modal-wait) .pb-modal-body { padding-top: 8px; }
.pay-form { display: flex; flex-direction: column; gap: 10px; }
.pay-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--ui-radius); border: 1px solid var(--ui-border); background: var(--ui-bg-input); }
.pay-sum .tok { font-size: 22px; font-weight: 700; color: var(--ui-text); align-items: center; gap: 8px; }
.pay-sum .tok .tok-coin svg { width: 20px; height: 20px; }
.pay-bonus { font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ui-text-muted); margin-bottom: 4px; }
.pay-price { font: 700 22px var(--ui-font); color: var(--ui-text); text-align: right; line-height: 1.1; white-space: nowrap; }
.pay-price small { display: block; font-size: 10.5px; font-weight: 500; color: var(--ui-text-muted); margin-top: 3px; }
#pay-overlay .pay-in {
    display: block; width: 100%; box-sizing: border-box; height: 40px; margin: 0; padding: 0 12px;
    border-radius: var(--ui-radius-sm) !important; border: 1px solid var(--ui-border) !important;
    background: var(--ui-bg-input) !important; color: var(--ui-text) !important; box-shadow: none !important;
    font: 13px var(--ui-font); outline: none;
}
#pay-overlay .pay-in::placeholder { color: var(--ui-text-muted); }
#pay-overlay .pay-in:focus { border-color: var(--ui-border-focus) !important; }
#pay-overlay .pay-in:-webkit-autofill,
#pay-overlay .pay-in:-webkit-autofill:hover,
#pay-overlay .pay-in:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ui-text);
    -webkit-box-shadow: 0 0 0 1000px var(--ui-bg-input) inset !important;
    caret-color: var(--ui-text);
    transition: background-color 9999s ease-out 0s;
}
.pay-modal:not(.pay-modal-wait) .ds-dlg-foot { flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 20px 18px; }
.ds-glass .ds-dlg-foot .tbtn.pay-cta { width: 100%; height: 42px; font-size: 13.5px !important; }
.pay-terms { text-align: center; font-size: 10.5px; line-height: 1.4; color: var(--ui-text-muted); }
.pay-terms a { color: var(--ui-accent-hover); text-decoration: none; }
.pay-terms a:hover { color: var(--ui-live); }
.pay-wait-box { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 4px 0 8px; }
.pay-wait-text { font-size: 12.5px; line-height: 1.5; color: var(--ui-text); }
.ds-glass .pay-wait-box .tbtn.pay-open { text-decoration: none; }
.pay-wait { flex: 1 1 200px; font-size: 11.5px; line-height: 1.4; color: var(--g-text-3); }
.acc-cur-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.acc-cur-label { font-size: 12px; color: var(--ui-text-dim); margin-right: 4px; }
.acc-cur-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--ui-radius-sm);
    border: 1px solid var(--ui-border); background: var(--ui-bg-input); color: var(--ui-text-dim);
    font: 600 12px var(--ui-font); cursor: pointer; transition: background-color .12s, color .12s, border-color .12s;
}
.acc-cur-btn:hover { background: var(--ui-bg-hover); color: var(--ui-text); }
.acc-cur-btn.on { border-color: var(--ui-accent); color: var(--ui-text); background: var(--ui-bg-hover); }
.acc-cur-btn:focus-visible { outline: 2px solid var(--ui-border-focus); outline-offset: 2px; }
.acc-cur-sym { font-size: 14px; color: var(--ui-text); }

.acc-pkgs-terms a { color: var(--ui-accent-hover); text-decoration: none; }
.acc-pkgs-terms a:hover { color: var(--ui-live); }

.acc-av-row { align-items: center; }
.acc-av-box { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acc-av-prev {
    width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ui-bg-hover); border: 1px solid var(--ui-border); color: var(--ui-text-dim);
    font: 600 16px/1 var(--ui-font);
}
.acc-av-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }

.acc-gen .acc-mrow {
    display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr);
    align-items: center; column-gap: 16px; justify-content: initial;
}
.acc-gen .acc-mrow > .hotkey-desc { flex: none; }
.acc-gen .acc-mrow > :nth-child(2) { justify-self: start; min-width: 0; }
.acc-gen .acc-mrow .acc-mval { text-align: left; }
.acc-gen .acc-bal-row { align-items: start; }
.acc-gen .acc-bal-row > .hotkey-desc { padding-top: 5px; }
.acc-gen .acc-balance-modal { padding-top: 0; gap: 4px; }
.acc-mcell { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.acc-gen .acc-pwd .acc-form, .acc-gen .acc-email .acc-form, .acc-gen .acc-payer .acc-form { margin: 4px 0 10px calc(max(120px, 30%) + 16px); max-width: 360px; }
.acc-payer-foot[hidden] { display: none; }
.acc-payer-note { margin: 10px 0 0; max-width: 64ch; font-size: 11px; line-height: 1.5; color: var(--ui-text-muted); }
.acc-form-btns { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.acc-form[hidden], .acc-mcell [hidden] { display: none; }
.acc-label input:-webkit-autofill,
.acc-label input:-webkit-autofill:hover,
.acc-label input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ui-text);
    -webkit-box-shadow: 0 0 0 1000px var(--ui-bg-input) inset;
    caret-color: var(--ui-text);
    transition: background-color 9999s ease-out 0s;
}
.acc-info {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 18px; height: 18px; color: var(--ui-text-muted); cursor: help; border-radius: 50%;
}
.acc-info:hover, .acc-info:focus-visible { color: var(--ui-text); }
.acc-info-tip {
    position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); z-index: 2;
    width: max-content; max-width: 280px; padding: 7px 10px; box-sizing: border-box;
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); background: var(--ui-bg-deep);
    box-shadow: var(--ui-shadow); color: var(--ui-text-dim);
    font: 400 11px/1.45 var(--ui-font); text-align: left; white-space: normal;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s;
}
.acc-info:hover .acc-info-tip, .acc-info:focus-visible .acc-info-tip { opacity: 1; visibility: visible; }
@media (max-width: 760px) {
    .acc-gen .acc-mrow { grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); }
    .acc-gen .acc-pwd .acc-form, .acc-gen .acc-email .acc-form, .acc-gen .acc-payer .acc-form { margin-left: 0; }
}
