.wallet-page-sec {
    min-height: calc(100vh - 180px);
    padding: 40px 20px 80px;
    background: #FAF8F9;
    direction: rtl;
}

.wallet-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wallet-guest-card {
    background: linear-gradient(135deg, var(--color-primary, #8A1551) 0%, var(--color-secondary, #6F1041) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 28px;
    padding: 50px 30px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 16px 40px rgba(138, 21, 81, 0.25);
    position: relative;
    overflow: hidden;
}

.wallet-guest-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-guest-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(138, 21, 81, 0.3) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
}

.wallet-guest-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 10px;
    color: #FFFFFF;
}

.wallet-guest-desc {
    font-size: 14.5px;
    color: #CBD5E1;
    max-width: 540px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.btn-wallet-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #D4AF37 0%, #B48A1B 100%);
    color: #180913;
    font-size: 15px;
    font-weight: 850;
    padding: 14px 34px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wallet-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.wallet-balance-card {
    background: linear-gradient(135deg, var(--color-primary, #8A1551) 0%, var(--color-secondary, #6F1041) 50%, #450727 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 26px;
    padding: 30px 34px;
    color: #FFFFFF;
    box-shadow: 0 20px 50px rgba(138, 21, 81, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 30px rgba(212, 175, 55, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.wallet-card-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 15% 85%, rgba(138, 21, 81, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.wallet-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
}

.wallet-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.wallet-brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    border-radius: 6px;
}

.wallet-brand-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-brand-name {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.wallet-brand-subtitle {
    font-size: 11px;
    color: #D4AF37;
    font-weight: 750;
    letter-spacing: 0.3px;
}

.wallet-currency-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 6px 12px;
    color: #D4AF37;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.wallet-currency-picker:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #D4AF37;
}

.wallet-currency-picker select {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 800;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.wallet-currency-picker select option {
    background: #180913;
    color: #FFFFFF;
}

/* EMV Chip & Contactless */
.wallet-chip-row {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.wallet-emv-chip {
    width: 44px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ECC94B 0%, #D69E2E 50%, #B7791F 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.chip-core {
    position: absolute;
    inset: 7px 11px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}

.chip-line-1 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.25);
}

.chip-line-2 {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.25);
}

.wallet-contactless-icon {
    color: rgba(212, 175, 55, 0.7);
    transform: rotate(90deg);
}

/* Balance Display */
.wallet-balance-display-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.wallet-balance-amount-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-balance-label {
    font-size: 12.5px;
    font-weight: 750;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.3px;
}

.wallet-balance-number {
    font-size: 38px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: monospace, sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wallet-balance-currency {
    font-size: 18px;
    font-weight: 850;
    color: #D4AF37;
}

/* Bottom Cardholder & VIP Row */
.wallet-card-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 2;
}

.wallet-cardholder-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cardholder-label {
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cardholder-name-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cardholder-name-group strong {
    font-size: 15px;
    font-weight: 850;
    color: #FFFFFF;
}

.cardholder-phone {
    font-size: 12px;
    color: #D4AF37;
    font-family: monospace, sans-serif;
    direction: ltr;
}

.wallet-card-badge-seal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    color: #D4AF37;
}

.wallet-history-card {
    background: #FFFFFF;
    border: 1.5px solid rgba(138, 21, 81, 0.09);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(138, 21, 81, 0.04);
}

.wallet-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #F1F5F9;
}

.wallet-history-title {
    font-size: 17px;
    font-weight: 900;
    color: #0F172A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-filters-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wallet-filter-pill {
    padding: 7px 16px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    color: #475569;
    font-size: 12.5px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-filter-pill:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.wallet-filter-pill.active {
    background: #8A1551;
    border-color: #8A1551;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(138, 21, 81, 0.25);
}

.wallet-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-txn-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    transition: all 0.2s ease;
}

.wallet-txn-item:hover {
    background: #FFFFFF;
    border-color: rgba(138, 21, 81, 0.2);
    box-shadow: 0 6px 18px rgba(138, 21, 81, 0.05);
}

.wallet-txn-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wallet-txn-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-txn-icon-wrap.positive {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

.wallet-txn-icon-wrap.negative {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

.wallet-txn-info h4 {
    margin: 0 0 3px;
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
}

.wallet-txn-info p {
    margin: 0;
    font-size: 12px;
    color: #64748B;
}

.wallet-txn-left {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.wallet-txn-amount {
    font-size: 15.5px;
    font-weight: 900;
    font-family: monospace, sans-serif;
}

.wallet-txn-amount.positive {
    color: #10B981;
}

.wallet-txn-amount.negative {
    color: #EF4444;
}

.wallet-txn-date {
    font-size: 11.5px;
    color: #94A3B8;
}

/* Modal */
.wallet-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 8, 12, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    direction: rtl;
    padding: 20px;
}

.wallet-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wallet-modal-card {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 28px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(138, 21, 81, 0.15);
}

.preset-amounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 12px 0 16px;
}

.preset-amount-btn {
    padding: 10px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    font-size: 13.5px;
    font-weight: 800;
    color: #1E293B;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-amount-btn:hover,
.preset-amount-btn.active {
    background: rgba(138, 21, 81, 0.08);
    border-color: #8A1551;
    color: #8A1551;
}

/* Modern Skeleton & Spinner Loader */
.wallet-shimmer-val {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: wallet-shimmer 1.5s infinite linear;
    border-radius: 8px;
    vertical-align: middle;
}

@keyframes wallet-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.wallet-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 50px 20px;
    background: #FFFFFF;
    border-radius: 20px;
}

.wallet-spinner-ring {
    width: 38px;
    height: 38px;
    border: 3.5px solid rgba(138, 21, 81, 0.15);
    border-top-color: var(--color-primary, #8A1551);
    border-radius: 50%;
    animation: wallet-spin 0.75s linear infinite;
}

@keyframes wallet-spin {
    to { transform: rotate(360deg); }
}

.wallet-loading-text {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--color-primary, #8A1551);
    letter-spacing: 0.2px;
}

@media (max-width: 768px) {
    .wallet-balance-card {
        padding: 24px 20px;
    }
    .wallet-balance-number {
        font-size: 30px;
    }
    .wallet-balance-display-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
