/* ═══════════════════════════════════════════════════════════
   VOUCHER PAGE  —  Sunset Orange Brand
   Uses same :root variables as wallet.css
   ═══════════════════════════════════════════════════════════ */


/* ── Hero ─────────────────────────────────────────────────── */
.voucher-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-light) 60%, #2C2C46 100%);
    background-image:
        radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-light) 60%, #2C2C46 100%);
    background-size: 20px 20px, auto;
    border-radius: 24px;
    padding: 38px 44px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.voucher-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: 200px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(242, 166, 90, .14) 0%, transparent 70%);
    pointer-events: none;
}

.voucher-hero-left {
    position: relative;
    z-index: 1;
    flex: 1;
}

.vh-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.75;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.vh-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 8px rgba(242, 166, 90, .7);
    flex-shrink: 0;
}

.vh-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
}

.vh-accent { color: var(--brand-primary); }

.vh-sub {
    font-size: 0.88rem;
    opacity: 0.5;
    line-height: 1.65;
    max-width: 460px;
    margin-bottom: 20px;
}

.vh-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vh-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .72);
    padding: 6px 13px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vh-pill i {
    font-size: 0.82rem;
    color: var(--brand-primary);
}

/* Hero voucher card */
.voucher-hero-right {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.hero-voucher-card {
    width: 260px;
    background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    padding: 20px 22px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    transform: rotate(3deg);
}

.hvc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hvc-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--white);
}

.hvc-brand i {
    color: var(--brand-primary);
    font-size: 1rem;
}

.hvc-type {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.08);
    padding: 3px 8px;
    border-radius: 50px;
}

.hvc-amount {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 16px;
}

.hvc-cents {
    font-size: 1.4rem;
    opacity: 0.55;
}

.hvc-barcode {
    margin-bottom: 14px;
}

.hvc-code-text {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: rgba(255,255,255,.45);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.hvc-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 30px;
}

.hvc-bar {
    width: 3px;
    background: rgba(255,255,255,.55);
    border-radius: 1px;
}

.hvc-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: rgba(255,255,255,.4);
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
}


/* ── Tabs ─────────────────────────────────────────────────── */
.voucher-tabs-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px;
    display: inline-flex;
    box-shadow: var(--shadow-xs);
}

.voucher-tabs {
    display: flex;
    gap: 4px;
}

.vtab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}

.vtab i {
    font-size: 1rem;
}

.vtab:hover:not(.active) {
    background: var(--bg-main);
    color: var(--text-main);
}

.vtab.active {
    background: var(--brand-primary);
    color: var(--white);
    box-shadow: var(--glow-orange);
}


/* ── Tab Panels ───────────────────────────────────────────── */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}


/* ── Buy Layout ───────────────────────────────────────────── */
.buy-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
    align-items: start;
}

.buy-config-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Config card */
.config-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-xs);
}

.config-card-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.config-head-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.config-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.config-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Amount grid */
.voucher-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.vamt-tile {
    padding: 16px 12px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--bg-main);
    text-align: center;
    cursor: pointer;
    transition: all .18s;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vamt-tile:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.vamt-tile.selected {
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
    box-shadow: var(--glow-orange);
}

.vamt-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.vamt-tile.selected .vamt-val,
.vamt-tile:hover .vamt-val {
    color: var(--brand-primary);
}

.vamt-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vamt-tile.selected .vamt-tag { color: var(--brand-primary); }

/* Custom amount field */
.custom-amount-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.custom-amount-field {
    display: flex;
    align-items: center;
    border: 2px solid var(--brand-primary);
    border-radius: 14px;
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 0 0 3px rgba(242, 166, 90, .12);
}

.caf-symbol {
    padding: 12px 4px 12px 16px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.caf-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-primary);
    background: none;
    padding: 12px 16px 12px 4px;
}

.caf-input::placeholder { color: var(--text-muted); font-weight: 400; }

.caf-input::-webkit-outer-spin-button,
.caf-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.custom-amount-note {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Delivery toggle */
.delivery-toggle-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: var(--bg-main);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.dtog {
    flex: 1;
    padding: 9px 14px;
    border-radius: 10px;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .18s;
}

.dtog:hover:not(.active) {
    color: var(--text-main);
}

.dtog.active {
    background: var(--brand-primary);
    color: var(--white);
    box-shadow: var(--glow-orange);
}

.form-info-box {
    display: flex;
    gap: 11px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.form-info-box i {
    font-size: 1rem;
    color: var(--brand-primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.form-label {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.form-input {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    font-size: 0.875rem;
    color: var(--text-main);
    outline: none;
    background: var(--white);
    transition: all .15s;
}

.form-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(242, 166, 90, .12);
}

.form-textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    font-size: 0.875rem;
    color: var(--text-main);
    outline: none;
    background: var(--white);
    resize: vertical;
    min-height: 80px;
    transition: all .15s;
    font-family: inherit;
    line-height: 1.5;
}

.form-textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(242, 166, 90, .12);
}

.form-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    font-size: 0.875rem;
    color: var(--text-main);
    outline: none;
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s;
}

.form-select:focus { border-color: var(--brand-primary); }

/* Payment methods in buy panel */
.pay-methods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition: all .18s;
}

.pay-option.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
    box-shadow: var(--glow-orange);
}

.pay-option:hover:not(.active) {
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.pay-option .pay-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.pay-option .pay-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.pay-option .pay-text p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.pay-option input[type="radio"] { margin-left: auto; accent-color: var(--brand-primary); }


/* ── Preview col ──────────────────────────────────────────── */
.buy-preview-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

/* Voucher preview card */
.voucher-preview-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.vpc-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.vpc-inner {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-light) 100%);
    border-radius: 16px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
}

.vpc-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 16px 16px;
}

.vpc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.vpc-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--white);
}

.vpc-brand i { color: var(--brand-primary); }

.vpc-type-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.08);
    padding: 3px 9px;
    border-radius: 50px;
}

.vpc-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    transition: all .2s;
}

.vpc-to-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.vpc-to-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,.45);
}

.vpc-to-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
}

.vpc-barcode-row {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.vpc-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 24px;
    margin-bottom: 5px;
}

.vpc-bar {
    width: 2.5px;
    background: rgba(255,255,255,.4);
    border-radius: 1px;
}

.vpc-code-text {
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    color: rgba(255,255,255,.4);
    letter-spacing: 0.06em;
}

.vpc-validity {
    font-size: 0.65rem;
    color: rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.vpc-validity i { color: var(--brand-teal); }

/* Order summary card */
.order-summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.osc-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.osc-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
}

.osc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.osc-row:last-child { border-bottom: none; }

.osc-row.os-total {
    font-size: 0.95rem;
    color: var(--text-main);
    border-top: 2px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
}

.osc-row strong { color: var(--text-main); font-weight: 800; }
.osc-row.os-total strong { font-size: 1.15rem; color: var(--brand-primary); }

.btn-buy-now {
    width: 100%;
    padding: 15px;
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: var(--glow-orange);
    transition: all .18s;
    margin-bottom: 10px;
}

.btn-buy-now:hover {
    background: var(--brand-primary-deep);
    transform: translateY(-1px);
    box-shadow: 0 10px 32px rgba(242, 166, 90, .35);
}

.os-secure-note {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.os-secure-note i { color: var(--brand-teal); }

/* How mini card */
.how-mini-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.how-mini-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.how-mini-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.hms-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* ── Redeem Panel ─────────────────────────────────────────── */
.redeem-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
}

.redeem-main-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.redeem-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.redeem-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.redeem-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 28px;
}

.redeem-input-wrap {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.redeem-code-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    background: var(--bg-main);
    transition: all .15s;
}

.redeem-code-field:focus-within {
    border-color: var(--brand-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(242, 166, 90, .12);
}

.redeem-code-field i {
    color: var(--text-muted);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.redeem-code-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-main);
    background: none;
}

.redeem-code-input::placeholder {
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.btn-redeem-big {
    padding: 12px 26px;
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: var(--glow-orange);
    transition: all .18s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-redeem-big:hover {
    background: var(--brand-primary-deep);
    transform: translateY(-1px);
}

.redeem-demo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 22px;
}

.redeem-demo-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.redeem-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;
}

.redeem-demo-pill:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.redeem-hint-box {
    width: 100%;
    display: flex;
    gap: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    text-align: left;
    margin-bottom: 16px;
}

.redeem-hint-box i {
    font-size: 1rem;
    color: var(--brand-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.redeem-hint-box strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.redeem-hint-box ul {
    margin: 0;
    padding-left: 16px;
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Redeem result blocks */
.redeem-result-success {
    width: 100%;
    background: var(--brand-teal-soft);
    border: 1.5px solid rgba(16, 185, 129, .2);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeSlideIn .3s ease;
}

.redeem-result-error {
    width: 100%;
    background: rgba(239, 68, 68, .08);
    border: 1.5px solid rgba(239, 68, 68, .18);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeSlideIn .3s ease;
}

.rr-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rr-icon.success { background: var(--brand-teal); color: var(--white); }
.rr-icon.error   { background: var(--danger); color: var(--white); }

.rr-title { font-size: 0.88rem; font-weight: 800; color: var(--text-main); margin-bottom: 2px; }
.rr-sub   { font-size: 0.75rem; color: var(--text-muted); }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* Redeem side */
.redeem-side { display: flex; flex-direction: column; gap: 14px; }

.rs-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.rs-info-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
}

.rs-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-main);
}

.rs-info-item:last-child { border-bottom: none; }
.rs-info-item i { font-size: 1rem; color: var(--brand-primary); flex-shrink: 0; }

.rs-wallet-card {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-light));
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.rs-wallet-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 6px;
}

.rs-wallet-bal {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.rs-wallet-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: all .18s;
}

.rs-wallet-link:hover { background: rgba(255,255,255,.15); }


/* ── My Vouchers Panel ────────────────────────────────────── */
.history-filters-row {
    margin-bottom: 16px;
}

.hf-group {
    display: flex;
    gap: 8px;
}

.hf-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--bg-main);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .18s;
}

.hf-btn:hover:not(.active) {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.hf-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--white);
    box-shadow: var(--glow-orange);
}

.my-vouchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* Voucher card in history */
.mv-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .2s, box-shadow .2s;
}

.mv-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mv-card-top {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-light));
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}

.mv-card-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 14px 14px;
}

.mv-card-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.mv-card-type {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,.45);
    margin-top: 3px;
    position: relative;
    z-index: 1;
}

.mv-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 1;
}

.mv-status-badge.active   { background: var(--brand-teal); color: var(--white); }
.mv-status-badge.redeemed { background: rgba(255,255,255,.15); color: rgba(255,255,255,.6); }
.mv-status-badge.sent     { background: rgba(59,130,246,.8); color: var(--white); }

.mv-card-body {
    padding: 16px 20px;
}

.mv-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.mv-code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.06em;
}

.mv-copy-btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
}

.mv-copy-btn:hover {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.mv-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.mv-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.mv-meta-row .mk { color: var(--text-muted); }
.mv-meta-row .mv { color: var(--text-main); font-weight: 600; }

.mv-card-footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.mv-action-btn {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all .15s;
}

.mv-action-btn.primary {
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    box-shadow: var(--glow-orange);
}

.mv-action-btn.primary:hover { background: var(--brand-primary-deep); }

.mv-action-btn.ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
}

.mv-action-btn.ghost:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}



.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);
}

/* ── Purchase Success Modal ───────────────────────────────── */
.ps-modal-card {
    max-width: 400px !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 24px !important;
}

.ps-confetti-top {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-light));
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ps-confetti-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 16px 16px;
}

.ps-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--white);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 0 12px rgba(242, 166, 90, .2);
    animation: psIconPop .45s .05s cubic-bezier(.34,1.56,.64,1) both;
    position: relative;
    z-index: 1;
}

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

.ps-body {
    padding: 22px 24px 26px;
    background: var(--white);
    text-align: center;
}

.ps-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.ps-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.ps-voucher-display {
    background: var(--bg-main);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.psv-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.psv-code {
    font-family: 'Courier New', monospace;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.psv-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    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;
    cursor: pointer;
    transition: all .15s;
}

.psv-copy:hover {
    background: var(--brand-primary);
    color: var(--white);
}

.ps-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
    text-align: left;
}

.ps-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.ps-row:last-child { border-bottom: none; }
.ps-row strong { color: var(--text-main); }

.ps-actions {
    display: flex;
    gap: 10px;
}

/* Reuse vm-btn classes from wallet-voucher.css */
.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); }


/* ── Toast (same as wallet) ───────────────────────────────── */
.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: 1060px) {
    .buy-layout { grid-template-columns: 1fr; }
    .buy-preview-col { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .voucher-preview-card { grid-column: span 2; }
}

@media (max-width: 900px) {
    .redeem-layout { grid-template-columns: 1fr; }
    .redeem-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .voucher-hero { flex-direction: column; padding: 28px 24px; border-radius: 18px; }
    .voucher-hero-right { display: none; }
    .vh-title { font-size: 1.8rem; }
}

@media (max-width: 720px) {
    .voucher-tabs { gap: 2px; }
    .vtab { padding: 9px 14px; font-size: 0.82rem; }
    .buy-preview-col { grid-template-columns: 1fr; }
    .voucher-preview-card { grid-column: auto; }
    .redeem-side { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .voucher-amount-grid { grid-template-columns: repeat(2, 1fr); }
    .redeem-input-wrap { flex-direction: column; }
    .btn-redeem-big { width: 100%; justify-content: center; }
    .ps-modal-card { margin: 0 12px; border-radius: 18px !important; }
    .hf-group { flex-wrap: wrap; }
}



