/* 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 {
    display: none !important;
}

.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);
    }
}

/* ── Combined Wallet Pill (header — connected state) ── */
.header-wallet-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start; /* Left-aligned content for clear structure */
    gap: 0.2rem;
    padding: 0.4rem 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    /* click opens hamburger menu */
}

.hwp-row-balance {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    line-height: 1;
}

.hwp-row-addr {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
}

.header-wallet-pill:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    /* Removed dirty neon glow, kept it clean */
}

/* • Online dot */
.hwp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00fa9a;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0, 250, 154, 0.4);
    animation: hwpPing 3s ease-in-out infinite;
    transform: translateY(-0.5px); /* Optical alignment with text */
}

@keyframes hwpPing {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; box-shadow: 0 0 8px rgba(0, 250, 154, 0.6); }
}

/* Short wallet address */
.hwp-addr {
    font-size: 0.72rem;
    font-weight: 600; /* Increased to match hamburger weight */
    color: rgba(255, 255, 255, 0.5);
    /* Removed mono font, using default Geist/sans for clean look */
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Divider dot (removed in stacked layout, keep just in case) */
.hwp-sep {
    display: none;
}

/* Balance number */
.hwp-amount {
    font-size: 0.95rem;
    font-weight: 700; /* Bold, standard sans-serif */
    color: #fff;
    /* Removed text gradient for a cleaner Tier-1 aesthetic */
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* USDT label */
.hwp-unit {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

@media (max-width: 360px) {
    .hwp-addr { max-width: 60px; }
    .hwp-unit { display: none; }
}

/* ==========================================
   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);
}


/* ══════════════════════════════
   REDESIGNED DEPOSIT MODAL
   ══════════════════════════════ */

.deposit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 0, 6, 0.88);
    z-index: 10000;
    display: none;
    justify-content: flex-end;
    align-items: flex-end;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: depositFadeIn 0.22s ease;
}

.deposit-modal[style*="flex"] {
    display: flex !important;
}

@keyframes depositFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.deposit-modal-content {
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 28px 28px 0 0;
    padding: 0;
    background: linear-gradient(180deg, rgba(18,10,34,0.98) 0%, rgba(10,6,22,1) 100%);
    border: 1px solid rgba(138,43,226,0.22);
    border-bottom: none;
    box-shadow:
        0 -8px 60px rgba(0,0,0,0.7),
        0 0 0 1px rgba(138,43,226,0.08),
        inset 0 1px 0 rgba(255,255,255,0.06);
    animation: depositSlideUp 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes depositSlideUp {
    from { transform: translateY(100%); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Drag handle */
.deposit-modal-content::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
    margin: 12px auto 0;
}

.deposit-modal-inner {
    padding: 1.4rem 1.6rem 2.2rem;
}

.deposit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
}

.deposit-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c4b5fd, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.deposit-modal-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.deposit-modal-close:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* ── Network Selector ── */
.deposit-network-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.5rem;
}

.deposit-network-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.deposit-network-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.4rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.deposit-network-btn:hover {
    background: rgba(138,43,226,0.1);
    border-color: rgba(138,43,226,0.3);
    color: rgba(255,255,255,0.8);
}

.deposit-network-btn.active {
    background: rgba(138,43,226,0.18);
    border-color: rgba(138,43,226,0.55);
    color: #fff;
    box-shadow: 0 0 14px rgba(138,43,226,0.2);
}

.deposit-network-btn .net-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── Chain Badge (inline, updated by JS) ── */
.deposit-chain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
}

/* ── 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: 12px;
    font-size: 0.82rem;
    color: rgba(255,200,100,0.9);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.deposit-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Info row */
.deposit-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(138,43,226,0.06);
    border: 1px solid rgba(138,43,226,0.14);
    border-radius: 12px;
}

.deposit-info-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    color: #a78bfa;
}

.deposit-info-text {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

/* Amount input */
.deposit-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.deposit-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.38);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deposit-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.deposit-input {
    width: 100%;
    padding: 0.95rem 3.5rem 0.95rem 1.1rem;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s 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(138,43,226,0.55);
    box-shadow: 0 0 0 3px rgba(138,43,226,0.12);
}

.deposit-input::placeholder {
    color: rgba(255,255,255,0.18);
    font-weight: 400;
}

.deposit-input-suffix {
    position: absolute;
    right: 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.28);
    pointer-events: none;
}

/* Quick-amount chips */
.deposit-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
}

.deposit-chip {
    padding: 0.55rem 0.4rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
    letter-spacing: 0.2px;
}

.deposit-chip:hover {
    background: rgba(138,43,226,0.1);
    border-color: rgba(138,43,226,0.35);
    color: #c4b5fd;
}

.deposit-chip.active {
    background: rgba(138,43,226,0.18);
    border-color: rgba(138,43,226,0.5);
    color: #e9d5ff;
}

.deposit-chip:active {
    transform: scale(0.94);
}

/* Credits preview */
.deposit-preview {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(167,139,250,0.55);
    padding: 0.55rem;
    background: rgba(138,43,226,0.05);
    border-radius: 10px;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
}

.deposit-preview.has-value {
    color: rgba(167,139,250,0.9);
    background: rgba(138,43,226,0.1);
}

/* Pay button */
.deposit-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 1.05rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow:
        0 4px 20px rgba(109,40,217,0.4),
        inset 0 1px 0 rgba(255,255,255,0.15);
    letter-spacing: 0.2px;
    margin-top: 0.2rem;
}

.deposit-pay-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 8px 28px rgba(109,40,217,0.55),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.deposit-pay-btn:active:not(:disabled) {
    transform: translateY(0);
}

.deposit-pay-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
}

/* Disclaimer */
.deposit-disclaimer {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    text-align: center;
    line-height: 1.5;
    margin: 0;
    padding-top: 0.1rem;
}


}



/* ══════════════════════════════════════════════════════
   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;
}