/* Tada Game Lobby — Wall St Gaming: gold, white, silver & black */
:root {
    --ws-red: #D4AF37;
    --ws-red-bright: #F0D060;
    --ws-red-dark: #B8860B;
    --ws-red-shadow: #5C4A0E;
    --ws-silver: #C0C0C0;
    --ws-silver-light: #E8E8E8;
    --ws-silver-dark: #8A8A8A;
    --ws-silver-mid: #A8A8A8;
    --silver-border: rgba(192, 192, 192, 0.45);
    --silver-glow: rgba(192, 192, 192, 0.25);
    --silver-shine: rgba(232, 232, 232, 0.15);

    --gold: #D4AF37;
    --gold-bright: #F0D060;
    --gold-light: #FFE9A8;
    --gold-dark: #B8860B;
    --gold-shadow: #5C4A0E;
    --gold-border: rgba(212, 175, 55, 0.45);
    --gold-glow: rgba(212, 175, 55, 0.28);
    --accent-border: linear-gradient(120deg, var(--ws-red-dark), var(--ws-silver-dark), var(--ws-silver-light), var(--ws-red), var(--ws-silver), var(--ws-red-dark));

    --karma-red: var(--ws-red-dark);
    --karma-red-bright: var(--ws-red-bright);
    --karma-red-highlight: var(--ws-silver-light);
    --karma-red-shadow: var(--ws-red-shadow);
    --karma-blue: var(--ws-red);
    --karma-blue-dark: var(--ws-red-dark);
    --karma-blue-highlight: var(--ws-silver-light);
    --karma-blue-shadow: var(--ws-red-shadow);
    --karma-green: var(--ws-red);
    --karma-green-bright: var(--ws-red-bright);
    --karma-green-highlight: var(--ws-silver-light);
    --karma-green-shadow: var(--ws-red-shadow);
    --karma-yellow: var(--ws-red-bright);
    --karma-yellow-dark: var(--ws-red);
    --karma-yellow-highlight: var(--ws-silver-light);
    --karma-yellow-shadow: var(--ws-red-shadow);

    --karma-bg-dark: transparent;
    --karma-bg-mid: rgba(0, 0, 0, 0.4);
    --karma-muted: rgba(192, 192, 192, 0.65);
    --karma-muted-light: rgba(232, 232, 232, 0.82);
    --karma-white: #ffffff;
    --karma-font: 'Varela', Helvetica, Arial, Lucida, sans-serif;
}

.tada-game-lobby {
    min-height: 100vh;
    color: var(--karma-white);
    font-family: var(--karma-font);
    padding: 0;
    margin: 0;
}

/* Lobby wallet — original bento layout, gold palette */
.tada-wallet-container {
    margin: 0 0 36px 0;
}

.tada-wallet-bento {
    --tada-w-sub: var(--ws-silver);
    --tada-w-label: var(--gold-bright);
    --tada-w-amount: var(--ws-silver-light);
    --tada-w-unit: var(--gold);
    --tada-w-status-muted: var(--ws-silver-dark);
    --tada-w-status-on: #ffffff;
    --tada-w-active: var(--gold-bright);
    --tada-w-cashout: var(--ws-silver-light);
    font-family: 'Outfit', var(--karma-font);
    border-radius: 28px;
    padding: 22px 22px 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 2px solid var(--gold-border);
    background:
        linear-gradient(165deg, rgba(0, 0, 0, 0.88) 0%, rgba(18, 18, 18, 0.92) 45%, rgba(8, 8, 8, 0.88) 100%) padding-box,
        linear-gradient(120deg, var(--gold-dark), var(--ws-silver-dark), var(--ws-silver-light), var(--gold), var(--ws-silver), var(--gold-dark)) border-box;
    box-shadow:
        0 12px 0 rgba(0, 0, 0, 0.4),
        0 20px 40px -12px var(--silver-glow),
        0 8px 24px -8px var(--gold-glow),
        inset 0 1px 0 rgba(232, 232, 232, 0.12);
    animation: tada-wallet-bubble-float 5s ease-in-out infinite;
}

@keyframes tada-wallet-bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.tada-wallet-bento::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(192, 192, 192, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 88% 75%, rgba(212, 175, 55, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 50% 0%, rgba(232, 232, 232, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(192, 192, 192, 0.05) 0%, transparent 45%);
}

.tada-wallet-bento::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 18px 18px;
}

.tada-wallet-bento-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.tada-wallet-bento-mark {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #fff 0%, var(--gold-light) 35%, var(--gold-bright) 60%, var(--gold) 100%);
    border: 2px solid var(--gold-border);
    box-shadow:
        0 8px 0 var(--gold-shadow),
        0 12px 24px var(--gold-glow),
        inset 0 4px 12px rgba(255, 255, 255, 0.35);
    animation: tada-wallet-icon-bounce 2.2s ease-in-out infinite;
}

@keyframes tada-wallet-icon-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.04); }
}

.tada-wallet-bento-svg {
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 0 rgba(92, 74, 14, 0.5));
}

.tada-wallet-bento-title {
    margin: 0 0 6px 0;
    font-family: 'Fredoka', 'Outfit', var(--karma-font), sans-serif;
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: none;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 48%, var(--gold-bright) 52%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.55)) drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
}

.tada-wallet-bento.tada-wallet-has-custom-title .tada-wallet-bento-title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--tada-w-title, #ffffff);
    -webkit-text-fill-color: var(--tada-w-title, #ffffff);
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
}

.tada-wallet-bento-sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--tada-w-sub);
    max-width: 40rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.tada-wallet-panel {
    position: relative;
    z-index: 1;
    border-radius: 22px;
    border: 3px solid var(--gold-border);
    background: linear-gradient(180deg, rgba(232, 232, 232, 0.08) 0%, rgba(18, 18, 18, 0.95) 55%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow:
        inset 0 3px 0 rgba(232, 232, 232, 0.2),
        0 12px 0 rgba(0, 0, 0, 0.2);
}

.tada-wallet-split {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 12px 14px;
    align-items: stretch;
}

.tada-wallet-split .tada-wallet-tile.tada-wallet-seg {
    margin: 0;
    min-height: 138px;
    padding: 16px 10px 14px;
    border-radius: 20px;
    border: 3px solid var(--gold-border);
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.55) 0%, rgba(0, 0, 0, 0.88) 100%);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 var(--silver-shine);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 6px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tada-wallet-split .tada-wallet-tile.tada-wallet-seg::before,
.tada-wallet-split .tada-wallet-tile--cashout::after {
    display: none;
}

.tada-wallet-split .tada-wallet-tile--cashout {
    cursor: default;
    border-color: rgba(212, 175, 55, 0.45);
    background: linear-gradient(180deg, rgba(60, 60, 60, 0.45) 0%, rgba(0, 0, 0, 0.9) 100%);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(232, 232, 232, 0.1);
}

button.tada-wallet-tile {
    cursor: pointer;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

button.tada-wallet-tile:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.tada-wallet-split .tada-wallet-tile--sweep:hover:not(.active),
.tada-wallet-split .tada-wallet-tile--gold:hover:not(.active) {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--tada-w-active);
    box-shadow: 0 12px 0 rgba(0, 0, 0, 0.3), 0 0 14px var(--gold-glow);
}

.tada-wallet-split .tada-wallet-tile--cashout .tada-wallet-tile-label {
    color: var(--tada-w-label);
}

.tada-wallet-split .tada-wallet-tile--cashout .tada-cash-out-amount {
    color: var(--tada-w-cashout);
    text-shadow: 0 2px 0 rgba(60, 60, 60, 0.8), 0 0 12px var(--silver-glow);
}

.tada-wallet-split .tada-wallet-tile-label {
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tada-w-label);
}

.tada-wallet-split .tada-wallet-tile-value {
    margin-top: 2px;
    font-size: clamp(1.55rem, 4.5vw, 1.95rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.tada-wallet-split .tada-balance-sweep-amount,
.tada-wallet-split .tada-balance-gold-amount,
.tada-wallet-split .tada-cash-out-amount {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--tada-w-amount);
    text-shadow: 0 2px 0 rgba(60, 60, 60, 0.7);
}

.tada-wallet-tile-unit {
    font-family: 'Fredoka', 'Outfit', var(--karma-font);
    font-size: 0.48em;
    font-weight: 700;
    color: var(--tada-w-unit);
    text-decoration: none;
    margin-left: 3px;
}

.tada-wallet-split .tada-wallet-tile-status {
    margin-top: auto;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px dashed rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.3);
    display: block;
}

.tada-wallet-split .tada-wallet-tile-status::before {
    display: none;
}

.tada-wallet-tile-status-on {
    display: none;
    color: var(--tada-w-status-on);
}

.tada-wallet-tile-status-off,
.tada-wallet-tile-status-note {
    color: var(--tada-w-status-muted);
    font-size: 10px;
    line-height: 1.3;
}

.tada-wallet-split .tada-wallet-tile--sweep.tada-switch-label.active .tada-wallet-tile-status-on,
.tada-wallet-split .tada-wallet-tile--gold.tada-switch-label.active .tada-wallet-tile-status-on {
    display: inline;
    color: var(--tada-w-status-on);
}

.tada-wallet-split .tada-wallet-tile--sweep.tada-switch-label.active .tada-wallet-tile-status-off,
.tada-wallet-split .tada-wallet-tile--gold.tada-switch-label.active .tada-wallet-tile-status-off {
    display: none;
}

.tada-wallet-split .tada-wallet-tile--sweep.tada-switch-label.active .tada-wallet-tile-status,
.tada-wallet-split .tada-wallet-tile--gold.tada-switch-label.active .tada-wallet-tile-status {
    border-style: solid;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--tada-w-active);
}

.tada-wallet-split .tada-wallet-tile--sweep.tada-switch-label.active {
    background: linear-gradient(180deg, var(--gold-dark) 0%, rgba(0, 0, 0, 0.9) 45%, #0a0a0a 100%);
    border-color: var(--tada-w-active);
    box-shadow:
        0 8px 0 var(--gold-shadow),
        0 0 20px var(--gold-glow),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
    animation: tada-wallet-seg-pulse 2s ease-in-out infinite;
}

.tada-wallet-split .tada-wallet-tile--sweep.tada-switch-label.active .tada-balance-sweep-amount {
    color: var(--tada-w-status-on);
    text-shadow: 0 2px 0 var(--gold-shadow);
}

.tada-wallet-split .tada-wallet-tile--gold.tada-switch-label.active {
    background: linear-gradient(180deg, var(--gold-dark) 0%, rgba(0, 0, 0, 0.9) 45%, #0a0a0a 100%);
    border-color: var(--tada-w-active);
    box-shadow:
        0 8px 0 var(--gold-shadow),
        0 0 20px var(--gold-glow),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
    animation: tada-wallet-seg-pulse 2s ease-in-out infinite;
}

.tada-wallet-split .tada-wallet-tile--gold.tada-switch-label.active .tada-balance-gold-amount {
    color: var(--tada-w-status-on);
    text-shadow: 0 2px 0 var(--gold-shadow), 0 0 10px var(--gold-glow);
}

@keyframes tada-wallet-seg-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.08); }
}

.tada-balance-sweep-amount.updating,
.tada-balance-gold-amount.updating,
.tada-cash-out-amount.updating {
    opacity: 0.65;
    transform: scale(1.02);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .tada-wallet-bento,
    .tada-wallet-bento-mark,
    .tada-wallet-split .tada-wallet-tile--sweep.tada-switch-label.active,
    .tada-wallet-split .tada-wallet-tile--gold.tada-switch-label.active {
        animation: none;
    }

    .tada-wallet-split .tada-wallet-tile--sweep:hover:not(.active),
    .tada-wallet-split .tada-wallet-tile--gold:hover:not(.active) {
        transform: none;
    }
}

.tada-refresh-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.12) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 2px solid var(--silver-border);
    border-radius: 12px;
    color: var(--ws-silver-light);
    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(135deg, var(--karma-yellow), var(--karma-red));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.tada-refresh-btn:hover {
    border-color: var(--ws-silver-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--silver-glow);
}

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

/* Cash Out Action Button */
.tada-cash-out-action {
    margin-top: 12px;
    text-align: center;
    display: block;
}

.tada-create-order-btn {
    background: linear-gradient(180deg, var(--karma-blue) 0%, var(--karma-blue-shadow) 100%);
    color: #fff;
    border: 1px solid var(--gold-border);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--gold-glow), inset 0 1px 0 var(--gold-bright);
}

.tada-create-order-btn:hover {
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gold-glow), inset 0 1px 0 var(--gold-bright);
}

.tada-create-order-btn:active {
    transform: translateY(0);
}

.tada-create-order-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

.tada-order-btn-text {
    font-size: 14px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .tada-wallet-bento {
        padding: 18px 16px 16px;
    }

    .tada-wallet-split .tada-wallet-tile.tada-wallet-seg {
        min-height: 118px;
    }

    .tada-wallet-bento-sub {
        font-size: 12px;
    }

    .tada-wallet-split .tada-wallet-tile-value {
        font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    }

    .tada-create-order-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .tada-order-btn-icon {
        font-size: 14px;
    }
    
    .tada-order-btn-text {
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .tada-wallet-split {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .tada-wallet-bento {
        padding: 18px 16px 16px;
        border-radius: 22px;
    }

    .tada-wallet-bento-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .tada-wallet-bento-mark {
        width: 50px;
        height: 50px;
    }

    .tada-wallet-bento-svg {
        width: 26px;
        height: 26px;
    }

    .tada-wallet-split .tada-wallet-tile.tada-wallet-seg {
        padding: 14px 12px 12px;
        min-height: 0;
    }

    .tada-wallet-split .tada-wallet-tile-status {
        font-size: 9px;
    }

    .tada-create-order-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .tada-order-btn-icon {
        font-size: 13px;
    }
    
    .tada-order-btn-text {
        font-size: 12px;
    }
}

/* Wallet Selector - Redesigned */
.tada-wallet-selector {
    margin: 20px 0;
    padding: 24px;
    background: linear-gradient(135deg, var(--karma-bg-dark), var(--karma-bg-mid));
    border: 2px solid var(--silver-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px var(--silver-glow), inset 0 1px 0 rgba(232, 232, 232, 0.08);
    position: relative;
    overflow: hidden;
}

.tada-wallet-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ws-red-dark), var(--ws-silver-dark), var(--ws-silver-light), var(--ws-red), var(--ws-silver), var(--ws-red-dark));
    animation: tada-wallet-gradient 3s ease-in-out infinite;
}

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

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

.tada-wallet-selector .tada-wallet-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--karma-white);
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, var(--ws-silver-light), var(--ws-silver), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tada-wallet-subtitle {
    font-size: 14px;
    color: var(--karma-muted-light);
    font-weight: 400;
}

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

.tada-wallet-selector .tada-wallet-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 2px solid var(--gold-border);
    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-selector .tada-wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.08));
    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: var(--gold);
    box-shadow: 0 20px 40px var(--gold-glow);
}

.tada-wallet-card.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(0, 0, 0, 0.2));
    box-shadow: 0 15px 35px var(--gold-glow);
    transform: translateY(-4px);
}

.tada-wallet-card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gold-dark), var(--gold), var(--gold-bright), var(--gold-dark));
    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(212, 175, 55, 0.35), rgba(0, 0, 0, 0.2));
    border-color: var(--gold-border);
    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: var(--karma-muted-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.tada-wallet-card.active .tada-wallet-badge {
    background: linear-gradient(180deg, var(--karma-yellow) 0%, var(--karma-yellow-shadow) 100%);
    color: #ffffff;
    border-color: var(--karma-yellow-highlight);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4), inset 0 1px 0 var(--karma-yellow-highlight);
}

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

.tada-wallet-balance-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--karma-yellow);
    text-shadow: 0 2px 0 var(--karma-yellow-shadow);
    margin-bottom: 4px;
    line-height: 1;
}

.tada-wallet-card.active .tada-wallet-balance-large {
    color: var(--karma-yellow-highlight);
    text-shadow: 0 2px 0 var(--karma-yellow-shadow);
}

.tada-wallet-currency {
    font-size: 12px;
    color: var(--karma-muted-light);
    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: var(--karma-muted-light);
    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 var(--gold-glow);
}

.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-selector .tada-wallet-title {
        font-size: 20px;
    }
    
    .tada-wallet-selector .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(212, 175, 55, 0.12);
    border-color: var(--gold-border);
    color: var(--gold-bright);
}

.tada-wallet-notification.error {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.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: var(--gold-border);
    background: rgba(212, 175, 55, 0.1);
}

.tada-balance-notification.error {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.tada-balance-notification span {
    color: var(--karma-white);
    font-size: 14px;
}

.tada-notification-close {
    background: none;
    border: none;
    color: var(--karma-muted-light);
    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: var(--karma-white);
}

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

/* Header Section */
.tada-lobby-header {
    border-radius: 14px 14px 0px 0px;
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.45) 0%, rgba(0, 0, 0, 0.55) 100%);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--silver-border);
    box-shadow: inset 0 1px 0 var(--silver-shine);
}

.tada-lobby-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 48%, var(--ws-silver) 52%, var(--ws-silver-dark) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px 0;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.tada-lobby-title p {
    color: var(--ws-silver);
    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: linear-gradient(180deg, rgba(60, 60, 60, 0.35) 0%, rgba(0, 0, 0, 0.5) 100%);
    border: 1px solid var(--silver-border);
    border-radius: 20px;
    color: var(--ws-silver-light);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tada-quick-filter:hover {
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-color: var(--ws-silver-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--silver-glow);
}

.tada-quick-filter.active {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    border-color: var(--gold-bright);
    color: #fff;
    box-shadow: 0 4px 15px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.tada-search-input {
    padding: 12px 45px 12px 16px;
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.4) 0%, rgba(0, 0, 0, 0.55) 100%);
    border: 1px solid var(--silver-border);
    border-radius: 25px;
    color: var(--ws-silver-light);
    font-size: 14px;
    width: 250px;
    backdrop-filter: blur(5px);
}

.tada-search-input::placeholder {
    color: var(--ws-silver-dark);
}

.tada-search-input:focus {
    outline: none;
    border-color: var(--ws-silver-light);
    box-shadow: 0 0 0 3px var(--silver-glow), 0 0 12px var(--gold-glow);
}

.tada-search-icon {
    position: absolute;
    right: 15px;
    font-size: 16px;
    color: var(--ws-silver);
    pointer-events: none;
}

/* Categories Container */
.tada-categories-container {
    border-radius: 0px 0px 14px 14px;
    background: transparent;
    padding: 20px;
    margin: 0 auto;
    border: 1px solid var(--silver-border);
    border-top: none;
    box-shadow: inset 0 1px 0 var(--silver-shine);
}


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

/* Category Header */
.tada-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, rgba(40, 40, 40, 0.15) 50%, rgba(192, 192, 192, 0.06) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--silver-border);
}

.tada-category-header:hover {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.16) 0%, rgba(60, 60, 60, 0.2) 50%, rgba(212, 175, 55, 0.08) 100%);
}

.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;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, var(--ws-silver) 50%, var(--ws-silver-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tada-category-count {
    font-size: 14px;
    color: var(--ws-silver);
}

.tada-category-chevron {
    font-size: 16px;
    color: var(--ws-silver);
    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: linear-gradient(180deg, rgba(50, 50, 50, 0.25) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--silver-border);
    box-shadow: inset 0 1px 0 var(--silver-shine);
}

.tada-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--silver-glow), 0 4px 16px var(--gold-glow);
    border-color: var(--ws-silver-light);
}

.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: linear-gradient(180deg, var(--ws-silver-light) 0%, var(--ws-silver) 45%, var(--ws-silver-dark) 100%);
    border: 2px solid var(--ws-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ws-red-dark);
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--silver-glow), 0 0 0 2px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tada-game-play-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, var(--ws-silver-light) 50%, var(--ws-silver) 100%);
    border-color: var(--ws-red-bright);
    transform: scale(1.1);
    box-shadow: 0 6px 24px var(--silver-glow), 0 0 16px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tada-game-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ws-silver-light);
    text-align: center;
    background: linear-gradient(180deg, rgba(60, 60, 60, 0.5) 0%, rgba(0, 0, 0, 0.65) 100%);
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--silver-border);
}

/* 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(192, 192, 192, 0.25);
    border-top: 3px solid var(--ws-silver-light);
    border-right: 3px solid var(--ws-red);
    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: var(--gold-bright);
    font-size: 18px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--gold-border);
    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 var(--gold);
    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;
    font-family: var(--karma-font);
}

.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: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold-bright);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 20px var(--gold-glow), inset 0 1px 0 var(--gold-bright);
}

/* Modal Wallet - Single card matching "Available to Withdraw" section */
.tada-game-modal-wallet {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10001;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    border: 2px solid var(--silver-border);
    border-radius: 14px;
    padding: 16px 18px;
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px var(--silver-glow), inset 0 1px 0 rgba(232, 232, 232, 0.12);
    min-width: 200px;
    max-width: 260px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tada-game-modal-wallet:hover {
    border-color: var(--ws-silver-light);
    box-shadow: 0 8px 28px var(--silver-glow), inset 0 1px 0 rgba(232, 232, 232, 0.18);
}

/* Header: same style as section */
.tada-modal-cash-out-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.tada-modal-cash-out-icon {
    font-size: 13px;
    opacity: 0.95;
}

.tada-modal-cash-out-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--ws-silver);
    text-transform: uppercase;
    letter-spacing: 0.85px;
}

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

.tada-modal-cash-out-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--ws-silver-light);
    text-shadow: 0 1px 0 rgba(60, 60, 60, 0.8), 0 0 10px var(--silver-glow);
    letter-spacing: -0.02em;
    line-height: 1;
    transition: all 0.2s ease;
}

.tada-modal-cash-out-amount.updating {
    opacity: 0.75;
    transform: scale(1.02);
}

/* Action block: divider + stepper + button - match section spacing */
.tada-modal-cash-out-action {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid var(--silver-border);
    display: none;
    flex-direction: column;
    gap: 12px;
}

.tada-modal-cash-out-action.tada-modal-topup-collapsed .tada-modal-topup-stepper {
    display: none !important;
}

.tada-modal-topup-stepper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tada-modal-topup-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--ws-silver);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* One row: [−] [amount] [+] then Max on the right */
.tada-modal-topup-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.tada-modal-topup-controls {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--silver-border);
    background: rgba(0, 0, 0, 0.35);
}

.tada-modal-topup-btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border: none;
    background: rgba(192, 192, 192, 0.2);
    color: var(--ws-silver-light);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, transform 0.1s ease;
    font-weight: 300;
}

.tada-modal-topup-btn:hover {
    background: rgba(192, 192, 192, 0.35);
}

.tada-modal-topup-btn:active {
    background: rgba(192, 192, 192, 0.5);
    transform: scale(0.97);
}

.tada-modal-topup-amount {
    flex: 1;
    min-width: 0;
    height: 28px;
    border: none;
    border-left: 1px solid var(--silver-border);
    border-right: 1px solid var(--silver-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ws-silver-light);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    padding: 0 6px;
}

.tada-modal-topup-amount:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px var(--silver-glow);
}

/* Hide number input spinners (up/down arrows) */
.tada-modal-topup-amount::-webkit-inner-spin-button,
.tada-modal-topup-amount::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.tada-modal-topup-amount[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Max: same height as stepper, green to match section */
.tada-modal-topup-max {
    flex-shrink: 0;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--silver-border);
    background: rgba(192, 192, 192, 0.15);
    color: var(--ws-silver-light);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tada-modal-topup-max:hover {
    background: rgba(192, 192, 192, 0.3);
    border-color: var(--ws-silver-light);
    color: #fff;
}

.tada-modal-topup-max:active {
    transform: scale(0.98);
}

/* Top Up button - green to match section */
button#tada-modal-order-btn {
    margin-top: 10px;
}

.tada-modal-cash-out-action .tada-create-order-btn {
    width: 100%;
    justify-content: center;
    background: linear-gradient(180deg, var(--karma-green-bright) 0%, var(--karma-green-shadow) 100%);
    color: #fff;
    border: 1px solid var(--karma-green-highlight);
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4), inset 0 1px 0 var(--karma-green-highlight);
}

.tada-modal-cash-out-action .tada-create-order-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, var(--karma-green) 0%, var(--karma-green-bright) 100%);
    border-color: var(--karma-green-highlight);
    box-shadow: 0 4px 14px var(--gold-glow), inset 0 1px 0 var(--gold-bright);
    transform: translateY(-1px);
}

.tada-modal-cash-out-action .tada-create-order-btn:active:not(:disabled) {
    transform: translateY(0);
}

.tada-modal-cash-out-action .tada-create-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tada-modal-cash-out-action .tada-order-btn-icon {
    font-size: 16px;
}

.tada-modal-cash-out-action .tada-order-btn-text {
    font-size: 13px;
}

.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(192, 192, 192, 0.2);
    border-top: 4px solid var(--ws-silver-light);
    border-right: 4px solid var(--ws-red);
    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: 12px 14px;
        min-width: 180px;
        max-width: 220px;
    }
    
    .tada-modal-cash-out-icon {
        font-size: 12px;
    }
    
    .tada-modal-cash-out-title {
        font-size: 9px;
    }
    
    .tada-modal-cash-out-amount {
        font-size: 18px;
    }
    
    .tada-modal-topup-btn {
        width: 28px;
        min-width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .tada-modal-topup-amount {
        height: 28px;
        font-size: 13px;
    }
    
    .tada-modal-topup-max {
        height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }
    
    .tada-modal-cash-out-action .tada-create-order-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tada-game-modal-wallet {
        top: 8px;
        left: 8px;
        padding: 10px 12px;
        min-width: 160px;
        max-width: 200px;
    }
    
    .tada-modal-cash-out-header {
        gap: 4px;
        margin-bottom: 4px;
    }
    
    .tada-modal-cash-out-balance {
        margin-bottom: 10px;
    }
    
    .tada-modal-cash-out-icon {
        font-size: 11px;
    }
    
    .tada-modal-cash-out-title {
        font-size: 8px;
    }
    
    .tada-modal-cash-out-amount {
        font-size: 16px;
    }
    
    .tada-modal-topup-label {
        font-size: 10px;
    }
    
    .tada-modal-topup-btn {
        width: 26px;
        min-width: 26px;
        height: 26px;
        font-size: 14px;
    }
    
    .tada-modal-topup-amount {
        height: 26px;
        font-size: 12px;
    }
    
    .tada-modal-topup-max {
        height: 26px;
        padding: 0 8px;
        font-size: 9px;
    }
}