/* ═══════════════════════════════════════════════════════════════
   BULLET SERVER GSM WALLET SYSTEM — GLASSMORPHISM CSS
   ═══════════════════════════════════════════════════════════════ */

.wallet-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 20px;
    padding: 6px 14px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    user-select: none;
}

.wallet-badge-btn:hover {
    background: rgba(0, 240, 255, 0.18);
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transform: translateY(-1px);
}

.wallet-icon-glow {
    color: #00f0ff;
    font-size: 14px;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

.wallet-amount-val {
    color: #00f0ff;
    font-weight: 700;
}

/* Currency Switcher Badge Button (Navbar) */
.currency-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 20px;
    padding: 6px 12px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    user-select: none;
}

.currency-badge-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
    transform: translateY(-1px);
}

.currency-badge-btn:active {
    transform: scale(0.96);
}

.currency-flag-emoji {
    font-size: 15px;
    line-height: 1;
    display: inline-block;
}

.currency-code-text {
    color: #00f0ff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.currency-toggle-arrows {
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}

.currency-badge-btn:hover .currency-toggle-arrows {
    color: #00f0ff;
    transform: rotate(180deg);
}

/* Modal Currency Switcher Buttons */
.wallet-currency-switcher {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 20px;
    padding: 2px;
    gap: 3px;
}

.curr-switch-opt {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
}

.curr-switch-opt:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.curr-switch-opt.is-active {
    background: #00f0ff;
    color: #0c101a;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

/* Modal Overlay */
.wallet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 12, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100000;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.wallet-modal-overlay.is-active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
}

.wallet-modal-card {
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: rgba(12, 16, 26, 0.96);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.15);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    margin: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.3) transparent;
}

.wallet-modal-card::-webkit-scrollbar {
    width: 4px;
}
.wallet-modal-card::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 4px;
}

.wallet-modal-overlay.is-active .wallet-modal-card {
    transform: scale(1);
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.wallet-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 0 4px;
}

.wallet-modal-close:hover {
    color: #ff4c60;
}

.wallet-balance-box {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(255, 0, 180, 0.08) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    margin-bottom: 14px;
}

.wallet-balance-label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.wallet-balance-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #00f0ff;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    line-height: 1.2;
}

.wallet-balance-converted {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
    font-family: 'Share Tech Mono', monospace;
}

.wallet-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px;
    border-radius: 8px;
}

.wallet-tab-btn {
    flex: 1;
    padding: 7px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-tab-btn.is-active {
    background: #00f0ff;
    color: #0c101a;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.wallet-tab-content {
    display: none;
}

.wallet-tab-content.is-active {
    display: block;
}

.wallet-form-group {
    margin-bottom: 12px;
}

.wallet-form-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 5px;
    font-weight: 600;
}

.wallet-input {
    width: 100%;
    padding: 9px 13px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Space Grotesk', monospace;
    font-size: 14.5px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.wallet-input:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.wallet-methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.wallet-method-card {
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wallet-method-card:hover, .wallet-method-card.is-selected {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
}

.wallet-method-card img {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain;
}

.wallet-method-icon {
    font-size: 18px;
    margin-bottom: 2px;
    display: block;
}

.wallet-method-title {
    font-size: 10.5px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.2;
}

.wallet-submit-btn {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, #00f0ff 0%, #7c5cff 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 240, 255, 0.4);
}

.wallet-tx-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.wallet-tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.wallet-tx-desc {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
}

.wallet-tx-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.wallet-tx-amount {
    font-family: 'Space Grotesk', monospace;
    font-size: 14px;
    font-weight: 700;
}

.wallet-tx-amount.is-deposit { color: #00ff88; }
.wallet-tx-amount.is-payment { color: #ff4c60; }
.wallet-tx-amount.is-pending { color: #ff9800; }
.wallet-tx-amount.is-rejected { color: #ff5252; text-decoration: line-through; opacity: 0.6; }

/* Tickets List inside Wallet Modal */
.wallet-ticket-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.wallet-ticket-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s ease;
}

.wallet-ticket-item:hover {
    border-color: rgba(0, 240, 255, 0.4);
}

.wallet-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-ticket-code {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.wallet-ticket-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Space Grotesk', monospace;
}

.ticket-status-active { color: #00ff88; }
.ticket-status-pending { color: #ffbc00; }
.ticket-status-expired { color: #ff4c60; }
.ticket-status-rejected { color: #ff5252; }
.ticket-status-resolved { color: #00ff88; }

.wallet-ticket-subject {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.wallet-ticket-msg {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 6px;
}

.wallet-ticket-countdown {
    font-size: 10px;
    color: #ffbc00;
    font-weight: 600;
    margin-top: 4px;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   WALLET RESPONSIVE MOBILE STYLING
   ═══════════════════════════════════════════════════════════════ */
/* Responsive for screens with short height (laptops, rotated devices) */
@media (max-height: 740px) {
    .wallet-modal-overlay {
        padding: 8px;
    }

    .wallet-modal-card {
        padding: 12px 16px;
        max-height: calc(100vh - 16px);
        border-radius: 12px;
    }

    .wallet-modal-header {
        padding-bottom: 6px;
        margin-bottom: 8px;
    }

    .wallet-balance-box {
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .wallet-balance-display {
        font-size: 20px;
    }

    .wallet-balance-converted {
        font-size: 10.5px;
        margin-top: 2px;
    }

    .wallet-form-group {
        margin-bottom: 8px;
    }

    .wallet-methods-grid {
        gap: 6px;
        margin-bottom: 8px;
    }

    .wallet-method-card {
        padding: 5px 3px;
        min-height: 48px;
        gap: 2px;
    }

    .wallet-method-card img {
        width: 20px !important;
        height: 20px !important;
    }

    .wallet-method-title {
        font-size: 9.5px;
    }

    .wallet-submit-btn {
        padding: 8px 12px;
        font-size: 12.5px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   WALLET RESPONSIVE MOBILE STYLING
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .wallet-modal-overlay {
        padding: 10px 8px;
        align-items: center;
        justify-content: center;
    }

    .wallet-modal-card {
        width: 96%;
        max-width: 100%;
        max-height: 94vh;
        overflow-y: auto;
        padding: 14px 12px 16px;
        border-radius: 14px;
        -webkit-overflow-scrolling: touch;
    }

    .wallet-modal-title {
        font-size: 15px;
    }

    .wallet-modal-header {
        padding-bottom: 8px;
        margin-bottom: 10px;
    }

    .wallet-balance-box {
        padding: 10px 8px;
        margin-bottom: 10px;
    }

    .wallet-balance-label {
        font-size: 10.5px;
    }

    .wallet-balance-display {
        font-size: 21px;
    }

    .wallet-tabs {
        margin-bottom: 10px;
    }

    .wallet-tab-btn {
        padding: 7px 4px;
        font-size: 12px;
    }

    .wallet-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-bottom: 10px;
    }

    .wallet-method-card {
        padding: 7px 4px;
        min-height: 52px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }

    .wallet-method-icon {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .wallet-method-card img {
        width: 22px !important;
        height: 22px !important;
    }

    .wallet-method-title {
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.2;
    }

    .wallet-input {
        font-size: 15px !important; /* Prevents unwanted iOS zoom */
        padding: 8px 12px;
        border-radius: 8px;
        min-height: 38px;
    }

    .wallet-form-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .wallet-submit-btn {
        min-height: 40px;
        padding: 9px;
        font-size: 13.5px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .copy-payment-btn {
        min-height: 36px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .wallet-tx-list {
        width: 100%;
        box-sizing: border-box;
        padding-right: 0;
        overflow-x: hidden;
    }

    .wallet-tx-item {
        padding: 9px 10px;
        width: 100%;
        box-sizing: border-box;
        gap: 8px;
        min-width: 0;
    }

    .wallet-tx-desc {
        font-size: 12px;
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.35;
    }

    .wallet-tx-date {
        font-size: 10px;
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .wallet-tx-amount {
        font-size: 12.5px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .wallet-ticket-item {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .wallet-ticket-subject {
        font-size: 13px;
        word-break: break-word;
    }

    .wallet-ticket-msg {
        font-size: 11.5px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}
