/* Enhanced Styles for Khelo India Gaming Muqabla */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* Base Styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #0b0f1a;
  color: #e6e9ef;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
                url('https://images.unsplash.com/photo-1542751371-adc38448a05e?ixlib=rb-1.2.1&auto=format&fit=crop&w=2850&q=80') center/cover;
    color: white;
    padding: 120px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #1b1a1a 0%, transparent 100%);
    opacity: 0.6;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(253, 253, 253, 0.3);
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease;
}

.hero-section .lead {
    font-size: 1.4rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease 0.2s both;
}

.hero-features .badge {
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
}

.stat-box {
    padding: 30px;
    border-radius: 25px;
    background: linear-gradient(135deg, 
        rgba(57, 255, 20, 0.2), 
        rgba(0, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.4),
                inset 0 0 30px rgba(57, 255, 20, 0.2),
                0 0 100px rgba(57, 255, 20, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(57, 255, 20, 0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: slideInUp 0.6s ease both;
}

.stat-box:hover {
    transform: translateY(-15px) rotateX(10deg) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(57, 255, 20, 0.4),
        rgba(0, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 60px rgba(57, 255, 20, 0.6),
                inset 0 0 50px rgba(57, 255, 20, 0.4),
                0 0 150px rgba(57, 255, 20, 0.3);
    border-color: rgba(57, 255, 20, 0.6);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.1) 0%, transparent 50%);
    animation: rotateGradient 10s linear infinite;
}

.stat-box h3 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(45deg, 
        #fff 0%, 
        #39ff14 25%, 
        #00ffff 50%,
        #39ff14 75%,
        #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(57, 255, 20, 1);
    background-size: 200% auto;
    animation: shimmer 6s linear infinite;
    letter-spacing: -1px;
}

.stat-box p {
    margin: 0;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.8);
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.stat-box::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.2) 0%, transparent 50%);
    animation: rotateGradient 15s linear infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 30px rgba(57, 255, 20, 0.3); }
    50% { box-shadow: 0 0 80px rgba(57, 255, 20, 0.8); }
    100% { box-shadow: 0 0 30px rgba(57, 255, 20, 0.3); }
}

.stat-box {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 100% center; filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(90deg); }
    100% { background-position: -100% center; filter: hue-rotate(0deg); }
}

.stat-box {
    animation: countUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.stat-box:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-box:nth-child(3) {
    animation-delay: 0.4s;
}

.cta-buttons .btn {
    min-width: 160px;
    transition: all 0.3s ease;
    border-radius: 30px;
    font-weight: 600;
    padding: 12px 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-buttons .btn-primary {
    background: #39ff14;
    border-color: #39ff14;
    color: #000;
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.4);
}

.cta-buttons .btn-primary:hover {
    background: #45ff25;
    border-color: #45ff25;
    box-shadow: 0 6px 20px rgba(57, 255, 20, 0.6);
    transform: translateY(-3px);
}

.cta-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

/* Tournament Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 25px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 700;
    color: #39ff14;
}

.card-text {
    color: #8b93a7;
}

/* Modal Styling */
.modal-content {
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.85));
    color: #e6e9ef;
    border: 1px solid rgba(255,255,255,0.08);
}

.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Leaderboard Additional Styles */
.btn-retry {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #1a1a2e;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-retry i {
    margin-right: 5px;
}

/* Navigation active state for leaderboard */
.nav-menu a.active {
    color: #00ff88;
    font-weight: bold;
}

/* Enhanced table responsiveness */
@media (max-width: 768px) {
    .rankings-table th:nth-child(3),
    .rankings-table td:nth-child(3) {
        display: none;
    }
    
    .champion-card {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .rankings-table th:nth-child(4),
    .rankings-table td:nth-child(4) {
        display: none;
    }
    
    .hall-of-fame-title {
        font-size: 1.8rem;
    }
}

.modal-header {
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

/* Navigation */
.navbar {
    padding: 15px 0;
    background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.8)) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0,255,0,0.3));
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: #8b93a7;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover {
    color: #00e5ff;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00e5ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-nav .nav-link.active {
    color: #39ff14;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
    background: #39ff14;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .stat-box h3 {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Social Links */
.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 5px;
}

.social-links a:hover {
    color: #00e5ff !important;
    transform: translateY(-3px);
}

/* Community Cards */
.community-card {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 25px;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.community-card i {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.community-card h5 {
    margin: 1rem 0;
    font-weight: 600;
    color: #39ff14;
}

.community-card p {
    color: #8b93a7;
    margin-bottom: 1.5rem;
}

/* Instagram Card */
.community-card:nth-child(1) i {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* YouTube Card */
.community-card:nth-child(2) i {
    color: #ff0000;
}

/* WhatsApp Card */
.community-card:nth-child(3) i {
    color: #25D366;
}

/* Discord Card */
.community-card:nth-child(4) i {
    color: #7289da;
}

/* Auth Pages Styling */
.auth-page {
    min-height: 100vh;
    background: radial-gradient(900px 500px at -10% -10%, rgba(108,92,231,.25), transparent 40%),
                radial-gradient(700px 400px at 110% 0%, rgba(0,229,255,.18), transparent 45%),
                #0b0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.85));
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.auth-image {
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e') center/cover;
    min-height: 100vh;
    position: relative;
}

.auth-form-container {
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

/* Update existing styles */
.welcome-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 80%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-form-container {
        padding: 2rem !important;
    }
    
    .auth-container {
        border-radius: 0;
    }
}

/* Auth Required Modal */
#authRequiredModal .modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#authRequiredModal .fa-lock {
    color: #ffc107;
}

#authRequiredModal .modal-body {
    padding: 2rem;
}

#authRequiredModal h4 {
    margin-bottom: 1rem;
    color: #39ff14;
}

#authRequiredModal .btn {
    min-width: 120px;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
}

/* Logo Styling */
.navbar-brand img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.auth-form-container img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 4px rgba(0,255,0,0.3));
}

/* Game Badges */
.game-badge {
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #8b93a7;
    display: inline-block;
    margin: 5px;
}

.game-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: rgba(108,92,231,0.2);
    color: #00e5ff;
    border-color: rgba(0,229,255,0.3);
}

/* Specific game badge hover effects */
.badge.bg-primary:hover {
    background-color: #0d6efd !important;
}

.badge.bg-danger:hover {
    background-color: #dc3545 !important;
}

.badge.bg-success:hover {
    background-color: #198754 !important;
}

.badge.bg-info:hover {
    background-color: #0dcaf0 !important;
}

/* Game Filters */
.game-filters .btn {
    min-width: 100px;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin: 5px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #8b93a7;
}

.game-filters .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: rgba(108,92,231,0.2);
    color: #00e5ff;
    border-color: rgba(0,229,255,0.3);
}

.game-filters .btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(108,92,231,0.4);
}

/* Main Menu Styles */
.main-menu-page {
    background: radial-gradient(900px 500px at -10% -10%, rgba(108,92,231,.25), transparent 40%),
                radial-gradient(700px 400px at 110% 0%, rgba(0,229,255,.18), transparent 45%),
                #0b0f1a;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* Top Navigation */
.navbar {
    padding: 15px;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    color: #00e5ff;
    transform: scale(1.1);
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-info:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.wallet-info i {
    font-size: 1.2rem;
    color: #39ff14;
}

.wallet-info span {
    font-weight: 500;
    color: #00e5ff;
}

.notification-bell {
    color: white;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.notification-bell:hover {
    transform: scale(1.1);
    color: #00e5ff;
}

.notification-bell::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #39ff14;
    border-radius: 50%;
    display: block;
}

.notification-bell i {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Support Banner */
.support-banner {
    width: 100%;
    padding: 10px;
}

.support-banner img {
    width: 100%;
    border-radius: 10px;
}

/* Game Categories */
.game-categories {
    padding: 15px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.85));
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 15px;
    margin: 15px;
    border: 1px solid rgba(255,255,255,0.08);
}

.category {
    padding: 8px 20px;
    border-radius: 20px;
    color: #8b93a7;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.06);
}

.category:hover {
    background: rgba(108,92,231,0.2);
    color: #00e5ff;
    border-color: rgba(0,229,255,0.3);
    transform: translateY(-2px);
}

.category.active {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(108,92,231,0.4);
}

/* Games Grid */
.games-container {
    padding: 15px;
}

.game-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 200px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.game-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.85));
    display: flex;
    justify-content: space-around;
    padding: 10px;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-item {
    color: #8b93a7;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 10px;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.nav-item.active {
    color: #00e5ff;
    background: rgba(0,229,255,0.1);
}

.nav-item:hover {
    color: #39ff14;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-categories {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px 10px;
    }
    
    .category {
        white-space: nowrap;
    }
}

.stat-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 25px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.stat-card i {
    font-size: 2rem;
    color: #39ff14;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #00e5ff;
}

.stat-card h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.stat-card p {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    color: #333;
    text-shadow: none;
    background: linear-gradient(45deg, #00e5ff, #39ff14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #39ff14;
    color: #39ff14;
    font-weight: 700;
}

.upcoming-matches {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.85));
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.notification-panel.active {
    right: 0;
}

.notification-header {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.notification-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.notification-header .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.close-notifications {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-notifications:hover {
    transform: rotate(90deg);
    background: rgba(255,255,255,0.1);
}

.notification-list {
    overflow-y: auto;
    height: calc(100vh - 70px);
    padding: 15px;
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    animation: slideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification-item:hover {
    background: rgba(108,92,231,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.notification-item.unread {
    background: rgba(108,92,231,0.1);
    position: relative;
    border-left: 3px solid var(--accent-1);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 8px;
    width: 8px;
    height: 8px;
    background: #39ff14;
    border-radius: 50%;
    display: block;
    animation: pulse 1.5s infinite;
}

.notification-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.1), transparent);
    transform: translateX(-100%);
}

.notification-item:hover::after {
    animation: shine 1.5s infinite;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    margin: 0;
    font-size: 1rem;
    color: #e6e9ef;
    font-weight: 600;
}

.notification-content p {
    margin: 5px 0;
    color: #8b93a7;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.8rem;
    color: #8b93a7;
    margin-top: 5px;
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
}

.notification-overlay.active {
    display: block;
}

/* Notification placeholder */
.notification-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.notification-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Make notification bell clickable */
.notification-bell {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.notification-bell:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.1);
}

/* Notification badge */
.notification-bell::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 8px;
    height: 8px;
    background: #39ff14;
    border-radius: 50%;
    display: block;
    animation: pulse 1.5s infinite;
}

.notification-bell.has-notifications::after {
    background: #ff4757;
}

#notificationCount {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Wallet Panel */
.wallet-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.85));
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255,255,255,0.08);
}

.wallet-panel.active {
    right: 0;
}

.wallet-header {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-wallet {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-wallet:hover {
    transform: rotate(90deg);
}

.wallet-balance {
    padding: 20px;
    background: rgba(255,255,255,0.03);
}

.balance-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.08);
}

.balance-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.balance-info {
    flex: 1;
}

.balance-label {
    color: #8b93a7;
    font-size: 0.9rem;
}

.balance-amount {
    margin: 5px 0 0;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    background: linear-gradient(45deg, #00e5ff, #39ff14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-actions {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border-radius: 10px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.action-btn.deposit {
    background: linear-gradient(135deg, #28a745, #00d48f);
    color: white;
}

.action-btn.withdraw {
    background: linear-gradient(135deg, #007bff, #00e5ff);
    color: white;
}

.transaction-history {
    padding: 20px;
}

.transaction-history h4 {
    margin-bottom: 15px;
    color: #e6e9ef;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b93a7;
    margin-right: 15px;
    flex-shrink: 0;
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    color: #e6e9ef;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.transaction-description {
    color: #8b93a7;
    font-size: 0.9rem;
    margin: 0;
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.transaction-amount.positive {
    color: #00d48f;
}

.transaction-amount.negative {
    color: #ff4757;
}

/* Footer */
footer {
    background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.8)) !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 40px 0 20px 0;
    margin-top: 40px;
}

footer h5 {
    color: #39ff14;
    margin-bottom: 15px;
    font-weight: 700;
}

footer p {
    color: #8b93a7;
}

footer a {
    color: #8b93a7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px 0;
}

footer a:hover {
    color: #00e5ff;
    transform: translateX(5px);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    border: none;
    box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(108,92,231,0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--accent-3));
    border: none;
    box-shadow: 0 4px 15px rgba(0,212,143,0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(0,212,143,0.5);
}

/* Form Controls */
.form-control, .form-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e6e9ef;
    border-radius: 8px;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent-1);
    box-shadow: 0 0 0 0.25rem rgba(0,229,255,.15);
    color: #e6e9ef;
}

.form-control:disabled, .form-control[readonly] {
    background: rgba(255,255,255,0.03);
    color: #8b93a7;
}

.form-label {
    color: #8b93a7;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(0,212,143,0.2), rgba(57,255,20,0.1));
    color: #00d48f;
    border: 1px solid rgba(0,212,143,0.3);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255,71,87,0.2), rgba(255,45,85,0.1));
    color: #ff4757;
    border: 1px solid rgba(255,71,87,0.3);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success), var(--accent-3));
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
}

/* Tables */
.table {
    color: #e6e9ef;
}

.table th {
    color: #8b93a7;
    font-weight: 600;
    border-top: none;
}

.table td {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.table-hover tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Pagination */
.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

.page-link {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #8b93a7;
}

.page-link:hover {
    background: rgba(255,255,255,0.08);
    color: #00e5ff;
}

/* Dropdowns */
.dropdown-menu {
    background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.85));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    color: #8b93a7;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 2px 10px;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(108,92,231,0.2);
    color: #00e5ff;
}

.dropdown-item.active, .dropdown-item:active {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    color: white;
}

/* Progress Bars */
.progress {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent-1));
    box-shadow: 0 0 10px rgba(108,92,231,0.5);
}

/* Cards */
.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 15px 20px;
    font-weight: 600;
    color: #00e5ff;
}

.card-body {
    padding: 20px;
}

.card-title {
    color: #39ff14;
    font-weight: 700;
}

/* List Groups */
.list-group-item {
    background: transparent;
    border-color: rgba(255,255,255,0.08);
    color: #e6e9ef;
}

/* Modals */
.modal-content {
    background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.85));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Animation Keyframes */
@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes countUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(57, 255, 20, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}
