:root {
  --ink: #f8fbff;
  --muted: #b7c1d1;
  --soft: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .14);
  --navy: #071326;
  --navy-2: #0c1b34;
  --blue: #1769ff;
  --blue-2: #0b47b7;
  --gold: #f4b43f;
  --rose: #ff5a73;
  --mint: #34d399;
  --shadow: 0 18px 46px rgba(0, 0, 0, .42);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #020714;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(23, 105, 255, .26), transparent 34rem),
    linear-gradient(145deg, #030712 0%, #071326 46%, #101923 100%);
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(180deg, rgba(2, 7, 20, .2), rgba(2, 7, 20, .78));
}

.splash {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  color: var(--muted);
}

.brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 18px;
  color: #071326;
  background: linear-gradient(135deg, var(--gold), #fff1b8);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: var(--shadow);
}

.screen {
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 16px calc(94px + env(safe-area-inset-bottom));
}

.hero-screen {
  background:
    linear-gradient(180deg, rgba(3, 7, 18, .42) 0%, rgba(3, 7, 18, .78) 38%, rgba(3, 7, 18, .96) 100%),
    url('/assets/mall-hero.webp') center / cover no-repeat;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.plaza-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 14, 31, .72);
  backdrop-filter: blur(14px);
}

.plaza-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: .88rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(5, 14, 31, .72);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 46px 4px 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #9bc0ff;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 14vw, 4.8rem);
  line-height: .92;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 28rem;
  color: #dae4f5;
  font-size: 1rem;
  line-height: 1.55;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0;
}

.quick-card {
  min-height: 94px;
  padding: 12px 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}

.quick-card span {
  font-size: .77rem;
  font-weight: 800;
  line-height: 1.15;
}

.cta-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: var(--radius);
  font-weight: 850;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
  box-shadow: 0 12px 28px rgba(23, 105, 255, .32), inset 0 1px rgba(255, 255, 255, .28);
}

.secondary-btn {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
}

.ghost-btn {
  color: #b9d0ff;
  background: transparent;
}

.footnote {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
  text-align: center;
}

.page-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.page-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.page-head p {
  color: var(--muted);
  margin: 0;
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 18px;
}

.field,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  padding: 12px 14px;
  outline: 0;
}

.field:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(125, 174, 255, .85);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, .18);
}

.select {
  color-scheme: dark;
}

.select option,
.select optgroup {
  color: #071326;
  background: #f8fbff;
}

.select option:checked,
.select option:hover {
  color: #071326;
  background: #bfdbfe;
}

.textarea {
  min-height: 118px;
  resize: vertical;
}

.card-list {
  display: grid;
  gap: 12px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-tile {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 112px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(9, 25, 51, .96), rgba(6, 13, 31, .88));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
}

.tile-art {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(244, 180, 63, .8), rgba(23, 105, 255, .68));
}

.tile-art.news {
  background: linear-gradient(135deg, rgba(255, 90, 115, .82), rgba(23, 105, 255, .64));
}

.tile-art.locals {
  background: linear-gradient(135deg, rgba(52, 211, 153, .78), rgba(244, 180, 63, .66));
}

.tile-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
}

.tile-copy strong {
  font-size: 1.35rem;
  line-height: 1.06;
}

.tile-copy span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.3;
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 19, 38, .88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.content-card img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(23, 105, 255, .38), rgba(244, 180, 63, .38));
}

.content-body {
  padding: 14px;
}

.content-body h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.12;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: #dfe9fb;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
}

.detail-btn {
  margin-top: 12px;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #155ee5, #0d3f9e);
  font-weight: 800;
}

.local-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .075);
}

.local-card h3 {
  margin-bottom: 8px;
}

.form-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .075);
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
}

#qr-code {
  width: 210px;
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
}

.qr-token {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 520px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, .88);
  backdrop-filter: blur(18px);
}

.nav-btn {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 54px;
  color: #8fa0ba;
  background: transparent;
  border-radius: var(--radius);
  font-size: .68rem;
  font-weight: 800;
}

.nav-btn.active {
  color: #fff;
  background: rgba(23, 105, 255, .18);
}

.empty {
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(0, 0, 0, .56);
}

.modal-card {
  width: min(100%, 488px);
  max-height: 82dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px 12px var(--radius) var(--radius);
  background: #071326;
  box-shadow: var(--shadow);
}

.modal-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.modal-content {
  padding: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 60;
  width: min(calc(100% - 32px), 488px);
  transform: translateX(-50%);
  padding: 13px 15px;
  color: #06101f;
  border-radius: var(--radius);
  background: #dceaff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (min-width: 640px) {
  body {
    padding: 20px 0;
  }

  .app-shell {
    min-height: calc(100dvh - 40px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    box-shadow: var(--shadow);
  }

  .bottom-nav {
    bottom: 20px;
    border-radius: 0 0 28px 28px;
  }
}
