/*
 * Deposit Page V3 — Clean, Modern, Professional
 * Redesigned for SMM Fastzone
 */

.page-content:has(.deposit-page-v3) nav[aria-label="breadcrumb"],
.page-content:has(.deposit-page-v3) .page-header {
    display: none;
}

/* ========================================
   LAYOUT
   ======================================== */

.deposit-page-v3 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   HEADER
   ======================================== */

.dep-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    border-radius: 18px;
    padding: 26px 30px;
    position: relative;
    overflow: hidden;
}

.dep-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.dep-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 16px;
}

.dep-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dep-title i {
    font-size: 20px;
    opacity: 0.9;
}

.dep-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.dep-header-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 12px 20px;
}

.dep-balance-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dep-balance-value {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

/* ========================================
   GRID
   ======================================== */

.dep-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* ========================================
   FORM CARD
   ======================================== */

.dep-form-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 28px;
}

/* Sections */
.dep-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.dep-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dep-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.dep-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #059669;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dep-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

/* ========================================
   PAYMENT TYPE CARDS
   ======================================== */

.dep-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dep-type-card {
    cursor: pointer;
    position: relative;
}

.dep-type-card input[type="radio"] {
    display: none;
}

.dep-type-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.dep-type-card:hover .dep-type-inner {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.dep-type-card.selected .dep-type-inner {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.dep-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #059669;
    transition: all 0.2s ease;
}

.dep-type-card.selected .dep-type-icon {
    background: #059669;
    color: #fff;
}

.dep-type-label {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

/* ========================================
   PAYMENT METHOD CARDS
   ======================================== */

.dep-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.dep-method-card {
    cursor: pointer;
    position: relative;
}

.dep-method-card input[type="radio"] {
    display: none;
}

.dep-method-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #fff;
}

.dep-method-card:hover .dep-method-inner {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.dep-method-card.selected .dep-method-inner {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.dep-method-logo {
    width: 40px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dep-method-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dep-method-info {
    flex: 1;
    min-width: 0;
}

.dep-method-name {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    display: block;
}

.dep-method-desc {
    font-size: 11px;
    color: #6b7280;
    display: block;
    margin-top: 1px;
}

.dep-method-check {
    color: #d1d5db;
    font-size: 18px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.dep-method-card.selected .dep-method-check {
    color: #059669;
}

/* ========================================
   AMOUNT SECTION
   ======================================== */

.dep-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.dep-quick-btn {
    padding: 8px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dep-quick-btn:hover {
    border-color: #a7f3d0;
    background: #f0fdf4;
    color: #059669;
}

.dep-quick-btn.active {
    background: #059669;
    border-color: #059669;
    color: #fff;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.25);
}

.dep-amount-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dep-amount-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dep-amount-input-wrap .form-label-v3 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.dep-amount-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #fff;
}

.dep-amount-input:focus-within {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.dep-currency {
    padding: 12px 14px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    border-right: 1px solid #f1f5f9;
}

.dep-amount-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    background: transparent;
}

.dep-amount-input input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.dep-min-info {
    font-size: 12px;
    color: #6b7280;
}

.dep-balance-received {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    border-radius: 12px;
    gap: 6px;
}

.dep-balance-received .dep-currency {
    background: transparent;
    border: none;
    padding: 0;
}

.dep-received-value {
    font-size: 16px;
    font-weight: 800;
    color: #059669;
}

/* ========================================
   FORM ACTIONS
   ======================================== */

.dep-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.dep-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    background: #059669;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.dep-submit-btn:hover:not(:disabled) {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.dep-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   SIDEBAR
   ======================================== */

.dep-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
}

/* Summary Card */
.dep-summary-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.dep-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.dep-summary-header i {
    color: #059669;
}

.dep-summary-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dep-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dep-summary-label {
    font-size: 13px;
    color: #6b7280;
}

.dep-summary-value {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.dep-summary-total {
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.dep-summary-total .dep-summary-value {
    color: #059669;
    font-size: 16px;
}

/* Info Card */
.dep-info-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.dep-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.dep-info-header i {
    color: #059669;
}

.dep-info-body {
    padding: 16px 18px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
}

/* ========================================
   DARK THEME
   ======================================== */

.dark-theme .dep-form-card,
.dark-theme .dep-summary-card,
.dark-theme .dep-info-card {
    background: #1e293b;
    border-color: #334155;
}

.dark-theme .dep-section {
    border-color: #334155;
}

.dark-theme .dep-section-title {
    color: #f1f5f9;
}

.dark-theme .dep-type-inner {
    background: #1e293b;
    border-color: #334155;
}

.dark-theme .dep-type-card:hover .dep-type-inner {
    border-color: #065f46;
    background: #064e3b;
}

.dark-theme .dep-type-card.selected .dep-type-inner {
    border-color: #059669;
    background: #064e3b;
}

.dark-theme .dep-type-icon {
    background: #064e3b;
}

.dark-theme .dep-type-label {
    color: #f1f5f9;
}

.dark-theme .dep-method-inner {
    background: #1e293b;
    border-color: #334155;
}

.dark-theme .dep-method-card:hover .dep-method-inner {
    border-color: #065f46;
    background: #064e3b;
}

.dark-theme .dep-method-card.selected .dep-method-inner {
    border-color: #059669;
    background: #064e3b;
}

.dark-theme .dep-method-name {
    color: #f1f5f9;
}

.dark-theme .dep-quick-btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.dark-theme .dep-quick-btn:hover {
    background: #064e3b;
    border-color: #059669;
    color: #a7f3d0;
}

.dark-theme .dep-amount-input {
    background: #0f172a;
    border-color: #334155;
}

.dark-theme .dep-amount-input input {
    color: #f1f5f9;
}

.dark-theme .dep-currency {
    background: #334155;
    border-color: #475569;
}

.dark-theme .dep-balance-received {
    background: #064e3b;
    border-color: #065f46;
}

.dark-theme .dep-summary-header,
.dark-theme .dep-info-header {
    border-color: #334155;
    color: #f1f5f9;
}

.dark-theme .dep-summary-value {
    color: #f1f5f9;
}

.dark-theme .dep-summary-total {
    border-color: #475569;
}

.dark-theme .dep-info-body {
    color: #94a3b8;
}

.dark-theme .dep-form-actions {
    border-color: #334155;
}

.dark-theme .dep-header {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .dep-grid {
        grid-template-columns: 1fr;
    }

    .dep-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .dep-header {
        padding: 22px 20px;
        border-radius: 14px;
    }

    .dep-header-content {
        flex-direction: column;
        text-align: center;
    }

    .dep-header-balance {
        align-items: center;
        width: 100%;
    }

    .dep-title {
        font-size: 20px;
        justify-content: center;
    }

    .dep-form-card {
        padding: 20px;
        border-radius: 14px;
    }

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

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

    .dep-amount-row {
        grid-template-columns: 1fr;
    }

    .dep-quick-amounts {
        gap: 6px;
    }

    .dep-quick-btn {
        padding: 7px 14px;
        font-size: 12px;
    }
}
