:root {
  --leaf: #14532d;
  --leaf-deep: #0b3d24;
  --leaf-soft: #1f6b3a;
  --mango: #f4a261;
  --mango-deep: #e76f3c;
  --pulp: #ffe8c2;
  --cream: #fffaf2;
  --ink: #1a2419;
  --muted: #5c6b57;
  --line: rgba(20, 83, 45, 0.14);
  --ok: #1b7f4a;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(11, 61, 36, 0.16);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --header-h: 64px;
  --dock-h: 72px;
  --gutter: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(244, 162, 97, 0.28), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(31, 107, 58, 0.16), transparent 50%),
    linear-gradient(180deg, #fff8ec 0%, var(--cream) 42%, #f3f7f1 100%);
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + var(--safe-bottom));
}

body.app-shell {
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

a {
  color: var(--leaf-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: calc(1rem + var(--safe-top));
  z-index: 80;
  background: white;
  padding: 0.5rem 0.75rem;
}

.shell {
  width: min(1120px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* Sticky app header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  background: rgba(255, 250, 242, 0.88);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffe7b0, var(--mango) 45%, var(--mango-deep));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), 0 8px 20px rgba(231, 111, 60, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 16px;
  background: var(--leaf);
  border-radius: 999px;
  top: -4px;
  right: 10px;
  transform: rotate(18deg);
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 3.4vw, 1.05rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.74rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-desktop {
  display: none;
  gap: 0.85rem;
  align-items: center;
}

.nav-desktop a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  min-height: 48px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

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

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--leaf-soft), var(--leaf-deep));
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 61, 36, 0.28);
}

.btn-accent {
  background: linear-gradient(135deg, var(--mango), var(--mango-deep));
  color: #2a1408;
  box-shadow: 0 12px 28px rgba(231, 111, 60, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Full-bleed mobile hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - var(--header-h) - var(--safe-top) - var(--dock-h));
  display: grid;
  align-items: end;
  padding: 1.25rem 0 1.75rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(160deg, rgba(11, 61, 36, 0.92) 0%, rgba(20, 83, 45, 0.78) 48%, rgba(231, 111, 60, 0.5) 100%),
    radial-gradient(circle at 78% 28%, rgba(255, 214, 140, 0.55), transparent 35%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06'%3E%3Cpath d='M20 120c30-40 50-40 80 0'/%3E%3Cpath d='M40 40c20 20 40 20 60 0'/%3E%3Ccircle cx='120' cy='40' r='18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, cover, 180px;
  border-radius: 22px;
  transform-origin: center;
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { filter: saturate(1); }
  to { filter: saturate(1.12) brightness(1.03); }
}

.hero-content {
  color: #fff;
  width: 100%;
  padding: 1.15rem 1.1rem 1.35rem;
  animation: riseIn 0.9s ease both;
  position: relative;
  z-index: 1;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.15rem, 9.5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: #ffe0a8;
}

.hero p {
  margin: 0 0 1.2rem;
  font-size: clamp(0.98rem, 3.8vw, 1.08rem);
  line-height: 1.5;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: grid;
  gap: 0.65rem;
}

.hero-actions .btn {
  width: 100%;
}

.btn-hero-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.mango-float {
  position: absolute;
  right: -6%;
  top: 10%;
  width: min(210px, 48vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffe7b0 0%, var(--mango) 40%, var(--mango-deep) 78%, #8a3a18 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  z-index: -1;
  opacity: 0.9;
  animation: floatMango 5.5s ease-in-out infinite;
}

.mango-float::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 40px;
  background: linear-gradient(180deg, #2f6b3a, #163f24);
  border-radius: 999px;
  top: 8%;
  right: 28%;
  transform: rotate(24deg);
}

@keyframes floatMango {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.section {
  padding: 2.25rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section .lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.35rem;
  line-height: 1.55;
  font-size: 0.98rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.feature {
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.feature strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.02rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  min-height: 52px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2314532d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 107, 58, 0.35);
  border-color: var(--leaf-soft);
}

.hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.checkboxes {
  display: grid;
  gap: 0.7rem;
}

.check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.check input {
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  accent-color: var(--leaf-soft);
}

.honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.92rem;
}

.alert-error {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f5c2c0;
}

.alert-ok {
  background: #e8f7ef;
  color: var(--ok);
  border: 1px solid #b7e2c8;
}

.ticket-box {
  margin-top: 1rem;
  padding: 1.15rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #123d27, #1f6b3a);
  color: #fff;
  display: none;
}

.ticket-box.show {
  display: block;
  animation: riseIn 0.45s ease both;
}

.ticket-code {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 7vw, 2.4rem);
  letter-spacing: 0.04em;
  margin: 0.35rem 0 0;
  word-break: break-all;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.dot {
  width: 12px;
  height: 12px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--mango);
  box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.25);
}

.timeline strong {
  display: block;
}

.timeline span {
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}

.footer {
  padding: 2rem 0 calc(1.5rem + var(--safe-bottom));
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
}

/* Mobile bottom dock — native app feel */
.mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem;
  padding: 0.45rem 0.4rem calc(0.45rem + var(--safe-bottom));
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(11, 61, 36, 0.08);
}

.mobile-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 52px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-dock a span.icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.mobile-dock a.active,
.mobile-dock a:active {
  color: var(--leaf-deep);
  background: rgba(31, 107, 58, 0.08);
}

.mobile-dock a.cta {
  color: #2a1408;
  background: linear-gradient(135deg, var(--mango), var(--mango-deep));
}

.cf-turnstile,
.cf-turnstile > div {
  max-width: 100% !important;
  overflow: hidden;
}

/* Admin */
.admin-body {
  background: #f4f7f3;
  padding-bottom: 0;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
  padding-bottom: calc(var(--dock-h) + var(--safe-bottom) + 0.5rem);
}

.sidebar {
  display: none;
}

.sidebar h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
}

.sidebar p {
  margin: 0 0 0.85rem;
  opacity: 0.75;
  font-size: 0.82rem;
}

.side-nav {
  display: grid;
  gap: 0.35rem;
}

.side-nav button {
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 0.7rem 0.85rem;
  min-height: 44px;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.side-nav button.active,
.side-nav button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 1.5rem;
}

.sidebar-logout {
  width: 100%;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.admin-main {
  padding: 0.85rem;
  padding-top: calc(0.85rem + var(--safe-top));
  min-width: 0;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(244, 247, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.35rem 0 0.55rem;
}

.admin-top-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.admin-top-actions .btn {
  padding: 0.55rem 0.8rem;
  min-height: 40px;
  font-size: 0.85rem;
}

.admin-cards {
  display: grid;
  gap: 0.7rem;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
}

.admin-card h3 {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}

.admin-card p {
  margin: 0.15rem 0;
  font-size: 0.92rem;
  word-break: break-word;
}

.admin-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.admin-card .btn {
  margin-top: 0.75rem;
  width: 100%;
}

.table-desktop {
  display: none;
}

.mono-break {
  word-break: break-all;
  overflow-wrap: anywhere;
}

.pager {
  justify-content: space-between;
  align-items: center;
}

.pager .btn {
  flex: 1 1 auto;
}

/* Admin bottom dock */
.admin-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.4rem 0.35rem calc(0.4rem + var(--safe-bottom));
  background: rgba(11, 61, 36, 0.96);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-dock button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  min-height: 52px;
  border-radius: 12px;
  cursor: pointer;
}

.admin-dock button .icon {
  font-size: 1rem;
  line-height: 1;
}

.admin-dock button.active,
.admin-dock button:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.more-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.more-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 16, 0.45);
}

.more-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 1rem 1rem calc(1rem + var(--safe-bottom));
  display: grid;
  gap: 0.35rem;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}

.more-sheet-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.more-sheet-panel button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  min-height: 48px;
  padding: 0.75rem 1rem;
  text-align: left;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.more-sheet-panel .more-cancel {
  margin-top: 0.35rem;
  background: #f4f7f3;
  font-weight: 500;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 1.8rem);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.toolbar input,
.toolbar select {
  min-width: 0;
  flex: 1 1 140px;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 640px;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #fafcf9;
  position: sticky;
  top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #eef5ef;
  color: var(--leaf);
}

.badge.warn {
  background: #fff3e0;
  color: #9a5b00;
}

.badge.bad {
  background: #fdecea;
  color: var(--danger);
}

.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-top: calc(1rem + var(--safe-top));
  padding-bottom: calc(1rem + var(--safe-bottom));
}

.login-card {
  width: min(420px, 100%);
}

.hidden {
  display: none !important;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: riseIn 0.35s ease both;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.winner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.winner-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.winner-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

/* Tablet+ */
@media (min-width: 720px) {
  :root {
    --gutter: 1.25rem;
  }

  body {
    padding-bottom: 0;
  }

  .mobile-dock {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .hero {
    min-height: min(82vh, 760px);
    padding: 2rem 0 3rem;
  }

  .hero-bg {
    border-radius: 28px;
  }

  .hero-content {
    width: min(640px, 100%);
    padding: 1.5rem;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
  }

  .mango-float {
    right: 6%;
    bottom: 12%;
    top: auto;
    width: min(280px, 36vw);
    opacity: 1;
  }

  .section {
    padding: 3.25rem 0;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .feature {
    border-top: 1px solid var(--line);
  }

  .panel {
    padding: clamp(1.25rem, 3vw, 2rem);
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .form-actions .btn {
    width: auto;
  }

  .footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: start;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .admin-layout {
    grid-template-columns: 240px 1fr;
    padding-bottom: 0;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--leaf-deep), #0f2f1d);
    color: #fff;
    padding: 1.1rem;
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: auto;
  }

  .admin-dock,
  .more-sheet,
  .admin-logout-mobile,
  .admin-cards {
    display: none !important;
  }

  .table-desktop {
    display: block;
  }

  .admin-main {
    padding: 1.25rem;
    padding-top: 1.25rem;
  }

  .admin-top {
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    margin-bottom: 1rem;
  }

  .admin-top-actions .btn {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
