*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f5f5f7;
  --surface:   #ffffff;
  --border:    #e0e0e5;
  --text:      #1d1d1f;
  --muted:     #6e6e73;
  --accent:    #0071e3;
  --accent-h:  #005bbf;
  --green:     #34c759;
  --orange:    #ff9500;
  --red:       #ff3b30;
  --gray:      #8e8e93;
  --radius:    10px;
  --shadow:    0 1px 4px rgba(0,0,0,.08);
  --hover-bg:  #fafafa;
}

body.dark {
  --bg:        #1c1c1e;
  --surface:   #2c2c2e;
  --border:    #3a3a3c;
  --text:      #f5f5f7;
  --muted:     #98989d;
  --accent:    #0a84ff;
  --accent-h:  #0071e3;
  --shadow:    0 1px 4px rgba(0,0,0,.3);
  --hover-bg:  #3a3a3c;
}

body.dark .status-green  { background: #0d3320; color: #4ade80; }
body.dark .status-orange { background: #3a2600; color: #fb923c; }
body.dark .status-brown  { background: #3a1f00; color: #d4956a; }
body.dark .status-red    { background: #3b0f0f; color: #f87171; }
body.dark .status-gray   { background: #3a3a3c; color: #ababaf; }
body.dark .status-promo  { background: #2d1b5c; color: #c4b5fd; }
body.dark .start-note    { border-left-color: rgba(10,132,255,.4); background: rgba(10,132,255,.08); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Header */
header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}
header h1 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
header .subtitle { font-size: 13px; color: var(--muted); }
.theme-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .15s, color .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }

/* Controls */
.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.period-btns {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.period-btns button {
  padding: 7px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  transition: background .15s, color .15s;
  border-right: 1px solid var(--border);
}
.period-btns button:last-child { border-right: none; }
.period-btns button:hover { background: var(--bg); color: var(--text); }
.period-btns button.active { background: var(--accent); color: #fff; }

.date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.date-range input[type="date"] {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
}
.btn-apply {
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  transition: background .15s;
}
.btn-apply:hover { background: var(--accent-h); }

.hidden { display: none !important; }

/* Last updated */
.last-update {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

/* Table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; }

thead th {
  padding: 11px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
thead th:first-child { text-align: left; }
thead th:nth-child(3),
thead th:nth-child(4) { text-align: right; }
tbody td:nth-child(2) { text-align: center; }

tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--hover-bg); }
tbody td { padding: 11px 16px; }

tfoot tr { border-top: 2px solid var(--border); }
tfoot td {
  padding: 11px 16px;
  font-weight: 600;
  background: var(--bg);
  font-size: 13px;
}

.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Status badges */
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 130px;
  text-align: center;
}
.status-green  { background: #d4f5de; color: #1a7a32; }
.status-orange { background: #fff0d9; color: #9a5a00; }
.status-brown  { background: #f0e0c8; color: #7a4a1a; }
.status-red    { background: #fde8e8; color: #a01515; }
.status-gray   { background: #ebebeb; color: #555; }

/* Промокоды */
.promo-divider td {
  padding: 8px 16px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--bg);
  border-top: 2px dashed var(--border);
}
.promo-row td { color: var(--muted); }
.status-promo { background: #ede9fe; color: #5b21b6; }

/* Start note */
.start-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-left: 2px solid rgba(0, 113, 227, 0.3);
  background: rgba(0, 113, 227, 0.04);
  border-radius: 0 4px 4px 0;
}
.start-note::before {
  content: 'ℹ\00a0';
  font-style: normal;
  color: var(--accent);
  opacity: .7;
}

/* Empty state */
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Collapsible blocks */
details summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::marker { display: none; }
details summary::after {
  content: '▾';
  float: right;
  font-size: 13px;
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(-180deg); }

/* Chart period buttons */
.chart-period-btns-wrap {
  display: flex;
  padding: 8px 16px 0;
  background: var(--surface);
}
.chart-period-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  transition: background .15s, color .15s;
  margin-right: -1px;
  position: relative;
}
.chart-period-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.chart-period-btn:last-child  { border-radius: 0 var(--radius) var(--radius) 0; margin-right: 0; }
.chart-period-btn.active      { background: var(--accent); color: #fff; border-color: var(--accent); z-index: 1; }
.chart-period-btn:hover:not(.active) { background: var(--bg); color: var(--text); }

/* bal-daily */
.bal-daily {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Chart block */
.chart-block {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chart-title {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.chart-wrap {
  padding: 16px;
  height: 220px;
}

/* Avg block */
.avg-block {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.avg-title {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.avg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.avg-row:last-child { border-bottom: none; }
.avg-label { font-size: 14px; }
.avg-value { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.avg-total { border-top: 2px solid var(--border); background: var(--bg); }

/* Balances block */
.balances-block {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.balances-title {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.balances-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.balances-grid.two-col   { grid-template-columns: repeat(2, 1fr); }
.balances-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.balance-card {
  padding: 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.balance-card:last-child { border-right: none; }
.bal-name {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bal-value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.2;
}
.bal-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}
.bal-sub {
  font-size: 11px;
  color: var(--muted);
}
.bal-amounts-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.bal-rub {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bal-days {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 2px 0 1px;
}
.bal-updated {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.balances-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 8px 0 4px;
  padding-left: 4px;
}

/* Subscriptions block */
.subs-block { margin-top: 8px; }
.subs-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  padding: 10px 0 6px;
}
.subs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 4px;
}
.sub-card {
  padding: 12px 14px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sub-card:last-child { border-right: none; }
.sub-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sub-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.sub-date {
  font-size: 12px;
  color: var(--text);
}
.sub-days {
  font-size: 11px;
  color: var(--muted);
}
.balances-grid .sub-card { padding: 16px; }
.sub-card.sub-soon .sub-days { color: #e07c00; font-weight: 600; }
.sub-card.sub-today .sub-days { color: #d0312d; font-weight: 700; }
.sub-card.sub-today .sub-amount { color: #d0312d; }

/* Mobile */
@media (max-width: 600px) {
  .balances-grid,
  .balances-grid.two-col,
  .balances-grid.three-col,
  .balances-grid.five-col,
  .subs-grid {
    grid-template-columns: 1fr;
  }
  .balance-card,
  .sub-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .balance-card:last-child,
  .sub-card:last-child { border-bottom: none; }
  .bal-value { font-size: 18px; }
  .sub-amount { font-size: 18px; }
}

@media (max-width: 600px) {
  .container { padding: 20px 12px 60px; }
  table { table-layout: fixed; width: 100%; }
  thead th { padding: 9px 6px; font-size: 10px; white-space: nowrap; }
  tbody td, tfoot td { padding: 9px 6px; font-size: 12px; }
  thead th:nth-child(1), tbody td:nth-child(1) { width: 33%; }
  thead th:nth-child(2), tbody td:nth-child(2) { width: 33%; text-align: center; }
  thead th:nth-child(3), tbody td:nth-child(3) { width: 12%; text-align: center; }
  thead th:nth-child(4), tbody td:nth-child(4) { width: 22%; text-align: right; }
  tfoot td:nth-child(1) { width: 66%; }
  tfoot td:nth-child(2) { width: 12%; text-align: center; }
  tfoot td:nth-child(3) { width: 22%; text-align: right; }
  .status { font-size: 11px; padding: 3px 0; white-space: nowrap; display: block; text-align: center; width: 100%; }
  .promo-divider td { padding: 6px 6px 4px; }
}

/* ====================================================
   NEON THEME v2
   ==================================================== */

.neon-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .2s, color .2s, box-shadow .2s;
  margin-left: 6px;
}
.neon-toggle:hover { color: var(--text); border-color: var(--muted); }

body.neon .neon-toggle {
  border-color: rgba(220, 50, 50, 0.7);
  color: #e83030;
  box-shadow: 0 0 10px rgba(220, 50, 50, 0.35), inset 0 0 8px rgba(220, 50, 50, 0.08);
  text-shadow: 0 0 8px rgba(220, 50, 50, 0.6);
}

/* --- CSS variables --- */
body.neon {
  --bg:       #08080b;
  --surface:  #0d0d12;
  --border:   rgba(220, 50, 50, 0.2);
  --text:     #eeeeee;
  --muted:    #555;
  --accent:   #e83030;
  --accent-h: #c82020;
  --shadow:   none;
  --hover-bg: rgba(220, 50, 50, 0.05);
  --radius:   14px;
  background: #08080b;
  overflow-x: hidden;
}

/* --- BACKGROUND: perspective grid horizon --- */
body.neon::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: -30%; right: -30%;
  height: 52vh;
  background-image:
    linear-gradient(rgba(220,50,50,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,50,50,0.2) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(70deg);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
/* --- BACKGROUND: radial glow orbs --- */
body.neon::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 92% 2%,  rgba(220,40,40,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 2%  85%, rgba(200,55,0,0.15)  0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(50,0,0,0.2)     0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  animation: neon-orb-pulse 8s ease-in-out infinite alternate;
}
@keyframes neon-orb-pulse {
  from { opacity: .65; }
  to   { opacity: 1; }
}
body.neon .container { position: relative; z-index: 1; }

/* --- Header --- */
body.neon header h1 {
  background: linear-gradient(130deg, #ff7060 0%, #e83030 55%, #ff7000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
body.neon header .subtitle { color: #3a3a3a; }
body.neon .theme-toggle { border-color: rgba(255,255,255,0.08); color: #444; }
body.neon .theme-toggle:hover { color: #888; border-color: rgba(255,255,255,0.15); }

/* --- Floating block animations --- */
@keyframes neon-float-a {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}
@keyframes neon-float-b {
  0%, 100% { transform: translateY(-4px); }
  50%       { transform: translateY(5px); }
}
@keyframes neon-float-c {
  0%, 100% { transform: translateY(-2px); }
  50%       { transform: translateY(6px); }
}

body.neon .table-wrap     { animation: neon-float-a 9s  ease-in-out infinite; }
body.neon .chart-block    { animation: neon-float-b 12s ease-in-out infinite; }
body.neon .avg-block      { animation: neon-float-c 10s ease-in-out infinite; }
body.neon .balances-block { animation: neon-float-a 14s ease-in-out infinite reverse; }

/* --- Main block styling --- */
body.neon .table-wrap,
body.neon .chart-block,
body.neon .avg-block,
body.neon .balances-block {
  background: linear-gradient(160deg, #0e0e15 0%, #0a0a0e 100%);
  border: 1px solid rgba(220,50,50,0.28);
  border-top-color: rgba(255,100,100,0.38);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.8),
    0 8px 32px rgba(0,0,0,0.6),
    0 0 50px rgba(220,50,50,0.1),
    0 0 100px rgba(220,50,50,0.04),
    inset 0 1px 0 rgba(255,120,120,0.08),
    inset 0 0 40px rgba(220,50,50,0.03);
}

/* --- Table internals --- */
body.neon thead th { background: #0a0a0e; color: #444; border-bottom-color: rgba(220,50,50,0.14); }
body.neon tbody tr { border-bottom-color: rgba(220,50,50,0.08); }
body.neon tbody tr:hover { background: rgba(220,50,50,0.05); }
body.neon tfoot tr { border-top-color: rgba(220,50,50,0.2); }
body.neon tfoot td { background: #0a0a0e; }

/* Scanning line */
body.neon .table-wrap { position: relative; overflow: hidden; }
body.neon .table-wrap > table { position: relative; z-index: 1; }
body.neon .table-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(220,50,50,0) 10%,
    rgba(255,80,80,0.95) 50%,
    rgba(220,50,50,0) 90%, transparent 100%);
  animation: neon-scan 7s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes neon-scan {
  0%   { top: 0%;   opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 0.3; }
  100% { top: 100%; opacity: 0; }
}

/* --- Controls --- */
body.neon .period-btns { background: #0d0d12; border-color: rgba(220,50,50,0.2); }
body.neon .period-btns button { color: #444; border-right-color: rgba(220,50,50,0.1); }
body.neon .period-btns button:hover { background: rgba(220,50,50,0.09); color: #bbb; }
body.neon .period-btns button.active {
  background: #e83030;
  box-shadow: 0 0 16px rgba(220,50,50,0.6), inset 0 1px 0 rgba(255,150,150,0.3);
}
body.neon .date-range input[type="date"] { background: #0d0d12; border-color: rgba(220,50,50,0.25); color: #eee; }
body.neon .btn-apply { background: #e83030; }
body.neon .btn-apply:hover { background: #c82020; }
body.neon .last-update { color: #3a3a3a; }
body.neon .start-note { border-left-color: rgba(220,50,50,0.4); background: rgba(220,50,50,0.05); color: #444; }
body.neon .start-note::before { color: #e83030; }

/* --- Chart / avg / balances headers --- */
body.neon .chart-title,
body.neon .avg-title,
body.neon .balances-title { background: #0a0a0e; border-bottom-color: rgba(220,50,50,0.14); color: #444; }
body.neon .chart-period-btns-wrap { background: #0a0a0e; border-bottom: 1px solid rgba(220,50,50,0.12); }
body.neon .chart-period-btn { border-color: rgba(220,50,50,0.18); color: #444; }
body.neon .chart-period-btn:hover:not(.active) { background: rgba(220,50,50,0.1); color: #ccc; }
body.neon .chart-period-btn.active { background: #e83030; border-color: #e83030; box-shadow: 0 0 12px rgba(220,50,50,0.55); }

/* --- Avg block --- */
body.neon .avg-row { border-bottom-color: rgba(220,50,50,0.1); }
body.neon .avg-total { background: #0a0a0e; border-top-color: rgba(220,50,50,0.2); }
body.neon .avg-value { color: #ff5050; text-shadow: 0 0 12px rgba(220,50,50,0.5); }

/* --- Balance section layout --- */
body.neon .balances-section-label { color: #3a3a3a; padding-left: 14px; }
body.neon .balances-block .balances-grid,
body.neon .balances-block .subs-grid { margin: 4px 12px 8px; }
body.neon .balances-grid,
body.neon .subs-grid { border-color: rgba(220,50,50,0.18); }

/* --- Balance cards: 3D tilt + circular ring indicators --- */
body.neon .balances-grid { perspective: 1200px; }
body.neon .balance-card {
  position: relative;
  background: linear-gradient(145deg, #111118 0%, #0d0d12 100%);
  border-right-color: rgba(220,50,50,0.12);
  transition: transform 0.45s cubic-bezier(.2,.8,.3,1), box-shadow 0.45s ease;
}
body.neon .balance-card:hover {
  transform: perspective(700px) rotateX(-4deg) rotateY(5deg) translateZ(12px) scale(1.02);
  box-shadow: -12px 18px 40px rgba(0,0,0,0.6), 0 0 30px rgba(220,50,50,0.25), inset 0 1px 0 rgba(255,120,120,0.1);
  z-index: 5;
}
/* Ring track */
body.neon .balance-card::before {
  content: '';
  position: absolute;
  top: 12px; right: 12px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: conic-gradient(rgba(220,50,50,0.12) 0deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  pointer-events: none;
}
/* Ring fill (driven by --ring-fill set via JS from real data) */
body.neon .balance-card::after {
  content: '';
  position: absolute;
  top: 12px; right: 12px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(220,50,50,0.9) 0deg var(--ring-fill, 200deg),
    transparent var(--ring-fill, 200deg) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  filter: drop-shadow(0 0 5px rgba(220,50,50,0.7));
  pointer-events: none;
  animation: neon-ring-glow 3s ease-in-out infinite;
}
@keyframes neon-ring-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(220,50,50,0.6)); }
  50%       { filter: drop-shadow(0 0 9px rgba(220,50,50,1)); }
}

body.neon .bal-value { color: #ff5050; text-shadow: 0 0 14px rgba(220,50,50,0.5); }
body.neon .bal-days { color: #993030; }
body.neon .bal-updated { color: #2e2e2e; }
body.neon .bal-rub { color: #444; }

/* --- Subscription cards: same 3D + rings --- */
body.neon .subs-grid { perspective: 1200px; }
body.neon .sub-card {
  position: relative;
  background: linear-gradient(145deg, #111118 0%, #0d0d12 100%);
  border-right-color: rgba(220,50,50,0.12);
  transition: transform 0.45s cubic-bezier(.2,.8,.3,1), box-shadow 0.45s ease;
}
body.neon .sub-card:hover {
  transform: perspective(700px) rotateX(-4deg) rotateY(5deg) translateZ(10px) scale(1.02);
  box-shadow: -10px 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(220,50,50,0.2);
  z-index: 5;
}
body.neon .sub-card::before {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: conic-gradient(rgba(220,50,50,0.12) 0deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  pointer-events: none;
}
body.neon .sub-card::after {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(220,50,50,0.85) 0deg var(--ring-fill, 180deg),
    transparent var(--ring-fill, 180deg) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  filter: drop-shadow(0 0 4px rgba(220,50,50,0.65));
  pointer-events: none;
  animation: neon-ring-glow 3s ease-in-out infinite;
}

body.neon .sub-amount { color: #ff5050; text-shadow: 0 0 12px rgba(220,50,50,0.45); }
body.neon .sub-card.sub-soon .sub-days { color: #e07800; }
body.neon .sub-card.sub-today .sub-days,
body.neon .sub-card.sub-today .sub-amount { color: #ff3030; }

/* --- Status badges --- */
body.neon .status-green  { background: rgba(0,220,80,0.1);   color: #00e864; border: 1px solid rgba(0,220,80,0.25); }
body.neon .status-orange { background: rgba(255,149,0,0.1);  color: #ff9500; border: 1px solid rgba(255,149,0,0.25); }
body.neon .status-brown  { background: rgba(210,140,80,0.1); color: #d48040; border: 1px solid rgba(210,140,80,0.25); }
body.neon .status-red    { background: rgba(220,50,50,0.12); color: #ff5050; border: 1px solid rgba(220,50,50,0.3); }
body.neon .status-gray   { background: rgba(255,255,255,0.04); color: #555; border: 1px solid rgba(255,255,255,0.08); }
body.neon .status-promo  { background: rgba(180,100,255,0.1); color: #c080ff; border: 1px solid rgba(180,100,255,0.25); }

body.neon .empty { color: #333; }

/* --- Mobile --- */
@media (max-width: 600px) {
  body.neon .balance-card,
  body.neon .sub-card {
    border-right: none;
    border-bottom-color: rgba(220,50,50,0.1);
  }
  body.neon .balance-card:hover,
  body.neon .sub-card:hover { transform: none; }
  body.neon .balances-block .balances-grid,
  body.neon .balances-block .subs-grid { margin: 4px 8px 6px; }
}
