/* Modern Glassmorphic Dark Theme for Crypto Cap */

/* Gradient Background Variables */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255,255,255,0.2);
    --shadow-glow: 0 8px 32px rgba(31, 38, 135, 0.37);
    --neon-blue: #00d4ff;
    --neon-purple: #b794f6;
    --neon-pink: #f093fb;
    --neon-green: #48bb78;
}

/* Override Bootstrap dark theme variables */
html[data-bs-theme="dark"] {
    --bs-body-bg: #0a0a0a;
    --bs-body-color: #e2e8f0;
    --bs-primary: var(--neon-blue);
    --bs-secondary: var(--neon-purple);
    --bs-success: var(--neon-green);
    --bs-info: var(--neon-blue);
    --bs-warning: #fbb03b;
    --bs-danger: var(--neon-pink);
    --bs-dark: rgba(26, 32, 46, 0.8);
    --bs-light: rgba(255, 255, 255, 0.1);
    --bs-border-color: rgba(255, 255, 255, 0.2);
    --bs-card-bg: rgba(255, 255, 255, 0.1);
    --bs-tertiary-bg: rgba(255, 255, 255, 0.05);
}

/* Main body with animated gradient background */
html[data-bs-theme="dark"] body {
    background: var(--gradient-dark) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    color: #e2e8f0 !important;
    min-height: 100vh;
    position: relative;
}

html[data-bs-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(183, 148, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(240, 147, 251, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Glassmorphic Cards */
html[data-bs-theme="dark"] .card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-glow) !important;
    color: #e2e8f0 !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

html[data-bs-theme="dark"] .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

html[data-bs-theme="dark"] .card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.5) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
}

html[data-bs-theme="dark"] .card-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f8fafc !important;
    border-radius: 20px 20px 0 0 !important;
    font-weight: 600;
}

/* Glassmorphic Navigation */
html[data-bs-theme="dark"] .navbar {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border-bottom: var(--glass-border) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

html[data-bs-theme="dark"] .navbar-brand {
    font-weight: 700 !important;
    background: var(--gradient-accent) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

html[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.2s ease !important;
    padding: 0.7rem 1rem !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
}

html[data-bs-theme="dark"] .navbar-nav .nav-link:hover,
html[data-bs-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--neon-blue) !important;
    background: rgba(0, 212, 255, 0.1) !important;
    text-shadow: 0 0 10px var(--neon-blue) !important;
    transform: translateY(-1px) !important;
}

/* Navbar brand logo enhancement */
html[data-bs-theme="dark"] .navbar-brand {
    filter: brightness(1.2) contrast(1.1) !important;
}

/* Search form styling */
html[data-bs-theme="dark"] .search_form input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: var(--text-color) !important;
    border-radius: 25px !important;
    padding: 8px 16px !important;
    backdrop-filter: blur(10px) !important;
}

html[data-bs-theme="dark"] .search_form input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

html[data-bs-theme="dark"] .search_form input:focus {
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
    outline: none !important;
}

/* Modern Tables */
html[data-bs-theme="dark"] .table {
    --bs-table-bg: rgba(255, 255, 255, 0.05);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.1);
    --bs-table-hover-bg: rgba(0, 212, 255, 0.1);
    color: #e2e8f0 !important;
    backdrop-filter: var(--glass-blur) !important;
    border-radius: 15px !important;
    overflow: hidden;
}

html[data-bs-theme="dark"] .table th {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f8fafc !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

html[data-bs-theme="dark"] .table td {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(0, 212, 255, 0.1) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Glassmorphic Forms */
html[data-bs-theme="dark"] .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    border-radius: 12px !important;
    color: #e2e8f0 !important;
    transition: all 0.3s ease !important;
}

html[data-bs-theme="dark"] .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--neon-blue) !important;
    color: #f8fafc !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3) !important;
    transform: translateY(-2px);
}

html[data-bs-theme="dark"] .form-control::placeholder {
    color: rgba(226, 232, 240, 0.6) !important;
}

html[data-bs-theme="dark"] .form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    border-radius: 12px !important;
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .form-label {
    color: #f8fafc !important;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Neon Buttons */
html[data-bs-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%) !important;
    border: 1px solid var(--neon-blue) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

html[data-bs-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%) !important;
    border-color: var(--neon-purple) !important;
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}

html[data-bs-theme="dark"] .btn-outline-primary {
    color: var(--neon-blue) !important;
    border: 2px solid var(--neon-blue) !important;
    background: rgba(0, 212, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

html[data-bs-theme="dark"] .btn-outline-primary:hover {
    background: var(--neon-blue) !important;
    color: #0a0a0a !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6) !important;
    transform: translateY(-2px) !important;
}

html[data-bs-theme="dark"] .btn-success {
    background: linear-gradient(135deg, var(--neon-green) 0%, #38a169 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3) !important;
}

html[data-bs-theme="dark"] .btn-danger {
    background: var(--gradient-secondary) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3) !important;
}

/* Glassmorphic Modals */
html[data-bs-theme="dark"] .modal-content {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    border-radius: 20px !important;
    color: #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

html[data-bs-theme="dark"] .modal-backdrop {
    backdrop-filter: blur(10px) !important;
}

html[data-bs-theme="dark"] .modal-header {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px 20px 0 0 !important;
}

html[data-bs-theme="dark"] .modal-footer {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 0 0 20px 20px !important;
}

/* Crypto-specific Elements with Neon Effects */
html[data-bs-theme="dark"] .crypto-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

html[data-bs-theme="dark"] .crypto-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2) !important;
}

html[data-bs-theme="dark"] .crypto-price {
    background: var(--gradient-accent) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

html[data-bs-theme="dark"] .crypto-change.positive {
    color: var(--neon-green) !important;
    text-shadow: 0 0 10px rgba(72, 187, 120, 0.5) !important;
    font-weight: 600;
}

html[data-bs-theme="dark"] .crypto-change.negative {
    color: var(--neon-pink) !important;
    text-shadow: 0 0 10px rgba(240, 147, 251, 0.5) !important;
    font-weight: 600;
}

/* Alerts with Glass Effect */
html[data-bs-theme="dark"] .alert {
    backdrop-filter: var(--glass-blur) !important;
    border-radius: 15px !important;
    border: var(--glass-border) !important;
    font-weight: 500;
}

html[data-bs-theme="dark"] .alert-info {
    background: rgba(0, 212, 255, 0.2) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
    color: #dbeafe !important;
}

html[data-bs-theme="dark"] .alert-success {
    background: rgba(72, 187, 120, 0.2) !important;
    border-color: rgba(72, 187, 120, 0.4) !important;
    color: #dcfce7 !important;
}

html[data-bs-theme="dark"] .alert-warning {
    background: rgba(251, 176, 59, 0.2) !important;
    border-color: rgba(251, 176, 59, 0.4) !important;
    color: #fef3c7 !important;
}

html[data-bs-theme="dark"] .alert-danger {
    background: rgba(240, 147, 251, 0.2) !important;
    border-color: rgba(240, 147, 251, 0.4) !important;
    color: #fee2e2 !important;
}

/* Enhanced Text Styling */
html[data-bs-theme="dark"] .text-muted {
    color: rgba(226, 232, 240, 0.7) !important;
}

html[data-bs-theme="dark"] .text-dark {
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] h1, html[data-bs-theme="dark"] h2, html[data-bs-theme="dark"] h3 {
    background: var(--gradient-accent) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700;
}

/* Links with Neon Glow */
html[data-bs-theme="dark"] a {
    color: var(--neon-blue) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

html[data-bs-theme="dark"] a:hover {
    color: #e2e8f0 !important;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8) !important;
}

/* Glass Borders */
html[data-bs-theme="dark"] .border {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Glass Backgrounds */
html[data-bs-theme="dark"] .bg-light,
html[data-bs-theme="dark"] .bg-white {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
}

/* Footer with Glass Effect */
html[data-bs-theme="dark"] footer {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: var(--glass-blur) !important;
    border-top: var(--glass-border) !important;
    color: #e2e8f0 !important;
}

/* Scrollbar Styling */
html[data-bs-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
}

html[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 10px;
}

html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* Floating Animation for Interactive Elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

html[data-bs-theme="dark"] .crypto-card:hover {
    animation: float 3s ease-in-out infinite;
}

/* Loading Spinner with Neon Effect */
html[data-bs-theme="dark"] .spinner-border {
    border-color: rgba(0, 212, 255, 0.3);
    border-top-color: var(--neon-blue);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

/* Top Cryptocurrency Widgets with Glassmorphic Effect */
html[data-bs-theme="dark"] .top_coins {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-glow) !important;
    color: #e2e8f0 !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

html[data-bs-theme="dark"] .top_coins::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

html[data-bs-theme="dark"] .top_coins:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
}

html[data-bs-theme="dark"] .top_coin_header {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
    border-radius: 20px 20px 15px 15px !important;
    padding: 1.5rem !important;
    position: relative;
}

html[data-bs-theme="dark"] .top_coin_header h4 {
    background: var(--gradient-accent) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem !important;
}

html[data-bs-theme="dark"] .top_coin_header h3 {
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    margin-bottom: 0 !important;
}

html[data-bs-theme="dark"] .top_coin_header i {
    color: var(--neon-blue) !important;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
    margin-right: 8px;
}

/* Override any bg-white classes in dark mode */
html[data-bs-theme="dark"] .bg-white {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
}

/* Coin table styling within top widgets */
html[data-bs-theme="dark"] .top_coins .table {
    background: transparent !important;
    color: #e2e8f0 !important;
    margin-bottom: 0 !important;
}

html[data-bs-theme="dark"] .top_coins .table td {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    padding: 0.75rem !important;
    vertical-align: middle;
}

html[data-bs-theme="dark"] .top_coins .table tr:hover {
    background-color: rgba(0, 212, 255, 0.1) !important;
}

html[data-bs-theme="dark"] .coin-card-body {
    padding: 1rem 1.5rem 1.5rem !important;
}

/* Percentage change styling in widgets */
html[data-bs-theme="dark"] .top_coins .text-success {
    color: var(--neon-green) !important;
    text-shadow: 0 0 10px rgba(72, 187, 120, 0.5) !important;
    font-weight: 600;
}

html[data-bs-theme="dark"] .top_coins .text-danger {
    color: var(--neon-pink) !important;
    text-shadow: 0 0 10px rgba(240, 147, 251, 0.5) !important;
    font-weight: 600;
}

/* Coin images in widgets */
html[data-bs-theme="dark"] .top_coins img {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
}

html[data-bs-theme="dark"] .top_coins img:hover {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    transform: scale(1.1);
}

/* Links within top widgets */
html[data-bs-theme="dark"] .top_coins a {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

html[data-bs-theme="dark"] .top_coins a:hover {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6) !important;
}

html[data-bs-theme="dark"] .top_coins .hover_primary:hover {
    color: var(--neon-blue) !important;
}

/* Widget header icons and view all links */
html[data-bs-theme="dark"] .top_coins svg {
    color: var(--neon-blue) !important;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
    transition: all 0.3s ease;
    width: 18px;
    height: 18px;
}

html[data-bs-theme="dark"] .top_coins svg:hover {
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
    transform: scale(1.2);
}

/* Special styling for market stats cards */
html[data-bs-theme="dark"] .top_coins.h-100 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 120px;
}

html[data-bs-theme="dark"] .top_coins.h-100 .top_coin_header {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px !important;
}

/* Add floating animation to stat cards */
html[data-bs-theme="dark"] .top_coins.h-100:hover {
    animation: gentle-float 3s ease-in-out infinite;
}

/* ===== COMPREHENSIVE MOBILE OPTIMIZATION FOR NATIVE FEEL ===== */

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Smooth font sizing for mobile readability */
    html[data-bs-theme="dark"] {
        font-size: 16px; /* Prevent zooming on mobile */
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Mobile-friendly container spacing */
    html[data-bs-theme="dark"] .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }
    
    /* Hero section mobile optimization */
    html[data-bs-theme="dark"] .hero_section {
        padding: 2rem 0 !important;
    }
    
    html[data-bs-theme="dark"] .hero_section h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    html[data-bs-theme="dark"] .hero_section p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Mobile-friendly widget cards */
    html[data-bs-theme="dark"] .top_coins {
        margin-bottom: 1rem !important;
        border-radius: 15px !important;
        padding: 1rem !important;
    }
    
    html[data-bs-theme="dark"] .top_coin_header {
        padding: 1rem !important;
        border-radius: 15px 15px 10px 10px !important;
    }
    
    html[data-bs-theme="dark"] .top_coin_header h4 {
        font-size: 0.8rem !important;
    }
    
    html[data-bs-theme="dark"] .top_coin_header h3 {
        font-size: 1.4rem !important;
    }
    
    /* Touch-friendly buttons and links */
    html[data-bs-theme="dark"] .btn,
    html[data-bs-theme="dark"] .button,
    html[data-bs-theme="dark"] a.box_template {
        min-height: 44px !important; /* iOS recommended touch target */
        padding: 12px 20px !important;
        font-size: 1rem !important;
        border-radius: 15px !important;
        transition: all 0.2s ease !important;
    }
    
    /* Mobile-optimized table */
    html[data-bs-theme="dark"] .table-responsive {
        border-radius: 15px !important;
        overflow: hidden !important;
        margin: 1rem 0 !important;
        box-shadow: var(--shadow-glow) !important;
    }
    
    html[data-bs-theme="dark"] .currencies_table {
        font-size: 0.9rem !important;
    }
    
    html[data-bs-theme="dark"] .currencies_table th,
    html[data-bs-theme="dark"] .currencies_table td {
        padding: 12px 8px !important;
        white-space: nowrap !important;
    }
    
    /* Hide less important columns on mobile */
    html[data-bs-theme="dark"] .currencies_table th:nth-child(4),
    html[data-bs-theme="dark"] .currencies_table td:nth-child(4),
    html[data-bs-theme="dark"] .currencies_table th:nth-child(5),
    html[data-bs-theme="dark"] .currencies_table td:nth-child(5),
    html[data-bs-theme="dark"] .currencies_table th:nth-child(7),
    html[data-bs-theme="dark"] .currencies_table td:nth-child(7) {
        display: none !important;
    }
    
    /* Mobile navigation optimizations */
    html[data-bs-theme="dark"] .navbar {
        padding: 0.5rem 1rem !important;
    }
    
    html[data-bs-theme="dark"] .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    /* Sticky mobile header */
    html[data-bs-theme="dark"] .navbar-nav {
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: var(--glass-blur) !important;
        border-radius: 15px !important;
        padding: 1rem !important;
        margin-top: 1rem !important;
    }
    
    html[data-bs-theme="dark"] .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-radius: 10px !important;
        margin: 2px 0 !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* Mobile-specific touch interactions */
@media (max-width: 768px) and (pointer: coarse) {
    /* Enhance touch targets */
    html[data-bs-theme="dark"] button,
    html[data-bs-theme="dark"] .btn,
    html[data-bs-theme="dark"] a {
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.3) !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* Faster transitions for touch */
    html[data-bs-theme="dark"] * {
        transition-duration: 0.15s !important;
    }
    
    /* Touch-friendly hover states */
    html[data-bs-theme="dark"] .top_coins:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    html[data-bs-theme="dark"] .btn:active,
    html[data-bs-theme="dark"] button:active {
        transform: scale(0.95) !important;
        background: var(--neon-blue) !important;
        box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.3) !important;
    }
}

/* ===== REMOVE TABLE GRID LINES ===== */
html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] .currencies_table {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

html[data-bs-theme="dark"] .table th,
html[data-bs-theme="dark"] .table td,
html[data-bs-theme="dark"] .currencies_table th,
html[data-bs-theme="dark"] .currencies_table td {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

html[data-bs-theme="dark"] .table thead th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-bs-theme="dark"] .table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html[data-bs-theme="dark"] .table tbody tr:last-child {
    border-bottom: none !important;
}

/* ===== WALLETS PAGE GLASSMORPHIC STYLING ===== */
html[data-bs-theme="dark"] .box_template {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-glow) !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    padding: 0 !important;
}

html[data-bs-theme="dark"] .box_template::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

html[data-bs-theme="dark"] .box_template:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3) !important;
    border-color: rgba(0, 212, 255, 0.6) !important;
    text-decoration: none !important;
}

html[data-bs-theme="dark"] .box_template .cover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 120px !important;
    position: relative !important;
}

html[data-bs-theme="dark"] .box_template .cover img {
    max-width: 64px !important;
    max-height: 64px !important;
    border-radius: 15px !important;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)) !important;
    transition: all 0.3s ease !important;
}

html[data-bs-theme="dark"] .box_template:hover .cover img {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6)) !important;
    transform: scale(1.1) !important;
}

html[data-bs-theme="dark"] .box_template .box_footer {
    padding: 1.5rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 0 0 20px 20px !important;
}

html[data-bs-theme="dark"] .box_template h2 {
    color: #f8fafc !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

html[data-bs-theme="dark"] .box_template .badge {
    background: rgba(0, 212, 255, 0.2) !important;
    color: var(--neon-blue) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 10px !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    backdrop-filter: blur(10px) !important;
}

html[data-bs-theme="dark"] .box_template .featured {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: var(--gradient-accent) !important;
    color: #fff !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4) !important;
    z-index: 10 !important;
}

/* ===== ICO PAGE GLASSMORPHIC STYLING ===== */
html[data-bs-theme="dark"] .table_links {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: var(--glass-blur) !important;
    border-radius: 15px !important;
    padding: 1.5rem !important;
    margin: 2rem 0 !important;
}

html[data-bs-theme="dark"] .table_links ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin: 0 !important;
}

html[data-bs-theme="dark"] .table_links ul li {
    margin: 0 !important;
}

html[data-bs-theme="dark"] .table_links a {
    background: rgba(255, 255, 255, 0.1) !important;
    border: var(--glass-border) !important;
    border-radius: 15px !important;
    padding: 0.8rem 1.5rem !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

html[data-bs-theme="dark"] .table_links a:hover,
html[data-bs-theme="dark"] .table_links a.active {
    background: var(--gradient-accent) !important;
    border-color: rgba(0, 212, 255, 0.6) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3) !important;
}

html[data-bs-theme="dark"] .table_links i {
    color: var(--neon-blue) !important;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5)) !important;
}

html[data-bs-theme="dark"] .table_links a.active i {
    color: #fff !important;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) !important;
}

/* ===== REMOVE ALL REMAINING WHITE BACKGROUNDS ===== */
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-light,
html[data-bs-theme="dark"] .related_box.bg-white {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
    border: var(--glass-border) !important;
    border-radius: 20px !important;
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] section.bg-light {
    background: transparent !important;
    padding: 3rem 0 !important;
}

/* ===== ENHANCED MOBILE PAGINATION ===== */
html[data-bs-theme="dark"] .pagination {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--glass-blur) !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    justify-content: center !important;
    border: var(--glass-border) !important;
}

html[data-bs-theme="dark"] .page-link {
    background: rgba(255, 255, 255, 0.1) !important;
    border: var(--glass-border) !important;
    color: #e2e8f0 !important;
    border-radius: 10px !important;
    margin: 0 0.25rem !important;
    padding: 0.75rem 1rem !important;
    min-width: 44px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

html[data-bs-theme="dark"] .page-link:hover,
html[data-bs-theme="dark"] .page-item.active .page-link {
    background: var(--gradient-accent) !important;
    border-color: rgba(0, 212, 255, 0.6) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3) !important;
}

/* ===== MOBILE STICKY ELEMENTS ===== */
@media (max-width: 768px) {
    html[data-bs-theme="dark"] .table_links {
        position: sticky !important;
        top: 80px !important;
        z-index: 999 !important;
        margin: 1rem 0 !important;
        padding: 1rem !important;
    }
    
    html[data-bs-theme="dark"] .table_links ul {
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    html[data-bs-theme="dark"] .table_links ul::-webkit-scrollbar {
        display: none !important;
    }
    
    html[data-bs-theme="dark"] .table_links a {
        white-space: nowrap !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* ===== PROGRESSIVE WEB APP ENHANCEMENTS ===== */
html[data-bs-theme="dark"] {
    /* Enable GPU acceleration */
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    perspective: 1000px !important;
}

/* Safe area support for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    html[data-bs-theme="dark"] .navbar {
        padding-top: calc(0.5rem + env(safe-area-inset-top)) !important;
    }
    
    html[data-bs-theme="dark"] body {
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
}

/* Dark mode status bar styling */
@media (prefers-color-scheme: dark) {
    html[data-bs-theme="dark"] {
        color-scheme: dark !important;
    }
}

/* ========================================
   CRITICAL FIXES - NAVBAR READABILITY 
======================================== */

/* Fix navbar text contrast and readability */
html[data-bs-theme="dark"] .navbar .navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.2s ease !important;
    padding: 0.7rem 1rem !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
}

html[data-bs-theme="dark"] .navbar .navbar-nav .nav-link:hover,
html[data-bs-theme="dark"] .navbar .navbar-nav .nav-link.active {
    color: var(--neon-blue) !important;
    background: rgba(0, 212, 255, 0.1) !important;
    text-shadow: 0 0 10px var(--neon-blue) !important;
    transform: translateY(-1px) !important;
}

/* Navbar brand logo enhancement */
html[data-bs-theme="dark"] .navbar-brand {
    filter: brightness(1.2) contrast(1.1) !important;
}

/* Search form styling */
html[data-bs-theme="dark"] .search_form input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: var(--text-color) !important;
    border-radius: 25px !important;
    padding: 8px 16px !important;
    backdrop-filter: blur(10px) !important;
}

html[data-bs-theme="dark"] .search_form input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

html[data-bs-theme="dark"] .search_form input:focus {
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
    outline: none !important;
}

/* ========================================
   CRITICAL FIXES - BUTTON OVERLAPPING & WHITE BUTTONS
======================================== */

/* Fix overlapping exchange buttons */
html[data-bs-theme="dark"] .table td {
    padding: 12px 8px !important;
    vertical-align: middle !important;
}

html[data-bs-theme="dark"] .table td:last-child {
    min-width: 120px !important;
    text-align: center !important;
}

/* Enhanced button spacing and sizing */
html[data-bs-theme="dark"] .btn {
    min-height: 44px !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    margin: 2px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

/* Fix all white buttons - PRIMARY BUTTONS */
html[data-bs-theme="dark"] .btn-secondary,
html[data-bs-theme="dark"] .btn-primary,
html[data-bs-theme="dark"] .dropdown-toggle {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%) !important;
    border: 1px solid var(--neon-blue) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

html[data-bs-theme="dark"] .btn-secondary:hover,
html[data-bs-theme="dark"] .btn-primary:hover,
html[data-bs-theme="dark"] .dropdown-toggle:hover {
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%) !important;
    border-color: var(--neon-purple) !important;
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}

html[data-bs-theme="dark"] .btn-secondary:active,
html[data-bs-theme="dark"] .btn-primary:active,
html[data-bs-theme="dark"] .dropdown-toggle:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3) !important;
}

/* Buy/Sell button specific styling */
html[data-bs-theme="dark"] .affiliate_dp .btn {
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%) !important;
    border: 1px solid #00ff88 !important;
    color: #000 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

html[data-bs-theme="dark"] .affiliate_dp .btn:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%) !important;
    color: white !important;
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.4) !important;
}

/* ========================================
   DROPDOWN MENU ENHANCEMENTS
======================================== */

html[data-bs-theme="dark"] .dropdown-menu {
    background: rgba(20, 25, 40, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 8px !important;
    margin-top: 8px !important;
    min-width: 160px !important;
}

html[data-bs-theme="dark"] .dropdown-item {
    color: var(--text-color) !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    font-weight: 500 !important;
}

html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:focus {
    background: rgba(0, 212, 255, 0.15) !important;
    color: var(--neon-blue) !important;
    text-shadow: 0 0 8px var(--neon-blue) !important;
}

/* ========================================
   TABLE FILTER LINKS ENHANCEMENTS
======================================== */

html[data-bs-theme="dark"] .table_links {
    margin: 30px 0 !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 15px !important;
    padding: 15px !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
}

html[data-bs-theme="dark"] .table_links ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
    margin: 0 !important;
}

html[data-bs-theme="dark"] .table_links li {
    flex: 1 !important;
    min-width: 140px !important;
}

html[data-bs-theme="dark"] .table_links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 12px !important;
    color: var(--text-color) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    backdrop-filter: blur(10px) !important;
    min-height: 48px !important;
}

html[data-bs-theme="dark"] .table_links a:hover {
    background: rgba(0, 212, 255, 0.15) !important;
    border-color: var(--neon-blue) !important;
    color: var(--neon-blue) !important;
    text-shadow: 0 0 10px var(--neon-blue) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3) !important;
}

html[data-bs-theme="dark"] .table_links a.active {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%) !important;
    border-color: var(--neon-blue) !important;
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4) !important;
}

html[data-bs-theme="dark"] .table_links i {
    font-size: 1.1rem !important;
    opacity: 0.9 !important;
}

/* ========================================
   MOBILE RESPONSIVE FIXES
======================================== */

@media (max-width: 768px) {
    /* Prevent button overlapping on mobile */
    html[data-bs-theme="dark"] .table td:last-child {
        min-width: 100px !important;
        padding: 8px 4px !important;
    }
    
    html[data-bs-theme="dark"] .btn {
        min-height: 44px !important;
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    html[data-bs-theme="dark"] .affiliate_dp .btn {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
    }
    
    /* Mobile table filter navigation */
    html[data-bs-theme="dark"] .table_links ul {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    html[data-bs-theme="dark"] .table_links li {
        flex: none !important;
        min-width: 100% !important;
    }
    
    html[data-bs-theme="dark"] .table_links a {
        padding: 14px 16px !important;
        font-size: 0.9rem !important;
    }
    
    /* Navbar mobile fixes */
    html[data-bs-theme="dark"] .navbar-nav {
        text-align: center !important;
        padding: 10px 0 !important;
    }
    
    html[data-bs-theme="dark"] .navbar-nav .nav-link {
        padding: 10px 20px !important;
        margin: 4px 0 !important;
        font-size: 1rem !important;
    }
    
    /* Search form mobile */
    html[data-bs-theme="dark"] .search_form input {
        width: 100% !important;
        margin: 10px 0 !important;
    }
}

/* ========================================
   FINANCIAL TRADING ENHANCEMENTS
======================================== */

/* Price change indicators */
html[data-bs-theme="dark"] .text-success {
    color: var(--neon-green) !important;
    font-weight: 600 !important;
    text-shadow: 0 0 5px var(--neon-green) !important;
}

html[data-bs-theme="dark"] .text-danger {
    color: var(--neon-pink) !important;
    font-weight: 600 !important;
    text-shadow: 0 0 5px var(--neon-pink) !important;
}

/* Enhanced badges for trading */
html[data-bs-theme="dark"] .badge.success {
    background: linear-gradient(135deg, var(--neon-green) 0%, #00ff88 100%) !important;
    color: #000 !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    text-shadow: none !important;
}

html[data-bs-theme="dark"] .badge.default {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
}

/* Exchange/Currency name links */
html[data-bs-theme="dark"] .table .name a {
    color: var(--text-color) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.15s ease !important;
}

html[data-bs-theme="dark"] .table .name a:hover {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 8px var(--neon-blue) !important;
    transform: translateX(2px) !important;
}

html[data-bs-theme="dark"] .table .name img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* ========================================
   PERFORMANCE & ACCESSIBILITY
======================================== */

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth !important;
}

/* Focus indicators for accessibility */
*:focus {
    outline: 2px solid var(--neon-blue) !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    html[data-bs-theme="dark"] .navbar .navbar-nav .nav-link {
        font-weight: 700 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
    }
    
    html[data-bs-theme="dark"] .btn {
        font-weight: 700 !important;
        border-width: 2px !important;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   MORALIS TOKEN WIDGET STYLING
======================================== */

/* Moralis Widget Container */
html[data-bs-theme="dark"] .moralis-token-widget-wrapper {
    background: rgba(20, 25, 40, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

html[data-bs-theme="dark"] .moralis-token-widget-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Widget Loading State */
html[data-bs-theme="dark"] .moralis-token-widget-wrapper .spinner-border {
    color: var(--neon-blue) !important;
    width: 3rem !important;
    height: 3rem !important;
}

html[data-bs-theme="dark"] .moralis-token-widget-wrapper .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
}

/* Widget Info */
html[data-bs-theme="dark"] .moralis-token-widget-wrapper .widget-info {
    position: relative;
    z-index: 2;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 15px !important;
}

html[data-bs-theme="dark"] .moralis-token-widget-wrapper .widget-info small {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem !important;
}

html[data-bs-theme="dark"] .moralis-token-widget-wrapper .widget-info a {
    color: var(--neon-blue) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
}

html[data-bs-theme="dark"] .moralis-token-widget-wrapper .widget-info a:hover {
    color: var(--neon-purple) !important;
    text-shadow: 0 0 8px var(--neon-purple) !important;
}

/* Error State */
html[data-bs-theme="dark"] .moralis-token-widget-wrapper .alert-warning {
    background: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    color: #ffc107 !important;
    border-radius: 10px !important;
    padding: 15px !important;
}

/* Moralis Widget Frame Styling */
html[data-bs-theme="dark"] iframe[src*="moralis"] {
    border-radius: 10px !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Token Widget Container */
html[data-bs-theme="dark"] [id^="token-widget-container"] {
    position: relative !important;
    z-index: 2 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Chart Container for coins */
html[data-bs-theme="dark"] #coin_chart {
    background: rgba(20, 25, 40, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

html[data-bs-theme="dark"] #coin_chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* TradingView Widget Styling */
html[data-bs-theme="dark"] iframe[src*="tradingview"] {
    border-radius: 10px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Loading Animation Enhancement */
@keyframes moralis-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

html[data-bs-theme="dark"] .moralis-token-widget-wrapper .spinner-border {
    animation: moralis-pulse 2s ease-in-out infinite;
}

/* Token Info Badge */
html[data-bs-theme="dark"] .token-info-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-blue) 100%) !important;
    color: #000 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3) !important;
}

html[data-bs-theme="dark"] .coin-info-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3) !important;
}

/* Responsive adjustments for Moralis widget */
@media (max-width: 768px) {
    html[data-bs-theme="dark"] .moralis-token-widget-wrapper {
        padding: 15px !important;
        margin: 0 -15px !important;
        border-radius: 10px !important;
    }
    
    html[data-bs-theme="dark"] [id^="token-widget-container"] {
        height: 400px !important;
    }
    
    html[data-bs-theme="dark"] #coin_chart {
        height: 400px !important;
        padding: 15px !important;
        margin: 0 -15px !important;
        border-radius: 10px !important;
    }
    
    html[data-bs-theme="dark"] .moralis-token-widget-wrapper .widget-info {
        font-size: 0.8rem !important;
    }
}

/* Dark theme specific overrides for embedded widgets */
html[data-bs-theme="dark"] .moralis-token-widget-wrapper,
html[data-bs-theme="dark"] #coin_chart {
    color-scheme: dark !important;
}

html[data-bs-theme="dark"] .moralis-token-widget-wrapper *,
html[data-bs-theme="dark"] #coin_chart * {
    color-scheme: dark !important;
}
