:root {
  --bg: #0a0d0d;
  --panel: #101514;
  --card: #131918;
  --text: #f6f7f3;
  --muted: #bec8c0;
  --line: rgba(255, 255, 255, 0.08);
  --green: #28c45c;
  --green-dark: #0f5a28;
  --pill: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

body.light {
  --bg: #f3f6f2;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #18211c;
  --muted: #5f6f67;
  --line: rgba(24, 33, 28, 0.1);
  --green: #20b553;
  --green-dark: #11642e;
  --pill: rgba(24, 33, 28, 0.07);
  --shadow: 0 18px 40px rgba(40, 70, 50, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(40, 196, 92, 0.12), transparent 20%),
    linear-gradient(180deg, #090c0c 0%, var(--bg) 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1530px, calc(100% - 36px));
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
}

.glass {
  background: transparent;
}

body.light .glass {
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: #7bf2a1;
  text-transform: lowercase;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.42);
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar-menu {
  display: contents;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-pill {
  color: var(--text);
  text-decoration: none;
  padding: 13px 16px;
  border-radius: 16px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-pill:hover,
.nav-pill.active {
  background: rgba(40, 196, 92, 0.18);
  color: #79f09f;
  transform: translateY(-1px);
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(180deg, #31d862, var(--green));
  color: #041108;
}

.btn.ghost {
  background: var(--pill);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.danger {
  background: #d64545;
  color: #fff;
}

.btn.pill {
  min-width: 90px;
}

.btn.large {
  padding: 16px 24px;
  font-size: 1rem;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 110px 20px 60px;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62)),
    url("./assets/cover.jpg") center top / cover no-repeat;
  transform: scale(1.04);
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, 0.5), rgba(5, 8, 7, 0.86)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1180px;
  color: #fff;
  animation: floatIn 0.9s ease forwards;
}

.hero-kicker {
  color: #7def9f;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-content h1 {
  margin-top: 18px;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.subtitle {
  margin: 30px auto 0;
  max-width: 1180px;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.location {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-primary {
  min-width: 235px;
}

.hero-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-search {
  margin: 38px auto 0;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 12px;
}

.hero-search input {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 17px 20px;
  background: rgba(23, 23, 23, 0.76);
  color: #fff;
  outline: none;
}

.search-btn {
  border-radius: 22px;
  font-size: 1.05rem;
}

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 16px 70px;
}

.section {
  margin: 22px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(19, 25, 24, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

body.light .section {
  background: rgba(255, 255, 255, 0.95);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.menu-highlight {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 22px;
  align-items: center;
}

.menu-kicker {
  color: #7def9f;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.menu-copy p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.menu-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  min-height: 320px;
}

.menu-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.about .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(160deg, rgba(40, 196, 92, 0.08), transparent),
    rgba(255, 255, 255, 0.02);
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid span {
  background: rgba(40, 196, 92, 0.12);
  color: #8cf3ad;
  border: 1px solid rgba(40, 196, 92, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
}

body.light .pill-grid span {
  color: var(--green-dark);
}

.rules {
  padding-left: 20px;
  color: var(--muted);
}

#adminPanel .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-tools input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.site-footer {
  margin: 34px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(18, 22, 21, 0.96), rgba(12, 15, 14, 0.98));
}

.footer-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 42px 16px 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-main h3 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #fff;
  line-height: 1.05;
}

.footer-brand-block h3 {
  text-transform: lowercase;
}

.footer-brand-block p,
.footer-contact-block p,
.footer-links a {
  color: rgba(229, 236, 231, 0.78);
  font-size: 1rem;
  line-height: 1.8;
  text-decoration: none;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a:hover,
.socials a:hover {
  color: #85f4aa;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.socials a {
  color: #82eda5;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(229, 236, 231, 0.72);
}

.toast-container {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 300;
  display: grid;
  gap: 8px;
}

.toast {
  background: #111827;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  animation: slideIn 0.25s ease;
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  z-index: 500;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 0.6s ease forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .topbar-actions {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 10px;
    width: calc(100% - 14px);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.light .topbar {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .brand {
    min-width: 0;
    width: auto;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.92rem;
  }

  .brand span {
    display: block;
    max-width: 150px;
    line-height: 1.15;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand-mark img {
    width: 28px;
    height: 28px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .topbar-menu {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    gap: 12px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }

  .topbar.menu-open .topbar-menu {
    display: grid;
  }

  .topbar.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .topbar.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .nav-pill {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    text-align: center;
    font-size: 0.92rem;
    white-space: normal;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-content: stretch;
  }

  .topbar-actions > * {
    width: 100%;
    min-width: 0;
  }

  .btn.pill {
    min-width: 0;
  }

  .hero {
    min-height: auto;
    padding: 196px 14px 34px;
    place-items: end center;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-content h1 {
    margin-top: 14px;
    font-size: clamp(2.55rem, 13vw, 4.1rem);
    line-height: 0.98;
  }

  .subtitle {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .location {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .hero-actions > * {
    width: 100%;
  }

  .hero-search {
    margin-top: 18px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-search input,
  .search-btn {
    width: 100%;
    min-height: 50px;
  }

  .menu-highlight {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 16px 24px;
  }
}

@media (max-width: 560px) {
  .topbar {
    width: calc(100% - 10px);
    padding: 10px;
    border-radius: 20px;
  }

  .brand span {
    max-width: 126px;
    font-size: 0.88rem;
  }

  .nav-links,
  .topbar-actions {
    grid-template-columns: 1fr;
  }

  .nav-pill {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 208px 12px 28px;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 14vw, 3.3rem);
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .location {
    font-size: 0.84rem;
  }

  .hero-search input {
    padding: 15px 16px;
    border-radius: 16px;
  }

  main {
    padding: 14px 10px 42px;
  }

  .section {
    padding: 16px 12px;
    border-radius: 20px;
  }

  .section h2 {
    font-size: 1.22rem;
  }

  .menu-image-wrap,
  .menu-image {
    min-height: 190px;
  }

  .card {
    padding: 12px;
  }

  .card img {
    height: 190px;
  }

  .pill-grid {
    gap: 8px;
  }

  .pill-grid span {
    padding: 11px 12px;
    font-size: 0.92rem;
  }

  .footer-main {
    padding: 26px 12px 22px;
  }

  .footer-bottom {
    padding: 12px 10px;
  }
}
