:root {
  --accent-rgb: 241, 185, 59;
  --accent-2: #d85eff;
  --accent-soft: rgba(var(--accent-rgb), 0.14);
  --accent-soft-strong: rgba(var(--accent-rgb), 0.22);
  --accent-border: rgba(var(--accent-rgb), 0.28);
  --accent-contrast: #f8df8e;
}

body[data-accent-theme="gold"] {
  --accent: #f1b93b;
  --accent-rgb: 241, 185, 59;
  --accent-2: #d85eff;
  --accent-glow: rgba(241, 185, 59, 0.32);
  --accent-contrast: #f8df8e;
  --red: #ef4444;
}

body[data-accent-theme="violet"] {
  --accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
  --accent-2: #d946ef;
  --accent-glow: rgba(139, 92, 246, 0.32);
  --accent-contrast: #ddd6fe;
  --red: #ef4444;
}

body[data-accent-theme="mono"] {
  --accent: #e5e7eb;
  --accent-rgb: 229, 231, 235;
  --accent-2: #94a3b8;
  --accent-glow: rgba(229, 231, 235, 0.18);
  --accent-contrast: #ffffff;
  --red: #ef4444;
  --pricing-premium-action: #f1b93b;
}

body {
  background:
    radial-gradient(circle at 14% 8%, rgba(var(--accent-rgb), 0.18), transparent 23%),
    radial-gradient(circle at 87% 18%, rgba(65, 212, 160, 0.12), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(104, 67, 201, 0.15), transparent 26%),
    linear-gradient(180deg, #0a0d12 0%, #0b0f16 38%, #090c11 100%);
}

body.light {
  --bg: #f4f6fb;
  --surface: rgba(255, 255, 255, 0.97);
  --surface2: rgba(248, 250, 252, 0.98);
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #64748b;
  --red: #f43f5e;
  background:
    radial-gradient(circle at 14% 10%, rgba(var(--accent-rgb), 0.14), transparent 26%),
    radial-gradient(circle at 85% 14%, rgba(65, 212, 160, 0.10), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #eff3f8 100%);
}

body.light .app-header,
body.light #nav,
body.light .balance-card,
body.light .section-hero,
body.light .split-stat-card,
body.light .roadmap-card,
body.light .empty-route-ico,
body.light .hero-pill,
body.light .stg-action-btn,
body.light .panel,
body.light .route-item,
body.light .stg-group,
body.light .stg-cat-card,
body.light .sheet,
body.light .mini-stat-card,
body.light .plan-stat,
body.light .debt-spotlight,
body.light .debt-filter-shell,
body.light .debt-card,
body.light .debt-card-meta,
body.light .debt-search-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.95));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

body.light .balance-card {
  border-color: rgba(var(--accent-rgb), 0.18);
}

body.light .bc-amount,
body.light .header-title {
  background: linear-gradient(135deg, var(--accent) 70px, var(--accent) 90%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light .stg-item.stg-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

body.light .stg-badge,
body.light .stg-sub-info,
body.light .fp.on,
body.light .cpill.on,
body.light .stg-cat-tab.active {
  background: rgba(var(--accent-rgb), 0.10) !important;
  border-color: rgba(var(--accent-rgb), 0.22) !important;
  color: var(--accent) !important;
}

body.light .stg-cat-icon,
body.light .stg-cat-item .sti-ico {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(15, 23, 42, 0.03));
  border-color: rgba(var(--accent-rgb), 0.18);
}

body.light .theme-swatch,
body.light .quick-chip,
body.light .seg-btn,
body.light .debt-form-card,
body.light .debt-glance-item,
body.light .inline-note {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(15, 23, 42, 0.10);
  color: var(--text);
}

.stg-item.stg-disabled {
  opacity: 0.45;
}

.stg-item.stg-disabled .stg-txt,
.stg-item.stg-disabled .stg-ico,
.stg-item.stg-disabled .stg-arrow {
  opacity: 1;
}

.stg-badge,
.stg-sub-info,
.stg-action-btn,
.stg-cat-tab.active,
.cpill.on,
.fp.on {
  color: var(--accent) !important;
  background: rgba(var(--accent-rgb), 0.14) !important;
  border-color: rgba(var(--accent-rgb), 0.28) !important;
}

.stg-badge,
.stg-sub-info {
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.settings-feature-live .stg-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.theme-palette-wrap {
  padding: 4px 16px 16px;
  display: grid;
  gap: 12px;
}

.theme-palette-head {
  display: grid;
  gap: 3px;
}

.theme-palette-head strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.theme-palette-head span {
  font-size: 11px;
  color: var(--muted);
}

.theme-palette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.theme-swatch {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 16px;
  min-height: 68px;
  padding: 12px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 10px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-swatch:active {
  transform: scale(0.98);
}

.theme-swatch.active {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.10);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.10) inset, 0 10px 22px rgba(0, 0, 0, 0.14);
}

.theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.theme-dot.gold {
  background: linear-gradient(135deg, #f1b93b, #d85eff);
}

.theme-dot.violet {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.theme-dot.mono {
  background: linear-gradient(135deg, #ffffff, #94a3b8);
}

.theme-name {
  font-size: 12px;
  font-weight: 800;
}

body[data-accent-theme="mono"] .seg-btn.active,
body[data-accent-theme="mono"] .quick-chip.active,
body[data-accent-theme="mono"] .quick-chip:hover,
body[data-accent-theme="mono"] .stg-sub-info,
body[data-accent-theme="mono"] .stg-action-btn,
body[data-accent-theme="mono"] .cpill.on,
body[data-accent-theme="mono"] .fp.on {
  color: #ffffff !important;
}

body[data-accent-theme="mono"] .theme-swatch.active {
  color: #ffffff;
}

@media (max-width: 350px) {
  .theme-palette {
    grid-template-columns: 1fr;
  }
}


/* ==== v1.2.3 dynamic accent + fullscreen polish ==== */
body {
  min-height: var(--app-height);
}

.header-logo {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(255, 255, 255, 0.05));
  border-color: rgba(var(--accent-rgb), 0.24);
  box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.14);
}

body.light .header-title,
body.light .bc-amount,
.header-title,
.bc-amount {
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-title,
.bc-amount {
  background-image: linear-gradient(135deg, var(--accent) 10%, var(--accent) 70%, var(--accent-2) 95%) !important;
}

body.light .header-title,
body.light .bc-amount {
  background-image: linear-gradient(135deg, var(--accent) 20%, var(--accent) 72%, var(--accent-2) 100%) !important;
}

.stg-name,
.profile-photo-note strong,
.panel-ttl,
.bc-label {
  color: var(--text);
}

.stg-sub-info,
.stg-badge,
.cpill.on,
.fp.on,
.hero-pill-strong,
.mini-stat-card.accent span,
.mini-stat-card.accent strong {
  color: var(--accent-contrast) !important;
}

.hero-pill-strong {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.08)) !important;
  border-color: rgba(var(--accent-rgb), 0.24) !important;
}

.section-eyebrow,
.theme-swatch.active,
.quick-chip.active,
.seg-btn.active,
.stg-action-btn {
  color: var(--accent-contrast);
}

body[data-accent-theme="violet"] {
  --accent-contrast: #efe9ff;
}

body[data-accent-theme="gold"] {
  --accent-contrast: #fff1be;
}

body[data-accent-theme="mono"] {
  --accent-contrast: #ffffff;
}

body.light .hero-pill-strong,
body.light .stg-action-btn,
body.light .stg-sub-info,
body.light .stg-badge,
body.light .stg-disabled,
body.light .cpill.on,
body.light .active,
body.light .fp.on {
  color: var(--text) !important;
}



.stg-avatar {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0.04));
  border-color: rgba(var(--accent-rgb), 0.28);
}

.stg-avatar svg,
.stg-avatar-initials {
  color: var(--accent-contrast);
}

body.light .stg-badge,
body.light .stg-sub-info {
  background-color: rgba(var(--accent-rgb), 0.1) !important;
  border-color: rgba(var(--accent-rgb), 0.3) !important;
}

body.light .stg-disabled .stg-ico {
  background: rgba(var(--accent-rgb), 0.10) !important;
}

.pricing-premium-action {
  color: var(--pricing-premium-action);
}