/* ============================================
   CRYPTO DEPOSIT SYSTEM - Premium Fintech UI
   ============================================ */

/* --- Variables --- */
:root {
    --crypto-primary: #6366f1;
    --crypto-primary-dark: #4f46e5;
    --crypto-success: #10b981;
    --crypto-danger: #ef4444;
    --crypto-warning: #f59e0b;
    --crypto-bg: #ffffff;
    --crypto-surface: #f8fafc;
    --crypto-surface-2: #f1f5f9;
    --crypto-border: #e2e8f0;
    --crypto-text: #0f172a;
    --crypto-text-secondary: #64748b;
    --crypto-radius: 16px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --crypto-shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --crypto-btc: #f7931a;
    --crypto-eth: #627eea;
    --crypto-usdt: #26a17b;
}

.dark-theme {
    --crypto-bg: #0f172a;
    --crypto-surface: #1e293b;
    --crypto-surface-2: #334155;
    --crypto-border: #334155;
    --crypto-text: #f1f5f9;
    --crypto-text-secondary: #94a3b8;
    --crypto-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --crypto-shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
}

/* --- Cards --- */
.crypto-card {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.3s ease;
}

.crypto-card:hover {
    box-shadow: var(--crypto-shadow-lg);
}

.crypto-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--crypto-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crypto-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--crypto-primary);
}

.crypto-card-body {
    padding: 24px;
}

/* --- Package Card --- */
.crypto-package-card {
    border-left: 4px solid var(--crypto-primary);
}

.crypto-package-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--crypto-text);
    margin: 0;
}

.crypto-package-meta {
    font-size: 14px;
    color: var(--crypto-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.crypto-package-meta i {
    color: var(--crypto-warning);
}

.crypto-package-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--crypto-text);
}

/* --- Crypto Selection --- */
.crypto-subtitle {
    color: var(--crypto-text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

.crypto-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crypto-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--crypto-bg);
    border: 2px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.crypto-option:hover:not(.disabled) {
    border-color: var(--crypto-primary);
    background: var(--crypto-surface);
    transform: translateY(-2px);
    box-shadow: var(--crypto-shadow-lg);
}

.crypto-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.crypto-option-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.crypto-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.crypto-option-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--crypto-text);
}

.crypto-option-code {
    font-size: 13px;
    color: var(--crypto-text-secondary);
}

.crypto-option-arrow {
    font-size: 16px;
    color: var(--crypto-primary);
}

.crypto-unavailable {
    font-size: 12px;
    color: var(--crypto-danger);
    font-weight: 500;
}

/* --- Wallet / Deposit Page --- */
.crypto-wallet-section {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .crypto-wallet-section {
        flex-direction: column;
        align-items: center;
    }
}

.crypto-qr-wrapper {
    flex-shrink: 0;
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--crypto-border);
}

.crypto-wallet-info {
    flex: 1;
    min-width: 0;
}

.crypto-send-label {
    font-size: 14px;
    color: var(--crypto-text-secondary);
    margin-bottom: 12px;
}

.crypto-send-label strong {
    color: var(--crypto-warning);
}

.crypto-address-box {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
}

.crypto-address-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--crypto-surface-2);
    border: 1px solid var(--crypto-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--crypto-text);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    outline: none;
    min-width: 0;
}

.crypto-copy-btn {
    padding: 12px 20px;
    background: var(--crypto-primary);
    color: #fff;
    border: 1px solid var(--crypto-primary);
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.crypto-copy-btn:hover {
    background: var(--crypto-primary-dark);
}

.crypto-copy-btn.copied {
    background: var(--crypto-success);
    border-color: var(--crypto-success);
}

/* --- Warning Box --- */
.crypto-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    font-size: 13px;
    color: var(--crypto-text);
    line-height: 1.5;
}

.crypto-warning-box i {
    color: var(--crypto-warning);
    margin-top: 2px;
    flex-shrink: 0;
}

.crypto-warning-box strong {
    color: var(--crypto-warning);
}

/* --- Steps --- */
.crypto-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crypto-step {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--crypto-text);
}

.crypto-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--crypto-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* --- Form --- */
.crypto-form-group {
    margin-bottom: 24px;
}

.crypto-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--crypto-text);
    margin-bottom: 8px;
}

.crypto-form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--crypto-surface-2);
    border: 1px solid var(--crypto-border);
    border-radius: 10px;
    color: var(--crypto-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.crypto-form-input:focus {
    border-color: var(--crypto-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.crypto-form-input::placeholder {
    color: var(--crypto-text-secondary);
}

.crypto-textarea {
    resize: vertical;
    min-height: 80px;
}

.crypto-form-hint {
    display: block;
    font-size: 12px;
    color: var(--crypto-text-secondary);
    margin-top: 6px;
}

/* --- Upload Zone --- */
.crypto-upload-zone {
    position: relative;
    border: 2px dashed var(--crypto-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.crypto-upload-zone:hover {
    border-color: var(--crypto-primary);
}

.crypto-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.crypto-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    gap: 8px;
    color: var(--crypto-text-secondary);
}

.crypto-upload-placeholder i {
    font-size: 32px;
    color: var(--crypto-primary);
}

.crypto-upload-placeholder span {
    font-weight: 600;
    font-size: 15px;
}

.crypto-upload-placeholder small {
    font-size: 12px;
}

.crypto-upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
}

.crypto-upload-preview img {
    max-height: 200px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.crypto-upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--crypto-danger);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 14px;
    transition: transform 0.2s;
}

.crypto-upload-remove:hover {
    transform: scale(1.1);
}

/* --- Submit Button --- */
.crypto-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--crypto-primary), var(--crypto-primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.crypto-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.crypto-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Back Link --- */
.crypto-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--crypto-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.crypto-back-link:hover {
    color: var(--crypto-primary);
}

/* --- Status Banner --- */
.crypto-status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: var(--crypto-radius);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.crypto-status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--crypto-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.crypto-status-approved {
    background: rgba(16, 185, 129, 0.12);
    color: var(--crypto-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.crypto-status-rejected {
    background: rgba(239, 68, 68, 0.12);
    color: var(--crypto-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- Deposit Detail --- */
.crypto-deposit-id {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--crypto-text-secondary);
    background: var(--crypto-surface-2);
    padding: 4px 10px;
    border-radius: 6px;
}

.crypto-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .crypto-detail-grid {
        grid-template-columns: 1fr;
    }
}

.crypto-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crypto-detail-item.full-width {
    grid-column: 1 / -1;
}

.crypto-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--crypto-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crypto-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--crypto-text);
}

.crypto-addr-small {
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    word-break: break-all;
}

.crypto-screenshot-section {
    margin-top: 20px;
}

.crypto-screenshot-thumb {
    margin-top: 8px;
}

.crypto-screenshot-thumb img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    border: 1px solid var(--crypto-border);
    object-fit: contain;
}

/* --- Site Badge for deposit list --- */
.site-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.site-badge.success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.site-badge.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.site-badge.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

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

.crypto-deposit-page .crypto-card {
    animation: fadeInUp 0.5s ease forwards;
}

.crypto-deposit-page .crypto-card:nth-child(2) { animation-delay: 0.1s; }
.crypto-deposit-page .crypto-card:nth-child(3) { animation-delay: 0.2s; }
.crypto-deposit-page .crypto-card:nth-child(4) { animation-delay: 0.3s; }

.crypto-select-page .crypto-card {
    animation: fadeInUp 0.5s ease forwards;
}

.crypto-select-page .crypto-card:nth-child(2) { animation-delay: 0.1s; }
