* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 10px 20px;
    border-bottom: 1px solid #333;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.auth-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sign-in-btn, .sign-up-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sign-in-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sign-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sign-up-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.sign-up-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.sign-in-btn i, .sign-up-btn i {
    font-size: 10px;
}

.sign-in-btn span, .sign-up-btn span {
    font-size: 11px;
}

/* Auth Modal Styles */
.auth-modal {
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.auth-modal .close {
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.auth-modal .close:hover {
    opacity: 1;
}

.auth-modal .modal-body {
    padding: 30px;
    background: white;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-switch {
    text-align: center;
    margin: 0;
    color: #666;
    font-size: 14px;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #764ba2;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.app-info h1 {
    font-size: 20px;
    font-weight: 600;
}

.header-actions i {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-actions i:hover {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    padding: 20px;
    padding-bottom: 100px;
}

/* Diamond Purchase Banner */
.diamond-banner {
    background: linear-gradient(135deg, #FF6B35, #F7931E, #FFD23F);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: diamondPulse 2s infinite;
}

.diamond-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.diamond-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: diamondGlow 3s infinite;
}

.diamond-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.diamond-icon {
    font-size: 40px;
    animation: bounce 1s infinite;
}

.diamond-text h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.click-text {
    font-size: 14px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 3px;
}

.guarantee-text {
    font-size: 12px;
    color: #FFF;
    opacity: 0.9;
}

@keyframes diamondPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes diamondGlow {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(135deg, #FF5722, #FF7043);
    border-radius: 15px;
    padding: 12px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.characters {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.promo-text h2, .promo-text h3 {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-subtitle {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

.bengali-text {
    font-size: 14px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

/* Promotional Banner Slider */
.promo-slider {
    position: relative;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 15px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: auto;
}

.promo-banner {
    display: none;
    background: linear-gradient(135deg, #FF5722, #FF7043);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.promo-banner.active {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #FFD700;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Games Section */
.games-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Diamond Grid */
.diamond-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

/* Diamond Cards */
.diamond-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #00ff88;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.diamond-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    border-color: #ff6b6b;
}

.diamond-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.diamond-card:hover::before {
    left: 100%;
}

.diamond-amount {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.diamond-price {
    font-size: 14px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.game-card {
    background: linear-gradient(135deg, #2c2c54, #40407a);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.game-card.orange {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.game-card.teal {
    background: linear-gradient(135deg, #009688, #00695C);
}

.game-card.red {
    background: linear-gradient(135deg, #F44336, #C62828);
}

.game-card.purple {
    background: linear-gradient(135deg, #9C27B0, #6A1B9A);
}

.game-card.pink {
    background: linear-gradient(135deg, #E91E63, #AD1457);
}

.game-card.blue {
    background: linear-gradient(135deg, #2196F3, #1565C0);
}

.game-icon {
    margin-bottom: 12px;
}

.game-icon img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.game-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.game-info p {
    font-size: 12px;
    opacity: 0.8;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #333;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    min-width: 60px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Match Modal Styles */
.match-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

.match-modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 15px;
    width: 95%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
}

.match-modal-header {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.match-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.match-close:hover {
    color: #FFD700;
}

.match-modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

/* Match Tabs */
.match-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.match-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
}

.match-tab.active {
    background-color: #FF6B35;
    color: white;
}

.match-tab:hover:not(.active) {
    background-color: #e9ecef;
}

/* Match Content */
.match-type-content {
    display: none;
    padding: 20px;
}

.match-type-content.active {
    display: block;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.match-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
    border-radius: 50%;
}

.match-item:hover::before {
    transform: scale(1);
    animation: waterRipple 0.8s ease-out;
}

.match-item:hover {
    border-color: #00ff88;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.4), 0 0 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 50%, #667eea 100%);
}

@keyframes waterRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.match-item:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s ease;
}

.match-info h4 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.match-info p {
    margin: 0 0 6px 0;
    color: #f8f9fa;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.match-details {
    margin: 0 0 5px 0;
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
}

.match-time {
    margin: 0;
    color: #7f8c8d;
    font-size: 12px;
}

.join-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.join-btn:hover::before {
    width: 300px;
    height: 300px;
}

.join-btn:hover {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.6);
    border-color: rgba(255,255,255,0.8);
}

.join-btn:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

/* Join Modal Styles */
.join-modal {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

.join-modal-content {
    background-color: #fff;
    margin: 10% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
}

.join-modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.join-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.join-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.join-close:hover {
    color: #FFD700;
}

.join-modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.join-modal-footer {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
}

.btn-cancel {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

.btn-join {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-join:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.fab i {
    font-size: 24px;
    color: white;
}

/* Modal Styles */
.diamond-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diamond-modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 20px;
    max-width: 90%;
    width: 400px;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.diamond-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #FF5722;
}

.diamond-packages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.egytopup-btn {
    background: linear-gradient(135deg, #FF6B35, #F7931E, #FFD23F);
    border: none;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.egytopup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.btn-icon {
    font-size: 2rem;
    animation: diamondPulse 2s infinite;
}

.btn-text h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-text p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.package {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease;
}

.package:hover {
    transform: translateY(-2px);
}

.package.popular {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    transform: scale(1.05);
}

.popular-tag {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF5722;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.diamond-count {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.price {
    font-size: 16px;
    margin-bottom: 10px;
    color: #FFD700;
    font-weight: 600;
}

.buy-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.guarantee {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.guarantee p {
    margin: 5px 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .diamond-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .diamond-banner {
        padding: 15px;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .diamond-packages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .app-info h1 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .games-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .diamond-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .diamond-card {
        padding: 12px 8px;
    }
    
    .diamond-amount {
        font-size: 11px;
    }
    
    .diamond-price {
        font-size: 13px;
    }
    
    .nav-item span {
        font-size: 9px;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        bottom: 85px;
    }
    
    .fab i {
        font-size: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* No matches message */
.no-matches {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

/* Add these CSS classes for offline icons */
.app-icon-offline {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.game-icon-offline {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.game-icon-classic { background: #FF9800; }
.game-icon-clash { background: #009688; }
.game-icon-tournament { background: #F44336; }
.game-icon-cs { background: #9C27B0; }
.game-icon-ludo { background: #E91E63; }
.game-icon-grand { background: #2196F3; }
.characters-icon { background: #FF5722; width: 80px; height: 80px; }

.game-icon img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.game-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.game-info p {
    font-size: 12px;
    opacity: 0.8;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #333;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    min-width: 60px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.fab i {
    font-size: 24px;
    color: white;
}

/* Modal Styles */
.diamond-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diamond-modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 20px;
    max-width: 90%;
    width: 400px;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.diamond-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #FF5722;
}

.diamond-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.package {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease;
}

.package:hover {
    transform: translateY(-2px);
}

.package.popular {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    transform: scale(1.05);
}

.popular-tag {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF5722;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.diamond-count {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.price {
    font-size: 16px;
    margin-bottom: 10px;
    color: #FFD700;
    font-weight: 600;
}

.buy-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.guarantee {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.guarantee p {
    margin: 5px 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .diamond-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .diamond-banner {
        padding: 15px;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .diamond-packages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .app-info h1 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .games-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-item span {
        font-size: 9px;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        bottom: 85px;
    }
    
    .fab i {
        font-size: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Touch Device Styles */
.touch-device .game-card:active {
    transform: scale(0.95);
}

.touch-device .nav-item:active {
    transform: scale(0.95);
}

.touch-device .fab:active {
    transform: scale(0.9);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* User Info Modal Styles */
#userInfoModal .modal-content {
    max-width: 450px;
    border-radius: 15px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

#userInfoModal .modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

#userInfoModal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

#userInfoModal .modal-body {
    padding: 25px;
}

#userInfoModal .form-group {
    margin-bottom: 20px;
}

#userInfoModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f8f9fa;
}

#userInfoModal .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #333;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

#userInfoModal .form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

#userInfoModal .form-group input::placeholder {
    color: #aaa;
}

#userInfoModal .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

#userInfoModal .btn-secondary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#userInfoModal .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

#userInfoModal .btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#userInfoModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* User Info and Slot Selection Styles */
.user-info-section, .slot-selection-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 20px 0;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

.user-info-section h3, .slot-selection-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f8f9fa;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(238, 90, 36, 0.4);
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Slot Selection Specific Styles */
.slot-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.slot-info p {
    margin: 5px 0;
    color: #f8f9fa;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.slot-btn {
    padding: 12px 8px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.slot-btn:hover:not(.occupied):not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    border-color: #fff;
}

.slot-btn.occupied {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    cursor: not-allowed;
    opacity: 0.7;
}

.slot-btn.selected {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

@media (max-width: 768px) {
    .user-info-section, .slot-selection-section {
        margin: 10px;
        padding: 20px;
    }
    
    .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .slot-btn {
        padding: 10px 6px;
        font-size: 11px;
    }
}

/* Theme Variables */
:root {
    --bg-primary: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
    --bg-secondary: linear-gradient(135deg, #1a1a2e, #16213e);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333;
    --card-bg: rgba(255, 255, 255, 0.05);
    --button-bg: linear-gradient(135deg, #4CAF50, #45a049);
    --accent-color: #ff9800;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    --bg-secondary: linear-gradient(135deg, #ffffff, #f8f9fa);
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --card-bg: rgba(255, 255, 255, 0.9);
    --button-bg: linear-gradient(135deg, #4CAF50, #45a049);
    --accent-color: #ff9800;
}

/* Apply theme variables */
body.light-theme {
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.dark-theme {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Header theme styling */
.light-theme .header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.dark-theme .header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 16px;
}

/* Card backgrounds for light theme */
.light-theme .game-card,
.light-theme .promo-slide,
.light-theme .feature-card,
.light-theme .notification-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Text colors for light theme */
.light-theme .game-title,
.light-theme .feature-title,
.light-theme h1, .light-theme h2, .light-theme h3 {
    color: var(--text-primary);
}

.light-theme .game-description,
.light-theme .feature-description {
    color: var(--text-secondary);
}

/* Button styling for light theme */
.light-theme .play-btn,
.light-theme .join-btn,
.light-theme .sign-in-btn,
.light-theme .sign-up-btn {
    background: var(--button-bg);
    color: white;
}

/* Notification styling for themes */
.light-theme .notification {
    background: white;
    color: #333;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-theme .notification {
    background: #2a2a2a;
    color: white;
    border: 1px solid #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}