:root {
  --gold: #f4bd00;
  --gold-2: #ffd84d;
  --ink: #0f172a;
  --muted: #667085;
  --line: #e4e7ec;
  --panel: #ffffff;
  --bg: #f7f8fb;
  --dark: #050505;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

.phone-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.auth-screen {
  display: grid;
  align-content: start;
  min-height: 100vh;
  padding: 22px 22px 28px;
}

.auth-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-pill {
  border: 0;
  border-radius: 999px;
  background: #0b0b0b;
  color: white;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.logo {
  margin: 60px auto 54px;
  color: #006b68;
  font-family: Georgia, serif;
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: min(260px, 78vw);
  height: auto;
  object-fit: contain;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eadb87;
  background: #f8fafc;
  padding: 15px 16px;
  outline: 0;
}

.auth-button {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 16px;
  font-weight: 800;
}

.auth-button.black {
  background: #050505;
  color: white;
}

.auth-button.gold {
  background: var(--gold);
  color: #111827;
}

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

.auth-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: #111827;
  font-size: 13px;
  text-align: center;
}

.auth-links button {
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
}

.app-screen {
  min-height: 100vh;
  padding-bottom: 86px;
  background: #fff;
}

.top-brand {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 0 16px;
}

.top-brand .logo-small {
  color: #006b68;
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 900;
}

.top-brand .brand-logo-small {
  display: block;
  width: 118px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.ticker {
  overflow: hidden;
  background: var(--gold);
  color: #1f2937;
  padding: 6px 0;
  font-size: 12px;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 18s linear infinite;
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

.page {
  padding: 14px 14px 18px;
}

.wallet-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #050505;
  color: white;
  padding: 18px;
}

.wallet-content {
  position: relative;
  z-index: 1;
}

.wallet-card-video {
  min-height: 245px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: #050505;
}

.wallet-card-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.14));
}

.wallet-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-card h2 {
  margin: 0 0 12px;
  font-size: 14px;
}

.wallet-amount {
  font-size: 30px;
  font-weight: 900;
}

.wallet-amount small {
  margin-left: 6px;
  font-size: 13px;
}

.wallet-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.wallet-tabs span {
  border: 1px solid white;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
}

.wallet-tabs .active {
  border-color: var(--gold);
  background: var(--gold);
  color: #111827;
}

.wallet-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 12px;
}

.wallet-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.shortcut {
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #111827;
  text-align: center;
  font-size: 12px;
}

.shortcut-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid #1f2937;
  border-radius: 10px;
  color: var(--gold);
  font-weight: 900;
}

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

.stat-card {
  min-height: 100px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: white;
  padding: 10px;
  overflow: hidden;
}

.stat-card strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.stat-card small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}

.vip-title {
  margin: 18px 0 10px;
  font-size: 18px;
}

.vip-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: var(--gold);
  padding: 14px;
  font-weight: 900;
}

.vip-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vip-tag span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #050505;
  color: white;
}

.combo-mark {
  display: inline-block;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(430px, 100%);
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #98a2b3;
  padding: 10px 4px 12px;
  font-size: 12px;
}

.bottom-nav button.active {
  color: var(--gold);
  font-weight: 800;
}

.bottom-nav .order {
  transform: translateY(-18px);
}

.bottom-nav .order span {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 2px;
  place-items: center;
  border-radius: 999px;
  background: #c9c9c9;
  color: white;
  font-weight: 900;
}

.bottom-nav .order.active span {
  background: #050505;
}

.panel {
  border-radius: 8px;
  background: white;
  box-shadow: 0 0 0 1px var(--line);
  padding: 14px;
}

.order-hero {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 8px;
  background: #050505;
  color: white;
  font-size: 30px;
  font-weight: 900;
}

.action-button {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #050505;
  color: white;
  padding: 15px;
  font-weight: 900;
}

.order-detail img {
  width: 100%;
  border-radius: 8px;
  background: #f2f4f7;
}

.stars {
  color: #98a2b3;
  font-size: 24px;
  letter-spacing: 2px;
}

.review-box {
  width: 100%;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
  font-size: 12px;
}

.summary-row strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.tabs button {
  border: 0;
  background: #f2f4f7;
  padding: 10px;
}

.tabs button.active {
  background: #050505;
  color: white;
}

.record-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.record-thumb {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: #eef2f6;
  overflow: hidden;
}

.record-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
}

.record-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.yellow-button {
  border: 0;
  border-radius: 4px;
  background: var(--gold);
  padding: 8px 12px;
  font-weight: 800;
}

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

.form-stack input,
.form-stack select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px;
}

.section-title {
  margin: 18px 0 10px;
  font-size: 16px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 15px 4px;
}

.copy-button {
  border: 1px solid #111827;
  border-radius: 999px;
  background: #fff;
  padding: 5px 10px;
  font-weight: 800;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
  padding: 18px;
}

.jackpot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  background: rgba(0, 0, 0, 0.88);
  font-family: Arial, sans-serif;
}

.jackpot-box {
  width: min(390px, 100%);
  padding: 36px 34px;
  border: 2px solid rgba(255, 215, 0, 0.45);
  border-radius: 28px;
  background: linear-gradient(145deg, #222, #3b3b3b);
  box-shadow: 0 0 45px rgba(255, 215, 0, 0.35);
  color: white;
  text-align: center;
  animation: popIn 0.45s ease;
}

.jackpot-box h2 {
  margin: 0 0 8px;
  color: #ffd400;
  font-size: 30px;
  letter-spacing: 3px;
}

.jackpot-box .sub {
  color: #ddd;
  font-weight: 600;
}

.number-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 20px;
  flex-wrap: wrap;
}

.number-row span {
  width: 46px;
  height: 66px;
  border: 2px solid #ffd400;
  border-radius: 12px;
  background: #2b2b2b;
  box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.15);
  color: #ffd400;
  font-size: 42px;
  font-weight: 900;
  line-height: 66px;
  animation: numberPulse 1s infinite alternate;
}

.jackpot-amount {
  margin-bottom: 18px;
  color: #ffd400;
  font-size: 42px;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255, 212, 0, 0.7);
}

.warning {
  color: #ffd0d0;
  font-size: 14px;
  line-height: 1.7;
}

.time {
  margin-top: 24px;
  font-weight: 700;
}

.time b {
  color: #ffd400;
}

.confetti span {
  position: absolute;
  top: -20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd400;
  animation: fall linear infinite;
}

.confetti span:nth-child(3n) {
  border-radius: 2px;
}

.confetti span:nth-child(4n) {
  background: #4aa3ff;
}

.combo-progress {
  display: grid;
  gap: 7px;
}

.combo-progress span {
  font-size: 20px;
  font-weight: 900;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.75);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes numberPulse {
  from {
    transform: translateY(0);
    text-shadow: 0 0 5px #ffd400;
  }
  to {
    transform: translateY(-4px);
    text-shadow: 0 0 18px #ffd400;
  }
}

.cover-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  background: #f2f4f7;
}

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

.combo-item-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.warning-text {
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #ffd6d2;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
}

.dialog {
  width: min(360px, 100%);
  border-radius: 4px;
  background: white;
  padding: 18px;
  text-align: center;
}

.content-mask {
  z-index: 40;
}

.content-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border-radius: 16px;
  background: white;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.content-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-weight: 900;
}

.content-image {
  display: grid;
  width: 100%;
  max-height: 260px;
  min-height: 170px;
  place-items: center;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #f4bd00);
  color: white;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.content-body {
  padding: 24px;
}

.content-body h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-body p {
  margin: 0;
  color: #344054;
  font-size: 15px;
  line-height: 1.8;
  white-space: normal;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.age-dialog button,
.dialog button {
  border: 0;
  padding: 13px;
  font-weight: 900;
}

.customer-card {
  display: grid;
  gap: 10px;
}

.ticket {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

@media (min-width: 860px) {
  .phone-shell {
    width: min(1180px, calc(100% - 48px));
  }

  .app-screen {
    padding-bottom: 0;
  }

  .bottom-nav {
    position: sticky;
    top: 52px;
    transform: none;
    left: auto;
    width: 100%;
  }

  .page {
    display: grid;
    gap: 18px;
    padding: 22px;
  }

  .home-layout {
    grid-template-columns: minmax(0, 430px);
    justify-content: center;
  }

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

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

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