/* =============================================
   DRAZE — Wallet / Deposit / Withdraw CSS
   ============================================= */

/* ── Shared Modal Overlay ───────────────────── */
.wallet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    will-change: opacity;
    transform: translateZ(0);
}

.wallet-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal Card ─────────────────────────────── */
.wallet-modal {
    background: var(--bg-2);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 28px;
    width: 92%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translate3d(0, 24px, 0) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    scrollbar-width: none;
    will-change: transform;
    text-align: center;
}

.wallet-modal::-webkit-scrollbar {
    display: none;
}

.wallet-overlay.open .wallet-modal {
    transform: translate3d(0, 0, 0) scale(1);
}

/* ── Modal Header ───────────────────────────── */
.wm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wm-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wm-close {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wm-close:hover {
    background: rgba(229, 62, 62, 0.2);
    border-color: rgba(229, 62, 62, 0.4);
    color: #fc8181;
}

/* ── Wallet Home ────────────────────────────── */
.wallet-body {
    padding: 32px 28px;
}

/* Balance Card */
.wallet-balance-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.wbc-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: walletGlowPulse 3s ease-in-out infinite;
}

@keyframes walletGlowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

.wb-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--t3);
    margin-bottom: 8px;
}

.wb-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--t1);
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

.wb-amount span {
    font-size: 1.6rem;
    color: rgba(34, 197, 94, 0.7);
    margin-right: 2px;
}

.wb-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(240, 240, 255, 0.35);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* Action Buttons — Modern card style */
.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wallet-action-btn {
    padding: 18px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-icon-wrap .wa-icon {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
}

.deposit-icon-wrap {
    background: linear-gradient(135deg, var(--green), #16a34a);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.withdraw-icon-wrap {
    background: linear-gradient(135deg, var(--green), #d97706);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.wa-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.wa-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
}

.wa-desc {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
}

.wallet-action-btn.deposit-btn {
    background: rgba(34, 197, 94, 0.06);
    box-shadow: none;
    color: #fff;
}

.wallet-action-btn.deposit-btn:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.wallet-action-btn.withdraw-btn {
    background: rgba(245, 158, 11, 0.06);
    box-shadow: none;
    color: #fff;
}

.wallet-action-btn.withdraw-btn:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

/* ── Deposit / Withdraw Form ────────────────── */
.wm-back-btn {
    background: none;
    border: none;
    color: #667eea;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: gap 0.2s;
}

.wm-back-btn:hover {
    gap: 8px;
}

/* ── Deposit 2-Step Flow ────────────────────── */
.dep-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #667eea;
    margin-bottom: 18px;
}

.dep-amount-hero {
    text-align: center;
    margin-bottom: 20px;
}

.dep-amount-icon {
    font-size: 2.8rem;
    margin-bottom: 6px;
}

.dep-amount-hint {
    font-size: 0.9rem;
    color: #94a3b8;
}

.dep-amount-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dep-amount-wrap:focus-within {
    border-color: rgba(102, 126, 234, 0.65);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.dep-rupee {
    padding: 0 14px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
    border-right: 1px solid rgba(34, 197, 94, 0.2);
    height: 50px;
    display: flex;
    align-items: center;
}

.dep-amount-wrap input {
    flex: 1;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0 14px;
    -webkit-appearance: none;
    appearance: none;
}

.dep-amount-wrap input::-webkit-inner-spin-button,
.dep-amount-wrap input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dep-quick-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 20px;
}

.dep-chip {
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 20px;
    color: var(--green);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
}

.dep-chip:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: var(--green);
    color: white;
}

/* Step 2 */
.dep-pay-amount {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--green);
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
    margin-bottom: 4px;
}

.dep-scan-hint {
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 20px;
}

.dep-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.dep-qr-wrap>div:first-child {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 244px;
    min-height: 244px;
}

.dep-qr-label {
    font-size: 0.75rem;
    color: #475569;
    letter-spacing: 0.5px;
}

.dep-upi-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
}

.dep-upi-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    white-space: nowrap;
}

.dep-upi-id {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: #a5b4fc;
    word-break: break-all;
    font-family: monospace;
    user-select: text;
}

.dep-copy-btn {
    background: rgba(102, 126, 234, 0.18);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 7px;
    color: #a5b4fc;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.dep-copy-btn:hover {
    background: rgba(102, 126, 234, 0.32);
    color: #c7d2fe;
}

.dep-copy-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}

/* Screenshot upload box */
.dep-upload-box {
    display: block;
    width: 100%;
    min-height: 130px;
    border: 2px dashed rgba(102, 126, 234, 0.35);
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 8px;
}

.dep-upload-box:hover {
    border-color: rgba(102, 126, 234, 0.65);
    background: rgba(102, 126, 234, 0.1);
}

.dep-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 16px;
}

.dep-upload-icon {
    font-size: 2rem;
}

.dep-upload-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
}

.dep-upload-sub {
    font-size: 0.72rem;
    color: #475569;
}

.dep-upload-preview {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Form Fields */
.wm-field {
    margin-bottom: 24px;
    text-align: left;
}

.wm-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.wm-field input,
.wm-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.wm-field input:focus,
.wm-field textarea:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.wm-field input::placeholder,
.wm-field textarea::placeholder {
    color: rgba(148, 163, 184, 0.45);
}

.wm-field textarea {
    resize: none;
    height: 70px;
}

/* Submit Button */
.wm-submit-btn {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    margin-top: 12px;
}

.wm-submit-btn.green {
    background: linear-gradient(135deg, var(--green), #16a34a);
    color: #fff;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.wm-submit-btn.green:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.45);
}

.wm-submit-btn.amber {
    background: linear-gradient(135deg, var(--green), #d97706);
    color: #fff;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.wm-submit-btn.amber:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
}

.wm-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Status message */
.wm-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.wm-status.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    display: block;
}

.wm-status.error {
    background: rgba(229, 62, 62, 0.12);
    border: 1px solid rgba(229, 62, 62, 0.3);
    color: #fca5a5;
    display: block;
}

/* ── QR note ──────────────────────────────── */
.qr-note {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    margin-top: 6px;
}

/* ── Withdraw-specific styles ────────────── */
.wd-balance-hint {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 20px;
}

.wd-balance-hint strong {
    color: #fbbf24;
    font-weight: 800;
}

/* Reuse dep-amount-wrap style for withdraw amount input */
.wallet-modal .dep-amount-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wallet-modal .dep-amount-wrap:focus-within {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.wallet-modal .dep-rupee {
    padding: 0 14px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    border-right: 1px solid rgba(245, 158, 11, 0.2);
    height: 50px;
    display: flex;
    align-items: center;
}

.wallet-modal .dep-amount-wrap input {
    flex: 1;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0 14px;
    -webkit-appearance: none;
    appearance: none;
}

/* ── Withdraw Success Popup ──────────────── */
.dep-success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.wd-success-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.wd-success-msg {
    font-size: 0.88rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 8px;
}

.wd-success-msg strong {
    color: #fbbf24;
    font-weight: 700;
}