/* ===================================
   MODERN SATTA MATKA LIVE - CSS
   Attractive, Animated & Professional
   =================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #0a0e27;
    --light: #f8fafc;
    --purple: #a855f7;
    --orange: #f97316;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-orange: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    
    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.5);
    --glow-success: 0 0 20px rgba(16, 185, 129, 0.5);
    --glow-danger: 0 0 20px rgba(239, 68, 68, 0.5);
    
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
    background: #0a0e27;
    overflow-x: hidden;
    position: relative;
}

/* ========== PARTICLES BACKGROUND ========== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
}

.container, section {
    position: relative;
    z-index: 1;
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.dice-loader {
    perspective: 1000px;
    margin-bottom: 2rem;
}

.dice {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateDice 3s infinite;
}

.face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: var(--shadow-xl);
}

.front  { transform: rotateY(0deg) translateZ(40px); }
.back   { transform: rotateY(180deg) translateZ(40px); }
.right  { transform: rotateY(90deg) translateZ(40px); }
.left   { transform: rotateY(-90deg) translateZ(40px); }
.top    { transform: rotateX(90deg) translateZ(40px); }
.bottom { transform: rotateX(-90deg) translateZ(40px); }

@keyframes rotateDice {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(180deg) rotateY(0deg); }
    50% { transform: rotateX(180deg) rotateY(180deg); }
    75% { transform: rotateX(0deg) rotateY(180deg); }
    100% { transform: rotateX(0deg) rotateY(360deg); }
}

.loading-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-display);
}

.dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* ========== FLOATING ACTION BUTTON ========== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: var(--transition-normal);
    animation: float 3s ease-in-out infinite;
}

.fab-main:hover {
    transform: rotate(45deg) scale(1.1);
    box-shadow: var(--glow-primary), var(--shadow-xl);
}

.fab-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.fab-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.fab-option:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.fab-option[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.fab-option:hover::before {
    opacity: 1;
    visibility: visible;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-success);
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: var(--transition-normal);
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-top-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--glow-success), var(--shadow-lg);
}

/* ========== NAVIGATION ========== */
.navbar-glass {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.navbar-glass.scrolled {
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.logo-animated {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition-normal);
}

.logo-icon {
    font-size: 2rem;
    animation: rotate360 4s linear infinite;
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.65rem;
    color: #a0aec0;
    letter-spacing: 2px;
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

/* ========== LIVE TICKER ========== */
.live-ticker {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker-label {
    padding: 0 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-wrapper {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-wrapper span {
    padding: 0 3rem;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.hero-content {
    padding: 2rem 0;
}

.badge-container {
    animation: slideDown 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    font-family: var(--font-display);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* ========== BUTTONS ========== */
.btn-glow-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-glow-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-primary), var(--shadow-xl);
    color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
}

.btn-glow {
    background: var(--gradient-warning);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5), var(--shadow-lg);
    color: white;
}

/* ========== HERO ILLUSTRATION ========== */
.hero-illustration {
    position: relative;
    height: 500px;
    animation: fadeIn 1s ease 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    animation: floatUpDown 3s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-card .card-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.floating-card .result-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warning);
    margin: 0;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    animation: pulse-circle 4s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: 50px;
    animation-delay: 1s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

@keyframes pulse-circle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ========== SECTION STYLES ========== */
section {
    padding: 5rem 0;
}

.bg-dark-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

/* ========== RESULT CARDS MODERN ========== */
.result-card-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.result-card-modern:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.result-card-modern.premium-card {
    border-color: rgba(245, 158, 11, 0.5);
}

.result-card-modern.premium-card:hover {
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.4);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-header-modern {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.market-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.market-icon.bg-success {
    background: var(--gradient-success);
}

.market-icon.bg-warning {
    background: var(--gradient-warning);
}

.market-icon.bg-info {
    background: var(--gradient-info);
}

.market-icon.bg-purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.market-icon.bg-dark {
    background: var(--gradient-dark);
}

.market-info {
    flex: 1;
}

.market-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.market-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.pulse-ring {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    position: absolute;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    position: relative;
    z-index: 1;
}

.live-indicator.inactive .live-dot {
    background: #64748b;
    box-shadow: none;
}

.card-body-modern {
    padding: 1.5rem;
}

.result-display-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.result-item {
    flex: 1;
    text-align: center;
}

.result-item.jodi-center {
    flex: 0.8;
}

.result-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.result-value.jodi-result {
    font-size: 2rem;
}

.result-value .digit {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.result-value .digit:hover {
    transform: scale(1.1) rotate(5deg);
}

.neon-text {
    color: #6366f1;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5),
                 0 0 20px rgba(99, 102, 241, 0.3),
                 0 0 30px rgba(99, 102, 241, 0.2);
}

.neon-text-green {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5),
                 0 0 20px rgba(16, 185, 129, 0.3),
                 0 0 30px rgba(16, 185, 129, 0.2);
}

.neon-text-red {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5),
                 0 0 20px rgba(239, 68, 68, 0.3),
                 0 0 30px rgba(239, 68, 68, 0.2);
}

.timing-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.timing-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.timing-info strong {
    color: white;
}

.progress-bar-modern {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-success);
    border-radius: 10px;
    transition: width 1s ease;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: white;
    transform: translateY(-2px);
}

.card-footer-modern {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.view-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== TABLE MODERN ========== */
.table-card-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.table-card-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-card-header h4 {
    color: white;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.modern-table th {
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 600;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-table td {
    padding: 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-row-animated {
    transition: var(--transition-fast);
}

.table-row-animated:hover {
    background: rgba(255, 255, 255, 0.03);
}

.date-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.market-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.market-badge.kalyan {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.market-badge.milan-day {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.market-badge.milan-night {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.market-badge.rajdhani {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.number-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.number-badge.open {
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.3);
}

.number-badge.jodi {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.number-badge.close {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pill.live {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-pill.waiting {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-pill.closed {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.table-action-btn {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #6366f1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.table-action-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.table-card-footer {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.pagination-modern {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: white;
}

.pagination-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-dots {
    color: rgba(255, 255, 255, 0.5);
}

/* ========== CHARTS ========== */
.chart-card-modern,
.stats-card-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.chart-card-modern:hover,
.stats-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h4 {
    color: white;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chart-btn:hover,
.chart-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

.stats-card-modern {
    text-align: center;
}

.stats-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.stats-icon.bg-success {
    background: var(--gradient-success);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.stats-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stats-trend.up {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* ========== INFO CARDS ========== */
.info-card-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-normal);
    height: 100%;
}

.info-card-modern:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.info-card-modern:hover .info-icon {
    transform: rotateY(360deg);
}

.info-icon.bg-success {
    background: var(--gradient-success);
}

.info-icon.bg-warning {
    background: var(--gradient-warning);
}

.info-icon.bg-info {
    background: var(--gradient-info);
}

.info-icon.bg-danger {
    background: var(--gradient-danger);
}

.info-icon.bg-purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.info-card-modern h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.info-card-modern p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    text-align: center;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.read-more:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
}

.newsletter-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--gradient-warning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

.newsletter-card h3 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter-card > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto 1rem;
}

.input-group-modern {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.input-group-modern:focus-within {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.input-group-modern i {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 1rem;
    font-size: 1.2rem;
}

.input-group-modern input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    outline: none;
}

.input-group-modern input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ========== FOOTER ========== */
.footer-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    margin-top: 5rem;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    transform: rotate(180deg);
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.footer-top {
    padding: 4rem 0 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    font-size: 2rem;
}

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 1rem;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact i {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ========== MODAL ========== */
.modal-modern .modal-content {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
}

.modal-modern .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.modal-modern .modal-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-modern .btn-close {
    filter: invert(1);
}

.modal-modern .modal-body {
    padding: 2rem 1.5rem;
}

.modal-modern .modal-body p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.modal-modern .modal-body ul {
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
}

.modal-modern .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1199px) {
    .result-display-modern {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .result-item {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-illustration {
        height: 400px;
        margin-top: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .chart-card-modern,
    .stats-card-modern {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .floating-card .card-content i {
        font-size: 2rem;
    }
    
    .floating-card .result-text {
        font-size: 1.2rem;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .table-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-filters {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
    }
    
    .table-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination-modern {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-card {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-card h3 {
        font-size: 1.5rem;
    }
    
    .input-group-modern {
        flex-direction: column;
        border-radius: 15px;
        padding: 1rem;
    }
    
    .input-group-modern input {
        width: 100%;
        text-align: center;
    }
    
    .input-group-modern .btn {
        width: 100%;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        left: 20px;
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .ticker-label {
        padding: 0 1rem;
        font-size: 0.75rem;
    }
    
    .market-name {
        font-size: 1rem;
    }
    
    .result-value {
        font-size: 1.3rem;
    }
    
    .modern-table {
        font-size: 0.85rem;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ========== UTILITY CLASSES ========== */
.bg-purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar, .live-ticker, .floating-actions, .scroll-top-btn, .footer-modern {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}/* Custom Styles for Satta Matka Live */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== THEME TOGGLE & LIGHT THEME OVERRIDES ========== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

body[data-theme="light"] {
    background: #ffffff;
    color: #111827;
}

body[data-theme="light"] #particles-js {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #ffffff 100%);
}

body[data-theme="light"] .navbar-glass {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .navbar-nav .nav-link {
    color: rgba(17, 24, 39, 0.8);
}

body[data-theme="light"] .navbar-nav .nav-link:hover,
body[data-theme="light"] .navbar-nav .nav-link.active {
    color: #111827;
    background: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .btn-glass {
    background: rgba(0, 0, 0, 0.06);
    color: #111827;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .hero-section,
body[data-theme="light"] .page-hero-section,
body[data-theme="light"] .bg-dark-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

body[data-theme="light"] .hero-title,
body[data-theme="light"] .section-title,
body[data-theme="light"] .info-card-modern h4 {
    color: #111827;
}

body[data-theme="light"] .hero-subtitle,
body[data-theme="light"] .section-subtitle,
body[data-theme="light"] .text-white,
body[data-theme="light"] .text-white-50 {
    color: #374151 !important;
}

/* Index/cards specifics */
body[data-theme="light"] .market-name { color: #111827; }
body[data-theme="light"] .market-subtitle { color: #6b7280; }
body[data-theme="light"] .result-label { color: #6b7280; }
body[data-theme="light"] .table-card-header h4 { color: #111827; }
body[data-theme="light"] .modern-table thead { background: rgba(0,0,0,0.04); }
body[data-theme="light"] .info-card-modern p { color: #374151; }
body[data-theme="light"] .content-card-modern h2,
body[data-theme="light"] .content-card-modern h3,
body[data-theme="light"] .content-card-modern h4 { color: #111827; }
body[data-theme="light"] .content-card-modern p { color: #374151; }
body[data-theme="light"] .stats-number { color: #111827; }
body[data-theme="light"] .stats-label { color: #4b5563; }
body[data-theme="light"] .chart-header h4 { color: #111827; }
body[data-theme="light"] .navbar-toggler { color: #111827; }

/* Newsletter (Get Instant Notifications) */
body[data-theme="light"] .newsletter-section { background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%); }
body[data-theme="light"] .newsletter-card h3 { color: #111827; }
body[data-theme="light"] .newsletter-card > p { color: #374151; }
body[data-theme="light"] .newsletter-note { color: #4b5563; }
body[data-theme="light"] .input-group-modern { background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.08); }
body[data-theme="light"] .input-group-modern i { color: #6b7280; }
body[data-theme="light"] .input-group-modern input { color: #111827; }
body[data-theme="light"] .input-group-modern input::placeholder { color: #9ca3af; }

/* Footer full light override (beats global footer !important) */
body[data-theme="light"] footer { background: linear-gradient(135deg, #ffffff, #f8fafc) !important; }
body[data-theme="light"] .footer-title { color: #111827; }
body[data-theme="light"] .footer-logo .logo-text { -webkit-text-fill-color: initial; color: #111827; background: none; }
body[data-theme="light"] .footer-contact i { background: rgba(0,0,0,0.05); color: var(--primary); }

body[data-theme="light"] .result-card-modern,
body[data-theme="light"] .info-card-modern,
body[data-theme="light"] .chart-card-modern,
body[data-theme="light"] .stats-card-modern,
body[data-theme="light"] .table-card-modern,
body[data-theme="light"] .content-card-modern,
body[data-theme="light"] .value-card,
body[data-theme="light"] .mission-card,
body[data-theme="light"] .cta-card-modern,
body[data-theme="light"] .newsletter-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .card-header-modern,
body[data-theme="light"] .table-card-header {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .modern-table thead,
body[data-theme="light"] .modern-table th,
body[data-theme="light"] .modern-table td {
    color: #111827;
}

body[data-theme="light"] .footer-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

body[data-theme="light"] .footer-description,
body[data-theme="light"] .footer-links a,
body[data-theme="light"] .footer-contact li,
body[data-theme="light"] .footer-bottom-links a,
body[data-theme="light"] .copyright {
    color: #4b5563;
}

body[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
}

/* Improve contrast for badges/buttons in light */
body[data-theme="light"] .filter-btn,
body[data-theme="light"] .action-btn,
body[data-theme="light"] .pagination-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #374151;
}

/* Theme toggle colors in light */
body[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.04);
    color: #111827;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Carousel Styles */
.carousel-section {
    height: 70vh;
    min-height: 500px;
}

.carousel-slide {
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bg-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.carousel-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

/* Live Cards */
.live-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.live-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.live-indicator {
    position: relative;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.result-display h3 {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Information Cards */
.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border-left: 4px solid #007bff;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.info-card h4 {
    color: #333;
    margin-bottom: 1rem;
}

.info-card p {
    color: #666;
    line-height: 1.7;
}

/* Table Styles */
.table {
    border-radius: 15px;
    overflow: hidden;
}

.table th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table td {
    border: none;
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-slide {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-content {
        padding: 1rem;
    }
    
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .info-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .result-display h3 {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-content h1 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .result-display h3 {
        font-size: 1.75rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Navbar Enhancements */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Button Styles */
.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Badge Styles */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
}

footer a:hover {
    color: #fff !important;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}