/* Tada Game Lobby - Dark Theme Design */

.tada-game-lobby {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 0;
    margin: 0;
}

/* Modern Wallet Card Design */
.tada-wallet-container {
    margin: 0 0 24px 0;
}

.tada-wallet-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(45, 45, 45, 0.95));
    border: 2px solid rgba(155, 89, 182, 0.3);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.tada-wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #e74c3c, #9b59b6, #3498db);
    animation: tada-card-glow 3s ease-in-out infinite;
}

@keyframes tada-card-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

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

.tada-wallet-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tada-wallet-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(52, 152, 219, 0.3));
    border: 2px solid rgba(155, 89, 182, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.tada-wallet-text {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tada-refresh-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tada-refresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tada-refresh-btn:hover::before {
    opacity: 0.2;
}

.tada-refresh-btn:hover {
    border-color: rgba(155, 89, 182, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
}

.tada-refresh-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.tada-refresh-btn:hover .tada-refresh-icon {
    transform: rotate(180deg);
}

.tada-refresh-btn.loading {
    animation: tada-spin 1s linear infinite;
}

.tada-balance-section {
    text-align: center;
    margin-bottom: 24px;
}

.tada-balance-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tada-balance-amount {
    font-size: 36px;
    font-weight: 800;
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.tada-balance-amount.updating {
    opacity: 0.7;
    transform: scale(1.05) translateZ(0);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tada-balance-currency {
    font-size: 18px;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.tada-balance-label {
    font-size: 14px;
    color: #b0b0b0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.tada-wallet-switcher {
    position: relative;
}

.tada-switch-labels {
    display: flex;
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.tada-switch-label {
    flex: 1;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    text-align: center;
    transform: translateZ(0);
    will-change: transform, background, border, box-shadow;
}

.tada-switch-label:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tada-switch-label.active {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(52, 152, 219, 0.2));
    border: 1px solid rgba(155, 89, 182, 0.5);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
    transform: translateY(-2px) translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tada-label-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.tada-label-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.tada-label-text {
    font-size: 14px;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.tada-switch-label.active .tada-label-text {
    color: #f39c12;
    text-shadow: 0 1px 2px rgba(243, 156, 18, 0.3);
    transform: translateY(-1px) translateZ(0);
}

.tada-switch-label.active .tada-label-icon {
    transform: scale(1.1) translateY(-1px) translateZ(0);
    filter: drop-shadow(0 2px 4px rgba(243, 156, 18, 0.3));
}

/* Cash Out Balance Section - Now in Header */
.tada-cash-out-section {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.05));
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.tada-cash-out-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2ecc71, #27ae60, #16a085);
    animation: tada-cash-out-glow 3s ease-in-out infinite;
}

@keyframes tada-cash-out-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.tada-cash-out-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.tada-cash-out-icon {
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(46, 204, 113, 0.3));
}

.tada-cash-out-title {
    font-size: 10px;
    font-weight: 600;
    color: #2ecc71;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tada-cash-out-balance {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tada-cash-out-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2ecc71;
    text-shadow: 0 1px 2px rgba(46, 204, 113, 0.3);
    line-height: 1;
}


/* Responsive Design */
@media (max-width: 768px) {
    .tada-wallet-card {
        padding: 20px;
    }
    
    .tada-wallet-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .tada-cash-out-section {
        min-width: auto;
        padding: 10px 14px;
    }
    
    .tada-balance-amount {
        font-size: 28px;
    }
    
    .tada-switch-label {
        padding: 14px 16px;
    }
    
    .tada-label-icon {
        font-size: 20px;
    }
    
    .tada-label-text {
        font-size: 12px;
    }
    
    .tada-cash-out-amount {
        font-size: 16px;
    }
    
    
}

@media (max-width: 480px) {
    .tada-wallet-card {
        padding: 16px;
    }
    
    .tada-wallet-icon {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
    
    .tada-wallet-text {
        font-size: 18px;
    }
    
    .tada-balance-amount {
        font-size: 24px;
    }
    
    .tada-balance-currency {
        font-size: 16px;
    }
    
    .tada-switch-label {
        padding: 12px 14px;
    }
    
    .tada-label-icon {
        font-size: 18px;
    }
    
    .tada-label-text {
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    
    .tada-cash-out-section {
        padding: 8px 12px;
    }
    
    .tada-cash-out-amount {
        font-size: 14px;
    }
    
    .tada-cash-out-title {
        font-size: 9px;
    }
    
    .tada-cash-out-icon {
        font-size: 12px;
    }
    
}

/* Wallet Selector - Redesigned */
.tada-wallet-selector {
    margin: 20px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.9));
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.tada-wallet-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #e74c3c, #9b59b6, #3498db);
    animation: tada-wallet-gradient 3s ease-in-out infinite;
}

@keyframes tada-wallet-gradient {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.tada-wallet-header {
    text-align: center;
    margin-bottom: 24px;
}

.tada-wallet-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tada-wallet-subtitle {
    font-size: 14px;
    color: #b0b0b0;
    font-weight: 400;
}

.tada-wallet-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.tada-wallet-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tada-wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(243, 156, 18, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.tada-wallet-card:hover::before {
    opacity: 1;
}

.tada-wallet-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(155, 89, 182, 0.6);
    box-shadow: 0 20px 40px rgba(155, 89, 182, 0.3);
}

.tada-wallet-card.active {
    border-color: rgba(155, 89, 182, 0.8);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(155, 89, 182, 0.05));
    box-shadow: 0 15px 35px rgba(155, 89, 182, 0.4);
    transform: translateY(-4px);
}

.tada-wallet-card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f39c12, #e74c3c, #9b59b6, #3498db);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tada-wallet-card.active .tada-wallet-card-glow {
    opacity: 0.3;
    animation: tada-wallet-glow 2s ease-in-out infinite;
}

@keyframes tada-wallet-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.tada-wallet-card-content {
    position: relative;
    z-index: 2;
}

.tada-wallet-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tada-wallet-icon-large {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tada-wallet-card.active .tada-wallet-icon-large {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(155, 89, 182, 0.1));
    border-color: rgba(155, 89, 182, 0.5);
    animation: tada-wallet-icon-pulse 2s ease-in-out infinite;
}

@keyframes tada-wallet-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tada-wallet-status {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tada-wallet-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tada-wallet-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.tada-wallet-card.active .tada-wallet-badge {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: #ffffff;
    border-color: rgba(243, 156, 18, 0.5);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.tada-wallet-card-body {
    text-align: center;
    margin-bottom: 16px;
}

.tada-wallet-balance-large {
    font-size: 28px;
    font-weight: 700;
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
    margin-bottom: 4px;
    line-height: 1;
}

.tada-wallet-card.active .tada-wallet-balance-large {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(155, 89, 182, 0.5);
}

.tada-wallet-currency {
    font-size: 12px;
    color: #b0b0b0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tada-wallet-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.tada-wallet-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tada-wallet-feature {
    font-size: 11px;
    color: #b0b0b0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tada-wallet-card.active .tada-wallet-feature {
    color: #ffffff;
}

/* Click and hover animations */
.tada-wallet-card.clicking {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s ease;
}

.tada-wallet-card.hover-effect {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(155, 89, 182, 0.4);
}

.tada-wallet-card.hover-effect .tada-wallet-card-glow {
    opacity: 0.2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tada-wallet-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tada-wallet-selector {
        padding: 20px 16px;
    }
    
    .tada-wallet-title {
        font-size: 20px;
    }
    
    .tada-wallet-card {
        padding: 16px;
    }
    
    .tada-wallet-icon-large {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
    
    .tada-wallet-balance-large {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .tada-wallet-card-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .tada-wallet-status {
        align-items: center;
    }
}

/* Wallet Notifications */
.tada-wallet-notification {
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.tada-wallet-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.tada-wallet-notification.success {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.tada-wallet-notification.error {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    color: #e74c3c;
}

.tada-notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tada-notification-icon {
    font-size: 16px;
}

.tada-notification-message {
    font-size: 14px;
    font-weight: 500;
}

/* Balance Notifications */
.tada-balance-notification {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease;
}

.tada-balance-notification.success {
    border-color: rgba(46, 204, 113, 0.5);
    background: rgba(46, 204, 113, 0.1);
}

.tada-balance-notification.error {
    border-color: rgba(231, 76, 60, 0.5);
    background: rgba(231, 76, 60, 0.1);
}

.tada-balance-notification span {
    color: #ffffff;
    font-size: 14px;
}

.tada-notification-close {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.tada-notification-close:hover {
    color: #ffffff;
}

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

/* Header Section */
.tada-lobby-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tada-lobby-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #9b59b6, #e74c3c, #f39c12);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px 0;
}

.tada-lobby-title p {
    color: #b0b0b0;
    font-size: 1rem;
    margin: 0;
}

/* Quick Filter Buttons */
.tada-quick-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tada-quick-filter {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tada-quick-filter:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tada-quick-filter.active {
    background: linear-gradient(45deg, #9b59b6, #e74c3c);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

/* Search Bar */
.tada-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.tada-search-input {
    padding: 12px 45px 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    font-size: 14px;
    width: 250px;
    backdrop-filter: blur(5px);
}

.tada-search-input::placeholder {
    color: #b0b0b0;
}

.tada-search-input:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}

.tada-search-icon {
    position: absolute;
    right: 15px;
    font-size: 16px;
    color: #b0b0b0;
    pointer-events: none;
}

/* Categories Container */
.tada-categories-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Section */
.tada-category-section {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Header */
.tada-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tada-category-header:hover {
    background: rgba(255, 255, 255, 0.12);
}

.tada-category-header.expanded .tada-category-chevron {
    transform: rotate(180deg);
}

.tada-category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tada-category-icon {
    font-size: 44px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.tada-category-text h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.tada-category-count {
    font-size: 14px;
    color: #b0b0b0;
}

.tada-category-chevron {
    font-size: 16px;
    color: #b0b0b0;
    transition: transform 0.3s ease;
}

/* Category Games (Initially Hidden) */
.tada-category-games {
    display: none;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.tada-category-games.expanded {
    display: block;
}

/* Game Grid Layout - 5 Columns */
.tada-game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px 0;
}

/* Game Cards */
.tada-game-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tada-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(155, 89, 182, 0.5);
}

.tada-game-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.tada-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tada-game-card:hover .tada-game-image img {
    transform: scale(1.1);
}

.tada-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tada-game-card:hover .tada-game-overlay {
    opacity: 1;
}

.tada-game-play-btn {
    width: 50px;
    height: 50px;
    background: rgba(155, 89, 182, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.tada-game-play-btn:hover {
    background: rgba(155, 89, 182, 1);
    transform: scale(1.1);
}

.tada-game-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* Loading States */
.tada-game-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.tada-game-card.loading .tada-game-loading {
    display: flex;
}

.tada-game-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #9b59b6;
    border-radius: 50%;
    animation: tada-spin 1s linear infinite;
}

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

/* Error States */
.tada-games-error {
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
    font-size: 18px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    margin: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tada-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .tada-user-balance {
        margin: 15px;
        padding: 14px 16px;
    }
    
    .tada-balance-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .tada-balance-amount {
        font-size: 18px;
    }
    
    .tada-lobby-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tada-lobby-title h1 {
        font-size: 2rem;
    }
    
    .tada-search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .tada-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .tada-game-image {
        height: 120px;
    }
    
    .tada-user-balance {
        margin: 12px;
        padding: 12px 14px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .tada-balance-info {
        justify-content: center;
    }
    
    .tada-balance-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .tada-balance-amount {
        font-size: 16px;
    }
    
    .tada-categories-container {
        padding: 15px;
    }
    
    .tada-lobby-header {
        padding: 20px 15px;
    }
    
    .tada-lobby-title h1 {
        font-size: 1.8rem;
    }
    
    .tada-quick-filters {
        gap: 6px;
    }
    
    .tada-quick-filter {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .tada-search-input {
        width: 180px;
        padding: 10px 40px 10px 14px;
    }
    
    .tada-category-header {
        padding: 12px 15px;
    }
    
    .tada-category-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .tada-category-text h3 {
        font-size: 16px;
    }
    
    .tada-category-count {
        font-size: 13px;
    }
    
    .tada-game-title {
        padding: 10px;
        font-size: 13px;
    }
    
    .tada-game-play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tada-game-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tada-game-image {
        height: 180px;
    }
    
    .tada-lobby-title h1 {
        font-size: 1.5rem;
    }
    
    .tada-lobby-title p {
        font-size: 14px;
    }
    
    .tada-search-input {
        width: 100%;
        max-width: 200px;
    }
    
    .tada-category-games {
        padding: 15px;
    }
}

/* Animation Classes */
.tada-game-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tada-game-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Focus States for Accessibility */
.tada-quick-filter:focus,
.tada-search-input:focus,
.tada-category-header:focus,
.tada-game-card:focus {
    outline: 2px solid #9b59b6;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Full Screen Game Modal */
.tada-game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.tada-game-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 44444444;
}

.tada-game-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.tada-game-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tada-game-modal-close:hover {
    background: rgba(231, 76, 60, 0.9);
    border-color: rgba(231, 76, 60, 1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.5);
}

/* Modal Wallet Display - Available to Withdraw Style */
.tada-game-modal-wallet {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10001;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.85), rgba(30, 30, 30, 0.8));
    border: 1px solid rgba(46, 204, 113, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    min-width: 140px;
    transition: all 0.3s ease;
}

.tada-game-modal-wallet:hover {
    border-color: rgba(46, 204, 113, 0.6);
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.3);
    transform: translateY(-1px);
}

.tada-modal-cash-out-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.tada-modal-cash-out-icon {
    font-size: 12px;
    filter: drop-shadow(0 1px 2px rgba(46, 204, 113, 0.3));
}

.tada-modal-cash-out-title {
    font-size: 9px;
    font-weight: 600;
    color: #2ecc71;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tada-modal-cash-out-balance {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tada-modal-cash-out-amount {
    font-size: 16px;
    font-weight: 700;
    color: #2ecc71;
    text-shadow: 0 1px 2px rgba(46, 204, 113, 0.3);
    line-height: 1;
    transition: all 0.3s ease;
}

.tada-modal-cash-out-amount.updating {
    opacity: 0.7;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.tada-game-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.tada-game-modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 9998;
}

.tada-game-modal-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #9b59b6;
    border-radius: 50%;
    animation: tada-spin 1s linear infinite;
}

.tada-game-modal-loader-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

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

/* Mobile Adjustments for Modal */
@media (max-width: 768px) {
    .tada-game-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .tada-game-modal-wallet {
        top: 10px;
        left: 10px;
        padding: 8px 10px;
        min-width: 120px;
    }
    
    .tada-modal-cash-out-icon {
        font-size: 10px;
    }
    
    .tada-modal-cash-out-title {
        font-size: 8px;
    }
    
    .tada-modal-cash-out-amount {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tada-game-modal-wallet {
        top: 8px;
        left: 8px;
        padding: 6px 8px;
        min-width: 100px;
    }
    
    .tada-modal-cash-out-header {
        gap: 4px;
        margin-bottom: 2px;
    }
    
    .tada-modal-cash-out-icon {
        font-size: 9px;
    }
    
    .tada-modal-cash-out-title {
        font-size: 7px;
    }
    
    .tada-modal-cash-out-amount {
        font-size: 12px;
    }
}