/* ======================================================================
   UK Budget Planner — Neon Night UI (v20.3.0)
   Visual skin only. Layout, breakpoints and print styles stay in the
   existing stylesheets so the app keeps its proven responsive behaviour.
   ====================================================================== */

@media screen {
  body.theme-neon {
    --neon-bg: #050711;
    --neon-bg-soft: #090d1c;
    --neon-surface: rgba(8, 14, 31, .94);
    --neon-surface-raised: rgba(11, 19, 42, .96);
    --neon-surface-soft: rgba(13, 24, 49, .78);
    --neon-cyan: #00e5ff;
    --neon-cyan-soft: #7cf3ff;
    --neon-violet: #8b5cff;
    --neon-magenta: #ff3cac;
    --neon-lime: #b8ff3d;
    --neon-amber: #ffc857;
    --neon-danger: #ff4f78;
    --neon-text: #f4f7ff;
    --neon-text-soft: #b8c5dd;
    --neon-muted: #7f8da9;
    --neon-line: rgba(112, 139, 203, .2);
    --neon-line-cyan: rgba(0, 229, 255, .34);
    --neon-focus: 0 0 0 3px rgba(0, 229, 255, .24), 0 0 24px rgba(0, 229, 255, .16);

    /* Original component tokens. */
    --bg: var(--neon-bg);
    --bg-soft: var(--neon-bg-soft);
    --panel: var(--neon-surface);
    --panel-border: var(--neon-line);
    --text: var(--neon-text);
    --muted: var(--neon-muted);
    --blue: var(--neon-cyan);
    --green: var(--neon-lime);
    --purple: var(--neon-violet);
    --amber: var(--neon-amber);
    --red: var(--neon-magenta);
    --primary: var(--neon-cyan);
    --shadow: 0 24px 70px rgba(0, 0, 12, .46);

    /* Retired theme tokens still consumed by a few components. */
    --theme-primary: #00bcd6;
    --theme-primary-strong: #087eaa;
    --theme-highlight: var(--neon-cyan);
    --theme-glow: rgba(0, 229, 255, .17);
    --theme-panel-top: rgba(12, 20, 44, .98);
    --theme-panel-bottom: rgba(5, 10, 24, .98);
    --theme-sidebar-top: rgba(5, 10, 24, .99);
    --theme-sidebar-bottom: rgba(4, 7, 17, .99);

    /* Current premium UI tokens. */
    --ui-bg: var(--neon-bg);
    --ui-surface-1: rgba(8, 14, 31, .94);
    --ui-surface-2: rgba(11, 19, 42, .96);
    --ui-surface-3: rgba(16, 27, 55, .88);
    --ui-border: rgba(108, 132, 190, .19);
    --ui-border-strong: rgba(0, 229, 255, .31);
    --ui-text: var(--neon-text);
    --ui-text-soft: var(--neon-text-soft);
    --ui-text-muted: var(--neon-muted);
    --ui-primary: var(--neon-cyan);
    --ui-primary-hover: #69f3ff;
    --ui-success: var(--neon-lime);
    --ui-warning: var(--neon-amber);
    --ui-danger: var(--neon-danger);
    --ui-info: var(--neon-violet);
    --ui-shadow-low: 0 12px 34px rgba(0, 0, 16, .24);
    --ui-shadow-raised: 0 24px 70px rgba(0, 0, 16, .42);
    --ui-focus: var(--neon-focus);

    background:
      linear-gradient(rgba(49, 80, 148, .025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(49, 80, 148, .025) 1px, transparent 1px),
      radial-gradient(circle at 56% -10%, rgba(139, 92, 255, .22), transparent 34rem),
      radial-gradient(circle at 101% 20%, rgba(255, 60, 172, .1), transparent 30rem),
      radial-gradient(circle at -5% 88%, rgba(0, 229, 255, .1), transparent 34rem),
      linear-gradient(145deg, #050711 0%, #070a16 52%, #04060e 100%);
    background-attachment: fixed;
    background-size: 34px 34px, 34px 34px, auto, auto, auto, auto;
    color: var(--neon-text);
  }

  body.theme-neon ::selection {
    background: rgba(0, 229, 255, .28);
    color: #fff;
  }

  body.theme-neon :is(button, a, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 2px solid var(--neon-cyan) !important;
    outline-offset: 3px !important;
    box-shadow: var(--neon-focus) !important;
  }

  body.theme-neon select,
  body.theme-neon select option {
    color-scheme: dark;
    background-color: #080d1d;
    color: var(--neon-text);
  }

  /* Brand mark shared by authenticated, public and login surfaces. */
  body.theme-neon :is(.brand-icon, .login-brand-mark, .landing-brand-mark) {
    color: transparent;
    font-size: 0;
    background-color: rgba(7, 13, 29, .96);
    background-image: url('/assets/icons/brand-mark-neon-256.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 78%;
    border-color: rgba(0, 229, 255, .42);
    box-shadow:
      inset 0 0 18px rgba(0, 229, 255, .08),
      0 0 22px rgba(0, 229, 255, .12),
      0 0 38px rgba(139, 92, 255, .08);
  }

  body.theme-neon .skip-link,
  body.theme-neon .landing-skip-link {
    background: var(--neon-cyan);
    color: #020711;
  }

  /* Authenticated application shell. */
  body.theme-neon.premium-ui .sidebar {
    border-color: rgba(0, 229, 255, .2);
    background:
      radial-gradient(circle at 18% 3%, rgba(0, 229, 255, .09), transparent 13rem),
      radial-gradient(circle at 112% 94%, rgba(139, 92, 255, .14), transparent 17rem),
      linear-gradient(180deg, rgba(5, 10, 24, .99), rgba(3, 6, 15, .99));
    box-shadow:
      inset -1px 0 rgba(0, 229, 255, .08),
      20px 0 70px rgba(0, 0, 16, .2);
  }

  body.theme-neon.premium-ui .sidebar .eyebrow,
  body.theme-neon.premium-ui .eyebrow {
    color: var(--neon-cyan);
    text-shadow: 0 0 16px rgba(0, 229, 255, .18);
  }

  body.theme-neon.premium-ui .sidebar .brand-block h2,
  body.theme-neon.premium-ui .header-copy h1,
  body.theme-neon.premium-ui .panel-header h2,
  body.theme-neon.premium-ui :is(.workspace-hero, .profile-hero, .finance-hero, .budget-hero) h2 {
    color: var(--neon-text);
    text-shadow: 0 0 22px rgba(139, 92, 255, .08);
  }

  body.theme-neon.premium-ui .nav-item {
    position: relative;
    color: #96a4bf;
    border-color: transparent;
  }

  body.theme-neon.premium-ui .nav-item::before {
    content: '';
    position: absolute;
    inset: 18% auto 18% 0;
    width: 3px;
    border-radius: 999px;
    background: var(--neon-cyan);
    box-shadow: 0 0 14px rgba(0, 229, 255, .8);
    opacity: 0;
    transform: scaleY(.45);
    transition: opacity .16s ease, transform .16s ease;
  }

  body.theme-neon.premium-ui .nav-item:hover {
    color: #dfe8fb;
    border-color: rgba(0, 229, 255, .13);
    background: rgba(0, 229, 255, .045);
  }

  body.theme-neon.premium-ui .nav-item.active {
    color: #edfdff;
    border-color: rgba(0, 229, 255, .47);
    background: linear-gradient(100deg, rgba(0, 229, 255, .16), rgba(42, 32, 103, .28));
    box-shadow:
      inset 0 0 26px rgba(0, 229, 255, .045),
      0 0 24px rgba(0, 229, 255, .1);
    text-shadow: 0 0 12px rgba(0, 229, 255, .24);
  }

  body.theme-neon.premium-ui .nav-item.active::before {
    opacity: 1;
    transform: scaleY(1);
  }

  body.theme-neon.premium-ui .nav-icon {
    color: var(--neon-cyan-soft);
  }

  body.theme-neon.premium-ui :is(.more-nav-toggle, .logout-btn, .sidebar-profile-settings) {
    border-color: rgba(105, 130, 187, .17);
    background: rgba(9, 16, 34, .52);
    color: #8e9db8;
  }

  body.theme-neon.premium-ui :is(.more-nav-toggle, .sidebar-profile-settings):hover {
    border-color: rgba(0, 229, 255, .28);
    color: var(--neon-cyan-soft);
    background: rgba(0, 229, 255, .06);
  }

  body.theme-neon.premium-ui .logout-btn:hover {
    border-color: rgba(255, 79, 120, .32);
    color: #ff8ca8;
    background: rgba(255, 79, 120, .06);
  }

  body.theme-neon.premium-ui .sidebar-profile {
    border-color: rgba(112, 137, 194, .14);
    background: rgba(7, 13, 29, .58);
  }

  body.theme-neon.premium-ui .sidebar-profile-avatar {
    color: #03101a;
    border-color: rgba(0, 229, 255, .62);
    background: linear-gradient(135deg, var(--neon-cyan), #45a8ff);
    box-shadow: 0 0 22px rgba(0, 229, 255, .18);
  }

  /* Command bar and header. */
  body.theme-neon.premium-ui .app-commandbar {
    border-color: rgba(105, 130, 187, .15);
    background: rgba(5, 9, 21, .72);
    box-shadow: 0 12px 36px rgba(0, 0, 16, .18);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
  }

  body.theme-neon.premium-ui :is(.global-search-input, input, select, textarea) {
    border-color: rgba(111, 138, 197, .2);
    background: rgba(4, 9, 21, .82);
    color: var(--neon-text);
  }

  body.theme-neon.premium-ui :is(.global-search-input, input, select, textarea)::placeholder {
    color: #667590;
  }

  body.theme-neon.premium-ui :is(.global-search-input, input, select, textarea):hover {
    border-color: rgba(0, 229, 255, .28);
  }

  body.theme-neon.premium-ui :is(.global-search-input, input, select, textarea):focus {
    border-color: rgba(0, 229, 255, .72);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, .1), 0 0 24px rgba(0, 229, 255, .08);
  }

  body.theme-neon.premium-ui .global-search-icon {
    color: var(--neon-cyan);
  }

  body.theme-neon.premium-ui :is(.current-date-badge, .month-picker, .connection-pill, .live-clock, .filter-select) {
    border-color: rgba(104, 130, 189, .18);
    background: rgba(7, 13, 29, .68);
    color: #c7d2e8;
  }

  body.theme-neon.premium-ui .storage-status:not(.offline) {
    color: var(--neon-lime);
    text-shadow: 0 0 12px rgba(184, 255, 61, .24);
  }

  body.theme-neon.premium-ui .storage-status.offline {
    color: var(--neon-danger);
  }

  body.theme-neon.premium-ui .greeting-icon {
    color: var(--neon-amber);
    text-shadow: 0 0 20px rgba(255, 200, 87, .38);
  }

  /* Primary and secondary controls. */
  body.theme-neon.premium-ui :is(.workspace-primary-action, .topbar-quick-add, .primary-utility-btn, .add-btn:not(.utility-btn)) {
    color: #021016;
    border-color: rgba(124, 243, 255, .75);
    background: linear-gradient(110deg, #00cfe9, #29edff 54%, #7cf3ff);
    box-shadow:
      0 0 0 1px rgba(0, 229, 255, .12),
      0 0 24px rgba(0, 229, 255, .2),
      0 10px 28px rgba(0, 84, 105, .26);
    text-shadow: none;
  }

  body.theme-neon.premium-ui :is(.workspace-primary-action, .topbar-quick-add, .primary-utility-btn, .add-btn:not(.utility-btn)):hover {
    color: #020b12;
    border-color: #baf9ff;
    background: linear-gradient(110deg, #33e8fb, #8af7ff);
    box-shadow: 0 0 32px rgba(0, 229, 255, .32), 0 12px 32px rgba(0, 76, 100, .3);
  }

  body.theme-neon.premium-ui .utility-btn {
    border-color: rgba(109, 134, 194, .2);
    background: rgba(10, 18, 39, .72);
    color: #a9b7d1;
  }

  body.theme-neon.premium-ui .utility-btn:hover {
    border-color: rgba(0, 229, 255, .32);
    background: rgba(0, 229, 255, .065);
    color: var(--neon-cyan-soft);
    box-shadow: 0 0 18px rgba(0, 229, 255, .07);
  }

  body.theme-neon.premium-ui :is(.command-settings-button, .notification-center-button) {
    border-color: rgba(106, 132, 191, .18);
    background: rgba(7, 13, 29, .7);
    color: #a4b1c9;
  }

  body.theme-neon.premium-ui :is(.command-settings-button, .notification-center-button):hover {
    border-color: rgba(139, 92, 255, .46);
    color: #cdbdff;
    box-shadow: 0 0 20px rgba(139, 92, 255, .12);
  }

  body.theme-neon.premium-ui .notification-center-badge {
    color: #fff;
    background: var(--neon-magenta);
    box-shadow: 0 0 16px rgba(255, 60, 172, .55);
  }

  body.theme-neon.premium-ui .notification-center-badge.urgent {
    background: var(--neon-danger);
  }

  /* Shared cards and hero surfaces. */
  body.theme-neon.premium-ui :is(
    .panel, .workspace-hero, .finance-hero, .budget-hero, .profile-hero,
    .summary-card, .workspace-overview-card, .budget-overview-card,
    .settings-card, .profile-shortcut-card, .reminder-home-card,
    .section-stat, .calendar-stat, .debt-summary-grid > div,
    .scenario-result-grid > div, .data-stat-card
  ) {
    border-color: rgba(101, 126, 184, .18);
    background: linear-gradient(150deg, rgba(12, 20, 43, .96), rgba(5, 10, 23, .97));
    box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 16px 44px rgba(0, 0, 18, .14);
  }

  body.theme-neon.premium-ui :is(.workspace-hero, .finance-hero, .budget-hero, .profile-hero) {
    border-color: rgba(0, 229, 255, .24);
    background:
      radial-gradient(circle at 92% 4%, rgba(255, 60, 172, .1), transparent 18rem),
      radial-gradient(circle at 7% 115%, rgba(0, 229, 255, .11), transparent 22rem),
      linear-gradient(135deg, rgba(13, 23, 51, .98), rgba(6, 11, 25, .98));
    box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 18px 54px rgba(0, 0, 20, .2);
  }

  body.theme-neon.premium-ui .panel:hover,
  body.theme-neon.premium-ui .profile-shortcut-card:hover {
    border-color: rgba(0, 229, 255, .25);
  }

  body.theme-neon.premium-ui .panel-header {
    border-bottom-color: rgba(103, 128, 186, .09);
  }

  body.theme-neon.premium-ui .tag,
  body.theme-neon.premium-ui .status-badge,
  body.theme-neon.premium-ui .category-pill {
    border-color: rgba(110, 136, 195, .2);
    background: rgba(10, 18, 39, .7);
    color: #aab8d1;
  }

  body.theme-neon.premium-ui :is(.tag.accent, .tag.success, .status-success, .paid) {
    border-color: rgba(184, 255, 61, .26);
    background: rgba(184, 255, 61, .07);
    color: var(--neon-lime);
  }

  body.theme-neon.premium-ui :is(.tag.warning, .status-warning) {
    border-color: rgba(255, 200, 87, .28);
    background: rgba(255, 200, 87, .075);
    color: var(--neon-amber);
  }

  body.theme-neon.premium-ui :is(.status-error, .status-critical, .overdue, .danger-action) {
    border-color: rgba(255, 79, 120, .31);
    background: rgba(255, 79, 120, .075);
    color: #ff83a1;
  }

  /* Dashboard metrics. */
  body.theme-neon.premium-ui .summary-card {
    overflow: hidden;
    border-color: rgba(104, 130, 189, .2);
    background:
      radial-gradient(circle at 8% 12%, rgba(0, 229, 255, .06), transparent 8rem),
      linear-gradient(145deg, rgba(12, 22, 48, .97), rgba(5, 10, 23, .97));
  }

  body.theme-neon.premium-ui .summary-card::before {
    display: block;
    inset: 0 auto 0 0;
    width: 2px;
    height: 100%;
    opacity: .9;
    box-shadow: 0 0 18px currentColor;
  }

  body.theme-neon.premium-ui .summary-card.accent-green {
    border-color: rgba(0, 229, 255, .34);
  }

  body.theme-neon.premium-ui .summary-card.accent-green::before,
  body.theme-neon.premium-ui .summary-card.accent-green strong { color: var(--neon-cyan); background: var(--neon-cyan); }

  body.theme-neon.premium-ui .summary-card.accent-red {
    border-color: rgba(255, 60, 172, .34);
  }

  body.theme-neon.premium-ui .summary-card.accent-red::before,
  body.theme-neon.premium-ui .summary-card.accent-red strong { color: #ff76c8; background: var(--neon-magenta); }

  body.theme-neon.premium-ui .summary-card.accent-blue {
    border-color: rgba(184, 255, 61, .31);
  }

  body.theme-neon.premium-ui .summary-card.accent-blue::before,
  body.theme-neon.premium-ui .summary-card.accent-blue strong { color: var(--neon-lime); background: var(--neon-lime); }

  body.theme-neon.premium-ui .summary-card.accent-amber {
    border-color: rgba(255, 79, 120, .3);
  }

  body.theme-neon.premium-ui .summary-card.accent-amber::before,
  body.theme-neon.premium-ui .summary-card.accent-amber strong { color: #ff7798; background: var(--neon-danger); }

  body.theme-neon.premium-ui .summary-card strong {
    background: none !important;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px currentColor;
  }

  body.theme-neon.premium-ui .summary-card .metric-icon,
  body.theme-neon.premium-ui :is(.workspace-card-icon, .budget-card-icon, .settings-card-icon) {
    border-color: rgba(0, 229, 255, .2);
    background: rgba(0, 229, 255, .07);
    color: var(--neon-cyan-soft);
    box-shadow: inset 0 0 18px rgba(0, 229, 255, .05), 0 0 18px rgba(0, 229, 255, .07);
    opacity: 1;
  }

  body.theme-neon.premium-ui .summary-card.accent-red .metric-icon {
    color: #ff80cc;
    border-color: rgba(255, 60, 172, .22);
    background: rgba(255, 60, 172, .07);
  }

  body.theme-neon.premium-ui .summary-card.accent-blue .metric-icon {
    color: var(--neon-lime);
    border-color: rgba(184, 255, 61, .2);
    background: rgba(184, 255, 61, .06);
  }

  body.theme-neon.premium-ui .summary-card.accent-amber .metric-icon {
    color: #ff7798;
    border-color: rgba(255, 79, 120, .2);
    background: rgba(255, 79, 120, .06);
  }

  body.theme-neon.premium-ui .metric-trend.positive { color: var(--neon-lime); }
  body.theme-neon.premium-ui .metric-trend.negative { color: #ff789a; }

  body.theme-neon.premium-ui .dashboard-month-strip {
    border-color: rgba(0, 229, 255, .15);
    background: linear-gradient(90deg, rgba(0, 229, 255, .045), rgba(139, 92, 255, .045));
  }

  body.theme-neon.premium-ui .dashboard-today-row,
  body.theme-neon.premium-ui .upcoming-reminder-card,
  body.theme-neon.premium-ui .dashboard-goal-preview,
  body.theme-neon.premium-ui .smart-insight,
  body.theme-neon.premium-ui .reminder-timeline-row {
    border-color: rgba(105, 130, 188, .14);
    background: rgba(7, 13, 29, .66);
  }

  body.theme-neon.premium-ui :is(.dashboard-today-row, .upcoming-reminder-card, .dashboard-goal-preview, .smart-insight, .reminder-timeline-row):hover {
    border-color: rgba(0, 229, 255, .26);
    background: rgba(0, 229, 255, .04);
  }

  /* Charts, bars and progress. */
  body.theme-neon.premium-ui .monthly-overview-chart {
    background:
      linear-gradient(rgba(73, 99, 160, .08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(73, 99, 160, .055) 1px, transparent 1px),
      rgba(4, 9, 21, .4);
    background-size: 100% 33%, 34px 100%, auto;
  }

  body.theme-neon.premium-ui .monthly-overview-chart::before,
  body.theme-neon.premium-ui .monthly-overview-chart::after {
    background: rgba(95, 121, 181, .12);
  }

  body.theme-neon.premium-ui .monthly-overview-column .income {
    background: linear-gradient(180deg, #5bf4ff, #00b9dc);
    box-shadow: 0 0 16px rgba(0, 229, 255, .2);
  }

  body.theme-neon.premium-ui .monthly-overview-column .bills {
    background: linear-gradient(180deg, #ff78cd, #e52b94);
    box-shadow: 0 0 16px rgba(255, 60, 172, .18);
  }

  body.theme-neon.premium-ui .monthly-overview-column .remaining {
    background: linear-gradient(180deg, #b397ff, #7147e8);
    box-shadow: 0 0 16px rgba(139, 92, 255, .18);
  }

  body.theme-neon.premium-ui .monthly-overview-column .remaining.negative {
    background: linear-gradient(180deg, #ff9bba, #ff426e);
  }

  body.theme-neon.premium-ui .monthly-overview-legend i.income { background: var(--neon-cyan); box-shadow: 0 0 10px rgba(0, 229, 255, .55); }
  body.theme-neon.premium-ui .monthly-overview-legend i.bills { background: var(--neon-magenta); box-shadow: 0 0 10px rgba(255, 60, 172, .5); }
  body.theme-neon.premium-ui .monthly-overview-legend i.remaining { background: var(--neon-violet); box-shadow: 0 0 10px rgba(139, 92, 255, .5); }

  body.theme-neon.premium-ui .dashboard-spending-donut {
    background: conic-gradient(#00e5ff 0 38%, #8b5cff 38% 68%, #ff3cac 68% 100%);
    box-shadow: inset 0 0 28px rgba(0, 0, 18, .46), 0 0 30px rgba(139, 92, 255, .08);
  }

  body.theme-neon.premium-ui .dashboard-spending-donut::after {
    background: #070c1b;
    border-color: rgba(112, 137, 196, .17);
  }

  body.theme-neon.premium-ui :is(
    .dashboard-goal-track, .saving-progress-track, .category-breakdown-track,
    .budget-progress-track, .target-progress-track, .goal-progress-track,
    .scenario-bar-track, .debt-progress-track
  ) {
    background: rgba(72, 91, 137, .22);
  }

  body.theme-neon.premium-ui :is(
    .dashboard-goal-track i, .saving-progress-track i, .category-breakdown-track i,
    .budget-progress-track i, .target-progress-track i, .goal-progress-track i,
    .scenario-bar-track i, .debt-progress-track i
  ) {
    background: linear-gradient(90deg, var(--neon-cyan), #2fbcff 48%, var(--neon-violet));
    box-shadow: 0 0 14px rgba(0, 229, 255, .2);
  }

  body.theme-neon.premium-ui .dashboard-goal-preview:nth-child(even) :is(.dashboard-goal-track i, .saving-progress-track i) {
    background: linear-gradient(90deg, var(--neon-lime), #45f0c1);
    box-shadow: 0 0 14px rgba(184, 255, 61, .18);
  }

  /* Menus, sheets, dialogs and toasts. */
  body.theme-neon.premium-ui :is(
    .global-search-results, .quick-add-menu, .notification-center-panel,
    .more-nav-panel, .reminder-add-menu, .action-menu-list, .modal,
    .confirm-modal, .history-modal, .toast, .command-palette
  ) {
    border-color: rgba(0, 229, 255, .22);
    background: linear-gradient(155deg, rgba(12, 20, 43, .99), rgba(4, 8, 19, .99));
    box-shadow: 0 28px 80px rgba(0, 0, 15, .58), 0 0 30px rgba(0, 229, 255, .06);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
  }

  body.theme-neon.premium-ui .modal-overlay {
    background: rgba(1, 3, 10, .82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body.theme-neon.premium-ui :is(
    .quick-add-menu button, .global-search-result, .notification-center-item,
    .more-nav-panel button, .reminder-add-menu button, .action-menu-list button
  ):hover {
    background: rgba(0, 229, 255, .06);
    color: #eefdff;
  }

  /* Tables and data-heavy panels. */
  body.theme-neon.premium-ui .table-wrap th {
    color: #8ea1c2;
    border-color: rgba(100, 124, 181, .12);
    background: rgba(7, 13, 29, .78);
  }

  body.theme-neon.premium-ui .table-wrap td {
    border-bottom-color: rgba(91, 114, 169, .11);
    color: #dbe4f5;
  }

  body.theme-neon.premium-ui .table-wrap tbody tr:hover {
    background: rgba(0, 229, 255, .035);
  }

  body.theme-neon.premium-ui :is(
    .dashboard-goals-empty, .smart-insight-empty, .diagnostics-empty,
    .reminder-timeline-empty, .dashboard-today-empty, .dashboard-empty,
    .backup-history-empty
  ) {
    border-color: rgba(0, 229, 255, .15);
    background: rgba(0, 229, 255, .025);
  }

  body.theme-neon.premium-ui .hub-tab.active,
  body.theme-neon.premium-ui .section-hub-tab.active,
  body.theme-neon.premium-ui .notification-filter.active {
    color: var(--neon-cyan-soft);
    border-color: rgba(0, 229, 255, .4);
    background: rgba(0, 229, 255, .09);
    box-shadow: inset 0 0 18px rgba(0, 229, 255, .04), 0 0 18px rgba(0, 229, 255, .08);
  }

  body.theme-neon.premium-ui .profile-hero-avatar {
    color: #041018;
    border-color: rgba(0, 229, 255, .62);
    background: linear-gradient(135deg, var(--neon-cyan), #5e8cff 55%, var(--neon-violet));
    box-shadow: 0 0 34px rgba(0, 229, 255, .2);
  }

  body.theme-neon.premium-ui :is(.calendar-event-chip, .calendar-agenda-row, .note-card, .account-row, .subscription-row) {
    border-color: rgba(102, 127, 186, .15);
    background: rgba(7, 13, 29, .62);
  }

  /* Public landing page. */
  body.theme-neon .landing-header {
    border-bottom-color: rgba(0, 229, 255, .14);
    background: rgba(4, 7, 17, .78);
    box-shadow: 0 12px 40px rgba(0, 0, 18, .17);
  }

  body.theme-neon .landing-brand-copy small,
  body.theme-neon .landing-eyebrow,
  body.theme-neon .landing-preview-eyebrow {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 229, 255, .2);
  }

  body.theme-neon .landing-nav-links a {
    color: #9eacc5;
  }

  body.theme-neon .landing-nav-links a:hover {
    color: var(--neon-cyan-soft);
  }

  body.theme-neon .landing-nav-links .landing-nav-signin {
    color: #dffcff;
    border-color: rgba(0, 229, 255, .31);
    background: rgba(0, 229, 255, .055);
    box-shadow: 0 0 20px rgba(0, 229, 255, .07);
  }

  body.theme-neon .landing-hero-kicker {
    color: #acbad1;
    border-color: rgba(139, 92, 255, .3);
    background: rgba(139, 92, 255, .07);
  }

  body.theme-neon .landing-hero-kicker span {
    color: var(--neon-magenta);
    text-shadow: 0 0 12px rgba(255, 60, 172, .42);
  }

  body.theme-neon .landing-hero h1 span {
    background: linear-gradient(96deg, var(--neon-cyan) 4%, #a58aff 54%, #ff72c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 18px rgba(139, 92, 255, .12));
  }

  body.theme-neon .landing-lead,
  body.theme-neon :is(.landing-intro-copy, .landing-section-heading, .landing-how-copy, .landing-privacy-copy, .landing-final-cta) p {
    color: #95a5c0;
  }

  body.theme-neon .landing-button-primary {
    color: #031016;
    border-color: #72f3ff;
    background: linear-gradient(110deg, #00cfe9, #50efff);
    box-shadow: 0 0 28px rgba(0, 229, 255, .2), 0 12px 34px rgba(0, 79, 99, .28);
  }

  body.theme-neon .landing-button-primary:hover {
    box-shadow: 0 0 38px rgba(0, 229, 255, .31), 0 16px 38px rgba(0, 79, 99, .32);
  }

  body.theme-neon .landing-button-secondary {
    border-color: rgba(139, 92, 255, .35);
    background: rgba(139, 92, 255, .065);
    color: #cfc4ff;
  }

  body.theme-neon :is(.landing-app-preview, .landing-feature-card, .landing-preview-panel, .preview-metric, .landing-steps li, .landing-privacy, .landing-final-cta) {
    border-color: rgba(103, 129, 188, .18);
    background: linear-gradient(150deg, rgba(12, 20, 43, .95), rgba(5, 10, 23, .96));
    box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 20px 54px rgba(0, 0, 18, .16);
  }

  body.theme-neon .landing-app-preview {
    border-color: rgba(0, 229, 255, .25);
    box-shadow: 0 35px 100px rgba(0, 0, 18, .48), 0 0 44px rgba(0, 229, 255, .07);
  }

  body.theme-neon .landing-app-preview::before {
    background: linear-gradient(135deg, rgba(0, 229, 255, .22), transparent 35%, rgba(255, 60, 172, .12));
  }

  body.theme-neon .preview-metric:nth-child(1) strong { color: var(--neon-cyan); }
  body.theme-neon .preview-metric:nth-child(2) strong { color: #ff72c8; }
  body.theme-neon .preview-metric:nth-child(3) strong { color: var(--neon-lime); }

  body.theme-neon .preview-bar-row i b {
    background: linear-gradient(90deg, var(--neon-cyan), #31bfff);
    box-shadow: 0 0 12px rgba(0, 229, 255, .2);
  }

  body.theme-neon .preview-bar-row.bills i b { background: linear-gradient(90deg, var(--neon-magenta), #ff78ca); }
  body.theme-neon .preview-bar-row.balance i b { background: linear-gradient(90deg, var(--neon-lime), #4de6b8); }

  body.theme-neon .landing-feature-card:hover {
    border-color: rgba(0, 229, 255, .29);
    box-shadow: 0 20px 46px rgba(0, 0, 20, .2), 0 0 24px rgba(0, 229, 255, .045);
  }

  body.theme-neon .feature-blue,
  body.theme-neon .feature-cyan { color: var(--neon-cyan); }
  body.theme-neon .feature-green { color: var(--neon-lime); }
  body.theme-neon .feature-red { color: var(--neon-magenta); }
  body.theme-neon .feature-purple { color: #a98aff; }
  body.theme-neon .feature-amber { color: var(--neon-amber); }

  body.theme-neon :is(.landing-assurance, .landing-how-section) {
    border-color: rgba(99, 124, 181, .13);
    background: rgba(7, 12, 27, .62);
  }

  /* Login and registration. */
  body.theme-neon .login-shell {
    border-color: rgba(0, 229, 255, .22);
    background: rgba(5, 9, 21, .97);
    box-shadow: 0 35px 110px rgba(0, 0, 12, .64), 0 0 45px rgba(0, 229, 255, .055);
  }

  body.theme-neon .login-intro {
    background:
      linear-gradient(rgba(70, 98, 159, .04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(70, 98, 159, .04) 1px, transparent 1px),
      radial-gradient(circle at 82% 15%, rgba(255, 60, 172, .14), transparent 22rem),
      radial-gradient(circle at 2% 92%, rgba(0, 229, 255, .13), transparent 25rem),
      linear-gradient(150deg, rgba(13, 23, 51, .98), rgba(5, 9, 21, .98));
    background-size: 34px 34px, 34px 34px, auto, auto, auto;
  }

  body.theme-neon .login-intro::after {
    background: rgba(139, 92, 255, .13);
    filter: blur(30px);
  }

  body.theme-neon :is(.login-brand, .mobile-brand) small,
  body.theme-neon .login-intro .eyebrow,
  body.theme-neon .login-card .eyebrow {
    color: var(--neon-cyan);
    text-shadow: 0 0 14px rgba(0, 229, 255, .2);
  }

  body.theme-neon .login-intro h1,
  body.theme-neon .login-card h2 {
    color: var(--neon-text);
    text-shadow: 0 0 26px rgba(139, 92, 255, .11);
  }

  body.theme-neon :is(.login-benefits > div, .login-mini-preview, .login-session-note) {
    border-color: rgba(103, 129, 188, .16);
    background: rgba(5, 10, 23, .64);
  }

  body.theme-neon .login-benefits > div > span,
  body.theme-neon .login-session-note > span {
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, .07);
    box-shadow: inset 0 0 16px rgba(0, 229, 255, .04);
  }

  body.theme-neon .login-preview-head b,
  body.theme-neon .login-private-pill i {
    color: var(--neon-lime);
    background: var(--neon-lime);
    box-shadow: 0 0 12px rgba(184, 255, 61, .35);
  }

  body.theme-neon .login-preview-head b {
    background: rgba(184, 255, 61, .08);
  }

  body.theme-neon .login-preview-metrics > div {
    border-color: rgba(103, 129, 188, .13);
    background: rgba(8, 15, 33, .82);
  }

  body.theme-neon .login-preview-metrics > div:nth-child(1) strong { color: var(--neon-cyan); }
  body.theme-neon .login-preview-metrics > div:nth-child(2) strong { color: #ff72c8; }
  body.theme-neon .login-preview-metrics > div:nth-child(3) strong { color: var(--neon-lime); }

  body.theme-neon .login-card {
    background:
      radial-gradient(circle at 100% 0, rgba(139, 92, 255, .12), transparent 20rem),
      linear-gradient(180deg, rgba(9, 16, 36, .99), rgba(4, 8, 19, .99));
  }

  body.theme-neon :is(.back-to-home, .password-field button) {
    color: var(--neon-cyan-soft);
  }

  body.theme-neon .login-private-pill,
  body.theme-neon .auth-mode-switch {
    border-color: rgba(106, 132, 191, .18);
    background: rgba(4, 9, 21, .72);
  }

  body.theme-neon .auth-mode-switch button.active {
    color: #031016;
    background: linear-gradient(105deg, var(--neon-cyan), #78f4ff);
    box-shadow: 0 0 24px rgba(0, 229, 255, .2);
  }

  body.theme-neon #authForm input {
    border-color: rgba(105, 131, 190, .22);
    background: rgba(3, 7, 18, .86);
    color: var(--neon-text);
  }

  body.theme-neon #authForm input:hover {
    border-color: rgba(0, 229, 255, .3);
  }

  body.theme-neon #authForm input:focus {
    border-color: var(--neon-cyan);
    background: rgba(5, 11, 25, .96);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, .1), 0 0 24px rgba(0, 229, 255, .08);
  }

  body.theme-neon .primary-button {
    color: #031016;
    border-color: #7cf3ff;
    background: linear-gradient(105deg, #00cfe9, #67f2ff);
    box-shadow: 0 0 28px rgba(0, 229, 255, .2), 0 14px 34px rgba(0, 77, 98, .3);
  }

  body.theme-neon .primary-button:hover:not(:disabled) {
    box-shadow: 0 0 38px rgba(0, 229, 255, .3), 0 17px 38px rgba(0, 77, 98, .34);
  }

  body.theme-neon .auth-message {
    color: #ff83a2;
  }

  /* Accessibility: neon never depends on animation. */
  html.access-reduce-motion body.theme-neon *,
  html.access-reduce-motion body.theme-neon *::before,
  html.access-reduce-motion body.theme-neon *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  @media (max-width: 760px) {
    body.theme-neon {
      background:
        radial-gradient(circle at 70% -5%, rgba(139, 92, 255, .17), transparent 22rem),
        radial-gradient(circle at -8% 90%, rgba(0, 229, 255, .08), transparent 24rem),
        linear-gradient(145deg, #050711, #04060e);
      background-attachment: scroll;
    }

    body.theme-neon.premium-ui .sidebar,
    body.theme-neon.premium-ui :is(.global-search-results, .quick-add-menu, .notification-center-panel, .more-nav-panel, .reminder-add-menu, .action-menu-list, .modal) {
      backdrop-filter: blur(16px) saturate(115%);
      -webkit-backdrop-filter: blur(16px) saturate(115%);
    }

    body.theme-neon.premium-ui .nav-item.active {
      box-shadow: inset 0 0 18px rgba(0, 229, 255, .04), 0 0 15px rgba(0, 229, 255, .08);
    }
  }
}
