.bottom-nav[hidden] {
  display: none !important;
}

.platform-brand {
  letter-spacing: -0.02em;
}

.platform-brand .brand-mark {
  background: var(--tomato);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  min-height: calc(100vh - 180px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(251, 250, 246, 0.74);
  box-shadow: var(--shadow-md);
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  color: var(--paper-strong);
  background:
    radial-gradient(circle at 86% 12%, rgba(231, 196, 174, 0.24), transparent 18rem),
    linear-gradient(135deg, #1c211b, #44513e);
}

.auth-visual::after {
  position: absolute;
  right: -18%;
  bottom: -25%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 46px rgba(255, 255, 255, 0.025),
    0 0 0 94px rgba(255, 255, 255, 0.018);
}

.auth-visual h1 {
  max-width: 620px;
  margin: 22px 0 18px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.auth-visual h1 em {
  color: #e4b9a9;
  font-style: normal;
}

.auth-visual > div > p {
  max-width: 510px;
  color: rgba(251, 250, 246, 0.62);
  font-size: 12px;
  line-height: 1.85;
}

.auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-feature {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(251, 250, 246, 0.78);
  font-size: 9px;
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px;
}

.auth-form {
  width: min(420px, 100%);
}

.tenant-seal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 8px 11px;
  color: var(--sage-dark);
  border: 1px solid rgba(82, 96, 71, 0.16);
  border-radius: 999px;
  background: var(--sage-soft);
  font-size: 9px;
  font-weight: 700;
}

.tenant-seal svg {
  width: 14px;
  height: 14px;
}

.auth-form h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
}

.auth-form > p {
  margin: 0 0 25px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.auth-form .field + .field {
  margin-top: 13px;
}

.auth-form .form-field {
  min-height: 50px;
  font-size: 12px;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.demo-code {
  margin-top: 12px;
  padding: 12px;
  color: var(--tomato-dark);
  border-radius: 12px;
  background: var(--tomato-soft);
  font-size: 10px;
  line-height: 1.65;
}

.platform-landing {
  padding-bottom: 20px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 420px;
  overflow: hidden;
  color: var(--paper-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 203, 184, 0.22), transparent 20rem),
    linear-gradient(135deg, #1d211c, #4c5845);
  box-shadow: var(--shadow-md);
}

.landing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 70px);
}

.landing-copy h1 {
  margin: 12px 0 17px;
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.landing-copy h1 em {
  color: #e2b6a5;
  font-style: normal;
}

.landing-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(251, 250, 246, 0.62);
  font-size: 12px;
  line-height: 1.85;
}

.landing-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.tenant-orbit {
  position: relative;
  z-index: 2;
  width: min(70%, 310px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.tenant-orbit::before,
.tenant-orbit::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.tenant-orbit::before {
  inset: -26px;
}

.tenant-orbit::after {
  inset: 34px;
}

.orbit-store {
  position: absolute;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: #e7ded0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  box-shadow: 0 14px 28px rgba(20, 23, 19, 0.2);
}

.orbit-store.one {
  top: 6%;
  right: 4%;
}

.orbit-store.two {
  bottom: 4%;
  left: 3%;
  width: 62px;
  height: 62px;
  background: #b9c4aa;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  color: var(--paper-strong);
  border-radius: 34px;
  background: var(--tomato);
  font-family: var(--serif);
  font-size: 36px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(232, 84, 59, 0.25);
}

.landing-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 26px;
}

.demo-tenant {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 246, 0.78);
  box-shadow: var(--shadow-sm);
}

.demo-tenant h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 24px;
}

.demo-tenant > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.tenant-code {
  display: inline-flex;
  padding: 6px 9px;
  color: var(--sage-dark);
  border-radius: 999px;
  background: var(--sage-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
}

.tenant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.role-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(251, 250, 246, 0.72);
}

.role-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 10px;
}

.role-bar svg {
  width: 16px;
  height: 16px;
  color: var(--sage-dark);
}

.role-bar strong {
  color: var(--ink);
}

.mask-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--sage-dark);
  font-size: 9px;
  font-weight: 650;
}

.mask-tag svg {
  width: 12px;
  height: 12px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
}

.order-row + .order-row {
  margin-top: 10px;
}

.order-row h4 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 16px;
}

.order-row p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 9px;
  line-height: 1.7;
}

.order-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  gap: 7px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 11px;
}

.evidence-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #efede6;
}

.evidence-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.evidence-item div {
  padding: 7px;
  color: var(--ink-mute);
  font-size: 8px;
}

.staff-list,
.audit-list,
.prize-list-admin {
  display: grid;
  gap: 9px;
}

.staff-row,
.prize-admin-row,
.audit-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.4);
}

.staff-row strong,
.prize-admin-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
}

.staff-row span,
.prize-admin-row span,
.audit-log-row span {
  color: var(--ink-mute);
  font-size: 8px;
}

.status-select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 9px;
}

.permission-note {
  margin-top: 10px;
  padding: 11px;
  color: var(--ink-soft);
  border-radius: 11px;
  background: #efede6;
  font-size: 9px;
  line-height: 1.65;
}

.sms-state {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: 8px;
  font-weight: 700;
}

.sms-state.failed {
  color: var(--tomato-dark);
  background: var(--tomato-soft);
}

.lottery-cost {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 13px;
  border-radius: 13px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: 10px;
}

.lottery-cost svg {
  width: 17px;
  height: 17px;
}

.qr-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.qr-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  text-align: center;
}

.qr-card svg {
  width: 100%;
  max-width: 170px;
  margin: 0 auto 8px;
}

.qr-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
}

.qr-card span {
  color: var(--ink-mute);
  font-size: 8px;
}

.empty-state {
  padding: 24px;
  color: var(--ink-mute);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.loading-screen {
  display: grid;
  place-items: center;
  min-height: 60vh;
  color: var(--ink-mute);
  font-size: 11px;
  text-align: center;
}

.loading-screen .brand-mark {
  margin: 0 auto 16px;
}

.role-pill {
  display: inline-flex;
  padding: 6px 9px;
  color: var(--sage-dark);
  border-radius: 999px;
  background: var(--sage-soft);
  font-size: 8px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .auth-page,
  .landing-hero,
  .landing-content {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 320px;
  }

  .landing-art {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .auth-form-wrap {
    padding: 28px 20px;
  }

  .auth-visual {
    min-height: 280px;
    padding: 28px 22px;
  }

  .auth-visual h1 {
    font-size: 40px;
  }

  .landing-copy {
    padding: 30px 22px;
  }

  .landing-copy h1 {
    font-size: 45px;
  }

  .qr-pair {
    grid-template-columns: 1fr;
  }

  .order-row {
    grid-template-columns: 1fr;
  }

  .order-row-actions {
    justify-content: flex-start;
  }

  .evidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
