﻿/* Market Banner */
.market-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.market-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.market-icon {
    font-size: 24px;
}

.market-label {
    color: #94a3b8;
    font-size: 14px;
}

.market-price {
    color: #f8fafc;
    font-weight: 700;
    font-size: 20px;
}

.market-change {
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.market-change.positive {
    background: #dcfce7;
    color: #16a34a;
}

.market-change.negative {
    background: #fee2e2;
    color: #dc2626;
}

.market-update {
    color: #64748b;
    font-size: 12px;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.dashboard-header p {
    color: #64748b;
    margin-top: 4px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.primary {
    background: #3b82f6;
    color: white;
}

.action-btn.success {
    background: #22c55e;
    color: white;
}

.action-btn.warning {
    background: #f59e0b;
    color: white;
}

.action-icon {
    font-size: 20px;
}

/* Dashboard Row */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0;
}

.dashboard-col {
    min-width: 0;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 16px 20px;
}

.badge {
    background: #3b82f6;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.view-all {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
}

/* Investment Items */
.investment-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.investment-item:last-child {
    border-bottom: none;
}

.inv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.inv-amount {
    font-weight: 700;
    font-size: 16px;
}

.inv-status {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
}

.inv-status.active {
    background: #dcfce7;
    color: #16a34a;
}

.inv-details {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
}

.investment-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.5s;
}

/* Transaction Items */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.transaction-item:last-child {
    border-bottom: none;
}

.txn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.txn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.txn-icon.deposit,
.txn-icon.profit {
    background: #dcfce7;
}

.txn-icon.withdrawal {
    background: #fee2e2;
}

.txn-icon.referral_bonus {
    background: #fef3c7;
}

.txn-type {
    font-weight: 500;
    font-size: 14px;
}

.txn-date {
    font-size: 12px;
    color: #94a3b8;
}

.txn-right {
    text-align: right;
}

.txn-amount {
    font-weight: 600;
    font-size: 15px;
}

.txn-amount.positive {
    color: #16a34a;
}

.txn-amount.negative {
    color: #dc2626;
}

.txn-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.txn-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.txn-status.completed {
    background: #dcfce7;
    color: #16a34a;
}

.txn-status.failed {
    background: #fee2e2;
    color: #dc2626;
}

/* Referral Section */
.referral-section {
    margin: 30px 0;
}

.referral-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 30px;
    border-radius: 12px;
    color: white;
}

.referral-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.referral-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.referral-content p {
    color: #94a3b8;
}

.referral-code {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 8px;
}

.referral-code strong {
    font-size: 20px;
    letter-spacing: 2px;
}

.referral-stats {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #94a3b8;
}

.referral-stats strong {
    color: white;
}

/* Deposit Page */
.deposit-section {
    padding: 40px 0;
}

.deposit-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.deposit-form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.balance-display {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.balance-label {
    display: block;
    font-size: 13px;
    opacity: 0.9;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
}

.balance-sub {
    font-size: 13px;
    opacity: 0.8;
}

.network-selector {
    margin-bottom: 20px;
}

.network-selector label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.network-buttons {
    display: flex;
    gap: 12px;
}

.network-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.network-btn:hover {
    border-color: #3b82f6;
}

.network-btn.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.network-icon {
    font-size: 24px;
}

.network-btn small {
    font-size: 10px;
    color: #94a3b8;
}

.deposit-address-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.deposit-address-box label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 8px;
}

.address-display {
    display: flex;
    gap: 12px;
    align-items: center;
}

.address-display code {
    flex: 1;
    background: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    word-break: break-all;
    border: 1px solid #e2e8f0;
}

.address-note {
    margin-top: 8px;
    font-size: 12px;
    color: #dc2626;
}

.deposit-info-box {
    background: #eff6ff;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.deposit-info-box h4 {
    margin-bottom: 8px;
    color: #1e293b;
}

.deposit-info-box ul {
    list-style: none;
    padding: 0;
}

.deposit-info-box ul li {
    padding: 4px 0;
    font-size: 14px;
    color: #475569;
}

.deposit-tips {
    margin-top: 24px;
}

.tip-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.tip-box h4 {
    margin-bottom: 8px;
    font-size: 14px;
}

.tip-box ol,
.tip-box ul {
    padding-left: 20px;
    font-size: 13px;
    color: #475569;
}

.tip-box ol li,
.tip-box ul li {
    padding: 4px 0;
}

.tip-box.warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.tip-box.info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.tip-box.info a {
    color: #3b82f6;
    text-decoration: none;
}

/* Deposit History */
.deposit-history {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deposit-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.deposit-history-item:last-child {
    border-bottom: none;
}

.dh-amount {
    font-weight: 600;
    font-size: 15px;
}

.dh-date {
    font-size: 12px;
    color: #94a3b8;
}

.dh-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.dh-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.dh-status.completed {
    background: #dcfce7;
    color: #16a34a;
}

.dh-status.failed {
    background: #fee2e2;
    color: #dc2626;
}

.dh-hash {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* CS Card */
.cs-card {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    padding: 20px;
    border-radius: 12px;
    color: white;
}

.cs-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cs-icon {
    font-size: 32px;
}

.cs-content h4 {
    margin-bottom: 4px;
}

.cs-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #1e293b;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.support-icon {
    font-size: 28px;
}

.support-option strong {
    display: block;
}

.support-option p {
    color: #64748b;
    font-size: 13px;
    margin: 4px 0;
}

.support-note {
    background: #eff6ff;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 13px;
}

.support-note a {
    color: #3b82f6;
    text-decoration: none;
}

/* Footer */
footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #f8fafc;
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    padding: 4px 0;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #f8fafc;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

.footer-disclaimer {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
    
    .deposit-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .referral-content {
        flex-direction: column;
        text-align: center;
    }
    
    .referral-stats {
        justify-content: center;
    }
    
    .referral-code {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .network-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    .support-option {
        flex-direction: column;
        text-align: center;
    }
}