/* ========================================
   MODERN DESIGN SYSTEM - Tajemnica Daty
   Dark theme with glassmorphism
   ======================================== */

:root {
    /* Colors - Dark Theme */
    --bg-dark: #050507;
    --bg-card: #0F0F16;
    --bg-elevated: #1A1A24;

    /* Primary Colors */
    --primary: #8B5CF6;
    --primary-hover: #7C3AED;
    --primary-light: #A78BFA;

    /* Accent Colors */
    --accent-gold: #F59E0B;
    --accent-cyan: #06b6d4;
    --accent-pink: #F472B6;

    /* Text Colors */
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --text-dark: #1F2937;

    /* Border & Dividers */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.125);

    /* Typography */
    --font-main: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* ========================================
   LIGHT THEME
   ======================================== */

body.light-theme {
    /* Light Theme Backgrounds */
    --bg-dark: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;

    /* Primary Colors (same vibrant colors) */
    --primary: #8B5CF6;
    --primary-hover: #7C3AED;
    --primary-light: #A78BFA;

    /* Accent Colors (same vibrant colors) */
    --accent-gold: #F59E0B;
    --accent-cyan: #06b6d4;
    --accent-pink: #F472B6;

    /* Text Colors - Inverted */
    --text-white: #1F2937;
    --text-gray: #6B7280;
    --text-dark: #FFFFFF;

    /* Border & Dividers - Darker for light theme */
    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);

    /* Glassmorphism - Light version */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);

    /* Shadows - More visible on light backgrounds */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Smooth transitions for theme switching */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body *:not(.gradient-blob) {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.text-gradient {
    background: linear-gradient(90deg, #A78BFA, #F472B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   GLASSMORPHISM COMPONENTS
   ======================================== */

.glass-panel {
    background: rgba(17, 25, 40, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
}

.glass-nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Raise z-index when city autocomplete is active inside a card */
.glass-card:focus-within {
    z-index: 50;
    overflow: visible;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 2rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--text-dark);
    font-weight: 700;
}

.btn-gold:hover {
    background: #FBBF24;
    transform: translateY(-2px) scale(1.02);
}

/* ========================================
   BADGES & LABELS
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-light);
}

.badge-gold {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-gold);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ADE80;
}

/* ========================================
   PRICING CARDS
   ======================================== */

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, var(--bg-card) 100%);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.best-value {
    position: absolute;
    top: -0.9375rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: #000;
    padding: 0.375rem 1rem;
    border-radius: 1.25rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.price-box {
    margin: 1.875rem 0;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.625rem;
}

.currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gray);
}

.old-price {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--text-gray);
    font-weight: 400;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.fade-in {
    animation: fade-in 0.5s ease-out;
}

/* ========================================
   GRADIENT BACKGROUNDS
   ======================================== */

.gradient-bg-purple {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

.gradient-bg-animated {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(128px);
    mix-blend-mode: multiply;
    opacity: 0.4;
}

.gradient-blob-purple {
    background: #9333EA;
    width: 24rem;
    height: 24rem;
    top: -10%;
    left: -10%;
    animation: float 8s ease-in-out infinite;
}

.gradient-blob-cyan {
    background: #06b6d4;
    width: 24rem;
    height: 24rem;
    bottom: -10%;
    right: -10%;
    animation: pulse-slow 6s ease-in-out infinite;
}

.gradient-blob-pink {
    background: #EC4899;
    width: 18rem;
    height: 18rem;
    top: 40%;
    left: 30%;
    opacity: 0.2;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }

    .container {
        padding: 0 1rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .price-box {
        font-size: 2.5rem;
    }
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-sub {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .section-header {
        font-size: 2rem;
    }

    .section-sub {
        font-size: 1rem;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ========================================
   HIDE SCROLL (for horizontal scrollers)
   ======================================== */

.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

/* ========================================
   ACCORDION NUMBER BADGES
   ======================================== */

.gml-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.gml-interpretation-wrap {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gml-interpretation-body {
    flex: 1;
    color: var(--text-white);
}

.gml-interpretation-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.gml-interpretation-body p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CHAKRA TABLE — Apple Glassmorphism 2026
   ============================================ */

.chakra-glass-panel {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.chakra-table {
    border-collapse: separate;
    border-spacing: 0;
}

.chakra-th {
    padding: 10px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chakra-row {
    cursor: pointer;
    transition: background 0.25s ease;
}

.chakra-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.chakra-row td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.chakra-name {
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.chakra-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.chakra-val {
    padding: 8px 8px;
    text-align: center;
    vertical-align: middle;
}

.chakra-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chakra-row:hover .chakra-badge {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.chakra-detail {
    padding: 10px 20px 12px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.chakra-detail p {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.chakra-detail strong {
    font-weight: 600;
}

/* Summary row */
.chakra-summary-row {
    background: rgba(139, 92, 246, 0.06);
}

.chakra-summary-row td {
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    padding-top: 12px;
    padding-bottom: 12px;
}

.chakra-badge-sum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

/* Active state when a chakra row is selected for matrix filtering */
.chakra-row.chakra-active {
    background: rgba(139, 92, 246, 0.1) !important;
}

.chakra-row.chakra-active td {
    border-bottom-color: rgba(139, 92, 246, 0.2);
}

/* Fix for white text on white background in karma descriptions */
.gml-interpretation-body * {
    background: transparent !important;
    color: var(--text-white) !important;
}

.gml-interpretation-body h3 {
    color: var(--primary-light) !important;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.gml-interpretation-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.gml-interpretation-body li {
    margin-bottom: 0.5rem;
}

.gml-interpretation-body blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-gray) !important;
}

/* CRITICAL FIX: Force all text in accordion to be visible */
.gml-acc-body,
.gml-acc-body *,
.gml-subacc,
.gml-subacc *,
.sub-body,
.sub-body *,
.gml-interpretation-wrap,
.gml-interpretation-wrap *,
.gml-interpretation-body,
.gml-interpretation-body * {
    background-color: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* Restore specific colors for headings and special elements */
.gml-interpretation-body h3,
.sub-body h3 {
    color: #a78bfa !important;
}

.gml-interpretation-body blockquote,
.sub-body blockquote {
    color: #9ca3af !important;
}

.gml-num-badge {
    background-color: #8b5cf6 !important;
    color: #ffffff !important;
}

/* Remove any white backgrounds by default */
* {
    background-color: transparent;
}

/* Restore specific backgrounds */
.glass-panel,
.glass-card,
.glass-nav {
    background: rgba(17, 25, 40, 0.75) !important;
}


.btn-primary {
    background: #8b5cf6 !important;
}

.bg-purple-600 {
    background-color: #9333ea !important;
}

.bg-indigo-600 {
    background-color: #4f46e5 !important;
}

.bg-blue-600 {
    background-color: #2563eb !important;
}

.bg-green-600 {
    background-color: #16a34a !important;
}

.bg-yellow-600 {
    background-color: #ca8a04 !important;
}

.bg-orange-600 {
    background-color: #ea580c !important;
}

.bg-red-600 {
    background-color: #dc2626 !important;
}

/* CRITICAL: Override bg-white in accordion content */
.gml-acc-body .bg-white,
.gml-subacc .bg-white,
.sub-body .bg-white,
.gml-interpretation-wrap.bg-white,
.px-6.py-6.bg-white {
    background-color: transparent !important;
    background: transparent !important;
}

/* Ensure text is visible in these containers */
.px-6.py-6.bg-white,
.px-6.py-6.bg-white * {
    color: #ffffff !important;
}

/* CRITICAL FIX: Remove white backgrounds from form inputs (Tailwind Forms plugin override) */
input:where([type=text]),
input:where(:not([type])),
input:where([type=email]),
input:where([type=url]),
input:where([type=password]),
input:where([type=number]),
input:where([type=date]),
input:where([type=datetime-local]),
input:where([type=month]),
input:where([type=search]),
input:where([type=tel]),
input:where([type=time]),
input:where([type=week]),
select:where([multiple]),
textarea,
select {
    background-color: transparent !important;
}

/* Ensure the inline bg classes work properly */
input[class*="bg-gray"],
select[class*="bg-gray"],
textarea[class*="bg-gray"] {
    background-color: inherit !important;
}

/* ========================================
   LIGHT THEME SPECIFIC OVERRIDES
   ======================================== */

/* Light theme gradient background */
body.light-theme .gradient-bg-animated {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body.light-theme .gradient-blob {
    opacity: 0.15;
    filter: blur(80px);
}

body.light-theme .gradient-blob-purple {
    background: #9333EA;
}

body.light-theme .gradient-blob-cyan {
    background: #06b6d4;
}

body.light-theme .gradient-blob-pink {
    background: #EC4899;
}

/* Light theme navigation */
body.light-theme .premium-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .premium-nav-pills {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .premium-pill {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .premium-pill:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

body.light-theme .premium-pill.active {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
}

/* Light theme account button */
body.light-theme .premium-account-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .premium-account-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .account-name {
    color: #1F2937;
}

body.light-theme .account-role {
    color: rgba(139, 92, 246, 0.8);
}

/* Light theme dropdown */
body.light-theme .premium-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body.light-theme .dropdown-divider {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .dropdown-item {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

body.light-theme .dropdown-header p:first-child {
    color: #1F2937 !important;
}

body.light-theme .dropdown-header p:last-child {
    color: #6B7280 !important;
}

/* Light theme mobile navigation */
body.light-theme .glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Light theme text colors - SPECIFIC selectors only */
body.light-theme p,
body.light-theme span:not(.text-white):not([class*="from-"]):not([class*="to-"]) {
    color: #1F2937;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6 {
    color: #6366f1;
}

body.light-theme a:not(.btn):not([class*="bg-gradient"]) {
    color: #8b5cf6;
}

body.light-theme .text-gray-400,
body.light-theme .text-gray-500,
body.light-theme .text-gray-600 {
    color: #6B7280 !important;
}

/* Light theme - force white text on colored backgrounds */
body.light-theme .bg-purple-600,
body.light-theme .bg-indigo-600,
body.light-theme .bg-blue-600,
body.light-theme .bg-green-600,
body.light-theme .bg-yellow-600,
body.light-theme .bg-orange-600,
body.light-theme .bg-red-600,
body.light-theme .btn-primary,
body.light-theme .premium-cta-btn {
    color: #ffffff !important;
}

/* Light theme glass panels */
body.light-theme .glass-panel,
body.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .glass-card:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.15);
}

/* Light theme interpretation content */
body.light-theme .gml-interpretation-wrap {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .gml-interpretation-body,
body.light-theme .gml-interpretation-body * {
    color: #1F2937 !important;
}

body.light-theme .gml-interpretation-body h3 {
    color: #6366f1 !important;
}

body.light-theme .gml-interpretation-body blockquote {
    color: #6B7280 !important;
}

body.light-theme .gml-num-badge {
    background-color: #8b5cf6 !important;
    color: #ffffff !important;
}

/* Light theme scrollbar */
body.light-theme ::-webkit-scrollbar-track {
    background: #F8F9FA;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: #8b5cf6;
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Light theme login button */
body.light-theme .premium-login-btn {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .premium-login-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

/* Light theme - ensure form backgrounds are visible */
body.light-theme input,
body.light-theme select,
body.light-theme textarea {
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #1F2937 !important;
}

body.light-theme input::placeholder,
body.light-theme select::placeholder,
body.light-theme textarea::placeholder {
    color: #9CA3AF !important;
}

/* Light theme labels */
body.light-theme label {
    color: #374151 !important;
}

/* Light theme badges */
body.light-theme .badge {
    color: #1F2937 !important;
}

body.light-theme .badge-primary {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #7C3AED !important;
}

/* Light theme pricing cards */
body.light-theme .pricing-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .pricing-card .price-box {
    color: #1F2937 !important;
}

/* Light theme mobile nav icons */
body.light-theme .show-mobile nav a,
body.light-theme .show-mobile nav button {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-theme .show-mobile nav a.text-primary,
body.light-theme .show-mobile nav a:hover {
    color: #8b5cf6 !important;
}

/* ========================================
   CRITICAL: Override hardcoded dark backgrounds in light theme
   ======================================== */

/* Override all bg-gray-700, bg-gray-800, bg-gray-900 in light theme */
body.light-theme .bg-gray-700,
body.light-theme .bg-gray-700\/50,
body.light-theme .bg-gray-700\/40,
body.light-theme .bg-gray-700\/30 {
    background-color: rgba(243, 244, 246, 0.8) !important;
}

body.light-theme .bg-gray-800,
body.light-theme .bg-gray-800\/90,
body.light-theme .bg-gray-800\/80,
body.light-theme .bg-gray-800\/70,
body.light-theme .bg-gray-800\/60,
body.light-theme .bg-gray-800\/50,
body.light-theme .bg-gray-800\/40,
body.light-theme .bg-gray-800\/30 {
    background-color: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .bg-gray-900,
body.light-theme .bg-gray-900\/95,
body.light-theme .bg-gray-900\/90,
body.light-theme .bg-gray-900\/80,
body.light-theme .bg-gray-900\/70,
body.light-theme .bg-gray-900\/60,
body.light-theme .bg-gray-900\/50,
body.light-theme .bg-gray-900\/40,
body.light-theme .bg-gray-900\/30 {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Hover states for dark backgrounds in light theme */
body.light-theme .hover\:bg-gray-600:hover,
body.light-theme .hover\:bg-gray-700:hover {
    background-color: rgba(229, 231, 235, 0.9) !important;
}

/* Border colors in light theme */
body.light-theme .border-gray-700,
body.light-theme .border-gray-700\/30,
body.light-theme .border-gray-700\/20 {
    border-color: rgba(0, 0, 0, 0.12) !important;
}

/* Modals background in light theme */
body.light-theme [class*="bg-gray-900"][class*="rounded"] {
    background-color: #ffffff !important;
}

/* Inputs with dark backgrounds */
body.light-theme input.bg-gray-900,
body.light-theme input[class*="bg-gray-900"],
body.light-theme select.bg-gray-900,
body.light-theme select[class*="bg-gray-900"],
body.light-theme textarea.bg-gray-900,
body.light-theme textarea[class*="bg-gray-900"] {
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #1F2937 !important;
}

/* Progress bars */
body.light-theme .bg-gray-700\/50 {
    background-color: rgba(229, 231, 235, 0.5) !important;
}

/* Text colors on these backgrounds */
body.light-theme .bg-gray-700 *,
body.light-theme .bg-gray-800 *,
body.light-theme .bg-gray-900 * {
    color: #1F2937 !important;
}

/* Keep white text on colored backgrounds */
body.light-theme .bg-purple-600 *,
body.light-theme .bg-indigo-600 *,
body.light-theme .bg-pink-500 *,
body.light-theme .bg-pink-600 *,
body.light-theme .bg-blue-600 * {
    color: #ffffff !important;
}

/* ========================================
   CRITICAL: Dashboard and Matrix specific overrides
   ======================================== */

/* Override purple gradient background in dashboards */
body.light-theme .matrix-dashboard,
body.light-theme .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef, #f8f9fa) !important;
}

/* Purple and indigo borders - make them more visible in light mode */
body.light-theme .border-purple-500,
body.light-theme .border-purple-500\/30,
body.light-theme .border-purple-500\/20 {
    border-color: rgba(139, 92, 246, 0.3) !important;
}

body.light-theme .border-indigo-500,
body.light-theme .border-indigo-500\/30,
body.light-theme .border-indigo-500\/20 {
    border-color: rgba(99, 102, 241, 0.3) !important;
}

body.light-theme .border-pink-500,
body.light-theme .border-pink-500\/30,
body.light-theme .border-pink-500\/20 {
    border-color: rgba(236, 72, 153, 0.3) !important;
}

/* Purple/indigo background accents */
body.light-theme .bg-purple-500\/10 {
    background-color: rgba(139, 92, 246, 0.08) !important;
}

/* Text colors in dashboard */
body.light-theme .text-white {
    color: #1F2937 !important;
}

body.light-theme .text-gray-300,
body.light-theme .text-gray-400 {
    color: #6B7280 !important;
}

body.light-theme .text-purple-400 {
    color: #8b5cf6 !important;
}

/* Matrix dropdown and filters */
body.light-theme .matrix-filter-dropdown .dropdown-button {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #1F2937 !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .matrix-filter-dropdown .dropdown-content {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .matrix-filter-dropdown .dropdown-content a {
    color: #1F2937 !important;
}

body.light-theme .matrix-filter-dropdown .dropdown-content a:hover {
    background: rgba(139, 92, 246, 0.1) !important;
}

body.light-theme .matrix-filter-dropdown .dropdown-item-description {
    color: #6B7280 !important;
}

/* Override from-gray-900, via-purple-900 classes */
body.light-theme .from-gray-900 {
    --tw-gradient-from: #f8f9fa !important;
}

body.light-theme .via-purple-900 {
    --tw-gradient-via: #e9ecef !important;
}

body.light-theme .to-gray-900 {
    --tw-gradient-to: #f8f9fa !important;
}

/* ========================================
   CRITICAL: Matrix Tiles Light Theme Override
   ======================================== */

/* Override the inline dark backgrounds in matrix tiles */
body.light-theme .matrix-tile .tile-card {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(248, 249, 250, 0.90) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .matrix-tile:hover .tile-card {
    border-color: hsla(var(--accent-hue), 60%, 50%, 0.4) !important;
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.1),
        0 0 25px -8px hsla(var(--accent-hue), 70%, 50%, 0.25) !important;
}

/* Text colors in matrix tiles */
body.light-theme .matrix-tile h3,
body.light-theme .matrix-tile .text-white {
    color: #1F2937 !important;
}

body.light-theme .matrix-tile .text-slate-400 {
    color: #6B7280 !important;
}

body.light-theme .matrix-tile .text-slate-500 {
    color: #9CA3AF !important;
}

body.light-theme .matrix-tile:hover .text-slate-300 {
    color: #374151 !important;
}

body.light-theme .matrix-tile .text-gray-600 {
    color: #9CA3AF !important;
}

/* Border in tile footer */
body.light-theme .matrix-tile .border-white\/\[0\.05\] {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Icon container in tiles */
body.light-theme .matrix-tile .icon-container {
    background: linear-gradient(135deg,
            hsla(var(--accent-hue), 50%, 50%, 0.12) 0%,
            hsla(var(--accent-hue), 60%, 40%, 0.06) 100%) !important;
    border: 1px solid hsla(var(--accent-hue), 50%, 50%, 0.25) !important;
}

body.light-theme .matrix-tile:hover .icon-container {
    background: linear-gradient(135deg,
            hsla(var(--accent-hue), 60%, 50%, 0.18) 0%,
            hsla(var(--accent-hue), 70%, 40%, 0.10) 100%) !important;
    border-color: hsla(var(--accent-hue), 60%, 55%, 0.5) !important;
    box-shadow: 0 0 20px -4px hsla(var(--accent-hue), 70%, 50%, 0.35) !important;
}

/* Accent line at top of tiles */
body.light-theme .matrix-tile .accent-line {
    background: linear-gradient(90deg,
            transparent,
            hsla(var(--accent-hue), 70%, 55%, 0.6),
            transparent) !important;
}

/* ========================================
   CRITICAL: Matrix Visual (SVG) Numbers and Labels
   ======================================== */

/* Override CSS variables for light theme */
body.light-theme {
    --gml-main-text-color: #1F2937 !important;
    --gml-frame-color: #6b7280 !important;
}

/* Force dark text on matrix numbers and labels */
body.light-theme #matrix .cls-28,
body.light-theme #matrix .cls-29,
body.light-theme #matrix .cls-33,
body.light-theme #matrix .cls-43,
body.light-theme #matrix .cls-61,
body.light-theme #matrix .cls-44,
body.light-theme #matrix text {
    fill: #1F2937 !important;
}

/* ========================================
   CRITICAL: Chakra Table Light Theme
   ======================================== */

/* Glass panel background for chakra table */
body.light-theme .glass-panel {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Chakra table - Light Theme */
body.light-theme .chakra-glass-panel {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.light-theme .chakra-glass-panel h3 {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
}

body.light-theme .chakra-glass-panel h3 i {
    color: #7c3aed !important;
}

body.light-theme .chakra-th {
    color: rgba(0, 0, 0, 0.4) !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .chakra-row:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .chakra-row td {
    border-bottom-color: rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .chakra-name {
    color: #1f2937 !important;
}

body.light-theme .chakra-badge {
    color: #fff !important;
}

body.light-theme .chakra-detail {
    background: rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .chakra-detail p {
    color: rgba(0, 0, 0, 0.55) !important;
}

body.light-theme .chakra-summary-row {
    background: rgba(139, 92, 246, 0.05) !important;
}

body.light-theme .chakra-summary-row td {
    border-top-color: rgba(139, 92, 246, 0.1) !important;
}

body.light-theme .chakra-row.chakra-active {
    background: rgba(139, 92, 246, 0.06) !important;
}

/* ========================================
   CRITICAL: Dark Glass Modal Light Theme
   ======================================== */

/* Modal background */
body.light-theme .dark-glass-modal {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(248, 249, 250, 0.98) 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

/* Modal header */
body.light-theme .dark-glass-header {
    background: linear-gradient(180deg,
            rgba(249, 250, 251, 0.98) 0%,
            rgba(255, 255, 255, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Modal footer */
body.light-theme .dark-glass-footer {
    background: linear-gradient(0deg,
            rgba(248, 249, 250, 0.98) 0%,
            rgba(255, 255, 255, 0.95) 100%) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Modal CTA box */
body.light-theme .dark-glass-cta {
    background: linear-gradient(145deg,
            rgba(243, 244, 246, 0.9) 0%,
            rgba(249, 250, 251, 0.95) 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Modal content text */
body.light-theme .matrix-content h3,
body.light-theme .matrix-content p,
body.light-theme .matrix-content li,
body.light-theme .matrix-content strong {
    color: #1F2937 !important;
}

body.light-theme .matrix-content blockquote {
    border-left-color: rgba(139, 92, 246, 0.4) !important;
    color: #4B5563 !important;
}

/* Matrix number badges in modal */
body.light-theme .matrix-number-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(192, 38, 211, 0.15) 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    color: #1F2937 !important;
}

/* Subsection titles */
body.light-theme .subsection-title {
    color: #1F2937 !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

/* Karma tail name */
body.light-theme .karma-tail-name {
    color: #1F2937 !important;
    border-left-color: rgba(139, 92, 246, 0.4) !important;
}

/* ========================================
   CRITICAL: Form Icons (Calendar etc.) Light Theme
   ======================================== */

/* Calendar and other form label icons */
body.light-theme label .fa-calendar,
body.light-theme label .fa-user,
body.light-theme label .fa-child,
body.light-theme label i {
    color: #1F2937 !important;
}

/* ========================================
   CRITICAL: Glassmorphism Table Light Theme
   ======================================== */

body.light-theme .glass-panel {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

body.light-theme .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

body.light-theme .hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

body.light-theme .text-white,
body.light-theme .text-white\/40,
body.light-theme .text-white\/50,
body.light-theme .text-white\/60,
body.light-theme .text-white\/80 {
    color: #1F2937 !important;
}

body.light-theme .text-white\/40 {
    color: rgba(31, 41, 55, 0.4) !important;
}

body.light-theme .text-white\/50 {
    color: rgba(31, 41, 55, 0.5) !important;
}

/* Fix for chakra row hover text colors in light theme - keep them vivid */
body.light-theme .group:hover .text-purple-300 {
    color: #9c27b0 !important;
}

body.light-theme .group:hover .text-indigo-300 {
    color: #3f51b5 !important;
}

body.light-theme .group:hover .text-blue-300 {
    color: #2196f3 !important;
}

body.light-theme .group:hover .text-green-300 {
    color: #4caf50 !important;
}

body.light-theme .group:hover .text-yellow-300 {
    color: #fbc02d !important;
}

body.light-theme .group:hover .text-orange-300 {
    color: #ff5722 !important;
}

body.light-theme .group:hover .text-red-300 {
    color: #e53935 !important;
}

/* Keep number text white as backgrounds are vivid */
body.light-theme .w-8.h-8.rounded-full.text-white,
body.light-theme .w-10.h-10.rounded-full.text-white {
    color: #ffffff !important;
}


/* ========================================
   CRITICAL: Input Icon Fixes
   ======================================== */

/* Force light color scheme for date inputs in light theme to ensure icon is dark */
body.light-theme input[type="date"] {
    color-scheme: light !important;
    color: #1F2937 !important;
}

/* Reset any filters that might be inverting the icon */
body.light-theme input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none !important;
    opacity: 1 !important;
    cursor: pointer;
}

/* Fix for btn-outline in light theme */
body.light-theme .btn-outline {
    color: #1F2937 !important;
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .btn-outline:hover {
    background-color: rgba(139, 92, 246, 0.1);
    color: #7c3aed !important;
    border-color: #7c3aed;
}

/* ========================================
   LIGHT THEME: Additional Contrast Fixes
   ======================================== */

/* text-gray-300 — too light (#D1D5DB) on white backgrounds */
body.light-theme .text-gray-300 {
    color: #374151 !important;
}

/* PROTECT gradient text from light theme overrides */
body.light-theme .text-gradient {
    background: linear-gradient(90deg, #A78BFA, #F472B6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

body.light-theme .text-gradient-gold {
    background: linear-gradient(90deg, #F59E0B, #FBBF24) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* text-white/80 and text-white/90 — used in hero sections */
body.light-theme .text-white\/80 {
    color: rgba(31, 41, 55, 0.85) !important;
}

body.light-theme .text-white\/90 {
    color: rgba(31, 41, 55, 0.92) !important;
}

/* Pastel text colors that wash out on light backgrounds */
body.light-theme .text-pink-300\/80,
body.light-theme .text-pink-300 {
    color: #be185d !important;
}

body.light-theme .text-indigo-300\/80,
body.light-theme .text-indigo-300 {
    color: #4338ca !important;
}

/* Accordion content: override the forced #ffffff color for light theme */
body.light-theme .gml-acc-body,
body.light-theme .gml-acc-body *,
body.light-theme .gml-subacc,
body.light-theme .gml-subacc *,
body.light-theme .sub-body,
body.light-theme .sub-body * {
    color: #1F2937 !important;
}

body.light-theme .gml-acc-body h3,
body.light-theme .gml-subacc h3,
body.light-theme .sub-body h3 {
    color: #6366f1 !important;
}

body.light-theme .gml-acc-body blockquote,
body.light-theme .gml-subacc blockquote,
body.light-theme .sub-body blockquote {
    color: #6B7280 !important;
}

/* border-white variants — invisible on white */
body.light-theme .border-white\/5,
body.light-theme .border-white\/10,
body.light-theme .border-white\/20,
body.light-theme .border-white\/40 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* bg-white/5 and bg-white/3 — nearly invisible on white */
body.light-theme .bg-white\/5,
body.light-theme .bg-white\/3 {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

/* Mobile account dropdown — override inline dark background */
body.light-theme .mobile-account-dropdown {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .mobile-account-dropdown a,
body.light-theme .mobile-account-dropdown button {
    color: #374151 !important;
}

body.light-theme .mobile-account-dropdown a:hover,
body.light-theme .mobile-account-dropdown button:hover {
    background: rgba(139, 92, 246, 0.08) !important;
    color: #7c3aed !important;
}

body.light-theme .mobile-account-dropdown button.text-red-400,
body.light-theme .mobile-account-dropdown .text-red-400 {
    color: #dc2626 !important;
}

body.light-theme .mobile-account-dropdown .divider {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* Date input: force light color-scheme in light theme */
body.light-theme input[type="date"] {
    color-scheme: light !important;
}

/* Footer link hover in light theme */
body.light-theme footer a.hover\:text-white:hover,
body.light-theme footer a:hover {
    color: #7c3aed !important;
}

/* Price box text in light theme */
body.light-theme .price-box {
    color: #1F2937 !important;
}

/* hover:bg-white/5 in light mode */
body.light-theme .hover\:bg-white\/5:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Placeholder text in light theme */
body.light-theme .placeholder-gray-500::placeholder {
    color: #9CA3AF !important;
}

/* Ensure colored background buttons/badges keep white text — 
   IMPORTANT: exclude .text-gradient, .text-gradient-gold, .wiki-gradient-text */
body.light-theme [class*="bg-gradient-to-r"][class*="from-purple"]:not(.text-gradient):not(.text-gradient-gold):not(.wiki-gradient-text)>*,
body.light-theme [class*="bg-gradient-to-r"][class*="from-pink"]:not(.text-gradient):not(.text-gradient-gold):not(.wiki-gradient-text)>*,
body.light-theme [class*="bg-gradient-to-r"][class*="from-cyan"]>*,
body.light-theme [class*="bg-gradient-to-r"][class*="from-amber"]>*,
body.light-theme [class*="bg-gradient-to-r"][class*="from-red"]>*,
body.light-theme [class*="bg-gradient-to-r"][class*="from-green"]>*,
body.light-theme [class*="bg-gradient-to-r"][class*="from-blue"]>*,
body.light-theme [class*="bg-gradient-to-r"][class*="from-indigo"]>*,
body.light-theme [class*="bg-gradient-to-r"][class*="from-teal"]>* {
    color: inherit;
}

/* Emerald/success status text — keep vivid */
body.light-theme .text-emerald-400 {
    color: #059669 !important;
}

/* Yellow warning text — keep vivid */
body.light-theme .text-yellow-400,
body.light-theme .text-yellow-300 {
    color: #d97706 !important;
}

/* Red danger text — keep vivid */
body.light-theme .text-red-400 {
    color: #dc2626 !important;
}

/* Green check marks — keep vivid */
body.light-theme .text-green-400 {
    color: #16a34a !important;
}

/* ========================================
   LIGHT THEME: Modals with dark backgrounds
   These modals intentionally use dark backgrounds,
   so text should remain LIGHT for contrast.
   ======================================== */

/* Unlock Section Modal — keep dark background, light text */
body.light-theme .unlock-modal-dark {
    background: linear-gradient(to bottom right, #111827, #581c87) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}

body.light-theme .unlock-modal-dark .text-white,
body.light-theme .unlock-modal-dark .text-gray-200,
body.light-theme .unlock-modal-dark .text-gray-300,
body.light-theme .unlock-modal-dark .text-gray-400,
body.light-theme .unlock-modal-dark .text-gray-500,
body.light-theme .unlock-modal-dark .text-purple-200,
body.light-theme .unlock-modal-dark .text-purple-300,
body.light-theme .unlock-modal-dark .text-purple-400,
body.light-theme .unlock-modal-dark .text-green-400,
body.light-theme .unlock-modal-dark .text-red-400,
body.light-theme .unlock-modal-dark strong {
    color: inherit !important;
}

body.light-theme .unlock-modal-dark h2,
body.light-theme .unlock-modal-dark h3 {
    color: #ffffff !important;
}

body.light-theme .unlock-modal-dark .text-gray-400 {
    color: #9CA3AF !important;
}

body.light-theme .unlock-modal-dark .text-gray-500 {
    color: #6B7280 !important;
}

body.light-theme .unlock-modal-dark .text-gray-300,
body.light-theme .unlock-modal-dark .text-gray-200 {
    color: #E5E7EB !important;
}

body.light-theme .unlock-modal-dark .text-purple-200 {
    color: #DDD6FE !important;
}

body.light-theme .unlock-modal-dark .text-purple-300 {
    color: #C4B5FD !important;
}

body.light-theme .unlock-modal-dark .text-purple-400 {
    color: #A78BFA !important;
}

body.light-theme .unlock-modal-dark .text-green-400 {
    color: #4ADE80 !important;
}

body.light-theme .unlock-modal-dark [class*="bg-gray-800"] {
    background-color: rgba(31, 41, 55, 0.6) !important;
}

body.light-theme .unlock-modal-dark [class*="border-gray-700"] {
    border-color: rgba(75, 85, 99, 0.5) !important;
}

/* ========================================
   LIGHT THEME: Tickets / Support Pages
   Override inline dark backgrounds
   ======================================== */
body.light-theme .tickets-page [style*="rgba(15, 15, 25"],
body.light-theme .tickets-page [style*="rgba(15,15,25"],
body.light-theme .tickets-page [style*="rgba(255,255,255,0.06)"] {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(12px) !important;
}

body.light-theme .tickets-page [style*="rgba(255,255,255,0.05)"],
body.light-theme .tickets-page [style*="rgba(255,255,255,0.04)"] {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .tickets-page .text-white {
    color: #1F2937 !important;
}

body.light-theme .tickets-page .text-gray-400 {
    color: #6B7280 !important;
}

body.light-theme .tickets-page .text-gray-500 {
    color: #6B7280 !important;
}

body.light-theme .tickets-page .text-gray-300 {
    color: #374151 !important;
}

body.light-theme .tickets-page .text-gray-600 {
    color: #4B5563 !important;
}

body.light-theme .tickets-page .text-purple-300 {
    color: #7c3aed !important;
}

body.light-theme .tickets-page .group-hover\:text-purple-300:hover,
body.light-theme .tickets-page .group:hover .group-hover\:text-purple-300 {
    color: #7c3aed !important;
}

/* Ticket tab buttons */
body.light-theme .tickets-page [style*="rgba(255,255,255,0.04)"] {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Input and textarea */
body.light-theme .tickets-page input,
body.light-theme .tickets-page textarea {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1f2937 !important;
}

/* Message bubbles */
body.light-theme .tickets-page [style*="rgba(139, 92, 246, 0.1)"] {
    background: rgba(139, 92, 246, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
}

/* hover:text-white in tickets */
body.light-theme .tickets-page .hover\:text-white:hover {
    color: #7c3aed !important;
}

/* ========================================
   LIGHT THEME: Checkboxes
   ======================================== */
body.light-theme input[type="checkbox"] {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    color-scheme: light !important;
}

body.light-theme input[type="checkbox"]:checked {
    background-color: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
}

/* ========================================
   LIGHT THEME: Wiki / Wiedza Module
   ======================================== */
body.light-theme .wiki-page {
    background: linear-gradient(135deg, #f8f7ff 0%, #f0ecff 50%, #f8f7ff 100%) !important;
}

body.light-theme .wiki-card-inner,
body.light-theme .wiki-category-inner,
body.light-theme .wiki-sidebar,
body.light-theme .wiki-article-content,
body.light-theme .wiki-article-row {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(12px);
}

body.light-theme .wiki-article-row:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

body.light-theme .wiki-arcana-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .wiki-arcana-card:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* Wiki text colors */
body.light-theme .wiki-page .text-white {
    color: #1F2937 !important;
}

body.light-theme .wiki-page .text-gray-300 {
    color: #374151 !important;
}

body.light-theme .wiki-page .text-gray-400 {
    color: #6B7280 !important;
}

body.light-theme .wiki-page .text-gray-500 {
    color: #6B7280 !important;
}

body.light-theme .wiki-page .text-gray-600 {
    color: #4B5563 !important;
}

body.light-theme .wiki-page h1,
body.light-theme .wiki-page h2,
body.light-theme .wiki-page h3 {
    color: #1F2937 !important;
}

/* Sidebar links */
body.light-theme .wiki-sidebar-link {
    color: #4B5563 !important;
}

body.light-theme .wiki-sidebar-link:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1F2937 !important;
}

body.light-theme .wiki-sidebar-link.active {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #7c3aed !important;
}

body.light-theme .wiki-sidebar-link.active .sidebar-num {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #7c3aed !important;
}

body.light-theme .sidebar-num {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #6B7280 !important;
}

/* Wiki prose in light theme */
body.light-theme .wiki-prose p {
    color: #374151 !important;
}

body.light-theme .wiki-prose h2,
body.light-theme .wiki-prose h3 {
    color: #1F2937 !important;
}

body.light-theme .wiki-prose strong {
    color: #1F2937 !important;
}

body.light-theme .wiki-prose em {
    color: #6366f1 !important;
}

body.light-theme .wiki-prose ul,
body.light-theme .wiki-prose ol {
    color: #374151 !important;
}

body.light-theme .wiki-prose blockquote {
    color: #6366f1 !important;
    background: rgba(139, 92, 246, 0.05) !important;
}

body.light-theme .wiki-prose a {
    color: #7c3aed !important;
}

/* Arcana number */
body.light-theme .arcana-number,
body.light-theme .arcana-hero-number {
    color: #7c3aed !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* Nav links */
body.light-theme .wiki-nav-link {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #4B5563 !important;
}

body.light-theme .wiki-nav-link:hover {
    background: rgba(139, 92, 246, 0.06) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
    color: #7c3aed !important;
}

/* Progress bar */
body.light-theme .wiki-progress-bar {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* Card image border */
body.light-theme .wiki-card-image {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* Wiki gradient text — protect */
body.light-theme .wiki-gradient-text {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #d946ef) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Group hover text */
body.light-theme .wiki-page .group-hover\:text-purple-300,
body.light-theme .wiki-page .group:hover .group-hover\:text-purple-300 {
    color: #7c3aed !important;
}

/* ========================================
   LIGHT THEME: Dashboard / Gamification
   ======================================== */
body.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .bg-gray-900\/50,
body.light-theme [class*="bg-gray-900/50"],
body.light-theme [class*="bg-gray-900/40"],
body.light-theme [class*="bg-gray-900/30"],
body.light-theme [class*="bg-gray-800/40"],
body.light-theme [class*="bg-gray-800/60"] {
    background: rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .text-gray-200 {
    color: #374151 !important;
}

body.light-theme [class*="border-gray-700"] {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ── Profile Creation / Edit Form ─────── */
body.light-theme input[name="profile_type"]:checked+div {
    border-width: 2px !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3) !important;
}

body.light-theme input[name="profile_type"][value="self"]:checked+div {
    border-color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.12) !important;
}

body.light-theme input[name="profile_type"][value="partner"]:checked+div {
    border-color: #ec4899 !important;
    background: rgba(236, 72, 153, 0.12) !important;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.3) !important;
}

body.light-theme input[name="profile_type"][value="child"]:checked+div {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.12) !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3) !important;
}

body.light-theme input[name="profile_type"][value="other"]:checked+div {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.12) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

/* Make sure unselected cards have a visible border in light mode */
body.light-theme input[name="profile_type"]:not(:checked)+div {
    border-color: rgba(0, 0, 0, 0.12) !important;
}

/* Form inputs on profile pages */
body.light-theme .glass-panel input[type="text"],
body.light-theme .glass-panel input[type="date"],
body.light-theme .glass-panel input[type="time"],
body.light-theme .glass-panel select {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #1e293b !important;
}

/* ========================================
   FINAL PROTECTION: Gradient text elements
   Must be LAST in the file to win all cascades
   ======================================== */
body.light-theme .text-gradient,
body.light-theme .text-gradient-gold {
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}