﻿/* Wallet Modal Styles */
.wallet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.wallet-modal-content {
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.wallet-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.wallet-modal-close:hover {
    color: var(--text-main);
}

.wallet-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.wallet-option:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-purple);
    transform: translateX(5px);
}

.wallet-option:disabled {
    cursor: not-allowed;
}

.wallet-icon {
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-info {
    flex: 1;
}

.wallet-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.wallet-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Connected wallet button state */
.btn-connect-wallet.connected {
    background: linear-gradient(135deg, rgba(0, 250, 154, 0.12), rgba(0, 200, 120, 0.08));
    border-color: rgba(0, 250, 154, 0.3);
    color: #00fa9a;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 16px rgba(0, 250, 154, 0.08);
}

.btn-connect-wallet.connected:hover {
    background: linear-gradient(135deg, rgba(0, 250, 154, 0.18), rgba(0, 200, 120, 0.12));
    box-shadow: 0 0 24px rgba(0, 250, 154, 0.12);
}

/* Connecting state — pulsing animation during wallet connection */
.btn-connect-wallet.connecting {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(100, 30, 180, 0.1));
    border-color: rgba(138, 43, 226, 0.4);
    color: rgba(200, 170, 255, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    pointer-events: none;
    animation: connectingPulse 1.5s ease-in-out infinite;
}

@keyframes connectingPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(138, 43, 226, 0.15);
        border-color: rgba(138, 43, 226, 0.3);
    }

    50% {
        box-shadow: 0 0 24px rgba(138, 43, 226, 0.35);
        border-color: rgba(138, 43, 226, 0.6);
    }
}

/* QA Balance Display */
.header-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(160deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.06));
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 14px;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.header-balance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.3), transparent);
}

.header-balance .balance-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.balance-amount {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(180, 160, 255, 0.85));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    letter-spacing: -0.3px;
}

@media (max-width: 768px) {
    .header-balance {
        min-width: 85px;
        padding: 0.4rem 0.7rem;
    }

    .header-balance .balance-label {
        font-size: 0.55rem;
    }

    .balance-amount {
        font-size: 1rem;
    }
}

/* ==========================================
   RETURN TO TELEGRAM OVERLAY
   After successful MetaMask auto-connect
   ========================================== */

#return-tg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#return-tg-overlay.visible {
    opacity: 1;
}

.return-tg-card {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 380px;
    width: 90%;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 35, 0.95));
    border: 1px solid rgba(0, 250, 154, 0.3);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(0, 250, 154, 0.1),
        0 0 120px rgba(138, 43, 226, 0.05);
    animation: cardSlideUp 0.5s ease 0.2s both;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.return-tg-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulseCheck 1s ease;
}

@keyframes pulseCheck {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.return-tg-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00fa9a, #00d4aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.5rem;
}

.return-tg-address {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin: 0 0 1rem;
}

.return-tg-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 2rem;
    line-height: 1.5;
}

.return-tg-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.return-tg-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 136, 204, 0.6);
}

.return-tg-button:active {
    transform: translateY(0);
}

.return-tg-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0 0;
}

/* ==========================================
   CODE DISPLAY MODAL
   Shown in Telegram BEFORE MetaMask redirect
   ========================================== */

#code-display-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#code-display-overlay.visible {
    opacity: 1;
}

.code-display-card {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 380px;
    width: 90%;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 35, 0.95));
    border: 1px solid rgba(0, 250, 154, 0.3);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(0, 250, 154, 0.1),
        0 0 120px rgba(138, 43, 226, 0.05);
    animation: cardSlideUp 0.5s ease 0.2s both;
}

.code-display-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.code-display-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00fa9a, #00d4aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.5rem;
}

.code-display-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.code-display-code-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.code-display-code {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    color: #00fa9a;
    background: rgba(0, 250, 154, 0.08);
    border: 2px solid rgba(0, 250, 154, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(0, 250, 154, 0.3);
    animation: codeGlow 2s ease-in-out infinite alternate;
}

@keyframes codeGlow {
    from {
        text-shadow: 0 0 10px rgba(0, 250, 154, 0.2);
    }

    to {
        text-shadow: 0 0 25px rgba(0, 250, 154, 0.5);
    }
}

.code-display-copy {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.code-display-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 250, 154, 0.4);
}

.code-display-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #f6851b, #e2761b);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(246, 133, 27, 0.4);
}

.code-display-open-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(246, 133, 27, 0.6);
}

.code-display-open-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.code-display-open-btn:active:not(:disabled) {
    transform: translateY(0);
}

.code-display-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0 0;
}

/* ==========================================
   CODE INPUT FALLBACK OVERLAY
   Shown when MetaMask deep link loses the code
   ========================================== */

#code-input-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#code-input-overlay.visible {
    opacity: 1;
}

.code-input-card {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 380px;
    width: 90%;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 35, 0.95));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(138, 43, 226, 0.1),
        0 0 120px rgba(0, 250, 154, 0.05);
    animation: cardSlideUp 0.5s ease 0.2s both;
}

.code-input-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.code-input-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.5rem;
}

.code-input-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.5rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.code-input-field-wrap {
    margin: 0 0 1.5rem;
}

.code-input-field {
    width: 100%;
    max-width: 180px;
    padding: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.code-input-field:focus {
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

.code-input-field::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

.code-input-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.code-input-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.code-input-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.code-input-button:active:not(:disabled) {
    transform: translateY(0);
}

.code-input-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0 0;
}


/* ==========================================
   TOP UP BUTTON (in wallet connected section)
   ========================================== */

.btn-topup-wallet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 200, 100, 0.15), rgba(0, 160, 80, 0.1));
    border: 1px solid rgba(0, 220, 110, 0.3);
    border-radius: 12px;
    color: #00dc6e;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-topup-wallet:hover {
    background: linear-gradient(135deg, rgba(0, 200, 100, 0.25), rgba(0, 160, 80, 0.18));
    border-color: rgba(0, 220, 110, 0.5);
    box-shadow: 0 0 20px rgba(0, 220, 110, 0.15);
    transform: translateY(-1px);
}

.btn-topup-wallet:active {
    transform: translateY(0);
}


/* ==========================================
   DEPOSIT MODAL
   ========================================== */

.deposit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(12px);
    animation: depositFadeIn 0.25s ease;
}

@keyframes depositFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.deposit-modal-content {
    max-width: 420px;
    width: 92%;
    padding: 2rem;
    animation: modalSlideIn 0.3s ease;
}

.deposit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.deposit-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #00dc6e, #00b8d9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.deposit-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.deposit-modal-close:hover {
    color: var(--text-main);
}

.deposit-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Info row */
.deposit-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 220, 110, 0.06);
    border: 1px solid rgba(0, 220, 110, 0.15);
    border-radius: 10px;
}

.deposit-info-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.deposit-info-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

/* Amount input */
.deposit-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.deposit-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.deposit-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.deposit-input {
    width: 100%;
    padding: 0.9rem 3.5rem 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'SF Mono', 'Consolas', monospace;
    appearance: textfield;
    -moz-appearance: textfield;
}

.deposit-input::-webkit-outer-spin-button,
.deposit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.deposit-input:focus {
    border-color: rgba(0, 220, 110, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 220, 110, 0.08);
}

.deposit-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

.deposit-input-suffix {
    position: absolute;
    right: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

/* Quick-amount chips */
.deposit-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.deposit-chip {
    flex: 1;
    min-width: 70px;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.deposit-chip:hover {
    background: rgba(0, 220, 110, 0.1);
    border-color: rgba(0, 220, 110, 0.35);
    color: #00dc6e;
}

.deposit-chip:active {
    transform: scale(0.96);
}

/* Credits preview */
.deposit-preview {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(0, 220, 110, 0.6);
    padding: 0.6rem;
    background: rgba(0, 220, 110, 0.04);
    border-radius: 8px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.deposit-preview.has-value {
    color: rgba(0, 220, 110, 0.9);
    background: rgba(0, 220, 110, 0.08);
}

/* ── Chain Badge ────────────────────────────────────── */

.deposit-chain-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
    width: fit-content;
}

/* ── Non-EVM Warning ────────────────────────────────── */

.deposit-non-evm-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 10px;
    font-size: 0.82rem;
    color: rgba(255, 200, 100, 0.9);
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* ── Pay button ─────────────────────────────────────── */

.deposit-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00b860, #009b50);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 184, 96, 0.3);
    letter-spacing: 0.3px;
}

.deposit-pay-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 184, 96, 0.45);
}

.deposit-pay-btn:active:not(:disabled) {
    transform: translateY(0);
}

.deposit-pay-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Disclaimer */
.deposit-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

/* ── Active Chip Highlight ──────────────────────────── */

.deposit-chip.active {
    background: rgba(0, 220, 110, 0.15);
    border-color: rgba(0, 220, 110, 0.5);
    color: #00fa9a;
}

/* ══════════════════════════════════════════════════════
   DEPOSIT STATUS SECTION (Tier-1 Payment States)
   ══════════════════════════════════════════════════════ */

.deposit-status-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 0.8rem;
    min-height: 260px;
}

/* Status icon — large emoji with state-based animations */
.deposit-status-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.deposit-status-icon.waiting {
    animation: depositPulse 1.5s ease-in-out infinite;
}

.deposit-status-icon.processing {
    animation: depositSpin 2s linear infinite;
}

.deposit-status-icon.success {
    animation: depositBounce 0.6s ease;
}

.deposit-status-icon.error {
    animation: depositShake 0.5s ease;
}

@keyframes depositPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes depositSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes depositBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes depositShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* Status title */
.deposit-status-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

/* Status text */
.deposit-status-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    max-width: 300px;
}

/* Explorer tx link */
.deposit-tx-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(138, 180, 255, 0.8);
    font-size: 0.78rem;
    font-family: 'SF Mono', 'Consolas', monospace;
    text-decoration: none;
    transition: all 0.2s ease;
}

.deposit-tx-link:hover {
    background: rgba(138, 180, 255, 0.08);
    border-color: rgba(138, 180, 255, 0.3);
    color: rgba(138, 180, 255, 1);
}

/* Context button (Done / Try Again) */
.deposit-status-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.deposit-status-btn.success {
    background: linear-gradient(135deg, #00b860, #009b50);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 184, 96, 0.3);
}

.deposit-status-btn.success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 184, 96, 0.45);
}

.deposit-status-btn.retry {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.deposit-status-btn.retry:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}


/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   REOWN APPKIT THEME OVERRIDES
   Match AppKit modal to our dark premium palette
   в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */

:root {
    --w3m-accent: hsl(260, 100%, 65%);
    --w3m-color-mix: #0d0d1a;
    --w3m-color-mix-strength: 40;
    --w3m-border-radius-master: 3px;
    --w3m-font-family: 'Inter', sans-serif;
    --w3m-z-index: 99999;
}