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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f1117;
    color: #e2e8f0;
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

h1 { text-align: center; margin-bottom: 24px; font-size: 1.6rem; color: #f8fafc; }
h2 { font-size: 1rem; color: #94a3b8; margin-bottom: 16px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card.highlight {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.stat-label { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: #f8fafc; }

.card {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.75rem; color: #94a3b8; margin-bottom: 6px; }
input {
    width: 100%;
    padding: 10px 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
input:focus { border-color: #3b82f6; }
input::placeholder { color: #475569; }

.preview {
    display: flex;
    gap: 20px;
    padding: 10px 14px;
    background: #0f172a;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
}
.preview b { color: #34d399; }

.btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover { background: #2563eb; }
.btn:active { background: #1d4ed8; }
.btn:disabled { background: #334155; cursor: not-allowed; }

.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th {
    text-align: left;
    padding: 8px 12px;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid #334155;
    white-space: nowrap;
}
td {
    padding: 10px 12px;
    color: #cbd5e1;
    border-bottom: 1px solid #1e293b;
    white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #0f172a; }

.profit-pos { color: #34d399; font-weight: 600; }
.profit-neg { color: #f87171; font-weight: 600; }

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    h1 { font-size: 1.3rem; }
}
