:root {
  --bg: #0a0d14;
  --bg-2: #11151f;
  --row: #151a26;
  --row-alt: #1a2030;
  --border: #242c3d;
  --gold: #e9c46a;
  --gold-bright: #ffd873;
  --text: #f4f6fb;
  --muted: #8b93a7;
  --up: #2ec95f;
  --down: #ff4d4d;
  --section: #1d2435;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Oswald', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.board {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #14192690, #1b2335);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 14px; }

.logo {
  width: 58px; height: 58px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #1a1206;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 26px;
  box-shadow: 0 4px 18px rgba(233,196,106,.25);
  overflow: hidden;
  flex-shrink: 0;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }

.brand-text h1 {
  font-size: 30px; font-weight: 700; letter-spacing: .5px;
  color: var(--gold-bright);
  line-height: 1.05;
}
.brand-text p { color: var(--muted); font-size: 15px; font-weight: 400; }

.status { text-align: right; font-size: 14px; }
.live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted); margin-right: 6px; vertical-align: middle;
}
.live-dot.on { background: var(--up); box-shadow: 0 0 10px var(--up); animation: pulse 2s infinite; }
.live-dot.off { background: var(--down); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.updated { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- Columns / sections ---------- */
.columns {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}

.section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  align-self: start;
}

.section-title {
  background: var(--section);
  color: var(--gold);
  font-size: 18px; font-weight: 600; letter-spacing: 2px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.col-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 8px 16px;
  font-size: 13px; color: var(--muted); font-weight: 500;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}
.col-head .num { text-align: right; }

/* ---------- Price rows ---------- */
.price-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: center;
  padding: 11px 16px;
  background: var(--row);
  border-bottom: 1px solid #0c0f18;
}
.price-row:nth-child(even) { background: var(--row-alt); }
.price-row:last-child { border-bottom: none; }

.price-row .label {
  font-size: 18px; font-weight: 500; letter-spacing: .3px;
}
.price-row.stale .label { color: var(--muted); }

.cell {
  text-align: right;
  font-size: 22px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  white-space: nowrap;
}
.cell .arrow { font-size: 14px; width: 12px; display: inline-block; }
.cell.up { color: var(--up); }
.cell.down { color: var(--down); }
.cell.flat { color: var(--text); }
.cell .val { color: inherit; }

/* deger degisince hafif parlama */
@keyframes flashUp   { 0%{background:rgba(46,201,95,.28)} 100%{background:transparent} }
@keyframes flashDown { 0%{background:rgba(255,77,77,.28)} 100%{background:transparent} }
.cell.flash-up   { animation: flashUp .9s ease-out; border-radius: 6px; }
.cell.flash-down { animation: flashDown .9s ease-out; border-radius: 6px; }

/* ---------- Footer ---------- */
.board-footer {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 10px;
}
.footer-sep { margin: 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .columns { grid-template-columns: 1fr; }
  .brand-text h1 { font-size: 24px; }
  .logo { width: 48px; height: 48px; font-size: 22px; }
  .board-header { padding: 12px; }
  .status { text-align: left; }
  .price-row .label { font-size: 16px; }
  .cell { font-size: 19px; }
}

/* Buyuk ekran / TV modu */
@media (min-width: 1400px) {
  .board { max-width: 1340px; }
  .brand-text h1 { font-size: 38px; }
  .price-row .label { font-size: 21px; }
  .cell { font-size: 26px; }
  .section-title { font-size: 21px; }
}
