/* ══════════════════════════════════════════════════════════════════
   BDT GAMES — E-WALLET PAYMENT PORTAL STYLESHEET
   File: e-wallet.css
   Self-contained stylesheet supporting bKash, Nagad, Rocket, and Upay themes.
══════════════════════════════════════════════════════════════════ */

/* ── Global Tokens & Theme Variables ── */
:root {
    --bg-dark: #070a10;
    --bg-card: rgba(14, 19, 29, 0.95);
    --bg-input: #0a0e17;
    --border-card: rgba(255, 255, 255, 0.1);
    --border-input: rgba(255, 255, 255, 0.12);
    --txt-primary: #f8fafc;
    --txt-secondary: #94a3b8;
    --txt-muted: #64748b;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Default / Fallback Theme (bKash) */
    --theme-color: #e2136e;
    --theme-color-dark: #b80f59;
    --theme-gradient: linear-gradient(135deg, #e2136e 0%, #c4105e 100%);
    --theme-glow: rgba(226, 19, 110, 0.35);
    --theme-bg-soft: rgba(226, 19, 110, 0.1);
    --theme-border: rgba(226, 19, 110, 0.4);
}

/* ── 1. bKash Brand Theme ── */
body[data-theme="bkash"] {
    --theme-color: #e2136e;
    --theme-color-dark: #b80f59;
    --theme-gradient: linear-gradient(135deg, #e2136e 0%, #c4105e 100%);
    --theme-glow: rgba(226, 19, 110, 0.4);
    --theme-bg-soft: rgba(226, 19, 110, 0.12);
    --theme-border: rgba(226, 19, 110, 0.4);
}

/* ── 2. Nagad Brand Theme ── */
body[data-theme="nagad"] {
    --theme-color: #f7941d;
    --theme-color-dark: #ea580c;
    --theme-gradient: linear-gradient(135deg, #f7941d 0%, #d9531e 100%);
    --theme-glow: rgba(247, 148, 29, 0.4);
    --theme-bg-soft: rgba(247, 148, 29, 0.12);
    --theme-border: rgba(247, 148, 29, 0.4);
}

/* ── 3. Rocket Brand Theme ── */
body[data-theme="rocket"] {
    --theme-color: #a855f7;
    --theme-color-dark: #7e22ce;
    --theme-gradient: linear-gradient(135deg, #8c268c 0%, #a855f7 100%);
    --theme-glow: rgba(168, 85, 247, 0.4);
    --theme-bg-soft: rgba(168, 85, 247, 0.12);
    --theme-border: rgba(168, 85, 247, 0.4);
}

/* ── 4. Upay Brand Theme ── */
body[data-theme="upay"] {
    --theme-color: #0099da;
    --theme-color-dark: #0284c7;
    --theme-gradient: linear-gradient(135deg, #0099da 0%, #0284c7 100%);
    --theme-glow: rgba(0, 153, 218, 0.4);
    --theme-bg-soft: rgba(0, 153, 218, 0.12);
    --theme-border: rgba(0, 153, 218, 0.4);
}

/* ── CSS Reset ── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, var(--theme-bg-soft) 0%, transparent 60%),
        radial-gradient(circle at 10% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
        linear-gradient(180deg, #070a12 0%, #04060a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--txt-primary);
    font-family: var(--font);
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

/* Ambient glow orb behind card */
body::before {
    content: '';
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--theme-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

/* ── Checkout Portal Container ── */
.ewallet-checkout-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    backdrop-filter: blur(28px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 24px 70px rgba(0, 0, 0, 0.85),
        0 0 40px var(--theme-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: cardAppear 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Portal Top Accent Line ── */
.ewallet-accent-bar {
    height: 4px;
    background: var(--theme-gradient);
    width: 100%;
}

/* ── Branded Header Bar ── */
.ewallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ewallet-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ewallet-logo-badge {
    height: 44px;
    padding: 6px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--theme-glow);
}

.ewallet-logo-badge svg,
.ewallet-logo-badge img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.ewallet-brand-info h1 {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.ewallet-brand-info span {
    font-size: 11px;
    font-weight: 600;
    color: var(--txt-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.ewallet-secure-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #00e87a;
    background: rgba(0, 232, 122, 0.1);
    border: 1px solid rgba(0, 232, 122, 0.25);
    padding: 4px 9px;
    border-radius: 20px;
}

/* ── Live 2-Minute Expiry Timer ── */
.ewallet-timer-bar {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--txt-secondary);
    font-weight: 600;
}

.timer-pulsing-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-bg-soft);
    border: 1.5px solid var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--theme-color);
    animation: timerPulse 1.4s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.timer-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.timer-clock {
    font-size: 18px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: var(--theme-color);
    letter-spacing: 0.5px;
    text-shadow: 0 0 14px var(--theme-glow);
}

.timer-clock.warning {
    color: #ef4444;
    animation: clockBlink 0.8s infinite;
    text-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
}

@keyframes clockBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Progress indicator bar under timer */
.timer-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.timer-progress-fill {
    height: 100%;
    width: 100%;
    background: var(--theme-gradient);
    transition: width 1s linear;
}

/* ── Urgent Timer Warning Notice Banner ── */
.ewallet-timer-warning-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.ewallet-timer-warning-banner svg {
    flex-shrink: 0;
    color: #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

.ewallet-timer-warning-banner strong {
    color: #ffffff;
    font-weight: 900;
}

.ewallet-timer-warning-banner .warning-sub {
    color: #ef4444;
    font-weight: 800;
    margin-left: 4px;
}

/* ── Card Body Content ── */
.ewallet-body {
    padding: 24px;
}

/* Amount & Order Row */
.ewallet-amount-card {
    background: #080c14;
    border: 1.5px solid var(--theme-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.amount-meta-label {
    font-size: 11.5px;
    color: var(--txt-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.amount-order-id {
    font-size: 12px;
    color: var(--txt-muted);
    font-family: monospace;
}

.amount-meta-value {
    text-align: right;
}

.amount-number {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.amount-currency {
    font-size: 14px;
    color: var(--theme-color);
    font-weight: 800;
    margin-left: 2px;
}

/* ── Step-by-Step Payment Instructions ── */
.ewallet-steps-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.steps-header {
    font-size: 12px;
    font-weight: 800;
    color: var(--txt-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.steps-list li {
    font-size: 12.5px;
    color: var(--txt-secondary);
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.step-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-bg-soft);
    color: var(--theme-color);
    border: 1px solid var(--theme-border);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.steps-list strong {
    color: #ffffff;
}

/* ── Merchant Wallet Receiver Number Box ── */
.ewallet-receiver-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 22px;
    transition: var(--transition);
}

.ewallet-receiver-box:hover {
    border-color: var(--theme-border);
    background: var(--theme-bg-soft);
}

.receiver-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.receiver-type-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--theme-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--theme-bg-soft);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--theme-border);
}

.receiver-hint {
    font-size: 11px;
    color: var(--txt-muted);
}

.receiver-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.receiver-phone-display {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    font-family: monospace;
}

.copy-number-btn {
    background: var(--theme-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 15px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 12px var(--theme-glow);
    transition: var(--transition);
}

.copy-number-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.copy-number-btn:active {
    transform: scale(0.96);
}

.copy-number-btn.copied {
    background: #00e87a;
    color: #000;
    box-shadow: 0 3px 12px rgba(0, 232, 122, 0.4);
}

/* ── Verification Input Form ── */
.ewallet-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--txt-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label-sub {
    font-size: 11px;
    color: var(--txt-muted);
    font-weight: 500;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    color: var(--txt-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    border-radius: 12px;
    padding: 13px 14px 13px 44px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-input::placeholder {
    color: #475569;
    font-weight: 500;
    font-size: 14px;
}

.form-input:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 16px var(--theme-glow);
    background: #0d131e;
}

.form-input.trx-input {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Payment Screenshot Upload Section ── */
.screenshot-group {
    margin-top: 2px;
}

.screenshot-dropzone {
    position: relative;
    background: #0a0e17;
    border: 1.5px dashed var(--border-input);
    border-radius: 12px;
    padding: 13px 14px;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    user-select: none;
}

.screenshot-dropzone:hover {
    border-color: var(--theme-color);
    background: rgba(14, 20, 32, 0.95);
    box-shadow: 0 0 16px var(--theme-glow);
}

.screenshot-dropzone.drag-active {
    border-color: var(--theme-color);
    background: var(--theme-bg-soft);
    border-style: solid;
    box-shadow: 0 0 20px var(--theme-glow);
}

.screenshot-dropzone.has-file {
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
}

.screenshot-dropzone.has-file:hover {
    border-color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.screenshot-dropzone.error-pulse {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.45) !important;
    animation: shakeDropzone 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeDropzone {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

.screenshot-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.screenshot-dropzone.has-file .screenshot-file-input {
    display: none;
}

.screenshot-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
}

.screenshot-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.screenshot-dropzone:hover .screenshot-icon-wrap {
    background: var(--theme-bg-soft);
    transform: scale(1.04);
}

.screenshot-prompt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.prompt-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #f1f5f9;
}

.prompt-sub {
    font-size: 10.5px;
    color: var(--txt-muted);
    font-weight: 500;
}

.screenshot-browse-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-color);
    background: var(--theme-bg-soft);
    border: 1px solid var(--theme-border);
    padding: 5px 10px;
    border-radius: 99px;
    flex-shrink: 0;
    transition: var(--transition);
}

.screenshot-dropzone:hover .screenshot-browse-pill {
    filter: brightness(1.15);
}

/* Selected File Preview State */
.screenshot-preview-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 3;
}

.screenshot-preview-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #10b981;
    background: #000000;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.screenshot-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.screenshot-file-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.screenshot-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.screenshot-file-size {
    font-size: 10.5px;
    color: var(--txt-muted);
    font-weight: 500;
}

.screenshot-success-tag {
    font-size: 10.5px;
    color: #10b981;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.screenshot-remove-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.screenshot-remove-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.1);
}

/* ── Submit Button ── */
.ewallet-submit-btn {
    width: 100%;
    background: var(--theme-gradient);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 24px var(--theme-glow);
    transition: var(--transition);
    margin-top: 6px;
    font-family: inherit;
}

.ewallet-submit-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--theme-glow);
}

.ewallet-submit-btn:active {
    transform: scale(0.98);
}

.ewallet-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner inside button */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

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

/* ── Cancel / Back to Site Link ── */
.ewallet-cancel-link {
    text-align: center;
    margin-top: 14px;
}

.ewallet-cancel-link a {
    color: var(--txt-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.ewallet-cancel-link a:hover {
    color: #cbd5e1;
    text-decoration: underline;
}

/* ── Security Trust Badges Footer ── */
.ewallet-trust-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 11.5px;
    color: var(--txt-muted);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Floating Toast Notification ── */
.ewallet-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: #1e293b;
    border: 1px solid var(--theme-border);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--theme-glow);
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.ewallet-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Fullscreen Overlay (Success & Expiration Modals) ── */
.portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 6, 12, 0.92);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.portal-modal-box {
    width: 100%;
    max-width: 440px;
    background: #0d121c;
    border: 1.5px solid var(--theme-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 50px var(--theme-glow);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-overlay.show .portal-modal-box {
    transform: scale(1);
}

.modal-icon-ring {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--theme-bg-soft);
    border: 2px solid var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 0 30px var(--theme-glow);
}

.modal-icon-ring.expired-icon {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.modal-title {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 13.5px;
    color: var(--txt-secondary);
    line-height: 1.55;
    margin-bottom: 24px;
}

.modal-action-btn {
    display: inline-block;
    width: 100%;
    background: var(--theme-gradient);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--theme-glow);
    transition: var(--transition);
}

.modal-action-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

/* ── Confetti Canvas Layer ── */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1050;
}

/* ── Enhanced Real Logo Badge (Transparent, Clean, Bigger) ── */
.ewallet-logo-badge {
    height: 52px;
    width: 52px;
    min-width: 52px;
    padding: 0;
    border-radius: 14px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: var(--transition);
}

.ewallet-logo-badge:hover {
    transform: scale(1.06);
}

.ewallet-brand-logo-img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* ── Cancellation Process Modal ── */
.cancel-modal-box {
    max-width: 440px;
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(239, 68, 68, 0.25);
}

.cancel-spinner-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancel-radar-pulse {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.35);
    animation: radarPulse 1.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes radarPulse {
    0% { transform: scale(0.75); opacity: 0.9; }
    100% { transform: scale(1.45); opacity: 0; }
}

.cancel-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3.5px solid rgba(239, 68, 68, 0.15);
    border-top-color: #ef4444;
    border-right-color: #f59e0b;
    animation: reverseSpin 1.1s linear infinite;
}

@keyframes reverseSpin {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.cancel-icon-center {
    font-size: 26px;
    font-weight: 900;
    color: #ef4444;
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.cancel-subtitle-bn {
    font-size: 13px;
    color: #fca5a5;
    font-weight: 600;
    margin-top: -6px;
    margin-bottom: 12px;
}

.cancel-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.cancel-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    border-radius: 99px;
    transition: width 0.1s linear;
}

.cancel-steps-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: left;
    margin-bottom: 16px;
}

.cancel-step-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.cancel-step-row.active {
    color: #f8fafc;
    font-weight: 700;
}

.cancel-step-row.done {
    color: #10b981;
    font-weight: 600;
}

.cancel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #475569;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cancel-step-row.active .cancel-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    transform: scale(1.2);
}

.cancel-step-row.done .cancel-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.cancel-timer-badge {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Success Modal with 300% Bonus ── */
.success-modal-box {
    max-width: 460px;
    position: relative;
    z-index: 1060;
    border-color: rgba(240, 185, 11, 0.5);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95), 0 0 60px rgba(240, 185, 11, 0.25);
    padding: 30px 24px;
}

.modal-celebrate-badge {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celebrate-sparkle-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(240, 185, 11, 0.5);
    animation: sparkleRotate 8s linear infinite;
}

@keyframes sparkleRotate {
    to { transform: rotate(360deg); }
}

.celebrate-icon {
    font-size: 38px;
    animation: celebrateBounce 1.2s ease-in-out infinite alternate;
}

@keyframes celebrateBounce {
    from { transform: translateY(2px) scale(0.96); }
    to { transform: translateY(-4px) scale(1.06); }
}

.bonus-ribbon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f0b90b, #eab308, #d97706);
    color: #000000;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 14px;
    border-radius: 99px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(240, 185, 11, 0.4);
    margin-bottom: 8px;
}

.modal-subtitle-bn {
    font-size: 13.5px;
    color: #a7f3d0;
    font-weight: 700;
    margin-top: -6px;
    margin-bottom: 16px;
}

/* 300% Bonus Breakdown Card */
.bonus-breakdown-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    text-align: left;
}

.breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    color: #94a3b8;
    font-weight: 600;
}

.breakdown-val {
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
}

.bonus-row .breakdown-label {
    color: #facc15;
}

.bonus-row .bonus-highlight {
    color: #facc15;
    font-size: 15px;
    font-weight: 900;
}

.breakdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.total-row {
    padding-top: 4px;
}

.total-row .breakdown-label {
    color: #e2e8f0;
    font-weight: 800;
    font-size: 13.5px;
}

.total-row .total-highlight {
    color: #10b981;
    font-size: 19px;
    font-weight: 900;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Callout Box for Specific Message */
.success-message-callout {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 22px;
    text-align: left;
    position: relative;
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.message-quote-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.message-text-en {
    font-size: 13.5px;
    line-height: 1.55;
    color: #f1f5f9;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.message-text-en strong {
    color: #f0b90b;
    font-weight: 800;
}

.message-text-bn {
    font-size: 12.5px;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
}

.message-text-bn strong {
    color: #10b981;
    font-weight: 700;
}


/* ── 30-Second Success Auto-Redirect Progress Bar & Countdown ── */
.success-redirect-timer-bar {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.redirect-timer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #34d399;
}

.redirect-timer-text strong {
    color: #f0b90b;
    font-size: 15px;
    min-width: 22px;
    display: inline-block;
    text-align: center;
}

.redirect-timer-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.redirect-timer-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #10b981, #34d399, #f0b90b);
    border-radius: 99px;
    transition: width 1s linear;
}

/* <Back to Home> Button */
.back-home-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 22px rgba(16, 185, 129, 0.4);
    font-size: 15px;
    padding: 15px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.back-home-btn:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.6);
}

.back-home-btn .btn-subtext {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
}

/* ── Mobile Optimization ── */
@media (max-width: 520px) {
    body {
        padding: 12px 10px;
    }

    .ewallet-checkout-card {
        border-radius: 16px;
    }

    .ewallet-header {
        padding: 16px 18px;
    }

    .ewallet-body {
        padding: 18px;
    }

    .receiver-phone-display {
        font-size: 18px;
    }

    .amount-number {
        font-size: 22px;
    }

    .copy-number-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .ewallet-trust-footer {
        padding: 12px 16px;
        font-size: 10.5px;
    }
}

