.micart-wallet-wrapper {
    position: fixed;
    top: 70px;
    height: 100vh;
    width: 100%;
    font-family: inherit;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    gap: 16px;
    z-index: 9999;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.micart-wallet-wrapper.wallet-closed {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.wallet-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #9ca3af;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.wallet-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.micart-wallet-holder {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100vh;
    overflow-y: scroll;
    background: rgba(255, 255, 255, 0.6);
    /*	background-image: linear-gradient(45deg, rgba(2, 161, 249, 0.41), rgb(0, 245, 141));*/
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 40px;
}

.micart-wallet-holder::-webkit-scrollbar {
    display: none;
}

/* Dark Balance Card */
.wallet-main-card {
    position: relative;
    height: auto;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.wallet-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wallet-title {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.wallet-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    color: #d1d5db;
}

.wallet-status-badge .dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.wallet-balance-area {
    text-align: center;
    margin-bottom: 24px;
}

.balance-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.balance-amount {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 4px 0;
    letter-spacing: -0.02em;
}

.balance-sub {
    font-size: 10px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Action Buttons Grid */
.wallet-actions-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.wallet-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 10px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.wallet-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.wallet-action-btn-main {
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #0f1115;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.wallet-action-btn-main:hover {
    transform: scale(1.05);
}

/* Balance Due Card */
.wallet-due-card {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.due-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
}

.due-desc {
    display: block;
    font-size: 0.75rem;
    color: #b45309;
}

.due-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #b45309;
}

/* History Card */
.wallet-history-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 100px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.history-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.view-all-link {
    font-size: 0.8rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 12px;
}

.history-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 12px;
}

.history-icon.credit {
    background: #d1fae5;
    color: #065f46;
}

.history-icon.debit {
    background: #fee2e2;
    color: #991b1b;
}

.history-details {
    flex-grow: 1;
}

.item-title {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #1f2937;
}

.item-date {
    display: block;
    font-size: 10px;
    color: #9ca3af;
}

.history-amount {
    font-size: 11.5px;
    white-space: nowrap;
    font-weight: 600;
}

.history-amount.credit {
    color: #059669;
}

.history-amount.debit {
    color: #dc2626;
}

.wallet-coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.2s ease-out;
}

.wallet-coming-soon-card {
    background: #ffffff;
    max-width: 400px;
    width: 90%;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    color: #1f2937;
}

.wallet-coming-soon-card h3 {
    color: #1e3a8a;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.wallet-coming-soon-card p {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.wallet-coming-soon-btn {
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    max-width: 100%;
    transition: background 0.2s;
}

.wallet-coming-soon-btn:hover {
    background: #2563eb;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* --- Unified Wallet Modal Styling --- */
.wallet-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-direction: row;
}

.wallet-modal-actions.column-layout {
    flex-direction: column;
}

.wallet-coming-soon-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, opacity 0.2s;
}

.wallet-coming-soon-btn.btn-teal {
    background: #0f766e;
    color: #ffffff;
}

.wallet-coming-soon-btn.btn-teal:hover {
    background: #115e59;
}

.wallet-coming-soon-btn.btn-sky {
    background: #0284c7;
    color: #ffffff;
}

.wallet-coming-soon-btn.btn-sky:hover {
    background: #0369a1;
}

.wallet-coming-soon-btn.btn-light {
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 500;
}

.wallet-coming-soon-btn.btn-light:hover {
    background: #cbd5e1;
}

.wallet-coming-soon-btn.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.wallet-coming-soon-btn.btn-whatsapp:hover {
    background: #22c55e;
}

.wallet-input-group {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
}

.wallet-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    display: block;
    margin-bottom: 5px;
}

.wallet-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.wallet-error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    display: block;
    margin-top: 4px;
}

.wallet-transfer-box {
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #334155;
    width: 100%;
    margin-bottom: 15px;
}

.wallet-transfer-box p {
    margin: 6px 0;
}

.account-number-highlight {
    font-size: 1.1rem;
    color: #0f766e;
    font-weight: 700;
    user-select: all;
}

.expiry-notice {
    color: #dc2626;
    font-size: 0.78rem;
}

@media (max-width: 876px) {
    .micart-wallet-holder {
        position: relative;
        width: 100%;
        padding: 10px;
        backdrop-filter: blur(0px);
        background: #fff;
    }

    .wallet-main-card {
        padding: 15px 20px;
        margin-bottom: 20px;
    }

    .wallet-due-card {
        margin-bottom: 20px;
    }

    .wallet-coming-soon-card p {
        font-size: 12px;
    }
}
