@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/cyberpunk/Orbitron.ttf") format("truetype");
}
html[data-ui-theme="cyberpunk"] {
  color-scheme: dark;
  background: #0a0a0f;
  --cyber-brackets:
    linear-gradient(currentColor, currentColor) left top / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 1px 14px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 1px 14px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 1px 14px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 14px 1px
      no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 1px 14px
      no-repeat;
  --cyber-cut: polygon(
    0 10px,
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
}
html[data-ui-theme="cyberpunk"] * {
  scrollbar-color: #00ff88 #12121a;
}
html[data-ui-theme="cyberpunk"] [data-testid="glass-backdrop"],
html[data-ui-theme="cyberpunk"] [data-testid="settings-screen"] {
  background:
    radial-gradient(ellipse at 100% 0, #ff00ff14, transparent 45%),
    linear-gradient(#00d4ff0b 1px, transparent 1px),
    linear-gradient(90deg, #00d4ff0b 1px, transparent 1px), #0a0a0f !important;
  background-size:
    auto,
    48px 48px,
    48px 48px,
    auto !important;
}
html[data-ui-theme="cyberpunk"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483646;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    #00000012 3px 4px
  );
}
html[data-ui-theme="cyberpunk"] [data-cyber-surface],
html[data-ui-theme="cyberpunk"] [data-testid="spending-pet-message"] {
  background: #12121a !important;
  border: 1px solid #2a2a3a !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Clip closed summary panes only; swipe actions and focus rings stay outside. */
html[data-ui-theme="cyberpunk"]
  :is(
    [data-testid^="monthly-metric-"],
    [data-testid="monthly-budget"],
    [data-testid="spending-summary"],
    [data-testid="subscription-summary-metrics"]
  ) {
  clip-path: var(--cyber-cut);
}
html[data-ui-theme="cyberpunk"] [data-testid^="pocket-gradient-"] {
  background: linear-gradient(110deg, #12121a, #171724) !important;
}
html[data-ui-theme="cyberpunk"] [data-cyber-surface][data-testid^="pocket-"] {
  border-radius: 2px !important;
  border-color: #00d4ff30 !important;
}
html[data-ui-theme="cyberpunk"]
  [data-cyber-surface][data-testid^="pocket-"]::before {
  content: "";
  position: absolute;
  inset: 2px;
  color: #00d4ff70;
  background: var(--cyber-brackets);
  pointer-events: none;
  z-index: 1;
}
html[data-ui-theme="cyberpunk"] [data-testid^="pocket-gradient-"]::after,
html[data-ui-theme="cyberpunk"] [data-testid="spending-summary"]::after {
  display: none !important;
}
html[data-ui-theme="cyberpunk"]
  :is([role="button"], [role="tab"], input, textarea),
html[data-ui-theme="cyberpunk"]
  :is(
    [data-testid="welcome-banner"],
    [data-testid="month-switcher"],
    [data-testid^="desktop-fixed-"],
    [data-testid="monthly-paid-summary"],
    [data-testid="monthly-pending-summary"]
  ) {
  border-radius: 2px !important;
}
html[data-ui-theme="cyberpunk"] [data-cyber-heading] {
  text-transform: uppercase;
  text-shadow: none;
}
html[data-ui-theme="cyberpunk"] [data-testid="welcome-banner"] {
  background: #12121a !important;
  border: 1px solid #00d4ff80 !important;
  box-shadow:
    inset 2px 0 #00d4ff,
    0 0 10px #00d4ff18 !important;
}
html[data-ui-theme="cyberpunk"] [data-testid="welcome-banner"]::before {
  content: ">";
  position: absolute;
  left: 8px;
  bottom: 4px;
  color: #00ff88;
  font:
    700 18px "JetBrains Mono",
    monospace;
}
html[data-ui-theme="cyberpunk"] [data-testid="welcome-banner"]::after {
  content: "_";
  position: absolute;
  right: 8px;
  bottom: 4px;
  color: #00ff88;
  font:
    700 18px "JetBrains Mono",
    monospace;
}
html[data-ui-theme="cyberpunk"] [data-testid^="monthly-metric-"]::after,
html[data-ui-theme="cyberpunk"] [data-testid="monthly-budget"]::after,
html[data-ui-theme="cyberpunk"] [data-testid="remaining-balance"]::after,
html[data-ui-theme="cyberpunk"]
  [data-testid="spending-remaining-balance"]::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  height: auto;
  color: #00d4ff;
  background: var(--cyber-brackets);
  opacity: 0.8;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-budget"]::before,
html[data-ui-theme="cyberpunk"] [data-testid^="monthly-metric-"]::before,
html[data-ui-theme="cyberpunk"] [data-testid="remaining-balance"]::before,
html[data-ui-theme="cyberpunk"]
  [data-testid="spending-remaining-balance"]::before {
  content: "MONTHLY / OVERVIEW";
  position: absolute;
  top: 9px;
  right: 14px;
  color: #8c94a7;
  font:
    400 8px/12px "JetBrains Mono",
    monospace;
  letter-spacing: 1.2px;
  pointer-events: none;
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-metric-0"]::before {
  content: "01 / EXPENSE";
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-metric-1"]::before {
  content: "02 / PAID";
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-metric-2"]::before {
  content: "03 / PENDING";
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-metric-3"]::before {
  content: "04 / BALANCE";
}
html[data-ui-theme="cyberpunk"] [data-testid^="monthly-metric-"] {
  padding-top: 28px !important;
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-metric-0"] {
  border-color: #ff00ff35 !important;
  background: linear-gradient(135deg, #ff00ff16, #12121a 65%) !important;
  box-shadow: none !important;
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-metric-1"] {
  border-color: #00d4ff35 !important;
  background: #11151e !important;
  box-shadow: none !important;
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-metric-2"] {
  border-color: #ff00ff35 !important;
  box-shadow: none !important;
}
html[data-ui-theme="cyberpunk"] [data-testid="planned-spending-total"] {
  color: #ff5ce1 !important;
  font-weight: 800 !important;
  letter-spacing: -1.2px !important;
  background: linear-gradient(105deg, #fafcff 12%, #f4c2ff 68%, #90e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-budget"] {
  background:
    radial-gradient(ellipse at 90% 0, #ff00ff14, transparent 65%), #0f111a !important;
  padding-top: 32px !important;
  border-color: #00d4ff35 !important;
  box-shadow: 0 0 24px #00d4ff08 !important;
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-paid-summary"] {
  background: #00d4ff08 !important;
  border: 1px solid #00d4ff30 !important;
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-pending-summary"] {
  background: #ff00ff08 !important;
  border: 1px solid #ff00ff30 !important;
}
html[data-ui-theme="cyberpunk"]
  [data-testid="monthly-paid-summary"]
  > [dir="auto"]:last-child,
html[data-ui-theme="cyberpunk"] [data-testid="monthly-value-1"] {
  color: #00d4ff !important;
}
html[data-ui-theme="cyberpunk"]
  [data-testid="monthly-pending-summary"]
  > [dir="auto"]:last-child,
html[data-ui-theme="cyberpunk"]
  :is([data-testid="monthly-value-0"], [data-testid="monthly-value-2"]) {
  color: #ff5ce1 !important;
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-metric-3"] {
  border-color: #00ff8840 !important;
  background: linear-gradient(135deg, #00ff8812, #12121a 80%) !important;
}
html[data-ui-theme="cyberpunk"]
  [data-testid="monthly-metric-3"]
  > [dir="auto"] {
  color: #00ff88 !important;
}
html[data-ui-theme="cyberpunk"]
  :is(
    [data-testid="monthly-metric-0"],
    [data-testid="monthly-metric-2"]
  )::after {
  color: #ff5ce1;
}
html[data-ui-theme="cyberpunk"] [data-testid="mobile-add-circle"] {
  background: #ff5ce1 !important;
  box-shadow: 0 0 12px #ff00ff35 !important;
}
html[data-ui-theme="cyberpunk"] [data-cyber-control] {
  box-shadow: none !important;
  transition:
    border-color 120ms steps(3),
    box-shadow 120ms steps(3);
}
html[data-ui-theme="cyberpunk"]
  :is([data-testid="liquid-tab-glass"], [data-testid="liquid-sidebar-glass"]) {
  background: #00d4ff18 !important;
  border: 1px solid #00d4ff !important;
  border-radius: 2px !important;
  box-shadow:
    0 0 5px #00d4ff30,
    inset 0 -2px #00d4ff !important;
}
html[data-ui-theme="cyberpunk"]
  [role="tab"][aria-selected="true"]
  [dir="auto"] {
  color: #00d4ff !important;
}
html[data-ui-theme="cyberpunk"]
  :is(
    [data-testid="remaining-balance"],
    [data-testid="spending-remaining-balance"]
  ) {
  background:
    linear-gradient(#00ff8805 1px, transparent 1px) 0 0 / 100% 12px,
    #0b1918 !important;
  border: 1px solid #00ff8825 !important;
  border-radius: 2px !important;
  padding-top: 30px !important;
}
html[data-ui-theme="cyberpunk"]
  :is(
    [data-testid="remaining-balance"],
    [data-testid="spending-remaining-balance"]
  )::before {
  content: "BUDGET / REMAINING";
  color: #81b6a5;
}
html[data-ui-theme="cyberpunk"]
  :is(
    [data-testid="remaining-balance"],
    [data-testid="spending-remaining-balance"],
    [data-testid="monthly-metric-3"]
  )::after {
  color: #00ff88;
}
html[data-ui-theme="cyberpunk"] [role="progressbar"] {
  border-radius: 0 !important;
  background: #1c1c2e !important;
}
html[data-ui-theme="cyberpunk"] [role="progressbar"] > * {
  border-radius: 0 !important;
  background: repeating-linear-gradient(
    90deg,
    #00ff88 0 5px,
    transparent 5px 8px
  ) !important;
}
html[data-ui-theme="cyberpunk"] [data-card-meter="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ffffff80, transparent);
  translate: none;
  pointer-events: none;
  animation: none;
}
html[data-ui-theme="cyberpunk"] [data-testid="monthly-spending-segment-Bill"],
html[data-ui-theme="cyberpunk"]
  [data-testid="monthly-spending-total-Bill"]
  > div:first-child {
  background: #00ff88 !important;
}
html[data-ui-theme="cyberpunk"]
  [data-testid="monthly-spending-segment-Subscription"],
html[data-ui-theme="cyberpunk"]
  [data-testid="monthly-spending-total-Subscription"]
  > div:first-child {
  background: #00d4ff !important;
}
html[data-ui-theme="cyberpunk"]
  [data-testid="monthly-spending-segment-Expense"],
html[data-ui-theme="cyberpunk"]
  [data-testid="monthly-spending-total-Expense"]
  > div:first-child {
  background: #ff00ff !important;
}
html[data-ui-theme="cyberpunk"] [data-cyber-input="standalone"],
html[data-ui-theme="cyberpunk"] :has(> [data-cyber-input="embedded"]) {
  background: #12121a !important;
  border: 1px solid #2a2a3a !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
html[data-ui-theme="cyberpunk"] [data-cyber-input="embedded"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-ui-theme="cyberpunk"] :is(input, textarea) {
  color: #e0e0e0 !important;
  font-size: 16px !important;
  caret-color: #00ff88;
}
html[data-ui-theme="cyberpunk"] :is(input, textarea)::placeholder {
  color: #a0a6b4;
  opacity: 1;
}
html[data-ui-theme="cyberpunk"] :focus-visible,
html[data-ui-theme="cyberpunk"]
  :has(> [data-cyber-input="embedded"]:focus-visible) {
  outline: 2px solid #00ff88 !important;
  outline-offset: 2px;
}
html[data-ui-theme="cyberpunk"] [data-cyber-input="embedded"]:focus-visible {
  outline: none !important;
}
[data-theme-preview="cyberpunk"] {
  background: linear-gradient(
    135deg,
    #00ff8814,
    #12121a 55%,
    #ff00ff22
  ) !important;
  border: 1px solid #00ff88 !important;
  border-radius: 0 !important;
  clip-path: polygon(
    0 7px,
    7px 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    0 100%
  );
  box-shadow: inset 2px 0 #00d4ff !important;
}
[data-theme-preview="cyberpunk"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 3px;
  background: linear-gradient(
    90deg,
    #00ff88 0 50%,
    #00d4ff 50% 75%,
    #ff00ff 75%
  );
}
[data-theme-preview="cyberpunk"] [dir="auto"] {
  font-family: "Orbitron", monospace !important;
  color: #00ff88 !important;
  font-size: 10px !important;
}
@keyframes cyber-meter-scan {
  0%,
  15% {
    transform: translateX(-100%);
    opacity: 0;
  }
  25% {
    opacity: 0.5;
  }
  70%,
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
@keyframes cyber-hud-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}
@keyframes cyber-glitch {
  0%,
  94%,
  100% {
    text-shadow: none;
  }
  95% {
    text-shadow:
      -2px 0 #ff00ff,
      2px 0 #00d4ff;
  }
  97% {
    text-shadow:
      1px 0 #ff00ff,
      -1px 0 #00d4ff;
  }
}
@keyframes cyber-cursor {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-ui-theme="cyberpunk"] [data-testid="monthly-budget"]::after {
    animation: cyber-hud-pulse 6s ease-in-out infinite;
  }
  html[data-ui-theme="cyberpunk"] [data-card-meter="true"]::after {
    animation: cyber-meter-scan 5s linear infinite;
  }
  html[data-ui-theme="cyberpunk"] [data-cyber-heading] {
    animation: cyber-glitch 11s steps(1) infinite;
  }
  html[data-ui-theme="cyberpunk"] [data-testid="welcome-banner"]::after {
    animation: cyber-cursor 1.3s step-end infinite;
  }
}
@media (hover: hover) and (pointer: fine) {
  html[data-ui-theme="cyberpunk"]
    [data-cyber-control]:not([aria-disabled="true"]):hover {
    border-color: #00ff88 !important;
    box-shadow:
      0 0 5px #00ff8855,
      0 0 12px #00ff8820 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-ui-theme="cyberpunk"] *,
  html[data-ui-theme="cyberpunk"] *::before,
  html[data-ui-theme="cyberpunk"] *::after {
    animation: none !important;
    transition: none !important;
  }
}
