/* ==========================================================
   DIWA PLAY - MODERN ULTRA-CLEAN LIGHT THEME (v9.0)
   Aesthetic, High-Contrast, Glassmorphic & Mobile-First
   ========================================================== */

:root {
    /* Canvas & Surface Colors */
    --bg-canvas: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-subtle-hover: #e2e8f0;
    
    /* Borders */
    --border-subtle: #e2e8f0;
    --border-card: #e8ecf2;
    --border-accent: rgba(16, 185, 129, 0.3);
    --border-focus: #10b981;
    
    /* Text Hierarchy */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Brand Emerald Palette */
    --primary: #059669;
    --primary-hover: #047857;
    --primary-soft: #ecfdf5;
    --primary-glow: rgba(5, 150, 105, 0.18);
    
    /* Brand Gold / Amber Palette */
    --secondary: #d97706;
    --secondary-hover: #b45309;
    --secondary-soft: #fef3c7;
    --diwa-gold: #f59e0b;
    
    /* Vibrant Accents */
    --accent-red: #ef4444;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-indigo: #4f46e5;
    
    /* Typography */
    --font-gaming: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --card-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --card-shadow-hover: 0 16px 30px -4px rgba(16, 185, 129, 0.12), 0 8px 16px -3px rgba(15, 23, 42, 0.04);
    --banner-shadow: 0 20px 35px -10px rgba(16, 185, 129, 0.12), 0 10px 20px -5px rgba(15, 23, 42, 0.04);
}

/* Base Body Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-canvas);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 10% 25%, rgba(56, 189, 248, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 90% 65%, rgba(251, 191, 36, 0.06) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .section-heading, .card-game-title, .nav-brand-text {
    font-family: var(--font-gaming);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Mobile-Friendly Container */
.container {
    width: 100%;
    max-width: 1240px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
}

/* Glassmorphic Panels & Elevated Cards */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

/* Header & Navbar */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.nav-brand-text {
    color: var(--text-primary) !important;
}

.nav-link-modern {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px !important;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.nav-link-modern:hover {
    color: var(--text-primary) !important;
    background: rgba(16, 185, 129, 0.08);
}

.nav-link-modern.active {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.nav-cta-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    display: inline-flex;
    align-items: center;
    border: none;
    transition: var(--transition);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #ffffff !important;
}

/* Pulse Glow Animation */
.pulse-diwa-btn {
    animation: diwaPulse 2.2s infinite;
}

@keyframes diwaPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Live Marquee Ticker Bar */
.ticker-bar {
    background: #f1f5f9;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 7px 0;
    font-size: 0.83rem;
    color: var(--text-secondary);
}

.ticker-label {
    background: var(--accent-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Diwa Play Hero Banner (Light Mode Masterwork) */
.hero-diwa-banner {
    background: radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 40%),
                linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #fffdf5 100%) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--banner-shadow) !important;
}

.hero-diwa-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #10b981, #fbbf24, #ef4444, #10b981);
    background-size: 300% 100%;
    animation: borderSlide 6s linear infinite;
}

@keyframes borderSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.diwa-brand-glow {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.gold-shimmer {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #ffffff !important;
    font-weight: 800;
}

/* Compact Search & Filter Controls */
.compact-search-box {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.compact-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.compact-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.compact-search-input {
    width: 100%;
    height: 46px;
    padding: 8px 14px 8px 42px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
}

.compact-search-input::placeholder {
    color: var(--text-muted);
}

/* Horizontal Swipable Chips Container */
.chips-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.chips-container::-webkit-scrollbar {
    display: none;
}

.chip-btn {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: var(--transition);
    user-select: none;
}

.chip-btn:hover {
    color: var(--text-primary);
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.chip-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Horizontal Releases Slider */
.game-slider-wrapper {
    position: relative;
    padding: 0;
}

.game-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    list-style: none;
    padding: 4px 0 10px 0;
    margin: 0;
}

.game-slider::-webkit-scrollbar {
    display: none;
}

.game-slide {
    flex: 0 0 115px;
    text-align: center;
}

.game-slide a {
    display: block;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 10px 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.game-slide a:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 20px -3px rgba(16, 185, 129, 0.15);
}

.slide-img-box {
    width: 68px;
    height: 68px;
    margin: 0 auto 8px auto;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
}

.slide-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-slide .game-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.slide-bonus-pill {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    display: inline-block;
}

.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.slider-btn.prev { left: -10px; }
.slider-btn.next { right: -10px; }

.slider-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Games Grid - Responsive Layout */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

@media (max-width: 991px) and (min-width: 576px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 575px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Game Card (High-Contrast White Elevated Card) */
.premium-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
}

.premium-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: var(--card-shadow-hover);
}

.card-top-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.card-img-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    flex-grow: 1;
}

.card-game-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.rating-pill {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 6px 10px;
    margin-bottom: 12px;
    font-size: 0.78rem;
}

.meta-box {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.meta-value {
    font-weight: 800;
}

.meta-value.bonus { color: #d97706; }
.meta-value.redeem { color: #059669; }

.btn-premium {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: var(--transition);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
    color: #ffffff !important;
}

/* Spotlight Top Card */
.top-spotlight-card {
    border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.08), 0 2px 4px rgba(0,0,0,0.04) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fffdfa 100%) !important;
    border-radius: 18px;
    transition: all 0.25s ease;
}

.top-spotlight-card:hover {
    border-color: #f59e0b !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15) !important;
}

/* Mobile Specific Refinements for Cards */
@media (max-width: 575px) {
    .premium-card {
        padding: 10px;
        border-radius: 14px;
    }
    
    .card-top-info {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .card-img-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    
    .card-game-title {
        font-size: 0.85rem;
    }
    
    .rating-pill {
        font-size: 0.65rem;
        padding: 1px 5px;
    }
    
    .card-meta-row {
        padding: 4px 6px;
        margin-bottom: 8px;
        font-size: 0.72rem;
    }
    
    .btn-premium {
        font-size: 0.75rem;
        padding: 6px 8px;
        border-radius: 8px;
    }
}

/* Feature Showcase Grid */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.bg-success-soft { background: #ecfdf5 !important; color: #059669 !important; }
.bg-primary-soft { background: #eff6ff !important; color: #2563eb !important; }
.bg-warning-soft { background: #fffbeb !important; color: #d97706 !important; }
.bg-info-soft    { background: #f5f3ff !important; color: #7c3aed !important; }

/* Telegram Promotion Card */
.telegram-card {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-radius: 20px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.25);
}

.telegram-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.telegram-icon {
    font-size: 2.5rem;
    color: #ffffff;
}

.telegram-text h4 {
    color: #ffffff !important;
    margin-bottom: 4px;
    font-size: 1.25rem;
}

.telegram-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 0.88rem;
}

.telegram-join-btn {
    background: #ffffff;
    color: #0284c7 !important;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.telegram-join-btn:hover {
    transform: translateY(-2px);
    background: #f8fafc;
    color: #0369a1 !important;
}

@media (max-width: 767px) {
    .telegram-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .telegram-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .telegram-join-btn {
        width: 100%;
        text-align: center;
    }
}

/* Blog Cards & Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) and (min-width: 576px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.premium-blog-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.premium-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 16px 30px -4px rgba(37, 99, 235, 0.1);
}

.blog-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.premium-blog-card:hover .blog-img-wrapper img {
    transform: scale(1.04);
}

.blog-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.blog-body {
    padding: 18px;
}

.blog-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text-primary) !important;
}

.blog-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.blog-link {
    color: #059669;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-link:hover {
    color: #047857;
    transform: translateX(4px);
}

/* Site Footer (Modern Crisp Slate) */
.site-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px 0;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    margin-bottom: 18px;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.footer-social-btn.telegram {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.footer-social-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-telegram-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 10px;
    transition: var(--transition);
}

.footer-telegram-btn:hover {
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
    transform: translateY(-2px);
}

.footer-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 40px 0 25px 0;
}

.footer-scroll-top {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.footer-scroll-top:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Mobile Sticky Download Action Bar */
.sticky-mobile-diwa-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 992px) {
    .sticky-mobile-diwa-bar {
        display: none !important;
    }
}

/* Mobile Phone Specific Refinements */
@media (max-width: 575px) {
    .hero-diwa-banner {
        padding: 16px 12px !important;
        border-radius: 18px !important;
    }
    .hero-diwa-banner img.diwa-brand-glow {
        width: 68px !important;
        height: 68px !important;
        border-radius: 16px !important;
    }
    .hero-diwa-banner h2 {
        font-size: 1.22rem !important;
    }
    .hero-diwa-banner .btn-lg {
        font-size: 0.98rem !important;
        padding: 10px 12px !important;
    }
    .top-spotlight-card {
        padding: 10px 8px !important;
        border-radius: 14px !important;
    }
    .top-spotlight-card img {
        width: 42px !important;
        height: 42px !important;
    }
    .top-spotlight-card h4 {
        font-size: 0.78rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .top-spotlight-card .btn {
        width: 100% !important;
        text-align: center !important;
        padding: 5px 6px !important;
        font-size: 0.74rem !important;
        border-radius: 20px !important;
    }
}

/* Tables & Specifications */
.table {
    color: var(--text-primary) !important;
    border-color: var(--border-subtle) !important;
    background: transparent !important;
}

.table thead, .thead-dark, .table-dark {
    background: #f1f5f9 !important;
    color: var(--text-primary) !important;
    border-color: var(--border-subtle) !important;
}

.table thead th, .table-dark th {
    background: #f1f5f9 !important;
    color: var(--text-primary) !important;
    border-color: var(--border-subtle) !important;
}

.table td {
    background: #ffffff !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-subtle) !important;
}

.table-hover tbody tr:hover td {
    background: #f8fafc !important;
    color: var(--text-primary) !important;
}

/* Forms & Inputs */
.form-control, .form-select {
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.list-group-item {
    border-color: var(--border-subtle) !important;
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border-subtle) !important;
}

.nav-tabs .nav-link {
    color: var(--text-secondary) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    font-weight: 700;
}

.nav-tabs .nav-link:hover {
    color: var(--primary) !important;
}

.nav-tabs .nav-link.active {
    color: var(--primary) !important;
    background: transparent !important;
    border-bottom: 2px solid var(--primary) !important;
}

/* ==========================================================
   SMART TEXT CONTRAST ADAPTATIONS (LIGHT THEME)
   ========================================================== */
.text-dark {
    color: var(--text-primary) !important;
}

.bg-light {
    background-color: #f1f5f9 !important;
    color: var(--text-primary) !important;
    border-color: var(--border-subtle) !important;
}

/* Text white adaptation: preserve on buttons, badges, telegram, gradients; convert on canvas */
.text-white:not(.btn):not(.badge):not(.nav-cta-btn):not(.pulse-diwa-btn):not(.telegram-card *):not(.footer-telegram-btn):not(.footer-social-btn.telegram):not([style*="background: linear"]):not([style*="background: #10b981"]):not([style*="background: #0284c7"]):not([style*="background: #3b82f6"]):not(.bg-success):not(.bg-primary):not(.bg-danger):not(.bg-dark):not(.hero-cta-btn) {
    color: var(--text-primary) !important;
}

.text-white-50:not(.btn *):not(.badge *):not(.telegram-card *):not([style*="background: linear"] *) {
    color: var(--text-secondary) !important;
}

/* Mobile Navbar Dropdown */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid var(--border-subtle) !important;
        border-radius: 16px;
        padding: 16px;
        margin-top: 10px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    }
    .nav-link-modern {
        color: var(--text-secondary) !important;
    }
    .navbar-toggler {
        background: #ffffff !important;
        border: 1px solid var(--border-subtle) !important;
        border-radius: 10px;
        padding: 6px 10px;
    }
    .navbar-toggler-icon {
        filter: invert(0.8) !important;
    }
}
