body, input, button, label, h1, h2, h3, h4, h5, h6, p, div, span {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* Verdana first then fallback fonts*/
}

/* ==================== DESIGN TOKENS (add near very top) ==================== */
:root {
  /* Core */
  --bg0: #d07a3a;
  --bg1: #070a12;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);

  /* Brand accent (warm “copper” to keep your deer theme) */
  --accent: #d07a3a;
  --accent2: #ffb36a;

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);

  /* Shadows / radius */
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
  --r: 16px;
  --r-sm: 12px;

  /* Spacing */
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 36px;
}

/* Predictable sizing everywhere (move from bottom -> top) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ==================== BASE ==================== */
body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* was overriding Verdana with Segoe UI */
  background:
    /*radial-gradient(900px 600px at 20% 10%, rgba(255, 179, 106, 0.10), transparent 60%),
    radial-gradient(700px 500px at 85% 25%, rgba(208, 122, 58, 0.10), transparent 55%),*/
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  line-height: 1.5;
}

/* ==================== TOPBAR (CONSOLIDATED: removes conflicts) ==================== */
/* Replace ALL repeated .topbar blocks, the standalone "Make sure header..." .topbar blocks,
   the "FINAL TOPBAR OVERRIDE" block, and the duplicate @media (max-width: 600px) blocks
   with this single, consistent set. */

.topbar {
  width: min(92vw, 980px);
  max-width: none;
  margin: var(--s4) auto var(--s3);
  padding: 0 var(--s4);
  min-height: 60px;

  display: flex;
  align-items: center;
  gap: var(--s3);

  background: rgba(48, 48, 48, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);

  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);

  position: sticky;
  top: 12px;
  z-index: 100;

  /* needed for dropdown positioning */
  position: relative;
}

/* Nav (desktop default: LEFT) */
.topbar .nav {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* nav on the LEFT */
  gap: 28px;                   /* spread apart more */
  flex-wrap: wrap;
  margin-right: auto;          /* pushes login button far right */
}

.topbar .nav a {
  font-weight: 800;            /* match Login/Register */
  letter-spacing: 0.2px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.topbar .nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Login/Register stays FAR RIGHT */
.topbar .login-btn {
  margin-left: auto;
  flex: 0 0 auto;
}

/* Hamburger hidden on desktop */
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  line-height: 42px;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
}

/* Mobile: hamburger only, nav becomes dropdown */
@media (max-width: 600px) {
  .topbar {
    width: 94vw;
    margin: var(--s3) auto var(--s3);
    padding: 10px 12px;
    min-height: unset;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .topbar .nav {
    display: none; /* hidden until opened */
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;

    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;

    background: rgba(49, 49, 49, 0.60);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-soft);

    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
  }

  .topbar.is-open .nav {
    display: flex;
  }

  /* Dropdown links match standard formatting (same weight + spacing) */
  .topbar .nav a {
    font-weight: 800;
    letter-spacing: 0.2px;
    padding: 10px 12px;
  }
}

/* ==================== LANDING MAIN ==================== */
main {
  width: min(92vw, 980px);
  max-width: none;
  margin: 0 auto var(--s5);
  padding: var(--s5) var(--s4);

  text-align: left;

  background: rgba(49, 49, 49, 0.60);
  border: 1px solid var(--border);
  border-radius: calc(var(--r) + 4px);
  box-shadow: var(--shadow);

  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.logo-img {
  width: min(220px, 70%);
  margin: 0 auto var(--s3);
  display: block;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.55));
}

h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0 0 var(--s3);
  letter-spacing: 0.2px;
}

h2 {
  font-size: 1.15rem;
  margin: var(--s4) 0 var(--s2);
  color: rgba(255, 255, 255, 0.88);
}

p,
li {
  color: rgba(255, 255, 255, 0.82);
}

section {
  padding-top: var(--s4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--s4);
}

/* your .features list (if used) */
.features {
  max-width: 60ch;
  padding-left: 0;
  list-style: none;
}
.features li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}
.features li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 800;
}

/* Mobile polish */
@media (max-width: 600px) {
  .topbar {
    width: 94vw;
    margin: var(--s3) auto var(--s3);
    padding: 10px 12px;
    height: auto;
  }
  main {
    width: 94vw;
    padding: var(--s4) var(--s3);
  }
}

/* ==================== AUTH PAGES (match landing page) ==================== */
body.auth-bg {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;

  /* Match index.html body background */
  background:
    /*radial-gradient(900px 600px at 20% 10%, rgba(255, 179, 106, 0.10), transparent 60%),
    radial-gradient(700px 500px at 85% 25%, rgba(208, 122, 58, 0.10), transparent 55%),*/
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* Make the login "card" match the landing <main> panel styling */
.card {
  width: min(92vw, 460px);

  background: rgba(49, 49, 49, 0.60);
  border: 1px solid var(--border);
  border-radius: calc(var(--r) + 4px);
  box-shadow: var(--shadow);

  padding: var(--s5) var(--s4);
  color: var(--text);

  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.card .logo {
  display: block;
  margin: 0 auto var(--s3);
  width: min(260px, 72%);
  height: auto;
  max-height: 180px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.55));
}

.card h2 {
  text-align: center;
  margin: 0 0 var(--s3);
  font-weight: 800;
}

.card label {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Form controls */
.card input,
.card select {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 20, 0.55);
  color: var(--text);
  outline: none;
}

.card input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.card input:focus,
.card select:focus {
  border-color: rgba(255, 179, 106, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 179, 106, 0.18);
}

/* Layout helpers */
.card .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.card .row > div {
  flex: 1 1 200px;
  min-width: 0;
}

.card .actions {
  display: flex;
  gap: 10px;
  margin-top: var(--s3);
  flex-wrap: wrap;
}

.card button {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.2s ease, border-color 0.2s ease;
}
.card button.primary {
  border-color: rgba(255, 179, 106, 0.35);
  background: linear-gradient(180deg, rgba(255, 179, 106, 0.30), rgba(208, 122, 58, 0.22));
}
.card button.secondary {
  background: rgba(255, 255, 255, 0.06);
}
.card button:hover {
  border-color: rgba(255, 179, 106, 0.45);
  background: rgba(255, 255, 255, 0.10);
}
.card button:active {
  transform: translateY(1px);
}

.card .hint {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.70);
  margin-top: var(--s3);
  text-align: center;
}
.card .hint a {
  color: var(--accent2);
}

/* HINT text: only links should get accent/hover behavior (not the whole <p class="hint">) */
.hint {
  color: var(--muted);
}

/* Support both patterns:
   1) <p class="hint">... <a>...</a></p>
   2) <a class="hint" href="...">...</a>
*/
.hint a,
.hint a:visited,
a.hint,
a.hint:visited {
  color: var(--accent2);
  text-decoration: none;
}

.hint a:hover,
.hint a:focus-visible,
a.hint:hover,
a.hint:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* IMPORTANT: do NOT style .hint:hover (that causes the whole sentence to change on hover) */

.card .error {
  color: #ff6b6b;
  min-height: 20px;
  text-align: center;
  margin-top: 10px;
}

/* Always keep hidden stronger than row layout */
.card .hidden,
.card .row.hidden {
  display: none !important;
}

/* Match header Login/Register button to the login "Continue" button */
.topbar .login-btn {
  border: 1px solid rgba(255, 179, 106, 0.35);
  background: linear-gradient(
    180deg,
    rgba(255, 179, 106, 0.30),
    rgba(208, 122, 58, 0.22)
  );

  color: #fff;
  font-weight: 800;

  padding: 12px 16px;
  border-radius: var(--r-sm);

  cursor: pointer;
  transition: transform 0.06s ease, background 0.2s ease, border-color 0.2s ease;
}

.topbar .login-btn:hover {
  border-color: rgba(255, 179, 106, 0.45);
  background: linear-gradient(
    180deg,
    rgba(255, 179, 106, 0.38),
    rgba(208, 122, 58, 0.28)
  );
}

.topbar .login-btn:active {
  transform: translateY(1px);
}

/* ==================== HERO SECTION ==================== */
.hero {
  text-align: center;
  margin: 0 auto var(--s5);
}

.hero h1 {
  margin-top: 0;
}

.hero p {
  margin-left: auto;
  margin-right: auto;
  max-width: 70ch; /* keeps centered text readable */
}

.hero .note {
  color: var(--accent2); /* replaces inline style="color: orange" */
}

/* ==================== LEGAL PAGES ==================== */
.legalbar {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 14px 16px;
}

.legalbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.legalbar a {
  text-decoration: none;
}

.legalbar .sep {
  opacity: 0.6;
}

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

