/* ==========================================================================
   TC HUB - DEPOSIT CASHIER & WALLET BALANCE SYSTEM
   Theme: Obsidian & Signature TC Hub Amber-Gold (#f0b54f)
   ========================================================================== */

/* ── 1. Top Taskbar Wallet Balance Pill ─────────────────────────────────── */
.taskbar-wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 10px 0 12px;
    background: rgba(240, 181, 79, 0.08);
    border: 1px solid rgba(240, 181, 79, 0.32);
    border-radius: 9999px;
    color: #f6f1e7;
    cursor: pointer;
    font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
}

.taskbar-wallet-pill:hover {
    background: rgba(240, 181, 79, 0.18);
    border-color: #f0b54f;
    box-shadow: 0 0 22px rgba(240, 181, 79, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
    color: #ffffff;
}

.taskbar-wallet-pill:active {
    transform: scale(0.97);
}

.wallet-pill-icon {
    color: #f0b54f;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 6px rgba(240, 181, 79, 0.4));
}

.wallet-pill-amount {
    color: #ffffff;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.wallet-pill-add {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7cb79, #e8a842);
    color: #17140e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
    box-shadow: 0 2px 6px rgba(232, 168, 66, 0.35);
}

.taskbar-wallet-pill:hover .wallet-pill-add {
    transform: scale(1.15) rotate(90deg);
    background: #ffd17c;
}

/* ── 2. Deposit Modal Overlay ───────────────────────────────────────────── */
.tc-deposit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 7, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.tc-deposit-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── 3. Deposit Card Container ──────────────────────────────────────────── */
.tc-deposit-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    background: #141511;
    background-image: 
        radial-gradient(ellipse 65% 35% at 50% 0%, rgba(240, 181, 79, 0.12), transparent 75%),
        linear-gradient(180deg, #171813 0%, #12130f 100%);
    border: 1px solid rgba(240, 181, 79, 0.36);
    border-radius: 26px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.94), 0 0 50px rgba(240, 181, 79, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.93) translateY(20px);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease;
}

.tc-deposit-modal-overlay.active .tc-deposit-card {
    transform: scale(1) translateY(0);
}

/* Close button */
.tc-deposit-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(22, 23, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
}

.tc-deposit-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: rotate(90deg);
}

/* ── 4. Deposit Modal Header ────────────────────────────────────────────── */
.tc-deposit-header {
    position: relative;
    padding: 24px 26px 18px;
    border-bottom: 1px solid rgba(240, 181, 79, 0.12);
}

.tc-deposit-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    background: rgba(240, 181, 79, 0.1);
    border: 1px solid rgba(240, 181, 79, 0.28);
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f0b54f;
    margin-bottom: 12px;
}

.tc-deposit-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: tcPulseGreen 2s infinite ease-in-out;
}

@keyframes tcPulseGreen {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.tc-deposit-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tc-deposit-icon-ring {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(240, 181, 79, 0.2), rgba(212, 136, 40, 0.1));
    border: 1px solid rgba(240, 181, 79, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0b54f;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(240, 181, 79, 0.15);
    flex-shrink: 0;
}

.tc-deposit-header-title-wrap h2 {
    margin: 0;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 1.32rem;
    font-weight: 700;
    color: #f5f2eb;
    letter-spacing: -0.02em;
}

.tc-deposit-header-title-wrap p {
    margin: 3px 0 0;
    font-size: 0.81rem;
    color: #9ca3af;
    line-height: 1.35;
}

/* ── 5. User Current Balance Bar ────────────────────────────────────────── */
.tc-deposit-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: rgba(19, 20, 16, 0.85);
    border-bottom: 1px solid rgba(240, 181, 79, 0.08);
}

.tc-deposit-user-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-deposit-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(240, 181, 79, 0.3);
}

.tc-deposit-user-info {
    display: flex;
    flex-direction: column;
}

.tc-deposit-user-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e5e7eb;
}

.tc-deposit-user-balance-sub {
    font-size: 0.74rem;
    color: #8b8f97;
}

.tc-user-current-val {
    color: #f0b54f;
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
}

.tc-deposit-instant-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ── 6. Modal Body & Sections ───────────────────────────────────────────── */
.tc-deposit-body {
    padding: 20px 26px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tc-deposit-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-deposit-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #d1d5db;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tc-step-num {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #f0b54f;
    color: #12130f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 900;
}

/* Preset Buttons Grid */
.tc-amount-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.tc-preset-btn {
    position: relative;
    background: rgba(22, 24, 19, 0.85);
    border: 1px solid rgba(240, 181, 79, 0.18);
    border-radius: 12px;
    padding: 10px 4px 9px;
    color: #f3f4f6;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-preset-btn:hover {
    background: rgba(240, 181, 79, 0.12);
    border-color: rgba(240, 181, 79, 0.4);
    transform: translateY(-2px);
}

.tc-preset-btn.active {
    background: rgba(240, 181, 79, 0.22);
    border-color: #f0b54f;
    box-shadow: 0 0 16px rgba(240, 181, 79, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.tc-preset-val {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tc-preset-tag {
    position: absolute;
    top: -8px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.tc-preset-tag.gold {
    background: linear-gradient(135deg, #f0b54f, #d48828);
    color: #12130f;
}

.tc-preset-tag.pro {
    background: #8b5cf6;
}

/* Custom Amount Input Box */
.tc-custom-amount-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.tc-custom-input-box {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(16, 17, 14, 0.95);
    border: 1px solid rgba(240, 181, 79, 0.24);
    border-radius: 12px;
    padding: 0 14px;
    height: 44px;
    transition: all 0.2s ease;
}

.tc-custom-input-box:focus-within {
    border-color: #f0b54f;
    box-shadow: 0 0 16px rgba(240, 181, 79, 0.25);
}

.tc-currency-symbol {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0b54f;
    margin-right: 6px;
}

.tc-custom-amount-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.05rem;
    font-weight: 700;
}

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

.tc-currency-code {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    margin-left: 6px;
}

.tc-quick-adjust-chips {
    display: flex;
    gap: 6px;
}

.tc-chip-btn {
    height: 44px;
    padding: 0 12px;
    background: rgba(25, 27, 21, 0.85);
    border: 1px solid rgba(240, 181, 79, 0.2);
    border-radius: 10px;
    color: #d1d5db;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tc-chip-btn:hover {
    background: rgba(240, 181, 79, 0.15);
    border-color: #f0b54f;
    color: #ffffff;
}

/* ── 7. Payment Methods Section ─────────────────────────────────────────── */
.tc-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-method-card {
    position: relative;
    background: rgba(20, 22, 17, 0.9);
    border: 1px solid rgba(240, 181, 79, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-method-card:hover {
    background: rgba(240, 181, 79, 0.08);
    border-color: rgba(240, 181, 79, 0.38);
    transform: translateY(-1px);
}

.tc-method-card.active {
    background: rgba(240, 181, 79, 0.12);
    border-color: #f0b54f;
    box-shadow: 0 0 20px rgba(240, 181, 79, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tc-method-radio {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(240, 181, 79, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.tc-method-card.active .tc-method-radio {
    border-color: #f0b54f;
}

.tc-radio-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s, transform 0.2s;
}

.tc-method-card.active .tc-radio-circle {
    background: #f0b54f;
    transform: scale(1.1);
}

.tc-method-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tc-method-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tc-method-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f3f4f6;
    letter-spacing: -0.01em;
}

.tc-method-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tc-method-badge.crypto {
    background: rgba(240, 181, 79, 0.15);
    color: #f0b54f;
    border-color: rgba(240, 181, 79, 0.3);
}

.tc-method-desc {
    margin: 0;
    font-size: 0.77rem;
    color: #9ca3af;
    line-height: 1.35;
}

.tc-method-brand-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.tc-brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    font-size: 0.95rem;
}

/* ── 8. Crypto Top 3 Subgrid (BTC, ETH, USDT) ───────────────────────────── */
.tc-crypto-subgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(240, 181, 79, 0.2);
}

.tc-crypto-coin-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    background: rgba(14, 15, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    cursor: pointer;
    color: #e5e7eb;
    transition: all 0.2s ease;
    text-align: left;
}

.tc-crypto-coin-btn:hover {
    background: rgba(240, 181, 79, 0.1);
    border-color: rgba(240, 181, 79, 0.35);
}

.tc-crypto-coin-btn.active {
    background: rgba(240, 181, 79, 0.18);
    border-color: #f0b54f;
    box-shadow: 0 0 12px rgba(240, 181, 79, 0.22);
}

.tc-coin-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.tc-coin-icon.btc {
    color: #f7931a;
    background: rgba(247, 147, 26, 0.14);
}

.tc-coin-icon.eth {
    color: #627eea;
    background: rgba(98, 126, 234, 0.14);
}

.tc-coin-icon.usdt {
    color: #26a17b;
    background: rgba(38, 161, 123, 0.14);
}

.tc-usdt-symbol {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
}

.tc-coin-meta {
    display: flex;
    flex-direction: column;
}

.tc-coin-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.tc-coin-net {
    font-size: 0.65rem;
    color: #8b8f97;
}

/* ── 9. Summary & Breakdown Box ─────────────────────────────────────────── */
.tc-deposit-summary {
    background: rgba(16, 17, 13, 0.92);
    border: 1px solid rgba(240, 181, 79, 0.2);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tc-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #9ca3af;
}

.tc-summary-row strong {
    color: #e5e7eb;
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
}

.tc-fee-free {
    color: #22c55e !important;
}

.tc-summary-highlight {
    padding-top: 8px;
    border-top: 1px dashed rgba(240, 181, 79, 0.2);
    color: #f3f4f6;
    font-weight: 600;
}

.tc-summary-highlight strong {
    color: #f0b54f !important;
    font-size: 1.05rem;
}

/* ── 10. Submit CTA Button ──────────────────────────────────────────────── */
.tc-deposit-submit-btn {
    height: 48px;
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7cb79 0%, #e8a842 50%, #d48828 100%);
    border: none;
    color: #17140e;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(232, 168, 66, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-deposit-submit-btn:hover {
    background: linear-gradient(135deg, #ffe096 0%, #f0b54f 50%, #d48828 100%);
    box-shadow: 0 8px 30px rgba(240, 181, 79, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

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

.tc-deposit-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.tc-submit-icon {
    font-size: 0.9rem;
}

.tc-submit-arrow {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.tc-deposit-submit-btn:hover .tc-submit-arrow {
    transform: translateX(4px);
}

/* Status message */
.tc-deposit-status {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
}

.tc-deposit-status.info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

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

.tc-deposit-status.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ── 11. Trust Guarantee Bar ────────────────────────────────────────────── */
.tc-deposit-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.72rem;
    color: #828790;
    flex-wrap: wrap;
    margin-top: 4px;
}

.tc-deposit-trust-bar span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tc-deposit-trust-bar i {
    color: #f0b54f;
}

/* ── 12. Responsive adjustments ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .tc-deposit-card {
        max-height: 95vh;
        border-radius: 20px;
    }
    .tc-deposit-header {
        padding: 18px 18px 14px;
    }
    .tc-deposit-body {
        padding: 14px 18px 18px;
        gap: 16px;
    }
    .tc-amount-presets {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    .tc-preset-val {
        font-size: 0.9rem;
    }
    .tc-preset-tag {
        font-size: 0.52rem;
        padding: 0 4px;
    }
    .tc-crypto-subgrid {
        grid-template-columns: 1fr;
    }
    .tc-custom-amount-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .tc-quick-adjust-chips {
        justify-content: space-between;
    }
    .tc-chip-btn {
        flex: 1;
    }
}
