:root {
  --bg: #f4f0df;
  --paper: #ffffff;
  --ink: #081b14;
  --muted: #657169;
  --gold: #d9aa31;
  --gold-soft: #fff1bd;
  --green: #004b37;
  --green-soft: #e0f4eb;
  --line: #e4dac0;
  --danger: #b42318;
  --navy: #071e2f;
  --shadow: 0 26px 80px rgba(2, 24, 20, 0.14);
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 170, 49, 0.35), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(0, 75, 55, 0.2), transparent 24rem),
    linear-gradient(180deg, #fffdf4, #f4f0df 36rem),
    var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(217, 231, 225, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ffe07a 0 18%, transparent 19%),
    linear-gradient(135deg, var(--green), #022d25);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(11, 122, 75, 0.24);
}

.brand-logo,
.login-logo,
.hero-logo {
  display: block;
  object-fit: cover;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 75, 55, 0.2);
}

.brand-logo {
  width: 48px;
  height: 48px;
}

.login-logo {
  width: 88px;
  height: 88px;
}

.hero-logo {
  width: 132px;
  height: 132px;
  margin-bottom: 1.2rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.muted,
.fine-print {
  color: var(--muted);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-header nav a,
.button,
.ticket-tools button,
.admin-card button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nav-button,
.button.primary {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), #02392d);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 108, 82, 0.22);
}

.button.ghost {
  background: #fff;
}

.button.compact-button,
.compact-button {
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
}

.danger-button {
  border-color: #ffd7d3;
  background: #fff0ee;
  color: var(--danger);
  font-weight: 900;
}

.button.full {
  width: 100%;
}

.button.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-big {
  min-height: 54px;
  padding-inline: 1.4rem;
  font-size: 1rem;
}

main {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.home-page .site-header {
  position: static;
}

.catalog-header {
  min-height: 88px;
  padding-inline: clamp(1rem, 8vw, 7rem);
}

.home-shell {
  min-height: calc(100vh - 81px);
  display: grid;
  align-items: center;
}

.catalog-shell {
  width: min(1500px, calc(100% - 2rem));
  padding-top: 2rem;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.05fr);
  gap: 0.8rem;
  align-items: stretch;
}

.catalog-prize-photo,
.catalog-feature,
.catalog-raffle-card {
  border: 1px solid rgba(228, 218, 192, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 70px rgba(2, 24, 20, 0.1);
}

.catalog-prize-photo {
  overflow: hidden;
}

.catalog-prize-photo img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  object-fit: cover;
}

.catalog-feature {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.feature-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.date-chip {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  text-align: right;
}

.date-chip strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.catalog-feature h1 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.feature-price {
  margin-bottom: 0.2rem;
  color: #314036;
  font-size: 1.2rem;
  font-weight: 900;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.feature-stats span {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border-radius: 20px;
  background: #f3fbf7;
  color: var(--muted);
  font-weight: 800;
}

.feature-stats strong {
  color: var(--green);
  font-size: 1.35rem;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin: 2rem 0 0.8rem;
}

.section-heading-row h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-heading-row span {
  color: var(--muted);
}

.raffle-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-raffle-card {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.8rem;
}

.catalog-raffle-card img {
  width: 100%;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
}

.catalog-raffle-card h3 {
  margin: 0.2rem 0 0.45rem;
}

.catalog-raffle-card p,
.catalog-raffle-card small {
  color: var(--muted);
}

.catalog-raffle-card strong,
.catalog-raffle-card small {
  display: block;
  margin-bottom: 0.55rem;
}

.catalog-footer {
  width: min(1500px, calc(100% - 2rem));
  margin: 2rem auto;
  color: var(--muted);
}

.modal-open {
  overflow: hidden;
}

.raffle-modal[hidden] {
  display: none;
}

.raffle-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.raffle-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 14, 0.58);
  backdrop-filter: blur(10px);
}

.raffle-modal-card {
  position: relative;
  width: min(1180px, 96vw);
  height: min(820px, 92vh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.24);
}

.raffle-modal-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  min-height: 38px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-weight: 900;
  cursor: pointer;
}

.mobile-reserve-bar {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.hero-minimal {
  align-items: center;
}

.hero-copy,
.prize-card,
.info-card,
.ticket-panel,
.checkout-card,
.how-card,
.admin-card,
.admin-top {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.notice-card strong {
  color: var(--green);
}

.danger-notice {
  border-color: #ffd7d3;
  background: #fff8f6;
}

.danger-notice strong {
  color: var(--danger);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 5vw, 4rem);
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(255, 197, 39, 0.22);
  pointer-events: none;
}

.eyebrow,
.section-title span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 0.55rem;
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.62rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.social-button:hover,
.button:hover,
.admin-route-card:hover {
  transform: translateY(-1px);
}

.social-button span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.social-button.facebook span {
  background: #1877f2;
}

.social-button.instagram span {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 48%, #6228d7);
}

.social-button.tiktok span {
  background: #101820;
}

.social-button.whatsapp span {
  background: #25d366;
}

.prize-card {
  display: grid;
  padding: 0.8rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 170, 49, 0.38), transparent 16rem),
    linear-gradient(145deg, #051f17, #004b37);
  color: #fff;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.truck-photo {
  width: 100%;
  height: 330px;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.photo-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(217, 170, 49, 0.96);
  color: #342400;
  font-weight: 900;
}

.prize-image {
  min-height: 330px;
  display: grid;
  align-items: end;
  padding: 1.2rem;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(23, 32, 25, 0.14), rgba(23, 32, 25, 0.02)),
    linear-gradient(135deg, #f8c32c, #f8e29c 45%, #fff7db);
}

.prize-image span {
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--green);
  font-weight: 900;
}

.prize-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.55rem 0.3rem;
}

.prize-meta small {
  color: rgba(255, 255, 255, 0.72);
}

.prize-meta strong,
.prize-meta small {
  display: block;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.stats-strip article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.stats-strip span,
.stats-strip strong {
  display: block;
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.stats-strip strong {
  margin-top: 0.25rem;
  color: var(--green);
  font-size: 1.7rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.page-title-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(217, 170, 49, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.page-title-card h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 5vw, 4rem);
}

.page-title-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-title-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 75, 55, 0.18);
}

.info-card {
  padding: 1.1rem;
}

.card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  border-radius: 14px;
  background: var(--gold-soft);
  color: #9b6500;
  font-weight: 900;
}

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
}

.tickets-embed main {
  width: min(100% - 1rem, 1120px);
  padding: 1rem 0 2rem;
}

.tickets-embed .page-title-card {
  padding: 1rem;
}

.tickets-embed .page-title-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.ticket-panel,
.checkout-card,
.how-card {
  padding: 1rem;
}

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

.ticket-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto) auto;
  gap: 0.7rem;
  margin: 1rem 0;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

select {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 0.45rem;
}

.ticket {
  min-height: 48px;
  border: 1px solid #eadfc9;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.ticket.selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.ticket.reserved {
  background: #edf1ef;
  color: #98a49f;
  cursor: not-allowed;
}

.ticket.closed {
  background: #fbf8f0;
  color: #b7a778;
  cursor: not-allowed;
}

.checkout-card {
  position: sticky;
  top: 5.4rem;
  display: grid;
  gap: 0.85rem;
}

.checkout-card label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.selected-list {
  display: flex;
  min-height: 58px;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.selected-list p {
  margin: 0;
  color: var(--muted);
}

.selected-list span {
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: var(--gold-soft);
  color: #684600;
}

.how-card {
  margin-top: 1rem;
}

.how-card ol {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.25rem;
}

.admin-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.admin-sidebar {
  min-height: 100vh;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #edf8f3);
}

.admin-sidebar nav {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.admin-sidebar nav a {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: var(--green-soft);
  color: var(--green);
}

.admin-main {
  width: min(1180px, 100%);
  padding: 1.2rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
}

.admin-top h1 {
  margin-bottom: 0.3rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.admin-card label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.upload-box {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: #fff;
}

.upload-box span,
.admin-list span {
  color: var(--muted);
}

.admin-list {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.admin-list strong,
.admin-list span {
  display: block;
}

.admin-route-card {
  display: grid;
  gap: 0.35rem;
  min-height: 150px;
  align-content: end;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(255, 197, 39, 0.2), transparent 55%),
    #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.admin-route-card span,
.admin-route-card small {
  color: var(--muted);
}

.admin-route-card span {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
}

.admin-route-card strong {
  color: var(--green);
  font-size: 1.55rem;
}

.raffle-admin-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.raffle-admin-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 20px;
}

.raffle-admin-card h2 {
  margin-bottom: 0.35rem;
}

.raffle-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.raffle-admin-actions form {
  margin: 0;
}

.featured-button {
  border-color: #f3d176;
  background: #fff8df;
  color: #7a5200;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.success {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.danger {
  background: #fff0ee;
  color: var(--danger);
}

.raffles-list {
  display: grid;
  gap: 1rem;
}

.raffle-create-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.raffle-create-form .button {
  min-height: 44px;
}

.danger-zone {
  border-color: #ffd7d3;
}

.danger-zone button {
  border-color: #ffd7d3;
  color: var(--danger);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.2rem, 5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 8vw, 3rem);
}

.login-card label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 900;
}

.login-error {
  padding: 0.8rem 0.9rem;
  border: 1px solid #ffd7d3;
  border-radius: 16px;
  background: #fff0ee;
  color: var(--danger);
  font-weight: 900;
}

.admin-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 1rem;
  align-items: center;
}

.admin-card-head h2,
.admin-card-head p {
  margin-bottom: 0.25rem;
}

.admin-wide {
  margin-bottom: 1rem;
}

.reservation-table {
  display: grid;
  gap: 0.6rem;
}

.reservation-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.2fr) minmax(130px, 1fr) minmax(190px, auto) minmax(94px, auto);
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.social-admin-card {
  align-content: start;
}

.social-preview-card {
  align-content: start;
}

.settings-form {
  display: grid;
  gap: 0.8rem;
}

.reservation-row strong,
.reservation-row small {
  display: block;
}

.reservation-row small {
  margin-top: 0.15rem;
  color: var(--muted);
}

.status-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.reservation-actions,
.reservation-actions form {
  display: grid;
  gap: 0.4rem;
}

.admin-preview {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
}

#reserveMessage[data-type="success"] {
  color: var(--green);
  font-weight: 900;
}

#reserveMessage[data-type="error"] {
  color: var(--danger);
  font-weight: 900;
}

@media (max-width: 820px) {
  .site-header,
  .admin-top,
  .prize-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section-grid,
  .catalog-hero,
  .raffle-catalog-grid,
  .ticket-layout,
  .admin-body,
  .admin-card-head,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-sidebar nav {
    display: flex;
    overflow: auto;
  }

  .checkout-card {
    position: static;
  }

  .catalog-shell {
    width: min(100% - 1rem, 760px);
    padding-top: 0.8rem;
  }

  .catalog-prize-photo img {
    min-height: 230px;
  }

  .feature-topline,
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .date-chip {
    text-align: left;
  }

  .feature-stats {
    grid-template-columns: 1fr;
  }

  .catalog-raffle-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .catalog-raffle-card img {
    height: 120px;
  }

  .raffle-modal {
    padding: 0.45rem;
  }

  .raffle-modal-card {
    width: 100%;
    height: 96vh;
    border-radius: 22px;
  }

  .reservation-row,
  .status-form,
  .raffle-admin-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main,
  .admin-main {
    width: min(100% - 1rem, 1180px);
    padding-top: 0.75rem;
  }

  .site-header nav {
    width: 100%;
    overflow: auto;
    padding-bottom: 0.2rem;
  }

  .hero-copy,
  .ticket-panel,
  .checkout-card,
  .how-card,
  .admin-card,
  .admin-top {
    border-radius: 22px;
  }

  .stats-strip,
  .ticket-tools {
    grid-template-columns: 1fr;
  }

  .ticket-grid {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  }

  .truck-photo {
    height: 240px;
  }

  .site-header {
    position: static;
  }

  .hero-logo {
    width: 98px;
    height: 98px;
  }

  .page-title-card {
    grid-template-columns: 1fr;
  }

  .page-title-card img {
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at 20% 0%, rgba(217, 170, 49, 0.28), transparent 16rem),
      linear-gradient(180deg, #fffdf4, #f4f0df 32rem);
  }

  .site-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0.75rem;
  }

  .brand {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .site-header nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    overflow: visible;
  }

  .site-header nav a,
  .button,
  .ticket-tools button,
  .admin-card button {
    min-height: 42px;
    padding: 0.65rem 0.55rem;
    font-size: 0.82rem;
    text-align: center;
  }

  main,
  .admin-main {
    width: min(100% - 0.8rem, 1240px);
    padding: 0.7rem 0 6.5rem;
  }

  .home-shell {
    min-height: auto;
    align-items: start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-copy,
  .prize-card,
  .info-card,
  .ticket-panel,
  .checkout-card,
  .how-card,
  .admin-card,
  .admin-top,
  .page-title-card {
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(2, 24, 20, 0.1);
  }

  .hero-copy {
    padding: 1.05rem;
  }

  .hero-logo {
    width: 78px;
    height: 78px;
    margin-bottom: 0.75rem;
  }

  h1,
  .admin-top h1,
  .page-title-card h1 {
    font-size: clamp(1.85rem, 11vw, 2.8rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
  }

  h2 {
    font-size: 1.18rem;
  }

  .hero-copy p,
  .page-title-card p,
  .section-title p,
  .admin-top p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .hero-actions,
  .raffle-admin-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-big {
    min-height: 50px;
    font-size: 0.95rem;
  }

  .social-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .social-button {
    justify-content: center;
    min-width: 0;
    padding: 0.55rem 0.45rem;
    font-size: 0.78rem;
  }

  .social-button span {
    width: 22px;
    height: 22px;
    font-size: 0.62rem;
  }

  .truck-photo {
    height: 220px;
  }

  .prize-meta {
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem 0.45rem 0.25rem;
  }

  .page-title-card {
    grid-template-columns: 1fr auto;
    padding: 1rem;
  }

  .page-title-card img {
    width: 62px;
    height: 62px;
  }

  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .stats-strip article {
    padding: 0.75rem 0.55rem;
    border-radius: 16px;
  }

  .stats-strip span {
    font-size: 0.7rem;
  }

  .stats-strip strong {
    font-size: 1.25rem;
  }

  .ticket-layout,
  .section-grid,
  .catalog-hero,
  .raffle-catalog-grid,
  .admin-grid,
  .admin-card-head,
  .raffle-admin-card,
  .raffle-create-form {
    grid-template-columns: 1fr;
  }

  .ticket-panel,
  .checkout-card,
  .admin-card {
    padding: 0.85rem;
  }

  .ticket-tools {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  input,
  select {
    min-height: 42px;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .ticket-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.36rem;
  }

  .ticket {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  .checkout-card {
    position: static;
    scroll-margin-top: 1rem;
  }

  .mobile-reserve-bar {
    position: fixed;
    left: 0.7rem;
    right: 0.7rem;
    bottom: calc(0.7rem + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 64px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(217, 170, 49, 0.55);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--green), #022d25);
    color: #fff;
    box-shadow: 0 18px 48px rgba(0, 75, 55, 0.34);
  }

  .mobile-reserve-bar span,
  .mobile-reserve-bar strong,
  .mobile-reserve-bar small {
    display: block;
    text-align: left;
  }

  .mobile-reserve-bar small {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
  }

  .mobile-reserve-bar b {
    flex: 0 0 auto;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    background: var(--gold);
    color: #1f1700;
    font-size: 0.82rem;
  }

  .mobile-reserve-bar:disabled {
    opacity: 0.55;
  }

  .catalog-header {
    min-height: 72px;
  }

  .catalog-feature {
    padding: 1rem;
  }

  .catalog-feature h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .catalog-raffle-card {
    grid-template-columns: 1fr;
  }

  .catalog-raffle-card img {
    height: 180px;
  }

  .tickets-embed main {
    width: min(100% - 0.6rem, 760px);
    padding-top: 0.45rem;
  }

  .selected-list {
    min-height: 50px;
    padding: 0.55rem;
  }

  .admin-body {
    display: block;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: auto;
    padding: 0.65rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
  }

  .admin-sidebar .brand {
    margin-bottom: 0.55rem;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 0.45rem;
    margin-top: 0;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .admin-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar nav a {
    flex: 0 0 auto;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .admin-sidebar nav a.active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
  }

  .admin-top {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
  }

  .admin-top .button {
    width: 100%;
  }

  .admin-route-card {
    min-height: 118px;
    padding: 0.95rem;
    border-radius: 20px;
  }

  .admin-route-card strong {
    font-size: 1.22rem;
  }

  .raffle-admin-card {
    padding: 0.75rem;
  }

  .raffle-admin-card img {
    height: 170px;
  }

  .reservation-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.8rem;
    border-radius: 18px;
  }

  .reservation-row > div:first-child strong {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    color: var(--green);
    font-size: 1.08rem;
  }

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

  .status-form button {
    width: 100%;
  }

  .login-card {
    border-radius: 24px;
    padding: 1rem;
  }

  .login-logo {
    width: 74px;
    height: 74px;
  }
}

@media (max-width: 380px) {
  .site-header nav {
    grid-template-columns: 1fr;
  }

  .page-title-card {
    grid-template-columns: 1fr;
  }

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

  .stats-strip {
    grid-template-columns: 1fr;
  }
}
