:root {
  --bg: #000000;
  --surface: #1c1a17;
  --surface-2: #242019;
  --border: #3a3227;
  --gold: #d8b768;
  --gold-dim: #c9a24b;
  --text: #f3ede0;
  --text-muted: #a9977a;
  --danger: #e2685c;
  --success: #7bbf8a;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

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

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 4px 18px;
}

.back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gold);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.back-btn:active {
  border-color: var(--gold-dim);
}

.topbar-logo {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.topbar-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hero {
  text-align: center;
  padding: 8px 0 28px;
}

.hero-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: inline-block;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: fade-in 0.15s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-title {
  font-size: 18px;
  font-weight: 600;
  margin: 4px 0 16px;
  color: var(--text);
}

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

.menu-grid.two {
  grid-template-columns: 1fr 1fr;
}

.menu-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.menu-grid.two .menu-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px;
  gap: 10px;
}

.menu-card:active {
  border-color: var(--gold-dim);
}

.menu-icon {
  font-size: 22px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.list-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-row-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.list-row-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.list-row-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.list-row.clickable {
  cursor: pointer;
}

.list-row.clickable:active {
  border-color: var(--gold-dim);
}

.list-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 18px 0 8px;
}

.list-section-label:first-child {
  margin-top: 0;
}

.about-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-line;
  margin-bottom: 16px;
}

.link-pill {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  text-decoration: none;
}

.empty-hint {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  margin-top: 24px;
}

.legend {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: middle;
}

.dot.free { background: #6fbf73; }
.dot.low { background: #d9c94a; }
.dot.mid { background: #e0973f; }
.dot.full { background: #d1554a; }
.dot.closed { background: #4a453d; }

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--gold);
  border-radius: 10px;
  width: 40px;
  height: 36px;
  font-size: 14px;
  cursor: pointer;
}

.cal-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.cal-month-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
}

.cal-day.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.cal-day.free { border-color: #3c5c3f; background: rgba(111, 191, 115, 0.12); }
.cal-day.low { border-color: #6b6330; background: rgba(217, 201, 74, 0.12); }
.cal-day.mid { border-color: #6e5228; background: rgba(224, 151, 63, 0.14); }
.cal-day.full { border-color: #6e3a34; background: rgba(209, 85, 74, 0.14); }
.cal-day.closed { color: var(--text-muted); background: var(--surface-2); cursor: default; }

.cal-day.today {
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

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

.slot-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 0;
  font-size: 13px;
  cursor: pointer;
}

.slot-btn:active {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.field-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
}

.field-input:focus {
  outline: none;
  border-color: var(--gold-dim);
}

.btn-primary {
  margin-top: 20px;
  background: var(--gold-dim);
  color: #1c1a17;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:active {
  background: var(--gold);
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
  line-height: 1.9;
}

.summary-card b {
  color: var(--gold);
}

.success-box {
  text-align: center;
  padding-top: 20px;
}

.success-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--surface-2);
  border: 1px solid var(--gold-dim);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  max-width: 90%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
