        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

    :root {
        --primary-color: #256f8a;
        --secondary-color: #113745;
        --accent-color: #FFA62B;
        --success-color: #2E8B57;
        --danger-color: #DC143C;
        --light-color: #F8F9FA;
        --dark-color: #343A40;
        --gray-color: #6C757D;
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        --transition: all 0.3s ease;
        --vodacom: #C8102E;
        --airtel: #ED1C24;
        --tigo: #0047AB;
        --halopesa: #FFA62B;
        --crdb: #00A651;
        --nmb: #003366;
        --vip-bronze: #CD7F32;
        --vip-silver: #C0C0C0;
        --vip-gold: #FFD700;
        --vip-platinum: #E5E4E2;
        --vip-diamond: #B9F2FF;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            min-height: 100vh;
            color: var(--dark-color);
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }

        /* Authentication Container */
        .auth-container {
            display: flex;
            max-width: 1200px;
            width: 100%;
            min-height: 85vh;
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow);
            position: relative;
            margin: 40px auto;
        }

        /* Brand Section */
        .brand-section {
            flex: 1;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4ZIlwwW-L6eKb7oLvClQvBAPR9mU3Ba86tz8vczLUr4p6nxWEK42E1ZVnCPpKNfb5XBJJUfDgdMw0SBZJbQHW45UJMcBZRpQd9GMezwioBxOt-QPP5RPUHHyiZ8gZ8SgAmW3Ho-scfxhC61-zmwdKE_ykETs4D6QC8Mi_8ISHcL74w3Q10YbyDo8f8OA/s554/1001513772.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

            color: white;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .brand-section::before {
            content: '';
            position: absolute;
            width: 400px;
            height: 400px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            top: -200px;
            right: -200px;
            z-index: -1;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 40px;
        }

        .logo i {
            font-size: 2.8rem;
            color: var(--accent-color);
            animation: float 3s ease-in-out infinite;
        }

        .logo h1 {
            font-size: 2.2rem;
            font-weight: 700;
        }

        .logo span {
            color: var(--accent-color);
        }

        .brand-section h2 {
            font-size: 2.2rem;
            margin-bottom: 20px;
            line-height: 1.3;
        }

        .brand-section p {
            font-size: 1.1rem;
            opacity: 0.9;
            line-height: 1.6;
            margin-bottom: 40px;
        }

        .features {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-top: 40px;
        }

        .feature {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            backdrop-filter: blur(10px);
            transition: var(--transition);
        }

        .feature:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(5px);
        }

        .feature i {
            font-size: 1.5rem;
            color: var(--accent-color);
        }

        /* Form Section */
        .form-section {
            flex: 1;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: var(--light-color);
            overflow-y: auto;
            position: relative;
        }

        .form-container {
            max-width: 500px;
            width: 100%;
            margin: 0 auto;
            transition: var(--transition);
        }

        /* Form Switcher */
        .form-switcher {
            display: flex;
            margin-bottom: 30px;
            background: #eef2f7;
            border-radius: 50px;
            padding: 5px;
            position: relative;
        }

        .slider {
            position: absolute;
            top: 5px;
            left: 5px;
            width: calc(50% - 5px);
            height: calc(100% - 10px);
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-radius: 50px;
            transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            z-index: 1;
        }

        .slider.signup-active {
            transform: translateX(100%);
        }

        /* Form Styles */
        .auth-form {
            display: none;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .auth-form.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .form-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .form-header h2 {
            font-size: 2rem;
            color: var(--dark-color);
            margin-bottom: 10px;
        }

        .form-header p {
            color: var(--gray-color);
            font-size: 1rem;
        }

        /* Input Groups */
        .input-group {
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            font-weight: 500;
            color: var(--dark-color);
            margin-bottom: 8px;
            font-size: 0.95rem;
        }

        .input-group input,
        .input-group select {
            width: 100%;
            padding: 15px;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            font-size: 1rem;
            transition: var(--transition);
            background: white;
            font-family: 'Poppins', sans-serif;
        }

        .input-group input:focus,
        .input-group select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
        }

        .password-wrapper {
            position: relative;
        }

        .toggle-password {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--gray-color);
            cursor: pointer;
            font-size: 1rem;
            padding: 5px;
        }

        /* Row Inputs */
        .row-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        /* Form Options */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--gray-color);
        }

        .remember-me input {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .forgot-password {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: var(--transition);
        }

        /* Button Styles */
        .btn {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 15px;
            font-family: 'Poppins', sans-serif;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(74, 111, 165, 0.2);
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
        }

        .btn-secondary:hover {
            background: var(--primary-color);
            color: white;
        }

        /* Divider */
        .divider {
            text-align: center;
            margin: 20px 0;
            position: relative;
        }

        .divider span {
            background: var(--light-color);
            padding: 0 15px;
            color: var(--gray-color);
            font-size: 0.9rem;
            position: relative;
            z-index: 1;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: #e1e5e9;
        }


        /* Dashboard Styles */
        .dashboard {
            display: none;
            min-height: 100vh;
            background: #f5f7fa;
        }

        /* Main Content */
        .main-content {
            padding: 20px;
            padding-bottom: 80px; /* Space for bottom nav */
        }

        /* Dashboard Cards */
        .dashboard-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

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

        .card-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .card-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
        }

        .card-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--dark-color);
        }

        .card-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .card-subtitle {
            color: var(--gray-color);
            font-size: 0.9rem;
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            box-shadow: var(--shadow);
        }

        .stat-value {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin: 10px 0;
        }

        .stat-label {
            color: var(--gray-color);
            font-size: 0.9rem;
        }

        /* Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            padding: 10px;
            border-radius: 10px;
            cursor: pointer;
            transition: var(--transition);
            flex: 1;
            text-decoration: none;
            color: var(--gray-color);
        }

        .nav-item.active {
            color: var(--primary-color);
            background: rgba(74, 111, 165, 0.1);
        }

        .nav-item:hover {
            background: rgba(74, 111, 165, 0.05);
        }

        .nav-icon {
            font-size: 1.2rem;
        }

        .nav-label {
            font-size: 0.8rem;
            font-weight: 500;
        }

        /* Content Sections */
        .content-section {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .content-section.active {
            display: block;
        }

        /* Home Section */
        .match-list {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
        }

        .match-item {
            padding: 20px;
            border-bottom: 1px solid #eef2f7;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .match-item:last-child {
            border-bottom: none;
        }

        .teams {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
        }

        .team {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }

        .team-name {
            font-weight: 600;
        }

        .vs {
            font-weight: 700;
            color: var(--accent-color);
        }

        .match-time {
            color: var(--gray-color);
            font-size: 0.9rem;
        }

        /* Profile Section */
        .profile-header {
            background: white;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
        }

        .profile-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2.5rem;
            font-weight: 700;
        }

        .profile-name {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .profile-role {
            display: inline-block;
            padding: 5px 15px;
            background: var(--accent-color);
            color: white;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 20px;
        }

        .profile-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 20px;
        }

        .profile-stat {
            text-align: center;
        }

        .profile-stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .profile-stat-label {
            color: var(--gray-color);
            font-size: 0.9rem;
        }

        /* Support Section */
        .support-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .support-option {
            background: white;
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
        }

        .support-option:hover {
            transform: translateY(-5px);
        }

        .support-icon {
            width: 60px;
            height: 60px;
            border-radius: 15px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
        }

        /* Animations */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

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

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

        /* Responsive Design */
        @media (max-width: 1024px) {
            .auth-container {
                max-width: 900px;
                min-height: 80vh;
            }
            
            .brand-section,
            .form-section {
                padding: 30px;
            }
        }

        @media (max-width: 900px) {
            .auth-container {
                flex-direction: column;
                max-width: 600px;
                min-height: auto;
            }
            
            .brand-section {
                text-align: center;
            }
            
            .logo {
                justify-content: center;
            }
            
            .row-inputs {
                grid-template-columns: 1fr;
                gap: 15px;
            }
        }

        @media (max-width: 768px) {
            body {
                background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            }
            
            .auth-container {
                border-radius: 15px;
                max-width: 500px;
            }
            
            .brand-section,
            .form-section {
                padding: 25px;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 576px) {
            .auth-container {
                margin: 20px;
            }
            
            .brand-section,
            .form-section {
                padding: 20px;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .dashboard-cards {
                grid-template-columns: 1fr;
            }
            
            .profile-stats {
                flex-direction: column;
                gap: 15px;
            }
        }

        /* Loading Spinner */
        .loading-spinner {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

/* Tab Switches Styling */
.form-switcher {
    display: flex;
    position: relative;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.switch-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    border-radius: 8px;
}

.switch-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.slider {
    position: absolute;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);
    width: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 1;
}

/* Form Transitions */
.auth-form {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Password Toggle Button */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: #667eea;
}

/* Form Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form.active .form-header,
.auth-form.active .input-group,
.auth-form.active .form-options,
.auth-form.active .btn-primary,
.auth-form.active .form-footer,
.auth-form.active .terms-container,
.auth-form.active .divider,
.auth-form.active .btn-secondary {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Stagger the animations */
.auth-form.active .form-header { animation-delay: 0.1s; }
.auth-form.active .input-group:nth-child(2) { animation-delay: 0.15s; }
.auth-form.active .input-group:nth-child(3) { animation-delay: 0.2s; }
.auth-form.active .input-group:nth-child(4) { animation-delay: 0.25s; }
.auth-form.active .input-group:nth-child(5) { animation-delay: 0.3s; }
.auth-form.active .form-options { animation-delay: 0.35s; }
.auth-form.active .btn-primary { animation-delay: 0.4s; }
.auth-form.active .form-footer,
.auth-form.active .terms-container,
.auth-form.active .divider { animation-delay: 0.45s; }
.auth-form.active .btn-secondary { animation-delay: 0.5s; }

/* Loading Spinner */
.fa-spinner {
    margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-switcher {
        margin-bottom: 20px;
    }
    
    .switch-btn {
        padding: 10px;
        font-size: 15px;
    }
    
    .slider {
        width: 50%;
    }
}

 
.step {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-left: 12px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--gray-color);
    transition: all 0.3s ease;
}

.step.active .step-number {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.step.completed .step-number {
    border-color: var(--success-color);
    background: var(--success-color);
    color: white;
}

.step.completed::after {
    background: var(--success-color);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-color);
}

.step.active .step-label {
    color: var(--primary-color);
}


/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
    background: var(--danger-color);
    width: 33%;
}

.strength-medium {
    background: var(--warning-color);
    width: 66%;
}

.strength-strong {
    background: var(--success-color);
    width: 100%;
}

/* Validation messages */
.validation-message {
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error {
    color: var(--danger-color);
}

.validation-success {
    color: var(--success-color);
}


.referral-section {
    margin-top: 20px;
}

.referral-code-display {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.referral-count {
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.referral-count i {
    margin-right: 5px;
}

.referral-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 2px dashed #4A6FA5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.referral-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #4A6FA5;
}

.referral-actions {
    display: flex;
    gap: 10px;
}

.referral-note {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.referral-note i {
    margin-right: 5px;
    color: #4A6FA5;
}

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

.benefits-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list i {
    margin-right: 10px;
    color: #4A6FA5;
    width: 20px;
}

/* Search Section Styles */
.search-results-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.search-results-list {
    display: grid;
    gap: 15px;
}

.user-card {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin: 0 0 5px 0;
    color: #343a40;
}

.user-info p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #666;
}

.user-info p i {
    margin-right: 5px;
    width: 16px;
    color: #4A6FA5;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

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

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e0e0e0;
    height: calc(100vh - 60px);
    position: fixed;
    left: 0;
    top: 60px;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.user-info-sidebar h4 {
    margin: 0;
    font-size: 16px;
    color: var(--dark-color);
}

.user-info-sidebar p {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: var(--gray-color);
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
}

.sidebar-item.active {
    background: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
}

.sidebar-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 16px;
}

.sidebar-item .badge {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 6px;
}

.sidebar-divider {
    padding: 10px 20px;
    color: var(--gray-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    padding: 15px;
    color: white;
}

.balance-card h5 {
    margin: 0 0 10px 0;
    font-size: 12px;
    opacity: 0.9;
}

.balance-amount {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.balance-actions {
    display: flex;
    gap: 10px;
}

.btn-deposit, .btn-withdraw {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-deposit {
    background: white;
    color: var(--primary-color);
}

.btn-withdraw {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-deposit:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-withdraw:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content Adjustments */
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: calc(100vh - 60px);
    background: black;
}

/* User Menu Balance */
.user-balance {
    background: linear-gradient(135deg, var(--accent-color), #FFC107);
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Balance Cards */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

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

.balance-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.balance-card:nth-child(1) .balance-icon {
    background: linear-gradient(135deg, var(--primary-color), #6C8BC6);
}

.balance-card:nth-child(2) .balance-icon {
    background: linear-gradient(135deg, var(--success-color), #4CAF50);
}

.balance-card:nth-child(3) .balance-icon {
    background: linear-gradient(135deg, var(--danger-color), #FF6B6B);
}

.balance-card:nth-child(4) .balance-icon {
    background: linear-gradient(135deg, var(--warning-color), #FFB74D);
}

.balance-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--gray-color);
}

.balance-amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.balance-subtitle {
    margin: 0;
    font-size: 12px;
    color: var(--gray-color);
}

/* Quick Actions */
.quick-actions {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.quick-actions h3 {
    margin: 0 0 20px 0;
    color: var(--dark-color);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-btn {
    padding: 20px;
    border: none;
    border-radius: 10px;
    background: white;
    color: var(--dark-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
}

.action-btn i {
    font-size: 32px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.deposit-btn {
    border-color: var(--success-color);
    color: var(--success-color);
}

.deposit-btn:hover {
    background: rgba(46, 139, 87, 0.1);
}

.withdraw-btn {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.withdraw-btn:hover {
    background: rgba(220, 20, 60, 0.1);
}

.history-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.history-btn:hover {
    background: rgba(74, 111, 165, 0.1);
}

.account-btn {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.account-btn:hover {
    background: rgba(255, 166, 43, 0.1);
}

/* Recent Transactions */
.recent-transactions {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.btn-view-all {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-view-all:hover {
    background: var(--secondary-color);
}

.transactions-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
}

.transaction-item:hover {
    background: rgba(74, 111, 165, 0.05);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.transaction-icon.deposit {
    background: rgba(46, 139, 87, 0.1);
    color: var(--success-color);
}

.transaction-icon.withdrawal {
    background: rgba(220, 20, 60, 0.1);
    color: var(--danger-color);
}

.transaction-details {
    flex: 1;
}

.transaction-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--dark-color);
}

.transaction-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--gray-color);
}

.transaction-amount {
    font-weight: bold;
    font-size: 16px;
}

.transaction-amount.deposit {
    color: var(--success-color);
}

.transaction-amount.withdrawal {
    color: var(--danger-color);
}

.transaction-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.status-pending {
    background: rgba(255, 166, 43, 0.1);
    color: var(--warning-color);
}

.status-approved {
    background: rgba(46, 139, 87, 0.1);
    color: var(--success-color);
}

.status-rejected {
    background: rgba(220, 20, 60, 0.1);
    color: var(--danger-color);
}

.status-completed {
    background: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
}

.no-transactions {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-color);
}

.no-transactions i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-transactions p {
    margin: 0;
    font-size: 14px;
}

/* Deposit/Withdrawal Forms */
.deposit-container, .withdrawal-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.deposit-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.method-card {
    flex: 1;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.method-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.method-card.active {
    border-color: var(--primary-color);
    background: rgba(74, 111, 165, 0.05);
}

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(74, 111, 165, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
    font-size: 24px;
}

.method-card.active .method-icon {
    background: var(--primary-color);
    color: white;
}

.method-card h4 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.method-card p {
    margin: 0;
    color: var(--gray-color);
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.amount-input {
    position: relative;
}

.amount-input .currency {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: var(--primary-color);
}

.amount-input input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.amount-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.amount-suggestions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.amount-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.amount-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.bank-details {
    background: rgba(74, 111, 165, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.bank-details h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
}

.details-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    min-width: 150px;
    font-weight: 500;
    color: var(--gray-color);
}

.detail-value {
    flex: 1;
    font-family: monospace;
    font-size: 14px;
    color: var(--dark-color);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--secondary-color);
}

.instructions {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--accent-color);
}

.instructions h5 {
    margin: 0 0 15px 0;
    color: var(--accent-color);
}

.instructions ol {
    margin: 0;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    color: var(--gray-color);
}

.instructions li:last-child {
    margin-bottom: 0;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: var(--transition);
}

.file-upload:hover .upload-area {
    border-color: var(--primary-color);
    background: rgba(74, 111, 165, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 0.7;
}

.upload-area p {
    margin: 0 0 5px 0;
    color: var(--dark-color);
}

.upload-area small {
    color: var(--gray-color);
}

#proofPreview {
    margin-top: 15px;
}

.proof-preview {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Withdrawal Summary */
.withdrawal-summary {
    background: rgba(74, 111, 165, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.withdrawal-summary h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item.total {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    color: var(--success-color);
}

/* Terms Check */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.terms-check input {
    margin-top: 5px;
}

.terms-check label {
    font-size: 14px;
    color: var(--gray-color);
    line-height: 1.5;
}

/* Submit Buttons */
.btn-submit-deposit, .btn-submit-withdrawal, .btn-submit-account, .btn-save-settings {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-deposit:hover, .btn-submit-withdrawal:hover, .btn-submit-account:hover, .btn-save-settings:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

/* Transactions Table */
.transactions-filter {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group select, .filter-group input {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background: white;
}

.btn-filter, .btn-reset {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-filter {
    background: var(--primary-color);
    color: white;
}

.btn-reset {
    background: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #e0e0e0;
}

.export-options {
    display: flex;
    gap: 10px;
}

.btn-export, .btn-print {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-export:hover, .btn-print:hover {
    background: var(--primary-color);
    color: white;
}

.transactions-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
}

.transactions-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.transactions-table tr:hover {
    background: rgba(74, 111, 165, 0.05);
}

.transactions-table .type-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.type-deposit {
    background: rgba(46, 139, 87, 0.1);
    color: var(--success-color);
}

.type-withdrawal {
    background: rgba(220, 20, 60, 0.1);
    color: var(--danger-color);
}

/* Bank Accounts */
.accounts-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.accounts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.account-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
}

.account-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.account-card.default {
    border-color: var(--primary-color);
    background: rgba(74, 111, 165, 0.05);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.account-header h4 {
    margin: 0;
    color: var(--dark-color);
}

.default-badge {
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.account-details p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--gray-color);
}

.account-number {
    font-family: monospace;
    font-size: 16px;
    color: var(--dark-color);
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
}

.account-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-set-default, .btn-delete-account {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-set-default {
    background: var(--primary-color);
    color: white;
}

.btn-delete-account {
    background: var(--danger-color);
    color: white;
}

.no-accounts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-color);
}

.no-accounts i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-accounts h4 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.no-accounts p {
    margin: 0 0 20px 0;
}

/* Admin Settings */
.admin-settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.settings-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.settings-description {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

/* Approval System */
.approval-container {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.approval-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 20px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-color);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    padding: 20px;
    display: none;
}

.tab-content.active {
    display: block;
}

.approval-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.approval-item:hover {
    border-color: var(--primary-color);
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.user-info-small {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.amount-large {
    font-size: 24px;
    font-weight: bold;
}

.amount-large.deposit {
    color: var(--success-color);
}

.amount-large.withdrawal {
    color: var(--danger-color);
}

.approval-details {
    margin: 15px 0;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
}

.detail-label {
    min-width: 150px;
    color: var(--gray-color);
    font-size: 14px;
}

.detail-value {
    color: var(--dark-color);
    font-size: 14px;
}

.proof-image {
    max-width: 200px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.proof-image:hover {
    transform: scale(1.05);
}

.approval-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-approve, .btn-reject {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-approve {
    background: var(--success-color);
    color: white;
}

.btn-approve:hover {
    background: #1e7e34;
}

.btn-reject {
    background: var(--danger-color);
    color: white;
}

.btn-reject:hover {
    background: #b21f2d;
}


.btn-cancel, .btn-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-cancel {
    background: var(--light-color);
    color: var(--dark-color);
}

.btn-confirm {
    background: var(--primary-color);
    color: white;
}

.btn-confirm:hover {
    background: var(--secondary-color);
}

/* Receipt Styles */
.receipt {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
}

.receipt-header h2 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.receipt-header p {
    margin: 0;
    color: var(--gray-color);
}

.receipt-body {
    margin-bottom: 30px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-label {
    color: var(--gray-color);
}

.receipt-value {
    color: var(--dark-color);
    font-weight: 500;
}

.receipt-amount {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.amount-deposit {
    color: var(--success-color);
}

.amount-withdrawal {
    color: var(--danger-color);
}

.receipt-footer {
    text-align: center;
    color: var(--gray-color);
    font-size: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 70px;
        left: 20px;
        z-index: 1001;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 5px;
        padding: 8px 12px;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .balance-cards {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .deposit-methods {
        flex-direction: column;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .export-options {
        flex-direction: column;
        width: 100%;
    }
    
    .transactions-table {
        display: block;
        overflow-x: auto;
    }
    
    .admin-settings-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .approval-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-left: 3px solid var(--primary-color);
        border-bottom: 1px solid #e0e0e0;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: rgba(255, 166, 43, 0.1);
    color: var(--warning-color);
}

.badge-warning {
    background: rgba(255, 166, 43, 0.2);
    color: var(--warning-color);
}

.badge-success {
    background: rgba(46, 139, 87, 0.1);
    color: var(--success-color);
}

.badge-danger {
    background: rgba(220, 20, 60, 0.1);
    color: var(--danger-color);
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

        .dashboard-cards .card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        .dashboard-cards .card:hover {
            transform: translateY(-5px);
        }
        .deposit-methods, .approval-tabs {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
        }
        .method-card, .tab-btn {
            flex: 1;
            padding: 20px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }
        .method-card.active, .tab-btn.active {
            border-color: var(--primary-color);
            background: rgba(74,111,165,0.05);
        }
        .method-icon i {
            font-size: 32px;
            color: var(--primary-color);
        }
        .bank-details, .selected-account {
            background: #f9f9f9;
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
        }
        .detail-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .detail-item:last-child {
            border-bottom: none;
        }
        .detail-label {
            font-weight: 600;
            width: 140px;
            color: var(--dark-color);
        }
        .detail-value {
            flex: 1;
            font-family: monospace;
            background: white;
            padding: 6px 12px;
            border-radius: 6px;
        }
        .copy-btn {
            background: none;
            border: none;
            color: var(--primary-color);
            cursor: pointer;
            padding: 8px;
            margin-left: 10px;
        }
        .copy-btn:hover {
            color: var(--accent-color);
        }
        .amount-suggestions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        .amount-btn {
            background: white;
            border: 1px solid #ddd;
            border-radius: 20px;
            padding: 8px 16px;
            cursor: pointer;
            transition: var(--transition);
        }
        .amount-btn:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        .file-upload {
            border: 2px dashed #ccc;
            border-radius: 8px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }
        .file-upload:hover {
            border-color: var(--primary-color);
            background: rgba(74,111,165,0.05);
        }
        .file-upload i {
            font-size: 40px;
            color: var(--gray-color);
            margin-bottom: 10px;
        }
        #proofPreview img {
            max-width: 200px;
            max-height: 200px;
            margin-top: 15px;
            border-radius: 8px;
            box-shadow: var(--shadow);
        }
        .btn-submit-deposit, .btn-submit-withdrawal, .btn-save-settings, .btn-submit-account {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            margin-top: 20px;
            transition: var(--transition);
        }
        .btn-submit-deposit:hover, .btn-submit-withdrawal:hover, .btn-save-settings:hover, .btn-submit-account:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        }
        .withdrawal-summary {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: var(--shadow);
            margin: 20px 0;
        }
        .summary-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .summary-item.total {
            border-bottom: none;
            font-weight: 700;
            font-size: 18px;
            color: var(--primary-color);
        }
        .transactions-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        .transactions-table th {
            background: var(--primary-color);
            color: white;
            padding: 12px;
            text-align: left;
        }
        .transactions-table td {
            padding: 12px;
            border-bottom: 1px solid #eee;
        }
        .status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            display: inline-block;
        }
        .status-pending { background: #FFF3CD; color: #856404; }
        .status-approved { background: #D4EDDA; color: #155724; }
        .status-rejected { background: #F8D7DA; color: #721C24; }
        .action-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 20px;
        }
        .action-btn {
            flex: 1;
            min-width: 150px;
            padding: 15px;
            border: none;
            border-radius: 8px;
            background: white;
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        .action-btn i {
            font-size: 24px;
            color: var(--primary-color);
        }
        .action-btn:hover {
            background: var(--primary-color);
            color: white;
        }
        .action-btn:hover i {
            color: white;
        }
        .receipt-modal {
            max-width: 600px;
        }
        .receipt-header {
            text-align: center;
            margin-bottom: 30px;
        }
        .receipt-details {
            border-top: 2px dashed #ccc;
            border-bottom: 2px dashed #ccc;
            padding: 20px 0;
            margin: 20px 0;
        }
        .receipt-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
        }
        .receipt-footer {
            text-align: center;
            color: var(--gray-color);
            font-size: 12px;
            margin-top: 30px;
        }
        
                /* ===== BANKING UI STYLES ===== */
        .deposit-methods, .approval-tabs {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
        }
        .method-card, .tab-btn {
            flex: 1;
            padding: 20px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }
        .method-card.active, .tab-btn.active {
            border-color: var(--primary-color);
            background: rgba(74,111,165,0.05);
        }
        .method-icon i { font-size: 32px; color: var(--primary-color); }
        .bank-details, .selected-account {
            background: #f9f9f9;
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
        }
        .detail-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .detail-item:last-child { border-bottom: none; }
        .detail-label {
            font-weight: 600;
            width: 140px;
            color: var(--dark-color);
        }
        .detail-value {
            flex: 1;
            font-family: monospace;
            background: white;
            padding: 6px 12px;
            border-radius: 6px;
        }
        .copy-btn {
            background: none;
            border: none;
            color: var(--primary-color);
            cursor: pointer;
            padding: 8px;
            margin-left: 10px;
        }
        .copy-btn:hover { color: var(--accent-color); }
        .amount-suggestions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        .amount-btn {
            background: white;
            border: 1px solid #ddd;
            border-radius: 20px;
            padding: 8px 16px;
            cursor: pointer;
            transition: var(--transition);
        }
        .amount-btn:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        .file-upload {
            border: 2px dashed #ccc;
            border-radius: 8px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }
        .file-upload:hover {
            border-color: var(--primary-color);
            background: rgba(74,111,165,0.05);
        }
        .file-upload i {
            font-size: 40px;
            color: var(--gray-color);
            margin-bottom: 10px;
        }
        #proofPreview img {
            max-width: 200px;
            max-height: 200px;
            margin-top: 15px;
            border-radius: 8px;
            box-shadow: var(--shadow);
        }
        .btn-submit-deposit, .btn-submit-withdrawal, .btn-save-settings, .btn-submit-account {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            margin-top: 20px;
            transition: var(--transition);
        }
        .btn-submit-deposit:hover, .btn-submit-withdrawal:hover, .btn-save-settings:hover, .btn-submit-account:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        }
        .withdrawal-summary {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: var(--shadow);
            margin: 20px 0;
        }
        .summary-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .summary-item.total {
            border-bottom: none;
            font-weight: 700;
            font-size: 18px;
            color: var(--primary-color);
        }
        .transactions-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        .transactions-table th {
            background: var(--primary-color);
            color: white;
            padding: 12px;
            text-align: left;
        }
        .transactions-table td {
            padding: 12px;
            border-bottom: 1px solid #eee;
        }
        .status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            display: inline-block;
        }
        .status-pending { background: #FFF3CD; color: #856404; }
        .status-approved { background: #D4EDDA; color: #155724; }
        .status-rejected { background: #F8D7DA; color: #721C24; }
        .action-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 20px;
        }
        .action-btn {
            flex: 1;
            min-width: 150px;
            padding: 15px;
            border: none;
            border-radius: 8px;
            background: white;
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        .action-btn i { font-size: 24px; color: var(--primary-color); }
        .action-btn:hover {
            background: var(--primary-color);
            color: white;
        }
        .action-btn:hover i { color: white; }
        .receipt-modal { max-width: 600px; }
        .receipt-header { text-align: center; margin-bottom: 30px; }
        .receipt-details {
            border-top: 2px dashed #ccc;
            border-bottom: 2px dashed #ccc;
            padding: 20px 0;
            margin: 20px 0;
        }
        .receipt-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
        }
        .receipt-footer {
            text-align: center;
            color: var(--gray-color);
            font-size: 12px;
            margin-top: 30px;
        }
        .admin-settings-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        @media (max-width: 768px) {
            .admin-settings-container { grid-template-columns: 1fr; }
        }
        .settings-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: var(--shadow);
        }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        /* ========== PROFILE SECTION ========== */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.profile-avatar-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    box-shadow: var(--shadow);
}
.profile-info {
    flex: 1;
}
.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}
.profile-badge {
    margin-bottom: 1rem;
}
.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.profile-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-color);
}
.profile-details i {
    width: 20px;
    color: var(--primary-color);
}
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.stat-box {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(74, 111, 165, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}
.stat-content {
    flex: 1;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}
.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ========== WALLET CARD ========== */
.wallet-card {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
    padding: 2rem;
    color: white;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.wallet-info h3 {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}
.wallet-balance {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.wallet-sub {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}
.wallet-actions {
    display: flex;
    gap: 1rem;
}
.wallet-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wallet-btn:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* ========== DEPOSIT / WITHDRAWAL FORMS ========== */
.deposit-container, .withdrawal-container {
    max-width: 800px;
    margin: 0 auto;
}
.amount-input {
    position: relative;
    display: flex;
    align-items: center;
}
.currency {
    position: absolute;
    left: 16px;
    font-size: 1.2rem;
    color: var(--gray-color);
    font-weight: 500;
}
.amount-input input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.2rem;
    border: 2px solid #eef2f6;
    border-radius: 12px;
    transition: var(--transition);
}
.amount-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.amount-suggestions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.amount-btn {
    background: white;
    border: 1px solid #eef2f6;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}
.amount-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.bank-details, .selected-account {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.details-card .detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eef2f6;
}
.detail-label {
    min-width: 120px;
    color: var(--gray-color);
}
.detail-value {
    font-weight: 600;
    color: var(--dark-color);
    word-break: break-all;
}
.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}
.file-upload {
    border: 2px dashed #eef2f6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(74,111,165,0.05);
}
.file-upload i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.file-upload input {
    display: none;
}
.btn-submit-deposit, .btn-submit-withdrawal {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    transition: var(--transition);
    margin-top: 1.5rem;
}
.btn-submit-deposit:hover, .btn-submit-withdrawal:hover {
    background: #1e6b3b;
    transform: translateY(-2px);
}
.withdrawal-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    color: var(--dark-color);
}
.summary-item.total {
    border-top: 2px solid #eef2f6;
    margin-top: 0.8rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ========== TRANSACTION HISTORY ========== */
.transactions-filter {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.filter-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.filter-group select, .filter-group input {
    padding: 0.6rem 1rem;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    background: white;
}
.btn-filter, .btn-reset, .btn-export, .btn-print {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}
.btn-filter {
    background: var(--primary-color);
    color: white;
}
.btn-reset {
    background: #eef2f6;
    color: var(--dark-color);
}
.export-options {
    display: flex;
    gap: 0.8rem;
}
.transactions-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.transactions-table {
    width: 100%;
    border-collapse: collapse;
}
.transactions-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
}
.transactions-table td {
    padding: 1rem;
    border-bottom: 1px solid #eef2f6;
    color: var(--gray-color);
}
.transactions-table tr:hover {
    background: #f8fafc;
}
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-completed { background: #cce5ff; color: #004085; }

/* ========== WALLET TABS ========== */
.wallet-tabs {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}
.wallet-tab {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    background: transparent;
    border-radius: 40px;
    font-weight: 600;
    color: var(--gray-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.wallet-tab.active {
    background: var(--primary-color);
    color: white;
}
.wallet-tab i {
    font-size: 1.1rem;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* ===== TZS Banking System Styles ===== */
.wallet-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}
.wallet-balance .balance-label {
    font-size: 14px;
    opacity: 0.9;
    display: block;
}
.wallet-balance .balance-amount {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}
.wallet-actions {
    display: flex;
    gap: 12px;
}
.btn-success {
    background: var(--success-color);
    color: white;
}
.btn-warning {
    background: var(--accent-color);
    color: white;
}
.banking-tabs, .admin-banking-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 24px;
}
.bank-tab, .admin-bank-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--gray-color);
    cursor: pointer;
    position: relative;
}
.bank-tab.active, .admin-bank-tab.active {
    color: var(--primary-color);
}
.bank-tab.active::after, .admin-bank-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}
.bank-tab-content, .admin-bank-tab-content {
    display: none;
}
.bank-tab-content.active, .admin-bank-tab-content.active {
    display: block;
}
.transactions-list, .transactions-admin-list {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
}
.transaction-item:last-child {
    border-bottom: none;
}
.transaction-info {
    display: flex;
    gap: 16px;
    align-items: center;
}
.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}
.transaction-icon.deposit { background: #d4edda; color: #155724; }
.transaction-icon.withdrawal { background: #f8d7da; color: #721c24; }
.transaction-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
}
.transaction-meta {
    font-size: 12px;
    color: var(--gray-color);
}
.transaction-amount {
    font-weight: 700;
    font-size: 18px;
}
.transaction-amount.deposit { color: var(--success-color); }
.transaction-amount.withdrawal { color: var(--danger-color); }
.transaction-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.bank-account-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}
.bank-account-card.default {
    border-left: 4px solid var(--accent-color);
}
.bank-accounts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.company-bank-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}
.form-note {
    font-size: 12px;
    color: var(--gray-color);
    margin-top: 10px;
}
.receipt-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 24px;
    background: white;
    border: 1px solid #ddd;
    font-family: 'Courier New', monospace;
}
/* Responsive */
@media (max-width: 768px) {
    .wallet-card {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .wallet-actions {
        justify-content: stretch;
    }
    .wallet-actions .btn {
        flex: 1;
    }
}



/* Company bank details box */
.company-bank-details {
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.05), rgba(22, 105, 122, 0.05));
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.company-bank-details h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-size: 16px;
}

.company-bank-details p {
    margin: 8px 0;
    color: var(--dark-color);
    font-size: 14px;
}

.company-bank-details p strong {
    color: var(--primary-color);
}

/* Form note */
.form-note {
    font-size: 12px;
    color: var(--gray-color);
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    margin: 16px 0 0;
    border-left: 3px solid var(--accent-color);
}

        .vip-badge {
            padding: 0.5rem 1rem;
            border-radius: 25px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: bold;
            font-size: 0.9rem;
        }

        .vip-badge.vip1 {
            background: linear-gradient(90deg, var(--vip-bronze), #8B5A2B);
            color: white;
        }

        .vip-badge.vip2 {
            background: linear-gradient(90deg, var(--vip-silver), #808080);
            color: white;
        }

        .vip-badge.vip3 {
            background: linear-gradient(90deg, var(--vip-gold), #B8860B);
            color: white;
        }

        .vip-badge.vvip {
            background: linear-gradient(90deg, var(--vip-platinum), #2F4F4F);
            color: white;
            border: 2px solid var(--vip-diamond);
        }

        .balance-card {
            background: rgba(255, 255, 255, 0.1);
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
        }

        .balance-label {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.8);
        }

        .balance-amount {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent-color);
        }

        .btn-vip1 {
            background: linear-gradient(90deg, var(--vip-bronze), #8B5A2B);
            color: white;
        }

        .btn-vip2 {
            background: linear-gradient(90deg, var(--vip-silver), #808080);
            color: white;
        }

        .btn-vip3 {
            background: linear-gradient(90deg, var(--vip-gold), #B8860B);
            color: white;
        }

        .btn-vvip {
            background: linear-gradient(90deg, var(--vip-platinum), #2F4F4F);
            color: white;
            border: 2px solid var(--vip-diamond);
        }

        /* Main Container */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
            background: black;
        }

        /* Currency Display */
        .currency {
            font-weight: bold;
            color: var(--accent-color);
        }

        .currency:before {
            content: 'TZS ';
        }

        /* Navigation Tabs */
        .nav-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 2rem;
            background: rgba(255, 255, 255, 0.05);
            padding: 0.5rem;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            flex-wrap: wrap;
        }

        .tab-btn {
            flex: 1;
            padding: 1rem;
            background: none;
            border: none;
            color: var(--gray-color);
            font-weight: 600;
            cursor: pointer;
            border-radius: 8px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            min-width: 150px;
        }

        .tab-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .tab-btn.active {
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            color: white;
            box-shadow: var(--shadow);
        }

        /* VIP Multi-Bet Section - Now Integrated with All Matches */
        .vip-bet-slip {
            background: var(--secondary-color);
            border: 2px solid white;
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            position: sticky;
            top: 100px;
            z-index: 90;
            backdrop-filter: blur(10px);
        }

        .vip-bet-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .vip-bet-title {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .vip-bet-title i {
            font-size: 2rem;
            color: white;
        }

        .selected-bets-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 1rem 0;
            max-height: 300px;
            overflow-y: auto;
            padding: 0.5rem;
        }

        .selected-bet-item {
            background: rgba(255, 215, 0, 0.1);
            border: 1px solid var(--vip-gold);
            border-radius: 10px;
            padding: 1rem;
            min-width: 250px;
            flex: 1 1 auto;
            position: relative;
        }

        .remove-bet {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            color: var(--danger-color);
            cursor: pointer;
            font-size: 1rem;
            padding: 0.25rem;
        }

        .vip-limits {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1rem 0;
        }

        .vip-limit-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 1rem;
            text-align: center;
        }

        .vip-limit-card.vip1 { border-left: 4px solid var(--vip-bronze); }
        .vip-limit-card.vip2 { border-left: 4px solid var(--vip-silver); }
        .vip-limit-card.vip3 { border-left: 4px solid var(--vip-gold); }
        .vip-limit-card.vvip { border-left: 4px solid var(--vip-diamond); }


        /* Admin Form */
        .admin-form {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--gray-color);
            font-weight: 500;
        }

        .form-input {
            width: 100%;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: white;
            font-size: 1rem;
            transition: var(--transition);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(255, 166, 43, 0.2);
        }

        .odds-input-group {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 1rem;
        }

        /* Bet Slip */
        .bet-slip-content {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .bet-match-info {
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .bet-match-title {
            font-size: 1.25rem;
            font-weight: bold;
            color: white;
            margin-bottom: 0.5rem;
        }

        .bet-selection {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .bet-selection-title {
            color: var(--accent-color);
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .profit-calc {
            background: rgba(46, 139, 87, 0.1);
            border: 1px solid rgba(46, 139, 87, 0.3);
            border-radius: 10px;
            padding: 1.25rem;
            margin: 1.5rem 0;
        }

        .calc-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
        }

        .calc-row.total {
            border-top: 1px solid rgba(46, 139, 87, 0.3);
            padding-top: 0.75rem;
            margin-top: 0.75rem;
            font-size: 1.1rem;
            font-weight: bold;
            color: var(--success-color);
        }

        /* My Bets Table */
        .my-bets-table {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .my-bets-table th {
            background: rgba(0, 0, 0, 0.3);
            padding: 1.25rem;
            text-align: left;
            color: var(--gray-color);
            font-weight: 600;
            font-size: 0.9rem;
        }

        .my-bets-table td {
            padding: 1.25rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.95rem;
        }

        .status-badge {
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: bold;
            text-transform: uppercase;
            display: inline-block;
        }

        .status-pending {
            background: rgba(255, 166, 43, 0.2);
            color: var(--accent-color);
        }

        .status-won {
            background: rgba(46, 139, 87, 0.2);
            color: var(--success-color);
        }

        .status-lost {
            background: rgba(220, 20, 60, 0.2);
            color: var(--danger-color);
        }

        .status-refunded {
            background: rgba(74, 111, 165, 0.2);
            color: var(--primary-color);
        }

        /* Admin Panel */
        .admin-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .admin-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
            border-radius: 16px;
            padding: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Refund System - Grouped by Match */
        .refund-match-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .refund-match-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .refund-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .refund-stat-box {
            background: rgba(0, 0, 0, 0.3);
            padding: 1rem;
            border-radius: 8px;
            text-align: center;
        }

        .refund-user-list {
            margin-top: 1rem;
        }

        .refund-user-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 6px;
            margin-bottom: 0.5rem;
        }

        .index-hint {
            color: var(--accent-color);
            font-size: 0.8rem;
            margin-top: 0.25rem;
        }

        /* Loading Spinner */
        .spinner {
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-top: 3px solid var(--accent-color);
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Error Container */
        .error-container {
            background: rgba(220, 20, 60, 0.1);
            border: 1px solid var(--danger-color);
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            margin: 2rem 0;
        }

        .error-link {
            color: var(--accent-color);
            text-decoration: none;
            margin-top: 1rem;
            display: inline-block;
        }

        /* Responsive */

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
                padding: 1rem;
            }
            
            .user-info {
                flex-direction: column;
                gap: 1rem;
            }
            
            .nav-tabs {
                overflow-x: auto;
                padding: 0.5rem;
            }
            
            .tab-btn {
                white-space: nowrap;
                padding: 0.75rem;
                font-size: 0.85rem;
                min-width: 120px;
            }
            
            .team {
                width: 45%;
            }
            
            .odds-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }
            
            .odds-input-group {
                grid-template-columns: 1fr;
            }
            
            .vip-limits {
                grid-template-columns: 1fr;
            }
            
            .refund-stats {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 1rem;
            }
            
            .modal {
                padding: 1.5rem;
            }
            
            .team-logo {
                width: 50px;
                height: 50px;
                font-size: 1.25rem;
            }
            
            .team-name {
                font-size: 1rem;
            }
        }
        
        /* Responsive Improvements for All Screens */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.6rem;
    }
    
    .balance-amount {
        font-size: 1.3rem;
    }
    

    
    .selected-bets-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .vip-bet-slip {
        position: static;
        margin-bottom: 2rem;
    }
    
    .admin-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .header {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem;
        position: relative;
        width: 100%;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .logo-text p {
        text-align: center;
        font-size: 0.85rem;
    }
    
    .user-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    
    .vip-badge {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .balance-card {
        padding: 0.6rem 1.25rem;
        width: auto;
    }
    
    .container {
        padding: 1.25rem;
        width: 100%;
    }
    
    .nav-tabs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.5rem;
        overflow-x: visible;
        padding: 0.75rem;
    }
    
    .tab-btn {
        min-width: unset;
        width: 100%;
        white-space: normal;
        word-wrap: break-word;
        padding: 0.875rem 0.5rem;
        font-size: 0.85rem;
    }
    

    
    .match-card {
        width: 100%;
        margin: 0;
    }
    
    .match-header {
        padding: 1rem;
    }
    
    .competition-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .competition-name {
        font-size: 0.9rem;
    }
    
    .match-time {
        font-size: 0.8rem;
    }
    
    .teams-section {
        padding: 1.25rem 1rem;
    }
    
    .teams-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team {
        width: 100%;
        justify-content: center !important;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .team-logo {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .team-name {
        font-size: 1rem;
        text-align: center;
    }
    
    .vs-divider {
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
    
    .betting-section {
        padding: 1.25rem;
    }
    
    .custom-odds {
        margin-bottom: 1.25rem;
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .odds-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .odds-box {
        padding: 0.875rem;
    }
    
    .odds-type {
        font-size: 0.75rem;
    }
    
    .odds-value {
        font-size: 1.1rem;
    }
    
    .odds-percent {
        font-size: 0.85rem;
    }
    
    .place-bet-btn, .vip-bet-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .vip-bet-slip {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .vip-bet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .vip-bet-title {
        width: 100%;
    }
    
    .vip-bet-title i {
        font-size: 1.75rem;
    }
    
    .vip-bet-title h3 {
        font-size: 1.2rem;
    }
    
    .selected-bets-grid {
        grid-template-columns: 1fr;
        max-height: 350px;
    }
    
    .selected-bet-item {
        min-width: unset;
        width: 100%;
    }
    
    .vip-limits {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .vip-limit-card {
        padding: 0.875rem;
    }
    
    .modal {
        width: 95%;
        padding: 1.5rem;
        margin: 0 auto;
        max-height: 85vh;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .admin-form {
        padding: 1.5rem;
    }
    
    .odds-input-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-input {
        padding: 0.875rem;
    }
    
    .bet-slip-content {
        padding: 1.25rem;
    }
    
    .bet-match-title {
        font-size: 1.1rem;
    }
    
    .calc-row {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .calc-row.total {
        font-size: 1rem;
    }
    
    .my-bets-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .my-bets-table table {
        min-width: 600px;
    }
    
    .my-bets-table th,
    .my-bets-table td {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .status-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .admin-card {
        padding: 1.25rem;
    }
    
    .refund-match-card {
        padding: 1.25rem;
    }
    
    .refund-match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .refund-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .refund-stat-box {
        padding: 0.875rem;
    }
    
    .refund-user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        top: 20px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .user-info {
        flex-direction: column;
        width: 100%;
    }
    
    .vip-badge {
        width: 100%;
        justify-content: center;
    }
    
    .balance-card {
        width: 100%;
        text-align: center;
    }
    
    .nav-tabs {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        justify-content: center;
    }
    
    .match-card.live::before {
        top: 10px;
        right: 10px;
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .team-logo {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .team-name {
        font-size: 0.95rem;
    }
    
    .odds-value {
        font-size: 1rem;
    }
    
    .modal {
        padding: 1.25rem;
    }
    
    .modal-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .close-btn {
        font-size: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .vip-bet-title {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .vip-bet-title i {
        font-size: 1.5rem;
    }
    
    .vip-bet-title h3 {
        font-size: 1.1rem;
    }
    
    .vip-bet-header .btn {
        width: 100%;
        justify-content: center;
    }
    
    .selected-bet-item {
        padding: 0.875rem;
    }
    
    .index-hint {
        font-size: 0.75rem;
    }
    
    .error-container {
        padding: 1.5rem;
    }
    
    .error-container h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0.75rem;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .balance-amount {
        font-size: 1.2rem;
    }
    
    .team-logo {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .odds-box {
        padding: 0.75rem;
    }
    
    .odds-value {
        font-size: 0.95rem;
    }
    
    .place-bet-btn, .vip-bet-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .header {
        padding: 0.75rem 1.5rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .balance-amount {
        font-size: 1.2rem;
    }
    
    .vip-bet-slip {
        max-height: 400px;
        overflow-y: auto;
    }
    
    .modal {
        max-height: 80vh;
    }
    
    .selected-bets-grid {
        max-height: 200px;
    }
}

/* High-resolution Screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
        padding: 2rem;
    }
    

    
    .team-logo {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .odds-value {
        font-size: 1.4rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-tabs,
    .betting-section,
    .vip-bet-btn,
    .place-bet-btn,
    .btn,
    .modal-overlay,
    .notification {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    .match-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}

/* Ensure all content is visible and properly spaced */
@media (max-width: 768px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    img, svg, iframe, video, table {
        max-width: 100%;
        height: auto;
    }
    
    .container,
    .header,
    .vip-bet-slip,
    .modal,
    .admin-form,
    .my-bets-table,
    .refund-match-card {
        overflow-x: visible;
    }
    
    body {
        overflow-x: hidden;
    }
    
    /* Force display of all elements */
    .vip-bet-slip,
    .selected-bets-grid,
    .selected-bet-item,
    .vip-limits,
    .vip-limit-card,
    .modal-overlay.active {
        display: block;
    }
    
    .selected-bets-grid {
        display: grid;
    }
    
    .vip-limits {
        display: grid;
    }
}

/* Fix sticky positioning for VIP bet slip on larger screens */
@media (min-width: 769px) {
    .vip-bet-slip {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

        /* Notification */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--success-color);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            z-index: 1001;
            box-shadow: var(--shadow);
            animation: slideIn 0.3s ease;
        }

        .notification.error {
            background: var(--danger-color);
        }

        .notification.warning {
            background: var(--accent-color);
        }

        .notification.info {
            background: var(--primary-color);
        }

        .notification.vip {
            background: linear-gradient(90deg, var(--vip-gold), var(--vip-bronze));
        }

        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        
        /* ===== UNIFIED MODAL SYSTEM ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: #fff;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2, .modal-header h3 {
    margin: 0;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h2 i, .modal-header h3 i {
    color: var(--accent-color, #ffa62b);
}

.close-modal {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: var(--accent-color, #ffa62b);
    background: rgba(255, 255, 255, 0.05);
}

.modal-body {
    padding: 0.5rem 0;
}

/* Form elements inside modal */
.modal-body .input-group {
    margin-bottom: 1.25rem;
}

.modal-body .input-group label {
    display: block;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal-body .input-group input,
.modal-body .input-group select,
.modal-body .input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.modal-body .input-group input:focus,
.modal-body .input-group select:focus,
.modal-body .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color, #ffa62b);
    background: rgba(255, 166, 43, 0.1);
}

.modal-body .checkbox-group {
    margin: 1rem 0;
}

.modal-body .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    cursor: pointer;
}

.modal-body .checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent-color, #ffa62b);
}

/* Modal action buttons */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.modal-actions {
    background: linear-gradient(45deg, #ffa62b, #ff8c00);
    color: white;
}

.modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 166, 43, 0.3);
}

.modal-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== BANKING SYSTEM STYLES ==================== */
.wallet-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.balance-card {
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    padding: 20px 30px;
    border-radius: 15px;
    color: white;
    text-align: right;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
}

.wallet-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.wallet-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.wallet-tab.active {
    color: var(--accent-color);
}

.wallet-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.wallet-tab-content {
    display: none;
}

.wallet-tab-content.active {
    display: block;
}

/* Deposit Steps */
.deposit-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.deposit-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: var(--dark-color);
    padding: 0 10px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--accent-color);
    transform: scale(1.1);
}

.step-title {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.step.active .step-title {
    color: var(--accent-color);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    background: var(--secondary-color);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.payment-method.selected {
    border-color: var(--accent-color);
    background: rgba(255, 166, 43, 0.1);
}

.payment-method img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 10px;
    background: white;
    padding: 5px;
}

.payment-method span {
    display: block;
    font-size: 0.9rem;
    color: white;
}

/* Bank Details */
.bank-details {
    margin: 20px 0;
}

.bank-detail-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    padding: 20px;
    color: white;
}

.bank-detail-card h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.bank-detail-card p {
    margin-bottom: 10px;
}

.warning-note {
    background: rgba(220, 20, 60, 0.2);
    border: 1px solid var(--danger-color);
    border-radius: 5px;
    padding: 10px;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Withdrawal Calculator */
.deduction-calculator {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.calc-row.total {
    border-bottom: none;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Transaction History */
.transaction-list {
    margin-top: 20px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.transaction-item:hover {
    transform: translateX(5px);
    background: rgba(22, 105, 106, 0.8);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.transaction-icon.deposit {
    background: rgba(46, 139, 87, 0.2);
    color: var(--success-color);
}

.transaction-icon.withdrawal {
    background: rgba(220, 20, 60, 0.2);
    color: var(--danger-color);
}

.transaction-icon.win {
    background: rgba(255, 166, 43, 0.2);
    color: var(--accent-color);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.transaction-date {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.transaction-amount {
    font-weight: bold;
    margin-right: 15px;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--danger-color);
}

.transaction-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.transaction-status.status-pending {
    background: rgba(255, 166, 43, 0.2);
    color: var(--accent-color);
}

.transaction-status.status-success {
    background: rgba(46, 139, 87, 0.2);
    color: var(--success-color);
}

.transaction-status.status-danger {
    background: rgba(220, 20, 60, 0.2);
    color: var(--danger-color);
}

/* Admin Banking Styles */
.admin-banking-container {
    padding: 20px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.admin-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
}

.admin-tab.active {
    color: var(--accent-color);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.badge {
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-left: 5px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.settings-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
}

.settings-card h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.accounts-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.account-card {
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-info {
    flex: 1;
}

.account-info strong {
    color: white;
    display: block;
}

.account-info small {
    color: var(--gray-color);
}

.account-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

/* Approval Cards */
.approvals-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.approval-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid var(--gray-color);
    color: white;
}

.approval-card.pending {
    border-left-color: var(--accent-color);
}

.approval-card.approved {
    border-left-color: var(--success-color);
}

.approval-card.rejected {
    border-left-color: var(--danger-color);
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.transaction-type {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.transaction-type.deposit {
    background: rgba(46, 139, 87, 0.2);
    color: var(--success-color);
}

.transaction-type.withdrawal {
    background: rgba(220, 20, 60, 0.2);
    color: var(--danger-color);
}

.transaction-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.transaction-status.pending {
    background: rgba(255, 166, 43, 0.2);
    color: var(--accent-color);
}

.transaction-status.approved {
    background: rgba(46, 139, 87, 0.2);
    color: var(--success-color);
}

.transaction-status.rejected {
    background: rgba(220, 20, 60, 0.2);
    color: var(--danger-color);
}

.approval-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    color: white;
}

.user-info, .transaction-details {
    font-size: 0.9rem;
    color: var(--gray-color);
    line-height: 1.6;
}

.user-info strong, .transaction-details strong {
    color: white;
}

.transaction-time {
    font-size: 0.8rem;
    color: var(--gray-color);
    text-align: right;
}

.approval-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.btn-approve, .btn-reject {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.btn-approve {
    background: var(--success-color);
    color: white;
}

.btn-approve:hover {
    background: #236b43;
}

.btn-reject {
    background: var(--danger-color);
    color: white;
}

.btn-reject:hover {
    background: #b01030;
}

.rejection-reason {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.analytics-card h4 {
    color: var(--gray-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.analytics-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.chart-container {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    height: 400px;
}

/* Receipt Modal */
.receipt-modal {
    max-width: 500px;
}

.receipt {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 10px;
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 20px;
}

.receipt-id {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.receipt-status {
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.receipt-status.pending {
    background: #fff3cd;
    color: #856404;
}

.receipt-status.approved {
    background: #d4edda;
    color: #155724;
}

.receipt-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.receipt-details {
    margin-bottom: 20px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.receipt-row.total {
    font-weight: bold;
    color: var(--accent-color);
    border-bottom: none;
    font-size: 1.1rem;
}

.receipt-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #ccc;
    color: #666;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--secondary-color);
    color: white;
    padding: 12px;
    text-align: left;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.badge.deposit {
    background: rgba(46, 139, 87, 0.2);
    color: var(--success-color);
    padding: 3px 8px;
    border-radius: 3px;
}

.badge.withdrawal {
    background: rgba(220, 20, 60, 0.2);
    color: var(--danger-color);
    padding: 3px 8px;
    border-radius: 3px;
}

.badge.approved {
    background: rgba(46, 139, 87, 0.2);
    color: var(--success-color);
}

.badge.pending {
    background: rgba(255, 166, 43, 0.2);
    color: var(--accent-color);
}

.badge.rejected {
    background: rgba(220, 20, 60, 0.2);
    color: var(--danger-color);
}

/* Responsive */
@media (max-width: 768px) {
    .wallet-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .balance-card {
        width: 100%;
        text-align: center;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approval-body {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 0.9rem;
    }
    
    .admin-table th, .admin-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .wallet-tabs {
        flex-direction: column;
    }
    
    .deposit-steps {
        flex-direction: column;
        gap: 10px;
    }
    
    .deposit-steps::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 10px;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

/* Bank Account Management Styles */
.section-title {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.section-title i {
    color: var(--accent-color);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.settings-card {
    background: linear-gradient(135deg, var(--secondary-color), #1a2f3f);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 166, 43, 0.3);
}

.card-header h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h4 i {
    font-size: 1.2rem;
}

.btn-add {
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 166, 43, 0.3);
}

.accounts-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.accounts-list::-webkit-scrollbar {
    width: 5px;
}

.accounts-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.accounts-list::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

/* Account Card */
.account-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.account-card.active {
    border-left-color: var(--success-color);
}

.account-card.inactive {
    border-left-color: var(--danger-color);
    opacity: 0.7;
}

.account-card:hover {
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.3);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.account-type-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.account-type-badge.mobile {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.account-type-badge.bank {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.account-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

.account-card-body {
    margin-bottom: 15px;
}

.account-provider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-provider img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 2px;
}

.account-provider span {
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
}

.account-details {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    width: 120px;
    color: var(--gray-color);
}

.detail-value {
    flex: 1;
    color: white;
    font-weight: 500;
}

.detail-row.instructions .detail-value {
    color: var(--accent-color);
    font-style: italic;
}

.account-meta {
    color: var(--gray-color);
    font-size: 0.8rem;
    text-align: right;
}

.account-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray-color);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-icon.delete:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-color);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--accent-color);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* No Methods */
.no-methods {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    color: #e74c3c;
}

.no-methods i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Payment Methods Grid Update */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    background: var(--secondary-color);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-method:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(255, 166, 43, 0.2);
}

.payment-method.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--secondary-color), #1e3a3f);
}

.payment-method.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--accent-color);
    font-size: 1rem;
}

.payment-method img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.payment-method span {
    display: block;
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.payment-method small {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-top: 5px;
}

/* Modal Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
    padding: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 3px;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .btn-add {
        width: 100%;
        justify-content: center;
    }
}

/* Add to your CSS file */
.selected-account-info {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, var(--secondary-color), #1a2f3f);
    border-radius: 12px;
    border: 1px solid var(--accent-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-account-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.account-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 3px;
    border: 2px solid var(--accent-color);
}

.selected-account-details {
    flex: 1;
}

.account-provider-name {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.account-type {
    color: var(--gray-color);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.account-name {
    color: white;
    font-size: 1rem;
    margin-bottom: 3px;
}

.account-number {
    color: var(--accent-color);
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
    background: rgba(255, 166, 43, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Improve select styling */
#withdrawBank {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

#withdrawBank optgroup {
    background: var(--secondary-color);
    color: var(--accent-color);
    font-weight: bold;
    padding: 5px;
}

#withdrawBank option {
    background: var(--secondary-color);
    color: white;
    padding: 10px;
}

/* Withdraw submit button */
.withdraw-submit {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.withdraw-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 166, 43, 0.4);
}

.withdraw-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.withdraw-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Bank Account Management Section Styles */
.banking-settings-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Stats */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #1a2f3f);
    border-radius: 15px;
}

.settings-header h2 {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-header h2 i {
    color: var(--accent-color);
}

.header-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: bold;
}

/* Add Account Form */
.add-account-section {
    background: linear-gradient(135deg, var(--secondary-color), #1a2f3f);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 166, 43, 0.3);
}

.add-account-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-account-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 166, 43, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 166, 43, 0.4);
}

.btn-secondary {
    background: var(--gray-color);
    color: white;
    flex: 1;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Accounts List Section */
.accounts-list-section {
    background: linear-gradient(135deg, var(--secondary-color), #1a2f3f);
    border-radius: 15px;
    padding: 25px;
}

.section-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.section-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.section-tab i {
    font-size: 1.1rem;
}

.section-tab .count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.section-tab.active {
    color: var(--accent-color);
}

.section-tab.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px 3px 0 0;
}

.account-tab {
    display: none;
}

.account-tab.active {
    display: block;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Account Card */
.account-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.account-card.active {
    border-left-color: var(--success-color);
}

.account-card.inactive {
    border-left-color: var(--danger-color);
    opacity: 0.7;
}

.account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-provider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-provider img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 2px;
}

.provider-info {
    display: flex;
    flex-direction: column;
}

.provider-name {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1rem;
}

.account-type {
    color: var(--gray-color);
    font-size: 0.8rem;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.account-status.active {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.account-status.inactive {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.account-card-body {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.detail-label {
    width: 120px;
    color: var(--gray-color);
}

.detail-value {
    flex: 1;
    color: white;
}

.detail-value.account-number {
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 1px;
}

.detail-row.instructions .detail-value {
    color: var(--accent-color);
    font-style: italic;
}

.account-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.account-meta {
    color: var(--gray-color);
    font-size: 0.8rem;
}

.account-meta i {
    margin-right: 3px;
}

.account-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray-color);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-icon.edit:hover {
    color: #3498db;
}

.btn-icon.toggle:hover {
    color: var(--accent-color);
}

.btn-icon.delete:hover {
    color: #e74c3c;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--accent-color);
}

.empty-state h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.empty-state p {
    font-size: 0.95rem;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--accent-color);
}

.loading-state i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-stats {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .section-tabs {
        flex-direction: column;
    }
    
    .section-tab.active::after {
        display: none;
    }
}

/* Withdrawal Section Styles */
.withdraw-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background: linear-gradient(135deg, var(--secondary-color), #1a2f3f);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.withdraw-header {
    text-align: center;
    margin-bottom: 25px;
}

.withdraw-header h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.withdraw-header p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(255, 166, 43, 0.3);
}

.balance-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-icon i {
    font-size: 1.8rem;
    color: white;
}

.balance-info {
    flex: 1;
}

.balance-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.balance-amount {
    display: block;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

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

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 166, 43, 0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.step-title {
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent-color);
    width: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-hint {
    display: block;
    color: var(--gray-color);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Amount Input */
.amount-input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.currency-prefix {
    padding: 0 15px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(255, 166, 43, 0.1);
    height: 100%;
    display: flex;
    align-items: center;
}

.amount-input {
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 1.2rem;
}

.amount-input:focus {
    border-color: transparent;
    background: transparent;
}

/* Withdrawal Calculator */
.withdrawal-calculator {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(255, 166, 43, 0.3);
}

.calculator-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-color);
}

.calc-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.calc-amount {
    color: white;
    font-weight: 500;
}

.calc-fee {
    color: #e74c3c;
    font-weight: 500;
}

.calc-net {
    color: #2ecc71;
    font-weight: bold;
}

/* Account Tabs */
.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 10px;
}

.account-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.account-tab i {
    font-size: 1rem;
}

.account-tab.active {
    background: var(--accent-color);
    color: white;
}

.account-tab:hover:not(.active) {
    background: rgba(255, 166, 43, 0.1);
    color: var(--accent-color);
}

/* Account Sections */
.account-section {
    display: none;
    animation: slideDown 0.3s ease;
}

.account-section.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selected Account Details */
.selected-account-details {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

.account-info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.account-info-card i {
    font-size: 2rem;
}

.account-info-content {
    flex: 1;
}

.account-provider {
    font-weight: bold;
    margin-bottom: 5px;
}

.account-detail {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Select Styling */
#withdrawBank, #manualProvider {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    cursor: pointer;
}

#withdrawBank optgroup, #manualProvider optgroup {
    background: var(--secondary-color);
    color: var(--accent-color);
    font-weight: bold;
}

#withdrawBank option, #manualProvider option {
    background: var(--secondary-color);
    color: white;
    padding: 10px;
}

/* Checkbox Group */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-next, .btn-prev, .btn-submit {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-next {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    color: white;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 166, 43, 0.4);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-prev {
    flex: 1;
    background: var(--gray-color);
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-submit {
    flex: 2;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Info Card */
.info-card {
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 10px;
}

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

.info-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.info-list li i {
    color: #2ecc71;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .withdraw-form-container {
        padding: 15px;
    }
    
    .balance-amount {
        font-size: 1.5rem;
    }
    
    .account-tabs {
        flex-direction: column;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-prev, .btn-submit {
        width: 100%;
    }
}

/* Withdrawal Section Styles */
.withdraw-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, var(--secondary-color), #1a2f3f);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.withdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 166, 43, 0.3);
}

.withdraw-header h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.withdraw-info {
    background: rgba(255, 166, 43, 0.1);
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.current-balance-card {
    background: linear-gradient(135deg, rgba(255, 166, 43, 0.2), rgba(255, 140, 0, 0.1));
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.balance-label {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.balance-amount-large {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.balance-note {
    color: var(--gray-color);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group label i {
    color: var(--accent-color);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 166, 43, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.account-types-hint {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.hint-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.hint-badge.mobile {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.hint-badge.bank {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.deduction-calculator {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 166, 43, 0.2);
}

.calc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--gray-color);
}

.calc-row.total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--accent-color);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.calc-value {
    font-weight: 600;
}

.calc-value.fee {
    color: #e74c3c;
}

.calc-value.net {
    color: #2ecc71;
}

.selected-account-card {
    background: rgba(255, 166, 43, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.selected-account-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 12px;
}

.selected-account-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.info-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.info-value {
    color: white;
    font-weight: 500;
}

.withdraw-terms {
    margin: 25px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: white;
    font-size: 0.95rem;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.terms-text {
    line-height: 1.4;
}

.btn-withdraw {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-withdraw:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 166, 43, 0.4);
}

.btn-withdraw:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-color);
}

.withdraw-notes {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.withdraw-notes h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.withdraw-notes ul {
    list-style: none;
    padding: 0;
}

.withdraw-notes li {
    color: var(--gray-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.withdraw-notes li i {
    color: #2ecc71;
    font-size: 0.9rem;
}

/* Receipt Styles */
.receipt {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #ccc;
}

.receipt-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.receipt-id {
    color: #666;
    font-size: 0.9rem;
}

.receipt-body {
    margin-bottom: 25px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.receipt-row.total {
    font-weight: bold;
    color: var(--accent-color);
    border-bottom: none;
    font-size: 1.1rem;
}

.receipt-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 2px dashed #ccc;
    color: #666;
}

.receipt-footer .small {
    font-size: 0.85rem;
    margin-top: 5px;
}

.status-pending {
    color: #f39c12;
    font-weight: bold;
}

/* Bank Details Styling */
.bank-detail-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bank-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.bank-header h4 {
    margin: 0;
    color: var(--accent-color);
}

.bank-info {
    margin-bottom: 20px;
}

.bank-info p {
    margin: 12px 0;
    font-size: 1.1rem;
}

.bank-info strong {
    color: var(--accent-color);
    min-width: 120px;
    display: inline-block;
}

.account-number {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
}

.amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
}

.warning-note {
    background: rgba(255, 166, 43, 0.15);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.95rem;
}

.warning-note i {
    color: var(--accent-color);
    margin-right: 8px;
}

.error-message {
    text-align: center;
    padding: 30px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 10px;
    color: var(--danger-color);
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.error-message h4 {
    margin-bottom: 10px;
}

.error-message p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.payment-method {
    background: var(--secondary-color);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(255, 166, 43, 0.2);
}

.payment-method.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--secondary-color), #1e3a3f);
}

.payment-method img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.method-name {
    display: block;
    font-weight: bold;
    color: white;
    margin: 5px 0;
}

.account-number {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-family: monospace;
    margin: 3px 0;
}

.provider {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Withdrawal dropdown styling */
#withdrawBank optgroup {
    color: var(--accent-color);
    font-weight: bold;
    background: var(--dark-color);
}

#withdrawBank option {
    color: white;
    background: var(--secondary-color);
    padding: 10px;
}

#withdrawBank option:hover {
    background: var(--accent-color);
}

/* Form improvements */
.withdraw-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.current-balance-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    font-size: 1.1rem;
}

.current-balance-info span {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
    margin-left: 10px;
}

.deduction-calculator {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(255, 166, 43, 0.2);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.total {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 2px solid var(--accent-color);
}

/* Form group styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-color);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}



.error-state {
    text-align: center;
    padding: 40px;
    color: var(--danger-color);
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.error-state p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.form-input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    border-color: var(--gray-color);
}

.error-state {
    text-align: center;
    padding: 40px;
    color: var(--danger-color);
}
.error-state i {
    font-size: 3rem;
    margin-bottom: 15px;
}
.error-state p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

/* ==================== BANK ACCOUNT MANAGER (ADMIN) STYLES ==================== */
.banking-settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Settings Header */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 166, 43, 0.3);
}

.settings-header h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-header h2 i {
    font-size: 2rem;
}

.header-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    background: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Add Account Form Section */
.add-account-section {
    background: linear-gradient(135deg, var(--secondary-color), #1a2f3f);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.add-account-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.add-account-section h3 i {
    font-size: 1.5rem;
}

.add-account-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--gray-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 166, 43, 0.3);
}

.btn-secondary {
    background: var(--gray-color);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Accounts List Section */
.accounts-list-section {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 25px;
}

.section-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.section-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.section-tab i {
    font-size: 1.1rem;
}

.section-tab .count {
    background: rgba(255, 166, 43, 0.2);
    color: var(--accent-color);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.section-tab.active {
    color: var(--accent-color);
}

.section-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.account-tab {
    display: none;
}

.account-tab.active {
    display: block;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Account Cards */
.account-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.account-card.active {
    border-left-color: var(--success-color);
}

.account-card.inactive {
    border-left-color: var(--danger-color);
    opacity: 0.7;
}

.account-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.3);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-type-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.account-type-badge.mobile {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.account-type-badge.bank {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.account-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

.account-card-body {
    margin-bottom: 15px;
}

.account-provider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-provider img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 2px;
}

.provider-name {
    font-weight: bold;
    color: var(--accent-color);
}

.account-details {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-label {
    width: 120px;
    color: var(--gray-color);
}

.detail-value {
    flex: 1;
    color: white;
    font-weight: 500;
}

.detail-row.instructions .detail-value {
    color: var(--accent-color);
    font-style: italic;
}

.account-number {
    font-family: monospace;
    letter-spacing: 0.5px;
}

.account-meta {
    color: var(--gray-color);
    font-size: 0.8rem;
    text-align: right;
}

.account-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray-color);
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-icon.delete:hover {
    background: rgba(220, 20, 60, 0.2);
    color: var(--danger-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--gray-color);
    font-size: 1rem;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--accent-color);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .header-stats {
        width: 100%;
        justify-content: space-between;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .accounts-grid {
        grid-template-columns: 1fr;
    }

    .section-tabs {
        flex-direction: column;
        gap: 5px;
    }

    .section-tab {
        width: 100%;
        justify-content: center;
    }

    .section-tab.active::after {
        display: none;
    }

    .section-tab.active {
        background: rgba(255, 166, 43, 0.1);
        border-radius: 5px;
    }
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        width: 100%;
        margin-bottom: 3px;
    }
}

.admin-account-card {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
}
.admin-account-card.active {
    border-left-color: var(--success-color);
}
.admin-account-card.inactive {
    border-left-color: var(--danger-color);
    opacity: 0.7;
}
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.admin-type-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}
.admin-type-badge.mobile {
    background: rgba(52,152,219,0.2);
    color: #3498db;
}
.admin-type-badge.bank {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
}
.admin-provider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.admin-provider img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.admin-detail {
    font-size: 0.9rem;
    margin: 8px 0;
    line-height: 1.5;
}
.admin-instructions {
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(255,166,43,0.1);
    padding: 5px;
    border-radius: 5px;
}
.admin-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Admin Instructions List */
.admin-instructions-container {
    margin-top: 10px;
    background: rgba(255, 166, 43, 0.1);
    border-radius: 5px;
    padding: 10px;
}

.admin-instructions-list {
    margin: 0;
    padding-left: 20px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.admin-instructions-list li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.admin-instructions-list li:last-child {
    margin-bottom: 0;
}

/* Simple instructions fallback */
.admin-instructions {
    margin-top: 10px;
    color: var(--accent-color);
    font-size: 0.9rem;
    background: rgba(255, 166, 43, 0.1);
    padding: 8px;
    border-radius: 5px;
}

.chat-container, .admin-chat-layout { height: 500px; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; background: #f5f5f5; border-radius: 8px; }
.chat-message { margin-bottom: 0.75rem; display: flex; flex-direction: column; }
.chat-message.user .message-content { background: #007bff; color: white; align-self: flex-end; }
.chat-message.admin .message-content { background: #e9ecef; color: black; align-self: flex-start; }
.message-content { max-width: 70%; padding: 0.5rem 1rem; border-radius: 18px; }
.message-time { font-size: 0.7rem; color: #666; margin-top: 0.2rem; }
.chat-input-area { display: flex; gap: 0.5rem; margin-top: 1rem; }
.chat-input-area input { flex: 1; padding: 0.75rem; border: 1px solid #ccc; border-radius: 25px; }
.chat-input-area button { padding: 0.75rem 1.5rem; background: var(--accent-color); color: white; border: none; border-radius: 25px; cursor: pointer; }
.quick-questions { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.quick-question { background: #f0f0f0; border: 1px solid #ddd; border-radius: 20px; padding: 0.5rem 1rem; cursor: pointer; }
.admin-chat-layout { flex-direction: row; }
.chat-list { width: 250px; border-right: 1px solid #ddd; overflow-y: auto; }
.admin-chat-item { padding: 0.75rem; border-bottom: 1px solid #eee; cursor: pointer; }
.admin-chat-item.unread { background: #fff3cd; font-weight: bold; }
.admin-chat-item .chat-user { font-weight: bold; }
.admin-chat-item .chat-last-msg { font-size: 0.85rem; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-chat-item .chat-time { font-size: 0.7rem; color: #999; }
.chat-area { flex: 1; display: flex; flex-direction: column; padding-left: 1rem; }

/* ==================== ADMIN CHAT SECTION ==================== */
.admin-chat-section {
    padding: 1.5rem;
    height: calc(100vh - 200px); /* adjust as needed */
    min-height: 600px;
    background: transparent;
}

.admin-chat-container {
    display: flex;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ---------- SIDEBAR ---------- */
.chat-sidebar {
    width: 300px;
    background: rgba(0,0,0,0.3);
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    color: white;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h3 i {
    color: var(--accent-color);
}

.chat-count {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.loading-chats {
    text-align: center;
    color: var(--gray-color);
    padding: 2rem;
}

.admin-chat-item {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-chat-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(2px);
}

.admin-chat-item.unread {
    background: rgba(255, 215, 0, 0.15);
    border-left-color: var(--accent-color);
}

.admin-chat-item.unread .chat-user {
    color: var(--accent-color);
    font-weight: bold;
}

.chat-user {
    font-size: 0.95rem;
    color: white;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-last-msg {
    font-size: 0.85rem;
    color: var(--gray-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.25rem;
}

/* ---------- MAIN CHAT AREA ---------- */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.2);
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
}

.selected-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1rem;
}

.selected-user-info i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.no-chat-selected {
    text-align: center;
    color: var(--gray-color);
    padding: 3rem;
}

.no-chat-selected i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}


/* Input area */
.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
    transition: border 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--accent-color);
}

.chat-input-area input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-btn {
    background: var(--accent-color);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.send-btn:hover:not(:disabled) {
    background: #ff8c00; /* darker shade */
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quick responses */
.quick-responses {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.quick-response {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-response:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Scrollbar styling */
.chat-list::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-list::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .admin-chat-container {
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 250px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .chat-main {
        height: calc(100% - 250px);
    }
}

.admin-chat-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: background 0.2s;
}

.admin-chat-item:hover {
    background: rgba(255,255,255,0.05);
}

.admin-chat-item.unread {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid var(--accent-color);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-right: 12px;
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
    min-width: 0; /* for text truncation */
}

.chat-user-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-user-name {
    font-weight: bold;
    color: white;
}

.chat-user-id {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--gray-color);
    word-break: break-all;
}

.chat-last-msg {
    font-size: 0.85rem;
    color: var(--gray-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
    
.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 12px;
    flex-shrink: 0;
}

.chat-time {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
}

.unread-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    margin-top: 4px;
}

/* ==================== HAMBURGER MENU ==================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--secondary-color);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: white;
}

.header-left h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

.header-left h2 span {
    color: var(--accent-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
}

.balance-display i {
    color: var(--accent-color);
}

.hamburger-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    transition: transform 0.2s;
}

.hamburger-trigger:hover .profile-avatar {
    transform: scale(1.05);
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: var(--secondary-color);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.hamburger-menu.active {
    right: 0;
}

/* Menu Header */
.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    color: white;
}

.menu-user-details {
    display: flex;
    flex-direction: column;
}

.menu-user-name {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.menu-user-email {
    color: var(--gray-color);
    font-size: 0.85rem;
}

.menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Menu Stats */
.menu-stats {
    display: flex;
    padding: 1.5rem;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-stats .stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.menu-stats .stat-label {
    color: var(--gray-color);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.menu-stats .stat-value {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Menu Items */
.menu-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    margin-bottom: 0.25rem;
    position: relative;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item i:first-child {
    width: 22px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.menu-item span {
    flex: 1;
    font-size: 0.95rem;
}

.menu-badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.logout-item {
    color: #ff6b6b;
}

.logout-item i:first-child {
    color: #ff6b6b;
}

.logout-item:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Menu Footer */
.menu-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-footer p {
    color: var(--gray-color);
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .hamburger-menu {
        width: 85%;
        right: -85%;
    }
    
    .header-left h2 {
        font-size: 1rem;
    }
    
    .balance-display {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.section-header h2 {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: var(--accent-color);
}

.btn-back {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-back:hover {
    background: rgba(255,255,255,0.2);
}

/* ==================== REFERRALS SECTION ==================== */
.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,166,43,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.85rem;
}

.stat-value {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.referral-code-card,
.referral-link-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.referral-code-card h3,
.referral-link-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.code-display,
.link-display {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.code-display span {
    background: rgba(0,0,0,0.3);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--accent-color);
    flex: 1;
}

.link-display input {
    background: rgba(0,0,0,0.3);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: white;
    flex: 1;
    font-size: 0.9rem;
}

.btn-copy {
    background: var(--accent-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: #ff8c00;
}

.code-description {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin: 0;
}

.code-description i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.referrals-list-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.list-header h3 {
    color: white;
    margin: 0;
}

.list-filters select {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
}

.referrals-table {
    width: 100%;
    border-collapse: collapse;
}

.referrals-table th {
    text-align: left;
    padding: 1rem 0.5rem;
    color: var(--gray-color);
    font-weight: normal;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.referrals-table td {
    padding: 1rem 0.5rem;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.no-data {
    text-align: center;
    padding: 3rem !important;
    color: var(--gray-color);
}

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

.no-data p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.no-data small {
    opacity: 0.7;
}

.referral-info-box {
    background: rgba(255,166,43,0.1);
    border: 1px solid rgba(255,166,43,0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.referral-info-box i {
    font-size: 2rem;
    color: var(--accent-color);
}

.referral-info-box h4 {
    color: white;
    margin: 0 0 0.25rem 0;
}

.referral-info-box p {
    color: var(--gray-color);
    margin: 0;
    font-size: 0.9rem;
}

/* ==================== BANK CARDS SECTION ==================== */
.bank-cards-container {
    padding: 0.5rem;
}

.add-card-btn {
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.add-card-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
}

.add-card-btn i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.bank-card {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.bank-card.default {
    border: 2px solid var(--accent-color);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: gold;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.card-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.card-number {
    font-family: monospace;
    font-size: 1.1rem;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.card-details {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 0.9rem;
}

.card-name {
    text-transform: uppercase;
}

.card-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.bank-card:hover .card-actions {
    opacity: 1;
}

.card-action-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

/* ==================== ACCOUNT SETTINGS ==================== */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.settings-tab {
    background: none;
    border: none;
    color: var(--gray-color);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.settings-tab i {
    font-size: 1rem;
}

.settings-tab:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.settings-tab.active {
    background: var(--accent-color);
    color: white;
}

.settings-panel {
    display: none;
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
}

.settings-panel.active {
    display: block;
}

.settings-panel h3 {
    color: white;
    margin: 0 0 1.5rem 0;
}

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.avatar-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    border: black;
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.btn-text {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
}

.btn-text:hover {
    color: white;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    color: var(--gray-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: right;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #ff8c00;
}

/* Password Strength */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
}

.password-strength {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.2s;
}

/* Two Factor */
.two-factor-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.two-factor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.two-factor-info i {
    font-size: 2rem;
    color: var(--accent-color);
}

.two-factor-info h4 {
    color: white;
    margin: 0 0 0.25rem 0;
}

.two-factor-info p {
    color: var(--gray-color);
    margin: 0;
    font-size: 0.9rem;
}

/* Preferences & Notifications */
.preferences-list,
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preference-item,
.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.preference-info h4,
.notification-info h4 {
    color: white;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.preference-info p,
.notification-info p {
    color: var(--gray-color);
    margin: 0;
    font-size: 0.85rem;
}

.preference-select {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.2);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .settings-tabs {
        flex-direction: column;
    }
    
    .settings-tab {
        width: 100%;
        justify-content: center;
    }
    
    .two-factor-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .preference-item,
    .notification-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-badge.pending {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.status-badge.earned {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

/* ==================== REFERRALS MODAL STYLES ==================== */

/* Copy button hover effect */
.btn-copy:hover {
    background: #ff8c00 !important;
    transform: scale(1.05);
    transition: all 0.2s;
}

/* Share button hover effects */
.modal-body button[onclick*="shareReferralLink"] {
    transition: transform 0.2s, opacity 0.2s;
}

.modal-body button[onclick*="shareReferralLink"]:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Stats cards hover effect */
.modal-body>div:first-of-type>div {
    transition: transform 0.2s, border-color 0.2s;
}

.modal-body>div:first-of-type>div:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color) !important;
}

/* Referral table styles */
#referralsTable tbody tr {
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#referralsTable tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-badge.pending {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

/* Earnings amount */
.earnings-amount {
    color: #2ecc71;
    font-weight: bold;
}

/* Scrollbar for referrals list */
#referralsListContainer::-webkit-scrollbar {
    width: 6px;
}

#referralsListContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#referralsListContainer::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

#referralsListContainer::-webkit-scrollbar-thumb:hover {
    background: #ff8c00;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .modal-body>div:first-of-type {
        grid-template-columns: 1fr !important;
    }
    
    .modal-body>div:nth-of-type(2)>div:first-of-type {
        flex-direction: column;
    }
    
    .modal-body>div:nth-of-type(2)>div:first-of-type>div:first-of-type {
        width: 100%;
    }
    
    .modal-body button[onclick*="shareReferralLink"] {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Updated Chat Button - Positioned above bottom bar */
#chat-button {
    position: fixed;
    bottom: 80px;
    right: 25px;
    width: 70px;
    height: 70px;
    z-index: 1001;
    pointer-events: auto;
}

#chat-button .chat-button {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(106, 17, 203, 0.5);
    transition: all 0.3s ease;
    animation: chat-bounce 2s infinite, chat-glow 3s infinite;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    overflow: visible;
}

#chat-button .chat-button:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(106, 17, 203, 0.9);
    animation: none;
}

#chat-button .chat-button i {
    color: white;
    font-size: 28px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    animation: chat-icon-float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

#chat-button .chat-button:hover i {
    animation: none;
    transform: scale(1.15);
}

/* Notification Badge */
#chat-button .chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.8);
    animation: notification-pulse 2s infinite;
}

/* Pulse Effect */
#chat-button .chat-pulse-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(106, 17, 203, 0.3);
    animation: pulse-ring 2s infinite;
    z-index: 1;
}

/* Tooltip */
#chat-button .chat-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#chat-button .chat-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

#chat-button .chat-button:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Animation keyframes */
@keyframes chat-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes chat-glow {
    0%, 100% { box-shadow: 0 6px 25px rgba(106, 17, 203, 0.5); }
    50% { box-shadow: 0 6px 25px rgba(106, 17, 203, 0.8), 0 0 35px rgba(74, 108, 247, 0.7); }
}

@keyframes chat-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes notification-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 71, 87, 0.8);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(255, 71, 87, 1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #chat-button {
        bottom: 70px;
        right: 20px;
        width: 65px;
        height: 65px;
    }
    
    #chat-button .chat-button i {
        font-size: 26px;
    }
    
    #chat-button .chat-tooltip {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    #chat-button {
        bottom: 65px;
        right: 15px;
        width: 60px;
        height: 60px;
    }
    
    #chat-button .chat-button i {
        font-size: 24px;
    }
    
    #chat-button .chat-tooltip {
        display: none; /* Hide tooltip on very small screens */
    }
    
    #chat-button .chat-notification-badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

/* ==================== CHAT MODAL (USING MODAL-OVERLAY) ==================== */

/* Overlay – based on your .modal but renamed */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Modal container – adapts to your existing structure */
.modal-overlay .modal-container {
    background: var(--transition);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: modalSlideUp 0.3s ease;
    overflow: hidden; /* ensure rounded corners */
}

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

/* Modal header – uses your close-modal button */
.modal-overlay .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px 16px 0 0;
}

.modal-overlay .modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-overlay .modal-header h3 i {
    color: var(--accent-color, #ffa62b);
}

/* Your close-modal styles – now applied to the button inside the header */
.close-modal {
    position: relative;       /* changed from absolute to relative so it stays in the header */
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: #113745;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.close-modal:hover {
    color: black;
    background: white;
    transform: rotate(90deg);
}

/* Responsive adjustments for close-modal */
@media (max-width: 768px) {
    .close-modal {
        width: 40px;
        height: 40px;
        font-size: 24px;
        background: #113745;
    }
}

@media (max-width: 480px) {
    .close-modal {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

/* Super Admin Management */
.super-admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.super-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.super-tab.active {
    background: var(--accent-color);
    color: white;
}

.super-tab-content {
    display: none;
}

.super-tab-content.active {
    display: block;
}

.super-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.super-header h3 {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.super-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    display: inline-block;
}

.search-box input {
    padding: 0.5rem 1rem 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.super-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.super-table th {
    text-align: left;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    color: var(--gray-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.super-table td {
    padding: 1rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-badge.blocked {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.action-btn {
    background: none;
    border: none;
    color: var(--gray-color);
    font-size: 1rem;
    cursor: pointer;
    margin: 0 0.25rem;
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--accent-color);
}

.action-btn.delete:hover {
    color: #e74c3c;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button.active {
    background: var(--accent-color);
}

.top-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.top-user-card {
    background: linear-gradient(135deg, rgba(255, 166, 43, 0.1), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 166, 43, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top-user-card .rank {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    opacity: 0.5;
    line-height: 1;
}

.top-user-card .user-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.top-user-card .stats {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
}

.top-user-card .stats .value {
    color: #2ecc71;
    font-weight: bold;
}

.terms-content h4,
.privacy-content h4 {
    color: var(--accent-color);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

.terms-content p,
.privacy-content p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.terms-content,
.privacy-content {
    padding-right: 0.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: right;
}

/* FAQ & About Modal Styles */
.about-content h4,
.faq-item h4 {
    color: var(--accent-color);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

.about-content p,
.faq-item p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-content ul {
    color: var(--gray-color);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Footer as a horizontal menu */
.menu-footer {
    padding: 1.2rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.menu-footer p {
    color: var(--gray-color);
    font-size: 0.8rem;
    margin: 0 0 0.8rem 0;
    opacity: 0.7;
}

.menu-footer .footer-menu {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.03);
    border-radius: 40px;
    padding: 0.25rem;
    margin: 0.5rem 0 0;
}

.menu-footer .footer-menu a {
    color: var(--gray-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    transition: all 0.2s;
    display: inline-block;
}

.menu-footer .footer-menu a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Responsive: stack on very small screens */
@media (max-width: 480px) {
    .menu-footer .footer-menu {
        border-radius: 20px;
    }
    
    .menu-footer .footer-menu a {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

        /* main card wrapper */
        .card-tabs-container {
            max-width: 900px;
            width: 100%;
            background: rgba(255,255,255,0.6);
            backdrop-filter: blur(2px);
            border-radius: 2rem;
            padding: 1.5rem 1.5rem 2rem 1.5rem;
            box-shadow: 0 20px 35px -8px rgba(0,20,45,0.2);
        }

        /* tab list – cards styled as tabs */
        .tab-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 2rem;
            padding: 0 0.25rem;
            list-style: none;
        }

        .tab {
            background: #ffffffcc;
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255,255,255,0.7);
            border-radius: 20px;
            padding: 0.9rem 1.8rem;
            font-weight: 550;
            font-size: 1.1rem;
            color: #1f2a44;
            cursor: pointer;
            box-shadow: 0 6px 12px -6px rgba(0,32,64,0.08), 0 0 0 1px rgba(156,180,204,0.2);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            border: 1px solid transparent;
            background-clip: padding-box;
            user-select: none;
        }

        /* icon mock (just decorative) */
        .tab::before {
            content: "▷";
            font-size: 0.8rem;
            opacity: 0.6;
            transition: opacity 0.2s;
        }

        /* active tab — card becomes more prominent */
        .tab.active {
            background: #ffffff;
            border-color: #ffffff;
            box-shadow: 0 14px 22px -10px #1e3b5b33, 0 0 0 2px #f9c03f, 0 0 0 4px #ffffffd9;
            color: #0f1f33;
            transform: translateY(-2px);
            font-weight: 600;
        }

        .tab.active::before {
            content: "▶";
            opacity: 1;
            color: #e68a2e;
        }

        .tab:hover:not(.active) {
            background: #ffffffee;
            box-shadow: 0 10px 16px -10px #1e3b5b66, 0 0 0 1px #bbd0e4;
            transform: translateY(-1px);
        }

        /* panels container — also card-like */
        .panels-container {
            background: #ffffffd9;
            backdrop-filter: blur(8px);
            border-radius: 28px;
            padding: 2rem 1.8rem;
            box-shadow: inset 0 1px 4px #ffffff, 0 20px 30px -15px #1f3b4d4d, 0 0 0 1px #ffffff inset, 0 0 0 1px #cddbe9;
            border: 1px solid white;
        }

        .tab-panel {
            display: none;
            animation: fade 0.2s ease;
        }

        .tab-panel.active-panel {
            display: block;
        }

        @keyframes fade {
            from { opacity: 0.3; transform: translateY(4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* content inside panels (cards) */
        .card-content {
            background: #fafcff;
            border-radius: 22px;
            padding: 1.8rem;
            border: 1px solid #eef4fa;
            box-shadow: 0 4px 12px rgba(0,30,60,0.03);
        }

        .card-content h3 {
            font-size: 1.7rem;
            font-weight: 500;
            color: #2a3f5e;
            margin-bottom: 1rem;
            border-left: 8px solid #f9c03f;
            padding-left: 1.2rem;
        }

        .card-content p {
            color: #2d405b;
            line-height: 1.6;
            font-size: 1.1rem;
            margin-bottom: 1.2rem;
        }

        .card-content p:last-child {
            margin-bottom: 0;
        }

        .badge-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin: 1.5rem 0 0.5rem;
        }

        .badge {
            background: #eef2f8;
            padding: 0.3rem 1.2rem;
            border-radius: 40px;
            font-size: 0.9rem;
            color: #1e3a5f;
            border: 1px solid #c7d9eb;
            font-weight: 500;
        }

        /* extra micro detail */
        .meta-note {
            margin-top: 1rem;
            font-size: 0.9rem;
            color: #64748b;
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        hr {
            border: none;
            border-top: 2px dotted #b5cfeb;
            margin: 1rem 0;
        }

        /* responsive */
        @media (max-width: 550px) {
            .tab-list {
                gap: 0.5rem;
            }
            .tab {
                padding: 0.7rem 1.2rem;
                font-size: 1rem;
            }
            .panels-container {
                padding: 1.2rem;
            }
        }
        
                /* ---------- slideshow card (announcements only) ---------- */
        .slideshow-card {
            background: #113745;
            backdrop-filter: blur(4px);
            border-radius: 32px;
            padding: 24px 24px 32px 24px;
            box-shadow: 0 25px 40px -10px rgba(0,0,0,0.6);
            border: 1px solid rgba(255,215,0,0.2);
        }
        
        .slideshow-container {
            position: relative;
            width: 100%;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 20px 30px -5px black;
            border: 3px solid goldenrod;
            background: #111;
        }
        .slides {
            display: flex;
            transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.15, 1);
            will-change: transform;
        }
        /* each slide is a flex item – now only announcement slides */
        .slide {
            width: 100%;
            flex-shrink: 0;
            height: 500px;
            background: #1e4d3b; /* fallback */
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        /* announcement slide inner styling */
        .announce-slide {
            background: linear-gradient(145deg, #123127, #0d2b1f);
            padding: 30px;
            flex-direction: column;
            text-align: center;
            gap: 12px;
            border-left: 8px solid goldenrod;
            border-right: 8px solid goldenrod;
        }
        .announce-slide .type-badge {
            background: goldenrod;
            color: #0f2f1e;
            padding: 6px 18px;
            border-radius: 40px;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 0.9rem;
            align-self: flex-start;
            margin-bottom: 8px;
        }
        .announce-slide .title {
            font-size: 2rem;
            font-weight: 700;
            color: #f9e7b3;
            text-shadow: 2px 2px 0 #0f3a24;
        }
        .announce-slide .desc {
            font-size: 1.1rem;
            color: #e0e0c0;
            max-width: 80%;
        }
        .announce-slide .match-teams {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 30px;
            margin: 20px 0;
        }
        .announce-slide .team {
            text-align: center;
        }
        .announce-slide .team img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: #eee;
            object-fit: contain;
            border: 3px solid goldenrod;
        }
        /* fallback for missing logo */
        .announce-slide .team .no-logo {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: #2e5a40;
            border: 3px solid goldenrod;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            font-weight: bold;
            color: darkgoldenrod;
            margin: 0 auto;
        }
        .announce-slide .vs {
            font-size: 2.5rem;
            font-weight: bold;
            color: white;
        }
        .announce-slide .stake-box {
            background: #00000055;
            backdrop-filter: blur(4px);
            padding: 12px 25px;
            border-radius: 50px;
            font-size: 1.2rem;
            border: 1px solid goldenrod;
        }
        .announce-slide .match-time {
            background: #2e5a40;
            padding: 8px 20px;
            border-radius: 30px;
        }
        .announce-slide a {
            color: goldenrod;
            word-break: break-all;
        }
        /* placeholder slide when no announcements */
        .placeholder-slide {
            background: #113745;
            flex-direction: column;
            font-size: 2rem;
            color: darkgoldenrod;
            text-align: center;
            gap: 20px;
        }
        /* navigation arrows & dots */
        .prev, .next {
            position: absolute; top: 50%; transform: translateY(-50%);
            background: rgba(0, 20, 10, 0.7); backdrop-filter: blur(4px);
            color: darkgoldenrod; border: 2px solid darkgoldenrod; font-size: 28px;
            font-weight: bold; padding: 18px 16px 18px 14px; cursor: pointer;
            border-radius: 60px; width: 60px; height: 60px; display: flex;
            align-items: center; justify-content: center; transition: all 0.2s;
            z-index: 10; line-height: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        }
        .prev { left: 20px; padding-right: 18px; }
        .next { right: 20px; padding-left: 18px; }
        .prev:hover, .next:hover { background: darkgoldenrod; color: #0a2f1d; border-color: white; transform: translateY(-50%) scale(1.07); box-shadow: 0 0 20px darkgoldenrod; }
        .dots-container { text-align: center; position: absolute; bottom: 20px; left: 0; right: 0; z-index: 10; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 6px 12px; }
        .dot { width: 16px; height: 16px; background-color: rgba(255,255,240,0.5); backdrop-filter: blur(2px); border-radius: 50%; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; box-shadow: 0 2px 6px black; }
        .dot.active { background-color: darkgoldenrod; transform: scale(1.3); border-color: white; box-shadow: 0 0 15px goldenrod; }
        .footnote { text-align: center; margin-top: 20px; color: #d1d1b8; font-size: 0.95rem; font-style: italic; }

        /* ---------- user announcement grid (cards) ---------- */
        .announcement-grid {
            display: flex;
            flex-direction: column;
            gap: 20px;
            background: rgba(0,0,0,0.3);
            backdrop-filter: blur(8px);
            border-radius: 32px;
            padding: 24px;
            border: 1px solid #f5c54266;
        }
        .section-title {
            color: #f9e7b3;
            font-size: 2rem;
            font-weight: 600;
            border-left: 10px solid #f5c542;
            padding-left: 20px;
            margin-bottom: 10px;
            text-shadow: 2px 2px 0 #1a4d34;
        }
        .cards-container {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
            justify-content: center;
        }
        .announce-card {
            background: #fefef0;
            border-radius: 28px;
            padding: 20px;
            width: 320px;
            box-shadow: 0 15px 25px -8px black;
            border: 2px solid #f5c542;
            transition: 0.2s;
            color: #1e2f24;
            display: flex;
            flex-direction: column;
        }
        .announce-card.inactive { opacity: 0.5; filter: grayscale(0.5); border-color: #888; }
        .card-type { font-size: 0.8rem; text-transform: uppercase; background: #f5c542; display: inline-block; padding: 4px 12px; border-radius: 40px; align-self: flex-start; margin-bottom: 10px; font-weight: bold; }
        .card-title { font-size: 1.5rem; font-weight: 700; margin: 5px 0; }
        .card-desc { margin: 10px 0; color: #2a3a2e; }
        .match-teams { display: flex; align-items: center; justify-content: space-around; margin: 15px 0; }
        .team { text-align: center; }
        .team img { width: 50px; height: 50px; object-fit: contain; border-radius: 50%; background: #ddd; }
        .team .no-logo-small {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #113745;
            border: 2px solid goldenrod;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            font-weight: bold;
            color: white;
            margin: 0 auto;
        }
        .vs { font-size: 1.8rem; font-weight: bold; color: #113745; }
        .stake-info { background: #e9dbbd; padding: 10px; border-radius: 20px; text-align: center; }
        .media-url { margin-top: 10px; font-style: italic; word-break: break-all; }
        .match-time { font-weight: bold; background: #333; color: white; padding: 5px; border-radius: 20px; text-align: center; margin: 10px 0; }

        /* ---------- admin panel (unchanged) ---------- */
        .admin-panel {
            background: #113745;
            border-radius: 40px 40px 30px 30px;
            padding: 24px;
            border: 3px solid white;
            box-shadow: inset 0 0 20px #00000055;
        }
        .admin-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
        .admin-header h2 { color: white; font-size: 2rem; margin: 0; }
        .toggle-btn { font-size: 2rem; background: none; border: none; color: white; cursor: pointer; padding: 0 15px; }
        .admin-content { margin-top: 25px; display: block; }
        .admin-content.hidden { display: none; }
        .row-2 { display: flex; gap: 20px; flex-wrap: wrap; }
        .row-2 > div { flex: 1; min-width: 200px; }
        .btn-small { padding: 8px 16px; font-size: 0.9rem; box-shadow: 0 3px 0 goldenrod; }
        .admin-list { margin-top: 40px; display: flex; flex-direction: column; gap: 15px; }
        .admin-item { background: #113745; padding: 20px; border-radius: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border: 1px solid goldenrod; }
        .admin-item-info { flex: 2; min-width: 250px; color: #efefcf; }
        .admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
        .active-badge { background: var(--success-color); color: white; padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; margin-left: 10px; }
        .inactive-badge { background: var(--danger-color); color: white; padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; }
        @media (max-width: 700px) {
            .slide { height: 350px; }
            .prev, .next { width: 48px; height: 48px; font-size: 24px; }
        }
        
        .announce-image, .slide-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    object-fit: cover;
    margin: 10px 0;
    border: 2px solid #f5c542;
}

.announce-video, .slide-video {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    margin: 10px 0;
}

.video-link, .slide-video-link {
    display: inline-block;
    background: #f5c542;
    color: #0a2f1d;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
}

.slide-media {
    text-align: center;
}

.announcement-media, .slide-media {
    text-align: center;
    margin: 12px 0;
}

.announcement-media img,
.announcement-media video,
.announcement-media iframe {
    max-width: 100%;
    max-height: 200px; /* adjust as needed */
    border-radius: 8px;
    border: 2px solid #f5c542;
    object-fit: cover;
}

.slide-media img,
.slide-media video,
.slide-media iframe {
    width: 100%;
    height: 300px; /* adjust for slideshow height */
    object-fit: cover;
    border-radius: 12px;
}

/* For YouTube iframes, maintain aspect ratio */
.slide-media iframe {
    height: 300px;
}

.announcement-media iframe {
    height: 200px;
}

.modal-body p {
    color: white;               /* matches modal text color */
    margin-bottom: 1rem;        /* consistent spacing */
    line-height: 1.6;           /* improves readability */
    font-size: 0.95rem;         /* optional – adjust as needed */
}

/* Language Switcher Styles */
.language-switcher {
    display: inline-block;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.lang-btn i {
    font-size: 1rem;
}

.lang-btn-dashboard {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.lang-btn-dashboard:hover {
    background: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 166, 43, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .lang-btn-dashboard {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* Language transition */
.language-changing {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

/* Translation classes for dynamic content */
[data-translate] {
    transition: opacity 0.2s ease;
}

/* ==================== WELCOME ANIMATION OVERLAY ==================== */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--transition); /* same as your example */
    z-index: 10000; /* on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-overlay.active {
    opacity: 1;
    visibility: visible;
}

.welcome-container {
    text-align: center;
    padding: 20px;
}

.welcome-logo {
    width: 400px;
    max-width: 90vw;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transform: scale(0.8);
    animation: welcomeAnim 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

.welcome-text {
    color: white;
    font-size: 2rem;
    margin-top: 30px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeIn 1.2s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes welcomeAnim {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Optional hover effect (won't be visible long) */
.welcome-logo:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 35px rgba(0,0,0,0.4);
}

  /* Logo Section Container - No background or frame */
  .logo-section {
    display: flex;
    justify-content: center;    /* Centers horizontally */
    align-items: center;        /* Centers vertically */
    text-align: center;         /* Fallback centering */
    margin: 0 auto;             /* Center the section itself */
    width: 100%;
    box-sizing: border-box;
  }

  /* Logo Image - Clean and centered */
  .logo-image {
    width: 150px;
    max-width: 80%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Simple hover effect - optional */
  .logo-image:hover {
    transform: scale(1.05);     /* Simple scale on hover */
    /* Removed all other hover effects */
  }

  /* Mobile devices */
  @media (max-width: 480px) {
    .logo-image {
      width: 120px;
      max-width: 90%;
    }
  }

  /* Large screens */
  @media (min-width: 1200px) {
    .logo-image {
      width: 180px;
    }
  }
  
  /* ===== ENHANCED RESPONSIVE DESIGN ===== */
/* Ensures perfect adaptation from 320px to 4K+ screens */

/* Ultra-small devices (≤360px) */
@media (max-width: 360px) {
  /* Reduce base font size */
  body { font-size: 14px; }

  /* Make all headings and text wrap properly */
  h1, h2, h3, h4, h5, h6, p, span, a, button, 
  .card-title, .team-name, .nav-label, .tab-btn {
    word-break: break-word;
    hyphens: auto;
  }

  /* Reduce spacing in containers */
  .container, .dashboard-cards, .stats-grid,
  .vip-bet-slip, .admin-grid, .accounts-grid {
    gap: 0.5rem;
    padding: 0.5rem;
  }

  /* Force tables to scroll horizontally */
  .transactions-table, .my-bets-table, .referrals-table, .admin-table,
  .transactions-table-container, .my-bets-table table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.8rem;
  }

  /* Make all images and media responsive */
  img, svg, video, iframe {
    max-width: 100%;
    height: auto;
  }

  /* Increase touch target size for interactive elements */
  .btn, .action-btn, .nav-item, .tab-btn, .switch-btn,
  .menu-item, .sidebar-item, .bottom-nav .nav-item {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 0.5rem;
  }

  /* Stack rows on small screens */
  .row-inputs, .form-row, .action-buttons, .deposit-methods,
  .wallet-actions, .quick-actions .action-buttons {
    grid-template-columns: 1fr !important;
    flex-direction: column;
  }

  /* Reduce card padding */
  .card, .match-card, .vip-bet-slip, .modal-content,
  .profile-card, .bank-detail-card, .settings-card {
    padding: 1rem;
  }

  /* Make VIP badge and balance more compact */
  .vip-badge, .balance-card {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Hide secondary info if needed, but keep all functionality */
  .transaction-meta, .match-time, .card-subtitle {
    font-size: 0.7rem;
  }

  /* Ensure modals fit screen */
  .modal-content {
    width: 95%;
    max-height: 85vh;
    padding: 1rem;
  }

  /* Adjust team logos and names */
  .team-logo {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .team-name {
    font-size: 0.9rem;
  }
}

/* Small phones (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
  body { font-size: 15px; }

  .container { padding: 0.75rem; }



  .dashboard-cards, .stats-grid { grid-template-columns: 1fr; }

  .team-logo { width: 50px; height: 50px; }

  /* Adjust forms */
  .form-row, .row-inputs { grid-template-columns: 1fr; }

  /* VIP bet slip on mobile */
  .vip-bet-slip {
    position: relative;
    top: auto;
    max-height: none;
  }

  .selected-bets-grid { grid-template-columns: 1fr; }

  /* Bottom navigation spacing */
  .bottom-nav .nav-label { font-size: 0.7rem; }
}

/* Mobile landscape & small tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container { padding: 1rem; }

  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }



  .accounts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-inputs, .form-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Improve table readability */
  .transactions-table td, .transactions-table th {
    padding: 0.5rem;
  }

  .team-logo {
    width: 55px;
    height: 55px;
  }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 960px;
    margin: 0 auto;
  }

  .dashboard-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }



  .accounts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Adjust font sizes */
  .card-value {
    font-size: 1.8rem;
  }
}

/* Desktop standard (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .dashboard-cards {
    grid-template-columns: repeat(4, 1fr);
  }



  .accounts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Slightly larger fonts for readability */
  body {
    font-size: 16px;
  }
}

/* Large desktops (1441px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
  .container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .dashboard-cards {
    grid-template-columns: repeat(4, 1fr);
  }


  .accounts-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  body {
    font-size: 17px;
  }

  .card-value {
    font-size: 2.2rem;
  }
}

/* Ultra-wide screens (1921px and above) */
@media (min-width: 1921px) {
  .container {
    max-width: 1600px;
    margin: 0 auto;
  }

  .dashboard-cards {
    grid-template-columns: repeat(5, 1fr);
  }



  .accounts-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  body {
    font-size: 18px;
  }

  .card-value {
    font-size: 2.5rem;
  }

  .team-logo {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}

/* ===== SAFE AREA INSETS FOR MODERN DEVICES ===== */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-content {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .bottom-nav, .sidebar, .hamburger-menu, .chat-button,
  .btn, .action-btn, .nav-tabs, .vip-bet-slip {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .match-card, .card, .profile-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}

/* ===== HYBRID RESPONSIVE APPROACH ===== */
/* Uses both min-width and max-width queries for comprehensive coverage */

/* Base styles (default for all devices) */
:root {
  --container-padding: 1rem;
  --base-font-size: 16px;
}

body {
  font-size: var(--base-font-size);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  margin-left: auto;
  margin-right: auto;
}

/* Ultra-small devices (≤ 360px) – ensure everything fits */
@media (max-width: 360px) {
  :root {
    --container-padding: 0.75rem;
    --base-font-size: 14px;
  }

  /* Force all flex/grid containers to wrap and not overflow */
  .dashboard-cards,
  .stats-grid,
  .accounts-grid,
  .admin-grid,
  .action-buttons,
  .deposit-methods,
  .wallet-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem;
  }

  .dashboard-cards > *,
  .stats-grid > *,
  .accounts-grid > *,
  .admin-grid > * {
    flex: 1 1 100%;
    min-width: 100%;
  }

  /* Make tables scrollable horizontally */
  .transactions-table-container,
  .my-bets-table,
  .referrals-table,
  .admin-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
  }

  /* Increase tap targets */
  button, .btn, .nav-item, .menu-item, .sidebar-item,
  .action-btn, .tab-btn, .switch-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Small phones (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --base-font-size: 15px;
  }

  .dashboard-cards,
  .stats-grid,
  .accounts-grid,
  .admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .row-inputs,
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Larger phones & small tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }



  .accounts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-inputs,
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .dashboard-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }



  .accounts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small desktops (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .container {
    max-width: 1140px;
  }

  .dashboard-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }



  .accounts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium desktops (1281px - 1440px) */
@media (min-width: 1281px) and (max-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .dashboard-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }



  .accounts-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large desktops (1441px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
  :root {
    --base-font-size: 17px;
  }

  .container {
    max-width: 1600px;
  }

  .dashboard-cards {
    grid-template-columns: repeat(5, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }



  .accounts-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ultra-wide screens (1921px and above) */
@media (min-width: 1921px) {
  :root {
    --base-font-size: 18px;
  }

  .container {
    max-width: 1800px;
  }

  .dashboard-cards {
    grid-template-columns: repeat(6, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }



  .accounts-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* High-DPI (Retina) screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper images and borders if needed */
  .match-card,
  .card,
  .profile-card {
    border-width: 0.5px;
  }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .bottom-nav {
    position: relative;
    margin-top: 1rem;
  }

  body {
    padding-bottom: 0;
  }

  .vip-bet-slip,
  .modal-content {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* Ensure modals never overflow */
.modal-overlay .modal-container {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Fix for extremely narrow windows (e.g., split screen on tablets) */
@media (max-width: 400px) {
  .team-logo {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .odds-box {
    padding: 0.5rem;
  }

  .vip-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Print styles – clean and readable */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .bottom-nav,
  .sidebar,
  .hamburger-menu,
  .chat-button,
  .btn,
  .action-btn,
  .nav-tabs,
  .vip-bet-slip,
  .modal-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    padding: 0.5in;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  .container {
    max-width: 100%;
    width: 100%;
  }
}

/* ===== LOGIN FORM CENTERING & COMPACTNESS (NO HIDING) ===== */

/* For screens smaller than 768px (tablets & phones) */
@media (max-width: 768px) {
    /* Stack brand and form vertically */
    .auth-container {
        flex-direction: column;
        min-height: auto;
        margin: 20px;
        border-radius: 16px;
    }

    /* Brand section stays visible but more compact */
    .brand-section {
        padding: 25px;
        text-align: center;
    }

    .brand-section .logo {
        justify-content: center;
    }

    .brand-section h2 {
        font-size: 1.8rem;
    }

    .brand-section p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .features {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .feature {
        width: calc(50% - 15px); /* Two features per row */
        margin: 0;
        padding: 12px;
    }

    /* Form section – centered vertically and horizontally */
    .form-section {
        padding: 30px 25px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form-container {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    /* Form elements sizing */
    .form-switcher {
        margin-bottom: 20px;
    }

    .switch-btn {
        padding: 10px;
        font-size: 15px;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .input-group input,
    .input-group select,
    .btn {
        padding: 12px;
    }
}

/* For very small phones (≤480px) */
@media (max-width: 480px) {
    .auth-container {
        margin: 10px;
    }

    .brand-section {
        padding: 20px;
    }

    .brand-section h2 {
        font-size: 1.5rem;
    }

    .brand-section p {
        font-size: 0.9rem;
    }

    .feature {
        width: 100%; /* Stack features vertically */
    }

    .form-section {
        padding: 20px 15px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .form-header p {
        font-size: 0.9rem;
    }

    .row-inputs {
        grid-template-columns: 1fr; /* Stack two‑column inputs */
        gap: 10px;
    }

    .btn {
        padding: 12px;
        font-size: 0.95rem;
    }

    .terms-container label {
        font-size: 0.85rem;
    }
}

/* For extremely small devices (≤360px) */
@media (max-width: 360px) {
    .brand-section {
        padding: 15px;
    }

    .brand-section h2 {
        font-size: 1.3rem;
    }

    .feature {
        padding: 10px;
    }

    .feature i {
        font-size: 1.2rem;
    }

    .feature span {
        font-size: 0.85rem;
    }

    .form-section {
        padding: 15px 10px;
    }

    .form-switcher {
        padding: 3px;
    }

    .switch-btn {
        padding: 8px 5px;
        font-size: 14px;
    }

    .form-header h2 {
        font-size: 1.3rem;
    }

    .input-group input,
    .input-group select {
        padding: 10px;
    }
}

/* ===== CENTER FORM ON SMALL SCREENS ===== */

/* For screens smaller than 768px */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;          /* Stack brand and form */
        min-height: 100dvh;              /* Full viewport height */
        margin: 0;                        /* Remove outer margin */
        border-radius: 0;                  /* Optional: remove border-radius for edge-to-edge */
    }

    .brand-section {
        flex: 0 0 auto;                    /* Take only needed height */
        padding: 30px 20px;
        text-align: center;
    }

    .brand-section .logo {
        justify-content: center;
    }

    .brand-section h2 {
        font-size: 1.8rem;
    }

    .brand-section p {
        font-size: 1rem;
    }

    .features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .feature {
        width: calc(50% - 10px);           /* Two per row */
        margin: 0;
        padding: 12px;
    }

    .form-section {
        flex: 1 1 auto;                     /* Take remaining vertical space */
        display: flex;
        align-items: center;                /* Center vertically */
        justify-content: center;            /* Center horizontally */
        padding: 20px;
        background: var(--light-color);     /* Keep your background */
    }

    .form-container {
        width: 100%;
        max-width: 450px;                    /* Limit form width */
        margin: 0 auto;                       /* Center horizontally fallback */
    }

    /* Optional: adjust form elements for better fit */
    .form-switcher {
        margin-bottom: 20px;
    }

    .switch-btn {
        padding: 10px;
        font-size: 15px;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .input-group input,
    .input-group select,
    .btn {
        padding: 12px;
    }
}

/* For very small phones (≤480px) */
@media (max-width: 480px) {
    .brand-section {
        padding: 20px 15px;
    }

    .brand-section h2 {
        font-size: 1.5rem;
    }

    .feature {
        width: 100%;                         /* Stack features */
    }

    .form-section {
        padding: 15px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .row-inputs {
        grid-template-columns: 1fr;           /* Stack two‑column inputs */
        gap: 10px;
    }

    .btn {
        font-size: 0.95rem;
    }
}

/* ===== ADAPTIVE LOGO ===== */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0; /* optional spacing */
}

.logo-image {
    width: 150px;            /* base size */
    max-width: 80%;          /* relative to container */
    height: auto;            /* maintain aspect ratio */
    display: block;
    margin: 0 auto;
    object-fit: contain;     /* prevent distortion */
    transition: width 0.2s ease; /* smooth scaling */
}

/* Medium devices (tablets, 768px and below) */
@media (max-width: 768px) {
    .logo-image {
        width: 130px;
        max-width: 70%;
    }
}

/* Small devices (phones, 480px and below) */
@media (max-width: 480px) {
    .logo-image {
        width: 110px;
        max-width: 60%;
    }
}

/* Extra small devices (≤360px) */
@media (max-width: 360px) {
    .logo-image {
        width: 90px;
        max-width: 50%;
    }
}

/* Large desktops (≥1200px) */
@media (min-width: 1200px) {
    .logo-image {
        width: 180px;
        max-width: 90%;
    }
}

/* Ultra-wide screens (≥1920px) */
@media (min-width: 1920px) {
    .logo-image {
        width: 220px;
    }
}

/* Landscape orientation on short screens (e.g., mobile landscape) */
@media (max-height: 600px) and (orientation: landscape) {
    .logo-image {
        max-height: 80px;    /* limit height, let width auto */
        width: auto;
        max-width: 50%;
    }
}

/* ===== BOTTOM NAVIGATION BAR - RESPONSIVE ===== */

/* Base styles (all devices) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-decoration: none;
    color: var(--gray-color);
    min-height: 44px; /* Touch-friendly minimum */
    min-width: 44px;
}

.nav-icon {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .bottom-nav {
        padding: 10px 20px;
    }

    .nav-item {
        padding: 10px 16px;
        flex-direction: row; /* Horizontal layout on tablets */
        gap: 8px;
        justify-content: center;
    }

    .nav-icon {
        font-size: 1.2rem;
    }

    .nav-label {
        font-size: 0.85rem;
    }
}

/* Desktop (1025px and above) */
@media (min-width: 1025px) {
    .bottom-nav {
        padding: 12px 40px;
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 50px;
        bottom: 20px;
        width: fit-content;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }

    .nav-item {
        padding: 10px 24px;
        flex-direction: row;
        gap: 10px;
        min-width: auto;
    }

    .nav-icon {
        font-size: 1.2rem;
    }

    .nav-label {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .nav-item:hover {
        background: rgba(74, 111, 165, 0.1);
        transform: translateY(-2px);
    }

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

/* Large screens (1441px and above) */
@media (min-width: 1441px) {
    .bottom-nav {
        max-width: 1400px;
        padding: 14px 50px;
        bottom: 30px;
    }

    .nav-item {
        padding: 12px 30px;
    }

    .nav-icon {
        font-size: 1.3rem;
    }

    .nav-label {
        font-size: 1rem;
    }
}

/* Very small devices (≤480px) */
@media (max-width: 480px) {
    .bottom-nav {
        padding: 5px 2px;
    }

    .nav-item {
        padding: 6px 4px;
        gap: 2px;
    }

    .nav-icon {
        font-size: 1.1rem;
    }

    .nav-label {
        font-size: 0.65rem;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Ultra-small devices (≤360px) */
@media (max-width: 360px) {
    .nav-item {
        padding: 4px 2px;
    }

    .nav-icon {
        font-size: 1rem;
    }

    .nav-label {
        font-size: 0.6rem;
        max-width: 45px;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .bottom-nav {
        position: relative; /* Change from fixed to avoid covering content */
        margin-top: 20px;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* ===== CHAT BUTTON - RESPONSIVE ===== */

/* Base styles */
#chat-button {
    position: fixed;
    bottom: 90px; /* Above bottom nav */
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 1001;
    pointer-events: auto;
}

.chat-button {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    outline: none;
    animation: chat-pulse 2s infinite;
}

.chat-button i {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: none;
}

.chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.5);
}

.chat-pulse-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(74, 111, 165, 0.4);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes chat-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(74, 111, 165, 0.5);
    }
    50% {
        box-shadow: 0 8px 25px rgba(74, 111, 165, 0.8);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Tooltip - shown on hover */
.chat-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.chat-button:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-2px);
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    #chat-button {
        bottom: 100px;
        right: 25px;
        width: 65px;
        height: 65px;
    }

    .chat-button i {
        font-size: 26px;
    }
}

/* Desktop (1025px and above) */
@media (min-width: 1025px) {
    #chat-button {
        bottom: 100px;
        right: 30px;
        width: 70px;
        height: 70px;
    }

    .chat-button i {
        font-size: 28px;
    }

    .chat-button:hover {
        transform: scale(1.15) rotate(5deg);
    }
}

/* Large screens (1441px and above) */
@media (min-width: 1441px) {
    #chat-button {
        bottom: 120px;
        right: 50px;
        width: 80px;
        height: 80px;
    }

    .chat-button i {
        font-size: 32px;
    }

    .chat-tooltip {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Very small devices (≤480px) */
@media (max-width: 480px) {
    #chat-button {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .chat-button i {
        font-size: 20px;
    }

    .chat-notification-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .chat-tooltip {
        display: none; /* Hide tooltip on very small screens */
    }
}

/* Ultra-small devices (≤360px) */
@media (max-width: 360px) {
    #chat-button {
        bottom: 75px;
        right: 10px;
        width: 45px;
        height: 45px;
    }

    .chat-button i {
        font-size: 18px;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #chat-button {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .chat-button i {
        font-size: 18px;
    }
}

/* Devices with bottom safe areas (notched phones) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    #chat-button {
        bottom: max(90px, calc(env(safe-area-inset-bottom) + 80px));
    }

    @media (max-width: 480px) {
        #chat-button {
            bottom: max(80px, calc(env(safe-area-inset-bottom) + 70px));
        }
    }
}

/* Animation for active nav item */
.nav-item.active {
    color: var(--primary-color);
    background: rgba(74, 111, 165, 0.1);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

/* Add this to your HTML - ensures bottom padding for content */
body {
    padding-bottom: 70px; /* Space for bottom nav */
}

@media (min-width: 1025px) {
    body {
        padding-bottom: 40px; /* Less space when nav is floating */
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 65px; /* Adjusted for smaller nav */
    }
}

/* Logo container styles */
.logo-container {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid goldenrod;
}

.fallback-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #2e5a40;
    border: 3px solid goldenrod;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: darkgoldenrod;
}

/* For small cards */
.fallback-logo-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #113745;
    border: 2px solid goldenrod;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

/* Ensure the fallback is centered */
.team {
    text-align: center;
    min-width: 80px;
}

.announce-slide .team {
    min-width: 100px;
}


/* ===== USER DASHBOARD - COMPLETE RESPONSIVE DESIGN ===== */

/* ---------- DASHBOARD HEADER ---------- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-header h2 i {
    color: var(--accent-color);
}

.dashboard-header p {
    color: var(--gray-color);
    margin: 5px 0 0 0;
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.balance-display {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

/* ---------- WALLET CONTAINER ---------- */
.wallet-container {
    background: linear-gradient(135deg, var(--secondary-color), #1a2f3f);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.wallet-header h2 {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.balance-card {
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    padding: 15px 25px;
    border-radius: 15px;
    color: white;
    text-align: right;
    min-width: 200px;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.balance-amount {
    font-size: 1.8rem;
    font-weight: bold;
}

/* ---------- WALLET TABS ---------- */
.wallet-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.wallet-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 30px;
    white-space: nowrap;
}

.wallet-tab.active {
    color: var(--accent-color);
    background: rgba(255,166,43,0.1);
}

.wallet-tab.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
}

.wallet-tab-content {
    display: none;
}

.wallet-tab-content.active {
    display: block;
}

/* ---------- DEPOSIT STEPS ---------- */
.deposit-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    gap: 10px;
}

.deposit-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: var(--secondary-color);
    padding: 0 15px;
    flex: 1;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--accent-color);
    transform: scale(1.1);
}

.step-title {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.step.active .step-title {
    color: var(--accent-color);
}

/* ---------- PAYMENT METHODS GRID ---------- */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.payment-method.selected {
    border-color: var(--accent-color);
    background: rgba(255,166,43,0.1);
}

.payment-method img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.payment-method span {
    display: block;
    font-size: 0.9rem;
    color: white;
}

/* ---------- FORMS ---------- */
.withdraw-form {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 25px;
    max-width: 600px;
    margin: 0 auto;
}

.withdraw-form h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.current-balance-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    color: white;
    font-size: 1.1rem;
}

.current-balance-info span {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
    margin-left: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-color);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border: 2px solid transparent;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0,0,0,0.4);
}

.form-input[readonly] {
    background: rgba(255,255,255,0.05);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ---------- DEDUCTION CALCULATOR ---------- */
.deduction-calculator {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(255,166,43,0.2);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-color);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.total {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 2px solid var(--accent-color);
}

/* ---------- ACCOUNTS MANAGEMENT ---------- */
.accounts-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.add-account-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
}

.add-account-card h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-accounts-list {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
}

.user-accounts-list h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}




/* ---------- BETTING TABLE ---------- */
.my-bets-table {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.my-bets-table th {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    text-align: left;
    color: var(--gray-color);
    font-weight: 600;
}

.my-bets-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
}

/* ---------- PROFILE SECTION ---------- */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.profile-details p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-color);
}

.profile-details i {
    color: var(--accent-color);
    width: 20px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,166,43,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ---------- SLIDESHOW CARD ---------- */
.slideshow-card {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    border-radius: 32px;
    padding: 24px;
    border: 1px solid rgba(255,215,0,0.2);
}

.slideshow-container {
    position: relative;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    background: #111;
    margin: 15px 0;
}

/* ---------- ANNOUNCEMENT GRID ---------- */
.announcement-grid {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 24px;
    border: 1px solid var(--accent-color);
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.announce-card {
    background: #fefef0;
    border-radius: 28px;
    padding: 20px;
    width: 320px;
    border: 2px solid var(--accent-color);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }
    

    
    .profile-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {

    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .dashboard-header h2 {
        font-size: 1.5rem;
    }
    
    .wallet-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .balance-card {
        width: 100%;
        text-align: left;
    }
    

    
    .accounts-management {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .deposit-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .deposit-steps::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 15px;
        padding: 10px;
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
    }
    
    .step-number {
        margin-bottom: 0;
    }
    
    .my-bets-table {
        font-size: 0.9rem;
    }
    
    .my-bets-table th,
    .my-bets-table td {
        padding: 10px;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-header h2 {
        font-size: 1.3rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .wallet-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .wallet-tab {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
    }
    
    .wallet-tab.active::after {
        display: none;
    }
    
    .wallet-tab.active {
        background: rgba(255,166,43,0.1);
        border-left: 4px solid var(--accent-color);
    }
    

    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accounts-management {
        grid-template-columns: 1fr;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .my-bets-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .balance-display {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Mobile (≤575px) */
@media (max-width: 575px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dashboard-header h2 {
        font-size: 1.2rem;
    }
    
    .header-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .balance-display {
        width: 100%;
        justify-content: center;
    }
    
    .hamburger-trigger {
        width: 100%;
    }
    
    .wallet-container {
        padding: 15px;
    }
    
    .wallet-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .balance-card {
        text-align: center;
        padding: 12px;
    }
    
    .balance-amount {
        font-size: 1.5rem;
    }
    
    .wallet-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .wallet-tab {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .deposit-steps {
        flex-direction: column;
        gap: 10px;
    }
    
    .deposit-steps::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 10px;
        padding: 10px;
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }
    
    .step-title {
        font-size: 0.85rem;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .payment-method {
        padding: 15px 5px;
    }
    
    .payment-method img {
        width: 45px;
        height: 45px;
    }
    
    .payment-method span {
        font-size: 0.8rem;
    }
    
    .withdraw-form {
        padding: 15px;
    }
    
    .accounts-management {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .add-account-card,
    .user-accounts-list {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-info h3 {
        font-size: 1.4rem;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .slideshow-card {
        padding: 15px;
    }
    
    .slideshow-container {
        border-radius: 20px;
    }
    
    .announcement-grid {
        padding: 15px;
    }
    
    .announce-card {
        width: 100%;
        padding: 15px;
    }
    
    .my-bets-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.85rem;
    }
    
    .my-bets-table th,
    .my-bets-table td {
        padding: 10px 8px;
    }
    
  
    
    .match-card {
        margin: 0;
    }
}

/* Ultra Small Devices (≤400px) */
@media (max-width: 400px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-method {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        padding: 12px;
    }
    
    .payment-method img {
        margin-bottom: 0;
    }
    
    .wallet-tab {
        font-size: 0.9rem;
    }
    
    .balance-amount {
        font-size: 1.3rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-title {
        font-size: 0.8rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .dashboard-header {
        margin-bottom: 15px;
    }
    
    .wallet-container {
        padding: 15px;
    }
    
    .deposit-steps {
        flex-direction: row;
    }
    
    .step {
        padding: 5px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Safe Area Insets */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .main-content {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--accent-color);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Empty States */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-color);
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}



/* Loading States */
.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--accent-color);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Empty States */
.no-data {
    text-align: center;
    padding: 40px;
    color: var(--gray-color);
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ===== COMPLETE RESPONSIVE CARD SYSTEM ===== */

/* ---------- BASE CARD STYLES ---------- */
.card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(255,166,43,0.2);
}

/* ---------- DASHBOARD CARDS ---------- */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, var(--secondary-color), #1a2f3f);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255,166,43,0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent-color), #ff8c00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.card-value {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 5px;
}

.card-change {
    color: var(--success-color);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---------- STATS CARDS ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,166,43,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.stat-value {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}



/* ---------- PAYMENT METHOD CARDS ---------- */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.payment-method {
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-method:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255,166,43,0.05);
}

.payment-method.selected {
    border-color: var(--accent-color);
    background: rgba(255,166,43,0.1);
}

.payment-method img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 5px;
}

.payment-method span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- ACCOUNT CARDS ---------- */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.account-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 16px;
    padding: 20px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.account-card.active {
    border-left-color: var(--success-color);
}

.account-card.inactive {
    border-left-color: var(--danger-color);
    opacity: 0.7;
}

.account-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.account-type-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.account-type-badge.mobile {
    background: rgba(52,152,219,0.2);
    color: #3498db;
}

.account-type-badge.bank {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
}

.account-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.account-provider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.account-provider img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 2px;
}

.provider-name {
    color: var(--accent-color);
    font-weight: bold;
}

.account-details {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-label {
    width: 100px;
    color: var(--gray-color);
}

.detail-value {
    flex: 1;
    color: white;
}

.account-number {
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ---------- VIP MULTI-BET CARD ---------- */
.vip-bet-slip {
    background: linear-gradient(135deg, var(--secondary-color), #0f2a33);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    position: sticky;
    top: 100px;
    z-index: 90;
}

.vip-bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.vip-bet-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vip-bet-title i {
    font-size: 2rem;
    color: var(--accent-color);
}

.vip-bet-title h3 {
    color: white;
    margin: 0;
}

.selected-bets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.selected-bet-item {
    background: rgba(255,215,0,0.1);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 15px;
    position: relative;
}

.remove-bet {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1rem;
}

/* ---------- VIP LIMITS CARDS ---------- */
.vip-limits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.vip-limit-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border-left: 4px solid transparent;
}

.vip-limit-card.vip1 { border-left-color: #CD7F32; }
.vip-limit-card.vip2 { border-left-color: #C0C0C0; }
.vip-limit-card.vip3 { border-left-color: #FFD700; }
.vip-limit-card.vvip { border-left-color: #B9F2FF; }

/* ---------- PROFILE CARDS ---------- */
.profile-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #ff8c00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    border: 3px solid var(--accent-color);
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-box:hover {
    border-color: var(--accent-color);
}

/* ---------- ANNOUNCEMENT CARDS ---------- */
.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.announce-card {
    background: linear-gradient(145deg, #fefef0, #f5f5e6);
    border-radius: 24px;
    padding: 20px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    color: var(--dark-color);
}

.announce-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,166,43,0.2);
}

.announce-card.inactive {
    opacity: 0.6;
    border-color: var(--gray-color);
}

.card-type {
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card-desc {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* ---------- SLIDESHOW CARD ---------- */
.slideshow-card {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    border-radius: 32px;
    padding: 25px;
    border: 1px solid var(--accent-color);
    margin: 20px 0;
}

.slideshow-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    background: #111;
}

.slide {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announce-slide {
    background: linear-gradient(145deg, #123127, #0d2b1f);
    padding: 40px;
    text-align: center;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* ---------- ADMIN CARDS ---------- */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.admin-card:hover {
    border-color: var(--accent-color);
}

/* ---------- REFUND CARDS ---------- */
.refund-match-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.refund-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.refund-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.refund-stat-box {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

/* ---------- TOP USERS CARDS ---------- */
.top-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.top-user-card {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(0,0,0,0.3));
    border: 1px solid var(--accent-color);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.top-user-card .rank {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 15px;
}

.top-user-card .user-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.top-user-card .stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== RESPONSIVE BREAKPOINTS FOR CARDS ===== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .dashboard-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    

    
    .accounts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .admin-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .top-users-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .dashboard-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    

    
    .accounts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .admin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .top-users-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .dashboard-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    

    
    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-users-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .vip-limits {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .refund-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    

    
    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-users-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vip-limits {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .refund-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teams-row {
        flex-direction: column;
    }
    
    .team-logo {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .odds-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    

    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .top-users-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vip-limits {
        grid-template-columns: 1fr;
    }
    
    .refund-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .announcement-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .profile-info h3 {
        font-size: 1.5rem;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    .match-header {
        padding: 12px 15px;
    }
    
    .teams-section {
        padding: 15px;
    }
    
    .team-logo {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .odds-box {
        padding: 12px 8px;
    }
    
    .odds-value {
        font-size: 1.1rem;
    }
    
    .selected-bets-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (≤575px) */
@media (max-width: 575px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    

    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .top-users-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .vip-limits {
        grid-template-columns: 1fr;
    }
    
    .refund-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        padding: 15px;
        gap: 15px;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .card-value {
        font-size: 1.3rem;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .match-card {
        border-radius: 16px;
    }
    
    .match-header {
        padding: 10px 12px;
    }
    
    .competition-name {
        font-size: 0.85rem;
    }
    
    .match-time {
        font-size: 0.8rem;
    }
    
    .teams-section {
        padding: 12px;
    }
    
    .teams-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .team {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .team-logo {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .vs-divider {
        font-size: 1rem;
    }
    
    .odds-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .odds-box {
        padding: 10px 5px;
    }
    
    .odds-type {
        font-size: 0.7rem;
    }
    
    .odds-value {
        font-size: 1rem;
    }
    
    .odds-percent {
        font-size: 0.75rem;
    }
    
    .payment-method {
        padding: 15px 10px;
    }
    
    .payment-method img {
        width: 45px;
        height: 45px;
    }
    
    .payment-method span {
        font-size: 0.8rem;
    }
    
    .account-card {
        padding: 15px;
    }
    
    .account-provider {
        gap: 10px;
    }
    
    .account-provider img {
        width: 35px;
        height: 35px;
    }
    
    .provider-name {
        font-size: 0.9rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 3px;
    }
    
    .detail-label {
        width: 100%;
    }
    
    .vip-bet-slip {
        padding: 15px;
        position: relative;
        top: 0;
    }
    
    .vip-bet-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vip-bet-title i {
        font-size: 1.5rem;
    }
    
    .vip-bet-title h3 {
        font-size: 1.1rem;
    }
    
    .selected-bets-grid {
        grid-template-columns: 1fr;
        max-height: 250px;
    }
    
    .selected-bet-item {
        padding: 12px;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .profile-info h3 {
        font-size: 1.3rem;
    }
    
    .stat-box {
        padding: 15px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .announce-card {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .slideshow-card {
        padding: 15px;
    }
    
    .slide {
        height: 250px;
    }
    
    .announce-slide {
        padding: 20px;
    }
    
    .announce-slide .title {
        font-size: 1.3rem;
    }
    
    .admin-card {
        padding: 15px;
    }
    
    .refund-match-card {
        padding: 15px;
    }
    
    .refund-match-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .top-user-card {
        padding: 15px;
    }
    
    .top-user-card .rank {
        font-size: 2.5rem;
    }
    
    .top-user-card .user-name {
        font-size: 1.1rem;
    }
}

/* Ultra Small Devices (≤400px) */
@media (max-width: 400px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-method {
        flex-direction: row;
        text-align: left;
        padding: 12px;
        gap: 15px;
    }
    
    .payment-method img {
        width: 40px;
        height: 40px;
        margin: 0;
    }
    
    .dashboard-card {
        flex-direction: column;
        text-align: center;
    }
    
    .card-icon {
        margin: 0 auto;
    }
    
    .odds-grid {
        grid-template-columns: 1fr;
    }
    
    .odds-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .odds-type {
        margin: 0;
    }
    
    .odds-value {
        margin: 0 10px;
    }
    
    .team {
        flex-direction: column;
        gap: 5px;
    }
    
    .team-logo {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stat-box {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin: 0 auto;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .vip-bet-slip {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .selected-bets-grid {
        max-height: 150px;
    }
    
    .slide {
        height: 200px;
    }
    

}

/* High-DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card,
    .match-card,
    .account-card,
    .payment-method {
        border-width: 0.5px;
    }
}

/* Print Styles */
@media print {
    .card,
    .match-card,
    .account-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #000;
        background: white;
        color: black;
    }
}


/* ===== ANNOUNCEMENT SYSTEM - COMPLETE RESPONSIVE DESIGN ===== */

/* ---------- ANNOUNCEMENT SLIDESHOW CARD ---------- */
.slideshow-card {
    background: linear-gradient(135deg, var(--secondary-color), #0f2a33);
    backdrop-filter: blur(4px);
    border-radius: 32px;
    padding: 25px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    margin: 20px 0;
    transition: all 0.3s ease;
}

.slideshow-card h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slideshow-card h1 span {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.slideshow-container {
    position: relative;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    background: #111;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.15, 1);
    will-change: transform;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    height: 500px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Announcement Slide Styling */
.announce-slide {
    background: linear-gradient(145deg, #123127, #0d2b1f);
    padding: 40px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 8px solid var(--accent-color);
    border-right: 8px solid var(--accent-color);
}

.announce-slide .type-badge {
    background: var(--accent-color);
    color: #0f2f1e;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    align-self: flex-start;
    margin-bottom: 10px;
}

.announce-slide .title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f9e7b3;
    text-shadow: 2px 2px 0 #0f3a24;
    margin-bottom: 15px;
}

.announce-slide .desc {
    font-size: 1.2rem;
    color: #e0e0c0;
    max-width: 80%;
    line-height: 1.6;
    margin-bottom: 20px;
}

.announce-slide .match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.announce-slide .team {
    text-align: center;
    min-width: 150px;
}

.announce-slide .team img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #eee;
    object-fit: contain;
    border: 4px solid var(--accent-color);
    margin-bottom: 10px;
}

.announce-slide .team .no-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #2e5a40;
    border: 4px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0 auto 10px;
}

.announce-slide .team-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.announce-slide .vs {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.announce-slide .stake-box {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.3rem;
    border: 2px solid var(--accent-color);
    color: white;
    margin: 15px 0;
}

.announce-slide .match-time {
    background: #2e5a40;
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    display: inline-block;
}

.announce-slide a {
    color: var(--accent-color);
    word-break: break-all;
    text-decoration: none;
    font-weight: 600;
}

.announce-slide a:hover {
    text-decoration: underline;
}

/* Placeholder Slide */
.placeholder-slide {
    background: linear-gradient(145deg, #113745, #0a1f2a);
    flex-direction: column;
    font-size: 2rem;
    color: var(--accent-color);
    text-align: center;
    gap: 20px;
}

.placeholder-slide i {
    font-size: 5rem;
    opacity: 0.5;
}

/* Navigation Arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 20, 10, 0.7);
    backdrop-filter: blur(4px);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    font-size: 28px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background: var(--accent-color);
    color: #0a2f1d;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px var(--accent-color);
}

/* Dots Navigation */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    padding: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,240,0.5);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px black;
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
    border-color: white;
    box-shadow: 0 0 15px var(--accent-color);
}

.footnote {
    text-align: center;
    margin-top: 15px;
    color: var(--gray-color);
    font-size: 0.95rem;
    font-style: italic;
}

/* ---------- ANNOUNCEMENT GRID (CARDS) ---------- */
.announcement-grid {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 25px;
    border: 2px solid var(--accent-color);
    margin: 20px 0;
}

.section-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    border-left: 8px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* Announcement Card */
.announce-card {
    background: linear-gradient(145deg, #fefef0, #f5f5e6);
    border-radius: 28px;
    padding: 25px;
    width: 340px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    color: #1e2f24;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.announce-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255,166,43,0.3);
}

.announce-card.inactive {
    opacity: 0.6;
    filter: grayscale(0.5);
    border-color: var(--gray-color);
}

.announce-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--accent-color), #ff8c00);
}

.card-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    background: var(--accent-color);
    color: #0f2f1e;
    padding: 5px 15px;
    border-radius: 40px;
    align-self: flex-start;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
    color: #1e3a5f;
    line-height: 1.3;
}

.card-desc {
    margin: 15px 0;
    color: #2a3a2e;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Match Teams inside Announcement Card */
.announce-card .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 20px 0;
    background: rgba(0,0,0,0.03);
    border-radius: 20px;
    padding: 15px;
}

.announce-card .team {
    text-align: center;
}

.announce-card .team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: #ddd;
    border: 3px solid var(--accent-color);
    margin-bottom: 8px;
}

.announce-card .team .no-logo-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #113745;
    border: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 8px;
}

.announce-card .team-name {
    font-size: 1rem;
    font-weight: 600;
    color: #113745;
}

.announce-card .vs {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* Media elements */
.announcement-media {
    text-align: center;
    margin: 15px 0;
}

.announcement-media img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 16px;
    border: 3px solid var(--accent-color);
    object-fit: cover;
}

.announcement-media video {
    width: 100%;
    max-height: 200px;
    border-radius: 16px;
    border: 3px solid var(--accent-color);
}

.announcement-media iframe {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    border: 3px solid var(--accent-color);
}

.stake-info {
    background: rgba(255,166,43,0.1);
    border: 2px dashed var(--accent-color);
    padding: 12px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    margin: 15px 0;
}

.media-url {
    margin-top: 10px;
    font-style: italic;
    word-break: break-all;
    color: var(--accent-color);
    font-size: 0.85rem;
}

.match-time {
    font-weight: bold;
    background: #113745;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    text-align: center;
    margin: 10px 0;
    font-size: 0.9rem;
}

/* ---------- ADMIN ANNOUNCEMENT MANAGEMENT ---------- */
.admin-panel {
    background: linear-gradient(135deg, var(--secondary-color), #0f2a33);
    border-radius: 40px;
    padding: 25px;
    border: 3px solid var(--accent-color);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
    margin: 20px 0;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 0;
}

.admin-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-btn {
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0 15px;
    transition: transform 0.3s ease;
}

.toggle-btn:hover {
    transform: scale(1.2);
}

.admin-content {
    margin-top: 25px;
    transition: all 0.3s ease;
}

.admin-content.hidden {
    display: none;
}

/* Admin Form */
.row-2 {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.row-2 > div {
    flex: 1;
    min-width: 200px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    background: var(--accent-color);
    border: none;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    box-shadow: 0 3px 0 #b86e0f;
    transition: all 0.2s ease;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #b86e0f;
}

/* Admin List */
.admin-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.admin-item {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.admin-item:hover {
    background: rgba(255,166,43,0.1);
    transform: translateX(5px);
}

.admin-item-info {
    flex: 2;
    min-width: 250px;
    color: white;
}

.admin-item-info h4 {
    color: var(--accent-color);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.admin-item-info p {
    color: var(--gray-color);
    margin: 5px 0;
    font-size: 0.9rem;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.active-badge {
    background: var(--success-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-block;
}

.inactive-badge {
    background: var(--danger-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .slideshow-card {
        padding: 30px;
    }
    
    .slide {
        height: 600px;
    }
    
    .announce-slide .title {
        font-size: 3rem;
    }
    
    .announce-slide .desc {
        font-size: 1.3rem;
        max-width: 70%;
    }
    
    .announce-slide .team img,
    .announce-slide .team .no-logo {
        width: 120px;
        height: 120px;
    }
    
    .cards-container {
        gap: 30px;
    }
    
    .announce-card {
        width: 380px;
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .slide {
        height: 550px;
    }
    
    .announce-slide .title {
        font-size: 2.8rem;
    }
    
    .cards-container {
        gap: 25px;
    }
    
    .announce-card {
        width: 350px;
    }
}

/* Small Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .slideshow-card {
        padding: 20px;
    }
    
    .slide {
        height: 450px;
    }
    
    .announce-slide {
        padding: 30px;
    }
    
    .announce-slide .title {
        font-size: 2.2rem;
    }
    
    .announce-slide .desc {
        font-size: 1.1rem;
        max-width: 90%;
    }
    
    .announce-slide .match-teams {
        gap: 20px;
    }
    
    .announce-slide .team img,
    .announce-slide .team .no-logo {
        width: 80px;
        height: 80px;
    }
    
    .cards-container {
        gap: 20px;
    }
    
    .announce-card {
        width: 320px;
    }
    
    .prev, .next {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .slideshow-card {
        padding: 20px;
        border-radius: 24px;
    }
    
    .slideshow-card h1 {
        font-size: 1.8rem;
    }
    
    .slideshow-card h1 span {
        font-size: 1.6rem;
    }
    
    .slide {
        height: 400px;
    }
    
    .announce-slide {
        padding: 25px;
        border-left-width: 6px;
        border-right-width: 6px;
    }
    
    .announce-slide .type-badge {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .announce-slide .title {
        font-size: 2rem;
    }
    
    .announce-slide .desc {
        font-size: 1rem;
        max-width: 95%;
    }
    
    .announce-slide .match-teams {
        gap: 15px;
        margin: 15px 0;
    }
    
    .announce-slide .team img,
    .announce-slide .team .no-logo {
        width: 70px;
        height: 70px;
    }
    
    .announce-slide .team-name {
        font-size: 1rem;
    }
    
    .announce-slide .vs {
        font-size: 2rem;
    }
    
    .announce-slide .stake-box {
        padding: 10px 20px;
        font-size: 1.1rem;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .announcement-grid {
        padding: 20px;
        border-radius: 24px;
    }
    
    .section-title {
        font-size: 1.5rem;
        border-left-width: 6px;
        padding-left: 15px;
    }
    
    .cards-container {
        gap: 20px;
    }
    
    .announce-card {
        width: 300px;
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .announce-card .match-teams {
        padding: 12px;
    }
    
    .announce-card .team img,
    .announce-card .team .no-logo-small {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .admin-panel {
        padding: 20px;
        border-radius: 30px;
    }
    
    .admin-header h2 {
        font-size: 1.5rem;
    }
    
    .row-2 {
        gap: 15px;
    }
    
    .row-2 > div {
        min-width: 180px;
    }
    
    .admin-item {
        padding: 15px;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .slideshow-card {
        padding: 15px;
        border-radius: 20px;
    }
    
    .slideshow-card h1 {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .slideshow-card h1 span {
        font-size: 1.4rem;
    }
    
    .slide {
        height: 350px;
    }
    
    .announce-slide {
        padding: 20px;
        border-left-width: 4px;
        border-right-width: 4px;
    }
    
    .announce-slide .type-badge {
        padding: 5px 14px;
        font-size: 0.75rem;
        align-self: center;
    }
    
    .announce-slide .title {
        font-size: 1.5rem;
    }
    
    .announce-slide .desc {
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .announce-slide .match-teams {
        flex-direction: column;
        gap: 15px;
        margin: 15px 0;
    }
    
    .announce-slide .team {
        min-width: auto;
        width: 100%;
    }
    
    .announce-slide .team img,
    .announce-slide .team .no-logo {
        width: 60px;
        height: 60px;
    }
    
    .announce-slide .vs {
        font-size: 1.8rem;
    }
    
    .announce-slide .stake-box {
        padding: 8px 16px;
        font-size: 1rem;
    }
    
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .prev {
        left: 5px;
    }
    
    .next {
        right: 5px;
    }
    
    .dots-container {
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .footnote {
        font-size: 0.85rem;
    }
    
    .announcement-grid {
        padding: 15px;
        border-radius: 20px;
    }
    
    .section-title {
        font-size: 1.3rem;
        border-left-width: 5px;
        padding-left: 12px;
        margin-bottom: 20px;
    }
    
    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .announce-card {
        width: 100%;
        max-width: 400px;
        padding: 20px;
    }
    
    .card-type {
        font-size: 0.75rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-desc {
        font-size: 0.9rem;
    }
    
    .announce-card .match-teams {
        flex-direction: row;
        padding: 10px;
    }
    
    .announce-card .team img,
    .announce-card .team .no-logo-small {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .announce-card .team-name {
        font-size: 0.9rem;
    }
    
    .announce-card .vs {
        font-size: 1.5rem;
    }
    
    .announcement-media img,
    .announcement-media video,
    .announcement-media iframe {
        max-height: 150px;
    }
    
    .admin-panel {
        padding: 15px;
        border-radius: 25px;
    }
    
    .admin-header h2 {
        font-size: 1.3rem;
    }
    
    .toggle-btn {
        font-size: 1.5rem;
    }
    
    .row-2 {
        flex-direction: column;
        gap: 10px;
    }
    
    .row-2 > div {
        min-width: 100%;
    }
    
    .admin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-item-info {
        min-width: 100%;
    }
    
    .admin-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Mobile (≤575px) */
@media (max-width: 575px) {
    .slideshow-card {
        padding: 12px;
        border-radius: 16px;
        margin: 15px 0;
    }
    
    .slideshow-card h1 {
        font-size: 1.2rem;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .slideshow-card h1 span {
        font-size: 1.1rem;
    }
    
    .slideshow-container {
        border-radius: 16px;
        border-width: 2px;
    }
    
    .slide {
        height: 300px;
    }
    
    .announce-slide {
        padding: 15px;
        border-left-width: 3px;
        border-right-width: 3px;
        gap: 10px;
    }
    
    .announce-slide .type-badge {
        padding: 4px 12px;
        font-size: 0.7rem;
        align-self: center;
    }
    
    .announce-slide .title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .announce-slide .desc {
        font-size: 0.85rem;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .announce-slide .match-teams {
        flex-direction: column;
        gap: 10px;
        margin: 10px 0;
    }
    
    .announce-slide .team {
        min-width: auto;
        width: 100%;
    }
    
    .announce-slide .team img,
    .announce-slide .team .no-logo {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .announce-slide .team-name {
        font-size: 0.9rem;
    }
    
    .announce-slide .vs {
        font-size: 1.3rem;
    }
    
    .announce-slide .stake-box {
        padding: 6px 12px;
        font-size: 0.9rem;
        border-width: 1px;
    }
    
    .announce-slide .match-time {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    .prev, .next {
        width: 30px;
        height: 30px;
        font-size: 16px;
        border-width: 1px;
    }
    
    .prev {
        left: 5px;
    }
    
    .next {
        right: 5px;
    }
    
    .dots-container {
        bottom: 10px;
        gap: 6px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .footnote {
        font-size: 0.75rem;
        margin-top: 10px;
    }
    
    .announcement-grid {
        padding: 12px;
        border-radius: 16px;
    }
    
    .section-title {
        font-size: 1.1rem;
        border-left-width: 4px;
        padding-left: 10px;
        margin-bottom: 15px;
    }
    
    .cards-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .announce-card {
        width: 100%;
        padding: 15px;
        border-radius: 20px;
    }
    
    .card-type {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin: 5px 0;
    }
    
    .card-desc {
        font-size: 0.85rem;
        margin: 10px 0;
    }
    
    .announce-card .match-teams {
        margin: 10px 0;
        padding: 10px;
    }
    
    .announce-card .team img,
    .announce-card .team .no-logo-small {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
    
    .announce-card .team-name {
        font-size: 0.8rem;
    }
    
    .announce-card .vs {
        font-size: 1.2rem;
    }
    
    .announcement-media img,
    .announcement-media video,
    .announcement-media iframe {
        max-height: 130px;
        border-width: 2px;
    }
    
    .stake-info {
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .match-time {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .admin-panel {
        padding: 12px;
        border-radius: 20px;
    }
    
    .admin-header h2 {
        font-size: 1.1rem;
    }
    
    .admin-header h2 i {
        font-size: 1rem;
    }
    
    .toggle-btn {
        font-size: 1.3rem;
        padding: 0 10px;
    }
    
    .admin-content {
        margin-top: 15px;
    }
    
    .row-2 {
        flex-direction: column;
        gap: 10px;
    }
    
    .row-2 > div {
        min-width: 100%;
    }
    
    .btn-small {
        width: 100%;
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .admin-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 10px;
    }
    
    .admin-item-info {
        min-width: 100%;
    }
    
    .admin-item-info h4 {
        font-size: 1rem;
    }
    
    .admin-item-info p {
        font-size: 0.8rem;
    }
    
    .admin-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-actions button {
        width: 100%;
    }
    
    .active-badge,
    .inactive-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

/* Ultra Small Devices (≤400px) */
@media (max-width: 400px) {
    .slideshow-card {
        padding: 10px;
    }
    
    .slide {
        height: 250px;
    }
    
    .announce-slide {
        padding: 10px;
    }
    
    .announce-slide .title {
        font-size: 1rem;
    }
    
    .announce-slide .desc {
        font-size: 0.75rem;
    }
    
    .announce-slide .team img,
    .announce-slide .team .no-logo {
        width: 40px;
        height: 40px;
    }
    
    .announce-slide .team-name {
        font-size: 0.8rem;
    }
    
    .announce-slide .vs {
        font-size: 1rem;
    }
    
    .announce-card {
        padding: 12px;
    }
    
    .announce-card .team img,
    .announce-card .team .no-logo-small {
        width: 35px;
        height: 35px;
    }
    
    .announce-card .team-name {
        font-size: 0.75rem;
    }
    
    .announce-card .vs {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .slide {
        height: 200px;
    }
    
    .announce-slide {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .announce-slide .type-badge {
        position: absolute;
        top: 10px;
        left: 10px;
    }
    
    .announce-slide .title {
        font-size: 1.1rem;
        margin-left: 100px;
    }
    
    .announce-slide .desc {
        display: none;
    }
    
    .announce-slide .match-teams {
        flex-direction: row;
        margin: 5px 0;
    }
    
    .announce-slide .team img,
    .announce-slide .team .no-logo {
        width: 40px;
        height: 40px;
    }
    
    .prev, .next {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .admin-list {
        max-height: 300px;
    }
}

/* Safe Area Insets */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .slideshow-card,
    .announcement-grid,
    .admin-panel {
        margin-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Loading States */
.loading-announcements {
    text-align: center;
    padding: 40px;
    color: var(--accent-color);
}

.loading-announcements i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Empty States */
.no-announcements {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-color);
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
}

.no-announcements i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--accent-color);
}

.no-announcements h3 {
    color: white;
    margin-bottom: 10px;
}

.no-announcements p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.stat-value.loading {
    opacity: 0.5;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.2; }
}

/* ===== RESPONSIVE BETS TABLE - NO HORIZONTAL SCROLLING ===== */

/* Base table styles */
.my-bets-table {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    border-collapse: collapse;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.95rem;
}

.my-bets-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.my-bets-table th {
    padding: 16px 12px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.my-bets-table td {
    padding: 14px 12px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    vertical-align: middle;
}

.my-bets-table tbody tr {
    transition: all 0.2s ease;
}

.my-bets-table tbody tr:hover {
    background: rgba(255,166,43,0.1);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.status-pending {
    background: rgba(255,166,43,0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.status-won {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.status-lost {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.status-refunded {
    background: rgba(52,152,219,0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

/* Loading state */
.my-bets-table .loading-state {
    text-align: center;
    padding: 40px !important;
    color: var(--gray-color);
}

.my-bets-table .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== LARGE DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
    .my-bets-table {
        font-size: 1rem;
    }
    
    .my-bets-table th {
        padding: 18px 15px;
        font-size: 0.95rem;
    }
    
    .my-bets-table td {
        padding: 16px 15px;
    }
}

/* ===== DESKTOP (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
    .my-bets-table {
        font-size: 0.9rem;
    }
    
    .my-bets-table th {
        padding: 14px 10px;
        font-size: 0.85rem;
    }
    
    .my-bets-table td {
        padding: 12px 10px;
    }
    
    .status-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 70px;
    }
}

/* ===== TABLET LANDSCAPE (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
    /* Convert table to card layout */
    .my-bets-table,
    .my-bets-table thead,
    .my-bets-table tbody,
    .my-bets-table tr,
    .my-bets-table td {
        display: block;
    }
    
    .my-bets-table thead {
        display: none; /* Hide headers on tablet */
    }
    
    .my-bets-table tr {
        background: rgba(255,255,255,0.05);
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 15px;
        position: relative;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .my-bets-table td {
        display: flex;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .my-bets-table td:last-child {
        border-bottom: none;
    }
    
    .my-bets-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--accent-color);
        width: 100px;
        min-width: 100px;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Special handling for status */
    .my-bets-table td:last-child::before {
        content: "Status";
    }
    
    .status-badge {
        margin-left: auto;
        min-width: 90px;
        text-align: center;
    }
    
    /* Loading state */
    .my-bets-table td[colspan="7"] {
        display: table-cell;
        padding: 40px !important;
        text-align: center;
    }
    
    .my-bets-table td[colspan="7"]::before {
        display: none;
    }
}

/* ===== TABLET PORTRAIT (576px - 767px) ===== */
@media (min-width: 576px) and (max-width: 767px) {
    /* Convert table to card layout */
    .my-bets-table,
    .my-bets-table thead,
    .my-bets-table tbody,
    .my-bets-table tr,
    .my-bets-table td {
        display: block;
    }
    
    .my-bets-table thead {
        display: none;
    }
    
    .my-bets-table tr {
        background: rgba(255,255,255,0.05);
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .my-bets-table td {
        display: flex;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 0.9rem;
    }
    
    .my-bets-table td:last-child {
        border-bottom: none;
    }
    
    .my-bets-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--accent-color);
        width: 90px;
        min-width: 90px;
        font-size: 0.8rem;
    }
    
    .status-badge {
        margin-left: auto;
        padding: 5px 10px;
        min-width: 80px;
        font-size: 0.75rem;
    }
    
    /* Loading state */
    .my-bets-table td[colspan="7"] {
        display: table-cell;
        padding: 40px !important;
    }
    
    .my-bets-table td[colspan="7"]::before {
        display: none;
    }
}

/* ===== MOBILE (≤575px) ===== */
@media (max-width: 575px) {
    /* Convert table to stacked card layout */
    .my-bets-table,
    .my-bets-table thead,
    .my-bets-table tbody,
    .my-bets-table tr,
    .my-bets-table td {
        display: block;
    }
    
    .my-bets-table thead {
        display: none;
    }
    
    .my-bets-table tr {
        background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
        border-radius: 16px;
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid rgba(255,166,43,0.2);
        position: relative;
    }
    
    /* Add a subtle indicator for bet type */
    .my-bets-table tr::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--accent-color);
        border-radius: 4px 0 0 4px;
    }
    
    .my-bets-table td {
        display: flex;
        align-items: center;
        padding: 10px 0 10px 10px;
        border-bottom: 1px dashed rgba(255,255,255,0.1);
        font-size: 0.85rem;
        min-height: 40px;
        color: navajowhite;
    }
    
    .my-bets-table td:last-child {
        border-bottom: none;
    }
    
    /* Label styling */
    .my-bets-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--accent-color);
        width: 85px;
        min-width: 85px;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    /* Special styling for different columns */
    .my-bets-table td[data-label="Match/Bet"] {
        font-weight: 600;
        color: white;
        font-size: 0.9rem;
    }
    
    .my-bets-table td[data-label="Stake (TZS)"] .value,
    .my-bets-table td[data-label="Profit"] .value {
        font-weight: 600;
    }
    
    /* Amount colors */
    .my-bets-table td[data-label="Profit"] .positive {
        color: #2ecc71;
    }
    
    .my-bets-table td[data-label="Profit"] .negative {
        color: #e74c3c;
    }
    
    /* Status badge positioning */
    .status-badge {
        margin-left: auto;
        padding: 5px 10px;
        min-width: 70px;
        font-size: 0.7rem;
        text-align: center;
    }
    
    /* Compact mode for very small screens */
    .my-bets-table td {
        flex-wrap: wrap;
    }
    
    .my-bets-table td .value {
        flex: 1;
        text-align: right;
        padding-right: 5px;
    }
    
    /* Loading state */
    .my-bets-table td[colspan="7"] {
        display: table-cell;
        padding: 30px 15px !important;
        text-align: center;
        background: transparent;
    }
    
    .my-bets-table td[colspan="7"]::before {
        display: none;
    }
    
    .my-bets-table .spinner {
        width: 35px;
        height: 35px;
    }
}

/* ===== ULTRA SMALL DEVICES (≤400px) ===== */
@media (max-width: 400px) {
    .my-bets-table tr {
        padding: 12px;
    }
    
    .my-bets-table td {
        padding: 8px 0 8px 8px;
        font-size: 0.8rem;
    }
    
    .my-bets-table td::before {
        width: 75px;
        min-width: 75px;
        font-size: 0.7rem;
    }
    
    .status-badge {
        padding: 4px 8px;
        min-width: 65px;
        font-size: 0.65rem;
    }
    
    /* Stack labels and values on two lines if needed */
    .my-bets-table td {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .my-bets-table td::before {
        width: 100%;
    }
    
    .my-bets-table td .value,
    .status-badge {
        margin-left: 0;
        width: 100%;
        text-align: left;
    }
}

/* ===== ALTERNATIVE: GRID LAYOUT FOR MEDIUM SCREENS ===== */
/* Use this if you prefer a grid-based approach instead of flex */
@media (min-width: 768px) and (max-width: 991px) {
    .my-bets-table.alternative-grid tr {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
        gap: 5px;
        align-items: center;
    }
    
    .my-bets-table.alternative-grid td {
        display: block;
        padding: 8px 5px;
    }
    
    .my-bets-table.alternative-grid td::before {
        display: none;
    }
}


/* ===== ENHANCED VISUAL STYLES ===== */
.my-bets-table .positive {
    color: #2ecc71;
    font-weight: 600;
}

.my-bets-table .negative {
    color: #e74c3c;
    font-weight: 600;
}

.my-bets-table .match-info {
    display: flex;
    flex-direction: column;
}

.my-bets-table .match-teams {
    font-weight: 600;
    color: white;
}

.my-bets-table .match-competition {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Empty state */
.my-bets-table .empty-state {
    text-align: center;
    padding: 50px 20px !important;
    color: var(--gray-color);
}

.my-bets-table .empty-state i {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 15px;
}

.my-bets-table .empty-state h4 {
    color: white;
    margin-bottom: 10px;
}

.my-bets-table .empty-state p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== MATCH LIST VIEW (GROUPED BY LEAGUE) ===== */

/* Container for all leagues */
.match-list-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* Each league group */
.league-group {
  background: rgba(255,255,255,0.03);
  border-radius: 24px;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

/* League header */
.league-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.league-header h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.league-header h3 i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.match-count {
  background: rgba(255,166,43,0.2);
  color: var(--accent-color);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Container for matches in this league */
.league-matches {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Individual match row */
.match-row {
  background: white;
  border-radius: 60px;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 14px -6px #b4cce0;
  border: 1px solid #c7dcef;
  transition: all 0.2s ease;
  position: relative;
}

.match-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -8px #1f4963;
  border-color: var(--accent-color);
}

/* Selected state for VIP multi‑bet */
.match-row.selected-for-vip {
  border: 2px solid var(--vip-gold);
  box-shadow: 0 0 0 2px rgba(255,215,0,0.3);
}

/* Left: competition + time + venue */
.match-info-compact {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.match-competition {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.match-datetime {
  font-size: 0.75rem;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.match-venue {
  font-size: 0.7rem;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}

/* Middle: teams + VS */
.match-teams-compact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 200px;
}

.team-compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #1b4058;
}

.team-compact .team-abbr {
  background: #eaf2fc;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #153e54;
  border: 1px solid #afcde7;
}

.team-compact .team-name {
  font-size: 0.9rem;
  white-space: nowrap;
}

.vs-compact {
  font-weight: 800;
  color: #6b92ae;
  font-size: 0.8rem;
}

/* Right: odds + bet button */
.match-odds-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.odds-group-compact {
  display: flex;
  gap: 0.3rem;
}

.odds-box-compact {
  background: #eaf2fc;
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #143c54;
  border: 1px solid #b3cfec;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 45px;
  text-align: center;
}

.odds-box-compact:hover {
  background: #d4e4f7;
  border-color: var(--accent-color);
}

.odds-box-compact.selected-for-vip {
  background: var(--vip-gold);
  color: #1a2a3a;
  border-color: var(--vip-gold);
  position: relative;
}

.odds-box-compact.selected-for-vip::after {
  content: '✓';
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--success-color);
  color: white;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.odds-label {
  font-size: 0.65rem;
  display: block;
}

.odds-value {
  font-weight: 800;
  font-size: 0.9rem;
}

/* Single bet button (non‑VIP) */
.bet-btn-compact {
  background: linear-gradient(90deg, var(--success-color), #228B22);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.bet-btn-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46,139,87,0.4);
}

.bet-btn-compact i {
  font-size: 0.8rem;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  .match-row {
    flex-wrap: wrap;
    border-radius: 30px;
    padding: 1rem;
  }

  .match-info-compact {
    min-width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }

  .match-teams-compact {
    min-width: 100%;
    justify-content: center;
    order: 2;
  }

  .match-odds-compact {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    order: 3;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .league-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .match-teams-compact {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .team-compact {
    flex: 1;
    justify-content: center;
  }

  .vs-compact {
    order: 2;
  }

  .match-odds-compact {
    flex-direction: column;
    align-items: stretch;
  }

  .odds-group-compact {
    justify-content: center;
  }

  .bet-btn-compact {
    width: 100%;
    justify-content: center;
  }
}

/* Dark theme adjustments (if your body uses dark background) */
body.dark-mode .match-row {
  background: #1e2a3a;
  border-color: #2f4055;
  color: white;
}

body.dark-mode .team-compact {
  color: #ddd;
}

body.dark-mode .team-compact .team-abbr {
  background: #2f4055;
  color: white;
  border-color: #4a6a8a;
}

/* ===== MATCH LIST VIEW (GROUPED BY LEAGUE) ===== */

/* Container for all leagues */
.match-list-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* Each league group */
.league-group {
  background: rgba(255,255,255,0.03);
  border-radius: 24px;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

/* League header */
.league-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.league-header h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.league-header h3 i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.match-count {
  background: rgba(255,166,43,0.2);
  color: var(--accent-color);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Container for matches in this league */
.league-matches {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Individual match row */
.match-row {
  background: white;
  border-radius: 60px;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 14px -6px #b4cce0;
  border: 1px solid #c7dcef;
  transition: all 0.2s ease;
  position: relative;
}

.match-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -8px #1f4963;
  border-color: var(--accent-color);
}

/* Selected state for VIP multi‑bet */
.match-row.selected-for-vip {
  border: 2px solid var(--vip-gold);
  box-shadow: 0 0 0 2px rgba(255,215,0,0.3);
}

/* Left: competition + time + venue */
.match-info-compact {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.match-competition {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.match-datetime {
  font-size: 0.75rem;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.match-venue {
  font-size: 0.7rem;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}

/* Middle: teams + VS */
.match-teams-compact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 200px;
}

.team-compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #1b4058;
}

.team-compact .team-abbr {
  background: #eaf2fc;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #153e54;
  border: 1px solid #afcde7;
}

.team-compact .team-name {
  font-size: 0.9rem;
  white-space: nowrap;
}

.vs-compact {
  font-weight: 800;
  color: #6b92ae;
  font-size: 0.8rem;
}

/* Right: odds + bet button */
.match-odds-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.odds-group-compact {
  display: flex;
  gap: 0.3rem;
}

.odds-box-compact {
  background: #eaf2fc;
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #143c54;
  border: 1px solid #b3cfec;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 45px;
  text-align: center;
}

.odds-box-compact:hover {
  background: #d4e4f7;
  border-color: var(--accent-color);
}

.odds-box-compact.selected-for-vip {
  background: var(--vip-gold);
  color: #1a2a3a;
  border-color: var(--vip-gold);
  position: relative;
}

.odds-box-compact.selected-for-vip::after {
  content: '✓';
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--success-color);
  color: white;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.odds-label {
  font-size: 0.65rem;
  display: block;
}

.odds-value {
  font-weight: 800;
  font-size: 0.9rem;
}

/* Single bet button (non‑VIP) */
.bet-btn-compact {
  background: linear-gradient(90deg, var(--success-color), #228B22);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.bet-btn-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46,139,87,0.4);
}

.bet-btn-compact i {
  font-size: 0.8rem;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  .match-row {
    flex-wrap: wrap;
    border-radius: 30px;
    padding: 1rem;
  }

  .match-info-compact {
    min-width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }

  .match-teams-compact {
    min-width: 100%;
    justify-content: center;
    order: 2;
  }

  .match-odds-compact {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    order: 3;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .league-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .match-teams-compact {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .team-compact {
    flex: 1;
    justify-content: center;
  }

  .vs-compact {
    order: 2;
  }

  .match-odds-compact {
    flex-direction: column;
    align-items: stretch;
  }

  .odds-group-compact {
    justify-content: center;
  }

  .bet-btn-compact {
    width: 100%;
    justify-content: center;
  }
}

/* Dark theme adjustments (if your body uses dark background) */
body.dark-mode .match-row {
  background: #1e2a3a;
  border-color: #2f4055;
  color: white;
}

body.dark-mode .team-compact {
  color: #ddd;
}

body.dark-mode .team-compact .team-abbr {
  background: #2f4055;
  color: white;
  border-color: #4a6a8a;
}

/* ===== MATCH LIST VIEW – RESPONSIVE ONE‑ROW PER MATCH ===== */

/* Container for all leagues */
.match-list-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

/* League group card */
.league-group {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: 24px;
  padding: 1.2rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* League header */
.league-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color, #FFA62B);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.league-header h3 {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.league-header h3 i {
  color: var(--accent-color, #FFA62B);
  font-size: 1.2rem;
}

.match-count {
  background: rgba(255,166,43,0.2);
  color: var(--accent-color, #FFA62B);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Container for matches inside a league */
.league-matches {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Individual match row – base styles */
.match-row {
  background: white;
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 8px 14px -6px #b4cce0;
  border: 1px solid #c7dcef;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.match-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -8px #1f4963;
  border-color: var(--accent-color, #FFA62B);
}

/* Selected state for VIP multi‑bet */
.match-row.selected-for-vip {
  border: 2px solid var(--vip-gold, #FFD700);
  box-shadow: 0 0 0 2px rgba(255,215,0,0.3);
}

/* Left: competition, date/time, venue */
.match-info-compact {
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
}

.match-competition {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary-color, #256f8a);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-datetime {
  font-size: 0.75rem;
  color: var(--gray-color, #6C757D);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.match-venue {
  font-size: 0.7rem;
  color: var(--gray-color, #6C757D);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}

/* Middle: teams + VS */
.match-teams-compact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 200px;
  flex-wrap: wrap;
}

.team-compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #1b4058;
}

.team-compact .team-abbr {
  background: #eaf2fc;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #153e54;
  border: 1px solid #afcde7;
  flex-shrink: 0;
}

.team-compact .team-name {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.vs-compact {
  font-weight: 800;
  color: #6b92ae;
  font-size: 0.8rem;
}

/* Right: odds and bet button */
.match-odds-compact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
  flex-shrink: 0;
}

.odds-group-compact {
  display: flex;
  gap: 0.3rem;
}

.odds-box-compact {
  background: #eaf2fc;
  border-radius: 20px;
  padding: 0.3rem 0.6rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #143c54;
  border: 1px solid #b3cfec;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 45px;
  text-align: center;
  position: relative;
}

.odds-box-compact:hover {
  background: #d4e4f7;
  border-color: var(--accent-color, #FFA62B);
}

.odds-box-compact.selected-for-vip {
  background: var(--vip-gold, #FFD700);
  color: #1a2a3a;
  border-color: var(--vip-gold, #FFD700);
}

.odds-box-compact.selected-for-vip::after {
  content: '✓';
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--success-color, #2E8B57);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
}

.odds-label {
  font-size: 0.65rem;
  display: block;
  line-height: 1;
}

.odds-value {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.2;
}

/* Single bet button (non‑VIP) */
.bet-btn-compact {
  background: linear-gradient(90deg, var(--success-color, #2E8B57), #228B22);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.bet-btn-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46,139,87,0.4);
}

.bet-btn-compact i {
  font-size: 0.8rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large tablets and small desktops (≤1024px) */
@media (max-width: 1024px) {
  .match-row {
    padding: 0.8rem 1.2rem;
    gap: 1rem;
  }

  .match-info-compact {
    min-width: 140px;
  }

  .team-compact .team-name {
    max-width: 100px;
  }
}

/* Tablets (≤900px) – allow wrapping of match row */
@media (max-width: 900px) {
  .match-row {
    flex-wrap: wrap;
    border-radius: 40px;
    padding: 1rem;
  }

  .match-info-compact {
    min-width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .match-competition,
  .match-datetime,
  .match-venue {
    white-space: normal;
  }

  .match-teams-compact {
    min-width: 100%;
    justify-content: center;
    order: 2;
    margin-bottom: 0.5rem;
  }

  .match-odds-compact {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    order: 3;
  }
}

/* Large phones (≤600px) – stack everything */
@media (max-width: 600px) {
  .league-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-row {
    border-radius: 30px;
    padding: 1rem 0.8rem;
  }

  .match-info-compact {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .match-teams-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .team-compact {
    width: 100%;
    justify-content: flex-start;
  }

  .team-compact .team-name {
    max-width: none;
  }

  .vs-compact {
    align-self: center;
    margin-left: 2rem;
  }

  .match-odds-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .odds-group-compact {
    justify-content: center;
  }

  .bet-btn-compact {
    width: 100%;
    justify-content: center;
  }
}

/* Small phones (≤480px) – ultra compact */
@media (max-width: 480px) {
  .match-info-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .match-datetime,
  .match-venue {
    font-size: 0.7rem;
  }

  .team-compact .team-abbr {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
  }

  .team-compact .team-name {
    font-size: 0.8rem;
  }

  .odds-box-compact {
    min-width: 40px;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }

  .odds-value {
    font-size: 0.8rem;
  }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .match-row {
    padding: 0.6rem 1rem;
  }

  .match-info-compact {
    min-width: 130px;
  }

  .match-teams-compact {
    min-width: 180px;
  }
}

/* Dark mode compatibility (if needed) */
@media (prefers-color-scheme: dark) {
  .match-row {
    background: #1e2a3a;
    border-color: #2f4055;
  }

  .team-compact {
    color: #ddd;
  }

  .team-compact .team-abbr {
    background: #2f4055;
    color: white;
    border-color: #4a6a8a;
  }

  .vs-compact {
    color: #9aaec2;
  }

  .odds-box-compact {
    background: #2f4055;
    color: #e0e0e0;
    border-color: #4a6a8a;
  }

  .odds-box-compact:hover {
    background: #3b5068;
  }
}

/* ===== MATCH LIST VIEW – FULLY RESPONSIVE ===== */

/* Main container for all leagues */
.match-list-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* League group card */
.league-group {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

/* League header */
.league-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color, #FFA62B);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.league-header h3 {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.league-header h3 i {
  color: var(--accent-color, #FFA62B);
  font-size: 1.2rem;
}

.match-count {
  background: rgba(255, 166, 43, 0.2);
  color: var(--accent-color, #FFA62B);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Container for matches inside a league */
.league-matches {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Individual match row – base styles */
.match-row {
  background: white;
  border-radius: 60px;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 8px 14px -6px #b4cce0;
  border: 1px solid #c7dcef;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.match-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -8px #1f4963;
  border-color: var(--accent-color, #FFA62B);
}

/* Selected state for VIP multi‑bet */
.match-row.selected-for-vip {
  border: 2px solid var(--vip-gold, #FFD700);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

/* ----- LEFT INFO (COMPETITION, DATE, VENUE) ----- */
.match-info-compact {
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
}

.match-competition {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary-color, #256f8a);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-datetime {
  font-size: 0.75rem;
  color: var(--gray-color, #6C757D);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.match-venue {
  font-size: 0.7rem;
  color: var(--gray-color, #6C757D);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}

/* ----- TEAMS (HOME, VS, AWAY) ----- */
.match-teams-compact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 200px;
  flex-wrap: wrap;
}

.team-compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #1b4058;
}

.team-compact .team-abbr {
  background: #eaf2fc;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #153e54;
  border: 1px solid #afcde7;
  flex-shrink: 0;
}

.team-compact .team-name {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.vs-compact {
  font-weight: 800;
  color: #6b92ae;
  font-size: 0.8rem;
}

/* ----- ODDS AND BET BUTTON ----- */
.match-odds-compact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
  flex-shrink: 0;
}

.odds-group-compact {
  display: flex;
  gap: 0.3rem;
}

.odds-box-compact {
  background: #eaf2fc;
  border-radius: 20px;
  padding: 0.3rem 0.6rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #143c54;
  border: 1px solid #b3cfec;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 45px;
  text-align: center;
  position: relative;
}

.odds-box-compact:hover {
  background: #d4e4f7;
  border-color: var(--accent-color, #FFA62B);
}

.odds-box-compact.selected-for-vip {
  background: var(--vip-gold, #FFD700);
  color: #1a2a3a;
  border-color: var(--vip-gold, #FFD700);
}

.odds-box-compact.selected-for-vip::after {
  content: '✓';
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--success-color, #2E8B57);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
}

.odds-label {
  font-size: 0.65rem;
  display: block;
  line-height: 1;
}

.odds-value {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.2;
}

/* Single bet button (non‑VIP) */
.bet-btn-compact {
  background: linear-gradient(90deg, var(--success-color, #2E8B57), #228B22);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.bet-btn-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46, 139, 87, 0.4);
}

.bet-btn-compact i {
  font-size: 0.8rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Desktop (≥1025px) – default layout */
@media (min-width: 1025px) {
  .match-row {
    padding: 0.9rem 2rem;
  }
  .match-info-compact {
    min-width: 180px;
  }
  .team-compact .team-name {
    max-width: 150px;
  }
}

/* Tablet (768px – 1024px) – reduce spacing, keep row */
@media (max-width: 1024px) {
  .match-row {
    padding: 0.8rem 1.2rem;
    gap: 1rem;
    border-radius: 50px;
  }
  .match-info-compact {
    min-width: 140px;
  }
  .team-compact .team-name {
    max-width: 100px;
  }
}

/* Small tablets / large phones (≤768px) – allow row to wrap */
@media (max-width: 768px) {
  .match-row {
    flex-wrap: wrap;
    border-radius: 40px;
    padding: 1rem;
    gap: 0.8rem;
  }

  .match-info-compact {
    min-width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
  }

  .match-teams-compact {
    min-width: 100%;
    justify-content: center;
    order: 2;
    margin-bottom: 0.3rem;
  }

  .match-odds-compact {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    order: 3;
  }
}

/* Mobile (≤576px) – stack everything vertically */
@media (max-width: 576px) {
  .league-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-row {
    border-radius: 30px;
    padding: 1rem 0.8rem;
    flex-direction: column;
    align-items: stretch;
  }

  .match-info-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .match-datetime,
  .match-venue {
    font-size: 0.7rem;
  }

  .match-teams-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .team-compact {
    width: 100%;
  }

  .team-compact .team-name {
    max-width: none;
  }

  .vs-compact {
    align-self: center;
    margin-left: 2rem;
  }

  .match-odds-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .odds-group-compact {
    justify-content: center;
  }

  .bet-btn-compact {
    width: 100%;
    justify-content: center;
  }
}

/* Very small phones (≤400px) – ultra compact */
@media (max-width: 400px) {
  .match-row {
    padding: 0.8rem 0.6rem;
  }

  .team-compact .team-abbr {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
  }

  .team-compact .team-name {
    font-size: 0.8rem;
  }

  .odds-box-compact {
    min-width: 40px;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }

  .odds-value {
    font-size: 0.8rem;
  }

  .bet-btn-compact {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }
}

/* Landscape orientation on short devices */
@media (max-height: 500px) and (orientation: landscape) {
  .match-row {
    padding: 0.6rem 1rem;
  }

  .match-info-compact {
    min-width: 130px;
  }

  .match-teams-compact {
    min-width: 180px;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .match-row {
    background: #1e2a3a;
    border-color: #2f4055;
  }

  .team-compact {
    color: #ddd;
  }

  .team-compact .team-abbr {
    background: #2f4055;
    color: white;
    border-color: #4a6a8a;
  }

  .vs-compact {
    color: #9aaec2;
  }

  .odds-box-compact {
    background: #2f4055;
    color: #e0e0e0;
    border-color: #4a6a8a;
  }

  .odds-box-compact:hover {
    background: #3b5068;
  }
}



/* Ensure all containers stay within viewport */
.container, .main-content, .wallet-container, .admin-chat-container,
.dashboard-cards, .stats-grid, .accounts-grid,
.admin-grid, .announcement-grid, .slideshow-card {
  max-width: 100%;
  overflow-x: hidden;
  padding-left: max(10px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
}

/* Numbered list styling for match rows (applies to both .match-row and .match-card on small screens) */
.match-list-container {
  counter-reset: match-counter;  /* Reset counter for each league group */
}

/* For the existing match rows (if using .match-row) */
.match-row {

  position: relative;
  padding-left: 3rem;  /* Make room for the number */
}

.match-row::before {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-color, #FFA62B);
  background: rgba(255, 166, 43, 0.1);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
}

/* If you still use .match-card (grid cards), transform them into a stacked list on smaller screens */
@media (max-width: 768px) {

  .match-card {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 60px;  /* Match the row style */
    position: relative;
    padding-left: 3.5rem;
  }
  
  .match-card::before {
    content: counter(match-counter) ".";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    background: rgba(255, 166, 43, 0.1);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
  }
  
  /* Adjust internal layout of match-card to be row-like */
  .match-card .match-header,
  .match-card .teams-section,
  .match-card .betting-section {
    padding: 0.5rem 0;
  }
  
  .match-card .teams-row {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }
  
  .match-card .team {
    flex-direction: row;
    width: auto;
  }
  
  .match-card .team-logo {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .match-card .team-name {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .match-card .odds-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

/* Ensure tables never cause horizontal scroll */
.transactions-table,
.my-bets-table,
.super-table,
.admin-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* For very small screens, further compact the list numbers */
@media (max-width: 480px) {
  .match-row, .match-card {
    padding-left: 2.8rem;
  }
  
  .match-row::before, .match-card::before {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1rem;
    left: 0.5rem;
  }
}


/* ===== ADDITIONAL SAFEGUARDS ===== */

/* Force all images and media to be responsive */
img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

/* Ensure flex items wrap and don't overflow */
.flex-row, .row, .form-row, .action-buttons {
  flex-wrap: wrap;
}

/* Final touch: hide any potential overflow from pseudo-elements */
*::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}



/* Match row clickable */
.match-row {
    cursor: pointer;
    transition: all 0.2s;
}
.match-row:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

/* VIP indicator */
.vip-indicator {
    margin-left: auto;
    color: var(--vip-gold);
    font-size: 1.2rem;
}

/* Match Details Modal */
#matchDetailsModal .match-details h4 {
    color: white;
    margin-bottom: 0.5rem;
}
#matchDetailsModal .match-meta {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
#matchDetailsModal .odds-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}
#matchDetailsModal .odds-box {
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    min-width: 100px;
    text-align: center;
    transition: all 0.2s;
}
#matchDetailsModal .odds-box.selectable {
    cursor: pointer;
}
#matchDetailsModal .odds-box.selectable:hover,
#matchDetailsModal .odds-box.selected {
    border-color: var(--accent-color);
    background: rgba(255,166,43,0.1);
}
#matchDetailsModal .odds-type {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-color);
}
#matchDetailsModal .odds-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}
.btn-add-multi {
    background: var(--vip-gold);
    border: none;
    color: #1a2a3a;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.btn-add-multi:hover {
    background: #e6c200;
}
.multi-note {
    text-align: center;
    color: var(--vip-gold);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ===== MOBILE: SINGLE‑COLUMN MATCH LIST ===== */
@media (max-width: 768px) {
    .league-group {
        padding: 1rem 0.5rem;
    }

    .league-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .league-header h3 {
        font-size: 1.2rem;
    }

    .match-row {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 20px;
        margin-bottom: 0.75rem;
        width: 100%;
        position: relative; /* For absolute positioning of VIP indicator */
    }

    .match-info-compact {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .match-competition {
        font-size: 0.8rem;
        max-width: 50%;
        white-space: normal;
        word-break: break-word;
    }

    .match-datetime,
    .match-venue {
        font-size: 0.7rem;
    }

    .match-teams-compact {
        width: 100%;
        justify-content: space-between;
        margin: 0.5rem 0;
        flex-wrap: nowrap;
    }

    .team-compact {
        flex: 1;
        min-width: 0; /* Allow text to shrink */
    }

    .team-compact .team-abbr {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    .team-compact .team-name {
        font-size: 0.8rem;
        white-space: normal;
        word-break: break-word;
        max-width: 100%;
    }

    .vs-compact {
        font-size: 0.8rem;
        margin: 0 0.25rem;
    }
    .bet-btn-compact {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .bet-btn-compact i {
        font-size: 0.8rem;
    }

    /* VIP indicator – place it in the top‑right corner */
    .vip-indicator {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1rem;
    }
}

/* ===== EXTRA SMALL DEVICES (≤480px) ===== */
@media (max-width: 480px) {
    .match-info-compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-competition,
    .match-datetime,
    .match-venue {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .team-compact .team-name {
        font-size: 0.75rem;
    }
}

/* ===== MOBILE: SINGLE‑COLUMN MATCH LIST ===== */
@media (max-width: 768px) {
  .league-group {
    padding: 1rem 0.5rem;
  }
  
  .league-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .league-header h3 {
    font-size: 1.2rem;
  }
  
  .match-row {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    width: 100%;
    position: relative;
  }
  
  .match-info-compact {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .match-competition {
    font-size: 0.8rem;
    max-width: 50%;
    white-space: normal;
    word-break: break-word;
  }
  
  .match-datetime,
  .match-venue {
    font-size: 0.7rem;
  }
  
  .match-teams-compact {
    width: 100%;
    justify-content: space-between;
    margin: 0.5rem 0;
    flex-wrap: nowrap;
  }
  
  .team-compact {
    flex: 1;
    min-width: 0;
  }
  
  .team-compact .team-abbr {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
  }
  
  .team-compact .team-name {
    font-size: 0.8rem;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }
  
  .vs-compact {
    font-size: 0.8rem;
    margin: 0 0.25rem;
  }
  

  
  .bet-btn-compact {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .bet-btn-compact i {
    font-size: 0.8rem;
  }
  
  .vip-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1rem;
  }
}

/* ===== EXTRA SMALL DEVICES (≤480px) ===== */
@media (max-width: 480px) {
  .match-info-compact {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .match-competition,
  .match-datetime,
  .match-venue {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  
  /* Stack teams vertically */
  .match-teams-compact {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .team-compact {
    width: 100%;
    justify-content: center;
  }
  
  .team-compact .team-name {
    font-size: 0.75rem;
    white-space: normal;
    text-align: center;
  }
  
  .vs-compact {
    font-size: 0.8rem;
    margin: 0.25rem 0;
  }
}

@media (max-width: 768px) {
    /* ... existing styles ... */

    .match-teams-compact {
        flex-direction: column;   /* Stack home and away vertically */
        align-items: center;      /* Center them horizontally */
        gap: 0.25rem;             /* Minimal space between them */
        width: 100%;
        margin: 0.25rem 0;
    }

    .team-compact {
        width: 100%;              /* Take full width */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .vs-compact {
        display: none;             /* Hide VS to save space (optional) */
    }

    .match-odds-compact {
        margin-top: 0.25rem;
    }
}

/* ===== TOP NAVIGATION – STICKY & STACKED ON MOBILE ===== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow);
}

/* On screens ≤ 768px, stack all children vertically */
@media (max-width: 768px) {
    .top-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .nav-brand {
        justify-content: center;
        margin-bottom: 8px;
    }

    .user-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .user-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .user-name {
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
    }

    .user-balance {
        width: 100%;
        justify-content: center;
    }

    .language-switcher {
        order: -1; /* Move language switcher to the top if desired */
        margin: 0 0 5px 0;
        width: 100%;
        text-align: center;
    }

    .lang-btn-dashboard {
        width: 100%;
        justify-content: center;
    }

    .user-avatar {
        align-self: center;
    }

    .logout-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== RESPONSIVE SEARCH AND FILTER STYLES ===== */

/* Main Search Card */
.search-card {
    background: linear-gradient(145deg, var(--secondary-color), #1a2f3f);
    border-radius: 30px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Search Wrapper */
.search-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    background: rgba(0,0,0,0.3);
    border: 2px solid transparent;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255,166,43,0.2);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.search-clear:hover {
    color: var(--accent-color);
}

/* Filter Toggle (Mobile) */
.filter-toggle {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    color: white;
    align-items: center;
    justify-content: space-between;
}

.filter-toggle i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.filter-badge {
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Filters Container */
.filters-container {
    display: block;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Filter Group */
.filter-group {
    flex: 1;
}

.filter-label {
    display: block;
    color: var(--gray-color);
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.filter-label i {
    color: var(--accent-color);
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

.filter-select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:hover {
    border-color: var(--accent-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255,166,43,0.1);
}

.filter-select option {
    background: var(--secondary-color);
    color: white;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    align-items: flex-end;
}

.btn-clear-filters {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    color: var(--gray-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-clear-filters:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
    min-height: 30px;
}

.filter-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

.filter-tag i {
    cursor: pointer;
    font-size: 0.7rem;
}

.filter-tag i:hover {
    color: var(--danger-color);
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    color: var(--gray-color);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray-color);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .search-card {
        padding: 2rem;
    }
    
    .filters-row {
        gap: 1.5rem;
    }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .filters-row {
        gap: 1rem;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .filters-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-actions {
        grid-column: span 2;
    }
    
    .btn-clear-filters {
        width: auto;
        padding: 0.7rem 2rem;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .filters-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filter-toggle {
        display: flex;
    }
    
    .filters-container {
        display: none;
    }
    
    .filters-container.show {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .filter-actions {
        margin-top: 0.5rem;
    }
    
    .btn-clear-filters {
        width: 100%;
    }
}

/* Mobile (≤575px) */
@media (max-width: 575px) {
    .search-card {
        padding: 1rem;
        border-radius: 20px;
    }
    
    .search-input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .filter-toggle {
        display: flex;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .filters-container {
        display: none;
    }
    
    .filters-container.show {
        display: block;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filter-label {
        font-size: 0.75rem;
    }
    
    .filter-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-clear-filters {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .results-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        font-size: 0.85rem;
    }
    
    .filter-tag {
        padding: 0.2rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Ultra Small Devices (≤400px) */
@media (max-width: 400px) {
    .search-card {
        padding: 0.75rem;
    }
    
    .search-input {
        padding: 0.7rem 0.7rem 0.7rem 2.2rem;
        font-size: 0.85rem;
    }
    
    .filter-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .filter-select {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .filters-container {
        max-height: 200px;
        overflow-y: auto;
    }
    
    .filters-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== USER DASHBOARD TOP NAVIGATION - FULLY RESPONSIVE ===== */

        /* Top Navigation */
        .top-nav {
            background: white;
            padding: 15px 20px;
            box-shadow: var(--shadow);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 3px solid var(--accent-color);
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-brand i {
            color: var(--accent-color);
            font-size: 1.5rem;
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
        }

        .user-info {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .user-role {
            font-size: 0.8rem;
            color: var(--gray-color);
        }

        .logout-btn {
            background: transparent;
            border: none;
            color: var(--danger-color);
            cursor: pointer;
            padding: 8px 15px;
            border-radius: 5px;
            transition: var(--transition);
        }

        .logout-btn:hover {
            background: var(--danger-color);
            color: white;
        }
        

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-brand i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.nav-brand h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
}

.nav-brand h2 span {
    color: var(--accent-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 40px;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    display: flex;
    align-items: center;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-user {
    background: var(--primary-color);
    color: white;
}

.user-balance {
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.user-balance i {
    font-size: 0.9rem;
}

.language-switcher {
    flex-shrink: 0;
}

.lang-btn-dashboard {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn-dashboard:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.logout-btn {
    background: transparent;
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

/* ===== TABLET (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav-brand h2 {
        font-size: 1.2rem;
    }

    .user-menu {
        gap: 10px;
    }

    .user-info {
        padding: 4px 10px;
        gap: 8px;
    }

    .user-name {
        max-width: 120px;
        font-size: 0.9rem;
    }

    .user-balance {
        padding: 4px 10px;
        font-size: 0.85rem;
    }

    .lang-btn-dashboard {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .logout-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

/* ===== SMALL TABLETS & LARGE PHONES (576px - 767px) ===== */
@media (min-width: 576px) and (max-width: 767px) {
    .nav-brand {
        justify-content: center;
        margin-bottom: 5px;
    }

    .user-menu {
        justify-content: center;
        gap: 8px;
    }

    .user-info {
        width: 100%;
        justify-content: center;
        order: 1;
        margin-bottom: 5px;
    }

    .user-name {
        max-width: none;
    }

    .language-switcher {
        order: 2;
    }

    .user-avatar {
        order: 3;
    }

    .logout-btn {
        order: 4;
        padding: 6px 12px;
    }
}

/* ===== MOBILE (≤575px) ===== */
@media (max-width: 575px) {
    .nav-brand {
        justify-content: center;
    }

    .nav-brand h2 {
        font-size: 1.1rem;
    }

    .nav-brand i {
        font-size: 1.3rem;
    }

    .user-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .user-info {
        width: 100%;
        justify-content: center;
        padding: 6px 10px;
        order: 1;
        margin-bottom: 5px;
        background: transparent;
        border: 1px solid #e0e0e0;
    }

    .user-name {
        font-size: 0.85rem;
        max-width: 100px;
    }

    .user-role {
        display: none; /* Hide role on very small screens to save space */
    }

    .user-balance {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .user-balance i {
        font-size: 0.8rem;
    }

    .language-switcher {
        order: 2;
        margin-right: 0 !important;
    }

    .lang-btn-dashboard {
        padding: 5px 8px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .lang-btn-dashboard i {
        font-size: 0.8rem;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        order: 3;
    }

    .logout-btn {
        order: 4;
        padding: 5px 10px;
        font-size: 0.75rem;
        border-width: 1px;
        gap: 4px;
    }

    .logout-btn i {
        font-size: 0.8rem;
    }
}

/* ===== VERY SMALL DEVICES (≤400px) ===== */
@media (max-width: 400px) {
    .nav-brand h2 {
        font-size: 1rem;
    }

    .user-info {
        padding: 4px 8px;
        flex-wrap: wrap;
        gap: 5px;
    }

    .user-name {
        font-size: 0.8rem;
        max-width: 80px;
    }

    .user-balance {
        padding: 3px 6px;
        font-size: 0.75rem;
    }

    .language-switcher {
        margin-right: 0;
    }

    .lang-btn-dashboard {
        padding: 4px 6px;
        font-size: 0.7rem;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .logout-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* ===== ULTRA-SMALL DEVICES (≤360px) ===== */
@media (max-width: 360px) {
    .user-info {
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }

    .user-name {
        max-width: none;
        text-align: center;
    }

    .user-balance {
        width: 100%;
        justify-content: center;
    }

    .language-switcher {
        width: 100%;
        text-align: center;
    }

    .lang-btn-dashboard {
        width: 100%;
        justify-content: center;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }
}

/* ===== LANDSCAPE MODE ON MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .user-info {
        padding: 3px 8px;
    }

    .user-name {
        max-width: 100px;
    }
}

/* ===== DESKTOP (1025px and above) ===== */
@media (min-width: 1025px) {
    .nav-brand h2 {
        font-size: 1.5rem;
    }

    .nav-brand i {
        font-size: 1.8rem;
    }

    .user-menu {
        gap: 20px;
    }

    .user-info {
        padding: 6px 15px;
        gap: 15px;
    }

    .user-name {
        font-size: 1rem;
        max-width: 200px;
    }

    .user-balance {
        padding: 6px 15px;
        font-size: 1rem;
    }

    .lang-btn-dashboard {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .user-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .logout-btn {
        padding: 8px 20px;
        font-size: 1rem;
    }
}

/* ===== LARGE SCREENS (1441px and above) ===== */
@media (min-width: 1441px) {
    .nav-brand h2 {
        font-size: 1.8rem;
    }

    .nav-brand i {
        font-size: 2rem;
    }

    .user-name {
        font-size: 1.1rem;
        max-width: 250px;
    }

    .user-balance {
        font-size: 1.1rem;
    }
}


/* ===== ADD THIS TO YOUR MAIN CONTENT TO PREVENT OVERLAP ===== */
.dashboard .main-content {
    padding-top: 20px;
    padding-bottom: 80px; /* Space for bottom nav */
}

@media (min-width: 1025px) {
    .dashboard .main-content {
        padding-bottom: 40px;
    }
}

/* ===== RESPONSIVE GRID ADJUSTMENTS FOR DASHBOARD CARDS ===== */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card {
        padding: 15px;
    }

    .card-value {
        font-size: 1.5rem;
    }
}

/* ===== MATCHES SECTION SPECIFIC STYLES ===== */
/* These classes are prefixed with 'matches-' to avoid conflicts */

.matches-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Wrapper */
.matches-search-wrapper {
    background: linear-gradient(145deg, var(--secondary-color), #1a2f3f);
    border-radius: 30px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Search Box */
.matches-search-box {
    position: relative;
    margin-bottom: 1.25rem;
}

.matches-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1rem;
    z-index: 1;
}

.matches-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    background: rgba(0,0,0,0.3);
    border: 2px solid transparent;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.matches-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255,166,43,0.2);
}

.matches-search-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.matches-clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.matches-clear-search:hover {
    color: var(--accent-color);
}

/* Filter Toggle (Mobile) */
.matches-filter-toggle {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    color: white;
    align-items: center;
    justify-content: space-between;
}

.matches-filter-toggle i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.matches-filter-badge {
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Filters Panel */
.matches-filters-panel {
    display: block;
}

.matches-filters-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Filter Group */
.matches-filter-group {
    flex: 1;
}

.matches-filter-label {
    display: block;
    color: var(--gray-color);
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.matches-filter-label i {
    color: var(--accent-color);
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

.matches-filter-select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.matches-filter-select:hover {
    border-color: var(--accent-color);
}

.matches-filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255,166,43,0.1);
}

.matches-filter-select option {
    background: var(--secondary-color);
    color: white;
}

/* Filter Actions */
.matches-filter-actions {
    display: flex;
    align-items: flex-end;
}

.matches-clear-filters {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    color: var(--gray-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.matches-clear-filters:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Active Filters */
.matches-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
    min-height: 30px;
}

.matches-filter-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

.matches-filter-tag i {
    cursor: pointer;
    font-size: 0.7rem;
}

.matches-filter-tag i:hover {
    color: var(--danger-color);
}

/* Results Info */
.matches-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    color: var(--gray-color);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Loading State */
.matches-loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray-color);
}

/* No Results State */
.matches-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    color: var(--gray-color);
}

.matches-no-results i {
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.matches-no-results h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.matches-no-results p {
    margin-bottom: 2rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .matches-search-wrapper {
        padding: 2rem;
    }
    
    .matches-filters-row {
        gap: 1.5rem;
    }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .matches-filters-row {
        gap: 1rem;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .matches-filters-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .matches-filter-actions {
        grid-column: span 2;
    }
    
    .matches-clear-filters {
        width: auto;
        padding: 0.7rem 2rem;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .matches-search-wrapper {
        padding: 1.25rem;
    }
    
    .matches-filters-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .matches-filter-toggle {
        display: flex;
    }
    
    .matches-filters-panel {
        display: none;
    }
    
    .matches-filters-panel.show {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .matches-filter-actions {
        margin-top: 0.5rem;
    }
    
    .matches-clear-filters {
        width: 100%;
    }
}

/* Mobile (≤575px) */
@media (max-width: 575px) {
    .matches-container {
        padding: 10px;
    }
    
    .matches-search-wrapper {
        padding: 1rem;
        border-radius: 20px;
    }
    
    .matches-search-input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .matches-filter-toggle {
        display: flex;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .matches-filters-panel {
        display: none;
    }
    
    .matches-filters-panel.show {
        display: block;
    }
    
    .matches-filters-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .matches-filter-label {
        font-size: 0.75rem;
    }
    
    .matches-filter-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .matches-clear-filters {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .matches-results-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        font-size: 0.85rem;
    }
    
    .matches-filter-tag {
        padding: 0.2rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Ultra Small Devices (≤400px) */
@media (max-width: 400px) {
    .matches-search-wrapper {
        padding: 0.75rem;
    }
    
    .matches-search-input {
        padding: 0.7rem 0.7rem 0.7rem 2.2rem;
        font-size: 0.85rem;
    }
    
    .matches-filter-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .matches-filter-select {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .matches-filters-panel {
        max-height: 200px;
        overflow-y: auto;
    }
    
    .matches-filters-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TOP NAVIGATION WITH LEFT/RIGHT SIDES ===== */
/* Preserves all original styling while adding left/right layout */

/* Base Styles */
.top-nav {
    background: white;
    padding: 15px 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== LEFT SIDE ===== */
.nav-left {
    flex: 0 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.nav-brand h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.nav-brand h2 span {
    color: var(--accent-color);
}

/* ===== RIGHT SIDE ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Desktop Menu - Contains all original elements in original layout */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Original User Info - Exactly as it was */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 40px;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    display: flex;
    align-items: center;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-user {
    background: var(--primary-color);
    color: white;
}

.user-balance {
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.user-balance i {
    font-size: 0.9rem;
}

/* Original Language Switcher */
.language-switcher {
    flex-shrink: 0;
}

.lang-btn-dashboard {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn-dashboard:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

/* Original User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

/* Original Logout Button */
.logout-btn {
    background: transparent;
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--secondary-color);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu (Dropdown) */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu-content {
    padding: 20px;
}

/* Mobile versions - exactly matching original styles */
.user-info.mobile-version {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.user-info.mobile-version .user-name {
    max-width: 100%;
    font-size: 1rem;
    margin-bottom: 5px;
}

.user-info.mobile-version .user-balance {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
}

.language-switcher.mobile-version {
    width: 100%;
    margin-bottom: 10px;
}

.lang-btn-dashboard.mobile-lang {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

.user-avatar.mobile-version {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin: 10px auto;
}

.logout-btn.mobile-version {
    width: 100%;
    justify-content: center;
    padding: 12px;
    margin-top: 10px;
}

.mobile-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .nav-brand h2 {
        font-size: 1.5rem;
    }
    
    .nav-brand i {
        font-size: 1.8rem;
    }
    
    .user-info {
        padding: 6px 15px;
        gap: 15px;
    }
    
    .user-name {
        font-size: 1rem;
        max-width: 200px;
    }
    
    .user-balance {
        padding: 6px 15px;
        font-size: 1rem;
    }
    
    .lang-btn-dashboard {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .user-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .logout-btn {
        padding: 8px 20px;
        font-size: 1rem;
    }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-brand h2 {
        font-size: 1.3rem;
    }
    
    .user-info {
        padding: 5px 12px;
        gap: 10px;
    }
    
    .user-name {
        font-size: 0.95rem;
        max-width: 150px;
    }
    
    .user-balance {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
    
    .lang-btn-dashboard {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .logout-btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .nav-brand h2 {
        font-size: 1.2rem;
    }
    
    .user-info {
        padding: 4px 10px;
        gap: 8px;
    }
    
    .user-name {
        font-size: 0.9rem;
        max-width: 120px;
    }
    
    .user-balance {
        padding: 4px 10px;
        font-size: 0.85rem;
    }
    
    .lang-btn-dashboard {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .logout-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .top-nav {
        padding: 10px 15px;
    }
    
    /* Hide desktop menu on mobile */
    .desktop-menu {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile menu appears */
    .mobile-menu {
        display: block;
    }
    
    /* Adjust left side for mobile */
    .nav-brand h2 {
        font-size: 1.2rem;
    }
    
    .nav-brand i {
        font-size: 1.4rem;
    }
}

/* Small Mobile (≤575px) */
@media (max-width: 575px) {
    .top-nav {
        padding: 8px 12px;
    }
    
    .nav-brand h2 {
        font-size: 1.1rem;
    }
    
    .nav-brand i {
        font-size: 1.3rem;
    }
    
    .mobile-menu-content {
        padding: 15px;
    }
}

/* Ultra Small (≤400px) */
@media (max-width: 400px) {
    .nav-brand h2 {
        font-size: 1rem;
    }
    
    .nav-brand i {
        font-size: 1.2rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-menu.active {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .mobile-menu-content {
        padding: 15px;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== COMPLETE REFUND SYSTEM CSS ==================== */

/* Refund Header Section */
.refund-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(145deg, var(--secondary-color), #0f2a33);
    border-radius: 20px;
    border: 1px solid rgba(255, 166, 43, 0.3);
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-left h2 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left h2 i {
    color: var(--accent-color);
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

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

.header-description {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-left: 40px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Refresh Button */
.btn-refresh {
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 166, 43, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-refresh::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-refresh:hover::before {
    width: 300px;
    height: 300px;
}

.btn-refresh:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 166, 43, 0.5);
}

.btn-refresh:active:not(:disabled) i {
    transform: rotate(360deg);
}

.btn-refresh i {
    transition: transform 0.5s ease;
}

.btn-refresh.refreshing {
    pointer-events: none;
    opacity: 0.8;
}

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

/* Last Updated */
.last-updated {
    color: var(--gray-color);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.last-updated i {
    color: var(--accent-color);
    font-size: 0.9rem;
    animation: tick 2s infinite;
}

@keyframes tick {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Refund Stats Summary */
.refund-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.refund-stats-summary .stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 18px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 166, 43, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.refund-stats-summary .stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 166, 43, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.refund-stats-summary .stat-card:hover::after {
    opacity: 1;
}

.refund-stats-summary .stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, rgba(255, 166, 43, 0.1), rgba(0, 0, 0, 0.3));
}

.refund-stats-summary .stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 166, 43, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-color);
    border: 1px solid rgba(255, 166, 43, 0.3);
    transition: all 0.3s ease;
}

.refund-stats-summary .stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 166, 43, 0.25);
}

.refund-stats-summary .stat-info {
    flex: 1;
}

.refund-stats-summary .stat-label {
    display: block;
    color: var(--gray-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.refund-stats-summary .stat-value {
    display: block;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Refund Filters */
.refund-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--gray-color);
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 166, 43, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.filter-btn:hover::before {
    width: 100%;
    height: 100%;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-color), #FF8C00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 166, 43, 0.3);
}

.filter-btn.active::before {
    display: none;
}

/* Refund Matches Grid */
.refund-matches-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

/* Refund Match Card */
.refund-match-card {
    background: linear-gradient(145deg, var(--secondary-color), #0f2a33);
    border-radius: 24px;
    padding: 25px;
    border: 2px solid rgba(255, 166, 43, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: cardAppear 0.3s ease-out;
}

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

.refund-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #FF8C00, var(--accent-color));
    opacity: 0.5;
}

.refund-match-card.pending {
    border: 2px solid rgba(255, 166, 43, 0.5);
}

.refund-match-card.refunded {
    border: 3px solid var(--success-color);
    background: linear-gradient(145deg, rgba(46, 204, 113, 0.1), var(--secondary-color));
}

.refund-match-card.refunded::before {
    background: linear-gradient(90deg, var(--success-color), #27ae60, var(--success-color));
    opacity: 0.8;
}

.refund-match-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.refund-match-card.refunded:hover {
    border-color: var(--success-color);
}

/* Match Header */
.refund-match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.match-info {
    flex: 2;
    min-width: 300px;
}

.match-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.match-title h4 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.match-title h4 i {
    color: var(--accent-color);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: linear-gradient(135deg, rgba(255, 166, 43, 0.2), rgba(255, 140, 0, 0.2));
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.status-badge.refunded {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.status-badge i {
    font-size: 1rem;
}

.match-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.match-meta span {
    color: var(--gray-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.match-meta i {
    color: var(--accent-color);
}

.match-result {
    background: rgba(255, 166, 43, 0.1);
    padding: 10px 18px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-weight: 500;
    border: 1px solid rgba(255, 166, 43, 0.3);
    font-size: 0.95rem;
}

.match-result i {
    font-size: 1rem;
}

/* Match Stats */
.match-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    min-width: 300px;
}

.stat-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 16px;
    text-align: center;
    flex: 1;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-badge:hover::after {
    opacity: 1;
}

.stat-badge:hover {
    transform: translateY(-3px);
}

.stat-badge.lost { 
    border-left: 4px solid var(--danger-color);
    background: linear-gradient(145deg, rgba(231, 76, 60, 0.1), rgba(0, 0, 0, 0.3));
}
.stat-badge.users { 
    border-left: 4px solid var(--accent-color);
    background: linear-gradient(145deg, rgba(255, 166, 43, 0.1), rgba(0, 0, 0, 0.3));
}
.stat-badge.amount { 
    border-left: 4px solid var(--success-color);
    background: linear-gradient(145deg, rgba(46, 204, 113, 0.1), rgba(0, 0, 0, 0.3));
}

.stat-label {
    display: block;
    color: var(--gray-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Refund Details Section */
.refund-details {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 18px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.refund-details:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 166, 43, 0.2);
}

.bets-breakdown {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.breakdown-item:hover {
    background: rgba(255, 166, 43, 0.1);
    color: white;
    transform: translateX(5px);
}

.breakdown-item i {
    color: var(--accent-color);
    font-size: 1rem;
}

.users-list-preview h5 {
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.users-list-preview h5::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.user-preview-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    animation: itemSlide 0.2s ease-out;
}

@keyframes itemSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-preview-item:hover {
    background: rgba(255, 166, 43, 0.1);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.user-preview-item i {
    color: var(--accent-color);
}

.more-users {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px 15px;
    background: rgba(255, 166, 43, 0.1);
    border-radius: 30px;
    display: inline-block;
}

/* Refund Summary */
.refund-summary {
    margin-top: 20px;
    padding: 20px;
    background: rgba(46, 204, 113, 0.08);
    border-radius: 16px;
    border-left: 4px solid var(--success-color);
    border: 1px solid rgba(46, 204, 113, 0.3);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(46, 204, 113, 0.3); }
    50% { box-shadow: 0 0 20px rgba(46, 204, 113, 0.5); }
}

.refund-summary h5 {
    color: var(--success-color);
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refund-summary h5 i {
    font-size: 1.1rem;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: var(--success-color);
    font-size: 1.1rem;
}

.summary-item .positive {
    color: #2ecc71;
    font-weight: bold;
}

/* Refund Actions */
.refund-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-refund {
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    flex: 2;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-refund::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-refund:hover::before {
    width: 300px;
    height: 300px;
}

.btn-refund:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.5);
    background: linear-gradient(135deg, #27ae60, var(--success-color));
}

.btn-refund:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
    background: var(--gray-color);
}

.btn-cancel {
    background: linear-gradient(135deg, var(--gray-color), #5a6268);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.5);
    background: linear-gradient(135deg, #5a6268, var(--gray-color));
}

.btn-delete {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-delete::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-delete:hover::before {
    width: 300px;
    height: 300px;
}

.btn-delete:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, #c0392b, var(--danger-color));
}

.btn-details {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-details:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

/* Refund History Table */
.refund-history-table {
    overflow-x: auto;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 5px;
}

.refund-history-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.refund-history-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--gray-color);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refund-history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.refund-history-table tr:hover td {
    background: rgba(255, 166, 43, 0.05);
}

.refund-history-table .deleted-row {
    background: rgba(231, 76, 60, 0.05);
    opacity: 0.7;
}

.refund-history-table .positive {
    color: #2ecc71;
    font-weight: 600;
}

.refund-history-table .status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.completed {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-badge.deleted {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Refund Details Modal */
.refund-details-modal {
    max-height: 70vh;
    overflow-y: auto;
    padding: 5px;
}

.refund-details-modal h3 {
    color: var(--accent-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 166, 43, 0.3);
}

.details-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.details-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-section h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.details-table th {
    text-align: left;
    padding: 12px 10px;
    color: var(--gray-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.details-table td {
    padding: 10px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.details-table .positive {
    color: #2ecc71;
    font-weight: 600;
}

.details-table .no-data {
    text-align: center;
    color: var(--gray-color);
    padding: 20px;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 60px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 24px;
    border: 1px solid rgba(255, 166, 43, 0.1);
}

.loading-state i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-state p {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.loading-state small {
    color: var(--gray-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 60px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.no-data i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-data h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-data p {
    color: var(--gray-color);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 50px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 24px;
    border: 1px solid var(--danger-color);
}

.error-state i {
    font-size: 3.5rem;
    color: var(--danger-color);
    margin-bottom: 20px;
}

.error-state h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.error-state p {
    color: var(--gray-color);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 166, 43, 0.3);
}

.btn-secondary {
    background: var(--gray-color);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: var(--accent-color);
    background: rgba(255, 166, 43, 0.1);
    transform: scale(1.1);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .refund-stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .refund-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .refund-header {
        padding: 15px;
    }
    
    .header-left h2 {
        font-size: 1.3rem;
    }
    
    .header-description {
        margin-left: 0;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-refresh {
        width: 100%;
        justify-content: center;
    }
    
    .last-updated {
        width: 100%;
        justify-content: center;
    }
    
    .refund-stats-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .refund-match-card {
        padding: 20px;
    }
    
    .match-title h4 {
        font-size: 1.2rem;
    }
    
    .match-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .match-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-badge {
        width: 100%;
    }
    
    .refund-actions {
        flex-direction: column;
    }
    
    .btn-refund, .btn-cancel, .btn-delete, .btn-details {
        width: 100%;
    }
    
    .refund-filters {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .refund-history-table {
        font-size: 0.8rem;
    }
    
    .refund-history-table th,
    .refund-history-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .refund-header {
        padding: 12px;
    }
    
    .header-left h2 {
        font-size: 1.1rem;
    }
    
    .header-left h2 i {
        font-size: 1.3rem;
    }
    
    .header-description {
        font-size: 0.8rem;
    }
    
    .btn-refresh {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .last-updated {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .refund-stats-summary .stat-card {
        padding: 15px;
    }
    
    .refund-stats-summary .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .refund-stats-summary .stat-value {
        font-size: 1.2rem;
    }
    
    .match-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .match-title h4 {
        font-size: 1.1rem;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .match-result {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .bets-breakdown {
        flex-direction: column;
        gap: 8px;
    }
    
    .breakdown-item {
        width: 100%;
    }
    
    .user-preview-item {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .refund-summary {
        padding: 15px;
    }
    
    .summary-item {
        font-size: 0.85rem;
    }
    
    .details-table {
        font-size: 0.75rem;
    }
    
    .details-table th,
    .details-table td {
        padding: 6px 4px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .refund-actions,
    .btn-refresh,
    .filter-btn,
    .btn-icon {
        display: none !important;
    }
    
    .refund-match-card {
        break-inside: avoid;
        border: 1px solid #000;
        background: white;
        color: black;
    }
    
    .refund-match-card * {
        color: black !important;
    }
    
    .refund-match-card::before,
    .refund-match-card::after {
        display: none;
    }
}

/* Custom Scrollbar */
.refund-details-modal::-webkit-scrollbar,
.refund-history-table::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.refund-details-modal::-webkit-scrollbar-track,
.refund-history-table::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.refund-details-modal::-webkit-scrollbar-thumb,
.refund-history-table::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.refund-details-modal::-webkit-scrollbar-thumb:hover,
.refund-history-table::-webkit-scrollbar-thumb:hover {
    background: #FF8C00;
}

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

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

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

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

/* Utility Classes */
.text-success { color: #2ecc71 !important; }
.text-danger { color: #e74c3c !important; }
.text-warning { color: #f39c12 !important; }
.text-info { color: #3498db !important; }

.bg-success { background: rgba(46, 204, 113, 0.1); }
.bg-danger { background: rgba(231, 76, 60, 0.1); }
.bg-warning { background: rgba(243, 156, 18, 0.1); }
.bg-info { background: rgba(52, 152, 219, 0.1); }

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Hover Effects */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Focus States */
button:focus,
.btn:focus,
.filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 166, 43, 0.3);
}

/* Disabled States */
button:disabled,
.btn:disabled,
.filter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== REINSTATE REFUND CSS ==================== */

/* Reinstate Button */
.btn-reinstate {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-reinstate::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-reinstate:hover::before {
    width: 300px;
    height: 300px;
}

.btn-reinstate:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.btn-reinstate:active {
    transform: translateY(-1px);
}

.btn-reinstate i {
    font-size: 1.1rem;
    animation: reinstate-pulse 2s infinite;
}

@keyframes reinstate-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Cancelled Status Badge */
.status-badge.cancelled {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(243, 156, 18, 0.2));
    color: #f39c12;
    border: 1px solid #f39c12;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.2);
}

.status-badge.cancelled i {
    color: #f39c12;
}

/* Cancelled Match Card */
.refund-match-card.cancelled {
    border: 3px solid #f39c12;
    background: linear-gradient(145deg, rgba(241, 196, 15, 0.05), var(--secondary-color));
    position: relative;
    opacity: 0.9;
}

.refund-match-card.cancelled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #f1c40f, #f39c12);
    opacity: 0.8;
}

.refund-match-card.cancelled:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(241, 196, 15, 0.2);
    border-color: #f39c12;
}

/* Cancelled Summary Section */
.cancelled-summary {
    margin-top: 20px;
    padding: 20px;
    background: rgba(241, 196, 15, 0.08);
    border-radius: 16px;
    border-left: 4px solid #f39c12;
    border: 1px solid rgba(241, 196, 15, 0.3);
    animation: cancelled-glow 2s infinite;
}

@keyframes cancelled-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
    }
}

.cancelled-summary h5 {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancelled-summary h5 i {
    font-size: 1.1rem;
    animation: spin 4s linear infinite;
}

.cancelled-summary .summary-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cancelled-summary .summary-item {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.cancelled-summary .summary-item:last-child {
    border-bottom: none;
}

.cancelled-summary .summary-item strong {
    color: #f39c12;
    font-size: 1.1rem;
}

.cancelled-summary .summary-item .cancelled {
    color: #f39c12;
    font-weight: bold;
}

/* Cancelled Warning */
.cancelled-warning {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(241, 196, 15, 0.1);
    border-left: 4px solid #f39c12;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #f39c12;
    font-size: 0.95rem;
    border: 1px solid rgba(241, 196, 15, 0.3);
    backdrop-filter: blur(4px);
    animation: slideInRight 0.3s ease-out;
}

.cancelled-warning i {
    font-size: 1.3rem;
    color: #f39c12;
    animation: warning-pulse 2s infinite;
}

@keyframes warning-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Cancelled Banner in Modal */
.cancelled-banner {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(243, 156, 18, 0.15));
    border: 2px solid #f39c12;
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #f39c12;
    font-weight: 600;
    backdrop-filter: blur(4px);
    animation: slideDown 0.3s ease-out;
}

.cancelled-banner i {
    font-size: 2rem;
    color: #f39c12;
    animation: spin 8s linear infinite;
}

.cancelled-banner span {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Cancelled Row in History Table */
.cancelled-row {
    background: rgba(241, 196, 15, 0.05);
    transition: all 0.3s ease;
}

.cancelled-row:hover {
    background: rgba(241, 196, 15, 0.1);
}

.cancelled-row .status-badge.cancelled {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
    border: 1px solid rgba(241, 196, 15, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Filter Button for Cancelled */
.filter-btn[data-filter="cancelled"] {
    color: #f39c12;
    border-color: #f39c12;
}

.filter-btn[data-filter="cancelled"]:hover {
    background: rgba(241, 196, 15, 0.1);
}

.filter-btn[data-filter="cancelled"].active {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: white;
    border-color: #f39c12;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

/* Cancelled Stats Card */
.stat-badge.cancelled-stats {
    border-left: 4px solid #f39c12;
    background: linear-gradient(145deg, rgba(241, 196, 15, 0.1), rgba(0, 0, 0, 0.3));
}

.stat-badge.cancelled-stats .stat-value {
    color: #f39c12;
}

/* Reinstate Animation */
@keyframes reinstate {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-reinstate:active i {
    animation: reinstate-click 0.3s ease;
}

@keyframes reinstate-click {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Cancelled Match Card Hover Effects */
.refund-match-card.cancelled .match-info h4 i {
    color: #f39c12;
}

.refund-match-card.cancelled .match-meta i {
    color: #f39c12;
}

.refund-match-card.cancelled .match-result {
    background: rgba(241, 196, 15, 0.1);
    color: #f39c12;
    border-color: rgba(241, 196, 15, 0.3);
}

/* Cancelled Users List Preview */
.refund-match-card.cancelled .user-preview-item:hover {
    background: rgba(241, 196, 15, 0.1);
    border-color: #f39c12;
}

.refund-match-card.cancelled .user-preview-item i {
    color: #f39c12;
}

.refund-match-card.cancelled .more-users {
    color: #f39c12;
    background: rgba(241, 196, 15, 0.1);
}

/* Cancelled Breakdown Items */
.refund-match-card.cancelled .breakdown-item i {
    color: #f39c12;
}

.refund-match-card.cancelled .breakdown-item:hover {
    background: rgba(241, 196, 15, 0.1);
    color: white;
}

/* Stat Badges for Cancelled */
.refund-match-card.cancelled .stat-badge.lost {
    border-left-color: var(--danger-color);
}

.refund-match-card.cancelled .stat-badge.users {
    border-left-color: #f39c12;
}

.refund-match-card.cancelled .stat-badge.amount {
    border-left-color: var(--success-color);
}

/* Cancelled Status in Modal */
.details-section .cancelled-status {
    display: inline-block;
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(241, 196, 15, 0.3);
    margin-left: 10px;
}

/* Tooltip for Reinstate Button */
.btn-reinstate[title] {
    position: relative;
}

.btn-reinstate[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    margin-bottom: 5px;
    z-index: 1000;
}

/* Loading State for Reinstate */
.btn-reinstate.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-reinstate.loading i {
    animation: spin 1s linear infinite;
}

/* Success Animation after Reinstate */
@keyframes reinstate-success {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.reinstate-success {
    background: linear-gradient(90deg, #f39c12, #2ecc71, #f39c12);
    background-size: 200% 200%;
    animation: reinstate-success 1s ease;
}

/* Responsive Design for Cancelled Elements */
@media (max-width: 768px) {
    .cancelled-banner {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .cancelled-banner i {
        font-size: 1.5rem;
    }
    
    .cancelled-banner span {
        font-size: 0.95rem;
    }
    
    .btn-reinstate {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .cancelled-warning {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cancelled-summary .summary-item {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .cancelled-banner {
        padding: 10px;
    }
    
    .cancelled-banner span {
        font-size: 0.85rem;
    }
    
    .btn-reinstate {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .cancelled-summary {
        padding: 12px;
    }
    
    .cancelled-summary h5 {
        font-size: 0.9rem;
    }
    
    .cancelled-summary .summary-item {
        font-size: 0.8rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cancelled-banner {
        background: rgba(241, 196, 15, 0.1);
    }
    
    .cancelled-summary {
        background: rgba(241, 196, 15, 0.05);
    }
    
    .cancelled-warning {
        background: rgba(241, 196, 15, 0.05);
    }
}

/* Print Styles for Cancelled Records */
@media print {
    .btn-reinstate,
    .cancelled-warning i,
    .cancelled-banner i {
        display: none !important;
    }
    
    .cancelled-banner {
        border: 1px solid #f39c12;
        background: none;
        color: black;
    }
    
    .cancelled-summary {
        border: 1px solid #f39c12;
        background: none;
    }
    
    .status-badge.cancelled {
        border: 1px solid #f39c12;
        color: black;
        background: none;
    }
}

/* Custom Scrollbar for Cancelled Sections */
.cancelled-section::-webkit-scrollbar {
    width: 8px;
}

.cancelled-section::-webkit-scrollbar-track {
    background: rgba(241, 196, 15, 0.05);
    border-radius: 4px;
}

.cancelled-section::-webkit-scrollbar-thumb {
    background: #f39c12;
    border-radius: 4px;
}

.cancelled-section::-webkit-scrollbar-thumb:hover {
    background: #f1c40f;
}

/* Additional Animation for Reinstate Button */
.btn-reinstate {
    position: relative;
    z-index: 1;
}

.btn-reinstate::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #f39c12, #3498db, #f39c12);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-reinstate:hover::after {
    opacity: 0.5;
    filter: blur(8px);
}

/* Cancelled Stats Card in Summary */
.stat-card.cancelled-stats {
    background: linear-gradient(145deg, rgba(241, 196, 15, 0.1), rgba(0, 0, 0, 0.3));
    border-left: 4px solid #f39c12;
}

.stat-card.cancelled-stats .stat-icon {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
}

.stat-card.cancelled-stats .stat-value {
    color: #f39c12;
}

/* Cancelled Filter Active State */
.filter-btn.active[data-filter="cancelled"] {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

/* Cancelled Card Border Animation */
@keyframes cancelled-border {
    0% {
        border-color: #f39c12;
    }
    50% {
        border-color: #f1c40f;
    }
    100% {
        border-color: #f39c12;
    }
}

.refund-match-card.cancelled {
    animation: cancelled-border 3s infinite;
}

/* Tooltip for Cancelled Status */
.cancelled-tooltip {
    position: relative;
    cursor: help;
}

.cancelled-tooltip:hover::after {
    content: 'This refund was cancelled';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #f39c12;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    margin-bottom: 5px;
    z-index: 1000;
    border: 1px solid #f39c12;
}

/* Disabled State for Reinstate Button */
.btn-reinstate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--gray-color);
}

.btn-reinstate:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Success State after Reinstate */
.reinstate-complete {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    pointer-events: none;
}

.reinstate-complete i {
    animation: none !important;
}

/* Cancelled Match Card Inner Elements */
.refund-match-card.cancelled .match-title h4 i {
    color: #f39c12;
    animation: none;
}

.refund-match-card.cancelled .status-badge i {
    animation: none;
}

/* Hover Effects for Cancelled Cards */
.refund-match-card.cancelled:hover .cancelled-summary {
    background: rgba(241, 196, 15, 0.12);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Icon Animations */
@keyframes cancelled-icon {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.refund-match-card.cancelled:hover .status-badge i {
    animation: cancelled-icon 0.5s ease;
}

/* Focus States for Accessibility */
.btn-reinstate:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.5);
}

.filter-btn[data-filter="cancelled"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.5);
}

/* Ripple Effect for Reinstate Button */
.btn-reinstate .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    color: var(--gray-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: right;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.status-refunded {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.status-refunded::before {
    content: '↩';
    margin-right: 4px;
    font-size: 0.8rem;
}

/* Refunded status badge */
.status-refunded {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
    position: relative;
    padding-left: 24px;
}

.status-refunded::before {
    content: '↩';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: bold;
}

/* Profit display for refunded bets */
td[style*="color"] {
    transition: color 0.2s ease;
}

/* Tooltip for multi-bet details */
[title] {
    cursor: help;
}

/* Multi-level Bonus Styles */
.bonus-level-card {
    background: linear-gradient(145deg, rgba(255, 166, 43, 0.1), rgba(0, 0, 0, 0.2));
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 166, 43, 0.2);
}

.bonus-level-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    background: linear-gradient(145deg, rgba(255, 166, 43, 0.15), rgba(0, 0, 0, 0.25));
}

.bonus-percentage {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1;
}

.bonus-level {
    color: white;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.bonus-desc {
    color: var(--gray-color);
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

/* Earnings by level table */
.earnings-by-level {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.earnings-by-level th {
    background: rgba(255, 166, 43, 0.15);
    padding: 0.75rem;
    text-align: left;
    color: var(--accent-color);
    font-weight: 600;
}

.earnings-by-level td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.earnings-by-level .level-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.level-badge.level-1 {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.level-badge.level-2 {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.level-badge.level-3 {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

/* ===== WITHDRAWAL ELIGIBILITY BANNER ===== */
.eligibility-banner {
    background: linear-gradient(145deg, var(--secondary-color), #1a2f3f);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid rgba(255,166,43,0.3);
    transition: all 0.3s ease;
}

.eligibility-banner.eligible {
    border-color: var(--success-color);
    background: linear-gradient(145deg, rgba(46,204,113,0.1), #1a2f3f);
}

.eligibility-banner.not-eligible {
    border-color: var(--danger-color);
}

.eligibility-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.eligibility-header i {
    font-size: 2rem;
}

.eligibility-banner.eligible .eligibility-header i {
    color: var(--success-color);
}

.eligibility-banner.not-eligible .eligibility-header i {
    color: var(--danger-color);
}

.eligibility-title h4 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.eligibility-title p {
    color: var(--gray-color);
    margin: 0;
    font-size: 0.85rem;
}

/* Progress Bar */
.progress-container {
    margin: 15px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.progress-bar {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-color), #FF8C00);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.eligibility-banner.eligible .progress-fill {
    background: linear-gradient(90deg, var(--success-color), #27ae60);
}

/* Win Stats */
.win-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    flex-wrap: wrap;
}

.win-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.win-stats .stat-label {
    color: var(--gray-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.win-stats .stat-value {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.win-stats .stat-value.profit {
    color: var(--success-color);
}

/* Next Win Info */
.next-win-info {
    margin-top: 12px;
    padding: 10px;
    background: rgba(255,166,43,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-size: 0.85rem;
}

.next-win-info i {
    font-size: 1rem;
}

/* Disabled Withdraw Button */
#withdrawSection .btn-primary:disabled,
button[onclick*="submitWithdrawalRequest"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-color);
}

#withdrawSection .btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Referrals Modal Enhanced Styles */
.referral-stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.referral-stats-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255,166,43,0.2);
    transition: all 0.3s ease;
}

.referral-stats-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.referral-stats-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.referral-stats-card .stats-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.referral-stats-card .stats-label {
    color: var(--gray-color);
    font-size: 0.8rem;
}

.earnings-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.level-badge {
    text-align: center;
    padding: 0.5rem;
    border-radius: 10px;
}

.level-badge.level-1 {
    background: rgba(46,204,113,0.1);
    border-left: 3px solid #2ecc71;
}

.level-badge.level-2 {
    background: rgba(52,152,219,0.1);
    border-left: 3px solid #3498db;
}

.level-badge.level-3 {
    background: rgba(241,196,15,0.1);
    border-left: 3px solid #f1c40f;
}

.level-badge .level-title {
    font-size: 0.7rem;
    color: var(--gray-color);
    text-transform: uppercase;
}

.level-badge .level-percent {
    font-size: 1.2rem;
    font-weight: bold;
}

.level-badge.level-1 .level-percent { color: #2ecc71; }
.level-badge.level-2 .level-percent { color: #3498db; }
.level-badge.level-3 .level-percent { color: #f1c40f; }

.level-badge .level-count {
    font-size: 0.8rem;
    color: white;
}

.level-badge .level-earnings {
    font-size: 0.9rem;
    color: #2ecc71;
    font-weight: bold;
}

/* ===== SOCIAL LINKS STYLES ===== */
.social-modal-content {
    max-width: 600px;
}
.social-progress-section {
    margin-bottom: 1.5rem;
}
.social-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--gray-color);
}
.social-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.social-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #FF8C00);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}
.social-links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}
.social-link-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.social-link-card.verified {
    border-color: var(--success-color);
    background: rgba(46,204,113,0.05);
}
.social-link-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,166,43,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
}
.social-link-info {
    flex: 1;
}
.social-link-info h4 {
    margin: 0 0 0.25rem 0;
    color: white;
}
.social-link-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-color);
}
.social-follow-btn {
    background: var(--accent-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.social-follow-btn:hover {
    background: #ff8c00;
    transform: translateY(-2px);
}
.social-verified-badge {
    color: var(--success-color);
    font-weight: bold;
}
.social-verified-badge i {
    margin-right: 0.25rem;
}
.social-reminder {
    background: rgba(255,166,43,0.1);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
#socialVerifyAllBtn {
    margin-top: 1rem;
}
.social-notification-badge {
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}
.admin-social-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.admin-social-stats {
    display: flex;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
}
.admin-social-stats strong {
    color: var(--accent-color);
}

/* Social Links Modals */
.social-link-card {
    transition: all 0.2s ease;
}
.social-link-card:hover {
    transform: translateX(5px);
}
.social-progress-fill {
    transition: width 0.5s ease;
}
#socialLinksModal .modal-container {
    background: linear-gradient(145deg, var(--secondary-color), #1a2f3f);
}
#socialLinksModal .social-link-card {
    background: rgba(255,255,255,0.05) !important;
}
#socialVerifyAllBtn {
    background: var(--success-color);
    color: white;
    border: none;
    cursor: pointer;
}
#socialVerifyAllBtn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

/* ==================== ADVANCED SOCIAL LINKS MODAL CSS ==================== */
/* Glassmorphism + Animations + Responsive Design */

/* Modal Overlay Animation */
#socialLinksModal {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#socialLinksModal.active {
    display: flex;
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

/* Modal Container - Glassmorphism */
#socialLinksModal .modal-container {
    background: linear-gradient(145deg, rgba(30, 40, 50, 0.95), rgba(20, 30, 40, 0.98));
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: modalSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

/* Modal Header */
#socialLinksModal .modal-header {
    background: linear-gradient(135deg, rgba(255, 166, 43, 0.15), rgba(255, 140, 0, 0.05));
    border-bottom: 1px solid rgba(255, 166, 43, 0.2);
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

#socialLinksModal .modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 166, 43, 0.1), transparent 70%);
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% {
        transform: translate(0%, 0%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(10%, 10%) scale(1.2);
        opacity: 0.8;
    }
}

#socialLinksModal .modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#socialLinksModal .modal-header h2 i {
    background: linear-gradient(135deg, var(--accent-color), #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}

#socialLinksModal .modal-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Close Button Styling */
#socialLinksModal .close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

#socialLinksModal .close-modal:hover {
    background: rgba(255, 71, 87, 0.8);
    transform: rotate(90deg);
}

/* Progress Section */
.social-progress-section {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.social-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-progress-info span:first-child i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.social-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.social-progress-fill {
    background: linear-gradient(90deg, var(--accent-color), #ff6b6b, var(--accent-color));
    background-size: 200% 100%;
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Social Links Container */
#socialLinksContainer {
    padding: 1.5rem 2rem;
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Custom Scrollbar */
#socialLinksContainer::-webkit-scrollbar {
    width: 6px;
}

#socialLinksContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#socialLinksContainer::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

#socialLinksContainer::-webkit-scrollbar-thumb:hover {
    background: #ff8c00;
}

/* Social Link Card */
.social-link-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.social-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link-card:hover::before {
    left: 100%;
}

.social-link-card:hover {
    transform: translateX(8px) translateY(-2px);
    border-color: rgba(255, 166, 43, 0.5);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Verified Card Styling */
.social-link-card[data-verified="true"] {
    border-color: rgba(46, 204, 113, 0.5);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(255, 255, 255, 0.02));
}

.social-link-card[data-verified="true"]::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #2ecc71;
    font-size: 1.2rem;
    font-weight: bold;
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Social Link Icon */
.social-link-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(255, 166, 43, 0.3);
}

.social-link-card:hover .social-link-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 166, 43, 0.5);
}

.social-link-icon i {
    font-size: 1.8rem;
    color: white;
    transition: transform 0.3s ease;
}

.social-link-card:hover .social-link-icon i {
    transform: scale(1.1);
}

/* Verified Icon Special */
.social-link-card[data-verified="true"] .social-link-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Social Link Info */
.social-link-info {
    flex: 1;
}

.social-link-info h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link-info h4 .platform-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 166, 43, 0.2);
    border-radius: 20px;
    color: var(--accent-color);
}

.social-link-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Social Link Actions */
.social-link-actions {
    flex-shrink: 0;
}

.social-link-actions .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-color), #ff8c00);
    border: none;
    position: relative;
    overflow: hidden;
}

.social-link-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link-actions .btn:hover::before {
    width: 200px;
    height: 200px;
}

.social-link-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 166, 43, 0.4);
}

.social-link-actions .btn:active {
    transform: translateY(0);
}

/* Verified Badge */
.social-link-actions span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(46, 204, 113, 0.15);
    border-radius: 30px;
    color: #2ecc71;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(46, 204, 113, 0.3);
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Footer */
.social-modal-footer {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reminder Box */
#socialReminder {
    background: linear-gradient(135deg, rgba(255, 166, 43, 0.15), rgba(255, 140, 0, 0.05));
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 166, 43, 0.2);
    transition: all 0.3s ease;
}

#socialReminder:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 166, 43, 0.2), rgba(255, 140, 0, 0.1));
}

#socialReminder i {
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: bellRing 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(0deg);
    }
    20%, 60% {
        transform: rotate(15deg);
    }
    40%, 80% {
        transform: rotate(-10deg);
    }
}

#socialReminder span {
    flex: 1;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Verify All Button */
#socialVerifyAllBtn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

#socialVerifyAllBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#socialVerifyAllBtn:hover::before {
    width: 300px;
    height: 300px;
}

#socialVerifyAllBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
}

#socialVerifyAllBtn:active {
    transform: translateY(0);
}

/* Loading State */
.social-loading {
    text-align: center;
    padding: 3rem;
}

.social-loading i {
    font-size: 3rem;
    color: var(--accent-color);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    display: inline-block;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.social-loading p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Empty State */
.social-empty {
    text-align: center;
    padding: 3rem;
}

.social-empty i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.social-empty p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* Confetti Animation (when all links followed) */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    position: absolute;
    animation: confettiFall 3s ease-out forwards;
    pointer-events: none;
    z-index: 10001;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #socialLinksModal .modal-container {
        width: 95%;
        margin: 1rem;
        border-radius: 24px;
    }
    
    #socialLinksModal .modal-header {
        padding: 1.25rem;
    }
    
    #socialLinksModal .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .social-progress-section,
    #socialLinksContainer,
    .social-modal-footer {
        padding: 1.25rem;
    }
    
    .social-link-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .social-link-icon {
        width: 70px;
        height: 70px;
    }
    
    .social-link-icon i {
        font-size: 2rem;
    }
    
    .social-link-info {
        text-align: center;
    }
    
    .social-link-info h4 {
        justify-content: center;
    }
    
    .social-link-actions .btn,
    .social-link-actions span {
        width: 100%;
        justify-content: center;
    }
    
    #socialReminder {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    #socialReminder i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    #socialLinksModal .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .social-link-icon {
        width: 55px;
        height: 55px;
    }
    
    .social-link-icon i {
        font-size: 1.5rem;
    }
    
    .social-link-info h4 {
        font-size: 1rem;
    }
    
    .social-link-info p {
        font-size: 0.75rem;
    }
    
    .social-progress-info {
        font-size: 0.75rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #socialLinksModal .modal-container {
        background: linear-gradient(145deg, rgba(20, 30, 40, 0.98), rgba(10, 20, 30, 0.98));
    }
}

/* Animation for new links appearing */
@keyframes linkAppear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-link-card {
    animation: linkAppear 0.3s ease-out;
}

/* Success Toast Animation */
@keyframes toastSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Ripple Effect for Buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

.social-link-icon i {
    animation: float 3s ease-in-out infinite;
}

.social-link-card[data-verified="true"] .social-link-icon i {
    animation: none;
}