
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: var(--font-sans); }
body { margin: 0; line-height: inherit; background-color: hsl(var(--background)); color: hsl(var(--foreground)); }

/* Colors & Backgrounds */
.bg-background { background-color: hsl(var(--background)); }
.bg-background\/80 { background-color: hsl(var(--background) / 0.8); }
.bg-background\/60 { background-color: hsl(var(--background) / 0.6); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-background { color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted\/20 { background-color: hsl(var(--muted) / 0.2); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }
.bg-muted\/40 { background-color: hsl(var(--muted) / 0.4); }
.bg-muted\/50 { background-color: hsl(var(--muted) / 0.5); }
.bg-muted\/60 { background-color: hsl(var(--muted) / 0.6); }
.hover\:bg-muted\/50:hover { background-color: hsl(var(--muted) / 0.5); }
.hover\:bg-muted\/60:hover { background-color: hsl(var(--muted) / 0.6); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.bg-primary { background-color: hsl(var(--primary)); }
.hover\:bg-primary\/90:hover { background-color: hsl(var(--primary) / 0.9); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.bg-accent { background-color: hsl(var(--accent)); }
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }
.hover\:text-accent-foreground:hover { color: hsl(var(--accent-foreground)); }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.bg-destructive { background-color: hsl(var(--destructive)); }
.text-destructive { color: hsl(var(--destructive)); }
.bg-destructive\/10 { background-color: hsl(var(--destructive) / 0.1); }
.border-destructive\/20 { border-color: hsl(var(--destructive) / 0.2); }
.border-destructive\/30 { border-color: hsl(var(--destructive) / 0.3); }
.hover\:bg-destructive\/20:hover { background-color: hsl(var(--destructive) / 0.2); }
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #ffffff; }
.bg-emerald-500 { background-color: #10b981; }

/* Zinc Grayscale */
.bg-zinc-50 { background-color: #fafafa; }
.bg-zinc-100 { background-color: #f4f4f5; }
.bg-zinc-200 { background-color: #e4e4e7; }
.bg-zinc-300 { background-color: #d4d4d8; }
.bg-zinc-400 { background-color: #a1a1aa; }
.bg-zinc-500 { background-color: #71717a; }
.bg-zinc-800 { background-color: #27272a; }
.bg-zinc-900 { background-color: #18181b; }
.text-zinc-50 { color: #fafafa; }
.text-zinc-400 { color: #a1a1aa; }
.text-zinc-500 { color: #71717a; }
.text-zinc-600 { color: #52525b; }
.text-zinc-700 { color: #3f3f46; }
.text-zinc-800 { color: #27272a; }
.text-zinc-900 { color: #18181b; }
.border-zinc-200 { border-color: #e4e4e7; }
.border-zinc-300 { border-color: #d4d4d8; }
.border-zinc-400 { border-color: #a1a1aa; }
.border-zinc-500 { border-color: #71717a; }
.border-zinc-800 { border-color: #27272a; }
.hover\:border-zinc-300:hover { border-color: #d4d4d8; }

/* Borders & Radius */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-border { border-color: hsl(var(--border)); }
.border-border\/40 { border-color: hsl(var(--border) / 0.4); }
.border-border\/60 { border-color: hsl(var(--border) / 0.6); }
.border-input { border-color: hsl(var(--input)); }
.rounded { border-radius: 0.25rem; }
.rounded-\[4px\] { border-radius: 4px; }
.rounded-sm { border-radius: calc(var(--radius) - 4px); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-border { box-shadow: var(--shadow-border); }
.hover\:shadow-border-hover:hover { box-shadow: var(--shadow-border-hover); }

/* Layout & Flex */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.hidden { display: none !important; }
.inset-0 { inset: 0px; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.bottom-5 { bottom: 1.25rem; }
.right-5 { right: 1.25rem; }
.left-1\/2 { left: 50%; }
.top-1\/2 { top: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.bg-black\/50 { background-color: rgb(0 0 0 / 0.5); }
.bg-black\/40 { background-color: rgb(0 0 0 / 0.4); }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-dvh { height: 100dvh; }
.max-h-screen { max-height: 100vh; }
.min-h-0 { min-height: 0px; }
.min-h-screen { min-height: 100vh; }
.max-h-36 { max-height: 9rem; }
.max-h-40 { max-height: 10rem; }
.h-7\.5 { height: 1.875rem; }
.w-20 { width: 5rem; }
.w-\[90px\] { width: 90px; }
.h-\[85px\] { height: 85px; }
.scale-\[0\.65\] { transform: scale(0.65); }
.-bottom-2 { bottom: -0.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.min-w-0 { min-width: 0px; }
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.w-28 { width: 7rem; }
.w-36 { width: 9rem; }
.h-36 { height: 9rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-48 { height: 12rem; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-4xl { max-width: 56rem; }
.min-h-\[300px\] { min-height: 300px; }
.max-h-32 { max-height: 8rem; }
.overflow-x-auto { overflow-x: auto; }
.select-all { user-select: all; }
.break-all { word-break: break-all; }
.cursor-pointer { cursor: pointer; }
button:not(:disabled), [role="button"]:not([aria-disabled="true"]), [role="tab"]:not([aria-disabled="true"]) { cursor: pointer; }
button:disabled, [role="button"][aria-disabled="true"], [role="tab"][aria-disabled="true"] { cursor: not-allowed; }
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color, #e4e4e7); }
.ring-zinc-200\/80 { --tw-ring-color: rgb(228 228 231 / 0.8); }
.ring-zinc-200\/60 { --tw-ring-color: rgb(228 228 231 / 0.6); }
.shadow-xs { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-foreground { color: hsl(var(--foreground)); }

/* Spacing & Flex Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-2\.5 { gap: 0.625rem; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.pt-0 { padding-top: 0px; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-1\.5 { padding-bottom: 0.375rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-2\.5 { padding-bottom: 0.625rem; }
.pb-3 { padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.m-auto { margin: auto; }

/* Space between siblings */
.space-x-1 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.25rem; }
.space-x-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.375rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.625rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* Typography */
.font-sans, .font-mono { font-family: var(--font-sans); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-\[9px\] { font-size: 9px; line-height: 12px; }
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 16px; }
.text-2xs { font-size: 10px; line-height: 14px; }
.text-3xs { font-size: 9px; line-height: 12px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.opacity-0 { opacity: 0; }
.opacity-70 { opacity: 0.7; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* Optical Alignment */
.ps-2\.5 { padding-inline-start: 0.625rem; }
.pe-3 { padding-inline-end: 0.75rem; }
.ps-6 { padding-inline-start: 1.5rem; }
.pe-5 { padding-inline-end: 1.25rem; }
.-translate-y-\[0\.5px\] { transform: translateY(-0.5px); }

/* Contextual Icon Cross-fade */
.blur-0 { filter: blur(0px); }
.blur-\[4px\] { filter: blur(4px); }

/* Dimensionally Stable Active Press States */
.active\:bg-primary\/95:active { background-color: hsl(var(--primary) / 0.95); }
.active\:opacity-90:active { opacity: 0.9; }
.active\:opacity-95:active { opacity: 0.95; }
.active\:bg-accent\/80:active { background-color: hsl(var(--accent) / 0.8); }
.active\:bg-destructive\/30:active { background-color: hsl(var(--destructive) / 0.3); }
.active\:bg-secondary\/90:active { background-color: hsl(var(--secondary) / 0.9); }

/* Transitions & Focus */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-duration: 150ms; }
.transition-all { transition-property: all; transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.ease-custom-out { transition-timing-function: var(--ease-out); }
.ease-custom-in-out { transition-timing-function: var(--ease-in-out); }
.ease-\[cubic-bezier\(0\.23\,1\,0\.32\,1\)\] { transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
.ease-\[cubic-bezier\(0\.77\,0\,0\.175\,1\)\] { transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1); }
.transition-\[color\,background-color\] { transition-property: color, background-color; }
.transition-\[opacity\,background-color\] { transition-property: opacity, background-color; }
.transition-\[color\,background-color\,box-shadow\] { transition-property: color, background-color, box-shadow; }
.transition-\[color\,background-color\,border-color\,box-shadow\] { transition-property: color, background-color, border-color, box-shadow; }
.transition-\[opacity\,filter\] { transition-property: opacity, filter; }
.transition-\[box-shadow\,border-color\] { transition-property: box-shadow, border-color; }
.transition-\[background-color\] { transition-property: background-color; }
.transition-\[background-color\,border-color\] { transition-property: background-color, border-color; }
.will-change-transform-opacity { will-change: opacity, filter; transform: translateZ(0); backface-visibility: hidden; }
@keyframes hud-fade-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
.animate-hud-item { animation: hud-fade-in 200ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.focus-visible\:outline-none:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
.focus-visible\:ring-1:focus-visible { box-shadow: 0 0 0 1px hsl(var(--ring)); }
.focus-visible\:ring-ring:focus-visible { --tw-ring-color: hsl(var(--ring)); }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Backdrop blur & responsive */
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* React Bits Animated Backgrounds */
.aurora-container,
.faulty-terminal-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .sm\:max-h-40 { max-height: 10rem; }
  .sm\:space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem; }
  .sm\:space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:gap-6 { gap: 1.5rem; }
}
@media (min-width: 768px) {
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:p-6 { padding: 1.5rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* Official shadcn/ui zinc light mode theme (Strict Monochrome) */
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;

    --font-sans: 'Google Sans', 'Google Sans Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'Google Sans', 'Google Sans Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --shadow-border:
      0px 0px 0px 1px oklch(0 0 0 / 0.06),
      0px 1px 2px -1px oklch(0 0 0 / 0.06),
      0px 2px 4px 0px oklch(0 0 0 / 0.04);
    --shadow-border-hover:
      0px 0px 0px 1px oklch(0 0 0 / 0.08),
      0px 1px 2px -1px oklch(0 0 0 / 0.08),
      0px 2px 4px 0px oklch(0 0 0 / 0.06);
  }

  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground antialiased;
    font-feature-settings: "rlig" 1, "calt" 1;
  }

  button:not(:disabled),
  [role="button"]:not([aria-disabled="true"]),
  [role="tab"]:not([aria-disabled="true"]) {
    cursor: pointer;
  }

  button:disabled,
  [role="button"][aria-disabled="true"],
  [role="tab"][aria-disabled="true"] {
    cursor: not-allowed;
  }
}

/* Antigravity 3D Orbital Gyroscope Animations */
.orbit-chamber {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.orbit-halo {
  background: radial-gradient(circle, rgba(228, 228, 231, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
}

.orbit-shadow {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(8px);
}

.orbit-ring {
  position: absolute;
  border-radius: 9999px;
  transform-style: preserve-3d;
  pointer-events: none;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.04);
}

.orbit-ring.outer {
  width: 130px;
  height: 130px;
  border: 1px solid #e4e4e7;
  border-top-color: #18181b;
  border-left-color: #52525b;
  animation: gyro-spin-outer 8s linear infinite;
}

.orbit-ring.outer::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #18181b;
  box-shadow: 0 0 6px rgba(24, 24, 27, 0.45);
  transform: translateX(-50%);
}

.orbit-ring.mid {
  width: 98px;
  height: 98px;
  border: 1px solid #e4e4e7;
  border-top-color: #27272a;
  border-right-color: #71717a;
  animation: gyro-spin-mid 6s linear infinite reverse;
}

.orbit-ring.mid::after {
  content: "";
  position: absolute;
  top: -2.5px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #27272a;
  box-shadow: 0 0 5px rgba(39, 39, 42, 0.45);
  transform: translateX(-50%);
}

.orbit-ring.inner {
  width: 68px;
  height: 68px;
  border: 1px solid #e4e4e7;
  border-bottom-color: #3f3f46;
  border-left-color: #71717a;
  animation: gyro-spin-inner 4.2s linear infinite;
}

.orbit-ring.inner::after {
  content: "";
  position: absolute;
  bottom: -2.5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #3f3f46;
  box-shadow: 0 0 4px rgba(63, 63, 70, 0.45);
  transform: translateX(-50%);
}

.accelerated .orbit-ring.outer {
  animation: gyro-spin-outer 2.2s linear infinite !important;
}

.accelerated .orbit-ring.mid {
  animation: gyro-spin-mid 1.6s linear infinite reverse !important;
}

.accelerated .orbit-ring.inner {
  animation: gyro-spin-inner 1.1s linear infinite !important;
}

@keyframes gyro-spin-outer {
  0% { transform: rotateX(65deg) rotateY(15deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes gyro-spin-mid {
  0% { transform: rotateX(-35deg) rotateY(60deg) rotateZ(0deg); }
  100% { transform: rotateX(-35deg) rotateY(60deg) rotateZ(360deg); }
}

@keyframes gyro-spin-inner {
  0% { transform: rotateX(45deg) rotateY(-45deg) rotateZ(0deg); }
  100% { transform: rotateX(45deg) rotateY(-45deg) rotateZ(360deg); }
}

.cursor-pointer {
  cursor: pointer;
}

.spinner-quantum {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Layered Surface Depth Shadows */
.shadow-border { box-shadow: var(--shadow-border); }
.hover\:shadow-border-hover:hover { box-shadow: var(--shadow-border-hover); }

/* Concentric Border Radius */
.rounded-\[4px\] { border-radius: 4px; }

/* Optical Alignment */
.ps-2\.5 { padding-inline-start: 0.625rem; }
.pe-3 { padding-inline-end: 0.75rem; }
.ps-6 { padding-inline-start: 1.5rem; }
.pe-5 { padding-inline-end: 1.25rem; }
.-translate-y-\[0\.5px\] { transform: translateY(-0.5px); }

/* Contextual Icon Cross-fade */
.blur-0 { filter: blur(0px); }
.blur-\[4px\] { filter: blur(4px); }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

/* Dimensionally Stable Active Press States (No Geometric Deformation) */
.active\:bg-primary\/95:active { background-color: hsl(var(--primary) / 0.95); }
.active\:opacity-90:active { opacity: 0.9; }
.active\:opacity-95:active { opacity: 0.95; }
.active\:bg-accent\/80:active { background-color: hsl(var(--accent) / 0.8); }
.active\:bg-destructive\/30:active { background-color: hsl(var(--destructive) / 0.3); }
.active\:bg-secondary\/90:active { background-color: hsl(var(--secondary) / 0.9); }

/* Scoped Transitions & Arbitrary Easing Utilities */
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.ease-custom-out { transition-timing-function: var(--ease-out); }
.ease-custom-in-out { transition-timing-function: var(--ease-in-out); }
.ease-\[cubic-bezier\(0\.23\,1\,0\.32\,1\)\] { transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
.ease-\[cubic-bezier\(0\.77\,0\,0\.175\,1\)\] { transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1); }
.transition-\[color\,background-color\] { transition-property: color, background-color; }
.transition-\[opacity\,background-color\] { transition-property: opacity, background-color; }
.transition-\[color\,background-color\,box-shadow\] { transition-property: color, background-color, box-shadow; }
.transition-\[color\,background-color\,border-color\,box-shadow\] { transition-property: color, background-color, border-color, box-shadow; }
.transition-\[opacity\,filter\] { transition-property: opacity, filter; }
.transition-\[box-shadow\,border-color\] { transition-property: box-shadow, border-color; }
.transition-\[background-color\] { transition-property: background-color; }
.transition-\[background-color\,border-color\] { transition-property: background-color, border-color; }

/* GPU Compositing for Smooth Icon Cross-fade */
.will-change-transform-opacity {
  will-change: opacity, filter;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Staggered HUD Telemetry Entrance Animation */
@keyframes hud-fade-in {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-hud-item {
  animation: hud-fade-in 200ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Responsive Viewport & 100% Fit Screen Utilities */
.h-screen { height: 100vh; }
.h-dvh { height: 100dvh; }
.max-h-screen { max-height: 100vh; }
.min-h-0 { min-height: 0px; }
.max-h-36 { max-height: 9rem; }
.max-h-40 { max-height: 10rem; }
.w-\[90px\] { width: 90px; }
.h-\[85px\] { height: 85px; }
.scale-\[0\.65\] { transform: scale(0.65); }
.h-7\.5 { height: 1.875rem; }
.w-20 { width: 5rem; }
.-bottom-2 { bottom: -0.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.m-auto { margin: auto; }
.text-\[9px\] { font-size: 9px; line-height: 12px; }
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 16px; }
.whitespace-nowrap { white-space: nowrap; }
.min-w-0 { min-width: 0px; }
.left-1\/2 { left: 50%; }
.top-1\/2 { top: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.bg-black\/50 { background-color: rgb(0 0 0 / 0.5); }
.bg-black\/40 { background-color: rgb(0 0 0 / 0.4); }

@media (min-width: 640px) {
  .sm\:max-h-40 { max-height: 10rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .sm\:space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem; }
}

.aurora-container,
.faulty-terminal-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* React Bits SwipeToast Component Styles */
.swipe-toast {
  --st-bg: #27272a;
  --st-ink: #f5f5f5;
  --st-fuse: #f5a524;
  --st-fuse-h: 2px;
  --st-w: 356px;
  --st-radius: 12px;
  --st-slide: 400ms;
  --st-gap: 10px;
  --st-offset: 32px;
  --st-z: 999999999;
  --st-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  display: grid;
  grid-template-rows: 1fr;
  width: min(var(--st-w), 100%);
  color: var(--st-ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.swipe-toast[data-inline='false'] {
  position: fixed;
  right: var(--st-offset);
  bottom: calc(var(--st-offset) + env(safe-area-inset-bottom, 0px));
  z-index: var(--st-z);
  width: min(var(--st-w), calc(100vw - 2 * var(--st-offset)));
}

@media (max-width: 600px) {
  .swipe-toast[data-inline='false'] {
    --st-offset: 16px;
  }
}

.swipe-toast[data-inline='true'] {
  transition: grid-template-rows var(--st-slide) var(--st-ease-out);
}

.swipe-toast[data-inline='true'][data-mounted='false'] {
  grid-template-rows: 0fr;
}

.swipe-toast[data-inline='true'][data-phase='closing'],
.swipe-toast[data-inline='true'][data-phase='gone'] {
  grid-template-rows: 0fr;
}

.swipe-toast[data-inline='true'][data-phase='closing'] {
  transition-duration: calc(var(--st-slide) * 0.7);
}

.swipe-toast[data-inline='true'][data-phase='gone'] {
  transition-duration: 200ms;
}

.swipe-toast__gate {
  min-height: 0;
}

.swipe-toast[data-inline='true'] .swipe-toast__lift {
  margin-top: var(--st-gap);
}

.swipe-toast__lift {
  opacity: 1;
  transform: translateY(0);
  transition:
    transform var(--st-slide) var(--st-ease-out),
    opacity calc(var(--st-slide) * 0.6) ease;
}

@starting-style {
  .swipe-toast[data-inline='true'] {
    grid-template-rows: 0fr;
  }

  .swipe-toast__lift {
    opacity: 0;
    transform: translateY(100%);
  }
}

.swipe-toast[data-mounted='false'] .swipe-toast__lift {
  opacity: 0;
  transform: translateY(100%);
}

.swipe-toast[data-phase='closing'] .swipe-toast__lift {
  opacity: 0;
  transform: translateY(100%);
  transition:
    transform calc(var(--st-slide) * 0.7) var(--st-ease-out),
    opacity calc(var(--st-slide) * 0.5) ease;
}

.swipe-toast[data-phase='gone'] .swipe-toast__lift {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
}

.swipe-toast[data-instant] .swipe-toast__lift {
  transition-duration: 0s;
}

.swipe-toast__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--st-radius);
  overflow: hidden;
  background: var(--st-bg);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: grab;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.swipe-toast__card[data-swiping] {
  cursor: grabbing;
}

.swipe-toast[data-dismissible='false'] .swipe-toast__card {
  cursor: default;
  touch-action: auto;
}

.swipe-toast__icon {
  display: inline-flex;
  flex: none;
  width: 18px;
  height: 18px;
}

.swipe-toast__icon svg {
  width: 100%;
  height: 100%;
}

.swipe-toast__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.swipe-toast__title {
  font-weight: 500;
  line-height: 1.5;
}

.swipe-toast__desc {
  color: color-mix(in srgb, var(--st-ink) 66%, transparent);
  font-weight: 400;
  line-height: 1.4;
}

.swipe-toast__action,
.swipe-toast__close {
  flex: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--st-ease-out),
    background-color 160ms ease,
    opacity 160ms ease;
}

.swipe-toast__action {
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--st-ink);
  color: var(--st-bg);
  font-size: 12px;
  font-weight: 500;
}

.swipe-toast__close {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: transparent;
  color: inherit;
}

.swipe-toast__close::before {
  content: '';
  position: absolute;
  inset: -8px;
}

.swipe-toast__action:active,
.swipe-toast__close:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .swipe-toast__action:hover {
    opacity: 0.88;
  }

  .swipe-toast__close:hover {
    background: color-mix(in srgb, var(--st-ink) 10%, transparent);
  }
}

.swipe-toast__fuse {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--st-fuse-h);
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--st-fuse) 18%, transparent) 9%,
    color-mix(in srgb, var(--st-fuse) 50%, transparent) 18%,
    color-mix(in srgb, var(--st-fuse) 84%, transparent) 28%,
    var(--st-fuse) 38%,
    var(--st-fuse) 62%,
    color-mix(in srgb, var(--st-fuse) 84%, transparent) 72%,
    color-mix(in srgb, var(--st-fuse) 50%, transparent) 82%,
    color-mix(in srgb, var(--st-fuse) 18%, transparent) 91%,
    transparent 100%
  );
  transform-origin: left center;
  pointer-events: none;
}

.swipe-toast[data-fuse='top'] .swipe-toast__fuse {
  top: 0;
  bottom: auto;
}

.swipe-toast[data-fuse='none'] .swipe-toast__fuse {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .swipe-toast__lift {
    transform: none !important;
    transition: opacity 200ms ease;
  }

  .swipe-toast__action:active,
  .swipe-toast__close:active {
    transform: none;
  }
}

