:root {
  --bg: #f6efe5;
  --panel: rgba(255, 255, 255, 0.78);
  --text: #1d2a33;
  --muted: #52606d;
  --accent: #bf5b04;
  --accent-dark: #8f4300;
  --border: rgba(29, 42, 51, 0.1);
  --shadow: 0 24px 80px rgba(40, 31, 20, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 91, 4, 0.22), transparent 26%),
    radial-gradient(circle at bottom right, rgba(20, 94, 87, 0.18), transparent 28%),
    linear-gradient(135deg, #f9f4ed 0%, #f1e2cb 100%);
}

.vespatrol-body {
  background:
    radial-gradient(circle at top left, rgba(255, 196, 0, 0.22), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 122, 0, 0.18), transparent 25%),
    linear-gradient(135deg, #fff6cf 0%, #ffd55a 52%, #ffb000 100%);
}

.mobi-body {
  background:
    radial-gradient(circle at top left, rgba(255, 46, 46, 0.2), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 196, 0, 0.22), transparent 24%),
    linear-gradient(135deg, #fff5d8 0%, #ffd46d 48%, #ff7b00 100%);
}

.layout {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
}

.admin-layout {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
}

.hero,
.card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(2rem, 6vw, 4rem);
}

.hero-vespatrol {
  background:
    linear-gradient(160deg, rgba(34, 27, 14, 0.92), rgba(66, 46, 8, 0.88)),
    var(--panel);
  color: #fff7d4;
}

.hero-mobi {
  background:
    linear-gradient(155deg, rgba(65, 17, 10, 0.95), rgba(146, 39, 13, 0.88)),
    var(--panel);
  color: #fff5df;
}

.hero--compact {
  padding: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
}

.eyebrow-vespatrol {
  color: #ffd24d;
}

.eyebrow-mobi {
  color: #ffd04a;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.intro {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-vespatrol .intro {
  color: rgba(255, 247, 212, 0.82);
}

.hero-mobi .intro {
  color: rgba(255, 245, 223, 0.84);
}

.card {
  padding: 1.5rem;
}

.card-vespatrol {
  border: 1px solid rgba(72, 50, 7, 0.18);
}

.card-mobi {
  border: 1px solid rgba(135, 44, 11, 0.18);
}

.form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(29, 42, 51, 0.16);
  padding: 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
}

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

input[type="file"] {
  min-height: auto;
  padding: 0.85rem 1rem;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  padding: 0.95rem 1.25rem;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.status {
  margin-top: 1rem;
  min-height: 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.status.success {
  color: #136f3a;
}

.status.error {
  color: #9c1d1d;
}

.preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(29, 42, 51, 0.16);
}

.vespatrol-mark {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.mobi-mark {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.wasp-illustration {
  position: relative;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
}

.wing,
.wasp-body,
.wasp-head,
.antenna,
.stinger {
  position: absolute;
  display: block;
}

.wing {
  width: 48px;
  height: 72px;
  top: 22px;
  background: linear-gradient(180deg, rgba(255, 249, 220, 0.88), rgba(255, 220, 120, 0.35));
  border: 2px solid rgba(255, 235, 170, 0.4);
  border-radius: 60% 60% 48% 48%;
}

.wing-left {
  left: 18px;
  transform: rotate(-26deg);
}

.wing-right {
  right: 18px;
  transform: rotate(26deg);
}

.wasp-body {
  width: 44px;
  height: 88px;
  left: 44px;
  top: 24px;
  border-radius: 50% 50% 42% 42%;
  background:
    linear-gradient(
      180deg,
      #2c2212 0%,
      #2c2212 16%,
      #f4a900 16%,
      #f4a900 30%,
      #1f1710 30%,
      #1f1710 45%,
      #ffc533 45%,
      #ffc533 60%,
      #1f1710 60%,
      #1f1710 76%,
      #f9b000 76%,
      #f9b000 100%
    );
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

.wasp-head {
  width: 34px;
  height: 34px;
  left: 49px;
  top: 8px;
  border-radius: 50%;
  background: #1d160d;
}

.antenna {
  width: 3px;
  height: 28px;
  top: -6px;
  background: #1d160d;
  border-radius: 999px;
}

.antenna-left {
  left: 57px;
  transform: rotate(-28deg);
}

.antenna-right {
  right: 57px;
  transform: rotate(28deg);
}

.stinger {
  width: 0;
  height: 0;
  left: 58px;
  bottom: 8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 18px solid #1d160d;
}

.alert-illustration {
  position: relative;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
}

.alert-triangle,
.alert-inner,
.alert-line,
.alert-dot {
  position: absolute;
  display: block;
}

.alert-triangle {
  width: 0;
  height: 0;
  left: 12px;
  top: 6px;
  border-left: 54px solid transparent;
  border-right: 54px solid transparent;
  border-bottom: 98px solid #8f1e0f;
  filter: drop-shadow(0 16px 28px rgba(77, 16, 10, 0.22));
}

.alert-inner {
  width: 0;
  height: 0;
  left: 24px;
  top: 19px;
  border-left: 42px solid transparent;
  border-right: 42px solid transparent;
  border-bottom: 76px solid #ffd247;
}

.alert-line {
  width: 12px;
  height: 34px;
  left: 60px;
  top: 48px;
  border-radius: 999px;
  background: #3b120b;
}

.alert-dot {
  width: 12px;
  height: 12px;
  left: 60px;
  top: 88px;
  border-radius: 50%;
  background: #3b120b;
}

.is-hidden {
  display: none;
}

.admin-summary {
  display: inline-grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(191, 91, 4, 0.08);
}

.admin-toolbar {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-form {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
}

.filter-form select {
  min-width: 180px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.95rem 1.25rem;
  text-decoration: none;
}

.button-link:hover {
  background: var(--accent-dark);
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-value {
  font-size: 1.8rem;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(29, 42, 51, 0.1);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.truncate-cell {
  max-width: 320px;
  word-break: break-word;
}

.admin-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.label-pill {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(191, 91, 4, 0.12);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.map-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 1rem 0 2rem;
  }

  .admin-layout {
    padding: 1rem 0 2rem;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .vespatrol-mark {
    grid-template-columns: 1fr;
  }

  .mobi-mark {
    grid-template-columns: 1fr;
  }

  .wasp-illustration {
    margin: 0 auto;
  }

  .alert-illustration {
    margin: 0 auto;
  }
}
