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

body {
  background: #0a0e17;
  color: #e0e6ed;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.badge {
  background: #00c853;
  color: #0a0e17;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.05em;
  animation: pulse 2s infinite;
}

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

.subtitle {
  color: #8892a4;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.updated {
  color: #556;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: #131926;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  padding: 1.2rem 1rem;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7a8d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-value.green { color: #00c853; }
.stat-value.red { color: #ff5252; }

/* Charts */
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.chart-box {
  background: #131926;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  padding: 1.5rem;
}

.chart-box h2 {
  font-size: 0.9rem;
  color: #8892a4;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Trades Table */
.trades-section {
  margin-bottom: 2rem;
}

.trades-section h2 {
  font-size: 1rem;
  color: #8892a4;
  margin-bottom: 1rem;
  font-weight: 500;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead th {
  background: #131926;
  color: #6b7a8d;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #1e2a3a;
  position: sticky;
  top: 0;
}

tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #111827;
  color: #c5cdd8;
}

tbody tr:hover {
  background: #1a2236;
}

.dir-long { color: #00c853; font-weight: 600; }
.dir-short { color: #ff5252; font-weight: 600; }
.pnl-pos { color: #00c853; font-weight: 600; }
.pnl-neg { color: #ff5252; font-weight: 600; }

.result-w {
  background: #00c85322;
  color: #00c853;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.result-l {
  background: #ff525222;
  color: #ff5252;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Delay notice */
.delay-notice {
  color: #6b7a8d;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  font-style: italic;
}

/* Open position banner */
.open-position {
  margin-bottom: 1.5rem;
}

.open-position-inner {
  background: #1a2236;
  border: 1px solid #2a3a4a;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #e0e6ed;
}

.open-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffab00;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

/* Footer */
footer {
  text-align: center;
  color: #556;
  font-size: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e2a3a;
}

.disclaimers {
  margin-bottom: 1.5rem;
}

.disclaimers p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #556;
}

.contact {
  background: #131926;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  padding: 1.2rem;
  margin-top: 1rem;
}

.contact p {
  margin-bottom: 0.3rem;
  color: #8892a4;
}

.contact a {
  color: #4fc3f7;
  text-decoration: none;
  font-size: 0.9rem;
}

.contact a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .charts { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  header h1 { font-size: 1.5rem; }
}
