/* OSYS Design System v2.0 - World Class */
/* The Operating System for Youth Sports */
/* Colors updated to match mockup specification (indigo #6366f1) */

/* ============================================
   ROOT VARIABLES - Premium Design Tokens
   ============================================ */
:root {
    /* Primary Palette - Indigo (from mockup) */
    --osys-primary-50: #eef2ff;
    --osys-primary-100: #e0e7ff;
    --osys-primary-200: #c7d2fe;
    --osys-primary-300: #a5b4fc;
    --osys-primary-400: #818cf8;
    --osys-primary-500: #6366f1;
    --osys-primary-600: #4f46e5;
    --osys-primary-700: #4338ca;
    --osys-primary-800: #3730a3;
    --osys-primary-900: #312e81;
    
    /* Secondary - Championship Gold */
    --osys-gold-50: #fffbeb;
    --osys-gold-100: #fef3c7;
    --osys-gold-200: #fde68a;
    --osys-gold-300: #fcd34d;
    --osys-gold-400: #fbbf24;
    --osys-gold-500: #f59e0b;
    --osys-gold-600: #d97706;
    --osys-gold-700: #b45309;
    
    /* Success - Victory Green */
    --osys-success-50: #ecfdf5;
    --osys-success-400: #34d399;
    --osys-success-500: #10b981;
    --osys-success-600: #059669;
    
    /* Danger - Alert Red */
    --osys-danger-400: #f87171;
    --osys-danger-500: #ef4444;
    --osys-danger-600: #dc2626;
    
    /* Neutral - Midnight */
    --osys-dark-950: #020617;
    --osys-dark-900: #0f172a;
    --osys-dark-800: #1e293b;
    --osys-dark-700: #334155;
    --osys-dark-600: #475569;
    --osys-dark-500: #64748b;
    --osys-dark-400: #94a3b8;
    --osys-dark-300: #cbd5e1;
    --osys-dark-200: #e2e8f0;
    --osys-dark-100: #f1f5f9;
    --osys-dark-50: #f8fafc;
    
    /* Gradients - Premium (from mockup) */
    --osys-gradient-hero: linear-gradient(180deg, rgba(99, 102, 241, 0.3) 0%, transparent 50%);
    --osys-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --osys-gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --osys-gradient-card: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    --osys-gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Shadows - Layered Depth */
    --osys-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --osys-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --osys-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --osys-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --osys-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --osys-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --osys-shadow-glow-gold: 0 0 40px rgba(245, 158, 11, 0.3);
    
    /* Border Radius */
    --osys-radius-sm: 6px;
    --osys-radius-md: 10px;
    --osys-radius-lg: 16px;
    --osys-radius-xl: 24px;
    --osys-radius-2xl: 32px;
    --osys-radius-full: 9999px;
    
    /* Transitions */
    --osys-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --osys-ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --osys-duration-fast: 150ms;
    --osys-duration-normal: 300ms;
    --osys-duration-slow: 500ms;
}

/* ============================================
   OSYS ANIMATED BACKGROUND
   ============================================ */
.osys-bg {
    position: fixed;
    inset: 0;
    background: var(--osys-dark-950);
    overflow: hidden;
    z-index: -10;
}

.osys-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(at 40% 20%, hsla(265, 89%, 50%, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(280, 100%, 40%, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(340, 100%, 50%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(265, 89%, 50%, 0.1) 0px, transparent 50%);
    pointer-events: none;
}

/* Background Gradient Overlay */
.osys-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(139, 92, 246, 0.1) 25%,
        transparent 50%,
        rgba(99, 102, 241, 0.05) 75%,
        rgba(124, 58, 237, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Mesh Gradient Pattern */
.osys-bg-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(at 20% 30%, rgba(99, 102, 241, 0.2) 0px, transparent 40%),
        radial-gradient(at 80% 20%, rgba(139, 92, 246, 0.15) 0px, transparent 35%),
        radial-gradient(at 60% 80%, rgba(124, 58, 237, 0.12) 0px, transparent 45%),
        radial-gradient(at 10% 90%, rgba(99, 102, 241, 0.1) 0px, transparent 30%);
    animation: osys-mesh-shift 30s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes osys-mesh-shift {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 0% 100%;
    }
    50% {
        background-position: 50% 20%, 80% 30%, 30% 70%, 20% 80%;
    }
    100% {
        background-position: 100% 0%, 0% 50%, 80% 50%, 50% 100%;
    }
}

/* Animated Orbs */
.osys-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
}

.osys-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: osys-orb-float-1 20s ease-in-out infinite;
}

.osys-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation: osys-orb-float-2 25s ease-in-out infinite;
}

.osys-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation: osys-orb-float-3 18s ease-in-out infinite;
}

@keyframes osys-orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 100px) scale(1.1); }
    50% { transform: translate(100px, 50px) scale(0.9); }
    75% { transform: translate(50px, -50px) scale(1.05); }
}

@keyframes osys-orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, -60px) scale(1.1); }
    66% { transform: translate(-40px, 80px) scale(0.95); }
}

@keyframes osys-orb-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -80px) scale(1.15); }
}

/* ============================================
   GLASSMORPHISM COMPONENTS
   ============================================ */
.osys-glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--osys-radius-xl);
}

.osys-glass-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.osys-card {
    background: var(--osys-gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--osys-radius-xl);
    padding: 1.5rem;
    transition: all var(--osys-duration-normal) var(--osys-ease-out-expo);
}

.osys-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: var(--osys-shadow-xl);
}

.osys-card-glow {
    position: relative;
}

.osys-card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--osys-gradient-primary);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity var(--osys-duration-normal);
}

.osys-card-glow:hover::before {
    opacity: 0.5;
    filter: blur(20px);
}

/* ============================================
   BUTTONS - Premium Interactions
   ============================================ */
.osys-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--osys-radius-lg);
    cursor: pointer;
    transition: all var(--osys-duration-normal) var(--osys-ease-out-expo);
    overflow: hidden;
}

.osys-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--osys-duration-fast);
}

.osys-btn:hover::before {
    opacity: 1;
}

.osys-btn:active {
    transform: scale(0.98);
}

.osys-btn-primary {
    background: var(--osys-gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.osys-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.osys-btn-gold {
    background: var(--osys-gradient-gold);
    color: var(--osys-dark-900);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.osys-btn-gold:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.osys-btn-ghost {
    background: transparent;
    color: var(--osys-dark-200);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.osys-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.osys-btn-outline {
    background: transparent;
    color: var(--osys-orange-400);
    border: 1px solid var(--osys-orange-500);
}

.osys-btn-outline:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--osys-orange-400);
}

.osys-btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--osys-radius-xl);
}

.osys-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--osys-radius-md);
}

/* ============================================
   BADGES
   ============================================ */
.osys-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--osys-radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--osys-dark-300);
}

/* Light mode badge overrides for visibility */
[data-theme='light'] .osys-badge {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
}

[data-theme='light'] .osys-badge-primary {
    background: rgba(124, 58, 237, 0.15);
    color: #7c3aed;
}

[data-theme='light'] .osys-badge-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
}

[data-theme='light'] .osys-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

[data-theme='light'] .osys-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

[data-theme='light'] .osys-badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.osys-badge-primary {
    background: rgba(124, 58, 237, 0.2);
    color: var(--osys-primary-400);
}

.osys-badge-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
    border: 1px solid #fbbf24 !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
}

.osys-badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--osys-success-400);
}

.osys-badge-live {
    background: rgba(239, 68, 68, 0.2);
    color: var(--osys-danger-400);
    animation: osys-pulse-badge 2s infinite;
}

.osys-badge-coming {
    background: rgba(100, 116, 139, 0.3);
    color: var(--osys-dark-300);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

@keyframes osys-pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.osys-text-hero {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--osys-dark-50);
}

.osys-text-display {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--osys-dark-50);
}

.osys-text-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--osys-dark-50);
}

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

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

/* ============================================
   PROGRESS BARS
   ============================================ */
.osys-progress {
    height: 8px;
    background: var(--osys-dark-800);
    border-radius: var(--osys-radius-full);
    overflow: hidden;
}

.osys-progress-fill {
    height: 100%;
    background: var(--osys-gradient-primary);
    border-radius: var(--osys-radius-full);
    transition: width var(--osys-duration-slow) var(--osys-ease-out-expo);
}

.osys-progress-fill-gold {
    background: var(--osys-gradient-gold);
}

.osys-progress-fill-success {
    background: var(--osys-success-500);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes osys-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes osys-glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
    50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.5); }
}

@keyframes osys-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes osys-slide-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes osys-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes osys-scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.osys-animate-float { animation: osys-float 6s ease-in-out infinite; }
.osys-animate-glow { animation: osys-glow-pulse 3s ease-in-out infinite; }
.osys-animate-slide-up { animation: osys-slide-up 0.6s var(--osys-ease-out-expo) forwards; }
.osys-animate-slide-down { animation: osys-slide-down 0.6s var(--osys-ease-out-expo) forwards; }
.osys-animate-fade-in { animation: osys-fade-in 0.4s ease forwards; }
.osys-animate-scale-in { animation: osys-scale-in 0.4s var(--osys-ease-out-expo) forwards; }

/* Stagger children */
.osys-stagger > * {
    opacity: 0;
    animation: osys-slide-up 0.6s var(--osys-ease-out-expo) forwards;
}

.osys-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.osys-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.osys-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.osys-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.osys-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.osys-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   FORM INPUTS
   ============================================ */
.osys-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: var(--osys-dark-100);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--osys-radius-lg);
    outline: none;
    transition: all var(--osys-duration-fast);
}

.osys-input::placeholder {
    color: var(--osys-dark-500);
}

.osys-input:focus {
    border-color: var(--osys-primary-500);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* ============================================
   AVATAR SYSTEM
   ============================================ */
.osys-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--osys-radius-full);
    background: var(--osys-gradient-primary);
    color: white;
    font-weight: 700;
    overflow: hidden;
}

.osys-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.osys-avatar-xs { width: 24px; height: 24px; font-size: 0.625rem; }
.osys-avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.osys-avatar-md { width: 44px; height: 44px; font-size: 0.875rem; }
.osys-avatar-lg { width: 64px; height: 64px; font-size: 1.25rem; }
.osys-avatar-xl { width: 96px; height: 96px; font-size: 2rem; }
.osys-avatar-2xl { width: 128px; height: 128px; font-size: 2.5rem; }

/* ============================================
   STAT CARDS
   ============================================ */
.osys-stat {
    padding: 1.25rem;
    background: var(--osys-gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--osys-radius-xl);
    text-align: center;
}

.osys-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: var(--osys-dark-50);
}

.osys-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--osys-dark-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.osys-sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.osys-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.osys-sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--osys-gradient-primary);
    border-radius: var(--osys-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.osys-sidebar-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--osys-dark-50);
}

.osys-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--osys-radius-lg);
    color: var(--osys-dark-400);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--osys-duration-fast);
    margin-bottom: 0.25rem;
}

.osys-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--osys-dark-200);
}

.osys-nav-item.active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--osys-primary-400);
}

.osys-nav-item-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.osys-main {
    margin-left: 280px;
    min-height: 100vh;
    padding: 2rem;
}

.osys-main-full {
    margin-left: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .osys-sidebar {
        width: 80px;
        padding: 1rem;
    }
    
    .osys-sidebar-logo-text,
    .osys-nav-item span {
        display: none;
    }
    
    .osys-nav-item {
        justify-content: center;
        padding: 0.875rem;
    }
    
    .osys-main {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .osys-sidebar {
        display: none;
    }
    
    .osys-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .osys-text-hero {
        font-size: 2.5rem;
    }
}

/* ============================================
   COMING SOON OVERLAY
   ============================================ */
.osys-coming-soon {
    position: relative;
}

.osys-coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(100, 116, 139, 0.4);
    color: var(--osys-dark-300);
    border-radius: var(--osys-radius-full);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.osys-coming-soon-overlay {
    position: relative;
    overflow: hidden;
}

.osys-coming-soon-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(2px);
    z-index: 10;
    border-radius: inherit;
}

.osys-coming-soon-overlay::after {
    content: 'Coming Q1 2025';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--osys-gradient-primary);
    color: white;
    border-radius: var(--osys-radius-full);
    z-index: 11;
}

/* ============================================
   THEME-AWARE COLOR OVERRIDES
   Light Mode: Purple/Indigo (#9333ea / #6366f1)
   Dark Mode: Orange/Amber (#ea580c / #f59e0b)
   ============================================ */

/* Light Mode - Override orange to purple */
:root:not(.dark) {
    /* Button backgrounds */
    --theme-primary: #9333ea;
    --theme-primary-hover: #7c3aed;
    --theme-primary-light: #a855f7;
    --theme-primary-text: #9333ea;
    --theme-primary-border: #9333ea;
    --theme-primary-bg: rgba(147, 51, 234, 0.1);
    --theme-primary-shadow: rgba(147, 51, 234, 0.3);
}

/* Dark Mode - Keep orange */
.dark {
    --theme-primary: #ea580c;
    --theme-primary-hover: #f97316;
    --theme-primary-light: #fb923c;
    --theme-primary-text: #f97316;
    --theme-primary-border: #f97316;
    --theme-primary-bg: rgba(249, 115, 22, 0.1);
    --theme-primary-shadow: rgba(249, 115, 22, 0.3);
}

/* Override Tailwind orange classes in light mode */
:root:not(.dark) .bg-orange-600 { background-color: #9333ea !important; }
:root:not(.dark) .bg-orange-500 { background-color: #a855f7 !important; }
:root:not(.dark) .bg-orange-700 { background-color: #7c3aed !important; }
:root:not(.dark) .hover\:bg-orange-600:hover { background-color: #9333ea !important; }
:root:not(.dark) .hover\:bg-orange-500:hover { background-color: #a855f7 !important; }
:root:not(.dark) .hover\:bg-orange-700:hover { background-color: #7c3aed !important; }
:root:not(.dark) .text-orange-600 { color: #9333ea !important; }
:root:not(.dark) .text-orange-500 { color: #a855f7 !important; }
:root:not(.dark) .text-orange-400 { color: #c084fc !important; }
:root:not(.dark) .text-orange-300 { color: #d8b4fe !important; }
:root:not(.dark) .border-orange-600 { border-color: #9333ea !important; }
:root:not(.dark) .border-orange-500 { border-color: #a855f7 !important; }
:root:not(.dark) .border-orange-500\/30 { border-color: rgba(168, 85, 247, 0.3) !important; }
:root:not(.dark) .border-orange-500\/50 { border-color: rgba(168, 85, 247, 0.5) !important; }
:root:not(.dark) .ring-orange-500 { --tw-ring-color: #a855f7 !important; }
:root:not(.dark) .focus\:ring-orange-500:focus { --tw-ring-color: #a855f7 !important; }
:root:not(.dark) .focus\:border-orange-500:focus { border-color: #a855f7 !important; }
:root:not(.dark) .shadow-orange-900\/20 { --tw-shadow-color: rgba(147, 51, 234, 0.2) !important; }
:root:not(.dark) .shadow-orange-900\/30 { --tw-shadow-color: rgba(147, 51, 234, 0.3) !important; }
:root:not(.dark) .bg-orange-500\/10 { background-color: rgba(168, 85, 247, 0.1) !important; }
:root:not(.dark) .bg-orange-500\/20 { background-color: rgba(168, 85, 247, 0.2) !important; }
:root:not(.dark) .bg-orange-600\/90 { background-color: rgba(147, 51, 234, 0.9) !important; }
:root:not(.dark) .hover\:border-orange-500\/30:hover { border-color: rgba(168, 85, 247, 0.3) !important; }
:root:not(.dark) .hover\:border-orange-500\/50:hover { border-color: rgba(168, 85, 247, 0.5) !important; }
:root:not(.dark) .bg-orange-50 { background-color: #faf5ff !important; }
:root:not(.dark) .bg-orange-100 { background-color: #f3e8ff !important; }
:root:not(.dark) .bg-orange-200 { background-color: #e9d5ff !important; }
:root:not(.dark) .bg-orange-50\/50 { background-color: rgba(250, 245, 255, 0.5) !important; }
:root:not(.dark) .bg-orange-900\/10 { background-color: rgba(88, 28, 135, 0.1) !important; }
:root:not(.dark) .bg-orange-900\/20 { background-color: rgba(88, 28, 135, 0.2) !important; }
:root:not(.dark) .bg-orange-900\/30 { background-color: rgba(88, 28, 135, 0.3) !important; }
:root:not(.dark) .hover\:bg-orange-200:hover { background-color: #e9d5ff !important; }
:root:not(.dark) .hover\:bg-orange-900\/30:hover { background-color: rgba(88, 28, 135, 0.3) !important; }
:root:not(.dark) .text-orange-700 { color: #7c3aed !important; }
:root:not(.dark) .border-orange-200 { border-color: #e9d5ff !important; }
:root:not(.dark) .border-orange-300 { border-color: #d8b4fe !important; }
:root:not(.dark) .ring-orange-500\/20 { --tw-ring-color: rgba(168, 85, 247, 0.2) !important; }

/* Additional icon and accent color overrides */
:root:not(.dark) .fill-orange-500 { fill: #a855f7 !important; }
:root:not(.dark) .stroke-orange-500 { stroke: #a855f7 !important; }

/* Spinner/loader border */
:root:not(.dark) .border-orange-500 { border-color: #a855f7 !important; }

/* ============================================
   LIGHT MODE TEXT VISIBILITY FIXES
   Fix white text being invisible on light backgrounds
   ============================================ */

/* OSYS text classes need dark text in light mode */
:root:not(.dark) .osys-text-display {
    color: #0f172a !important; /* slate-900 */
}

:root:not(.dark) .osys-text-title {
    color: #0f172a !important; /* slate-900 */
}

:root:not(.dark) .osys-text-hero {
    color: #0f172a !important; /* slate-900 */
}

/* Fix text-white being invisible in light mode when not on dark backgrounds */
:root:not(.dark) .osys-glass .text-white,
:root:not(.dark) .osys-card .text-white {
    color: #0f172a !important; /* slate-900 */
}

/* Fix zinc-400 text being too light on white backgrounds */
:root:not(.dark) .text-zinc-400 {
    color: #6b7280 !important; /* gray-500 - better contrast */
}

/* NIL Wallet & Fundraising Page specific fixes */
/* These pages use dark-themed components - ensure readability in light mode */
:root:not(.dark) .osys-glass h1,
:root:not(.dark) .osys-glass h2,
:root:not(.dark) .osys-glass h3,
:root:not(.dark) .osys-glass h4,
:root:not(.dark) .osys-card h1,
:root:not(.dark) .osys-card h2,
:root:not(.dark) .osys-card h3,
:root:not(.dark) .osys-card h4 {
    color: #0f172a !important; /* slate-900 */
}

/* Fix GlassCard background for light mode */
:root:not(.dark) .osys-glass {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

:root:not(.dark) .osys-glass p,
:root:not(.dark) .osys-glass li,
:root:not(.dark) .osys-glass span:not(.osys-badge):not(.osys-badge-gold) {
    color: #334155 !important; /* slate-700 */
}

:root:not(.dark) .osys-glass h1,
:root:not(.dark) .osys-glass h2,
:root:not(.dark) .osys-glass h3,
:root:not(.dark) .osys-glass h4,
:root:not(.dark) .osys-glass h5,
:root:not(.dark) .osys-glass h6 {
    color: #0f172a !important; /* slate-900 */
}

:root:not(.dark) .osys-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Fix slate text colors for better readability */
:root:not(.dark) .text-slate-400 {
    color: #6b7280 !important; /* gray-500 */
}

:root:not(.dark) .text-slate-500 {
    color: #4b5563 !important; /* gray-600 */
}
