/*
 * Buyer dashboard, sign-in pages and the USDT payment pop-up.
 * Self-contained (site.css is a compiled Tailwind build, so new utility classes cannot be added)
 * and driven by the per-site theme variables, so it follows light and dark templates.
 */

.acct,
.acct * { box-sizing: border-box; }

.acct {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 2.5rem 1rem 4rem;
  color: var(--site-fg);
}
.acct--narrow { max-width: 30rem; }
.acct--mid { max-width: 48rem; }
@media (min-width: 768px) { .acct { padding: 3.5rem 1.5rem 5rem; } }

.acct a { color: inherit; }
.acct-link { color: var(--brand-primary) !important; text-decoration: underline; text-underline-offset: 3px; }
.acct-muted { color: var(--site-muted); }
.acct-small { font-size: 0.8125rem; line-height: 1.5; }
.acct-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.acct-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--site-muted); }

/* ---------- Page header + tabs ---------- */
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.acct-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
.acct-sub { margin: 0.4rem 0 0; color: var(--site-muted); font-size: 0.9375rem; }

.acct-tabs { display: flex; gap: 0.25rem; overflow-x: auto; margin-bottom: 2rem; border-bottom: 1px solid var(--site-border); scrollbar-width: none; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tab {
  position: relative; flex: none; padding: 0.75rem 0.9rem; font-size: 0.875rem; font-weight: 600;
  color: var(--site-muted) !important; text-decoration: none !important; white-space: nowrap;
}
.acct-tab:hover { color: var(--site-fg) !important; }
.acct-tab[aria-current="page"] { color: var(--site-fg) !important; }
.acct-tab[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: -1px; height: 2px;
  background: var(--brand-primary); border-radius: 2px;
}
.acct-tab__count {
  display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; margin-left: 0.35rem; padding: 0 0.3rem;
  border-radius: 999px; background: var(--brand-primary); color: var(--brand-contrast); font-size: 0.68rem; font-weight: 800;
}

/* ---------- Cards, grids ---------- */
.acct-card {
  background: var(--site-surface); border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) + 0.15rem); padding: 1.25rem;
}
.acct-card--flush { padding: 0; overflow: hidden; }
.acct-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--site-border); }
.acct-card__title { font-size: 1rem; font-weight: 700; margin: 0; }
.acct-card__body { padding: 1.25rem; }
.acct-stack { display: grid; gap: 1rem; }
.acct-stack--lg { gap: 1.5rem; }
.acct-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .acct-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acct-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .acct-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } }
@media (min-width: 900px) { .acct-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .acct-grid--main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.acct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.acct-row--between { justify-content: space-between; }

.acct-stat { padding: 1rem 1.15rem; }
.acct-stat__num { display: block; font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.acct-stat__label { display: block; margin-top: 0.45rem; font-size: 0.8125rem; color: var(--site-muted); }
.acct-stat--warn .acct-stat__num { color: #f59e0b; }
.acct-stat--bad .acct-stat__num { color: #ef4444; }
.acct-stat--good .acct-stat__num { color: #22c55e; }

/* ---------- Status pills ---------- */
.acct-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.65rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  background: rgba(148, 163, 184, 0.16); color: var(--site-muted);
}
.acct-pill::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.acct-pill--active { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.acct-pill--expiring { background: rgba(245, 158, 11, 0.17); color: #d97706; }
.acct-pill--expired, .acct-pill--bad { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.acct-pill--setup, .acct-pill--info { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.theme-stream .acct-pill--active { color: #4ade80; }
.theme-stream .acct-pill--expiring { color: #fbbf24; }
.theme-stream .acct-pill--expired, .theme-stream .acct-pill--bad { color: #f87171; }
.theme-stream .acct-pill--setup, .theme-stream .acct-pill--info { color: #60a5fa; }

/* ---------- Service cards ---------- */
.acct-service { display: grid; gap: 1rem; }
.acct-service__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.acct-service__name { font-size: 1.1rem; font-weight: 700; margin: 0; }
.acct-service__meta { margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--site-muted); }
.acct-meter { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--site-border) 80%, transparent); overflow: hidden; }
.acct-meter > span { display: block; height: 100%; border-radius: 999px; background: #22c55e; }
.acct-meter--expiring > span { background: #f59e0b; }
.acct-meter--expired > span { background: #ef4444; width: 100% !important; }
.acct-expiry { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; color: var(--site-muted); }
.acct-expiry strong { color: var(--site-fg); font-weight: 700; }

.acct-callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--site-border)); background: rgba(245, 158, 11, 0.09);
  border-radius: var(--site-radius); padding: 0.85rem 1rem; font-size: 0.875rem;
}
.acct-callout--bad { border-color: color-mix(in srgb, #ef4444 45%, var(--site-border)); background: rgba(239, 68, 68, 0.09); }
.acct-callout--info { border-color: color-mix(in srgb, #3b82f6 45%, var(--site-border)); background: rgba(59, 130, 246, 0.09); }
.acct-callout--ok { border-color: color-mix(in srgb, #22c55e 45%, var(--site-border)); background: rgba(34, 197, 94, 0.09); }

/* ---------- Credentials ---------- */
.acct-cred { display: grid; gap: 0.6rem; }
.acct-cred__row {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem;
  border: 1px solid var(--site-border); border-radius: var(--site-radius); background: var(--site-surface-2, var(--site-surface));
}
.acct-cred__label { flex: none; width: 5.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--site-muted); }
.acct-cred__value { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875rem; overflow-wrap: anywhere; user-select: all; }
.acct-cred__value[data-hidden="1"] { letter-spacing: 0.2em; user-select: none; }
.acct-icon-btn {
  flex: none; display: inline-grid; place-items: center; height: 2rem; padding: 0 0.6rem; border-radius: 0.5rem;
  border: 1px solid var(--site-border); background: transparent; color: var(--site-fg); font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.acct-icon-btn:hover { border-color: var(--brand-primary); }
@media (max-width: 520px) { .acct-cred__row { flex-wrap: wrap; } .acct-cred__label { width: 100%; } }

/* ---------- Buttons and forms ---------- */
.acct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.5rem; padding: 0.5rem 1.1rem;
  border-radius: 0.65rem; border: 1px solid transparent; font-size: 0.875rem; font-weight: 700; line-height: 1.2;
  text-decoration: none !important; cursor: pointer; transition: opacity 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.acct-btn--primary { background: var(--brand-primary); color: var(--brand-contrast) !important; }
.acct-btn--primary:hover { background: color-mix(in srgb, var(--brand-primary) 86%, #fff); }
.acct-btn--ghost { background: transparent; border-color: var(--site-border); color: var(--site-fg) !important; }
.acct-btn--ghost:hover { border-color: var(--brand-primary); }
.acct-btn--danger { background: transparent; border-color: color-mix(in srgb, #ef4444 55%, var(--site-border)); color: #ef4444 !important; }
.acct-btn--danger:hover { background: rgba(239, 68, 68, 0.1); }
.acct-btn--block { width: 100%; }
.acct-btn--sm { min-height: 2.1rem; padding: 0.35rem 0.8rem; font-size: 0.8125rem; }
.acct-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.acct-field { display: grid; gap: 0.4rem; margin: 0; }
.acct-label { font-size: 0.8125rem; font-weight: 600; }
.acct-input, .acct-select, .acct-textarea {
  width: 100%; min-height: 2.65rem; padding: 0.55rem 0.8rem; border-radius: 0.65rem; border: 1px solid var(--site-border);
  background: var(--site-surface); color: var(--site-fg); font-size: 0.9375rem; outline: none;
}
.acct-textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.acct-input:focus, .acct-select:focus, .acct-textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 22%, transparent); }
.acct-input[readonly] { opacity: 0.7; }
.acct-help { font-size: 0.78rem; color: var(--site-muted); line-height: 1.5; margin: 0; }
.acct-form { display: grid; gap: 1rem; }
.acct-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; }
.acct-check input { margin-top: 0.2rem; }

.acct-alert { border-radius: var(--site-radius); padding: 0.8rem 1rem; font-size: 0.875rem; line-height: 1.55; border: 1px solid; margin-bottom: 1rem; }
.acct-alert--error { border-color: color-mix(in srgb, #ef4444 45%, transparent); background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.acct-alert--ok { border-color: color-mix(in srgb, #22c55e 45%, transparent); background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.theme-stream .acct-alert--ok { color: #4ade80; }
.acct-alert--info { border-color: var(--site-border); background: var(--site-surface); color: var(--site-fg); }

/* ---------- Tables / lists ---------- */
.acct-table-wrap { overflow-x: auto; }
.acct-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.acct-table th { text-align: left; padding: 0.7rem 1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--site-muted); border-bottom: 1px solid var(--site-border); white-space: nowrap; }
.acct-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--site-border); vertical-align: middle; }
.acct-table tr:last-child td { border-bottom: 0; }
.acct-table .right { text-align: right; }
.acct-empty { padding: 2.5rem 1rem; text-align: center; color: var(--site-muted); font-size: 0.9375rem; }
.acct-empty strong { display: block; color: var(--site-fg); font-size: 1.05rem; margin-bottom: 0.35rem; }

.acct-list { display: grid; }
.acct-list__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.95rem 1.25rem; border-bottom: 1px solid var(--site-border); text-decoration: none !important; }
.acct-list__item:last-child { border-bottom: 0; }
a.acct-list__item:hover { background: color-mix(in srgb, var(--brand-primary) 7%, transparent); }
.acct-list__title { font-weight: 600; font-size: 0.9375rem; }

/* ---------- Plan choice (renewal) ---------- */
.acct-plans { display: grid; gap: 0.75rem; }
.acct-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.1rem; cursor: pointer;
  border: 1px solid var(--site-border); border-radius: var(--site-radius); background: var(--site-surface);
}
.acct-plan:has(input:checked) { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
.acct-plan input { accent-color: var(--brand-primary); }
.acct-plan__name { font-weight: 700; }
.acct-plan__price { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.acct-plan__tag { margin-left: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--brand-primary); color: var(--brand-contrast); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Tickets ---------- */
.acct-thread { display: grid; gap: 0.85rem; }
.acct-msg { max-width: 92%; padding: 0.85rem 1rem; border-radius: calc(var(--site-radius) + 0.1rem); border: 1px solid var(--site-border); background: var(--site-surface); }
.acct-msg--you { justify-self: end; background: color-mix(in srgb, var(--brand-primary) 13%, var(--site-surface)); border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--site-border)); }
.acct-msg__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; margin-bottom: 0.35rem; font-size: 0.75rem; color: var(--site-muted); }
.acct-msg__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9375rem; line-height: 1.6; }

/* ---------- Checkout extras ---------- */
.acct-signed-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.7rem 0.9rem; border: 1px solid var(--site-border); border-radius: 0.65rem; font-size: 0.875rem; background: var(--site-surface); }
.acct-pw-wrap { position: relative; }
.acct-pw-wrap .acct-input { padding-right: 4.25rem; }
.acct-pw-toggle { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); height: 2rem; padding: 0 0.6rem; border: 0; border-radius: 0.4rem; background: transparent; color: var(--site-muted); font-size: 0.75rem; font-weight: 700; cursor: pointer; }

/* ---------- USDT pop-up ---------- */
.acct-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.acct-modal[data-open="1"] { display: flex; }
.acct-modal__box {
  width: 100%; max-width: 30rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.5rem;
  background: var(--site-surface); color: var(--site-fg); border: 1px solid var(--site-border); border-radius: calc(var(--site-radius) + 0.4rem);
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.8);
}
.acct-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.acct-modal__title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.acct-modal__close { flex: none; height: 2rem; width: 2rem; border-radius: 50%; border: 1px solid var(--site-border); background: transparent; color: var(--site-fg); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.acct-usdt-amount { padding: 1rem; text-align: center; border: 1px dashed color-mix(in srgb, var(--brand-primary) 55%, var(--site-border)); border-radius: var(--site-radius); background: color-mix(in srgb, var(--brand-primary) 7%, transparent); }
.acct-usdt-amount__num { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.acct-usdt-amount__unit { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--site-muted); }
.acct-usdt-address { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; overflow-wrap: anywhere; user-select: all; padding: 0.75rem; border: 1px solid var(--site-border); border-radius: var(--site-radius); background: var(--site-surface-2, var(--site-surface)); }
.acct-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; font-size: 0.8125rem; color: var(--site-muted); }
.acct-state { display: flex; align-items: center; gap: 0.65rem; padding: 0.75rem 0.9rem; border-radius: var(--site-radius); border: 1px solid var(--site-border); font-size: 0.875rem; font-weight: 600; }
.acct-state--ok { border-color: color-mix(in srgb, #22c55e 50%, transparent); background: rgba(34, 197, 94, 0.1); }
.acct-state--bad { border-color: color-mix(in srgb, #ef4444 50%, transparent); background: rgba(239, 68, 68, 0.1); }
.acct-spinner { flex: none; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--site-fg) 25%, transparent); border-top-color: var(--brand-primary); animation: acct-spin 0.9s linear infinite; }
@keyframes acct-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .acct-spinner { animation-duration: 3s; } }

/* Checkout: choose one or more devices */
.device-pick { padding: 0; border: 0; min-width: 0; }
.device-pick__legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.device-pick__legend span { margin-left: 0.4rem; font-size: 0.75rem; font-weight: 400; color: var(--site-muted); }
.device-pick__grid { display: grid; gap: 0.5rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .device-pick__grid { grid-template-columns: 1fr 1fr; } }
.device-pick__item {
  display: flex; align-items: center; gap: 0.6rem; min-height: 2.6rem; padding: 0.5rem 0.75rem; cursor: pointer;
  font-size: 0.875rem; line-height: 1.3; border: 1px solid var(--site-border); border-radius: 0.5rem;
  background: var(--site-surface); transition: border-color 0.15s, background-color 0.15s;
}
.device-pick__item:hover { border-color: color-mix(in srgb, var(--brand-primary) 60%, var(--site-border)); }
.device-pick__item input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--brand-primary); cursor: pointer; }
.device-pick__item:has(input:checked) { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, var(--site-surface)); }
.device-pick__item:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 28%, transparent); }

/* ---------- Account balance, top-ups, auto-renew ---------- */
.acct-wallet { display: grid; gap: 1rem; border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--site-border)); }
.acct-wallet__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.acct-wallet__amount { margin: 0.25rem 0 0.35rem; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.acct-wallet__due { display: grid; gap: 0.6rem; }
.acct-wallet__due .acct-callout { margin: 0; }
.acct-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 640px) { .acct-amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .acct-amount--custom { grid-column: 1 / -1; } .acct-amount--custom > span { justify-content: flex-start; } .acct-amount--custom .acct-input { max-width: 12rem; } }
.acct-amount { position: relative; display: block; cursor: pointer; }
.acct-amount > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.acct-amount > span {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 3rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--site-border); border-radius: var(--site-radius); background: var(--site-surface);
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.acct-amount > input:checked + span { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
.acct-amount > input:focus-visible + span { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.acct-amount--custom { grid-column: span 2; }
.acct-amount--custom .acct-input { width: 100%; min-width: 0; height: 2.1rem; padding: 0.25rem 0.5rem; font-weight: 700; }
.acct-plus { color: #16a34a; font-weight: 700; white-space: nowrap; }
.acct-minus { font-weight: 700; white-space: nowrap; }
.acct-bullets { margin: 0.5rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; list-style: disc; }
.acct-bullets li { display: list-item; }
.acct-list--plain { display: grid; gap: 0; }
.acct-auto { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--site-border); }
.acct-auto:first-child { border-top: 0; padding-top: 0; }
.acct-switch {
  position: relative; flex: none; width: 2.75rem; height: 1.6rem; border-radius: 999px; border: 1px solid var(--site-border);
  background: color-mix(in srgb, var(--site-border) 70%, transparent); cursor: pointer; padding: 0;
}
.acct-switch > span { position: absolute; top: 2px; left: 2px; width: calc(1.6rem - 6px); height: calc(1.6rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s ease; }
.acct-switch[aria-checked="true"] { background: var(--brand-primary); border-color: var(--brand-primary); }
.acct-switch[aria-checked="true"] > span { transform: translateX(1.15rem); }
.acct-savedcard { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0 0.5rem; padding: 0.75rem 1rem; border: 1px solid var(--site-border); border-radius: var(--site-radius); }
.acct-savedcard__brand { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }
.acct-due { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin-top: 0.4rem; font-size: 0.8125rem; }
.acct-callout--due > span:first-child { display: block; }
.acct-due__ok, .acct-due__short, .acct-due__auto { font-weight: 700; }
.acct-due__ok { color: #16a34a; }
.acct-due__short { color: #dc2626; }
.acct-due__auto { color: var(--site-muted); }
.acct-plan--balance.is-short { opacity: 0.85; }
.acct-plan--balance.is-short [data-balance-note] { color: #dc2626; font-weight: 600; }
.theme-stream .acct-plus, .theme-stream .acct-due__ok { color: #4ade80; }
.theme-stream .acct-due__short, .theme-stream .acct-plan--balance.is-short [data-balance-note] { color: #f87171; }

/* ---------- USDT networks + QR ---------- */
.acct-modal__box:has(.acct-usdt-grid) { max-width: 40rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.acct-usdt-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.acct-usdt-tab {
  display: grid; gap: 0.15rem; padding: 0.7rem 0.9rem; text-align: left; cursor: pointer; font-weight: 800; font-size: 0.95rem;
  border: 1px solid var(--site-border); border-radius: var(--site-radius); background: transparent; color: var(--site-fg);
}
.acct-usdt-tab span { font-weight: 500; font-size: 0.75rem; color: var(--site-muted); }
.acct-usdt-tab[aria-selected="true"] { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
.acct-usdt-grid { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 560px) { .acct-usdt-grid { grid-template-columns: 200px minmax(0, 1fr); } }
.acct-usdt-qr { display: grid; justify-items: center; gap: 0.4rem; text-align: center; }
.acct-usdt-qr svg { width: 200px; height: 200px; max-width: 100%; border-radius: 6px; background: #fff; padding: 4px; }
.acct-usdt-warn { margin: 0.75rem 0 0; padding: 0.6rem 0.75rem; border-radius: var(--site-radius); font-size: 0.8125rem; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.45); }
.stitch-light .acct-usdt-tab { border: 2px solid #1a1a1a; border-radius: 0; background: #fff; box-shadow: 3px 3px 0 #1a1a1a; }
.stitch-light .acct-usdt-tab[aria-selected="true"] { background: #ffcc00; box-shadow: 3px 3px 0 #e63b2e; }
.stitch-light .acct-usdt-qr svg { border: 2px solid #1a1a1a; border-radius: 0; }
.stitch-light .acct-usdt-warn { border: 2px solid #1a1a1a; border-radius: 0; background: #fff4cc; }
.acct-modal { z-index: 1000; }
