/* ============================================
   DEPOSIT.CSS - Professional Mobile App Style
   Deposit Page | Responsive | Admin Theme
   ============================================ */

/* ===== PAGE CONTAINER ===== */
.deposit-page-modern {
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 20px 16px 40px 16px;
}

/* ===== HEADER SECTION ===== */
.deposit-header-modern {
    margin-bottom: 24px;
}

.deposit-header-modern h3 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.deposit-header-modern p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== HISTORY BUTTON ===== */
.history-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.history-btn-modern i {
    font-size: 14px;
}

.history-btn-modern:active {
    transform: scale(0.96);
    background: var(--bg-tertiary);
}

/* ===== MAIN GATEWAY CARD ===== */
.gateway-card-modern {
    background: var(--bg-primary);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

/* ===== PAYMENT SYSTEM LIST ===== */
.payment-system-list-modern {
    padding: 20px;
}

.payment-system-list-modern.is-scrollable {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.payment-system-list-modern.is-scrollable::-webkit-scrollbar {
    width: 4px;
}

.payment-system-list-modern.is-scrollable::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.payment-system-list-modern.is-scrollable::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* ===== GATEWAY OPTION ===== */
.gateway-option-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gateway-option-modern:active {
    transform: scale(0.98);
}

.gateway-option-modern.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.payment-item__info-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.payment-item__check-modern {
    width: 22px;
    height: 22px;
    border-radius: 22px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    transition: all 0.2s ease;
    position: relative;
}

.gateway-option-modern.selected .payment-item__check-modern {
    border-color: var(--primary);
    background: var(--primary);
}

.gateway-option-modern.selected .payment-item__check-modern::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.payment-item__name-modern {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.payment-item__thumb-modern {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-item__thumb-img-modern {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* ===== SHOW MORE BUTTON ===== */
.more-gateway-btn-modern {
    width: 100%;
    background: var(--bg-secondary);
    border: 1.5px dashed var(--border-color);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.more-gateway-btn-modern:active {
    transform: scale(0.98);
    background: var(--bg-tertiary);
}

.more-gateway-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin: 0;
}

.more-gateway-icon i {
    color: var(--primary);
    font-size: 14px;
}

/* ===== DEPOSIT INFO SECTION ===== */
.deposit-info-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.deposit-info__title-modern p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.deposit-info__input-modern p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* ===== AMOUNT INPUT ===== */
.amount-input-group-modern {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.amount-input-group-modern:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.amount-currency-modern {
    background: transparent;
    border: none;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.amount-input-modern {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 18px 14px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
}

.amount-input-modern::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 18px;
}

/* ===== DIVIDER ===== */
.divider-modern {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* ===== TOTAL AMOUNT SECTION ===== */
.total-amount-modern {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.total-amount-modern .deposit-info__title-modern p {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.total-amount-modern .deposit-info__input-modern p {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* ===== CONVERSION SECTION ===== */
.conversion-box-modern {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 12px 16px;
    margin: 12px 0;
}

.conversion-rate-modern {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.conversion-value-modern {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* ===== CRYPTO MESSAGE ===== */
.crypto-message-modern {
    background: linear-gradient(135deg, var(--primary-soft), var(--bg-secondary));
    border-radius: 20px;
    padding: 14px 16px;
    font-size: 12px;
    color: var(--primary);
    margin: 16px 0;
    text-align: center;
    border: 1px solid var(--primary);
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn-modern {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 48px;
    padding: 16px 20px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn-modern:hover::before {
    left: 100%;
}

.submit-btn-modern:active {
    transform: scale(0.97);
}

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

/* ===== INFO TEXT ===== */
.info-text-modern {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.info-text-modern p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* ===== TOOLTIP STYLES ===== */
.tooltip-modern {
    font-size: 11px;
}

.tooltip-modern .tooltip-inner {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    border-radius: 12px;
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 768px) {
    .deposit-page-modern {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 24px 50px 24px;
    }
    
    .gateway-card-modern .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .gateway-card-modern .col-lg-6:first-child {
        border-right: 1px solid var(--border-color);
    }
    
    .gateway-option-modern:hover {
        transform: translateX(4px);
        border-color: var(--primary);
    }
}

@media (min-width: 1024px) {
    .deposit-page-modern {
        padding: 40px 32px 60px 32px;
    }
    
    .deposit-header-modern h3 {
        font-size: 32px;
    }
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 640px) {
    .deposit-page-modern {
        padding: 16px 12px 30px 12px;
    }
    
    .gateway-card-modern {
        border-radius: 24px;
    }
    
    .payment-system-list-modern {
        padding: 16px;
    }
    
    .gateway-option-modern {
        padding: 12px 14px;
    }
    
    .amount-input-modern {
        font-size: 18px;
        padding: 12px 12px 12px 0;
    }
    
    .amount-currency-modern {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .total-amount-modern .deposit-info__input-modern p {
        font-size: 18px;
    }
}

/* ===== DARK THEME SUPPORT ===== */
body.dark-theme .gateway-card-modern {
    background: var(--dark-bg-secondary);
}

body.dark-theme .gateway-option-modern {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
}

body.dark-theme .gateway-option-modern.selected {
    background: rgba(65, 105, 225, 0.15);
}

body.dark-theme .amount-input-group-modern {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
}

body.dark-theme .more-gateway-btn-modern {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gateway-card-modern {
    animation: fadeInUp 0.4s ease-out;
}

.gateway-option-modern {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.gateway-option-modern:nth-child(1) { animation-delay: 0.05s; }
.gateway-option-modern:nth-child(2) { animation-delay: 0.1s; }
.gateway-option-modern:nth-child(3) { animation-delay: 0.15s; }
.gateway-option-modern:nth-child(4) { animation-delay: 0.2s; }
.gateway-option-modern:nth-child(5) { animation-delay: 0.25s; }
/* ===== WALLET BALANCE CARD ===== */
.wallet-balance-card-modern {
    background: linear-gradient(135deg, var(--primary-soft), var(--bg-secondary));
    border-radius: 24px;
    padding: 12px 20px;
    text-align: center;
    border: 1px solid var(--primary);
    min-width: 160px;
    transition: all 0.2s ease;
}

.wallet-balance-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.wallet-balance-label i {
    font-size: 12px;
    color: var(--primary);
}

.wallet-balance-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

/* ===== GATEWAY OPTION SELECTED STATE ===== */
.gateway-option-modern {
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gateway-option-modern.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Check Icon */
.payment-item__check-modern {
    width: 22px;
    height: 22px;
    border-radius: 22px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gateway-option-modern.selected .payment-item__check-modern {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.gateway-option-modern.selected .payment-item__check-modern::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Hover Effect */
.gateway-option-modern:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

/* Active Effect */
.gateway-option-modern:active {
    transform: scale(0.98);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .deposit-header-modern .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .wallet-balance-card-modern {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
    }
    
    .wallet-balance-label {
        margin-bottom: 0;
    }
    
    .wallet-balance-amount {
        font-size: 18px;
    }
}