/* Deposit page — premium v2 */

.deposit-v2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* Balance strip */
.dep-balance-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dep-balance-card {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dep-balance-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dep-balance-card.wallet .icon { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }
.dep-balance-card.turnstile .icon { background: rgba(94, 234, 212, 0.12); color: #5eead4; }
.dep-balance-card.ocr .icon { background: rgba(244, 114, 182, 0.12); color: #f472b6; }

.dep-balance-card .label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--v2-text-faint, #6b6b7b);
}

.dep-balance-card .value {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* Segment tabs */
.dep-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
    width: fit-content;
    max-width: 100%;
}

.purchase-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--v2-text-muted, #9494a8);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.purchase-tab:hover { color: var(--v2-text, #f4f4f8); }

.purchase-tab.active {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(94, 234, 212, 0.08));
    color: var(--v2-accent, #5eead4);
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.25) inset;
}

/* Layout */
.dep-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.dep-panel {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 14, 22, 0.65);
    backdrop-filter: blur(12px);
    padding: 24px;
}

.dep-panel-title {
    margin: 0 0 20px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dep-panel-title i { color: var(--v2-accent); }

/* Crypto selector */
.dep-crypto-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--v2-text-muted);
    margin-bottom: 10px;
}

.dep-crypto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.dep-crypto-opt {
    position: relative;
    cursor: pointer;
}

.dep-crypto-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dep-crypto-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.dep-crypto-opt input:checked + .dep-crypto-card {
    border-color: rgba(94, 234, 212, 0.45);
    background: rgba(94, 234, 212, 0.08);
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.15) inset;
}

.dep-crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.dep-crypto-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.dep-crypto-icon.usdt { background: rgba(38, 161, 123, 0.12); }
.dep-crypto-icon.trx { background: rgba(248, 113, 113, 0.1); }

.dep-crypto-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
}

.dep-crypto-rate {
    display: block;
    font-size: 0.72rem;
    color: var(--v2-text-faint);
    margin-top: 2px;
}

/* Amount input */
.dep-field { margin-bottom: 18px; }

.dep-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--v2-text-muted);
    margin-bottom: 8px;
}

.dep-amount-wrap {
    position: relative;
}

.dep-amount-wrap .sym {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--v2-text-faint);
}

.dep-amount-input {
    width: 100%;
    padding: 14px 16px 14px 36px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--v2-text);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

.dep-amount-input:focus {
    border-color: rgba(94, 234, 212, 0.4);
}

.dep-hint {
    font-size: 0.72rem;
    color: var(--v2-text-faint);
    margin-top: 6px;
}

/* Calc preview */
.calculation-preview {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: rgba(94, 234, 212, 0.06);
    border: 1px solid rgba(94, 234, 212, 0.15);
}

.calculation-preview .calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--v2-text-muted);
}

.calculation-preview .calc-row.highlight {
    font-weight: 700;
    color: var(--v2-accent);
    padding-top: 8px;
    border-top: 1px solid rgba(94, 234, 212, 0.15);
}

.calculation-preview .calc-value { font-variant-numeric: tabular-nums; }

/* CTA */
.dep-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #5eead4, #14b8a6);
    color: #042f2e;
    box-shadow: 0 8px 28px rgba(94, 234, 212, 0.25);
    transition: transform 0.15s, box-shadow 0.2s;
}

.dep-submit:hover { box-shadow: 0 12px 32px rgba(94, 234, 212, 0.35); }
.dep-submit:active { transform: scale(0.98); }
.dep-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* Package grid */
#package-section { display: none; }

.dep-pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.dep-pkg-loading,
.dep-pkg-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--v2-text-faint);
    font-size: 0.9rem;
}

.dep-pkg {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.dep-pkg:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.dep-pkg--turnstile { border-color: rgba(94, 234, 212, 0.18); }
.dep-pkg--turnstile:hover { border-color: rgba(94, 234, 212, 0.35); box-shadow: 0 12px 32px rgba(94, 234, 212, 0.08); }

.dep-pkg--ocr { border-color: rgba(244, 114, 182, 0.18); }
.dep-pkg--ocr:hover { border-color: rgba(244, 114, 182, 0.35); }

.dep-pkg--unlimited,
.dep-pkg--combo {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(255, 255, 255, 0.02) 60%);
}

.dep-pkg--unlimited:hover,
.dep-pkg--combo:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.12);
}

.dep-pkg-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dep-pkg-badge.popular {
    background: rgba(94, 234, 212, 0.15);
    color: #5eead4;
    border: 1px solid rgba(94, 234, 212, 0.3);
}

.dep-pkg-badge.gold {
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #422006;
}

.dep-pkg-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.dep-pkg-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dep-pkg--turnstile .dep-pkg-icon { background: rgba(94, 234, 212, 0.12); color: #5eead4; }
.dep-pkg--ocr .dep-pkg-icon { background: rgba(244, 114, 182, 0.12); color: #f472b6; }
.dep-pkg--unlimited .dep-pkg-icon,
.dep-pkg--combo .dep-pkg-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
    color: #fcd34d;
}

.dep-pkg-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    padding-right: 60px;
}

.dep-pkg--unlimited .dep-pkg-name,
.dep-pkg--combo .dep-pkg-name {
    background: linear-gradient(90deg, #fef3c7, #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dep-pkg-meta {
    font-size: 0.75rem;
    color: var(--v2-text-faint);
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
}

.dep-pkg-price {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}

.dep-pkg-price .dep-pkg-old,
.pricing-old {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.85em;
    font-weight: 600;
    opacity: 0.45;
    text-decoration: line-through;
}

.dep-pkg-price .cur {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
    margin-right: 2px;
}

.dep-pkg-buy {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.dep-pkg--turnstile .dep-pkg-buy,
.dep-pkg--ocr .dep-pkg-buy {
    background: linear-gradient(135deg, #5eead4, #14b8a6);
    color: #042f2e;
}

.dep-pkg--unlimited .dep-pkg-buy,
.dep-pkg--combo .dep-pkg-buy {
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #422006;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
}

.dep-pkg-buy:hover { transform: translateY(-1px); }
.dep-pkg-buy:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* Paket kartı: bakiyeyle al + kriptoyla öde */
.dep-pkg-actions { display: grid; gap: 8px; align-content: start; min-height: 118px; }
.dep-pkg-buy {
    min-height: 44px;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.dep-pkg-buy i { font-size: 1.05rem; }
.dep-pkg-buy .dep-pkg-buy-sub { font-weight: 600; opacity: 0.75; font-size: 0.8rem; }
.dep-pkg-buy--ghost,
.dep-pkg--turnstile .dep-pkg-buy--ghost,
.dep-pkg--ocr .dep-pkg-buy--ghost,
.dep-pkg--unlimited .dep-pkg-buy--ghost,
.dep-pkg--combo .dep-pkg-buy--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--v2-text, #e8e8ef);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}
.dep-pkg-buy--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }
.dep-pkg-buy.is-confirm { box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.35); }
.dep-pkg--unlimited .dep-pkg-buy.is-confirm, .dep-pkg--combo .dep-pkg-buy.is-confirm { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4); }
.dep-pkg-hint { font-size: 0.72rem; color: var(--v2-text-faint, #8b8b9a); text-align: center; line-height: 1.4; }
.dep-pkg-hint b { color: var(--v2-text-muted, #b4b4c2); font-weight: 600; }
.dep-pkg.has-badge .dep-pkg-name { padding-right: 84px; }

/* Bonus aside */
.bonus-info-section {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    background: linear-gradient(160deg, rgba(251, 191, 36, 0.08), rgba(0, 0, 0, 0.2));
}

.bonus-info-section h4 {
    margin: 0 0 16px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fcd34d;
}

.bonus-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.bonus-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bonus-tier .tier-amount {
    font-weight: 700;
    font-size: 0.88rem;
}

.bonus-tier .tier-bonus {
    font-size: 0.82rem;
    color: #fcd34d;
    font-weight: 600;
}

.bonus-info-text {
    font-size: 0.75rem;
    color: var(--v2-text-faint);
    line-height: 1.5;
    margin: 0;
}

/* Payment history */
.dep-history {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 14, 22, 0.55);
    overflow: hidden;
}

.dep-history-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    font-weight: 700;
}

.dep-history-head i { color: var(--v2-accent); }

.dep-history-scroll { overflow-x: auto; }

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.history-table th {
    text-align: left;
    padding: 12px 18px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--v2-text-faint);
    background: rgba(0, 0, 0, 0.2);
}

.history-table td {
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--v2-text-muted);
}

.history-table td.empty-state {
    text-align: center;
    padding: 32px;
    color: var(--v2-text-faint);
}

.history-table .status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.history-table .status-badge.completed,
.history-table .status-badge.confirmed { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.history-table .status-badge.pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.history-table .status-badge.failed,
.history-table .status-badge.cancelled { background: rgba(248, 113, 113, 0.15); color: #f87171; }

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal-overlay .modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #12121a;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--v2-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body { padding: 22px; }

.package-info {
    text-align: center;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(94, 234, 212, 0.06);
    border: 1px solid rgba(94, 234, 212, 0.15);
}

.package-info h3 { margin: 0 0 6px; font-size: 1.2rem; }
.package-info p { margin: 0; font-size: 0.85rem; color: var(--v2-text-muted); }

.wallet-card-single {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.wallet-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(94, 234, 212, 0.12);
    color: #5eead4;
    margin-bottom: 12px;
}

.wallet-address-container { margin-bottom: 16px; }

.wallet-address {
    display: flex;
    gap: 8px;
}

.wallet-address input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--v2-text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.wallet-address button {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--v2-text);
    cursor: pointer;
}

.qr-code-container { margin-top: 12px; }
.qr-code-container canvas, .qr-code-container img { border-radius: 8px; }
.qr-hint { font-size: 0.75rem; color: var(--v2-text-faint); margin: 10px 0 4px; }
.amount-to-send { font-size: 1.25rem; font-weight: 700; color: var(--v2-accent); }

.payment-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-size: 0.85rem;
}

.timer-value { font-weight: 700; color: #fbbf24; }

.payment-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.payment-actions .btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.payment-actions .btn-primary {
    background: linear-gradient(135deg, #5eead4, #14b8a6);
    color: #042f2e;
}

.payment-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--v2-text-muted);
}

.warning-box {
    padding: 14px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.15);
    font-size: 0.78rem;
}

.warning-box h4 {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #fcd34d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.warning-box ul { margin: 0; padding-left: 16px; color: var(--v2-text-faint); line-height: 1.6; }

.success-content { text-align: center; padding: 12px 0; }
.success-content h3 { margin: 16px 0 8px; }
.success-details { margin: 20px 0; padding: 14px; border-radius: 10px; background: rgba(0,0,0,0.3); }
.detail-row { display: flex; justify-content: space-between; font-size: 0.9rem; }

.dep-layout--package {
    grid-template-columns: 1fr;
}

.dep-layout--package .dep-aside {
    display: none;
}

@media (max-width: 900px) {
    .dep-layout { grid-template-columns: 1fr; }
    .dep-balance-strip { grid-template-columns: 1fr; }
    .bonus-info-section { order: -1; }
}

@media (max-width: 520px) {
    .dep-crypto-grid { grid-template-columns: 1fr; }
    .dep-pkg-grid { grid-template-columns: 1fr; }
    .dep-tabs { width: 100%; }
    .purchase-tab { flex: 1; justify-content: center; padding: 10px 12px; font-size: 0.8rem; }
}

/* Otomatik onay (OKX): birebir tutar notu */
.auto-confirm-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #d8f5e6;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
