* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark: #0B0F1A;
    --surface: #121A2A;
    --surface-light: #1A2332;
    --primary: #7C4DFF;
    --primary-end: #00D4FF;
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --text: #E5E7EB;
    --text-muted: #9CA3AF;
    --radius: 12px;
}

body {
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(18, 26, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(124, 77, 255, 0.2);
}

.btn-press:active {
    transform: scale(0.98);
}

.glow {
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.4);
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(124, 77, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(124, 77, 255, 0.6);
    }
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, #1A2332 25%, #242E42 50%, #1A2332 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    position: relative;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
}

.live-indicator {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.live-indicator.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.live-indicator.inactive {
    background: #374151;
    color: #9CA3AF;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.live-indicator.active .live-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


/* This is the default style for desktop */
.sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    /* Sits below the header */
    bottom: 0;
    width: 256px;
    /* Fixed width */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

main {
    margin-left: 256px;
    /* Makes room for the sidebar */
}

.sidebar.open {
    transform: translateX(0);
    /* Slides the sidebar into view */
}

.sidebar-overlay.show {
    display: block;
    /* Shows the dark background overlay */
    opacity: 1;
}

.sidebar.mobile {
    z-index: 45;
    transform: translateX(-100%);
}

.sidebar.mobile.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    color: var(--text-muted);
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-end));
    color: white;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 50;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Main Content */
main {
    padding: 1rem;
    padding-top: 80px;
    min-height: 100vh;
}

main.with-sidebar {
    margin-left: 256px;
}

main.with-bottom-nav {
    padding-bottom: 96px;
}

/* Page Sections */
.page {
    display: none;
}

.page.active {
    display: block;
}

.hero-banner {
    position: relative;
    height: 256px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-end));
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hero-particles {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.hero-particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.hero-particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 40px;
    left: 40px;
    animation-delay: 0s;
}

.hero-particle:nth-child(2) {
    width: 128px;
    height: 128px;
    bottom: 40px;
    right: 40px;
    animation-delay: 0.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.hero-content h1 {
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

/* Marquee */
.marquee-container {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.marquee {
    display: flex;
    gap: 3rem;
    /* Increased gap */
    animation: marquee 20s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee span {
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Cards */
.card {
    border-radius: var(--radius);
    padding: 1.5rem;
}

.grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: bold;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-end));
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* Progress Bar */
.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-end));
    transition: width 1s ease;
}

/* Horizontal Scroll */
.scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.scroll-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Event Card */
.event-card {
    width: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.event-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.event-card-content {
    padding: 1rem;
}

.event-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.event-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.countdown {
    font-weight: 600;
    color: var(--warning);
}

/* Game Card */
.game-card {
    width: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.game-card-content {
    padding: 0.75rem;
}

.game-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.live-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Transaction Row */
.transaction-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.transaction-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.transaction-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.transaction-amount {
    font-weight: 600;
    text-align: right;
}

.transaction-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
    display: inline-block;
}

.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}




/* Toast */
.toast-container {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid var(--success);
}

.toast.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--error);
}


/* =============================================Notification bar End=================================== */
/* Notification Panel */
.notification-panel {
    position: absolute;
    top: 3rem;
    right: 0;
    width: 320px;
    max-width: calc(100vw - 2rem);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
}

.notification-panel.show {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.notification-item {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-content {
    display: flex;
    gap: 0.75rem;
}

.notification-text {
    flex: 1;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
/* =============================================Notification bar End=================================== */

@media (max-width: 640px) {
    .hero-banner {
        height: 200px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .hero-banner {
        height: 200px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    main {
        padding: 1.5rem;
    }

    .game-card {
        width: 220px;
    }

    .event-card {
        width: 320px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
        /* A bit wider for the mobile menu */
        transform: translateX(-100%);
        /* Hides it off-screen */
        z-index: 45;
        top: 0;
        /* Covers the full height */
    }

    main {
        margin-left: 0;
        /* Main content uses the full width */
    }
}

@media (max-width: 767px) {
    .sidebar {
        width: 256px;
    }

    main.with-sidebar {
        margin-left: 0;
    }
}

/* Loading States */
.skeleton-card {
    height: 100px;
    border-radius: var(--radius);
}

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* SVG Icons inline */
.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-lg {
    width: 24px;
    height: 24px;
}
