\ :root {
  --bg: #f7f5f0;
  --card: #ffffff;
  --text: #151515;
  --muted: #666666;
  --line: #e6e1d8;
  --dark: #111111;
  --soft: #f0ebe2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

.app {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin: 24px 0;
}

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

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

h1 {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 12px;
}

h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.muted {
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.zone-pill {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.amounts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.amount-btn,
.secondary {
  background: var(--soft);
  color: var(--text);
}

.amount-btn.active {
  background: var(--dark);
  color: white;
}

.preview-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.preview-actions button {
  flex: 1;
}

.primary {
  background: var(--dark);
  color: white;
  width: 100%;
}

.field {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.waiter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.waiter-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: #fff;
}

.waiter-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 12px;
}

.waiter-card h3 {
  margin-bottom: 4px;
}

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

.alloc-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.alloc-row:last-child {
  border-bottom: 0;
}

.hidden {
  display: none;
}

dialog {
  border: 0;
  border-radius: 24px;
  padding: 24px;
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.dialog-profile {
  display: flex;
  gap: 16px;
}

.dialog-profile img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 24px;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.dialog-actions .primary,
.dialog-actions .secondary {
  width: 100%;
}

@media (max-width: 640px) {
  .hero,
  .section-header {
    flex-direction: column;
  }

  h1 {
    font-size: 34px;
  }
}

/* Review/profile additions and contrast hardening */
button,
input,
textarea,
select {
  color: var(--text);
}
.primary {
  background: #111111;
  color: #ffffff !important;
}
.secondary,
.amount-btn {
  background: #efe7da;
  color: #151515 !important;
}
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  background: #ffffff;
  color: #151515;
}
.review-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.guest-review {
  background: #f8f5ee;
  border: 1px solid #e6ded2;
  border-radius: 16px;
  padding: 12px;
  margin: 10px 0;
}
.review-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #151515;
  font-size: 13px;
}
.guest-review p {
  margin: 8px 0 0;
}
.review-empty {
  background: #f8f5ee;
  border: 1px dashed #ded2c2;
  border-radius: 16px;
  padding: 14px;
  color: #5f5a52;
}

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

.auth-card {
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
  font-size: 34px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.auth-message {
  margin-top: 12px;
  color: #7a1f1f;
  background: #fff0f0;
  border: 1px solid #ffd3d3;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 700;
}

.demo-note {
  margin-top: 12px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  color: var(--text);
  background: #fff;
}

@media (max-width: 640px) {
  .auth-actions {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    justify-content: flex-start;
  }
}
