/* ═══════════════════════════════════════════════════════════
   WALLET  —  Sunset Orange Brand
   ═══════════════════════════════════════════════════════════ */

/* ── Wallet Dashboard Hero ──────────────────────────────── */
.wallet-dashboard {
    display: flex;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-light) 60%, #2C2C46 100%);
    border-radius: 24px;
    color: var(--white);
    width: 100%;
    overflow: hidden;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-light) 60%, #2C2C46 100%);
    background-size: 20px 20px, auto;
    position: relative;
}

.wallet-dashboard::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(242, 166, 90, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-main {
    flex: 3;
    padding: 30px 40px;
    position: relative;
    z-index: 1;
}

.wallet-header {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-teal);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, .7);
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 700;
}

.balance-row {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
}

.currency {
    font-size: 24px;
    margin-top: 10px;
    opacity: 0.7;
}

.balance-value {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.decimal {
    font-size: 24px;
    margin-top: 20px;
    opacity: 0.7;
}

.security-msg {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 14px;
}

.stat-box span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 5px;
}

.stat-box strong {
    font-size: 18px;
}

.text-teal {
    color: var(--brand-teal);
}

.text-gold {
    color: var(--brand-primary);
}

/* Sidebar */
.wallet-sidebar {
    flex: 1;
    background: rgba(0, 0, 0, .2);
    border-left: 1px solid rgba(255, 255, 255, .06);
    position: relative;
    z-index: 1;
}

.action-btn {
    width: 100%;
    border: none;
    background: transparent;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .18s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, .07);
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.bg-teal {
    background: rgba(16, 185, 129, .2);
    color: var(--brand-teal);
}

.bg-blue {
    background: rgba(255, 255, 255, .1);
}

.bg-gold {
    background: rgba(242, 166, 90, .2);
    color: var(--brand-primary);
}

.title {
    font-weight: 700;
    font-size: 15px;
}

.sub {
    font-size: 12px;
    opacity: 0.6;
}

/* How It Works */
.how-it-works-wrapper {
    padding: 20px;
    background: var(--bg-main);
    max-width: 1100px;
    margin: 20px auto;
    border-radius: 24px;
}

.works-header {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.1;
}

.works-header h2 {
    color: var(--brand-primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.works-header p {
    color: var(--text-muted);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.work-step {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.work-step h3 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.work-step p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.85rem;
}

.works-footer-badges {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.badge {
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .18s;
}

.badge:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Quick Add */
.quick-add-container {
    width: 100%;
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.section-title {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.amount-tile {
    padding: 20px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg-main);
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    text-align: center;
    color: var(--text-main);
}

.amount-tile:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
}

.amount-tile.selected {
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    box-shadow: var(--glow-orange);
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--white);
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: var(--glow-orange);
    transition: all .18s;
    display: block;
    width: 100%;
}

.btn-primary:hover {
    background: var(--brand-primary-deep);
}

.btn-secondary {
    background: var(--brand-teal);
    color: var(--white);
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--glow-teal);
    transition: all .18s;
    display: block;
    width: 100%;
}

.balance-info-box {
    margin-top: 20px;
    background: var(--bg-main);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Wallet History */
.wallet-history-container {
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.history-filters::-webkit-scrollbar {
    height: 6px;
}

.history-filters::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .08);
    border-radius: 6px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--bg-main);
    cursor: pointer;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all .18s;
}

.filter-btn.active {
    background: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
    box-shadow: var(--glow-orange);
}

.filter-btn:hover:not(.active) {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.activity-row {
    display: grid;
    grid-template-columns: 50px 2fr 120px 100px 100px;
    gap: 15px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s;
}

.activity-row:hover {
    background: var(--brand-primary-soft);
}

.act-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-completed {
    background: var(--brand-teal-soft);
    color: var(--brand-teal);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.view-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: all .2s;
}

.activity-row:hover .view-btn {
    opacity: 1;
}

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, .55);
    backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    width: 92%;
    max-width: 520px;
    margin: 0 16px;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-content .modal-header {
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-light));
    color: white;
    display: flex;
    gap: 16px;
    align-items: center;
}

.modal-content .modal-header .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    font-size: 1.6rem;
}

.modal-content .modal-body {
    padding: 18px 20px;
    background: var(--white);
}

.modal-content .modal-footer {
    padding: 14px 18px;
    background: var(--white);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border);
}

.modal-content h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--white);
}

.modal-content p {
    margin: 0;
    color: var(--text-muted);
}

/* Add Funds modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, .6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    backdrop-filter: blur(6px);
}

.modal-card {
    background: var(--white);
    width: 100%;
    height: 86vh;
    overflow-y: auto;
    max-width: 480px;
    padding: 22px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.modal-card .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-card .close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color .15s;
}

.modal-card .close-btn:hover {
    color: var(--brand-primary);
}

.balance-sub {
    color: var(--text-muted);
    margin: 6px 0 12px;
}

.amount-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    padding: 18px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    margin-bottom: 14px;
    text-align: center;
}

#add-amount-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    outline: none;
    box-sizing: border-box;
    color: var(--brand-primary);
    background: #fff;
    transition: box-shadow .12s ease, border-color .12s ease;
}

#add-amount-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 6px 18px rgba(242, 166, 90, .15);
}

#add-amount-input::-webkit-outer-spin-button,
#add-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#add-amount-input::placeholder {
    color: var(--text-muted);
    font-weight: 700;
}

.quick-select {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.quick-select button {
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    transition: all .18s;
}

.quick-select button:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.quick-select button.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--white);
    box-shadow: var(--glow-orange);
}

.section-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 10px 0;
    font-weight: 700;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all .18s ease;
    margin-bottom: 10px;
}

.pay-option .pay-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
}

.pay-option .pay-text p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pay-option .pay-text strong {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 700;
}

.pay-option input {
    margin-left: auto;
}

.pay-option.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
    box-shadow: var(--glow-orange);
}

.pay-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-submit {
    width: 100%;
    background: var(--brand-primary);
    color: var(--white);
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: var(--glow-orange);
    transition: all .18s;
}

.btn-submit:hover {
    background: var(--brand-primary-deep);
    transform: translateY(-1px);
}

.footer-note {
    margin: 8px auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Icon color helpers */
.bg-teal {
    background: var(--brand-teal-soft);
    color: var(--brand-teal);
}

.bg-purple {
    background: rgba(139, 92, 246, .1);
    color: #8b5cf6;
}

.badge-credited {
    background: rgba(59, 130, 246, .1);
    color: var(--sky-blue);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.badge-processing {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.badge-completed {
    background: var(--brand-teal-soft);
    color: var(--brand-teal);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.text-success {
    color: var(--brand-teal);
    font-weight: 700;
}

.text-danger {
    color: #dc2626;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
    .wallet-dashboard {
        flex-direction: column;
        border-radius: 16px;
    }

    .wallet-main {
        padding: 20px;
        order: 1;
    }

    .wallet-sidebar {
        order: 2;
        display: flex;
        gap: 10px;
        padding: 12px;
        background: rgba(0, 0, 0, .12);
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, .06);
        overflow-x: auto;
    }

    .action-btn {
        flex: 1 0 auto;
        padding: 12px 14px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, .06);
        min-width: 120px;
        justify-content: center;
        text-align: center;
    }

    .action-btn .btn-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .icon-circle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .balance-value {
        font-size: 58px;
    }

    .currency,
    .decimal {
        font-size: 18px;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 18px;
    }

    .how-it-works-wrapper {
        padding: 18px 16px;
        border-radius: 16px;
        margin: 18px 12px;
    }

    .works-header h2 {
        font-size: 1.4rem;
    }

    .work-step {
        padding: 18px;
        border-radius: 14px;
    }

    .step-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .badge {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 700px) {
    .history-filters {
        gap: 8px;
    }

    .activity-table {
        display: grid;
        gap: 12px;
    }

    .activity-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: var(--white);
        box-shadow: var(--shadow-xs);
    }

    .act-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        flex: 0 0 52px;
        font-size: 1.25rem;
    }

    .act-info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .act-info .title {
        font-weight: 700;
        margin-bottom: 6px;
    }

    .act-info .sub {
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    .act-status {
        flex: 0 0 auto;
    }

    .act-amount {
        flex: 0 0 auto;
        font-weight: 800;
    }

    .view-btn {
        display: inline-flex;
        padding: 8px 10px;
        border-radius: 10px;
    }
}

@media (max-width: 600px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wallet-dashboard {
        padding: 10px;
    }

    .wallet-main {
        padding: 16px;
    }

    .wallet-header {
        justify-content: center;
        font-size: 12px;
    }

    .balance-row {
        justify-content: center;
        align-items: baseline;
    }

    .balance-value {
        font-size: 58px;
    }

    .currency,
    .decimal {
        font-size: 16px;
    }

    .action-btn {
        min-width: 100px;
        padding: 10px 12px;
    }

    .stat-box strong {
        font-size: 16px;
    }

    .how-it-works-wrapper {
        padding: 14px 12px;
        margin: 12px 8px;
    }

    .works-header h2 {
        font-size: 1.1rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-card {
        padding: 16px;
        border-radius: 12px;
    }

    .quick-select {
        grid-template-columns: repeat(3, 1fr);
    }

    .amount-display {
        font-size: 2rem;
    }

    #add-amount-input {
        font-size: 1.1rem;
        padding: 10px 12px;
    }
}

@media (max-width: 420px) {
    .activity-row {
        flex-direction: column;
        align-items: stretch;
    }

    .act-info {
        margin-top: 6px;
    }

    .act-status {
        margin-top: 8px;
    }

    .act-amount {
        margin-top: 8px;
        font-size: 1rem;
    }

    .view-btn {
        width: 100%;
        margin-top: 10px;
    }
}







/* ═══════════════════════════════════════════════════════════
   WALLET — Voucher additions
   Appended after wallet.css — uses same :root variables
   ═══════════════════════════════════════════════════════════ */


/* ── Funds + Voucher row layout ──────────────────────────── */
.funds-voucher-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}


/* ── Voucher Redeem Section (inline card) ────────────────── */
.voucher-redeem-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.voucher-redeem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-teal));
}

.voucher-redeem-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.voucher-redeem-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.voucher-redeem-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.voucher-shop-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
    border: 1px solid rgba(242, 166, 90, .25);
    padding: 6px 13px;
    border-radius: 50px;
    text-decoration: none;
    transition: all .18s;
    flex-shrink: 0;
}

.voucher-shop-link:hover {
    background: var(--brand-primary);
    color: var(--white);
}

/* Code input */
.voucher-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.voucher-input-row {
    display: flex;
    gap: 10px;
}

.voucher-input-field-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--bg-main);
    transition: border-color .15s, box-shadow .15s;
}

.voucher-input-field-wrap:focus-within {
    border-color: var(--brand-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(242, 166, 90, .12);
}

.voucher-input-field-wrap i {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.voucher-code-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
    background: none;
}

.voucher-code-input::placeholder {
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.btn-redeem {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: var(--glow-orange);
    transition: all .18s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-redeem:hover {
    background: var(--brand-primary-deep);
    transform: translateY(-1px);
}

.voucher-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.voucher-hint i {
    font-size: 0.82rem;
    color: var(--brand-primary);
}

/* Recently redeemed */
.voucher-history-box {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.vh-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.vh-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.vh-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vh-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-teal-soft);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.vh-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.vh-code {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.04em;
}

.vh-date {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.vh-amount {
    font-size: 0.88rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Browse banner */
.voucher-browse-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-light) 100%);
    border-radius: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--white);
    transition: opacity .18s;
}

.voucher-browse-banner:hover {
    opacity: 0.88;
}

.vbb-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vbb-left > i {
    font-size: 1.5rem;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.vbb-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
}

.vbb-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, .55);
    margin-top: 1px;
}

.voucher-browse-banner > i {
    font-size: 1.1rem;
    color: var(--brand-primary);
    flex-shrink: 0;
}

/* Activity row — voucher type */
.bg-voucher {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
}

.badge-credited {
    background: rgba(59, 130, 246, .1);
    color: var(--sky-blue);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}


/* ── Voucher Redeem Modal ─────────────────────────────────── */
.voucher-modal-card {
    max-width: 440px;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
}

.vm-state { display: none; }

/* Verifying */
.vm-verifying-body {
    padding: 48px 32px;
    text-align: center;
}

.vm-spinner {
    width: 54px;
    height: 54px;
    border: 3px solid var(--border);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: vmSpin 0.9s linear infinite;
}

@keyframes vmSpin {
    to { transform: rotate(360deg); }
}

.vm-verifying-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.vm-verifying-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Ticket */
.vm-ticket {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-light) 100%);
    padding: 30px 28px 22px;
    position: relative;
    overflow: hidden;
}

.vm-ticket::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.vm-ticket-notch {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-main);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.vm-ticket-notch-left  { left: -14px; }
.vm-ticket-notch-right { right: -14px; }

.vm-ticket-dashed {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 50%;
    border-top: 2px dashed rgba(255, 255, 255, .18);
}

.vm-ticket-top {
    text-align: center;
    padding-bottom: 22px;
    position: relative;
    z-index: 1;
}

.vm-gift-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 12px;
    box-shadow: 0 0 0 10px rgba(242, 166, 90, .18);
    animation: vmPop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes vmPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.vm-credited-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1;
}

.vm-credited-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, .5);
    margin-top: 4px;
}

.vm-ticket-bottom {
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.vm-ticket-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.73rem;
}

.vtk { color: rgba(255, 255, 255, .42); }
.vtv { color: var(--white); font-weight: 700; font-family: 'Courier New', monospace; font-size: 0.72rem; }

/* Success footer */
.vm-success-footer {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white);
}

.vm-new-balance {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--brand-teal-soft);
    border: 1px solid rgba(16, 185, 129, .2);
    border-radius: 14px;
    padding: 13px 16px;
}

.vm-nb-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.vm-nb-label {
    font-size: 0.72rem;
    color: var(--brand-teal);
    font-weight: 700;
}

.vm-nb-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.vm-success-actions {
    display: flex;
    gap: 10px;
}

/* Error */
.vm-error-body {
    padding: 44px 28px 36px;
    text-align: center;
    background: var(--white);
}

.vm-error-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(239, 68, 68, .1);
    color: var(--danger);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border: 2px solid rgba(239, 68, 68, .18);
}

.vm-error-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.vm-error-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
}

/* Input state */
.vm-input-body {
    padding: 18px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--white);
}

.vm-input-icon-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-main);
    border-radius: 14px;
}

.vm-big-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.vm-input-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.vm-code-field-wrap {
    border: 2px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.vm-code-field-wrap:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(242, 166, 90, .12);
}

.vm-code-input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-main);
    background: var(--white);
}

.vm-code-input::placeholder {
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Demo pills */
.vm-demo-codes {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.vm-demo-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.vm-demo-pill {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    cursor: pointer;
    transition: all .15s;
}

.vm-demo-pill:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

/* Voucher modal buttons */
.vm-btn-primary {
    flex: 1;
    padding: 11px 18px;
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: var(--glow-orange);
    transition: all .18s;
}

.vm-btn-primary:hover {
    background: var(--brand-primary-deep);
    transform: translateY(-1px);
}

.vm-btn-ghost {
    flex: 1;
    padding: 11px 18px;
    background: var(--white);
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .18s;
}

.vm-btn-ghost:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.vm-buy-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    transition: opacity .15s;
}

.vm-buy-link:hover {
    opacity: 0.75;
}


/* ── Toast ───────────────────────────────────────────────── */
.wallet-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--brand-secondary);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: var(--shadow-xl);
    transform: translateY(80px);
    opacity: 0;
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .32s;
    z-index: 9999;
    pointer-events: none;
}

.wallet-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.wallet-toast i {
    font-size: 1.05rem;
    color: var(--brand-primary);
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .funds-voucher-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .voucher-redeem-header {
        flex-wrap: wrap;
    }

    .voucher-shop-link {
        margin-left: 0;
    }

    .vm-ticket {
        padding: 24px 20px 18px;
    }

    .vm-credited-amount {
        font-size: 2.2rem;
    }

    .voucher-modal-card {
        border-radius: 16px;
        margin: 0 12px;
    }
}