:root {
  --bg: #0b1320;
  --card: #0f1724;
  --accent: #f0b90b;
  --muted: #9aa4b2;
  --text: #e6eef6;
}

/* Reset + base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #071022);
  color: var(--text);
}
.container { max-width: 1100px; margin: 36px auto; padding: 20px; }

/* Navbar */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.nav h1 { font-size: 24px; }
.nav select, .nav button { margin-left: 8px; }

/* Buttons */
.btn {
  background: var(--accent);
  color: #071022;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* Hero + sections */
.hero { padding: 48px 0; }
.features { display: flex; gap: 16px; }
.features article {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  flex: 1;
}

/* Forms */
.form {
  background: #071427;
  padding: 16px;
  border-radius: 10px;
}
.form input, .form select, .form button, #authForm input, #authForm button {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #233043;
  background: #0b1a2c;
  color: var(--text);
}
.form button, #authForm button {
  background: var(--accent);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 8px; text-align: left; }

/* Small text */
.small { font-size: 13px; color: var(--muted); }

/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}
.modal-content {
  background: var(--card);
  padding: 24px;
  width: 90%;
  max-width: 380px;
  border-radius: 12px;
  position: relative;
  text-align: center;
  animation: fadeIn 0.25s ease;
}
.close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}
.divider {
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

/* OAuth Buttons */
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oauth {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #2b3a4d;
  background: #1c2533;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}
.oauth.google { border-color: #db4437; }
.oauth.microsoft { border-color: #00a1f1; }
.oauth.apple { border-color: #ffffff; }

/* Toggle login/signup */
.toggleAuth {
  margin-top: 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--accent);
}

/* Error box */
.error {
  color: #ff5b5b;
  margin-top: 10px;
  font-size: 14px;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nav > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .features { flex-direction: column; }
}