/* Nearby Bikes design tokens */
:root {
    --nc-primary: #0891b2;
    --nc-primary-dark: #0e7490;
    --nc-primary-light: #ecfeff;
    --nc-accent: #f97316;
    --nc-bg: #f0f9ff;
    --nc-surface: #ffffff;
    --nc-text: #0f172a;
    --nc-text-muted: #64748b;
    --nc-border: #e2e8f0;
    --nc-shadow: 0 10px 40px rgba(8, 145, 178, 0.12);
}

/* Light theme — always bright when dark class is absent */
html:not(.dark) {
    color-scheme: light;
}

html:not(.dark) body:not(.nc-admin) {
    background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 280px, #f8fafc 100%) !important;
    color: #0f172a !important;
}

html:not(.dark) body.nc-admin {
    background-color: #f9fafb !important;
    color: #111827 !important;
}

html:not(.dark) .bg-white,
html:not(.dark) .nc-card,
html:not(.dark) .nc-cat-tab,
html:not(.dark) .nc-cat-subcard {
    background-color: #ffffff !important;
}

html:not(.dark) .bg-slate-50 {
    background-color: #f8fafc !important;
}

html:not(.dark) .bg-gray-50 {
    background-color: #f9fafb !important;
}

html:not(.dark) .text-gray-900 {
    color: #111827 !important;
}

html:not(.dark) .text-gray-800 {
    color: #1f2937 !important;
}

html:not(.dark) .text-gray-700,
html:not(.dark) .text-gray-600 {
    color: #374151 !important;
}

html:not(.dark) .text-gray-500 {
    color: #6b7280 !important;
}

html:not(.dark) .text-gray-400 {
    color: #9ca3af !important;
}

/* Slate + brand text — lock light colors so OS dark mode cannot wash them out */
html:not(.dark) .text-slate-950,
html:not(.dark) .text-slate-900 {
    color: #0f172a !important;
}

html:not(.dark) .text-slate-800 {
    color: #1e293b !important;
}

html:not(.dark) .text-slate-700 {
    color: #334155 !important;
}

html:not(.dark) .text-slate-600 {
    color: #475569 !important;
}

html:not(.dark) .text-slate-500 {
    color: #64748b !important;
}

html:not(.dark) .text-slate-400 {
    color: #94a3b8 !important;
}

html:not(.dark) .text-black {
    color: #000000 !important;
}

html:not(.dark) .text-violet-600 {
    color: #7c3aed !important;
}

html:not(.dark) .text-violet-700 {
    color: #6d28d9 !important;
}

html:not(.dark) .text-violet-800 {
    color: #5b21b6 !important;
}

html:not(.dark) .text-indigo-600 {
    color: var(--nc-primary) !important;
}

html:not(.dark) .text-indigo-700 {
    color: var(--nc-primary-dark) !important;
}

html:not(.dark) .text-indigo-800 {
    color: #155e75 !important;
}

html:not(.dark) .hover\:text-indigo-600:hover,
html:not(.dark) .hover\:text-indigo-700:hover,
html:not(.dark) .hover\:text-indigo-800:hover {
    color: var(--nc-primary-dark) !important;
}

/* Brand primary — Tailwind "indigo" utilities use Nearby Bikes cyan everywhere */
html:not(.dark) .bg-indigo-600 {
    background-color: var(--nc-primary) !important;
}

html:not(.dark) .bg-indigo-500 {
    background-color: #06b6d4 !important;
}

html:not(.dark) .hover\:bg-indigo-700:hover {
    background-color: var(--nc-primary-dark) !important;
}

html:not(.dark) .bg-indigo-50,
html:not(.dark) .hover\:bg-indigo-50:hover {
    background-color: var(--nc-primary-light) !important;
}

html:not(.dark) .bg-indigo-100,
html:not(.dark) .hover\:bg-indigo-100:hover {
    background-color: #cffafe !important;
}

html:not(.dark) .border-indigo-200 {
    border-color: #a5f3fc !important;
}

html:not(.dark) .border-indigo-600,
html:not(.dark) .peer:checked ~ .peer-checked\:border-indigo-600 {
    border-color: var(--nc-primary) !important;
}

html:not(.dark) .peer:checked ~ .peer-checked\:bg-indigo-50\/80 {
    background-color: rgba(236, 254, 255, 0.8) !important;
}

html:not(.dark) .peer:checked ~ .peer-checked\:bg-indigo-600,
html:not(.dark) .peer-checked\:bg-indigo-600 {
    background-color: var(--nc-primary) !important;
}

html:not(.dark) .focus\:ring-indigo-500:focus,
html:not(.dark) .focus-within\:ring-indigo-500:focus-within {
    --tw-ring-color: var(--nc-primary) !important;
}

html:not(.dark) .focus\:border-indigo-500:focus,
html:not(.dark) .focus-within\:border-indigo-500:focus-within {
    border-color: var(--nc-primary) !important;
}

html:not(.dark) .shadow-indigo-200 {
    --tw-shadow-color: rgba(8, 145, 178, 0.22) !important;
}

html:not(.dark) .from-indigo-500 {
    --tw-gradient-from: #06b6d4 var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html:not(.dark) .to-violet-500 {
    --tw-gradient-to: var(--nc-primary) var(--tw-gradient-to-position) !important;
}

html:not(.dark) .from-indigo-50 {
    --tw-gradient-from: var(--nc-primary-light) var(--tw-gradient-from-position) !important;
}

html:not(.dark) .to-indigo-100\/60 {
    --tw-gradient-to: rgb(165 243 252 / 0.6) var(--tw-gradient-to-position) !important;
}

html:not(.dark) .text-indigo-400 {
    color: #22d3ee !important;
}

html:not(.dark) .file\:bg-indigo-50::file-selector-button {
    background-color: var(--nc-primary-light) !important;
}

html:not(.dark) .file\:text-indigo-700::file-selector-button {
    color: var(--nc-primary-dark) !important;
}

html:not(.dark) .hover\:file\:bg-indigo-100:hover::file-selector-button {
    background-color: #cffafe !important;
}

html:not(.dark) .text-rose-600 {
    color: #e11d48 !important;
}

html:not(.dark) .text-rose-700 {
    color: #be123c !important;
}

html:not(.dark) .text-amber-700 {
    color: #b45309 !important;
}

html:not(.dark) .text-amber-800 {
    color: #92400e !important;
}

html:not(.dark) .text-emerald-600,
html:not(.dark) .text-green-600 {
    color: #059669 !important;
}

html:not(.dark) .text-emerald-700,
html:not(.dark) .text-green-700 {
    color: #047857 !important;
}

html:not(.dark) .text-blue-600 {
    color: #2563eb !important;
}

html:not(.dark) .text-blue-700 {
    color: #1d4ed8 !important;
}

html:not(.dark) .text-cyan-600 {
    color: #0891b2 !important;
}

html:not(.dark) .text-cyan-700 {
    color: #0e7490 !important;
}

/*
 * Tailwind CDN may still emit dark: rules via prefers-color-scheme even when
 * darkMode is set to 'class'. On Macs/phones in system dark mode that paints
 * pale text onto our light UI (common when browsing via LAN IP). Neutralize
 * those utilities whenever the app theme is light.
 */
@media (prefers-color-scheme: dark) {
    html:not(.dark) .dark\:text-white,
    html:not(.dark) .dark\:text-slate-50,
    html:not(.dark) .dark\:text-slate-100,
    html:not(.dark) .dark\:text-slate-200,
    html:not(.dark) .dark\:text-slate-300,
    html:not(.dark) .dark\:text-slate-400,
    html:not(.dark) .dark\:text-gray-50,
    html:not(.dark) .dark\:text-gray-100,
    html:not(.dark) .dark\:text-gray-200,
    html:not(.dark) .dark\:text-gray-300,
    html:not(.dark) .dark\:text-gray-400,
    html:not(.dark) .dark\:text-violet-200,
    html:not(.dark) .dark\:text-violet-300,
    html:not(.dark) .dark\:text-violet-400,
    html:not(.dark) .dark\:text-indigo-200,
    html:not(.dark) .dark\:text-indigo-300,
    html:not(.dark) .dark\:text-rose-200,
    html:not(.dark) .dark\:text-rose-300,
    html:not(.dark) .dark\:text-amber-200,
    html:not(.dark) .dark\:text-amber-300,
    html:not(.dark) .dark\:text-emerald-200,
    html:not(.dark) .dark\:text-emerald-300,
    html:not(.dark) .dark\:text-green-200,
    html:not(.dark) .dark\:text-green-300,
    html:not(.dark) .dark\:text-blue-200,
    html:not(.dark) .dark\:text-blue-300,
    html:not(.dark) .dark\:text-cyan-200,
    html:not(.dark) .dark\:text-cyan-300,
    html:not(.dark) .dark\:text-sky-200,
    html:not(.dark) .dark\:text-sky-300 {
        /* Drop CDN media-dark colors; paired light text-* utilities keep contrast */
        color: unset;
    }

    /* Listing card image overlays — Tailwind dark:bg-* still fires here; force light pill styling */
    html:not(.dark) .nc-card-overlay-btn,
    html:not(.dark) .nc-card-fuel-badge {
        background-color: rgba(255, 255, 255, 0.95) !important;
        color: #1f2937 !important;
        border-color: rgba(226, 232, 240, 0.85) !important;
    }

    html:not(.dark) .nc-card-overlay-btn:hover {
        background-color: #ffffff !important;
        color: var(--nc-primary) !important;
    }
}

/* Listing card image overlays — share, favorite, fuel badge */
.nc-card-overlay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nc-card-overlay-btn:hover {
    background: #ffffff;
    color: var(--nc-primary);
}

.nc-card-fuel-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

html.dark .nc-card-overlay-btn {
    background: rgba(15, 23, 42, 0.92);
    color: #f1f5f9;
    border-color: rgba(71, 85, 105, 0.85);
}

html.dark .nc-card-overlay-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    color: #67e8f9;
}

html.dark .nc-card-fuel-badge {
    background: rgba(15, 23, 42, 0.92);
    color: #f1f5f9;
    border-color: rgba(71, 85, 105, 0.85);
}

/* Home — Near You Bikes / Business tab switcher */
.nc-near-you-tabs {
    position: relative;
    display: flex;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(to bottom, #f1f5f9, #f8fafc);
    padding: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html.dark .nc-near-you-tabs {
    border-color: #334155;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.nc-near-you-tab {
    position: relative;
    z-index: 10;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    transition: color 0.2s ease;
}

html.dark .nc-near-you-tab {
    color: #94a3b8;
}

.nc-near-you-tab:hover:not(.is-active) {
    color: var(--nc-primary);
}

html.dark .nc-near-you-tab:hover:not(.is-active) {
    color: #67e8f9;
}

.nc-near-you-tab.is-active {
    color: #ffffff;
}

/* Report listing modal — readable in light theme even when OS prefers dark */
.nc-report-modal {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.nc-report-modal__header {
    border-bottom: 1px solid #f3f4f6;
}

.nc-report-modal__title {
    color: #111827;
}

.nc-report-modal__subtitle {
    color: #6b7280;
}

.nc-report-modal__label {
    color: #374151;
}

.nc-report-modal__field,
.nc-report-modal select,
.nc-report-modal textarea {
    width: 100%;
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.nc-report-modal__field:focus,
.nc-report-modal select:focus,
.nc-report-modal textarea:focus {
    outline: none;
    border-color: var(--nc-primary);
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.25);
}

.nc-report-modal__cancel {
    background: #f3f4f6;
    color: #374151;
}

.nc-report-modal__cancel:hover {
    background: #e5e7eb;
}

html.dark .nc-report-modal {
    background: #0f172a;
    border-color: #334155;
}

html.dark .nc-report-modal__header {
    border-bottom-color: #334155;
}

html.dark .nc-report-modal__title {
    color: #f1f5f9;
}

html.dark .nc-report-modal__subtitle {
    color: #94a3b8;
}

html.dark .nc-report-modal__label {
    color: #cbd5e1;
}

html.dark .nc-report-modal__field,
html.dark .nc-report-modal select,
html.dark .nc-report-modal textarea {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
}

html.dark .nc-report-modal__cancel {
    background: #334155;
    color: #e2e8f0;
}

html.dark .nc-report-modal__cancel:hover {
    background: #475569;
}

@media (prefers-color-scheme: dark) {
    html:not(.dark) .nc-report-modal {
        background: #ffffff !important;
        border-color: #e5e7eb !important;
    }

    html:not(.dark) .nc-report-modal__header {
        border-bottom-color: #f3f4f6 !important;
    }

    html:not(.dark) .nc-report-modal__title {
        color: #111827 !important;
    }

    html:not(.dark) .nc-report-modal__subtitle {
        color: #6b7280 !important;
    }

    html:not(.dark) .nc-report-modal__label {
        color: #374151 !important;
    }

    html:not(.dark) .nc-report-modal__field,
    html:not(.dark) .nc-report-modal select,
    html:not(.dark) .nc-report-modal textarea {
        background: #ffffff !important;
        color: #111827 !important;
        border-color: #d1d5db !important;
    }

    html:not(.dark) .nc-report-modal__cancel {
        background: #f3f4f6 !important;
        color: #374151 !important;
    }

    html:not(.dark) .nc-report-modal__cancel:hover {
        background: #e5e7eb !important;
    }
}

html:not(.dark) header,
html:not(.dark) footer {
    background-color: transparent !important;
}

html:not(.dark) .nc-cat-sticky-bar {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.97) 85%, rgba(248, 250, 252, 0)) !important;
}

html:not(.dark) .nc-nav-link:not(.is-active):hover {
    background-color: rgba(243, 244, 246, 0.95) !important;
    color: #111827 !important;
}

/* Header icon buttons — soft cyan hover */
.nc-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.375rem;
    color: #4b5563;
    transition: color 0.15s ease, background-color 0.15s ease;
}

@media (min-width: 640px) {
    .nc-header-icon {
        padding: 0.5rem;
    }
}

.nc-header-icon:hover {
    background-color: rgba(236, 254, 255, 0.95) !important;
    color: #0891b2 !important;
}

.dark .nc-header-icon {
    color: #cbd5e1 !important;
}

.dark .nc-header-icon:hover {
    background-color: rgba(8, 145, 178, 0.22) !important;
    color: #a5f3fc !important;
}

.nc-theme-toggle-btn {
    min-width: 2rem;
    min-height: 2rem;
}

@media (min-width: 640px) {
    .nc-theme-toggle-btn {
        min-width: 2.5rem;
        min-height: 2.5rem;
    }
}

.nc-theme-toggle-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 640px) {
    .nc-theme-toggle-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.nc-theme-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.nc-theme-icon-sun {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.nc-theme-icon-moon {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.dark .nc-theme-icon-sun {
    opacity: 0;
    transform: scale(0.92);
}

.dark .nc-theme-icon-moon {
    opacity: 1;
    transform: scale(1);
}

html:not(.dark) .nc-theme-toggle-btn {
    color: #374151 !important;
}

html:not(.dark) .nc-theme-toggle-btn:hover {
    color: #0891b2 !important;
}

.nc-theme-menu-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #374151;
    text-align: left;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nc-theme-menu-item:hover {
    background-color: #f9fafb;
}

.nc-theme-menu-item.is-active {
    color: #0891b2;
    font-weight: 500;
}

.dark .nc-theme-menu-item {
    color: #e2e8f0;
}

.dark .nc-theme-menu-item:hover {
    background-color: #1e293b;
}

.dark .nc-theme-menu-item.is-active {
    color: #67e8f9;
}

.nc-location-btn:hover {
    background-color: rgba(236, 254, 255, 0.95) !important;
}

.dark .nc-location-btn:hover {
    background-color: rgba(8, 145, 178, 0.15) !important;
}

.nc-mobile-menu-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #374151;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nc-mobile-menu-link:hover {
    background-color: rgba(236, 254, 255, 0.95) !important;
    color: #0891b2 !important;
}

.dark .nc-mobile-menu-link {
    color: #e2e8f0 !important;
}

.dark .nc-mobile-menu-link:hover {
    background-color: rgba(8, 145, 178, 0.18) !important;
    color: #a5f3fc !important;
}

/* Dark theme compatibility for Tailwind utility pages */
.dark {
    color-scheme: dark;
}

.dark body {
    background-color: #0b1220 !important;
    color: #f1f5f9 !important;
}

.dark .bg-white {
    background-color: #0f172a !important;
}

.dark .bg-slate-50 {
    background-color: #020617 !important;
}

.dark .bg-gray-50 {
    background-color: #1e293b !important;
}

.dark .bg-gray-100 {
    background-color: #1e293b !important;
}

.dark .bg-gray-200 {
    background-color: #334155 !important;
}

/* Tailwind opacity modifier classes (e.g. bg-gray-50/60, bg-slate-800/70) */
.dark [class*="bg-gray-50/"],
.dark [class*="bg-gray-100/"],
.dark [class*="bg-slate-50/"],
.dark [class*="bg-slate-100/"] {
    background-color: rgba(30, 41, 59, 0.85) !important;
}

.dark [class*="bg-gray-200/"],
.dark [class*="bg-slate-200/"] {
    background-color: rgba(51, 65, 85, 0.85) !important;
}

.dark .text-gray-900 {
    color: #ffffff !important;
}

.dark .text-gray-800 {
    color: #f8fafc !important;
}

.dark .text-gray-700 {
    color: #f1f5f9 !important;
}

.dark .text-gray-600 {
    color: #e2e8f0 !important;
}

.dark .text-gray-500 {
    color: #cbd5e1 !important;
}

.dark .text-gray-400 {
    color: #cbd5e1 !important;
}

.dark .text-gray-300 {
    color: #e2e8f0 !important;
}

/* Slate utilities (many pages use these without dark: variants) */
.dark .text-slate-950,
.dark .text-slate-900 {
    color: #ffffff !important;
}

.dark .text-slate-800 {
    color: #f8fafc !important;
}

.dark .text-slate-700 {
    color: #f1f5f9 !important;
}

.dark .text-slate-600 {
    color: #e2e8f0 !important;
}

.dark .text-slate-500 {
    color: #cbd5e1 !important;
}

.dark .text-slate-400 {
    color: #cbd5e1 !important;
}

.dark .text-slate-300 {
    color: #e2e8f0 !important;
}

.dark .text-slate-200 {
    color: #f1f5f9 !important;
}

.dark .text-slate-100,
.dark .text-slate-50 {
    color: #ffffff !important;
}

.dark .bg-slate-100 {
    background-color: #1e293b !important;
}

.dark .bg-slate-200 {
    background-color: #334155 !important;
}

.dark .border-slate-100,
.dark .border-slate-200 {
    border-color: #334155 !important;
}

.dark .border-slate-300 {
    border-color: #475569 !important;
}

.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: #334155 !important;
}

.dark .text-indigo-900,
.dark .text-indigo-800,
.dark .text-indigo-700 {
    color: #a5f3fc !important;
}

.dark .text-indigo-600 {
    color: #67e8f9 !important;
}

.dark .hover\:text-indigo-800:hover,
.dark .hover\:text-indigo-700:hover,
.dark .hover\:text-indigo-600:hover {
    color: #a5f3fc !important;
}

.dark .text-violet-700,
.dark .text-violet-800 {
    color: #ddd6fe !important;
}

.dark .text-amber-700,
.dark .text-amber-800 {
    color: #fcd34d !important;
}

.dark .text-emerald-700,
.dark .text-emerald-800,
.dark .text-green-700,
.dark .text-green-800 {
    color: #6ee7b7 !important;
}

.dark .text-blue-700,
.dark .text-blue-800 {
    color: #93c5fd !important;
}

.dark .text-blue-600 {
    color: #93c5fd !important;
}

.dark .text-violet-600 {
    color: #c4b5fd !important;
}

.dark .text-emerald-600,
.dark .text-green-600 {
    color: #6ee7b7 !important;
}

.dark .text-cyan-700,
.dark .text-cyan-800 {
    color: #67e8f9 !important;
}

.dark .text-cyan-600 {
    color: #22d3ee !important;
}

.dark .bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.15) !important;
}

.dark .bg-violet-50 {
    background-color: rgba(139, 92, 246, 0.15) !important;
}

.dark .bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.15) !important;
}

.dark .bg-cyan-50,
.dark .bg-cyan-100 {
    background-color: rgba(6, 182, 212, 0.15) !important;
}

.dark .bg-rose-50,
.dark .bg-rose-100 {
    background-color: rgba(244, 63, 94, 0.15) !important;
}

.dark .bg-sky-50,
.dark .bg-sky-100 {
    background-color: rgba(14, 165, 233, 0.15) !important;
}

.dark .bg-teal-50,
.dark .bg-teal-100 {
    background-color: rgba(20, 184, 166, 0.15) !important;
}

.dark .bg-purple-50,
.dark .bg-purple-100 {
    background-color: rgba(168, 85, 247, 0.15) !important;
}

.dark .text-rose-600,
.dark .text-rose-700 {
    color: #fda4af !important;
}

.dark .text-sky-600,
.dark .text-sky-700 {
    color: #7dd3fc !important;
}

.dark .text-teal-600,
.dark .text-teal-700 {
    color: #5eead4 !important;
}

.dark .text-purple-600,
.dark .text-purple-700 {
    color: #d8b4fe !important;
}

.dark .ring-white {
    --tw-ring-color: #0f172a !important;
}

.dark .ring-gray-100 {
    --tw-ring-color: #334155 !important;
}

.dark .shop-action-chip {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark .shop-info-icon {
    background: #1e293b !important;
    color: #67e8f9 !important;
}

.dark .nc-biz-panel {
    background: #0f172a !important;
    border-color: #334155 !important;
}

.dark .nc-biz-panel__head {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.12) 0%, #0f172a 70%) !important;
    border-bottom-color: #334155 !important;
}

.dark .nc-biz-panel__body label.block {
    color: #cbd5e1 !important;
}

.dark footer {
    background-color: #0b1220 !important;
    border-top-color: #1e293b !important;
}

.dark .border-gray-100 {
    border-color: #1e293b !important;
}

.dark .border-gray-200 {
    border-color: #334155 !important;
}

.dark .border-gray-300 {
    border-color: #475569 !important;
}

.dark .hover\:bg-gray-100:hover {
    background-color: #1e293b !important;
}

.dark .hover\:bg-gray-50:hover {
    background-color: #1e293b !important;
}

.dark .hover\:text-gray-900:hover {
    color: #f1f5f9 !important;
}

.dark .bg-indigo-600 {
    background-color: var(--nc-primary) !important;
}

.dark .hover\:bg-indigo-700:hover {
    background-color: var(--nc-primary-dark) !important;
}

.dark .border-indigo-200 {
    border-color: rgba(103, 232, 249, 0.35) !important;
}

.dark .bg-indigo-50 {
    background-color: #164e63 !important;
}

.dark .hover\:bg-indigo-50:hover {
    background-color: #155e75 !important;
}

.dark .bg-indigo-100 {
    background-color: #155e75 !important;
}

.dark .text-indigo-800 {
    color: #a5f3fc !important;
}

.dark .hover\:bg-indigo-100:hover {
    background-color: #0e7490 !important;
}

.dark .hover\:bg-indigo-200:hover {
    background-color: #0e7490 !important;
}

.dark .bg-green-50 {
    background-color: #052e16 !important;
}

.dark .bg-red-50 {
    background-color: #450a0a !important;
}

.dark .bg-blue-50 {
    background-color: #172554 !important;
}

.dark .bg-amber-50 {
    background-color: #451a03 !important;
}

.dark .bg-amber-100 {
    background-color: #78350f !important;
}

.dark .bg-yellow-50 {
    background-color: #422006 !important;
}

.dark .bg-yellow-100 {
    background-color: #713f12 !important;
}

.dark .border-green-200 {
    border-color: #166534 !important;
}

.dark .border-red-200 {
    border-color: #991b1b !important;
}

.dark .border-blue-200 {
    border-color: #1e40af !important;
}

.dark .border-amber-100,
.dark .border-amber-200 {
    border-color: #92400e !important;
}

.dark .border-yellow-200 {
    border-color: rgba(234, 179, 8, 0.3) !important;
}

.dark .text-green-800 {
    color: #bbf7d0 !important;
}

.dark .text-red-800 {
    color: #fecaca !important;
}

.dark .text-blue-800 {
    color: #bfdbfe !important;
}

.dark .text-amber-700,
.dark .text-amber-800 {
    color: #fcd34d !important;
}

.dark .text-yellow-700,
.dark .text-yellow-800 {
    color: #fde047 !important;
}

.dark .text-green-700 {
    color: #86efac !important;
}

.dark .text-red-700 {
    color: #fca5a5 !important;
}

.dark .hover\:bg-green-100:hover {
    background-color: #14532d !important;
}

.dark .hover\:bg-green-200:hover {
    background-color: #166534 !important;
}

.dark .hover\:bg-red-100:hover {
    background-color: #7f1d1d !important;
}

.dark .hover\:bg-red-200:hover {
    background-color: #991b1b !important;
}

.dark .nc-card {
    background: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.dark .nc-card:hover {
    border-color: #0e7490 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.dark .nc-page-hero {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.18) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
}

.dark .nc-menu-row:hover {
    background: rgba(30, 41, 59, 0.65);
}

.dark .nc-icon-box {
    background: rgba(8, 145, 178, 0.2);
    color: #67e8f9;
}

.dark .nc-nav-link:not(.is-active):hover {
    background-color: rgba(30, 41, 59, 0.88) !important;
    color: #f8fafc !important;
}

.dark .nc-cat-sticky-bar {
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.97) 85%, rgba(2, 6, 23, 0)) !important;
}

.dark .nc-cat-tab {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

.dark .nc-cat-tab:hover {
    border-color: #06b6d4 !important;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.2) !important;
}

.dark .nc-cat-tab.is-active {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.dark .nc-cat-tab-icon {
    background: #fff !important;
    color: #0891b2 !important;
}

.dark .nc-cat-tab.is-active .nc-cat-tab-icon {
    background: #fff !important;
    color: #0891b2 !important;
}

.dark .nc-cat-subcard {
    background: #1e293b !important;
    border-color: #475569 !important;
}

.dark .nc-cat-subcard:hover {
    border-color: #06b6d4 !important;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.15) !important;
}

.dark .nc-cat-subcard-icon {
    background: linear-gradient(135deg, #155e75, #164e63) !important;
    color: #a5f3fc !important;
}

.dark input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.dark select,
.dark textarea {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #64748b !important;
}

.dark .divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: #334155 !important;
}

.dark .shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
}

.dark .shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

.dark .shadow-lg {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5) !important;
}

.dark .seller-tab {
    color: #cbd5e1 !important;
}

.dark .seller-tab:hover {
    color: #ffffff !important;
}

.dark .seller-tab.is-active {
    color: var(--nc-primary) !important;
    border-bottom-color: var(--nc-primary) !important;
}

.dark .seller-gmaps-action {
    color: #67e8f9;
}

.dark .seller-gmaps-action-icon {
    background: #164e63;
}

.dark .seller-gmaps-action:hover .seller-gmaps-action-icon {
    background: #155e75;
}

.dark .seller-overview-icon {
    background: #334155;
    color: #cbd5e1;
}

/* Footer accordion — mobile Browse / Company / Legal */
.nc-footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.625rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease;
}

.nc-footer-toggle:hover {
    color: #0891b2 !important;
}

.dark .nc-footer-toggle {
    color: #f1f5f9 !important;
}

.dark .nc-footer-toggle:hover,
.dark .nc-footer-toggle.text-indigo-600 {
    color: #67e8f9 !important;
}

/* Form shells that stay white without these overrides */
.dark .nc-create-hero {
    border-color: #334155 !important;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 40%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%) !important;
}

.dark .nc-business-hero {
    border-color: #4338ca !important;
    background: linear-gradient(135deg, #1e1b4b 0%, #164e63 100%) !important;
}

.dark .nc-business-hero__icon {
    background: #0f172a !important;
    color: #a5b4fc !important;
}

.dark .nc-business-hero h3 {
    color: #e0e7ff !important;
}

.dark .nc-business-hero p {
    color: #c7d2fe !important;
}

.dark .nc-listing-card {
    background: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.45) !important;
}

.dark .nc-listing-card__head {
    border-bottom-color: #334155 !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), #0f172a) !important;
}

.dark .nc-listing-card--accent .nc-listing-card__head {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 72%) !important;
}

.dark .nc-listing-card__icon {
    background: rgba(8, 145, 178, 0.2) !important;
    color: #67e8f9 !important;
}

.dark .nc-listing-card--accent .nc-listing-card__icon {
    background: rgba(99, 102, 241, 0.25) !important;
    color: #a5b4fc !important;
}

.dark .nc-type-card {
    background: #0f172a !important;
    border-color: #334155 !important;
}

.dark .nc-type-card:hover {
    border-color: #475569 !important;
}

.dark .peer:checked ~ .nc-type-card-sell {
    background: rgba(8, 145, 178, 0.15) !important;
}

.dark .peer:checked ~ .nc-type-card-business {
    background: rgba(79, 70, 229, 0.18) !important;
}

.dark .nc-biz-type-preview {
    border-color: rgba(129, 140, 248, 0.35) !important;
    background: rgba(79, 70, 229, 0.18) !important;
}

.dark .nc-biz-type-preview__icon {
    background: #1e293b !important;
}

.dark .text-amber-900,
.dark .text-amber-950 {
    color: #fde68a !important;
}

/* Semi-transparent whites used on overlays / panels */
.dark .bg-white\/95,
.dark .bg-white\/90,
.dark .bg-white\/80 {
    background-color: rgba(15, 23, 42, 0.92) !important;
}

.dark .border-white\/80,
.dark .border-white\/10 {
    border-color: rgba(51, 65, 85, 0.9) !important;
}

/* Map page custom shells */
.dark .nc-map-header-copy h1 {
    color: #f8fafc !important;
}

.dark .nc-map-header-copy p,
.dark .nc-map-section-label {
    color: #94a3b8 !important;
}

.dark .nc-map-filters-card {
    background: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

.dark .nc-map-feature,
.dark .nc-map-tab {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark .nc-map-feature:hover,
.dark .nc-map-tab:hover {
    border-color: #0891b2 !important;
}

.dark .nc-map-feature-icon {
    background: rgba(8, 145, 178, 0.2) !important;
    color: #67e8f9 !important;
}

.dark .nc-map-feature.is-active .nc-map-feature-icon {
    background: #fff !important;
    color: var(--nc-primary) !important;
}

.dark .nc-map-tab-icon {
    background: #0f172a !important;
    color: #67e8f9 !important;
}

.dark .nc-map-divider {
    background: linear-gradient(to right, transparent, #334155, transparent) !important;
}

.dark .nc-map-popup-meta {
    color: #94a3b8 !important;
}

.dark .nc-strip-arrow {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

.dark .nc-strip-arrow:hover {
    background: rgba(8, 145, 178, 0.2) !important;
    color: #67e8f9 !important;
}

.dark .nc-map-feature.is-active,
.dark .nc-map-tab.is-active {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.dark .nc-radius-value {
    color: var(--nc-primary) !important;
}

.dark .nc-multi-select {
    border-color: rgba(8, 145, 178, 0.28) !important;
    background: rgba(8, 145, 178, 0.08) !important;
}

.dark .nc-multi-select .wash-chip,
.dark .nc-multi-select [data-chip-value] {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

/* Universal high contrast text overrides for dark mode */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: #ffffff !important;
}

.dark td, .dark th {
    color: #f1f5f9 !important;
}
