:root {
  --green: #055137;
  --green-deep: #033d29;
  --green-soft: #0a6b4a;
  --green-mid: #62c584;
  --orange: #d0600e;
  --orange-soft: #ff8562;
  --orange-glow: rgba(208, 96, 14, 0.35);
  --white: #ffffff;
  --black: #0a0f0c;
  --muted: rgba(255, 255, 255, 0.78);
  --muted-dark: rgba(10, 15, 12, 0.62);
  --line: rgba(208, 96, 14, 0.4);
  --card: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-pill: 999px;
  --max: 1120px;
  --font: "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 18px 50px rgba(3, 40, 28, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  font-weight: 400;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.88; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(208, 96, 14, 0.28); }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 81, 55, 0.94);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
}
.logo::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  margin-bottom: 1px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  vertical-align: middle;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
  position: relative;
}
.nav a.active,
.nav a:hover {
  opacity: 1;
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  padding: 0.7rem 1.05rem;
  border-radius: var(--radius-pill);
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:hover { opacity: 0.94; transform: translateY(-1px); }
.btn-white {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.btn-orange {
  background: linear-gradient(180deg, #e06c18, var(--orange));
  color: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 24px var(--orange-glow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
  border-radius: 8px;
}
.btn-lg { font-size: 14px; padding: 0.9rem 1.3rem; }
.tg-link {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 12px;
  font-weight: 700;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 12px;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(208,96,14,0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(98,197,132,0.18), transparent 50%),
    linear-gradient(165deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--white);
  padding: 4.8rem 0 3.8rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 90%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-glow);
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 38rem;
  color: var(--muted);
}
.hero .lead strong { color: var(--white); font-weight: 400; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

/* Cards / forms */
.card {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card h2, .card h3 { margin-top: 0; }
.form-stack { display: grid; gap: 0.8rem; }
label { display: grid; gap: 0.35rem; font-size: 12px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="url"], input[type="date"],
input[type="datetime-local"], select, textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  background: var(--white);
  color: var(--black);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(208,96,14,0.55);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
textarea { min-height: 120px; resize: vertical; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.checkbox input { margin-top: 0.2rem; }
.form-note { font-size: 12px; color: var(--muted); }
.alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 13px;
  font-weight: 600;
}
.alert-ok { background: rgba(98,197,132,0.18); color: #d9ffe6; border: 1px solid rgba(98,197,132,0.4); }
.alert-err { background: rgba(208,96,14,0.15); color: #ffe0cc; border: 1px solid rgba(208,96,14,0.4); }
.alert-dark-ok { background: #eaf8ef; color: var(--green); border: 1px solid #bfe8cd; }
.alert-dark-err { background: #fff1e8; color: #8a3d00; border: 1px solid #ffd2b0; }

/* Marquee */
.marquee {
  background: var(--green-deep);
  color: var(--green-mid);
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: inline-block;
  padding: 0.75rem 0;
  animation: scroll 28s linear infinite;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 4.2rem 0; }
.section-green {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(208,96,14,0.12), transparent 50%),
    var(--green);
  color: var(--white);
}
.section-white {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(5,81,55,0.05), transparent 55%),
    var(--white);
  color: var(--black);
}
.section-head { margin-bottom: 1.85rem; max-width: 46rem; }
.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-dark);
}
.section-green .section-head p { color: var(--muted); }

/* Events */
.event-list { display: grid; gap: 0; }
.event-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.1rem;
  padding: 1.2rem 0.25rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .15s ease, transform .15s ease;
  border-radius: 10px;
}
.event-card:first-child { border-top: 1px solid var(--line); }
.event-card:hover {
  background: rgba(5,81,55,0.035);
  transform: translateX(2px);
  opacity: 1;
}
.event-thumb {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), transparent),
    linear-gradient(145deg, #0a6b4a, #033d29);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 0.4rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(5,81,55,0.08);
  color: var(--green);
}
.badge-orange { background: rgba(208,96,14,0.12); color: var(--orange); }
.badge-liga { background: rgba(5,81,55,0.92); color: white; }
.section-green .badge { background: rgba(255,255,255,0.12); color: white; }
.section-green .badge-orange { background: rgba(208,96,14,0.28); color: #ffd7b8; }
.event-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 600;
}
.event-card p {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--muted-dark);
  max-width: 52rem;
}
.empty {
  padding: 1.4rem 0;
  color: var(--muted-dark);
  font-weight: 300;
}

/* FAQ */
.faq-list { display: grid; gap: 0.85rem; }
.faq-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 0.15rem 1.1rem;
  transition: border-color .15s ease, background .15s ease;
}
.faq-item[open] {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,133,98,0.35);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--orange-soft);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-body {
  padding: 0 0 1.05rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
}
.faq-body ul, .faq-body ol { padding-left: 1.2rem; }
.faq-body li { margin: 0.3rem 0; }

/* Grids / features */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.feature {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform .15s ease, border-color .15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(255,133,98,0.35);
}
.section-white .feature {
  border-color: rgba(5,81,55,0.1);
  background: linear-gradient(180deg, #f8fbf9, #f3f7f4);
  box-shadow: 0 10px 30px rgba(5,81,55,0.05);
}
.section-white .feature:hover { border-color: rgba(208,96,14,0.35); }
.feature h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.feature p { margin: 0; font-weight: 300; color: var(--muted-dark); font-size: 0.92rem; }
.section-green .feature p { color: var(--muted); }
.stat {
  text-align: left;
  padding: 1.3rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.stat .num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--orange-soft);
  line-height: 1;
  margin-bottom: 0.45rem;
  letter-spacing: -0.03em;
}
.stat .lbl { font-size: 0.9rem; font-weight: 300; color: var(--muted); }

/* Page hero */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(208,96,14,0.18), transparent 50%),
    linear-gradient(165deg, var(--green), var(--green-deep));
  color: white;
  padding: 3.2rem 0 2.6rem;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-hero p {
  margin: 0;
  max-width: 44rem;
  font-weight: 300;
  color: var(--muted);
  font-size: 1.05rem;
}
.crumbs {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  margin-bottom: 0.8rem;
}
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* Prose */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.4rem; margin: 1.75rem 0 0.6rem; }
.prose h3 { font-size: 1.05rem; margin: 1.25rem 0 0.45rem; }
.prose p, .prose li { font-weight: 300; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose code {
  background: rgba(5,81,55,0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Liga subnav */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
}
.subnav a {
  font-size: 12px;
  font-weight: 600;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background .15s ease, color .15s ease;
}
.subnav a.active, .subnav a:hover {
  background: var(--white);
  color: var(--black);
  opacity: 1;
}

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: white;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  font-size: 12px;
  font-weight: 600;
}
.footer-meta { font-size: 12px; opacity: 0.7; margin-top: 0.25rem; }

/* Admin */
.admin-shell { min-height: 100vh; background: #f2f6f3; }
.admin-top {
  background: var(--green);
  color: white;
  padding: 0.95rem 0;
}
.admin-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-nav { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.admin-body { padding: 1.5rem 0 3rem; }
.admin-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(5,81,55,0.04);
}
.admin-card h1, .admin-card h2, .admin-card h3 { margin-top: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 0.75rem 0.5rem; border-bottom: 1px solid #e8eee9; vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #567; }
.row-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.field-grid .full { grid-column: 1 / -1; }
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(208,96,14,0.2), transparent 50%),
    var(--green);
  padding: 1rem;
}
.login-card {
  width: min(420px, 100%);
  background: white;
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.login-card h1 { margin-top: 0; font-size: 1.4rem; }
.muted { color: var(--muted-dark); font-weight: 300; font-size: 0.92rem; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.kpi {
  background: white;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(5,81,55,0.04);
}
.kpi .n { font-size: 1.6rem; font-weight: 700; color: var(--green); }
.kpi .t { font-size: 12px; color: #567; font-weight: 600; }

/* Event detail sticky aside on white */
.event-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .field-grid, .kpi-grid, .event-layout { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav, .header-actions { display: none; }
  .header-inner.is-open .nav,
  .header-inner.is-open .header-actions {
    display: flex;
    width: 100%;
  }
  .header-inner { flex-wrap: wrap; }
  .header-inner.is-open { padding-bottom: 0.85rem; }
  .event-card { grid-template-columns: 68px 1fr; }
  .event-thumb { width: 68px; height: 68px; }
  .nav a.active::after { display: none; }
}
