/* ========================================
   RAVE TECHNOLOGY - LIGHT PREMIUM THEME
   Enterprise SaaS Design System
   Inspired by: Apple × Stripe × OpenAI × Notion × Vercel
   ======================================== */

/* ========================================
   DESIGN TOKENS - LIGHT MODE
   ======================================== */

:root {
    /* Light Mode Color Palette */
    --rave-bg-primary: #F7F9FC;
    /* Soft White */
    --rave-bg-secondary: #EEF2F7;
    /* Pearl Gray */
    --rave-bg-tertiary: #E6F0FF;
    /* Cloud Blue */
    --rave-bg-white: #FFFFFF;
    /* Pure White */

    /* Brand Colors */
    --rave-primary: #2563EB;
    /* Royal Blue */
    --rave-primary-hover: #1d4ed8;
    /* Royal Blue Dark */
    --rave-primary-light: #3b82f6;
    /* Royal Blue Light */
    --rave-secondary: #22C55E;
    /* Emerald */
    --rave-secondary-hover: #16a34a;
    /* Emerald Dark */
    --rave-highlight: #0EA5E9;
    /* Sky Blue */
    --rave-highlight-hover: #0284c7;
    /* Sky Blue Dark */

    /* Text Colors - All Black for Maximum Contrast */
    --rave-text-primary: #FFFFFF;
    /* Pure Black */
    --rave-text-secondary: #000000;
    /* Pure Black */
    --rave-text-muted: #333333;
    /* Dark Gray */
    --rave-text-light: #666666;
    /* Medium Gray */

    /* Accent Colors */
    --rave-accent-purple: #8B5CF6;
    /* Violet */
    --rave-accent-pink: #EC4899;
    /* Pink */
    --rave-accent-orange: #F59E0B;
    /* Amber */

    /* Semantic Colors */
    --rave-success: #22C55E;
    --rave-warning: #F59E0B;
    --rave-error: #EF4444;
    --rave-info: #0EA5E9;

    /* Glass & Overlay Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-strong: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(37, 99, 235, 0.1);
    --glass-shadow: rgba(15, 23, 42, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #22C55E 0%, #10b981 100%);
    --gradient-highlight: linear-gradient(135deg, #0EA5E9 0%, #06b6d4 100%);
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #a78bfa 100%);
    --gradient-mesh: linear-gradient(135deg, #E6F0FF 0%, #F7F9FC 50%, #EEF2F7 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);

    /* Shadows - Soft & Floating */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.12);
    --shadow-2xl: 0 24px 64px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.2);
    --shadow-float: 0 20px 60px -12px rgba(15, 23, 42, 0.15);

    /* Border Radius - Smooth & Modern */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    /* 4px */
    --space-sm: 0.5rem;
    /* 8px */
    --space-md: 1rem;
    /* 16px */
    --space-lg: 1.5rem;
    /* 24px */
    --space-xl: 2rem;
    /* 32px */
    --space-2xl: 3rem;
    /* 48px */
    --space-3xl: 4rem;
    /* 64px */
    --space-4xl: 6rem;
    /* 96px */

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Cal Sans', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-fixed: 1200;
    --z-modal-backdrop: 1300;
    --z-modal: 1400;
    --z-popover: 1500;
    --z-tooltip: 1600;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--rave-bg-primary) !important;
    color: var(--rave-text-primary) !important;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Force override for common elements in case of lingering dark mode generic styles */
h1:not(.rave-display-1):not(.text-gradient),
h2:not(.text-gradient),
h3:not(.text-gradient),
p:not(.text-gradient),
span:not(.text-gradient),
div:not(.text-gradient),
li,
ul,
ol,
a:not(.rave-btn) {
    color: inherit;
}

/* Specific overrides for solid text that might be white */
.rave-heading-1,
.rave-heading-2,
.rave-heading-3,
.rave-heading-4 {
    color: var(--rave-text-primary) !important;
}

/* Ensure Gradient Text Enforces Transparency */
.rave-display-1,
.text-gradient {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.text-gradient-secondary {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: var(--gradient-secondary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.rave-body-lg,
.rave-body,
.rave-body-sm {
    color: var(--rave-text-secondary) !important;
}

/* Selection */
::selection {
    background: var(--rave-primary);
    color: white;
}

::-moz-selection {
    background: var(--rave-primary);
    color: white;
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */

.rave-display-1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rave-display-2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--rave-text-primary);
}

.rave-heading-1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--rave-text-primary);
}

.rave-heading-2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--rave-text-primary);
}

.rave-heading-3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--rave-text-primary);
}

.rave-heading-4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--rave-text-primary);
}

.rave-body-lg {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--rave-text-secondary);
}

.rave-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--rave-text-secondary);
}

.rave-body-sm {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--rave-text-muted);
}

.rave-caption {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--rave-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Text Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.rave-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.rave-container-wide {
    max-width: 1440px;
}

.rave-container-narrow {
    max-width: 960px;
}

.rave-section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.rave-section-sm {
    padding: var(--space-3xl) 0;
}

.rave-section-lg {
    padding: 8rem 0;
}

/* Grid System */
.rave-grid {
    display: grid;
    gap: var(--space-xl);
}

.rave-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.rave-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rave-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ========================================
   CARD COMPONENTS
   ======================================== */

.rave-card {
    background: var(--rave-bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.rave-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.rave-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    border-color: var(--glass-border);
}

.rave-card:hover::before {
    opacity: 1;
}

/* Glass Card */
.rave-card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* Feature Card */
.rave-card-feature {
    padding: var(--space-2xl);
    text-align: center;
}

.rave-card-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

/* Pricing Card */
.rave-card-pricing {
    padding: var(--space-2xl);
    text-align: center;
    border: 2px solid rgba(15, 23, 42, 0.08);
}

.rave-card-pricing.featured {
    border-color: var(--rave-primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
    position: relative;
    z-index: 2;
}

.rave-card-pricing.featured::before {
    opacity: 1;
}

/* ========================================
   BUTTON SYSTEM
   ======================================== */

.rave-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.rave-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.rave-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Primary Button */
.rave-btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.rave-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Secondary Button */
.rave-btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.rave-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

/* Outline Button */
.rave-btn-outline {
    background: transparent;
    color: var(--rave-primary);
    border: 2px solid var(--rave-primary);
    box-shadow: none;
}

.rave-btn-outline:hover {
    background: var(--rave-primary);
    color: white;
    transform: translateY(-2px);
}

/* Ghost Button */
.rave-btn-ghost {
    background: rgba(37, 99, 235, 0.1);
    color: var(--rave-primary);
    box-shadow: none;
}

.rave-btn-ghost:hover {
    background: rgba(37, 99, 235, 0.15);
}

/* Large Button */
.rave-btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Small Button */
.rave-btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.rave-hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: var(--gradient-mesh);
}

.rave-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 0;
    animation: pulse-glow 8s ease-in-out infinite;
}

.rave-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.rave-hero-title {
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out;
}

.rave-hero-subtitle {
    font-size: 1.25rem;
    color: var(--rave-text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.rave-hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
}

/* ========================================
   NAVIGATION
   ======================================== */

.rave-navbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-sm);
}

.rave-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rave-navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rave-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.rave-navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.rave-navbar-link {
    color: var(--rave-text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.rave-navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--rave-primary);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.rave-navbar-link:hover {
    color: var(--rave-primary);
    background: rgba(37, 99, 235, 0.05);
}

.rave-navbar-link:hover::after {
    width: 80%;
}

.rave-navbar-link.active {
    color: var(--rave-primary);
}

.rave-navbar-link.active::after {
    width: 80%;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.rave-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--rave-text-primary);
    background: var(--rave-bg-white);
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    outline: none;
}

.rave-input:focus {
    border-color: var(--rave-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.rave-input::placeholder {
    color: var(--rave-text-light);
}

.rave-textarea {
    min-height: 120px;
    resize: vertical;
}

.rave-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========================================
   BADGE & TAG SYSTEM
   ======================================== */

.rave-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rave-badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--rave-primary);
}

.rave-badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--rave-secondary);
}

.rave-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--rave-warning);
}

.rave-badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--rave-error);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes float {

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

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Animation Utilities */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

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

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

/* Spacing */
.mt-auto {
    margin-top: auto;
}

.mb-auto {
    margin-bottom: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Text Alignment */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Display */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* Flex Utilities */
.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .rave-grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .rave-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .rave-hero {
        padding: 5rem 0 3rem;
    }

    .rave-display-1 {
        font-size: 2.5rem;
    }

    .rave-section {
        padding: var(--space-3xl) 0;
    }

    .rave-grid-2,
    .rave-grid-3,
    .rave-grid-4 {
        grid-template-columns: 1fr;
    }

    .rave-navbar-menu {
        gap: var(--space-md);
    }

    .rave-hero-cta {
        flex-direction: column;
    }

    .rave-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rave-container {
        padding: 0 var(--space-md);
    }

    .rave-card {
        padding: var(--space-lg);
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--rave-text-light);
    border-radius: var(--radius-sm);
    border: 3px solid var(--rave-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rave-text-muted);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {

    .rave-navbar,
    .rave-btn,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .rave-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   NUCLEAR OVERRIDE - FORCE BLACK TEXT
   Override ANY white text from other CSS
   ======================================== */

/* UNIVERSAL - Force EVERYTHING to black first */
* {
    color: #000000 !important;
}

/* Force black text on light backgrounds */
body,
html,
main,
section,
div,
p,
span,
li,
ul,
ol,
td,
th,
h1,
h2,
h3,
h4,
h5,
h6,
label,
legend,
caption {
    color: #000000 !important;
}

/* Links - black by default, blue on hover */
a {
    color: #000000 !important;
}

a:hover,
a:active,
a:focus {
    color: #2563EB !important;
}

/* Small text and muted text */
small,
.small,
.text-sm,
.text-muted,
.text-secondary {
    color: #333333 !important;
}

/* Buttons keep their own colors */
.btn,
button,
.rave-btn {
    /* Buttons use their background-specific colors */
}

/* Form inputs - black text */
input,
textarea,
select,
.form-control {
    color: #000000 !important;
    background-color: #ffffff !important;
}

input::placeholder,
textarea::placeholder {
    color: #666666 !important;
}

/* Icons */
i,
.fa,
.fas,
.far,
.fab {
    color: #333333 !important;
}

/* Badges - keep their background colors but ensure readable text */
.badge {
    color: #ffffff !important;
    /* Badges typically have colored backgrounds */
}

/* Price elements */
.oe_price_h4,
.rave-module-price,
.price {
    color: #000000 !important;
}

/* Override any inline styles trying to set white text */
[style*="color: #fff"],
[style*="color: white"],
[style*="color:#fff"],
[style*="color:white"] {
    color: #000000 !important;
}

/* Ensure gradient text stays transparent for gradient effect */
.text-gradient,
.rave-display-1,
[class*="gradient"] h1,
[class*="gradient"] h2 {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* White text ONLY on dark backgrounds */
.rave-hero,
[style*="background: #"],
[style*="background:#0"],
[style*="background:#1"],
[style*="background:#2"],
[style*="background: rgb(0"],
[style*="background: rgb(1"],
[style*="background: rgb(2"] {
    color: #ffffff !important;
}

.rave-hero *,
.rave-hero h1,
.rave-hero h2,
.rave-hero p,
.rave-hero span,
.rave-hero a {
    color: #ffffff !important;
}

/* Ensure cards on light background have black text */
.rave-card:not(.rave-hero .rave-card) {
    color: #000000 !important;
}

.rave-card:not(.rave-hero .rave-card) * {
    color: #000000 !important;
}