/*== Homepage Dark Mode ==*/
html[data-theme="dark"] .hero-title {
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .top-line {
    color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .search-modern input {
    background: rgba(31, 41, 55, 0.95);
    color: var(--text);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .search-modern input::placeholder {
    color: var(--muted);
}

html[data-theme="dark"] .section-kicker {
    background: rgba(229, 57, 53, 0.15);
    color: #ff8a80;
}

/*== Teaser ==*/
html[data-theme="dark"] .teaser-overlay {
    background: var(--primary);
}

html[data-theme="dark"] .teaser-link h4 {
    color: #fff;
}

/*== Categories ==*/
html[data-theme="dark"] .categories-section {
    background: transparent;
}

html[data-theme="dark"] .categories-sidebar-inner {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .categories-sidebar-label {
    background: rgba(229, 57, 53, 0.14);
    color: #ff9c8f;
}

html[data-theme="dark"] .categories-sidebar-link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: none;
}

html[data-theme="dark"] .categories-sidebar-link:hover {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.12), rgba(255, 122, 24, 0.12));
    border-color: rgba(255, 122, 24, 0.22);
    color: #fff;
}

html[data-theme="dark"] .categories-sidebar-link.active {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 12px 28px rgba(229, 57, 53, 0.35);
}

html[data-theme="dark"] .category-block {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .category-block-hero,
html[data-theme="dark"] .category-hero-grid,
html[data-theme="dark"] .category-hero-media,
html[data-theme="dark"] .category-hero-copy {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

html[data-theme="dark"] .category-block-image,
html[data-theme="dark"] .category-block-image-placeholder {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .category-block-description {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .category-block-description p {
    color: #e2e8f0;
}

html[data-theme="dark"] .category-item-tile {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .category-item-tile:hover {
    border-color: rgba(255, 122, 24, 0.22);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .category-item-inner img {
    background: #1f2937;
    filter: brightness(0.9) contrast(1.05);
}

html[data-theme="dark"] .category-item-inner span {
    color: #e2e8f0;
}

/*== Popular cards ==*/
html[data-theme="dark"] .card-modern {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="dark"] .card-image {
    background: #1f2937;
}

html[data-theme="dark"] .card-title {
    color: var(--text);
}

/*== Calculator ==*/
html[data-theme="dark"] .event-tools-section {
    background: radial-gradient(circle at 10% 20%, rgba(229, 57, 53, 0.08), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(255, 122, 24, 0.10), transparent 28%),
    var(--bg-soft);
}

html[data-theme="dark"] .event-tool-card--active {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    color: var(--text);
}

html[data-theme="dark"] .event-tool-title,
html[data-theme="dark"] .event-tools-head .section-title {
    color: #f8fafc;
}

html[data-theme="dark"] .event-tools-head .section-subtitle,
html[data-theme="dark"] .event-tool-result-placeholder {
    color: var(--muted);
}

html[data-theme="dark"] .event-tool-result {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .event-tool-form .form-label {
    color: var(--text);
}

html[data-theme="dark"] .event-tool-form .form-control,
html[data-theme="dark"] .event-tool-form .form-select {
    background: #111827;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .event-tool-form .form-control::placeholder {
    color: var(--muted);
}

html[data-theme="dark"] .event-tool-form .form-control:focus,
html[data-theme="dark"] .event-tool-form .form-select:focus {
    background: #111827;
    color: var(--text);
    border-color: rgba(255, 122, 24, 0.32);
    box-shadow: 0 0 0 0.2rem rgba(255, 122, 24, 0.10);
}

/*== Calculator receipt ==*/
html[data-theme="dark"] .calculator-receipt {
    background: linear-gradient(180deg, #1f2937 0%, #0f172a 100%);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .receipt-header {
    color: #f8fafc;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .receipt-line span:first-child {
    color: #9ca3af;
}

html[data-theme="dark"] .receipt-divider {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .receipt-total {
    color: #fff;
    border-top: 2px solid rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .receipt-footer {
    color: #9ca3af;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

/*== Stats ==*/
html[data-theme="dark"] .stats-section {
    background: #0f172a;
}

html[data-theme="dark"] .stats-title {
    color: #fff;
}

html[data-theme="dark"] .stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

html[data-theme="dark"] .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/*== FAQ ==*/
html[data-theme="dark"] .faq-section {
    background: var(--bg-soft);
}

html[data-theme="dark"] .faq-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .faq-item summary {
    color: var(--text);
}

html[data-theme="dark"] .faq-item summary::after {
    color: var(--text);
}

html[data-theme="dark"] .faq-item p {
    color: var(--muted);
}

/*== Reservation Wizard ==*/
html[data-theme="dark"] .reservation-section {
    background: radial-gradient(circle at 15% 10%, rgba(229, 57, 53, 0.08), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 122, 24, 0.08), transparent 30%),
    var(--bg-soft);
}

html[data-theme="dark"] .reservation-badge {
    background: rgba(229, 57, 53, 0.14);
    color: #ff9b8f;
}

html[data-theme="dark"] .reservation-badge-dot {
    background: #ff7f70;
    box-shadow: 0 0 0 5px rgba(229, 57, 53, 0.12);
}

html[data-theme="dark"] .reservation-heading,
html[data-theme="dark"] .reservation-step-content h3,
html[data-theme="dark"] .reservation-choice-copy strong,
html[data-theme="dark"] .reservation-field-title,
html[data-theme="dark"] .reservation-budget-option strong {
    color: #f8fafc;
}

html[data-theme="dark"] .reservation-lead,
html[data-theme="dark"] .reservation-step-description,
html[data-theme="dark"] .reservation-choice-copy small,
html[data-theme="dark"] .reservation-checkbox-line,
html[data-theme="dark"] .reservation-helper,
html[data-theme="dark"] .reservation-privacy {
    color: #94a3b8;
}

html[data-theme="dark"] .reservation-wizard {
    border-color: rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, #1e293b 0%, #111827 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .reservation-progress {
    background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .reservation-step-count {
    color: #94a3b8;
}

html[data-theme="dark"] .reservation-back-btn {
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

html[data-theme="dark"] .reservation-back-btn:hover {
    border-color: rgba(255, 122, 24, 0.28);
    background: rgba(255, 122, 24, 0.08);
}

html[data-theme="dark"] .reservation-choice-card,
html[data-theme="dark"] .reservation-input,
html[data-theme="dark"] .reservation-textarea,
html[data-theme="dark"] .reservation-pill span,
html[data-theme="dark"] .reservation-service-option > span,
html[data-theme="dark"] .reservation-budget-option > span {
    border-color: rgba(255, 255, 255, 0.1);
    background: #111827;
    color: #e2e8f0;
}

html[data-theme="dark"] .reservation-choice-card:hover {
    border-color: rgba(255, 122, 24, 0.3);
}

html[data-theme="dark"] .reservation-choice-card:has(input:checked),
html[data-theme="dark"] .reservation-service-option:has(input:checked) > span,
html[data-theme="dark"] .reservation-budget-option:has(input:checked) > span {
    border-color: rgba(255, 122, 24, 0.75);
    background: linear-gradient(
            135deg,
            rgba(229, 57, 53, 0.14),
            rgba(255, 122, 24, 0.1)
    );
}

html[data-theme="dark"] .reservation-choice-icon {
    background: #1f2937;
}

html[data-theme="dark"] .reservation-input:focus,
html[data-theme="dark"] .reservation-textarea:focus {
    border-color: rgba(255, 122, 24, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.08);
}

html[data-theme="dark"] .reservation-input::placeholder,
html[data-theme="dark"] .reservation-textarea::placeholder {
    color: #64748b;
}

html[data-theme="dark"] .reservation-field > label {
    color: #94a3b8;
}

html[data-theme="dark"] .reservation-service-option > span::before {
    border-color: rgba(255, 255, 255, 0.18);
    background: #111827;
}

html[data-theme="dark"] .reservation-service-option:has(input:checked) > span::before {
    border-color: var(--primary);
    background: var(--primary);
}

html[data-theme="dark"] .reservation-advice-option > span {
    border-color: rgba(255, 255, 255, 0.18);
    color: #94a3b8;
}

html[data-theme="dark"] .reservation-advice-option:has(input:checked) > span {
    border-color: rgba(255, 122, 24, 0.55);
    background: rgba(255, 122, 24, 0.07);
    color: #ffab91;
}

html[data-theme="dark"] .reservation-budget-option small {
    color: #94a3b8;
}

html[data-theme="dark"] .reservation-budget-option:has(input:checked) small {
    color: #ffab91;
}

html[data-theme="dark"] .reservation-skip-btn {
    color: #94a3b8;
}

html[data-theme="dark"] .reservation-trust-row {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.75);
    color: #94a3b8;
}

/*== Reservation JS States ==*/
html[data-theme="dark"] .reservation-error {
    border-color: rgba(255, 122, 24, 0.22);
    background: rgba(229, 57, 53, 0.1);
    color: #ff9b8f;
}

html[data-theme="dark"] .reservation-input.is-disabled,
html[data-theme="dark"] .reservation-input:disabled {
    background: #0f172a;
    color: #64748b;
}

html[data-theme="dark"] .reservation-success h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .reservation-success p {
    color: #94a3b8;
}

html[data-theme="dark"] .reservation-custom-checkbox {
    border-color: rgba(255, 255, 255, 0.2);
    background: #111827;
}

html[data-theme="dark"] .reservation-checkbox-line input:checked + .reservation-custom-checkbox {
    border-color: var(--primary);
    background: var(--primary);
}

html[data-theme="dark"] .reservation-checkbox-text {
    color: #94a3b8;
}

html[data-theme="dark"] .reservation-pill span {
    border-color: rgba(255, 255, 255, 0.12);
    background: #111827;
    color: #e2e8f0;
}

html[data-theme="dark"] .reservation-pill:hover span {
    border-color: rgba(255, 122, 24, 0.32);
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .reservation-pill input:checked + span {
    border-color: transparent;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.25),
    0 0 0 1px rgba(255, 122, 24, 0.18);
}

html[data-theme="dark"] .reservation-input:disabled {
    border-color: rgba(255, 255, 255, 0.07);
    background: #0b1120;
    color: #64748b;
    cursor: not-allowed;
    opacity: 1;
}

/*== Flatpickr Dark Mode ==*/
html[data-theme="dark"] .flatpickr-calendar {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .flatpickr-calendar.arrowTop::before {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .flatpickr-calendar.arrowTop::after {
    border-bottom-color: #111827;
}

html[data-theme="dark"] .flatpickr-months,
html[data-theme="dark"] .flatpickr-month,
html[data-theme="dark"] .flatpickr-current-month,
html[data-theme="dark"] .flatpickr-weekdays,
html[data-theme="dark"] .flatpickr-weekdaycontainer {
    background: #111827;
}

html[data-theme="dark"] .flatpickr-current-month,
html[data-theme="dark"] .flatpickr-current-month input.cur-year,
html[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
html[data-theme="dark"] span.flatpickr-weekday {
    color: #e2e8f0;
}

html[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
html[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-month {
    background: #111827;
    color: #e2e8f0;
}

html[data-theme="dark"] .flatpickr-day {
    color: #e2e8f0;
}

html[data-theme="dark"] .flatpickr-day:hover,
html[data-theme="dark"] .flatpickr-day:focus {
    border-color: rgba(255, 122, 24, 0.35);
    background: rgba(255, 122, 24, 0.12);
    color: #fff;
}

html[data-theme="dark"] .flatpickr-day.today {
    border-color: var(--primary);
    color: #fff;
}

html[data-theme="dark"] .flatpickr-day.today:hover {
    background: var(--primary);
    color: #fff;
}

html[data-theme="dark"] .flatpickr-day.selected,
html[data-theme="dark"] .flatpickr-day.startRange,
html[data-theme="dark"] .flatpickr-day.endRange {
    border-color: var(--primary);
    background: var(--gradient);
    color: #fff;
}

html[data-theme="dark"] .flatpickr-day.prevMonthDay,
html[data-theme="dark"] .flatpickr-day.nextMonthDay {
    color: #475569;
}

html[data-theme="dark"] .flatpickr-day.flatpickr-disabled,
html[data-theme="dark"] .flatpickr-day.flatpickr-disabled:hover {
    color: #334155;
    background: transparent;
    border-color: transparent;
}

/* Month navigation arrows */
html[data-theme="dark"] .flatpickr-prev-month,
html[data-theme="dark"] .flatpickr-next-month {
    color: #e2e8f0;
    fill: #e2e8f0;
}

html[data-theme="dark"] .flatpickr-prev-month:hover svg,
html[data-theme="dark"] .flatpickr-next-month:hover svg {
    fill: #ff7a18;
}

/* Time picker */
html[data-theme="dark"] .flatpickr-time {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
}

html[data-theme="dark"] .flatpickr-time input {
    background: #0f172a;
    color: #f8fafc;
}

html[data-theme="dark"] .flatpickr-time input:hover,
html[data-theme="dark"] .flatpickr-time input:focus {
    background: #1e293b;
}

html[data-theme="dark"] .flatpickr-time .flatpickr-time-separator {
    color: #e2e8f0;
}

html[data-theme="dark"] .flatpickr-time .numInputWrapper span.arrowUp::after {
    border-bottom-color: #94a3b8;
}

html[data-theme="dark"] .flatpickr-time .numInputWrapper span.arrowDown::after {
    border-top-color: #94a3b8;
}

html[data-theme="dark"] .flatpickr-time .numInputWrapper:hover {
    background: #1e293b;
}