:root {
  --heading-font: "Quicksand", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-soft: #edf6fb;
  --text: #22313f;
  --muted: #627181;
  --border: #dce6ee;
  --accent: #f6a81d;
  --accent-dark: #22313f;
  --accent-blue: #3f91d8;
  --accent-green: #8bc34a;
  --good: #6aa82f;
  --warn: #d88912;
  --shadow: 0 18px 50px rgba(34, 49, 63, .10);
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 252, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar, .container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  font-family: var(--heading-font);
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #fff;
}
.brand-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}
.nav-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 9px 12px;
}
.nav {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 74px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav.is-open { display: grid; gap: 8px; }
.nav a {
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover, .nav a.is-active { background: var(--surface-soft); color: var(--text); }
.hero {
  padding: 56px 0 38px;
  display: grid;
  gap: 28px;
}
.hero h1, h1 {
  font-family: var(--heading-font);
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}
h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 14px;
}
h3 {
  font-family: var(--heading-font);
  margin: 0 0 8px;
}
p { color: var(--muted); }
.lead { font-size: 1.12rem; max-width: 720px; }
.eyebrow {
  color: var(--accent-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary, button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card, .panel, .auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(34, 49, 63, .06);
}
.section { padding: 36px 0; }
.hero-visual {
  min-height: 280px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(63,145,216,.94), rgba(139,195,74,.88) 58%, rgba(246,168,29,.92)),
    url('/assets/icons/icon.svg') center/180px no-repeat;
  color: #fff;
  display: grid;
  align-content: end;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-visual p { color: rgba(255,255,255,.88); }
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}
.sidebar {
  background: var(--accent-dark);
  color: #fff;
  padding: 16px;
}
.sidebar a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
}
.sidebar a:hover, .sidebar a.is-active { background: rgba(255,255,255,.10); color: #fff; }
.main {
  padding: 22px 16px 88px;
}
.mobile-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 30;
}
.mobile-tabs a {
  padding: 10px 6px;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
}
.stat {
  font-size: 2.4rem;
  font-weight: 850;
  color: var(--accent-blue);
}
.points-big {
  font-size: clamp(3.4rem, 20vw, 7rem);
  font-weight: 900;
  color: var(--accent-blue);
  line-height: .95;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 8px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .85rem; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: var(--text); font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status { font-weight: 800; }
.status.pending { color: var(--warn); }
.status.approved { color: var(--good); }
.status.rejected { color: #b74a2c; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card { width: min(460px, 100%); }
.site-footer { padding: 28px 0; border-top: 1px solid var(--border); color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.coming-soon {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    linear-gradient(180deg, rgba(247,250,252,.94), rgba(237,246,251,.96)),
    radial-gradient(circle at 24% 18%, rgba(63,145,216,.14), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(139,195,74,.16), transparent 28%);
}
.coming-soon__content {
  width: min(980px, 100%);
  text-align: center;
}
.coming-soon__logo {
  width: min(320px, 78vw);
  height: auto;
  margin-bottom: 20px;
}
.coming-soon .lead {
  margin-left: auto;
  margin-right: auto;
}
.coming-soon .cards {
  margin: 28px 0 22px;
  text-align: left;
}
.coming-soon__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.coming-soon__links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.coming-soon__links a:hover { color: var(--accent-blue); }
@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; padding: 0; background: transparent; border: 0; box-shadow: none; align-items: center; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); align-items: center; padding-top: 82px; }
  .app-shell { grid-template-columns: 250px 1fr; }
  .sidebar { min-height: 100vh; position: sticky; top: 0; align-self: start; }
  .main { padding: 34px; }
  .mobile-tabs { display: none; }
}
