:root {
  --yellow: #ffd51f;
  --gold: #f6a313;
  --pink: #c1007a;
  --magenta: #8a005d;
  --red: #e72524;
  --ink: #191316;
  --paper: #fffaf0;
  --soft: #fff1cf;
  --line: rgba(25, 19, 22, 0.14);
  --shadow: 0 22px 60px rgba(79, 19, 39, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select {
  min-height: 44px;
}

[hidden] {
  display: none !important;
}

.client-auth-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(231, 37, 36, 0.9), rgba(138, 0, 93, 0.86)),
    url("assets/joven_van1.png") left bottom / min(56vw, 720px) auto no-repeat,
    var(--paper);
}

.client-auth-card {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  padding: clamp(18px, 4vw, 38px);
  color: #fff;
}

.client-auth-logo {
  width: clamp(140px, 18vw, 230px);
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.client-auth-copy h1 {
  max-width: 700px;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.92;
  text-shadow: 5px 5px 0 rgba(25, 19, 22, 0.34);
}

.client-auth-copy p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.35;
}

.client-auth-copy .eyebrow,
.client-auth-copy .campaign-banner {
  color: var(--yellow);
}

.client-auth-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(25, 19, 22, 0.28);
}

.client-auth-language {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-tab {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-weight: 950;
  cursor: pointer;
}

.auth-tab.active {
  color: #fff;
  background: var(--ink);
}

.client-entry-form {
  display: grid;
  gap: 12px;
}

.client-entry-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.client-entry-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-weight: 900;
}

.auth-error.is-success {
  color: #14783e;
}

.auth-text-button {
  min-height: 36px;
  padding: 4px;
  color: var(--magenta);
  background: transparent;
  border: 0;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.recovery-copy h2,
.recovery-copy p {
  margin: 0;
}

.recovery-copy {
  display: grid;
  gap: 6px;
}

.auth-demo-note {
  margin: 0;
  color: rgba(25, 19, 22, 0.64);
  font-size: 0.88rem;
  font-weight: 800;
}

.password-reset-page {
  min-height: 100svh;
  background: var(--yellow);
}

.password-reset-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(110deg, rgba(255, 213, 31, 0.96), rgba(255, 250, 240, 0.88)),
    url("/assets/mascot-rower-transparent.png") right bottom / min(52vw, 680px) auto no-repeat;
}

.password-reset-card {
  width: min(460px, 100%);
  margin-right: min(38vw, 420px);
  padding: clamp(22px, 5vw, 36px);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--magenta);
}

.password-reset-brand {
  display: inline-block;
  min-height: 0;
  margin-bottom: 18px;
}

.password-reset-brand img {
  display: block;
  width: 170px;
  max-width: 58vw;
}

.password-reset-card h1 {
  margin: 4px 0 10px;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1;
}

.password-reset-card > div > p:not(.eyebrow, .auth-error) {
  margin: 0 0 20px;
  line-height: 1.5;
}

.password-reset-form {
  margin-top: 20px;
}

.reset-state {
  text-align: center;
}

.reset-loader {
  width: 42px;
  height: 42px;
  display: inline-block;
  border: 5px solid var(--soft);
  border-top-color: var(--magenta);
  border-radius: 50%;
  animation: reset-spin 0.8s linear infinite;
}

.reset-alert-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  font-size: 1.7rem;
  font-weight: 950;
}

.reset-link-button {
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
}

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

@media (max-width: 760px) {
  .password-reset-screen {
    align-items: start;
    padding-top: 28px;
    background:
      linear-gradient(rgba(255, 213, 31, 0.92), rgba(255, 250, 240, 0.94)),
      url("/assets/mascot-rower-transparent.png") center bottom / min(96vw, 560px) auto no-repeat;
  }

  .password-reset-card {
    margin-right: 0;
    margin-bottom: min(68vw, 360px);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  width: clamp(122px, 16vw, 190px);
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.nav a,
.secondary-btn,
.cart-trigger,
select,
.icon-btn {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 800;
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

select {
  padding: 0 12px;
  font-weight: 800;
}

.cart-trigger {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
}

.cart-trigger strong {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--pink);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: center;
  min-height: calc(100svh - 78px);
  padding: clamp(28px, 5vw, 70px) clamp(16px, 5vw, 70px) 34px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255, 213, 31, 0.92), rgba(255, 250, 240, 0.7) 52%, rgba(193, 0, 122, 0.12)),
    radial-gradient(circle at 12% 95%, rgba(231, 37, 36, 0.18), transparent 26%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 5px 5px 0 #fff, 8px 8px 0 rgba(138, 0, 93, 0.24);
}

.hero-text {
  max-width: 640px;
  margin: 24px 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 750;
  line-height: 1.35;
}

.hero-actions,
.panel-title,
.cart-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.primary-btn {
  color: #fff;
  background: var(--pink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.secondary-btn {
  border: 2px solid var(--ink);
}

.wide {
  width: 100%;
}

.campaign-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin-top: 22px;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--gold);
  font-weight: 850;
}

.campaign-banner strong {
  font-size: 2rem;
  color: var(--red);
}

.customer-qr-hero-card {
  display: inline-grid;
  gap: 8px;
  width: fit-content;
  max-width: min(360px, 100%);
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--gold);
}

.customer-qr-hero-card span {
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  gap: 18px;
  align-items: center;
  justify-items: center;
}

.rower {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 28px 24px rgba(25, 19, 22, 0.18));
}

.home-hero__title {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: var(--ink);
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.78);
}

.quick-panel,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px clamp(16px, 5vw, 70px);
}

.quick-panel > div,
.quick-panel > article,
.admin-panel,
.menu-card,
.phase-card,
.cart-drawer,
.dialog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mini-action {
  align-self: start;
  margin-top: 8px;
  padding: 8px 10px;
  color: #fff;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.qr-dialog,
.counter-dialog {
  width: min(92vw, 560px);
  padding: 0;
  background: transparent;
  border: 0;
}

.qr-dialog::backdrop,
.counter-dialog::backdrop {
  background: rgba(10, 6, 9, 0.62);
  backdrop-filter: blur(4px);
}

.qr-card,
.counter-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 30px);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 213, 31, 0.2), transparent 45%),
    var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink);
}

.qr-card h2,
.counter-form h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  line-height: 1.05;
}

.close-dialog {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  font-weight: 950;
  cursor: pointer;
}

.qr-canvas-box {
  display: grid;
  width: min(100%, 310px);
  margin: 0 auto;
  padding: 14px;
  place-items: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--gold);
}

.qr-canvas-box canvas {
  display: block;
  width: min(260px, 100%);
  height: auto;
  image-rendering: pixelated;
}

.qr-customer-name,
.qr-short-code {
  margin: 0;
  text-align: center;
}

.qr-short-code {
  display: inline-flex;
  justify-content: center;
  justify-self: center;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.counter-form input,
.counter-form textarea,
.counter-form select {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 750;
}

.counter-lookup {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.qr-scanner {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  background: #130d10;
  border: 2px solid var(--ink);
  border-radius: 16px;
}

.qr-scanner video {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.qr-scanner-guide {
  position: absolute;
  inset: 20%;
  border: 3px solid var(--yellow);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
}

.counter-customer-card,
.counter-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #fff7df;
  border: 1px solid rgba(25, 19, 22, 0.18);
  border-radius: 12px;
}

.counter-summary {
  background: #171113;
  color: #fff;
  font-weight: 900;
}

.counter-transaction.reversed {
  opacity: 0.58;
  filter: grayscale(0.8);
}

.hidden {
  display: none !important;
}

.quick-panel > div,
.quick-panel > article {
  padding: 16px;
}

.quick-panel span,
.totals span {
  display: block;
  color: rgba(25, 19, 22, 0.62);
  font-size: 0.8rem;
  font-weight: 850;
}

.quick-panel strong {
  display: block;
  margin-top: 5px;
}

.notice-board-card {
  min-width: 0;
}

.notice-board-content {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.notice-board-content img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.notice-board-content p {
  margin: 0;
  color: rgba(25, 19, 22, 0.72);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.notice-board-empty {
  color: rgba(25, 19, 22, 0.52);
}

.section-head {
  padding: 52px clamp(16px, 5vw, 70px) 18px;
}

.section-head h2,
.loyalty-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(16px, 5vw, 70px) 42px;
}

.menu-card {
  overflow: hidden;
  border: 2px solid var(--ink);
}

.catering-card.special-event-banner {
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--pink);
}

.special-event-banner__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.special-event-banner__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.special-event-banner__action {
  display: flex;
  justify-content: flex-start;
  padding: 16px;
  background: #fff;
}

.catering-card.special-event-banner .primary-btn {
  align-self: auto;
}

.menu-card.unavailable {
  opacity: 0.58;
  filter: grayscale(0.35);
}

.menu-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.menu-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.menu-body h3 {
  margin: 0;
  font-size: 1.18rem;
}

.menu-body p {
  min-height: 44px;
  margin: 0;
  color: rgba(25, 19, 22, 0.68);
  font-weight: 650;
  line-height: 1.35;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.price-row strong {
  font-size: 1.4rem;
}

.loyalty-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 24px;
  align-items: center;
  margin: 18px clamp(16px, 5vw, 70px) 0;
  padding: clamp(20px, 4vw, 40px);
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.loyalty-copy p {
  max-width: 620px;
  font-weight: 750;
}

.points-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 10px;
  margin: 18px 0;
}

.points-summary div {
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.points-summary .level-points-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.current-level-badge {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 999px;
  filter: drop-shadow(0 7px 8px rgba(25, 19, 22, 0.22));
}

.points-summary span {
  display: block;
  color: rgba(25, 19, 22, 0.62);
  font-size: 0.75rem;
  font-weight: 900;
}

.points-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.65rem;
  line-height: 1;
}

.journey-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.journey-stats div {
  padding: 11px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.journey-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 900;
}

.journey-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.progress-shell {
  width: min(560px, 100%);
  height: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

#loyaltyProgress {
  width: 0;
  height: 100%;
  background: var(--yellow);
}

.loyalty-path,
.loyalty-river-map {
  --river-progress: 0%;
  --river-target: 20%;
  --level-count: 6;
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--level-count), minmax(132px, 1fr));
  gap: 14px;
  align-self: stretch;
  min-height: 190px;
  padding: 28px 18px 8px;
  overflow: visible;
}

.loyalty-path::before {
  display: none;
}

.loyalty-river-track,
.journey-progress-river {
  position: absolute;
  top: 68px;
  right: 66px;
  left: 66px;
  z-index: 0;
  height: 42px;
  overflow: visible;
  background:
    radial-gradient(circle at 10% 44%, rgba(255, 255, 255, 0.92) 0 3px, transparent 4px),
    radial-gradient(circle at 31% 58%, rgba(255, 255, 255, 0.68) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 34%, rgba(255, 255, 255, 0.74) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 54%, rgba(255, 255, 255, 0.62) 0 2px, transparent 3px),
    repeating-linear-gradient(76deg, rgba(255,255,255,0.24) 0 8px, transparent 8px 18px),
    linear-gradient(90deg, #38d7e8, #0d87b5 52%, #42d6c7);
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px 56% 999px 64%;
  box-shadow:
    inset 0 0 0 2px rgba(0, 61, 96, 0.12),
    0 12px 26px rgba(0, 117, 156, 0.22),
    0 0 0 5px rgba(255, 213, 31, 0.12);
}

.loyalty-river-track::before,
.loyalty-river-track::after,
.journey-progress-river::before,
.journey-progress-river::after {
  content: "";
  position: absolute;
  inset: 8px 8px;
  border-radius: inherit;
  pointer-events: none;
}

.loyalty-river-track::before,
.journey-progress-river::before {
  background:
    radial-gradient(circle at 12% 46%, rgba(255,255,255,0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 36% 42%, rgba(255,255,255,0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 64%, rgba(255,255,255,0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 38%, rgba(255,255,255,0.45) 0 2px, transparent 3px);
}

.loyalty-river-track::after,
.journey-progress-river::after {
  inset: 9px -7px;
  background: linear-gradient(90deg, transparent, rgba(255, 213, 31, 0.2), transparent);
  filter: blur(5px);
}

.river-wake {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--river-progress);
  height: 12px;
  min-width: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.22));
  border-radius: 999px;
  transform: translateY(-50%);
  opacity: 0.72;
}

.loyalty-boat-progress,
.journey-progress-boat {
  position: absolute;
  top: 50%;
  left: var(--river-progress);
  z-index: 3;
  width: 58px;
  height: 58px;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(4deg);
  filter: drop-shadow(0 10px 10px rgba(25, 19, 22, 0.32));
  animation: boatBob 2.4s ease-in-out infinite;
}

.journey-progress-port {
  position: absolute;
  top: 50%;
  left: var(--river-target);
  width: 28px;
  height: 34px;
  transform: translate(18px, -50%);
}

.journey-progress-port::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 0;
  width: 3px;
  background: var(--ink);
  border-radius: 999px;
}

.journey-progress-port::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 20px;
  height: 14px;
  background: linear-gradient(135deg, var(--pink), var(--red));
  clip-path: polygon(0 0, 100% 18%, 76% 55%, 100% 100%, 0 82%);
  box-shadow: 0 5px 0 rgba(255, 213, 31, 0.78);
}

.level-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: center;
  min-height: 158px;
  padding: 8px;
  color: var(--ink);
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  text-align: center;
  transition: border-color 180ms ease, filter 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.level-node img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  background: linear-gradient(180deg, #fffdf4, var(--soft));
  border: 2px solid rgba(25, 19, 22, 0.84);
  border-radius: 8px;
  padding: 5px;
  box-shadow: inset 0 0 0 2px rgba(255, 213, 31, 0.28);
}

.level-node.locked {
  opacity: 0.52;
  filter: grayscale(1);
}

.loyalty-level-node {
  position: relative;
}

.loyalty-level-locked {
  opacity: 0.52;
  filter: grayscale(1);
}

.loyalty-level-unlocked {
  border-color: rgba(255, 213, 31, 0.36);
}

.loyalty-level-current {
  border-color: var(--yellow);
}

.loyalty-level-next {
  border-color: rgba(255, 213, 31, 0.72);
}

.level-node.unlocked {
  border-color: rgba(255, 213, 31, 0.36);
}

.level-node.current {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 213, 31, 0.25), 7px 7px 0 var(--pink);
  animation: levelPulse 1.9s ease-in-out infinite;
}

.level-node.current img {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 10px 22px rgba(199, 0, 115, 0.18), inset 0 0 0 2px rgba(255, 213, 31, 0.5);
}

.level-node.next {
  border-color: rgba(255, 213, 31, 0.72);
  background: linear-gradient(180deg, #fff, #fff9dc);
}

.level-node.next img {
  border-style: dashed;
}

.level-node span {
  display: block;
  color: var(--magenta);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.level-node strong,
.level-node small {
  display: block;
}

.level-node small {
  color: rgba(25, 19, 22, 0.58);
  font-weight: 850;
}

@keyframes levelPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes boatBob {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(3deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 5px)) rotate(-3deg);
  }
}

.loyalty-map-section {
  grid-template-columns: minmax(300px, 0.76fr) minmax(260px, 0.44fr);
  align-items: start;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 213, 31, 0.2), transparent 15rem),
    radial-gradient(circle at 88% 12%, rgba(199, 0, 115, 0.18), transparent 15rem),
    linear-gradient(135deg, #1c1518, #100d0e);
}

.loyalty-map-section .loyalty-copy {
  display: none;
}

.loyalty-map,
.loyalty-map-section .loyalty-path,
.loyalty-river-map {
  --boat-x: 8%;
  --boat-y: 68%;
  grid-column: 1 / -1;
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  min-height: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #0d3447;
  border: 3px solid rgba(255, 213, 31, 0.9);
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(25, 19, 22, 0.08), 0 18px 36px rgba(0, 0, 0, 0.28);
}

.loyalty-transaction-history {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  color: #fff;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.loyalty-transaction-history h3 {
  margin: 0 0 12px;
  color: var(--yellow);
}

.loyalty-transaction-list {
  display: grid;
  gap: 10px;
}

.loyalty-transaction-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.loyalty-transaction-item strong {
  color: #fff;
}

.loyalty-transaction-item__kilometres {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--yellow);
  font-size: 18px;
  font-weight: 900;
}

.loyalty-transaction-item small {
  color: rgba(255, 255, 255, 0.72);
}

.loyalty-map-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.loyalty-map-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 78%, rgba(255, 248, 231, 0.95) 0 13%, transparent 13.5%),
    radial-gradient(ellipse at 4% 36%, rgba(244, 180, 0, 0.3) 0 16%, transparent 16.5%),
    radial-gradient(ellipse at 98% 14%, rgba(255, 248, 231, 0.9) 0 18%, transparent 18.5%),
    radial-gradient(ellipse at 103% 82%, rgba(244, 180, 0, 0.24) 0 22%, transparent 22.5%),
    radial-gradient(ellipse at 42% -5%, rgba(255, 248, 231, 0.82) 0 11%, transparent 11.5%),
    radial-gradient(ellipse at 68% 105%, rgba(255, 248, 231, 0.78) 0 16%, transparent 16.5%),
    radial-gradient(ellipse at 26% 48%, rgba(255,255,255,0.23) 0 3%, transparent 3.5%),
    radial-gradient(ellipse at 54% 30%, rgba(255,255,255,0.18) 0 3%, transparent 3.5%),
    radial-gradient(ellipse at 75% 56%, rgba(255,255,255,0.2) 0 3%, transparent 3.5%),
    repeating-linear-gradient(18deg, rgba(255,255,255,0.08) 0 7px, transparent 7px 25px),
    linear-gradient(135deg, rgba(17,148,191,0.35), rgba(66,214,199,0.18));
  box-shadow: inset 0 0 70px rgba(0, 22, 35, 0.32);
}

.loyalty-map-background::before,
.loyalty-map-background::after {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.92), rgba(244, 180, 0, 0.35));
  box-shadow: 0 0 0 7px rgba(255, 213, 31, 0.12);
}

.loyalty-map-background::before {
  width: 34%;
  height: 28%;
  left: -10%;
  top: 2%;
  clip-path: polygon(0 9%, 82% 0, 100% 35%, 75% 72%, 28% 100%, 0 84%);
}

.loyalty-map-background::after {
  width: 32%;
  height: 31%;
  right: -11%;
  bottom: -4%;
  clip-path: polygon(22% 0, 100% 8%, 100% 100%, 0 86%, 10% 36%);
}

.loyalty-map-terrain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mountain,
.rock,
.tree {
  position: absolute;
  display: block;
}

.mountain {
  width: 46px;
  height: 40px;
  background: linear-gradient(135deg, #3a3131 0 50%, #fff8e7 51% 62%, #5d4941 63%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 6px 4px rgba(0,0,0,0.22));
}

.mountain-one { left: 8%; top: 18%; }
.mountain-two { right: 9%; top: 16%; transform: scale(0.82); }
.mountain-three { right: 19%; bottom: 12%; transform: scale(0.68); }

.rock {
  width: 24px;
  height: 15px;
  background: #594642;
  border-radius: 60% 40% 48% 52%;
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.16);
}

.rock-one { left: 34%; top: 19%; }
.rock-two { left: 66%; bottom: 20%; transform: scale(0.8); }

.tree {
  width: 14px;
  height: 24px;
}

.tree::before {
  content: "";
  position: absolute;
  inset: 0 1px 7px;
  background: #2e7d32;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tree::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 6px;
  width: 3px;
  height: 9px;
  background: #5d3829;
}

.tree-one { left: 13%; bottom: 18%; }
.tree-two { right: 14%; top: 33%; transform: scale(0.85); }

.loyalty-route {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
}

.loyalty-route-pending,
.loyalty-route-completed {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loyalty-route-pending {
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 4;
  stroke-dasharray: 2 9;
  filter: drop-shadow(0 2px 3px rgba(0, 61, 96, 0.24));
}

.loyalty-route-completed {
  stroke: #42d6c7;
  stroke-width: 5;
  stroke-dasharray: 2 9;
  filter: drop-shadow(0 0 8px rgba(66, 214, 199, 0.66));
}

.loyalty-map-section .loyalty-level-node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  z-index: 4;
  width: clamp(72px, 8vw, 128px);
  height: clamp(72px, 8vw, 128px);
  padding: 0;
  background: transparent;
  border: 0;
  transform: translate(-50%, -50%);
  cursor: default;
}

.loyalty-map-section .level-node.current {
  animation: none;
  box-shadow: none;
}

.loyalty-level-island {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 9px 8px 8px;
  background:
    radial-gradient(ellipse at 50% 48%, #fff8e7 0 46%, #f7d88b 47% 66%, #a67138 67% 100%);
  border: 2px solid rgba(25, 19, 22, 0.84);
  border-radius: 46% 54% 43% 57% / 58% 48% 52% 42%;
  box-shadow: 0 10px 22px rgba(0,0,0,0.26), inset 0 -7px 0 rgba(25, 19, 22, 0.12);
}

.loyalty-map-section .loyalty-level-badge,
.loyalty-map-section .level-node img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.loyalty-map-section .map-node.locked img {
  filter: grayscale(1);
  opacity: 0.45;
}

.loyalty-map-section .map-node.unlocked img {
  filter: none;
  opacity: 1;
}

.loyalty-map-section .map-node.current img {
  filter: drop-shadow(0 0 12px rgba(255, 213, 31, 0.85));
  opacity: 1;
  transform: scale(1.08);
}

.loyalty-map-section .map-node.next img {
  filter: drop-shadow(0 0 10px rgba(199, 0, 115, 0.55));
  opacity: 0.9;
}

.rowing-character,
.loyalty-boat {
  position: absolute;
  left: var(--boat-x);
  top: var(--boat-y);
  z-index: 5;
  width: clamp(120px, 13vw, 240px);
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 12px rgba(25, 19, 22, 0.32));
}

.reward-hotspot {
  position: absolute;
  z-index: 7;
  border: 0;
  background: transparent;
  border-radius: 16px;
  cursor: pointer;
}

.reward-hotspot.debug {
  background: rgba(255, 0, 180, 0.25);
  outline: 2px solid #ff0099;
}

.reward-100 {
  left: 15%;
  bottom: 2%;
  width: 15%;
  height: 10%;
}

.reward-160 {
  left: 31%;
  bottom: 2%;
  width: 15%;
  height: 10%;
}

.reward-250 {
  left: 47%;
  bottom: 2%;
  width: 15%;
  height: 10%;
}

.reward-400 {
  left: 63%;
  bottom: 2%;
  width: 15%;
  height: 10%;
}

.reward-600 {
  left: 79%;
  bottom: 2%;
  width: 15%;
  height: 10%;
}

.loyalty-map-section #loyaltyPath {
  aspect-ratio: auto;
  overflow: visible;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.venezuela-map {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff8e7;
  border: 3px solid rgba(255, 213, 31, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.venezuela-map__background {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.venezuela-map__van {
  position: absolute;
  z-index: 10;
  width: clamp(58px, 9vw, 135px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--van-rotation, 0deg));
  transform-origin: center;
  filter: drop-shadow(0 12px 12px rgba(25, 19, 22, 0.34));
  transition:
    left 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    top 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s ease;
}

.venezuela-map__van--celebrating {
  animation: vanCelebration 0.55s ease-in-out 3;
}

@keyframes vanCelebration {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--van-rotation, 0deg)) scale(1);
  }

  50% {
    transform: translate(-50%, -56%) rotate(var(--van-rotation, 0deg)) scale(1.08);
  }
}

.level-benefits {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.12), transparent 32%),
    #050505;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
}

.level-benefits__character {
  display: grid;
  gap: 18px;
  align-items: flex-end;
  justify-content: center;
}

.level-progress-summary {
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 18px 20px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 206, 0, 0.14), rgba(255, 255, 255, 0.04)),
    #111;
  border: 1px solid rgba(255, 206, 0, 0.45);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.level-progress-summary__label {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.level-progress-summary__value {
  display: block;
  margin: 4px 0;
  color: #ffd12a;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 950;
}

.level-progress-summary__current,
.level-progress-summary__next {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 800;
}

.level-progress-summary__next {
  color: rgba(255, 255, 255, 0.72);
}

.level-benefits__character-image {
  display: block;
  width: min(100%, 430px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.4));
}

.level-benefits__content {
  min-width: 0;
}

.level-benefits__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.1;
  font-weight: 950;
}

.level-benefits__subtitle {
  margin: 10px 0 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 750;
  line-height: 1.5;
}

.level-benefits__badges {
  padding: clamp(12px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.level-benefits__badges-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.level-badge-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
}

.level-badge-card--current,
.level-badge-card--next {
  border-color: rgba(255, 209, 42, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 209, 42, 0.18), 0 16px 28px rgba(0, 0, 0, 0.24);
}

.level-badge-card__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  transition:
    filter 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

.level-badge-card__image.is-locked {
  filter: grayscale(1) brightness(0.55);
  opacity: 0.62;
}

.level-badge-card__image.is-unlocked {
  filter: none;
  opacity: 1;
}

.level-badge-card__image.is-current {
  transform: translateY(-4px) scale(1.04);
  filter:
    drop-shadow(0 0 8px rgba(255, 209, 42, 0.75))
    drop-shadow(0 0 18px rgba(255, 209, 42, 0.35));
}

.level-badge-card strong {
  color: #fff;
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  line-height: 1.1;
}

.level-badge-card__requirement {
  min-height: 38px;
  margin-top: 2px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  text-align: center;
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  font-weight: 800;
}

.badges {
  display: grid;
  gap: 10px;
}

.badge {
  padding: 12px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  font-weight: 950;
}

.reward {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
}

.reward strong {
  font-size: 1.05rem;
}

.reward span {
  color: rgba(25, 19, 22, 0.68);
  font-size: 0.8rem;
  font-weight: 850;
}

.reward button {
  min-height: 36px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-weight: 950;
  cursor: pointer;
}

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

.loyalty-map-section .badges {
  display: none;
}

.loyalty-map-section .badge {
  padding: 7px 9px;
  font-size: 0.82rem;
  line-height: 1;
  background: var(--ink);
  color: var(--yellow);
}

.reward-mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
  height: 72px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffd51f, #f4b400);
  border: 2px solid rgba(25, 19, 22, 0.88);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.25);
}

.reward-mini-card strong {
  max-width: 108px;
  font-size: 0.92rem;
  line-height: 1.05;
}

.reward-mini-card span {
  max-width: 108px;
  margin-top: 3px;
  color: rgba(25, 19, 22, 0.68);
  font-size: 0.74rem;
  line-height: 1.1;
}

.reward-mini-card button {
  position: absolute;
  right: 9px;
  bottom: 8px;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.66rem;
  white-space: nowrap;
}

.rewards-keyboard {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.reward-key.locked {
  opacity: 0.72;
  filter: grayscale(0.25);
}

.reward-lock {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 14px;
  border: 2px solid rgba(25, 19, 22, 0.8);
  border-radius: 4px;
  transform: translateY(-22%);
}

.reward-lock::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -12px;
  width: 8px;
  height: 10px;
  border: 2px solid rgba(25, 19, 22, 0.8);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.admin {
  padding-bottom: 56px;
}

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

.admin-panel {
  min-height: 320px;
  padding: 18px;
}

.panel-title {
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title h3 {
  margin: 0;
}

.panel-title span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--pink);
  border-radius: 999px;
  font-weight: 950;
}

.stacked-form,
.list,
.cart-items {
  display: grid;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hidden {
  display: none !important;
}

.image-upload-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: var(--ink);
  background: #fff7df;
  border: 2px dashed rgba(25, 19, 22, 0.25);
  border-radius: 14px;
  cursor: pointer;
}

.image-upload-box span {
  font-weight: 950;
}

.image-upload-box small,
.form-note {
  color: rgba(25, 19, 22, 0.62);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.image-upload-box input {
  padding: 10px;
  background: #fff;
}

.dish-preview {
  width: 120px;
  height: 120px;
  margin-top: 2px;
  object-fit: cover;
  background: #fff;
  border: 2px solid var(--yellow);
  border-radius: 14px;
}

.list-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
  font-weight: 750;
}

.list-item small {
  color: rgba(25, 19, 22, 0.62);
}

.catering-admin-panel {
  grid-column: span 2;
}

.companies-admin-panel {
  grid-column: 1 / -1;
}

.company-admin-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.6fr);
  gap: 18px;
}

.company-form label {
  display: grid;
  gap: 6px;
  color: rgba(25, 19, 22, 0.68);
  font-size: 0.82rem;
  font-weight: 900;
}

.company-form textarea,
.counter-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.company-tabs,
.company-admin-kpis,
.company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-tabs {
  margin-bottom: 10px;
}

.company-filter {
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.company-filter.active {
  color: #fff;
  background: var(--pink);
  border-color: var(--ink);
}

.company-admin-kpis {
  margin-bottom: 12px;
}

.company-admin-kpis span {
  padding: 8px 10px;
  background: #fff7df;
  border: 1px solid rgba(25, 19, 22, 0.1);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.company-list-item {
  border: 1px solid rgba(25, 19, 22, 0.1);
}

.company-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  padding: 5px 9px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
}

.status-active {
  background: #127b39;
}

.status-suspended,
.status-expired {
  background: var(--red);
}

.status-draft {
  background: #6b6470;
}

.company-list-item code {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid rgba(25, 19, 22, 0.14);
  border-radius: 8px;
  font-weight: 900;
}

.catering-lead-item {
  border: 1px solid rgba(25, 19, 22, 0.08);
}

.lead-status {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 950;
}

.lead-status select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compact .list-item {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.compact .admin-dish-item {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.admin-dish-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  background: #fff;
  border: 2px solid var(--yellow);
  border-radius: 10px;
}

.admin-dish-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.availability-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.availability-toggle input {
  width: 18px;
  min-height: 18px;
}

.danger {
  min-height: 34px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
  font-weight: 900;
}

.switch-row input {
  width: 24px;
  min-height: 24px;
}

.phase-card {
  margin-top: 14px;
  padding: 16px;
}

.reset-demo {
  margin-top: 12px;
}

code {
  display: inline-block;
  margin-top: 8px;
  padding: 8px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
  width: min(420px, 100vw);
  height: 100svh;
  padding: 18px;
  transform: translateX(110%);
  transition: transform 0.22s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  justify-content: space-between;
}

.cart-header h2 {
  margin: 0;
}

.icon-btn {
  display: grid;
  width: 44px;
  place-items: center;
  cursor: pointer;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
}

.quantity {
  display: flex;
  gap: 6px;
  align-items: center;
}

.quantity button {
  width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: var(--yellow);
  font-weight: 950;
  cursor: pointer;
}

.fulfillment-options {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff8df;
  border: 1px solid rgba(25, 19, 22, 0.12);
  border-radius: 8px;
}

.cart-section-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 950;
}

.fulfillment-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fulfillment-btn {
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid rgba(25, 19, 22, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.fulfillment-btn.active {
  border-color: var(--ink);
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 4px 0 var(--ink);
}

.pickup-note {
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px dashed rgba(25, 19, 22, 0.25);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.delivery-fields {
  display: grid;
  gap: 9px;
}

.delivery-fields[hidden],
.pickup-note[hidden],
#deliveryPhoneLabel[hidden] {
  display: none;
}

.delivery-fields label {
  display: grid;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 950;
}

.delivery-fields input,
.delivery-fields textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.delivery-fields textarea {
  min-height: 76px;
  resize: vertical;
}

.totals {
  display: grid;
  gap: 8px;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.totals .grand {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
}

dialog {
  width: min(430px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(25, 19, 22, 0.52);
}

#cateringDialog {
  width: min(560px, calc(100vw - 24px));
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
}

.dialog-card img {
  justify-self: center;
  width: 150px;
}

.dialog-card h2 {
  margin: 0;
  text-align: center;
}

.catering-form {
  gap: 10px;
}

.date-field {
  display: grid;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 950;
}

.catering-form input,
.catering-form select,
.catering-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.catering-form textarea {
  min-height: 104px;
  padding-top: 12px;
  resize: vertical;
}

.gift-dialog {
  width: min(500px, calc(100vw - 24px));
}

.gift-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(14px, 3vw, 22px);
  background:
    linear-gradient(135deg, rgba(255, 213, 31, 0.42), #fff 58%, rgba(193, 0, 122, 0.08)),
    #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.welcome-gift-image,
.gift-card img {
  display: block;
  width: min(360px, 90vw);
  height: auto;
  max-height: 74vh;
  object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(25, 19, 22, 0.14));
}

.first-login-character {
  width: min(100%, 420px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.first-login-message {
  max-width: 620px;
  margin: 14px auto 0;
  padding: 0 18px;
  color: var(--ink);
  text-align: center;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  line-height: 1.2;
  font-weight: 950;
}

.gift-ok {
  width: min(180px, 70%);
  min-height: 40px;
}

.points-dialog {
  width: min(720px, calc(100vw - 24px));
}

.points-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr);
  gap: clamp(14px, 3vw, 26px);
  align-items: center;
  padding: clamp(18px, 4vw, 30px);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.points-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 20px 16px rgba(25, 19, 22, 0.16));
}

.points-card h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 3px 3px 0 var(--yellow);
}

.points-card p:not(.eyebrow) {
  margin: 0 0 18px;
  color: rgba(25, 19, 22, 0.72);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.level-unlocked-card img {
  background: var(--soft);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.close-dialog {
  position: absolute;
  top: 10px;
  right: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  width: min(520px, calc(100vw - 24px));
  padding: 15px 16px;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--yellow);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 850;
  transform: translate(-50%, 140%);
  transition: transform 0.2s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .client-auth-screen {
    align-items: start;
    background:
      linear-gradient(135deg, rgba(231, 37, 36, 0.92), rgba(138, 0, 93, 0.88)),
      url("assets/joven_van1.png") center bottom / 88vw auto no-repeat,
      var(--paper);
  }

  .client-auth-card {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .client-auth-copy h1 {
    font-size: clamp(2.4rem, 12vw, 4.6rem);
  }

  .topbar,
  .hero,
  .quick-panel,
  .menu-grid,
  .loyalty-band,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .nav a {
    flex: 1;
    justify-content: center;
  }

  .toolbar {
    justify-content: end;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .catering-admin-panel {
    grid-column: auto;
  }

  .company-admin-layout {
    grid-template-columns: 1fr;
  }

  .loyalty-path {
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 270px);
    overflow-x: auto;
    padding: 4px 4px 26px;
    scroll-snap-type: x proximity;
  }

  .journey-progress-river {
    top: 45px;
    right: 44px;
    bottom: auto;
    left: 44px;
    width: auto;
    height: 34px;
    background:
      radial-gradient(circle at 12% 42%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
      radial-gradient(circle at 34% 58%, rgba(255, 255, 255, 0.68) 0 2px, transparent 3px),
      radial-gradient(circle at 74% 35%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
      repeating-linear-gradient(75deg, rgba(255,255,255,0.24) 0 8px, transparent 8px 18px),
      linear-gradient(90deg, #38d7e8, #0d87b5 52%, #42d6c7);
    border-radius: 999px 58% 999px 64%;
  }

  .river-wake {
    top: 50%;
    left: 0;
    width: var(--river-progress);
    height: 12px;
    min-width: 8px;
    min-height: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.22));
    transform: translateY(-50%);
  }

  .journey-progress-boat {
    top: 50%;
    left: var(--river-progress);
    width: 52px;
    height: 52px;
  }

  .journey-progress-port {
    top: 50%;
    right: auto;
    left: var(--river-target);
    transform: translate(18px, -50%);
  }

  .level-node {
    scroll-snap-align: start;
  }

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

  .gift-card img {
    max-height: 360px;
  }

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

  .points-card img {
    max-height: 300px;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 10px;
  }

  .brand img {
    width: 112px;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .hero-actions,
  .campaign-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .points-summary {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: auto;
  }

  .rower {
    width: min(480px, 100%);
    justify-self: center;
  }

  .home-hero__title {
    padding: 0 8px;
    font-size: clamp(1.45rem, 8vw, 2.25rem);
  }

  .counter-lookup {
    grid-template-columns: 1fr;
  }

  .qr-card,
  .counter-form {
    box-shadow: 4px 4px 0 var(--ink);
  }
}

@media (max-width: 980px) {
  .loyalty-map-section {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .loyalty-map-section .loyalty-path {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
    overflow: hidden;
  }

  .loyalty-map-section .loyalty-river-map {
    display: block;
  }

  .loyalty-map-section .badges {
    display: grid;
  }
}

@media (max-width: 620px) {
  .loyalty-map-section {
    margin-inline: 10px;
    padding: 16px;
  }

  .points-summary,
  .journey-stats {
    grid-template-columns: 1fr;
  }

  .loyalty-map-section .loyalty-path {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
    aspect-ratio: 3 / 2;
    border-width: 2px;
    border-radius: 14px;
  }

  .loyalty-map-section .loyalty-level-node {
    width: clamp(48px, 16vw, 66px);
    height: clamp(48px, 16vw, 66px);
  }

  .rowing-character,
  .loyalty-boat {
    width: clamp(74px, 28vw, 112px);
  }

  .loyalty-map-section .badges {
    display: grid;
  }

  .reward-mini-card {
    min-width: 148px;
  }
}

@media (max-width: 980px) {
  .loyalty-map-section #loyaltyPath {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: auto;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .special-event-banner__media {
    aspect-ratio: 16 / 9;
  }

  .special-event-banner__action {
    padding: 14px;
  }

  .venezuela-map {
    border-width: 2px;
    border-radius: 16px;
  }

  .venezuela-map__van {
    width: clamp(42px, 11vw, 72px);
  }
}

@media (max-width: 800px) {
  .level-benefits {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .level-benefits__character {
    order: 0;
  }

  .level-benefits__character-image {
    width: min(72vw, 340px);
  }

  .level-benefits__badges-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 420px) {
  .level-benefits__badges-grid {
    gap: 12px;
  }

  .level-badge-card {
    padding: 8px;
  }
}
.customer-profile-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  padding: 30px clamp(20px, 5vw, 72px);
  border-block: 1px solid #e8ded2;
  background: #fff;
}

.customer-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-profile-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.customer-profile-form input,
.customer-profile-form select {
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid #b9b1a8;
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 760px) {
  .customer-profile-section,
  .customer-profile-form {
    grid-template-columns: 1fr;
  }
}
