        * {
            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, #1a2980, #26d0ce);
            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;
        }

        /* 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;
        }

        .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;
        }

        /* 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); }

        /* Matches Grid */
        .matches-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
            gap: 1.5rem;
        }

        /* Match Card */
        .match-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: var(--transition);
            position: relative;
        }

        .match-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-color);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .match-card.live::before {
            content: 'LIVE';
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--danger-color);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: bold;
            z-index: 2;
            animation: pulse 2s infinite;
        }

        .match-card.selected-for-vip {
            border: 2px solid var(--vip-gold);
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .match-header {
            padding: 1.25rem 1.5rem;
            background: rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .competition-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .competition-name {
            font-weight: 600;
            color: white;
            font-size: 0.95rem;
        }

        .match-time {
            color: var(--accent-color);
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .teams-section {
            padding: 1.5rem;
            text-align: center;
        }

        .teams-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .team {
            display: flex;
            align-items: center;
            gap: 1rem;
            width: 40%;
        }

        .team.home {
            justify-content: flex-end;
        }

        .team.away {
            justify-content: flex-start;
        }

        .team-logo {
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(255, 255, 255, 0.2);
            font-size: 1.5rem;
            font-weight: bold;
            color: white;
        }

        .team-name {
            font-weight: 600;
            font-size: 1.1rem;
            color: white;
        }

        .vs-divider {
            color: var(--accent-color);
            font-weight: bold;
            font-size: 1.2rem;
            padding: 0 1rem;
        }

        /* Betting Section */
        .betting-section {
            padding: 1.5rem;
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .custom-odds {
            text-align: center;
            margin-bottom: 1.5rem;
            padding: 0.75rem;
            background: rgba(74, 111, 165, 0.1);
            border-radius: 10px;
            border: 1px solid rgba(74, 111, 165, 0.3);
        }

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

        .odds-box {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 1rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .odds-box:hover {
            border-color: var(--accent-color);
            background: rgba(255, 166, 43, 0.1);
            transform: translateY(-2px);
        }

        .odds-box.selected {
            border-color: var(--success-color);
            background: rgba(46, 139, 87, 0.1);
        }

        .odds-box.selected-for-vip {
            border-color: var(--vip-gold);
            background: rgba(255, 215, 0, 0.1);
            position: relative;
        }

        .odds-box.selected-for-vip::after {
            content: '✓';
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--vip-gold);
            color: black;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }

        .odds-type {
            font-size: 0.8rem;
            color: var(--gray-color);
            margin-bottom: 0.5rem;
        }

        .odds-value {
            font-size: 1.25rem;
            font-weight: bold;
            color: white;
            margin-bottom: 0.25rem;
        }

        .odds-percent {
            font-size: 0.9rem;
            color: var(--accent-color);
            font-weight: 600;
        }

        .vip-bet-btn {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(90deg, var(--vip-gold), #113745);
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .vip-bet-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
        }

        .vip-bet-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .place-bet-btn {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(90deg, var(--success-color), #228B22);
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .place-bet-btn:hover {
            background: linear-gradient(90deg, #228B22, var(--success-color));
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
        }

        .place-bet-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }



        /* 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: 1024px) {
            .matches-grid {
                grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
                padding: 1rem;
            }
            
            .user-info {
                flex-direction: column;
                gap: 1rem;
            }
            
            .matches-grid {
                grid-template-columns: 1fr;
            }
            
            .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;
    }
    
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.6rem;
    }
    
    .balance-amount {
        font-size: 1.3rem;
    }
    
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .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;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .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;
    }
    
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    }
    
    .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;
    }
  }
  
  /* ===== ULTRA-SMALL DEVICES (≤ 360px) ===== */
@media (max-width: 360px) {
  body {
    font-size: 14px; /* Slightly smaller base for readability */
  }

  /* Force all text to wrap to avoid horizontal overflow */
  h1, h2, h3, h4, h5, h6, p, span, a, button, .card-title, .team-name {
    word-break: break-word;
    hyphens: auto;
  }

  /* Ensure all flex/grid children don't overflow */
  .container, .dashboard-cards, .stats-grid, .matches-grid {
    gap: 0.5rem;
  }

  /* Make all images scale with container */
  img, svg, video, iframe {
    max-width: 100%;
    height: auto;
  }

  /* Tables: force scrolling and smaller font */
  .transactions-table,
  .my-bets-table,
  .referrals-table,
  .admin-table {
    font-size: 0.8rem;
  }

  /* Buttons: full width for easier tapping */
  .btn, .action-btn, .nav-item, .tab-btn, .switch-btn {
    min-height: 44px; /* iOS minimum tap target */
  }
}

/* ===== PREVENT HIDDEN ELEMENTS ON LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .vip-bet-slip,
  .modal-content,
  .admin-chat-container {
    max-height: 80vh;
    overflow-y: auto;
  }

  /* Adjust fixed elements to not cover content */
  .bottom-nav {
    position: relative;
    box-shadow: none;
  }

  /* Give extra padding when bottom nav is fixed */
  body {
    padding-bottom: 70px;
  }
}

/* ===== ENSURE SIDEBAR/MENU NEVER HIDES CONTENT ===== */
.sidebar.active {
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hamburger-menu.active {
  max-height: 100vh;
  overflow-y: auto;
}

/* ===== ALWAYS SHOW OVERFLOW CONTENT (no hidden) ===== */
.modal-overlay .modal-container {
  max-height: 90vh;
  overflow-y: auto;
}

/* Force any hidden overflow to become scrollable */
.scrollable-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scrollable-y {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Final safety rules – add to end of your CSS */
@media (max-width: 360px) {
  body { font-size: 14px; }
  h1, h2, h3, p, span, a, button { word-break: break-word; }
  img, video, iframe { max-width: 100%; height: auto; }
  .btn, .action-btn, .nav-item { min-height: 44px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .vip-bet-slip, .modal-content { max-height: 80vh; overflow-y: auto; }
  body { padding-bottom: 70px; }
}
.sidebar.active, .hamburger-menu.active, .modal-container { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.scrollable-x { overflow-x: auto; }

/* ===== ULTRA-SMALL DEVICES (≤ 360px) ===== */
@media (max-width: 360px) {
  body {
    font-size: 14px; /* Slightly smaller base for readability */
  }

  /* Force all text to wrap to avoid horizontal overflow */
  h1, h2, h3, h4, h5, h6, p, span, a, button, .card-title, .team-name {
    word-break: break-word;
    hyphens: auto;
  }

  /* Ensure all flex/grid children don't overflow */
  .container, .dashboard-cards, .stats-grid, .matches-grid {
    gap: 0.5rem;
  }

  /* Make all images scale with container */
  img, svg, video, iframe {
    max-width: 100%;
    height: auto;
  }

  /* Tables: force scrolling and smaller font */
  .transactions-table,
  .my-bets-table,
  .referrals-table,
  .admin-table {
    font-size: 0.8rem;
  }

  /* Buttons: full width for easier tapping */
  .btn, .action-btn, .nav-item, .tab-btn, .switch-btn {
    min-height: 44px; /* iOS minimum tap target */
  }
}

/* ===== PREVENT HIDDEN ELEMENTS ON LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .vip-bet-slip,
  .modal-content,
  .admin-chat-container {
    max-height: 80vh;
    overflow-y: auto;
  }

  /* Adjust fixed elements to not cover content */
  .bottom-nav {
    position: relative;
    box-shadow: none;
  }

  /* Give extra padding when bottom nav is fixed */
  body {
    padding-bottom: 70px;
  }
}

/* ===== ENSURE SIDEBAR/MENU NEVER HIDES CONTENT ===== */
.sidebar.active {
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hamburger-menu.active {
  max-height: 100vh;
  overflow-y: auto;
}

/* ===== ALWAYS SHOW OVERFLOW CONTENT (no hidden) ===== */
.modal-overlay .modal-container {
  max-height: 90vh;
  overflow-y: auto;
}

/* Force any hidden overflow to become scrollable */
.scrollable-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scrollable-y {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}