@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap");
/*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: rotateX(0);
      --tw-rotate-y: rotateY(0);
      --tw-rotate-z: rotateZ(0);
      --tw-skew-x: skewX(0);
      --tw-skew-y: skewY(0);
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --default-font-family: var(--font-sans);
    --default-font-feature-settings: var(--font-sans--font-feature-settings);
    --default-font-variation-settings: var(--font-sans--font-variation-settings);
    --default-mono-font-family: var(--font-mono);
    --default-mono-font-feature-settings: var(--font-mono--font-feature-settings);
    --default-mono-font-variation-settings: var(--font-mono--font-variation-settings);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  body {
    line-height: inherit;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
    color: currentColor;
  }

  @supports (color: color-mix(in lab, red, red)) {
    ::placeholder {
      color: color-mix(in oklab, currentColor 50%, transparent);
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }

  * {
    border-color: oklch(.922 0 0);
    outline-color: color-mix(in oklab, oklch(.708 0 0) 50%, transparent);
  }

  body {
    background-color: oklch(1 0 0);
    color: oklch(.145 0 0);
  }
}

@layer utilities {
  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .\!container {
    width: 100% !important;
  }

  @media (width >= 40rem) {
    .\!container {
      max-width: 40rem !important;
    }
  }

  @media (width >= 48rem) {
    .\!container {
      max-width: 48rem !important;
    }
  }

  @media (width >= 64rem) {
    .\!container {
      max-width: 64rem !important;
    }
  }

  @media (width >= 80rem) {
    .\!container {
      max-width: 80rem !important;
    }
  }

  @media (width >= 96rem) {
    .\!container {
      max-width: 96rem !important;
    }
  }

  .container {
    width: 100%;
  }

  @media (width >= 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (width >= 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (width >= 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (width >= 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (width >= 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .hidden {
    display: none;
  }

  .table {
    display: table;
  }

  .transform {
    transform: var(--tw-rotate-x) var(--tw-rotate-y) var(--tw-rotate-z) var(--tw-skew-x) var(--tw-skew-y);
  }
}


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

:root {
  --primary: #7c3aed;
  --secondary: #6d28d9;
  --accent: #c084fc;
  --neon-pink: #d946ef;
  --dark: #0a0014;
  --darker: #030007;
  --light: #fff;
  --gray: #9ca3af;
  --card-bg: #0a0014e6;
  --border: #7c3aed4d;
  --error: #ef4444;
  --primary-blue: #2563eb;
  --secondary-blue: #1d4ed8;
  --accent-blue: #60a5fa;
  --neon-blue: #3b82f6;
  --border-blue: #2563eb4d;
}

body {
  background: var(--darker);
  color: var(--light);
  min-height: 100vh;
  padding-bottom: 100px;
  font-family: Orbitron, monospace;
  position: relative;
  overflow-x: hidden;
}

.ai-theme {
  --primary: var(--primary-blue);
  --secondary: var(--secondary-blue);
  --accent: var(--accent-blue);
  --neon-pink: var(--neon-blue);
  --border: var(--border-blue);
}

.startup-screen {
  z-index: 10000;
  background: #000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-family: Courier New, monospace;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
}

.startup-screen.hidden {
  display: none;
}

.boot-text {
  color: var(--primary);
  width: 600px;
  max-width: 90%;
  font-size: .9rem;
  line-height: 1.4;
}

.boot-line {
  opacity: 0;
  animation: .1s forwards bootFadeIn;
}

@keyframes bootFadeIn {
  to {
    opacity: 1;
  }
}

.boot-logo {
  color: var(--neon-pink);
  opacity: 0;
  text-shadow: 0 0 30px;
  margin: 40px 0;
  font-family: Orbitron, monospace;
  font-size: 3rem;
  font-weight: 900;
  animation: 2s 2s forwards logoGlitch;
}

@keyframes logoGlitch {
  0% {
    opacity: 0;
    transform: scale(.8);
  }

  10% {
    opacity: 1;
    transform: scale(1.1)translateX(-2px);
  }

  20% {
    transform: scale(.95)translateX(2px);
  }

  30% {
    transform: scale(1.05)translateX(-1px);
  }

  40% {
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.interactive-bg {
  pointer-events: none;
  z-index: -3;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

.bg-particle {
  background: var(--primary);
  opacity: .5;
  width: 2px;
  height: 2px;
  animation: 20s linear infinite floatParticle;
  position: absolute;
}

@keyframes floatParticle {
  from {
    transform: translateY(100vh)translateX(0);
  }

  to {
    transform: translateY(-100px)translateX(100px);
  }
}

body:before {
  content: "";
  z-index: -2;
  background-image: linear-gradient(#7c3aed1a 1px, #0000 1px), linear-gradient(90deg, #7c3aed1a 1px, #0000 1px);
  background-size: 50px 50px;
  width: 100%;
  height: 100%;
  animation: 4s ease-in-out infinite gridPulse;
  position: fixed;
  top: 0;
  left: 0;
}

.ai-theme:before {
  background-image: linear-gradient(#2563eb1a 1px, #0000 1px), linear-gradient(90deg, #2563eb1a 1px, #0000 1px);
}

@keyframes gridPulse {
  0%, 100% {
    opacity: .5;
  }

  50% {
    opacity: .8;
  }
}

body:after {
  content: "";
  z-index: -1;
  background: radial-gradient(circle at 20% 80%, #d946ef33 0%, #0000 40%), radial-gradient(circle at 80% 20%, #7c3aed33 0%, #0000 40%), radial-gradient(circle, #c084fc1a 0%, #0000 50%);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

.ai-theme:after {
  background: radial-gradient(circle at 20% 80%, #3b82f633 0%, #0000 40%), radial-gradient(circle at 80% 20%, #2563eb33 0%, #0000 40%), radial-gradient(circle, #60a5fa1a 0%, #0000 50%);
}

.scanlines {
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(0deg, #0000, #0000 2px, #ffffff08 2px 4px);
  width: 100%;
  height: 100%;
  animation: 8s linear infinite scanlines;
  position: fixed;
  top: 0;
  left: 0;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(10px);
  }
}

.audio-controls {
  z-index: 1000;
  opacity: .7;
  gap: 10px;
  transition: opacity .3s;
  display: flex;
  position: fixed;
  bottom: 20px;
  left: 20px;
}

.audio-controls:hover {
  opacity: 1;
}

.audio-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  width: 80px;
  height: 40px;
  color: var(--primary);
  cursor: pointer;
  letter-spacing: 1px;
  justify-content: center;
  align-items: center;
  font-family: Orbitron, monospace;
  font-size: .7rem;
  font-weight: 700;
  transition: all .3s;
  display: flex;
}

.audio-btn:hover {
  background: #7c3aed33;
  box-shadow: 0 0 20px #7c3aed80;
}

.ai-theme .audio-btn:hover {
  background: #2563eb33;
  box-shadow: 0 0 20px #2563eb80;
}

.audio-btn.active {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.monitor-window {
  width: 300px;
  display: none;
  position: absolute;
  top: 420px;
  right: 20px;
}

.monitor-window.active {
  display: block;
}

.monitor-content {
  padding: 15px;
  font-family: Courier New, monospace;
  font-size: .8rem;
}

.monitor-stat {
  border-left: 2px solid var(--primary);
  background: #7c3aed1a;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 5px;
  display: flex;
}

.ai-theme .monitor-stat {
  background: #2563eb1a;
}

.monitor-label {
  color: var(--gray);
}

.monitor-value {
  color: var(--accent);
  font-weight: bold;
}

.pixel-particle {
  background: var(--neon-pink);
  pointer-events: none;
  width: 4px;
  height: 4px;
  animation: 1s ease-out forwards pixelBurst;
  position: absolute;
}

@keyframes pixelBurst {
  0% {
    opacity: 1;
    transform: translate(0)scale(1);
  }

  100% {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

.pc-case-3d {
  perspective: 800px;
  width: 120px;
  height: 150px;
  margin: 20px auto;
  display: none;
}

.pc-case-3d.active {
  display: block;
}

.case-wrapper {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: 20s linear infinite rotateCaseSlow;
  position: relative;
}

@keyframes rotateCaseSlow {
  from {
    transform: rotateY(0);
  }

  to {
    transform: rotateY(360deg);
  }
}

.case-face {
  border: 2px solid var(--primary);
  background: #7c3aed1a;
  position: absolute;
  box-shadow: inset 0 0 20px #7c3aed4d;
}

.ai-theme .case-face {
  background: #2563eb1a;
  box-shadow: inset 0 0 20px #2563eb4d;
}

.case-front {
  width: 80px;
  height: 120px;
  top: 15px;
  left: 20px;
  transform: translateZ(50px);
}

.case-back {
  width: 80px;
  height: 120px;
  top: 15px;
  left: 20px;
  transform: translateZ(-50px)rotateY(180deg);
}

.case-left {
  width: 100px;
  height: 120px;
  top: 15px;
  left: 10px;
  transform: rotateY(-90deg)translateZ(40px);
}

.case-right {
  width: 100px;
  height: 120px;
  top: 15px;
  left: 10px;
  transform: rotateY(90deg)translateZ(40px);
}

.case-top {
  width: 80px;
  height: 100px;
  top: 25px;
  left: 20px;
  transform: rotateX(90deg)translateZ(60px);
}

.case-bottom {
  width: 80px;
  height: 100px;
  top: 25px;
  left: 20px;
  transform: rotateX(-90deg)translateZ(60px);
}

.case-face:before {
  content: "";
  background: linear-gradient(45deg, var(--neon-pink), var(--primary), var(--accent));
  filter: blur(10px);
  opacity: .5;
  animation: 3s linear infinite rgbGlow;
  position: absolute;
  inset: -2px;
}

@keyframes rgbGlow {
  0%, 100% {
    opacity: .3;
  }

  50% {
    opacity: .7;
  }
}

.notification-container {
  z-index: 9999;
  pointer-events: none;
  width: 90%;
  max-width: 500px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.warning-message {
  border: 2px solid var(--neon-pink);
  color: var(--light);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  background: linear-gradient(135deg, #0f001ef2 0%, #1e002df2 100%);
  margin-bottom: 10px;
  padding: 0;
  display: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px #d946ef99, inset 0 0 30px #7c3aed33;
}

.ai-theme .warning-message {
  background: linear-gradient(135deg, #0a1428f2 0%, #14283cf2 100%);
  box-shadow: 0 0 30px #3b82f699, inset 0 0 30px #2563eb33;
}

.warning-header {
  background: linear-gradient(90deg, var(--neon-pink), var(--primary));
  text-transform: uppercase;
  letter-spacing: 2px;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
}

.warning-icon {
  font-size: 1.2rem;
  animation: 1s infinite blink;
}

@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }

  25%, 75% {
    opacity: .3;
  }
}

.warning-body {
  text-align: left;
  padding: 20px;
  font-size: .95rem;
  line-height: 1.5;
}

.warning-message:before {
  content: "";
  background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
  width: 100%;
  height: 2px;
  animation: 2s linear infinite scan;
  position: absolute;
  top: 0;
  left: 0;
}

.warning-message.active {
  animation: .3s ease-out slideDown;
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  opacity: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  animation: .5s forwards fadeIn;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.header {
  text-align: center;
  padding: 40px 0 30px;
  position: relative;
}

.header h1 {
  background: linear-gradient(135deg, var(--neon-pink), var(--primary), var(--accent));
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 3px;
  filter: drop-shadow(0 0 30px #d946ef80);
  background-clip: text;
  margin-bottom: 10px;
  font-size: 3.5rem;
  font-weight: 900;
}

.ai-theme .header h1 {
  filter: drop-shadow(0 0 30px #3b82f680);
}

.header .subtitle {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 5px;
  opacity: .8;
  font-size: .9rem;
}

.window {
  background: var(--card-bg);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 100;
  opacity: 0;
  min-width: 300px;
  transition: box-shadow .3s;
  animation: .5s forwards windowAppear;
  position: absolute;
  box-shadow: 0 10px 40px #00000080;
}

.window:first-child {
  animation-delay: .1s;
}

.window:nth-child(2) {
  animation-delay: .2s;
}

.window:nth-child(3) {
  animation-delay: .3s;
}

.window:nth-child(4) {
  animation-delay: .4s;
}

@keyframes windowAppear {
  from {
    opacity: 0;
    transform: translateY(20px)scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.window.dragging {
  z-index: 1000;
  transition: none;
  box-shadow: 0 15px 50px #d946ef4d;
}

.ai-theme .window.dragging {
  box-shadow: 0 15px 50px #3b82f64d;
}

.window-header {
  cursor: move;
  border-bottom: 1px solid var(--border);
  -webkit-user-select: none;
  user-select: none;
  background: linear-gradient(90deg, #7c3aed4d, #d946ef4d);
  justify-content: center;
  align-items: center;
  padding: 10px 15px;
  display: flex;
}

.ai-theme .window-header {
  background: linear-gradient(90deg, #2563eb4d, #3b82f64d);
}

.window-title {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .9rem;
  font-weight: 700;
}

.window-content {
  padding: 20px;
}

.desktop {
  width: 100%;
  min-height: 700px;
  position: relative;
}

.budget-window {
  width: 400px;
  top: 20px;
  left: 20px;
}

.usage-window {
  width: 400px;
  top: 20px;
  right: 20px;
}

.generate-window {
  width: 350px;
  top: 420px;
  left: 20px;
}

.generate-window.loading-mode {
  min-height: 250px;
}

.budget-display {
  color: var(--neon-pink);
  text-align: center;
  text-shadow: 0 0 20px;
  cursor: pointer;
  margin: 20px 0;
  font-size: 2.5rem;
  font-weight: 900;
  transition: all .3s;
  position: relative;
}

.budget-display:hover {
  transform: scale(1.05);
}

.budget-input-wrapper {
  margin: 20px 0;
  display: none;
  position: relative;
}

.budget-input-wrapper.active {
  display: block;
}

.budget-manual {
  border: 2px solid var(--primary);
  width: 100%;
  color: var(--light);
  text-align: center;
  background: #7c3aed1a;
  border-radius: 0;
  outline: none;
  padding: 15px 20px;
  font-family: Orbitron, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  transition: all .3s;
}

.ai-theme .budget-manual {
  background: #2563eb1a;
}

.budget-manual:focus {
  border-color: var(--neon-pink);
  background: #d946ef1a;
  box-shadow: 0 0 20px #d946ef4d;
}

.ai-theme .budget-manual:focus {
  background: #3b82f61a;
  box-shadow: 0 0 20px #3b82f64d;
}

.budget-manual::placeholder {
  color: #7c3aed80;
}

.ai-theme .budget-manual::placeholder {
  color: #2563eb80;
}

.input-hint {
  color: var(--accent);
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .7rem;
  position: absolute;
  top: -20px;
  right: 0;
}

.budget-slider {
  appearance: none;
  background: #7c3aed33;
  border-radius: 4px;
  outline: none;
  width: 100%;
  height: 8px;
  margin: 20px 0;
}

.ai-theme .budget-slider {
  background: #2563eb33;
}

.budget-slider::-webkit-slider-thumb {
  appearance: none;
  background: var(--neon-pink);
  cursor: pointer;
  width: 24px;
  height: 24px;
  box-shadow: 0 0 20px var(--neon-pink);
  border-radius: 2px;
  transition: all .3s;
}

.budget-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 30px var(--neon-pink);
  transform: scale(1.2);
}

.budget-presets {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  display: grid;
}

#budget-oscilloscope {
  border: 2px solid var(--border);
  background: #000c;
  width: 100%;
  height: 60px;
  margin-top: 20px;
  position: relative;
  box-shadow: inset 0 0 20px #7c3aed1a, 0 0 10px #7c3aed33;
}

#budget-oscilloscope:before {
  content: "BUDGET WAVEFORM";
  color: var(--accent);
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .7rem;
  position: absolute;
  top: -18px;
  left: 0;
}

.ai-theme #budget-oscilloscope {
  box-shadow: inset 0 0 20px #2563eb1a, 0 0 10px #2563eb33;
}

.preset-btn {
  border: 1px solid var(--primary);
  color: var(--accent);
  cursor: pointer;
  text-transform: uppercase;
  background: none;
  padding: 10px;
  font-family: Orbitron, monospace;
  font-size: .85rem;
  font-weight: 700;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.preset-btn:before {
  content: "";
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  width: 100%;
  height: 100%;
  transition: left .5s;
  position: absolute;
  top: 0;
  left: -100%;
}

.preset-btn:hover:before {
  left: 100%;
}

.preset-btn:hover {
  color: var(--light);
  text-shadow: 0 0 10px;
  box-shadow: 0 0 20px var(--primary);
}

.usage-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  display: grid;
}

.usage-card {
  border: 1px solid var(--border);
  text-align: center;
  cursor: pointer;
  background: none;
  padding: 20px;
  transition: all .3s;
  position: relative;
}

.usage-card:before {
  content: "";
  background: linear-gradient(135deg, transparent 40%, var(--primary) 50%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity .3s;
  position: absolute;
  inset: 0;
}

.usage-card:hover:before {
  opacity: .1;
}

.usage-card:hover {
  border-color: var(--neon-pink);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px #d946ef4d;
}

.ai-theme .usage-card:hover {
  box-shadow: 0 10px 30px #3b82f64d;
}

.usage-card.selected {
  border-color: var(--neon-pink);
  background: #d946ef1a;
  box-shadow: 0 0 30px #d946ef66;
}

.usage-card.selected:before {
  opacity: 1;
  background: radial-gradient(circle, #d946ef33, #0000);
}

.ai-theme .usage-card.selected {
  background: #3b82f61a;
  box-shadow: 0 0 30px #3b82f666;
}

.ai-theme .usage-card.selected:before {
  background: radial-gradient(circle, #3b82f633, #0000);
}

.usage-icon {
  filter: drop-shadow(0 0 10px);
  margin-bottom: 10px;
  font-size: 2rem;
  display: block;
}

.usage-name {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .8rem;
  font-weight: 700;
}

.generate-section {
  text-align: center;
  grid-column: 1 / -1;
  margin-top: 20px;
}

.generate-btn {
  background: linear-gradient(135deg, var(--neon-pink), var(--primary));
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  border: none;
  padding: 20px 60px;
  font-family: Orbitron, monospace;
  font-size: 1.2rem;
  font-weight: 900;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.generate-btn:after {
  content: "";
  background: linear-gradient(45deg, #0000 30%, #fff3 50%, #0000 70%);
  width: 200%;
  height: 200%;
  animation: 3s infinite holographicShimmer;
  position: absolute;
  top: -50%;
  left: -50%;
}

@keyframes holographicShimmer {
  0% {
    transform: rotate(0)translateX(-100%);
  }

  100% {
    transform: rotate(360deg)translateX(100%);
  }
}

.generate-btn:before {
  content: "";
  background: linear-gradient(45deg, #0000, #ffffff4d, #0000);
  width: 200%;
  height: 200%;
  transition: all .5s;
  position: absolute;
  top: -50%;
  left: -50%;
  transform: rotate(45deg);
}

.generate-btn:hover:before {
  animation: .5s ease-out shine;
}

@keyframes shine {
  from {
    transform: rotate(45deg)translateX(-100%);
  }

  to {
    transform: rotate(45deg)translateX(100%);
  }
}

.generate-btn:hover:not(.disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 40px #d946ef99;
}

.ai-theme .generate-btn:hover:not(.disabled) {
  box-shadow: 0 0 40px #3b82f699;
}

.generate-btn.disabled {
  opacity: .5;
  cursor: not-allowed;
}

.generate-window-content {
  text-align: center;
  padding: 20px;
}

.loading-container {
  display: none;
}

.loading-container.active {
  display: block;
}

.cyber-loader {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  position: relative;
}

.cyber-loader-bar {
  background: var(--neon-pink);
  transform-origin: bottom;
  width: 4px;
  height: 30px;
  box-shadow: 0 0 10px var(--neon-pink);
  animation: 1.5s linear infinite cyberSpin;
  position: absolute;
  top: 35%;
  left: 50%;
}

.cyber-loader-bar:nth-child(2) {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation-delay: .1s;
}

.cyber-loader-bar:nth-child(3) {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation-delay: .2s;
}

.cyber-loader-bar:nth-child(4) {
  animation-delay: .3s;
}

.cyber-loader-bar:nth-child(5) {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation-delay: .4s;
}

.cyber-loader-bar:nth-child(6) {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation-delay: .5s;
}

@keyframes cyberSpin {
  0% {
    opacity: 1;
    transform: translateX(-50%)rotate(0);
  }

  50% {
    opacity: .3;
  }

  100% {
    opacity: 1;
    transform: translateX(-50%)rotate(360deg);
  }
}

.loading-status {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 20px;
  margin-top: 20px;
  font-size: .9rem;
}

.results-section {
  animation: .5s ease-in fadeIn;
  display: none;
}

.results-section.active {
  display: block;
}

.results-container {
  grid-template-columns: 1fr 300px;
  align-items: start;
  gap: 20px;
  display: grid;
}

.parts-table {
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.parts-table:before {
  content: "SYSTEM CONFIGURATION";
  color: var(--primary);
  opacity: .3;
  letter-spacing: 2px;
  font-size: .7rem;
  position: absolute;
  top: 10px;
  right: 10px;
}

.parts-table h2 {
  color: var(--neon-pink);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

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

th {
  text-align: left;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--neon-pink);
  background: #d946ef1a;
  padding: 15px;
  font-size: .8rem;
  font-weight: 700;
}

.ai-theme th {
  background: #3b82f61a;
}

td {
  border-bottom: 1px solid #7c3aed1a;
  padding: 18px 15px;
}

.ai-theme td {
  border-bottom: 1px solid #2563eb1a;
}

tr:hover {
  background: #d946ef0d;
}

.ai-theme tr:hover {
  background: #3b82f60d;
}

.component-type {
  color: var(--primary);
  text-transform: uppercase;
  font-size: .85rem;
  font-weight: 700;
}

.price {
  color: var(--neon-pink);
  text-align: right;
  text-shadow: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.total-row {
  background: #d946ef1a;
}

.ai-theme .total-row {
  background: #3b82f61a;
}

.total-row td {
  border-top: 2px solid var(--neon-pink);
  font-size: 1.3rem;
  font-weight: 900;
}

.build-summary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 25px;
  position: relative;
}

.build-summary h3 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.build-summary-content {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.8;
}

.error-message {
  border: 2px solid var(--error);
  color: var(--light);
  text-align: center;
  background: #ef4444e6;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: .95rem;
  display: none;
  box-shadow: 0 0 20px #ef444480;
}

.error-message.active {
  display: block;
}

.footer {
  text-align: right;
  color: var(--gray);
  opacity: .7;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  font-size: .75rem;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.footer .credit {
  margin-bottom: 5px;
}

.footer .warning {
  color: var(--primary);
  font-size: .65rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  color: var(--neon-pink);
}

.achievement-runes {
  text-align: center;
  letter-spacing: 8px;
  opacity: 0;
  height: 20px;
  margin-bottom: 5px;
  font-size: .9rem;
  animation: 1s 4s forwards fadeIn;
}

.achievement-rune {
  color: var(--accent);
  opacity: .2;
  cursor: default;
  font-weight: 700;
  transition: all .5s;
  display: inline-block;
  position: relative;
}

.achievement-rune.unlocked {
  opacity: .8;
  text-shadow: 0 0 10px;
  animation: .5s ease-out runeUnlock;
}

@keyframes runeUnlock {
  0% {
    opacity: 0;
    transform: scale(0)rotate(180deg);
  }

  50% {
    transform: scale(1.2)rotate(90deg);
  }

  100% {
    opacity: .8;
    transform: scale(1)rotate(0);
  }
}

.achievement-rune:hover.unlocked:after {
  content: attr(title);
  color: var(--accent);
  white-space: nowrap;
  border: 1px solid var(--border);
  pointer-events: none;
  opacity: 0;
  letter-spacing: 1px;
  background: #0a0014e6;
  padding: 3px 8px;
  font-size: .7rem;
  animation: .3s forwards fadeIn;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
}

.achievement-container {
  z-index: 10000;
  pointer-events: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.achievement {
  border: 2px solid var(--neon-pink);
  pointer-events: auto;
  opacity: 0;
  background: linear-gradient(135deg, #0f001efa 0%, #1e002dfa 100%);
  min-width: 350px;
  margin-bottom: 15px;
  padding: 0;
  transition: none;
  position: relative;
  overflow: hidden;
  transform: translateY(100px)scale(.8);
  box-shadow: 0 0 50px #d946efcc, inset 0 0 30px #7c3aed4d;
}

.ai-theme .achievement {
  border-color: var(--neon-blue);
  box-shadow: 0 0 50px #3b82f6cc, inset 0 0 30px #2563eb4d;
}

.achievement.show {
  animation: .6s cubic-bezier(.68, -.55, .265, 1.55) forwards achievementSlideIn;
}

.achievement.hide {
  animation: .4s ease-in forwards achievementSlideOut;
}

@keyframes achievementSlideIn {
  0% {
    opacity: 0;
    transform: translateY(100px)scale(.8);
  }

  50% {
    transform: translateY(-20px)scale(1.05);
  }

  100% {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

@keyframes achievementSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0)scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(100px)scale(.8);
  }
}

.achievement-header {
  background: linear-gradient(90deg, var(--neon-pink), var(--primary));
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.ai-theme .achievement-header {
  background: linear-gradient(90deg, var(--neon-blue), var(--primary));
}

.achievement-icon {
  filter: drop-shadow(0 0 10px);
  font-size: 1.8rem;
  animation: 2s linear infinite starSpin;
}

@keyframes starSpin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.achievement-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .8rem;
  font-weight: 700;
}

.achievement-title {
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.2rem;
  font-weight: 900;
}

.achievement:before {
  content: "";
  background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
  width: 100%;
  height: 2px;
  animation: 2s linear infinite achievementScan;
  position: absolute;
  top: 0;
  left: -100%;
}

.ai-theme .achievement:before {
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

@keyframes achievementScan {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.achievement-header:after {
  content: "ACHIEVEMENT UNLOCKED";
  opacity: .1;
  pointer-events: none;
  font-size: .7rem;
  animation: 3s infinite achievementGlitch;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes achievementGlitch {
  0%, 100% {
    text-shadow: 2px 0 #ff0000b3, -2px 0 #00ffffb3;
  }

  33% {
    text-shadow: -2px 0 #ff0000b3, 2px 0 #00ffffb3;
  }

  66% {
    text-shadow: 0 2px #ff0000b3, 0 -2px #00ffffb3;
  }
}

.achievement-particle {
  background: var(--neon-pink);
  pointer-events: none;
  width: 4px;
  height: 4px;
  animation: 1s ease-out forwards achievementParticle;
  position: absolute;
}

.ai-theme .achievement-particle {
  background: var(--neon-blue);
}

@keyframes achievementParticle {
  0% {
    opacity: 1;
    transform: translate(0);
  }

  100% {
    transform: translate(var(--dx), var(--dy));
    opacity: 0;
  }
}

@media (width <= 1200px) {
  .results-container {
    grid-template-columns: 1fr;
  }

  .pc-case-3d {
    margin: 20px auto;
  }
}

@media (width <= 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .usage-grid, .budget-presets {
    grid-template-columns: repeat(2, 1fr);
  }

  .budget-display {
    font-size: 2rem;
  }

  .monitor-window {
    display: none !important;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
  initial-value: rotateX(0);
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
  initial-value: rotateY(0);
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
  initial-value: rotateZ(0);
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false;
  initial-value: skewX(0);
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false;
  initial-value: skewY(0);
}
