* { box-sizing: border-box; }
body {
  font-family: -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0f1115;
  color: #e5e7eb;
  margin: 0;
  padding: 0 0 3rem;
}
header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #23262e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h1 { font-size: 1.25rem; margin: 0; }
main { max-width: 980px; margin: 0 auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.card {
  background: #161a21;
  border: 1px solid #23262e;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.card h2 { margin-top: 0; font-size: 1.05rem; }
.hint { color: #9aa3af; font-size: 0.85rem; }
.warning { color: #f59e0b; font-size: 0.85rem; }
.error-text { color: #f87171; font-size: 0.85rem; min-height: 1.2em; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  align-items: end;
}
.grid-1 { display: flex; flex-direction: column; gap: 0.85rem; }
label { display: flex; flex-direction: column; font-size: 0.8rem; gap: 0.35rem; color: #cbd5e1; }
input, select {
  background: #0f1115;
  border: 1px solid #2b2f3a;
  color: #e5e7eb;
  border-radius: 6px;
  padding: 0.5rem;
}
button {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 600;
}
button:hover { background: #2563eb; }
button.danger { background: #ef4444; }
button.danger:hover { background: #dc2626; }
button.secondary { background: #374151; }
button.secondary:hover { background: #4b5563; }
.automation-toggle { margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.status-badge { padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.status-off { background: #3f2f2f; color: #f87171; }
.status-on { background: #253b2c; color: #4ade80; }
.watch-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.watch-card {
  border: 1px solid #2b2f3a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}
.watch-symbol { color: #facc15; font-weight: 700; font-size: 1rem; }
.watch-symbol::before { content: "\1F4E1  "; }
.watch-meta { color: #9aa3af; font-size: 0.8rem; }
.watch-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.watch-signal { flex-basis: 100%; color: #9aa3af; font-size: 0.78rem; }
.watch-source-scanner { color: #a78bfa; font-size: 0.75rem; font-weight: 600; }
.empty-hint { color: #6b7280; font-size: 0.85rem; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #23262e; white-space: nowrap; }
.account-info { font-size: 0.85rem; color: #9aa3af; display: flex; align-items: center; gap: 1rem; }
.pnl-positive { color: #4ade80; font-weight: 600; }
.pnl-negative { color: #f87171; font-weight: 600; }
.pnl-unknown { color: #6b7280; }
.scan-table td:first-child { color: #facc15; font-weight: 600; }
.rise-positive { color: #4ade80; font-weight: 700; }

/* Auth pages */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-card {
  background: #161a21;
  border: 1px solid #23262e;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 360px;
}
.auth-card h1 { text-align: center; margin-bottom: 0.25rem; }
.auth-card h2 { text-align: center; font-size: 0.95rem; color: #9aa3af; margin-top: 0; font-weight: 500; }
.auth-card button { width: 100%; margin-top: 0.25rem; }

/* Mobil uyum */
@media (max-width: 640px) {
  header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .account-info { flex-wrap: wrap; gap: 0.5rem; width: 100%; }
  .account-info button { margin-left: auto; }
  main { padding: 0.85rem; gap: 1rem; }
  .card { padding: 1rem; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.1rem; }
  .auth-card { padding: 1.5rem 1.25rem; max-width: 100%; }
  .watch-card { flex-direction: column; align-items: flex-start; }
  .watch-actions { width: 100%; }
}
