/* QCode.cc Custom Styles */

/* latin */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: optional; src: url('/static/fonts/inter-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: optional; src: url('/static/fonts/inter-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: optional; src: url('/static/fonts/inter-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: optional; src: url('/static/fonts/inter-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: optional; src: url('/static/fonts/inter-cyrillic-400.woff2') format('woff2'); unicode-range: U+0400-04FF, U+0500-052F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: optional; src: url('/static/fonts/inter-cyrillic-500.woff2') format('woff2'); unicode-range: U+0400-04FF, U+0500-052F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: optional; src: url('/static/fonts/inter-cyrillic-600.woff2') format('woff2'); unicode-range: U+0400-04FF, U+0500-052F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: optional; src: url('/static/fonts/inter-cyrillic-700.woff2') format('woff2'); unicode-range: U+0400-04FF, U+0500-052F; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: optional; src: url('/static/fonts/jetbrains-mono-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: optional; src: url('/static/fonts/jetbrains-mono-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: optional; src: url('/static/fonts/jetbrains-mono-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: optional; src: url('/static/fonts/jetbrains-mono-cyrillic-400.woff2') format('woff2'); unicode-range: U+0400-04FF, U+0500-052F; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: optional; src: url('/static/fonts/jetbrains-mono-cyrillic-500.woff2') format('woff2'); unicode-range: U+0400-04FF, U+0500-052F; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: optional; src: url('/static/fonts/jetbrains-mono-cyrillic-700.woff2') format('woff2'); unicode-range: U+0400-04FF, U+0500-052F; }

/* Alpine.js: hide x-cloak elements until Alpine initializes */
[x-cloak] { display: none !important; }

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: rgb(217, 119, 87);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(195, 100, 70);
}

/* HTMX loading states */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline;
}

.htmx-request.htmx-indicator {
    display: inline;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Fade transitions */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.qc-keep.bg-qcode-primary,
.qc-keep .bg-qcode-primary { background-color: #a35941; }
.qc-keep.bg-orange-500,
.qc-keep .bg-orange-500 { background-color: #ae500f; }
.qc-keep.bg-red-500,
.qc-keep .bg-red-500 { background-color: #cb3a3a; }
.qc-keep.bg-green-500,
.qc-keep .bg-green-500 { background-color: #16803d; }
.qc-keep.bg-indigo-500,
.qc-keep .bg-indigo-500 { background-color: #5e61e5; }

.qc-keep.hover\:bg-qcode-primary-hover:hover,
.qc-keep .hover\:bg-qcode-primary-hover:hover { background-color: #8f4d38; }
.qc-keep.hover\:bg-orange-600:hover,
.qc-keep .hover\:bg-orange-600:hover { background-color: #96450d; }

html[data-theme="light"] .panel-dark .text-yellow-200 { color: #78350f; }

/* Code blocks */
pre {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Form styles */
.form-input {
    @apply block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-qcode-primary focus:border-qcode-primary;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
}

/* Card styles */
.card {
    @apply bg-white rounded-lg shadow-md border border-gray-200;
}

.card-header {
    @apply px-6 py-4 border-b border-gray-200;
}

.card-body {
    @apply p-6;
}

.card-footer {
    @apply px-6 py-4 border-t border-gray-200 bg-gray-50;
}

/* Stats cards */
.stat-card {
    @apply bg-white rounded-lg shadow p-6 border border-gray-200;
}

.stat-value {
    @apply text-2xl font-bold text-gray-900;
}

.stat-label {
    @apply text-sm font-medium text-gray-500 uppercase tracking-wide;
}

/* Navigation active state */
.nav-link-active {
    @apply text-qcode-primary border-b-2 border-qcode-primary;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .container-mobile {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background-color: #1a202c;
        color: #e2e8f0;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        color: black !important;
        background: white !important;
    }
}

.reveal-init {
    opacity: 0;
    transform: translateY(16px);
}
.reveal-init.reveal-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-bg-scale {
    transform: scale(1.05);
    transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-bg-scale.hero-bg-in {
    transform: scale(1);
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.btn-shimmer:hover::after {
    transform: translateX(100%);
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(134, 134, 139, 0.18);
}
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: skeleton-sweep 1.4s ease-in-out infinite;
}
@keyframes skeleton-sweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-init { opacity: 1; transform: none; }
    .reveal-init.reveal-in, .hero-bg-scale, .btn-shimmer::after { transition: none; }
    .hero-bg-scale { transform: none; }
    .skeleton::after { animation: none; }
}
.nav-auth-dark > div > a, .nav-auth-dark > div > span, .nav-auth-dark > div > button,
.nav-auth-dark > div > div > button { color: rgb(255 255 255 / 0.8); }
.nav-auth-dark > div > a:hover { color: #fff; }

.probe-ok { color: #059669; }
.probe-rate { color: #e85d04; }
.probe-muted { color: #6b7280; }
.probe-dim { color: #9ca3af; }
.probe-inline { background: rgba(255,255,255,0.6); border-color: rgba(16,185,129,0.2); color: #065f46; }
:where(.bg-ink-950, .bg-ink-900) .probe-ok { color: #34d399; }
:where(.bg-ink-950, .bg-ink-900) .probe-rate { color: rgb(217 119 87); }
:where(.bg-ink-950, .bg-ink-900) .probe-muted { color: rgb(255 255 255 / 0.6); }
:where(.bg-ink-950, .bg-ink-900) .probe-dim { color: rgb(255 255 255 / 0.4); }
:where(.bg-ink-950, .bg-ink-900) .probe-inline { background: rgba(255,255,255,0.05); border-color: rgba(52,211,153,0.3); color: #a7f3d0; }

.panel-dark .bg-white { background-color: #141416; }
.panel-dark .bg-gray-50, .panel-dark .bg-gray-100 { background-color: #1D1D1F; }
.panel-dark .text-gray-900, .panel-dark .text-gray-800 { color: #fff; }
.panel-dark .text-gray-700, .panel-dark .text-gray-600 { color: rgb(255 255 255 / 0.7); }
.panel-dark .text-gray-500, .panel-dark .text-gray-400 { color: rgb(255 255 255 / 0.4); }
.panel-dark .border-gray-200, .panel-dark .border-gray-100,
.panel-dark .divide-gray-200 > * + *, .panel-dark .divide-gray-100 > * + * { border-color: rgb(255 255 255 / 0.1); }
.panel-dark .bg-red-50 { background-color: rgb(239 68 68 / 0.1); }
.panel-dark .bg-orange-50 { background-color: rgb(249 115 22 / 0.1); }
.panel-dark .bg-yellow-50 { background-color: rgb(234 179 8 / 0.1); }
.panel-dark .bg-green-50 { background-color: rgb(34 197 94 / 0.1); }
.panel-dark .bg-blue-50 { background-color: rgb(59 130 246 / 0.1); }
.panel-dark .bg-purple-50 { background-color: rgb(168 85 247 / 0.1); }
.panel-dark .bg-indigo-50 { background-color: rgb(99 102 241 / 0.1); }
.panel-dark .bg-amber-50 { background-color: rgb(245 158 11 / 0.1); }
.panel-dark .bg-emerald-50 { background-color: rgb(16 185 129 / 0.1); }
.panel-dark .shadow-lg, .panel-dark .shadow-md, .panel-dark .shadow-sm, .panel-dark .shadow { box-shadow: none; }
.panel-dark input:not([type=checkbox]):not([type=radio]), .panel-dark select, .panel-dark textarea {
    background-color: #1D1D1F; border-color: rgb(255 255 255 / 0.15); color: #fff;
}
.panel-dark input::placeholder, .panel-dark textarea::placeholder { color: rgb(255 255 255 / 0.4); }


.panel-dark .bg-red-100 { background-color: rgb(239 68 68 / 0.15); }
.panel-dark .bg-orange-100 { background-color: rgb(249 115 22 / 0.15); }
.panel-dark .bg-yellow-100 { background-color: rgb(234 179 8 / 0.15); }
.panel-dark .bg-green-100 { background-color: rgb(34 197 94 / 0.15); }
.panel-dark .bg-blue-100 { background-color: rgb(59 130 246 / 0.15); }
.panel-dark .bg-purple-100 { background-color: rgb(168 85 247 / 0.15); }

.panel-dark .text-red-600, .panel-dark .text-red-700, .panel-dark .text-red-800, .panel-dark .text-red-900 { color: #fca5a5; }
.panel-dark .text-orange-600, .panel-dark .text-orange-700, .panel-dark .text-orange-800, .panel-dark .text-orange-900 { color: #fdba74; }
.panel-dark .text-yellow-600, .panel-dark .text-yellow-700, .panel-dark .text-yellow-800, .panel-dark .text-yellow-900 { color: #fde047; }
.panel-dark .text-green-600, .panel-dark .text-green-700, .panel-dark .text-green-800, .panel-dark .text-green-900 { color: #86efac; }
.panel-dark .text-blue-600, .panel-dark .text-blue-700, .panel-dark .text-blue-800, .panel-dark .text-blue-900 { color: #93c5fd; }
.panel-dark .text-purple-600, .panel-dark .text-purple-700, .panel-dark .text-purple-800, .panel-dark .text-purple-900 { color: #d8b4fe; }
.panel-dark .text-indigo-600, .panel-dark .text-indigo-700, .panel-dark .text-indigo-800, .panel-dark .text-indigo-900 { color: #a5b4fc; }
.panel-dark .text-amber-600, .panel-dark .text-amber-700, .panel-dark .text-amber-800, .panel-dark .text-amber-900 { color: #fcd34d; }
.panel-dark .text-emerald-600, .panel-dark .text-emerald-700, .panel-dark .text-emerald-800, .panel-dark .text-emerald-900 { color: #6ee7b7; }

.panel-dark .border-red-50, .panel-dark .border-red-100, .panel-dark .border-red-200, .panel-dark .border-red-300,
.panel-dark .border-orange-50, .panel-dark .border-orange-100, .panel-dark .border-orange-200, .panel-dark .border-orange-300,
.panel-dark .border-yellow-50, .panel-dark .border-yellow-100, .panel-dark .border-yellow-200, .panel-dark .border-yellow-300,
.panel-dark .border-green-50, .panel-dark .border-green-100, .panel-dark .border-green-200, .panel-dark .border-green-300,
.panel-dark .border-blue-50, .panel-dark .border-blue-100, .panel-dark .border-blue-200, .panel-dark .border-blue-300,
.panel-dark .border-purple-50, .panel-dark .border-purple-100, .panel-dark .border-purple-200, .panel-dark .border-purple-300,
.panel-dark .border-indigo-50, .panel-dark .border-indigo-100, .panel-dark .border-indigo-200, .panel-dark .border-indigo-300,
.panel-dark .border-amber-50, .panel-dark .border-amber-100, .panel-dark .border-amber-200, .panel-dark .border-amber-300 {
    border-color: rgb(255 255 255 / 0.1);
}

.panel-dark .from-red-50, .panel-dark .to-red-50, .panel-dark .to-red-100 { background-image: none; background-color: rgb(239 68 68 / 0.12); }
.panel-dark .from-orange-50, .panel-dark .to-orange-50, .panel-dark .to-orange-100 { background-image: none; background-color: rgb(249 115 22 / 0.12); }
.panel-dark .from-yellow-50, .panel-dark .via-yellow-50, .panel-dark .to-yellow-50, .panel-dark .to-yellow-100 { background-image: none; background-color: rgb(234 179 8 / 0.12); }
.panel-dark .from-green-50, .panel-dark .to-green-50, .panel-dark .to-green-100 { background-image: none; background-color: rgb(34 197 94 / 0.12); }
.panel-dark .from-blue-50, .panel-dark .from-blue-100, .panel-dark .to-blue-50, .panel-dark .to-blue-100 { background-image: none; background-color: rgb(59 130 246 / 0.12); }
.panel-dark .from-purple-50, .panel-dark .to-purple-50, .panel-dark .to-purple-100 { background-image: none; background-color: rgb(168 85 247 / 0.12); }
.panel-dark .from-indigo-50, .panel-dark .to-indigo-50, .panel-dark .to-indigo-100 { background-image: none; background-color: rgb(99 102 241 / 0.12); }
.panel-dark .from-amber-50, .panel-dark .via-amber-50, .panel-dark .to-amber-50, .panel-dark .to-amber-100 { background-image: none; background-color: rgb(245 158 11 / 0.12); }
.panel-dark .from-emerald-50, .panel-dark .to-emerald-50, .panel-dark .to-emerald-100 { background-image: none; background-color: rgb(16 185 129 / 0.12); }
.panel-dark .from-gray-50, .panel-dark .to-gray-50 { background-image: none; background-color: rgb(255 255 255 / 0.06); }

.panel-dark .hover\:bg-red-50:hover, .panel-dark .hover\:bg-red-100:hover, .panel-dark .hover\:bg-red-200:hover { background-color: rgb(239 68 68 / 0.15); }
.panel-dark .hover\:bg-orange-50:hover, .panel-dark .hover\:bg-orange-100:hover, .panel-dark .hover\:bg-orange-200:hover { background-color: rgb(249 115 22 / 0.15); }
.panel-dark .hover\:bg-yellow-50:hover, .panel-dark .hover\:bg-yellow-100:hover, .panel-dark .hover\:bg-yellow-200:hover { background-color: rgb(234 179 8 / 0.15); }
.panel-dark .hover\:bg-green-50:hover, .panel-dark .hover\:bg-green-100:hover, .panel-dark .hover\:bg-green-200:hover { background-color: rgb(34 197 94 / 0.15); }
.panel-dark .hover\:bg-blue-50:hover, .panel-dark .hover\:bg-blue-100:hover, .panel-dark .hover\:bg-blue-200:hover { background-color: rgb(59 130 246 / 0.15); }
.panel-dark .hover\:bg-purple-50:hover, .panel-dark .hover\:bg-purple-100:hover, .panel-dark .hover\:bg-purple-200:hover { background-color: rgb(168 85 247 / 0.15); }
.panel-dark .hover\:bg-gray-50:hover, .panel-dark .hover\:bg-gray-100:hover { background-color: rgb(255 255 255 / 0.1); }

.panel-dark .hover\:text-blue-600:hover, .panel-dark .hover\:text-blue-700:hover, .panel-dark .hover\:text-blue-800:hover { color: #93c5fd; }
.panel-dark .hover\:text-emerald-600:hover { color: #6ee7b7; }
.panel-dark .hover\:text-red-600:hover, .panel-dark .hover\:text-red-700:hover, .panel-dark .hover\:text-red-800:hover { color: #fca5a5; }
.panel-dark .hover\:text-gray-600:hover { color: rgb(255 255 255 / 0.7); }
.panel-dark .hover\:text-gray-800:hover { color: #fff; }
.panel-dark .hover\:border-gray-300:hover { border-color: rgb(255 255 255 / 0.15); }
.panel-dark .hover\:border-red-200:hover, .panel-dark .hover\:border-indigo-300:hover { border-color: rgb(255 255 255 / 0.2); }
.panel-dark .group:hover .group-hover\:bg-blue-200 { background-color: rgb(59 130 246 / 0.15); }
.panel-dark .group:hover .group-hover\:bg-green-200 { background-color: rgb(34 197 94 / 0.15); }
.panel-dark .group:hover .group-hover\:bg-orange-200 { background-color: rgb(249 115 22 / 0.15); }
.panel-dark .group:hover .group-hover\:text-blue-600 { color: #93c5fd; }
.panel-dark .group:hover .group-hover\:text-red-700 { color: #fca5a5; }

.panel-dark .bg-gray-200 { background-color: rgb(255 255 255 / 0.1); }
.panel-dark .text-gray-300 { color: rgb(255 255 255 / 0.3); }
.panel-dark .border-gray-300 { border-color: rgb(255 255 255 / 0.15); }

:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-white { background-color: #141416; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-gray-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-gray-100 { background-color: #1D1D1F; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-gray-900,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-gray-800 { color: #fff; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-gray-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-gray-600 { color: rgb(255 255 255 / 0.7); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-gray-500,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-gray-400 { color: rgb(255 255 255 / 0.4); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-gray-200,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-gray-100 { border-color: rgb(255 255 255 / 0.1); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-gray-300 { border-color: rgb(255 255 255 / 0.15); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-red-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-orange-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-amber-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-green-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-blue-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-indigo-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-yellow-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-emerald-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-purple-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-slate-50 { background-color: rgb(255 255 255 / 0.06); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-green-100 { background-color: rgb(34 197 94 / 0.15); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-blue-100 { background-color: rgb(59 130 246 / 0.15); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-orange-100 { background-color: rgb(249 115 22 / 0.15); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-red-100 { background-color: rgb(239 68 68 / 0.15); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-yellow-100 { background-color: rgb(234 179 8 / 0.15); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .bg-purple-100 { background-color: rgb(168 85 247 / 0.15); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-red-600,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-red-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-red-800,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-red-900 { color: #fca5a5; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-orange-600,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-orange-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-orange-800,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-orange-900 { color: #fdba74; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-yellow-600,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-yellow-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-yellow-800,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-yellow-900 { color: #fde047; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-green-600,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-green-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-green-800,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-green-900 { color: #86efac; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-blue-600,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-blue-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-blue-800,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-blue-900 { color: #93c5fd; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-purple-600,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-purple-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-purple-800,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-purple-900 { color: #d8b4fe; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-indigo-600,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-indigo-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-indigo-800,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-indigo-900 { color: #a5b4fc; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-amber-600,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-amber-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-amber-800,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-amber-900 { color: #fcd34d; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-emerald-600,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-emerald-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-emerald-800,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-emerald-900 { color: #6ee7b7; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-slate-600,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-slate-700,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-slate-800,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .text-slate-900 { color: #cbd5e1; }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-blue-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-blue-200,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-green-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-green-200,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-orange-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-orange-200,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-amber-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-amber-200,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-indigo-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-indigo-200,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-red-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-red-200,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-yellow-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-yellow-200,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-purple-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .border-purple-200 { border-color: rgb(255 255 255 / 0.1); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .from-blue-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .from-green-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .from-orange-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .from-orange-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .from-slate-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .via-yellow-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .via-amber-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .to-indigo-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .to-emerald-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .to-amber-50,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .to-amber-100,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .to-gray-200 {
    background-image: none;
    background-color: rgb(255 255 255 / 0.06);
}
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .hover\:bg-gray-50:hover,
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .hover\:bg-gray-100:hover { background-color: rgb(255 255 255 / 0.1); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .hover\:text-gray-600:hover { color: rgb(255 255 255 / 0.7); }
:where(html[data-theme="dark"] .bg-ink-950) .fixed.inset-0.bg-black .hover\:text-blue-800:hover { color: #93c5fd; }



.pv-accent { color: #d97757; }

.pv-meter { position: relative; }
.pv-meter-head {
    display: flex; justify-content: flex-end; margin-bottom: 10px;
    font-size: 12px; line-height: 1.35; text-align: right;
}
.pv-meter-track {
    position: relative; height: 10px; border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
}
.pv-meter-fill {
    position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9999px;
    background: linear-gradient(90deg, #d97757, #eda07e);
    min-width: 5px;
}
.pv-meter-dot {
    position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 9999px;
    transform: translate(-50%, -50%); border: 2.5px solid #0A0A0B;
}
.pv-meter-dot--official { background: #8e8e93; }
.pv-meter-dot--base { background: #ffffff; width: 10px; height: 10px; }
.pv-meter-dot--yours { background: #d97757; width: 14px; height: 14px; }
.pv-meter-labels { position: relative; height: 66px; }
.pv-meter-leader {
    position: absolute; top: 2px; width: 2px; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
}
.pv-meter-leader--base { height: 12px; }
.pv-meter-leader--yours { height: 34px; background: rgba(217, 119, 87, 0.6); }
.pv-meter-tag { position: absolute; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.pv-meter-tag--base { top: 16px; }
.pv-meter-tag--yours { top: 40px; }
.pv-meter-gap {
    position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%);
    padding: 4px 14px; border-radius: 9999px; font-size: 12px; font-weight: 700;
    font-family: 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap;
    background: #141416; border: 1px solid rgba(217, 119, 87, 0.45); color: #d97757;
}
@media (max-width: 640px) {
    .pv-meter-gap { left: 60%; font-size: 11px; padding: 3px 10px; }
    .pv-meter-tag { font-size: 11px; }
    .pv-meter-head { font-size: 11px; }
}

.pv-card-value {
    margin: 0 0 12px; padding: 8px 10px; border-radius: 10px;
    background: rgba(217, 119, 87, 0.07); border: 1px solid rgba(217, 119, 87, 0.22);
}
.pv-card-rate-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pv-card-rate { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 13px; }
.pv-card-quota { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; margin-top: 1px; }
.pv-card-l2 {
    display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
    margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 11px;
}
.pv-strike { text-decoration: line-through; text-decoration-thickness: 1px; opacity: 0.75; }
.pv-card-l2chip {
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 11px;
    padding: 1px 6px; border-radius: 6px; background: rgba(217, 119, 87, 0.14);
}

.pv-calc-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700;
    font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.02em;
}
@media (max-width: 640px) { .pv-calc-num { font-size: 2.1rem; } }
.pv-quick-chip {
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.05);
    cursor: pointer; transition: all 0.15s ease;
}
.pv-quick-chip:hover { border-color: rgba(217, 119, 87, 0.6); }
.pv-quick-chip.pv-active { background: #b04a2e; border-color: #b04a2e; color: #fff; }
.pv-calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; }
.pv-calc-row + .pv-calc-row { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pv-calc-val { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 15px; }

.pv-wf { display: grid; grid-template-columns: 1fr auto 1fr auto 1.3fr; gap: 12px; align-items: stretch; }
.pv-wf-stage {
    border-radius: 16px; padding: 20px 16px; text-align: center;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.pv-wf-num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 1.65rem; }
.pv-wf-stage--final { position: relative; }
.pv-wf-final-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700;
    font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em;
}
.pv-wf-arrow {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; min-width: 84px; text-align: center;
}
.pv-wf-arrow-note { font-size: 11px; line-height: 1.3; max-width: 110px; }
@media (max-width: 900px) {
    .pv-wf { grid-template-columns: 1fr; }
    .pv-wf-arrow { min-width: 0; padding: 2px 0; }
    .pv-wf-arrow svg { transform: rotate(90deg); }
    .pv-wf-arrow-note { max-width: none; }
    .pv-wf-final-num { font-size: 2.1rem; }
}

.pv-why-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #d97757, #ea8b5a);
}



@media (min-width: 768px) and (max-width: 1023px) {
  html .qc-nav-desktop { display: none; }
  html .qc-nav-burger,
  html .qc-nav-mobile { display: block; }
}

.qc-hero-sell-item > a { display: inline-flex; align-items: center; }

html[data-theme="light"] body.qc-page-models .text-blue-400 { color: #1d4ed8; }
html[data-theme="light"] body.qc-page-models .text-emerald-400 { color: #047857; }
html[data-theme="light"] body.qc-page-models .text-amber-400 { color: #b45309; }
html[data-theme="light"] body.qc-page-models .text-purple-400 { color: #7e22ce; }
html[data-theme="light"] body.qc-page-models .text-violet-400 { color: #6d28d9; }
html[data-theme="light"] body.qc-page-models .text-rose-400 { color: #be123c; }
html[data-theme="light"] body.qc-page-models .text-orange-400 { color: #c2410c; }
html[data-theme="light"] body.qc-page-models .text-fuchsia-400 { color: #a21caf; }
html[data-theme="dark"] body.qc-page-models.qc-ink .bg-white\/10.text-white\/50:not(.qc-keep) { color: rgba(255, 255, 255, 0.62); }
html[data-theme="dark"] body.qc-page-models.qc-ink .text-xs.text-white\/40:not(.qc-keep) { color: rgba(255, 255, 255, 0.62); }

@media (max-width: 639px) {
  .qc-cmp-table { font-size: 12px; }
  .qc-cmp-table th,
  .qc-cmp-table td { padding: 8px 6px; }
  .qc-cmp-table th:first-child,
  .qc-cmp-table td:first-child { white-space: nowrap; }
}

@media (max-width: 767px) {
  .qc-scroll-table { min-width: 720px; }
  .qc-scroll-table th:first-child,
  .qc-scroll-table td:first-child { white-space: nowrap; }
}

html[lang^="zh"] .qc-hero-title { word-break: keep-all; overflow-wrap: anywhere; }

@media (max-width: 639px) {
  .qc-docs-sum::after { content: "+"; font-weight: 400; font-size: 1.25em; line-height: 1; opacity: 0.6; margin-left: 12px; }
  .qc-docs-fold.is-open .qc-docs-sum::after { content: "\2212"; }
}

.qc-foot-social { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }
.qc-foot-links { width: 100%; }
@media (min-width: 1024px) { .qc-foot-links { width: auto; } }

body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .qc-nav-mobile #mobile-auth-status a:not([href*="sign-up"]) { color: var(--qc-fg-body); }
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .qc-nav-mobile #mobile-auth-status a:not([href*="sign-up"]):hover { color: var(--qc-fg); }
body:has(.qc-hero--imaged) .qc-nav-overlay:not(.is-scrolled) .qc-nav-mobile .qc-theme-toggle {
  color: var(--qc-fg);
  border-color: color-mix(in srgb, var(--qc-fg) 15%, transparent);
  background: color-mix(in srgb, var(--qc-fg) 6%, transparent);
}
.qc-nav-overlay #mobile-auth-status a[href*="sign-up"] { background: var(--qc-brand); color: var(--qc-brand-on); }
.qc-nav-overlay #mobile-auth-status a[href*="sign-up"]:hover { background: var(--qc-brand-hover); color: var(--qc-brand-on); }
/* Header sign-up on every header: it carries qc-keep (the theme remap skips it) and the dark-header rule
   above would fade its label to 80% white, so it takes the brand fill with brand-on text. Colour only. */
#auth-status a[href*="sign-up"],
#mobile-auth-status a[href*="sign-up"] { background: var(--qc-brand); color: var(--qc-brand-on); }
#auth-status a[href*="sign-up"]:hover,
#mobile-auth-status a[href*="sign-up"]:hover { background: var(--qc-brand-hover); color: var(--qc-brand-on); }

.qc-geo { margin-bottom: var(--qc-space-7); }
.qc-geo-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--qc-space-3);
  font-size: var(--qc-text-sm);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--qc-brand-text);
}
.qc-geo-kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--qc-brand);
}
.qc-geo-lead {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--qc-fg);
  text-wrap: balance;
}
.qc-geo-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--qc-space-5);
  margin: var(--qc-space-6) 0 0;
}
.qc-geo-fact {
  min-width: 0;
  padding-top: var(--qc-space-4);
  border-top: 1px solid var(--qc-hairline-strong);
}
.qc-geo-fact dt {
  margin: 0 0 var(--qc-space-2);
  font-size: var(--qc-text-label);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qc-fg-muted);
}
.qc-geo-fact dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.qc-geo-val {
  font-size: var(--qc-text-h3);
  font-weight: 600;
  line-height: 1.4;
  color: var(--qc-fg);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
html[lang^="zh"] :is(.qc-geo-lead, .qc-geo-val, .qc-geo-desc) { word-break: keep-all; overflow-wrap: anywhere; }
html[lang^="ja"] :is(.qc-geo-lead, .qc-geo-val, .qc-geo-desc) { word-break: auto-phrase; }
/* Korean breaks between syllables by default, which splits words mid-word. Keep words whole on the
   whole page: body for inheritance, plus the common text elements so the rule also wins over class
   rules that set word-break themselves. break-word still keeps a long URL or model name inside its
   container; code keeps normal breaking. */
html[lang|="ko"] body,
html[lang|="ko"] :is(h1,h2,h3,h4,h5,h6,p,li,a,button,span,div,td,th,caption,label,summary,dt,dd,blockquote,figcaption) { word-break: keep-all; overflow-wrap: break-word; }
html[lang|="ko"] :is(pre, code, kbd, samp, pre *, code *) { word-break: normal; }
.qc-geo-desc {
  font-size: var(--qc-text-sm);
  line-height: 1.5;
  color: var(--qc-fg-muted);
  text-wrap: pretty;
}
.qc-geo-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-size: var(--qc-text-sm);
  font-weight: 500;
  color: var(--qc-brand-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.qc-geo-link:hover { color: var(--qc-fg); border-bottom-color: currentColor; }
.qc-geo-link:focus-visible { outline: 2px solid var(--qc-focus); outline-offset: 2px; }
@media (max-width: 1023px) {
  .qc-geo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--qc-space-5) var(--qc-space-4); }
}
@media (max-width: 639px) {
  .qc-geo { margin-bottom: var(--qc-space-6); }
  .qc-geo-lead { font-size: 18px; line-height: 1.45; }
  .qc-geo-facts { margin-top: var(--qc-space-5); gap: var(--qc-space-4) var(--qc-space-3); }
  .qc-geo-fact { padding-top: var(--qc-space-3); }
  .qc-geo-val { font-size: 15px; }
  .qc-geo-desc,
  .qc-geo-link { font-size: 13px; }
}
