* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #0f3460;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    color: #e94560;
}

header h1 i {
    margin-right: 10px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #e94560;
    color: white;
}

.btn-primary:hover {
    background: #c73e54;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #0f3460;
    color: white;
    position: relative;
}

.btn-secondary:hover {
    background: #1a4a7a;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: color 0.3s;
}

.btn-icon:hover {
    color: #e94560;
}

.btn-danger:hover {
    color: #ff4757;
}

/* Alert Banner */
.alert-banner {
    background: rgba(233, 69, 96, 0.2);
    border-left: 4px solid #e94560;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.alert-item i {
    color: #e94560;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card h3 {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card .amount {
    font-size: 28px;
    font-weight: 700;
}

.card .amount.profit {
    color: #00d9ff;
}

.card .amount.loss {
    color: #ff4757;
}

/* Table */
.table-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: rgba(15, 52, 96, 0.5);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}

th:hover {
    background: rgba(15, 52, 96, 0.8);
}

th i {
    margin-left: 8px;
    font-size: 12px;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ticker-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-cell strong {
    font-size: 16px;
    color: #fff;
}

.exchange-badge {
    background: #0f3460;
    color: #aaa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
}

.current-price {
    display: flex;
    flex-direction: column;
}

.update-time {
    color: #666;
    font-size: 11px;
}

.profit {
    color: #00d9ff;
    font-weight: 600;
}

.profit i {
    margin-left: 5px;
    font-size: 12px;
}

.loss {
    color: #ff4757;
    font-weight: 600;
}

.loss i {
    margin-left: 5px;
    font-size: 12px;
}

.loading {
    color: #888;
    font-style: italic;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a2e;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-large {
    max-width: 800px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #fff;
}

.modal h2 {
    margin-bottom: 20px;
    color: #e94560;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e94560;
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Alerts List */
.alerts-list {
    margin-top: 20px;
}

.no-alerts {
    text-align: center;
    color: #666;
    padding: 40px;
}

.status-active {
    background: #00d9ff;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 800px;
    }
}