:root {
    --dark-900: #050505;
    --dark-800: #0d0d12;
    --dark-700: #14141c;
    --dark-600: #1e1e2a;
    --dark-500: #2b2b3a;
    --neon-cyan: #00f0ff;
    --neon-cyan-hover: #00c3cf;
    --neon-red: #ff003c;
    --neon-red-hover: #cc0030;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    background: var(--dark-900);
    color: var(--gray-200);
    font-family: inherit;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
button, input, select, textarea { margin: 0; font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(0, 240, 255, 0.3); color: #fff; }

/* Core layout utilities used by the static HTML shell. */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline { display: inline; }
.hidden { display: none !important; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.group { position: relative; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.mx-auto { margin-right: auto; margin-left: auto; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-80 { width: 20rem; }
.w-12 { width: 3rem; }
.w-10 { width: 2.5rem; }
.w-8 { width: 2rem; }
.w-6 { width: 1.5rem; }
.w-5 { width: 1.25rem; }
.w-3 { width: 0.75rem; }
.w-2\.5, [class~="w-2.5"] { width: 0.625rem; }
.w-1\.5, [class~="w-1.5"] { width: 0.375rem; }
.h-full { height: 100%; }
.h-16 { height: 4rem; }
.h-12 { height: 3rem; }
.h-10 { height: 2.5rem; }
.h-8 { height: 2rem; }
.h-6 { height: 1.5rem; }
.h-5 { height: 1.25rem; }
.h-3 { height: 0.75rem; }
.h-2\.5, [class~="h-2.5"] { height: 0.625rem; }
.h-1\.5, [class~="h-1.5"] { height: 0.375rem; }
.h-\[95vh\], [class~="h-[95vh]"] { height: 95vh; }
.h-\[35\%\], [class~="h-[35%]"] { height: 35%; }
.h-\[65\%\], [class~="h-[65%]"] { height: 65%; }
.min-h-screen { min-height: 100vh; }
.min-h-\[600px\], [class~="min-h-[600px]"] { min-height: 600px; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.w-1\/3, [class~="w-1/3"] { width: 33.333333%; }
.w-2\/3, [class~="w-2/3"] { width: 66.666667%; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }

.m-4 { margin: 1rem; }
.mt-0\.5, [class~="mt-0.5"] { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-4 { margin-left: 1rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.p-0 { padding: 0; }
.p-1\.5, [class~="p-1.5"] { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5, [class~="p-2.5"] { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-right: 0.5rem; padding-left: 0.5rem; }
.px-2\.5, [class~="px-2.5"] { padding-right: 0.625rem; padding-left: 0.625rem; }
.px-3 { padding-right: 0.75rem; padding-left: 0.75rem; }
.px-4 { padding-right: 1rem; padding-left: 1rem; }
.px-6 { padding-right: 1.5rem; padding-left: 1.5rem; }
.py-0\.5, [class~="py-0.5"] { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5, [class~="py-1.5"] { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pl-4 { padding-left: 1rem; }
.pr-28 { padding-right: 7rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-1\/2, [class~="top-1/2"] { top: 50%; }
.right-2 { right: 0.5rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.-translate-y-1\/2, [class~="-translate-y-1/2"] { transform: translateY(-50%); }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.resize-none { resize: none; }
.cursor-pointer { cursor: pointer; }

/* Theme utilities. Attribute selectors preserve classes containing slash characters. */
.bg-dark-900, [class~="bg-dark-900"] { background-color: var(--dark-900); }
.bg-dark-800, [class~="bg-dark-800"] { background-color: var(--dark-800); }
.bg-dark-700, [class~="bg-dark-700"] { background-color: var(--dark-700); }
.bg-neon-cyan, [class~="bg-neon-cyan"] { background-color: var(--neon-cyan); }
[class~="bg-dark-900/30"] { background-color: rgba(5, 5, 5, 0.3); }
[class~="bg-dark-900/40"] { background-color: rgba(5, 5, 5, 0.4); }
[class~="bg-dark-900/50"] { background-color: rgba(5, 5, 5, 0.5); }
[class~="bg-dark-900/60"] { background-color: rgba(5, 5, 5, 0.6); }
[class~="bg-dark-900/80"] { background-color: rgba(5, 5, 5, 0.8); }
[class~="bg-dark-800/50"] { background-color: rgba(13, 13, 18, 0.5); }
[class~="bg-dark-800/80"] { background-color: rgba(13, 13, 18, 0.8); }
[class~="bg-dark-700/50"] { background-color: rgba(20, 20, 28, 0.5); }
[class~="bg-neon-cyan/5"] { background-color: rgba(0, 240, 255, 0.05); }
[class~="bg-neon-cyan/10"] { background-color: rgba(0, 240, 255, 0.1); }
[class~="bg-neon-cyan/20"] { background-color: rgba(0, 240, 255, 0.2); }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-transparent { border-color: transparent; }
.border-gray-600 { border-color: var(--gray-600); }
.border-neon-cyan, [class~="border-neon-cyan"] { border-color: var(--neon-cyan); }
.border-neon-red, [class~="border-neon-red"] { border-color: var(--neon-red); }
[class~="border-neon-cyan/10"] { border-color: rgba(0, 240, 255, 0.1); }
[class~="border-neon-cyan/20"] { border-color: rgba(0, 240, 255, 0.2); }
[class~="border-neon-cyan/30"] { border-color: rgba(0, 240, 255, 0.3); }
[class~="border-neon-cyan/50"] { border-color: rgba(0, 240, 255, 0.5); }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.text-white { color: #fff; }
.text-dark-900, [class~="text-dark-900"] { color: var(--dark-900); }
.text-neon-cyan, [class~="text-neon-cyan"] { color: var(--neon-cyan); }
.text-neon-red, [class~="text-neon-red"] { color: var(--neon-red); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-green-400 { color: #4ade80; }
.text-blue-400 { color: #60a5fa; }
.text-yellow-400 { color: #facc15; }
[class~="text-neon-cyan/70"] { color: rgba(0, 240, 255, 0.7); }
.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-3xl { font-size: 1.875rem; line-height: 2.25rem; }
[class~="text-[10px]"] { font-size: 0.625rem; line-height: 0.875rem; }
.font-sans { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.font-mono { font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-display { font-family: Rajdhani, Inter, ui-sans-serif, system-ui, sans-serif; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.transition-colors { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.transition-all { transition: all 180ms ease; }
.focus\:outline-none:focus, [class~="focus:outline-none"]:focus { outline: none; }

[class~="hover:bg-dark-800"]:hover { background-color: var(--dark-800); }
[class~="hover:bg-dark-700/50"]:hover { background-color: rgba(20, 20, 28, 0.5); }
[class~="hover:bg-neon-cyan"]:hover { background-color: var(--neon-cyan); }
[class~="hover:bg-neon-cyan/30"]:hover { background-color: rgba(0, 240, 255, 0.3); }
[class~="hover:bg-neon-cyanHover"]:hover { background-color: var(--neon-cyan-hover); }
[class~="hover:bg-neon-red"]:hover { background-color: var(--neon-red); }
[class~="hover:bg-white"]:hover { background-color: #fff; }
[class~="hover:border-neon-cyan/30"]:hover { border-color: rgba(0, 240, 255, 0.3); }
[class~="hover:text-dark-900"]:hover { color: var(--dark-900); }
[class~="hover:text-neon-cyan"]:hover { color: var(--neon-cyan); }
[class~="hover:text-neon-cyanHover"]:hover { color: var(--neon-cyan-hover); }
[class~="hover:text-white"]:hover { color: #fff; }
[class~="hover:underline"]:hover { text-decoration: underline; }
.group:hover [class~="group-hover:text-neon-cyanHover"] { color: var(--neon-cyan-hover); }

/* Accessibility helpers. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
*:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }

.custom-scrollbar { scrollbar-color: var(--neon-cyan) var(--dark-800); scrollbar-width: thin; }
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: var(--dark-800); }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--neon-cyan); }

@media (min-width: 640px) {
    .sm\:flex, [class~="sm:flex"] { display: flex; }
    .sm\:block, [class~="sm:block"] { display: block; }
    .sm\:inline, [class~="sm:inline"] { display: inline; }
    .sm\:hidden, [class~="sm:hidden"] { display: none !important; }
    .sm\:flex-row, [class~="sm:flex-row"] { flex-direction: row; }
    .sm\:flex-none, [class~="sm:flex-none"] { flex: none; }
    .sm\:items-center, [class~="sm:items-center"] { align-items: center; }
    .sm\:items-end, [class~="sm:items-end"] { align-items: flex-end; }
    .sm\:gap-4, [class~="sm:gap-4"] { gap: 1rem; }
    .sm\:p-4, [class~="sm:p-4"] { padding: 1rem; }
    .sm\:p-6, [class~="sm:p-6"] { padding: 1.5rem; }
    .sm\:p-8, [class~="sm:p-8"] { padding: 2rem; }
    .sm\:px-6, [class~="sm:px-6"] { padding-right: 1.5rem; padding-left: 1.5rem; }
    .sm\:py-4, [class~="sm:py-4"] { padding-top: 1rem; padding-bottom: 1rem; }
    .sm\:h-4, [class~="sm:h-4"] { height: 1rem; }
    .sm\:h-10, [class~="sm:h-10"] { height: 2.5rem; }
    .sm\:w-2\/3, [class~="sm:w-2/3"] { width: 66.666667%; }
    .sm\:w-4, [class~="sm:w-4"] { width: 1rem; }
    .sm\:w-10, [class~="sm:w-10"] { width: 2.5rem; }
    .sm\:w-auto, [class~="sm:w-auto"] { width: auto; }
    .sm\:max-w-\[12rem\], [class~="sm:max-w-[12rem]"] { max-width: 12rem; }
    .sm\:text-xs, [class~="sm:text-xs"] { font-size: 0.75rem; line-height: 1rem; }
    .sm\:text-sm, [class~="sm:text-sm"] { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-base, [class~="sm:text-base"] { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg, [class~="sm:text-lg"] { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-xl, [class~="sm:text-xl"] { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-2xl, [class~="sm:text-2xl"] { font-size: 1.5rem; line-height: 2rem; }
    .sm\:text-4xl, [class~="sm:text-4xl"] { font-size: 2.25rem; line-height: 2.5rem; }
}

@media (min-width: 768px) {
    .md\:flex-row, [class~="md:flex-row"] { flex-direction: row; }
    .md\:flex-1, [class~="md:flex-1"] { flex: 1 1 0%; }
    .md\:h-full, [class~="md:h-full"] { height: 100%; }
    .md\:w-80, [class~="md:w-80"] { width: 20rem; }
    .md\:grid-cols-2, [class~="md:grid-cols-2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:flex-row, [class~="lg:flex-row"] { flex-direction: row; }
    .lg\:p-6, [class~="lg:p-6"] { padding: 1.5rem; }
    .lg\:p-8, [class~="lg:p-8"] { padding: 2rem; }
    .lg\:w-1\/3, [class~="lg:w-1/3"] { width: 33.333333%; }
    .lg\:w-2\/3, [class~="lg:w-2/3"] { width: 66.666667%; }
}

@keyframes core-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.52; transform: scale(0.86); }
}
.animate-pulse { animation: core-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-pulse-soft { animation: core-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

.offline-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.28);
    background: rgba(13, 13, 18, 0.82);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.offline-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    content: '';
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}
.offline-kicker { font-size: 0.7rem; letter-spacing: 0.14em; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
