:root {
  color-scheme: light;
  font-family: Gilroy, Arial, sans-serif;
  --bg: #7482ea;
  --panel: #97a1ef;
  --panel-strong: #97a1ef;
  --border: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --accent: #000000;
  --accent-strong: #ffbbbb;
  --soft: #97a1ef;
  --success: #ffbbbb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 187, 187, 0.18), transparent 30%),
    linear-gradient(180deg, #8c98ef 0%, var(--bg) 100%);
  color: var(--text);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone-frame {
  width: min(100%, 440px);
  min-height: 820px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.topbar,
.shop-header,
.inline-actions,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar > div {
  flex: 1;
  text-align: center;
}

.eyebrow,
.card__eyebrow,
.meta {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

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

.ghost-button,
.primary-button,
.secondary-button,
.chip-button,
.link-button,
.icon-button {
  font: inherit;
  cursor: pointer;
}

.ghost-button,
.secondary-button,
.chip-button {
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.88);
  color: var(--text);
}

.primary-button {
  border: 1px solid #000000;
  background: var(--accent);
  color: #fff;
}

.link-button {
  border: none;
  background: transparent;
  color: var(--accent-strong);
  text-align: left;
  padding: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.88);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.icon-button--ghost {
  opacity: 0;
  pointer-events: none;
}

.ghost-button,
.primary-button,
.secondary-button {
  border-radius: 10px;
  padding: 12px 14px;
}

.chip-button {
  border-radius: 10px;
  padding: 10px 12px;
}

.card,
.support-card,
.social-card,
.balance-card,
.menu-item {
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 18px;
}

.screen {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.card,
.support-card,
.social-card,
.balance-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.card h2,
.section-title h3 {
  font-size: 22px;
}

.button-stack,
.shop-list,
.tab-row,
.social-links {
  display: grid;
  gap: 10px;
}

.shop-button,
.menu-item,
.reward-item {
  width: 100%;
  text-align: left;
}

.shop-button,
.reward-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
}

.menu-item,
.reward-item {
  display: grid;
  gap: 6px;
}

.shop-button strong,
.reward-item strong,
.menu-item strong {
  font-size: 17px;
}

.hint,
.empty-state,
.balance-note {
  color: var(--muted);
  line-height: 1.45;
}

.balance-card {
  background: rgba(255, 255, 255, 0.1);
}

.balance-value {
  font-size: 34px;
  font-weight: 700;
}

.profile-line {
  display: grid;
  gap: 4px;
}

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

.tab-row .chip-button.active {
  background: #ffbbbb;
  border-color: #ffbbbb;
  color: #fff;
}

.support-card,
.social-card {
  background: rgba(255, 255, 255, 0.08);
}

.support-page__actions {
  display: grid;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: #ffbbbb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.status-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

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

.status-headline {
  display: grid;
  gap: 6px;
}

.mini-icon-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.status-pill--pending {
  background: #000000;
}

.status-pill--approved {
  background: #2d8a57;
}

.status-pill--rejected {
  background: #d85b5b;
}

.inline-actions {
  flex-wrap: wrap;
}

.divider-title {
  display: grid;
  gap: 8px;
}

.menu-preview {
  display: grid;
  gap: 10px;
}

.menu-gallery {
  display: grid;
  gap: 12px;
}

.menu-image-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.menu-image-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.menu-preview__image {
  min-height: 180px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1)),
    rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: var(--text);
}

#back-to-shops {
  min-width: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  text-align: center;
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    min-height: 100vh;
    width: 100%;
    border: none;
    border-radius: 0;
  }
}
