/* Main CSS for Crypto Trading Platform */

:root {
    --primary-bg: #0a1628;
    --secondary-bg: #1a2b47;
    --accent-bg: #2a3f66;
    --border-color: #3a5085;
    --text-primary: #ffffff;
    --text-secondary: #8ba3d0;
    --green: #00d4aa;
    --red: #ff6b6b;
    --blue: #4fc3f7;
    --yellow: #ffd54f;
}

body {
    background: linear-gradient(180deg, var(--primary-bg) 0%, #0f1a2e 100%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* Background Classes */
.bg-primary { background: var(--primary-bg); }
.bg-secondary { background: var(--secondary-bg); }
.bg-accent { background: var(--accent-bg); }
.text-secondary { color: var(--text-secondary); }
.border-custom { border-color: var(--border-color); }

/* Header */
.header-section {
    background: linear-gradient(135deg, #1a2b47 0%, #2a3f66 100%);
    border-bottom: 1px solid var(--border-color);
}

/* Price Display */
.price-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--red);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 43, 71, 0.5);
}

/* Tabs */
.tab-active {
    color: var(--green);
    border-bottom: 2px solid var(--green);
    background: rgba(0, 212, 170, 0.1);
}

/* Trading Buttons */
.btn-up {
    background: #000000;
    border: 2px solid var(--green);
    color: white;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

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

.btn-up:hover:not(:disabled)::before {
    left: 100%;
}

.btn-up:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.6);
    border-color: #00f5cc;
}

.btn-up:active:not(:disabled) { 
    transform: scale(0.95); 
}

.btn-down {
    background: #000000;
    border: 2px solid var(--red);
    color: white;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

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

.btn-down:hover:not(:disabled)::before {
    left: 100%;
}

.btn-down:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
    border-color: #ff8a8a;
}

.btn-down:active:not(:disabled) { 
    transform: scale(0.95); 
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
}

/* Chart and Containers */
.chart-container {
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.trading-section {
    background: linear-gradient(135deg, #1a2b47 0%, #2a3f66 100%);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* History */
.history-row {
    background: rgba(26, 43, 71, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.history-row:hover {
    background: rgba(42, 63, 102, 0.5);
    transform: translateY(-1px);
    border-left: 3px solid var(--green);
}

/* Color Classes */
.win-text { color: var(--green); }
.lose-text { color: var(--red); }
.pnl-positive { color: var(--green); }
.pnl-negative { color: var(--red); }

/* Form Elements */
.custom-select {
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 8px 12px;
}

.custom-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.custom-input {
    background: rgba(42, 63, 102, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
    outline: none;
}

/* Timer */
.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--yellow);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.pagination button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--accent-bg);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.pagination button:hover, .pagination button.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--green);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
/*.modal-backdrop {*/
/*    background: rgba(0, 0, 0, 0.8);*/
/*    backdrop-filter: blur(8px);*/
/*}*/

/* Visual Effects */
.win-effect {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.6) 0%, transparent 70%);
    animation: winPulse 2s ease-out;
    pointer-events: none;
    z-index: 9998;
}

.lose-effect {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.6) 0%, transparent 70%);
    animation: losePulse 2s ease-out;
    pointer-events: none;
    z-index: 9998;
}

@keyframes winPulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes losePulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.result-modal {
    animation: resultSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

@keyframes resultSlideIn {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.3) rotate(-10deg); 
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1) rotate(0deg); 
    }
}

/* Bet Preset Buttons */
.bet-preset-btn {
    background: rgba(42, 63, 102, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bet-preset-btn:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--green);
    color: var(--green);
}

.bet-preset-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

/* Animations */
.celebration-animation {
    animation: celebrate 1s ease-out;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

.heartbeat {
    animation: heartbeat 1s ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.toast {
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulsePrice {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes quickFlash {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Order Book and Trades */
.order-row {
    position: relative;
}

.trade-row {
    position: relative;
}

.activity-card {
    background: rgba(42, 63, 102, 0.2);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.activity-card:hover {
    background: rgba(42, 63, 102, 0.4);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-large {
        font-size: 1.5rem;
    }
}










/* Main CSS for Crypto Trading Platform */
/* Main CSS for Crypto Trading Platform */

:root {
    --primary-bg: #0a1628;
    --secondary-bg: #1a2b47;
    --accent-bg: #2a3f66;
    --border-color: #3a5085;
    --text-primary: #ffffff;
    --text-secondary: #8ba3d0;
    --green: #00d4aa;
    --red: #ff6b6b;
    --blue: #4fc3f7;
    --yellow: #ffd54f;
}

body {
    background: linear-gradient(180deg, var(--primary-bg) 0%, #0f1a2e 100%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

.bg-primary { background: var(--primary-bg); }
.bg-secondary { background: var(--secondary-bg); }
.bg-accent { background: var(--accent-bg); }
.text-secondary { color: var(--text-secondary); }
.border-custom { border-color: var(--border-color); }

.header-section {
    background: linear-gradient(135deg, #1a2b47 0%, #2a3f66 100%);
    border-bottom: 1px solid var(--border-color);
}

.price-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--red);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 43, 71, 0.5);
}

.tab-active {
    color: var(--green);
    border-bottom: 2px solid var(--green);
    background: rgba(0, 212, 170, 0.1);
}

.btn-up, .btn-down {
    background: #000000;
    color: white;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-up { border: 2px solid var(--green); box-shadow: 0 0 10px rgba(0, 212, 170, 0.3); }
.btn-down { border: 2px solid var(--red); box-shadow: 0 0 10px rgba(255, 107, 107, 0.3); }

.btn-up:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 20px rgba(0, 212, 170, 0.6); border-color: #00f5cc; }
.btn-down:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 20px rgba(255, 107, 107, 0.6); border-color: #ff8a8a; }

.chart-container, .trading-section {
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.custom-select, .custom-input {
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 8px 12px;
}

.custom-select:focus, .custom-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--yellow);
}

.loading-spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--green);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-backdropp {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

/* --- STYLES FOR MEMBER CENTER --- */

.member-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
    color: #8ba3d0; /* text-secondary */
}
.member-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.member-menu-item.active {
    background-color: #3b82f6; /* bg-blue-600 */
    color: #ffffff;
}
.member-menu-item.active i {
    color: #ffffff;
}

.view-title {
    font-size: 1.25rem; /* Giảm kích thước trên mobile */
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.info-card, .form-card {
    background-color: rgba(30, 41, 59, 0.5);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.btn-primary {
    background-image: linear-gradient(to right, #2563eb, #3b82f6);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    width: 100%;
    border: none;
    cursor: pointer;
}
.btn-danger {
    background-image: linear-gradient(to right, #dc2626, #ef4444);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    width: 100%;
    border: none;
    cursor: pointer;
}

.loading-spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid #4b5563;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 4rem auto;
}

.table-container {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
    overflow-x: auto; /* Cho phép cuộn ngang trên mobile */
}
table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 600px; /* Đảm bảo bảng không bị vỡ chữ quá nhỏ */
}
th, td { 
    padding: 0.75rem 1rem; /* Giảm padding trên mobile */
    text-align: left; 
    border-bottom: 1px solid var(--border-color); 
    white-space: nowrap; /* Ngăn chữ xuống dòng */
}
th { background-color: rgba(51, 65, 85, 0.5); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background-color: rgba(255, 255, 255, 0.05); }

.status-pending { color: #f59e0b; }
.status-completed { color: #22c55e; }
.status-cancelled { color: #ef4444; }

.bank-card {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}
.bank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 1.5rem 1.5rem;
    opacity: 0.3;
}
.bank-card .bank-name {
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .price-large { font-size: 1.5rem; }

    .member-menu-item {
        flex-direction: column;
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    .member-menu-item .menu-text {
        margin-top: 0.25rem;
    }
}

@media (max-width: 420px) {
    .member-menu-item .menu-text {
        display: none;
    }
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}




/*Bổ sung menu fix trên mobile*/





