/* Wallet Modal - Centered Popup */

/* Overlay with backdrop - CENTERED */
.wallet-modal-overlay-react {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content - CENTERED IN MIDDLE OF SCREEN */
#walletModal.wallet-modal-content {
    position: relative;
    width: 320px;
    background: #020713;
    border-radius: 12px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Expand width for bundles/payment views */
#walletModal.wallet-modal-content:has(#bundlesView:not(.hidden)),
#walletModal.wallet-modal-content:has(#paymentView:not(.hidden)) {
    width: 500px;
}

.wallet-modal-content {
    width: 100%;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

/* Modal Header */
.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #020713;
}

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

.wallet-title h2 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.bundles-back-btn,
.payment-back-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-right: 8px;
}

.wallet-close-btn {
    background: transparent;
    border: none;
    color: #8A9BB3;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal View */
.modal-view {
    display: block;
    padding: 20px;
}

.modal-view.hidden {
    display: none;
}

/* Wallet Currencies */
.wallet-currencies {
    padding: 16px;
    background: transparent;
}

.currency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    color: #8A9BB3;
    font-weight: 400;
}

.currency-label,
.value-label {
    font-size: 11px;
    color: #8A9BB3;
    font-weight: 400;
}

.currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

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

.currency-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.currency-icon.gc-icon {
    background: #fbbf24;
}

.currency-icon.dc-icon {
    background: #00e701;
}

.currency-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-abbr {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.currency-name {
    font-size: 10px;
    color: #8A9BB3;
}

.currency-value {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

/* Wallet Buttons Grid */
.wallet-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-action-btn {
    width: 100% !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    border-radius: 3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    border: none !important;
    margin: 0 !important;
}

.wallet-action-btn.primary-btn {
    background: #1475e1 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

.wallet-action-btn.secondary-btn {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    border: none !important;
}

/* Bundles View */
.bundles-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 0 4px;
}

.bundles-header p {
    color: #b1bad3;
    font-size: 12px;
    margin: 4px 0;
    line-height: 1.2;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 8px;
}

@media (max-width: 768px) {
    .bundles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bundle-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
    min-width: 0;
    min-height: 160px;
    cursor: pointer;
}

.bundle-bonus {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 2px;
}

.bundle-bonus span {
    font-size: 10px;
    color: #8A9BB3;
}

.bonus-icon {
    width: 16px;
    height: 16px;
    background: #00e701;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #000;
    flex-shrink: 0;
}

.bonus-icon.disabled {
    background: #192c3c;
    color: #6a7a8a;
}

.bundle-coin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.coin-icon {
    width: 48px;
    height: 48px;
    margin: 2px 0;
}

.coin-icon-small {
    width: 48px;
    height: 48px;
}

.coin-amount {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.coin-label {
    font-size: 9px;
    color: #8A9BB3;
    margin: 0;
}

.bundle-price-btn {
    width: 100%;
    padding: 8px;
    background: #1475e1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bundle-price-btn:hover {
    background: #1a85ff;
    transform: translateY(-1px);
}

.bundles-footer {
    text-align: center;
    padding: 0 8px;
}

.bundles-footer p {
    color: #6a7a8a;
    font-size: 10px;
    margin: 4px 0;
}

/* Payment View */
.payment-content {
    padding: 0;
}

.bundle-summary {
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bundle-summary h3 {
    font-size: 13px;
    font-weight: 500;
    color: #8A9BB3;
    margin: 0 0 12px 0;
}

.bundle-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bundle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.bundle-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.bundle-icon.gc-icon {
    background: #fbbf24;
}

.bundle-icon.dc-icon {
    background: #00e701;
}

.bundle-amount {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.bundle-label {
    font-size: 11px;
    color: #8A9BB3;
    margin-left: auto;
}

.payment-disclaimer {
    padding: 16px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-disclaimer p {
    color: #8A9BB3;
    font-size: 11px;
    margin: 0;
    line-height: 1.4;
}

.payment-methods {
    display: flex;
    gap: 12px;
    padding: 16px;
}

.payment-method {
    flex: 1;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.payment-method.active {
    border-color: #1475e1;
    background: rgba(20, 117, 225, 0.1);
}

.payment-icon {
    font-size: 28px;
}

.payment-icon.crypto-icon {
    color: #fbbf24;
}

.payment-icon.card-icon {
    color: #00e701;
}

.payment-method span {
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.payment-proceed-btn {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 12px;
    background: #1475e1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.payment-proceed-btn:hover {
    background: #1a85ff;
    transform: translateY(-1px);
}

/* Daily Bonus View */
.daily-bonus-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
}

.daily-bonus-message {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.daily-bonus-message p {
    color: #b1bad3;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.daily-bonus-amount {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daily-bonus-amount label {
    color: #8A9BB3;
    font-size: 12px;
    font-weight: 500;
}

.bonus-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.bonus-coin-icon {
    width: 20px;
    height: 20px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.bonus-amount {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.bonus-message-display {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    color: #00e701;
    font-size: 12px;
    text-align: center;
}

.claim-bonus-btn {
    width: 100%;
    background: #1475e1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.claim-bonus-btn:hover {
    background: #1a85ff;
    transform: translateY(-1px);
}

.claim-bonus-btn:disabled {
    background: rgba(0, 0, 0, 0.3);
    color: #6a7a8a;
    cursor: not-allowed;
}

/* Scrollbar */
.wallet-modal-content::-webkit-scrollbar {
    width: 6px;
}

.wallet-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.wallet-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.wallet-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}
