.landing {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(245,184,0,0.18), transparent 50%),
    radial-gradient(900px 400px at 0% 100%, rgba(20,33,61,0.9), transparent 50%),
    #0c0c0c;
  padding: 28px 20px 80px;
}
@media (max-width: 640px) {
  .landing { padding: 20px 14px 72px; }
  .role { min-height: 150px; padding: 18px; }
}
.landing-hero {
  max-width: 1080px; margin: 0 auto 28px;
}
.landing-brand {
  text-align: center;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.landing-banners {
  max-width: 1080px; margin: 0 auto 28px;
  display: grid; gap: 14px;
}
.landing-banners img {
  width: 100%; height: auto;
}
.landing-story-wrap {
  max-width: 1080px; margin: 36px auto 0;
  display: grid; place-items: center;
}
.pwa-box {
  max-width: 420px; margin: 22px auto 0;
}
.landing-pwa {
  max-width: 480px; margin: 28px auto 0;
}
@media (max-width: 640px) {
  .brand-principal { max-height: 56px; width: min(100%, 300px); }
  .landing-story-wrap .brand-story { width: min(100%, 220px); }
}
@media (min-width: 900px) {
  .landing-story-wrap { justify-content: end; }
}
.landing-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 16ch;
  margin: 18px 0 12px;
}
.landing-hero p.lead {
  font-size: 1.12rem; color: #cfc6a8; max-width: 42ch;
}
.roles {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
.role {
  text-align: left;
  border-radius: 28px; padding: 22px;
  background: #161616;
  border: 1px solid rgba(255,255,255,0.05);
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .2s ease, border-color .2s ease;
}
.role:hover { transform: translateY(-4px); border-color: rgba(245,184,0,0.4); }
.role .ico {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center; background: var(--gold-dim); color: var(--gold);
}
.role h3 { margin: 14px 0 4px; font-size: 1.25rem; }
.role p { color: var(--gray-2); font-size: 0.9rem; }
.role.est { background: linear-gradient(180deg, #1a1a1a, #141820); }
.role.gar { background: linear-gradient(180deg, #1a1a1a, #1a1408); }
.role.par { background: linear-gradient(180deg, #1a1a1a, #12182a); }
.role.adm { background: linear-gradient(160deg, #171717, #14213D); }

@media (min-width: 768px) {
  .roles { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .roles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

.phone-stage {
  min-height: 100%;
  min-height: 100dvh;
  height: 100%;
  height: 100dvh;
}
.phone-shell {
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  background: #111;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.phone-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 16px 20px;
  -webkit-overflow-scrolling: touch;
}
.phone-body .topbar {
  position: sticky;
  top: -16px;
  z-index: 8;
  background: #111;
  margin: -16px -16px 18px;
  padding: 16px 16px 10px;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 18px;
}
.topbar .logo-row { min-width: 0; }
.avatar {
  width: 42px; height: 42px; border-radius: 14px; object-fit: cover;
  border: 2px solid rgba(245,184,0,0.4);
}
.dot-n {
  position: relative;
}
.dot-n::after {
  content: ""; position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; background: var(--gold); border-radius: 50%;
}

.hero-progress {
  border-radius: 28px; overflow: hidden; position: relative;
  min-height: 210px; margin: 16px 0 22px;
  color: #fff;
}
.hero-progress .bg {
  position: absolute; inset: 0;
}
.hero-progress .bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
.hero-progress .overlay,
.offer-banner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 10%, rgba(0,0,0,0.82));
}
.offer-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55);
}
.est-card { cursor: pointer; transition: transform .18s ease; }
.est-card:hover { transform: translateY(-3px); }
.hero-progress h2 { font-size: 1.55rem; margin: 8px 0 4px; }
.hero-progress .content,
.offer-banner .content { position: relative; z-index: 1; padding: 20px; }
.cta-row { display: flex; gap: 8px; margin-top: 14px; }

.h-scroll {
  display: flex; gap: 12px; overflow: auto; padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
}
.h-scroll > * { scroll-snap-align: start; flex: 0 0 78%; }

.est-card {
  background: #1c1c1c; border-radius: 24px; overflow: hidden;
}
.est-card .thumb { height: 128px; }
.est-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.est-card .body { padding: 14px; }
.est-card h3 { font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip {
  background: #262626; border-radius: 999px; padding: 4px 8px;
  font-size: 0.72rem; font-weight: 700; color: #e6d9a8;
  cursor: pointer; border: 0;
}
.chip.patrocinio {
  background: var(--gold);
  color: #171717;
}

.bottom-nav {
  flex: 0 0 auto;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(17,17,17,0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid #262626;
  padding: 6px 6px calc(8px + var(--safe-b));
  width: 100%;
}
.phone-shell .bottom-nav {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
}
.bottom-nav a, .bottom-nav button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #7d7d7d; font-size: 0.65rem; font-weight: 700;
  min-height: 52px; justify-content: center;
}
.bottom-nav .on { color: var(--gold); }

.qr-stage {
  background: var(--cream); color: #171717; border-radius: 28px;
  padding: 22px; text-align: center;
}
.qr-stage .brand-simbolo { margin: 0 auto 12px; background: transparent; }
.qr-box {
  width: 220px; height: 220px; margin: 18px auto;
  background: #fff; border-radius: 24px;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.offer-banner {
  border-radius: 26px; min-height: 190px; position: relative; overflow: hidden;
  margin-bottom: 14px;
}
.map-art {
  position: relative; height: 420px; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 88% 40%, #1a3a66 0 18%, transparent 19%),
    linear-gradient(180deg, #0d1b33, #132a4a 55%, #0b3a4a);
}
.map-art.focused {
  background:
    radial-gradient(circle at 88% 40%, #1a3a66 0 18%, transparent 19%),
    linear-gradient(180deg, #0b1628, #163456 55%, #0b3a4a);
}
.map-water {
  position: absolute; right: 0; top: 0; bottom: 0; width: 28%;
  background: linear-gradient(90deg, transparent, rgba(80,160,200,0.25));
  pointer-events: none;
}
.map-label {
  position: absolute; color: rgba(255,255,255,0.55); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; padding: 4px 6px; z-index: 2;
}
.map-label.on { color: var(--gold); }
.map-zone {
  position: absolute; width: 86px; height: 86px; margin: -43px 0 0 -43px;
  border-radius: 50%; background: rgba(245,184,0,0.16);
  box-shadow: 0 0 0 2px rgba(245,184,0,0.28);
  pointer-events: none;
}
.pin {
  position: absolute; width: 18px; height: 18px; border-radius: 50% 50% 50% 0;
  background: var(--gold); transform: rotate(-45deg);
  box-shadow: 0 0 0 6px rgba(245,184,0,0.22);
  cursor: pointer; z-index: 3;
}
.pin.rest { background: #ffe27a; }
.pin:hover, .pin.on { animation: pulseGold 1.4s infinite; z-index: 4; }
.pin-cluster {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: var(--gold); color: #171717;
  font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(245,184,0,0.22);
  z-index: 3; cursor: pointer;
}
.pin-cluster:hover { transform: scale(1.08); }
.map-pop {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: #171717; border-radius: 20px; padding: 14px;
  z-index: 5;
}

.saidera-card {
  background: linear-gradient(180deg, #201d12, #171717);
  border: 1px solid rgba(245,184,0,0.22);
  border-radius: 24px; padding: 18px; margin-bottom: 12px;
}
.saidera-card.used { opacity: 0.72; filter: grayscale(0.3); }
.saidera-id {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.saidera-code {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-top: 2px;
}

.celebrate {
  text-align: center; padding: 12px 8px 4px;
}
.celebrate h2 {
  font-size: 1.8rem; animation: pop .45s ease;
}
.burst {
  position: relative; height: 40px;
}
.burst i {
  position: absolute; left: 50%; top: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: confetti 1s ease-out forwards;
}

body.client-page {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
body.client-page #app {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
body.client-page .demo-fab {
  bottom: calc(70px + var(--safe-b));
}

@media (min-width: 700px) {
  body.client-page { background: #070707; }
  .phone-shell { max-width: 960px; }
  .est-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .est-card .thumb { height: 150px; }
  .map-art { height: min(62vh, 640px); }
  .comanda-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .bottom-nav button { font-size: 0.72rem; min-height: 56px; }
}

@media (min-width: 1200px) {
  .phone-stage {
    padding: 24px 16px;
    display: grid;
    place-items: center;
  }
  .phone-shell {
    width: 430px;
    max-width: 430px;
    height: min(860px, 94dvh);
    min-height: 0;
    border-radius: 40px;
    border: 10px solid #1a1a1a;
    box-shadow: 0 40px 80px rgba(0,0,0,0.55), inset 0 0 0 1px #2a2a2a;
    overflow: hidden;
  }
  .phone-body { padding-top: 36px; }
  .phone-body .topbar { top: -36px; padding-top: 36px; }
  .phone-shell::before {
    content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 118px; height: 22px; background: #0a0a0a; border-radius: 0 0 16px 16px; z-index: 5;
    pointer-events: none;
  }
  .est-list { grid-template-columns: 1fr; }
  body.client-page .demo-fab { bottom: 18px; left: 18px; }
}

.waiter-body { padding-bottom: 28px; }
.waiter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.waiter-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  min-height: 132px;
  padding: 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(245,184,0,0.18);
  background: #1a1a1a;
  color: inherit;
}
.waiter-action strong { font-size: 0.95rem; }
.waiter-action span { font-size: 0.75rem; color: #9a9a9a; line-height: 1.35; }
.waiter-action.gold { background: var(--gold-dim); border-color: rgba(245,184,0,0.4); }
.waiter-action.navy { background: #14213D; border-color: #1c3260; }
.scan-frame.scan-lg { width: min(260px, 72vw); height: min(260px, 72vw); }
@media (max-width: 420px) {
  .waiter-actions { grid-template-columns: 1fr; }
}
.waiter-scan { margin-top: 16px; }
.scan-frame.live { overflow: hidden; background: #000; }
.scan-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 24px;
}
.qr-real { margin: 12px auto; border-radius: 12px; background: #FFF9E8; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 0;
  border-bottom: 1px solid #2a2a2a;
  font-weight: 600;
}
.toggle-row input[type="checkbox"] {
  width: 44px; height: 24px; accent-color: var(--gold); flex: 0 0 auto;
}
.scan-stage { margin-top: 28px; display: grid; place-items: center; }
.scan-frame {
  width: 220px; height: 220px; position: relative;
  border-radius: 24px; background: rgba(255,255,255,0.03);
}
.scan-frame i {
  position: absolute; z-index: 2; width: 28px; height: 28px; border: 3px solid var(--gold);
}
.scan-frame i:nth-of-type(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.scan-frame i:nth-of-type(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.scan-frame i:nth-of-type(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.scan-frame i:nth-of-type(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scan-frame::after {
  content: ""; position: absolute; left: 18px; right: 18px; height: 2px; background: var(--gold);
  z-index: 3;
  animation: scanLine 1.4s ease-in-out infinite; box-shadow: 0 0 12px var(--gold);
}
@keyframes scanLine {
  0% { top: 18px; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 196px; opacity: 0.3; }
}
.comanda-head {
  background: #1c1c1c; border-radius: 22px; padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 14px; border: 1px solid rgba(245,184,0,0.18);
}
.saidera-alert {
  background: linear-gradient(180deg, #14281c, #171717);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 22px; padding: 14px; margin-bottom: 14px;
}
.waiter-drinks button { min-height: 76px; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 8px;
}
.pager-num,
.pager-nav {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  background: #222;
  color: #cfcfcf;
  font-weight: 800;
  font-size: 0.88rem;
}
.pager-num.on {
  background: var(--gold);
  color: #171717;
}
.pager-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.pager-dots {
  min-width: 28px;
  text-align: center;
  color: #8A8A8A;
  font-weight: 800;
  letter-spacing: 0.08em;
  user-select: none;
}
