/* Hide default number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Range slider */
.domain-slider {
    background: linear-gradient(to right, #06b6d4 25%, rgba(255,255,255,0.08) 25%);
}
.domain-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}
.domain-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
}
.domain-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    cursor: pointer;
}
.domain-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
}
html:not(.dark) .domain-slider {
    background: linear-gradient(to right, #0891b2 25%, rgba(0,0,0,0.08) 25%);
}
html:not(.dark) .domain-slider::-webkit-slider-thumb {
    background: #0891b2;
    box-shadow: 0 0 8px rgba(8, 145, 178, 0.4);
}
html:not(.dark) .domain-slider::-moz-range-thumb {
    background: #0891b2;
    box-shadow: 0 0 8px rgba(8, 145, 178, 0.4);
}
html:not(.dark) .domain-slider::-moz-range-track {
    background: rgba(0,0,0,0.08);
}

/* AI toggle unchecked state */
.ai-toggle {
    background: rgba(255, 255, 255, 0.1);
}
html:not(.dark) .ai-toggle {
    background: rgba(0, 0, 0, 0.15);
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

/* Light theme */
html:not(.dark) body {
    background: #f0f4f8;
    color: #1e293b;
}
html:not(.dark) .bg-surface-950 { background: #f0f4f8; }
html:not(.dark) .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
}
html:not(.dark) .bg-white\/5 { background: rgba(0, 0, 0, 0.03); }
html:not(.dark) .border-white\/10 { border-color: rgba(0, 0, 0, 0.08); }
html:not(.dark) .text-gray-100 { color: #1e293b; }
html:not(.dark) .text-gray-400 { color: #64748b; }
html:not(.dark) .text-gray-500 { color: #94a3b8; }
html:not(.dark) .text-gray-600 { color: #475569; }
html:not(.dark) .text-gray-200 { color: #0f172a; }
html:not(.dark) .text-white { color: #0f172a; }
html:not(.dark) .hover\:bg-white\/10:hover { background: rgba(0, 0, 0, 0.04); }
html:not(.dark) .bg-white\/\[0\.07\] { background: rgba(0, 0, 0, 0.04); }
html:not(.dark) .placeholder-gray-600::placeholder { color: #94a3b8; }
html:not(.dark) #resultsControls {
    backdrop-filter: blur(16px);
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
.dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
html:not(.dark) ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

/* GEO chip */
.geo-chip {
    transition: all 0.15s ease;
    font-size: 11px;
    letter-spacing: 0.02em;
}
.zone-chip {
    transition: all 0.15s ease;
    font-size: 11px;
    letter-spacing: 0.02em;
}
.geo-chip.active {
    background: rgba(6, 182, 212, 0.2) !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    color: #22d3ee !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.1);
}
.zone-chip.active {
    background: rgba(6, 182, 212, 0.2) !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    color: #22d3ee !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.1);
}
html:not(.dark) .geo-chip.active {
    background: rgba(6, 182, 212, 0.12) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
    color: #0891b2 !important;
}
html:not(.dark) .zone-chip.active {
    background: rgba(6, 182, 212, 0.12) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
    color: #0891b2 !important;
}

/* Collapsible brand block */
.brand-collapse > summary {
    list-style: none;
}
.brand-collapse > summary::-webkit-details-marker {
    display: none;
}
.brand-collapse > summary .collapse-caret {
    display: inline-block;
    transition: transform 0.15s ease;
    color: #64748b;
    font-size: 10px;
    line-height: 1;
    width: 1.25rem;
    text-align: center;
}
.brand-collapse[open] > summary .collapse-caret {
    transform: rotate(90deg);
    color: #22d3ee;
}

/* Domain card */
.domain-card {
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease-out forwards;
}
.domain-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}
html:not(.dark) .domain-card:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Purchase link */
.purchase-link {
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
}
.purchase-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Brand group animation */
.brand-group {
    animation: fadeIn 0.35s ease-out forwards;
    opacity: 0;
}
.brand-group:nth-child(1) { animation-delay: 0s; }
.brand-group:nth-child(2) { animation-delay: 0.08s; }
.brand-group:nth-child(3) { animation-delay: 0.16s; }
.brand-group:nth-child(4) { animation-delay: 0.24s; }
.brand-group:nth-child(5) { animation-delay: 0.32s; }

/* Glow dot */
.glow-dot {
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}
