:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}
* { box-sizing: border-box; }
body { margin: 0; padding-bottom: 92px; background: #f3f4f6; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}
.brand { font-weight: 800; letter-spacing: -.02em; }
.demo-pill {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  background: #111827; color: white; border-radius: 999px;
  padding: 5px 8px;
}
.shell { width: min(100%, 760px); margin: 0 auto; padding: 0 14px 28px; }
.hero { padding: 28px 5px 14px; }
.hero.compact { padding-bottom: 8px; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; color: #6b7280; }
h1 { margin: 0; font-size: clamp(30px, 8vw, 44px); letter-spacing: -.04em; }
h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.muted { color: #6b7280; margin: 7px 0 0; }

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  margin: 12px 0;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(17,24,39,.04);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.section-head span, .section-head a { color: #6b7280; font-size: 13px; }
.row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 14px 0; border-bottom: 1px solid #f1f5f9;
}
.row:last-child { border-bottom: 0; }
.row strong { display: block; font-size: 15px; }
.row small { display: block; color: #6b7280; margin-top: 3px; font-size: 12px; }
.right { text-align: right; }
.big-money { font-size: 38px; font-weight: 900; letter-spacing: -.04em; margin: 10px 0 14px; }
.mini-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.empty { color: #6b7280; margin: 18px 0 8px; }
.stats-strip { display: flex; justify-content: space-between; gap: 12px; color: #6b7280; font-size: 12px; padding: 8px 4px 16px; }
.chevron { font-size: 28px; color: #9ca3af; }

.form-card label {
  display: block; margin-bottom: 16px; font-weight: 700; font-size: 14px;
}
input, select {
  width: 100%; min-height: 52px; margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #d1d5db; border-radius: 13px;
  background: white; font: inherit; font-size: 16px;
}
.optional { font-weight: 400; color: #9ca3af; }
.primary {
  width: 100%; min-height: 56px; border: 0; border-radius: 15px;
  background: #111827; color: white; font-weight: 800; font-size: 17px;
}

.bottom-nav {
  position: fixed; z-index: 10; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, 760px);
  height: 76px; padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr 64px 1fr 1fr; align-items: center;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid #e5e7eb;
}
.bottom-nav a { text-align: center; font-size: 12px; font-weight: 700; color: #4b5563; }
.bottom-nav .add-button {
  display: grid; place-items: center; margin: -30px auto 0;
  width: 58px; height: 58px; border-radius: 18px;
  background: #111827; color: white; font-size: 31px; box-shadow: 0 8px 20px rgba(17,24,39,.24);
}
@media (min-width: 700px) {
  .shell { padding-left: 22px; padding-right: 22px; }
}


/* Robin Restaurant 0.2 vendor management */

.title-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.small-primary {
  background: #111827;
  color: white;
  padding: 11px 15px;
  border-radius: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.clickable-row {
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
  border-radius: 10px;
}

.clickable-row:active {
  background: #f3f4f6;
}

.status-good,
.status-muted {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.status-good {
  color: #15803d;
}

.status-muted {
  color: #6b7280;
}

.detail-highlight {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 3px;
}

.detail-highlight strong {
  font-size: 18px;
}

.detail-highlight span {
  color: #6b7280;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}

.action-card strong {
  font-size: 15px;
}

.action-card span {
  color: #6b7280;
  font-size: 12px;
}

.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list span {
  color: #6b7280;
}

.secondary-button {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: white;
  color: #374151;
  font: inherit;
  font-weight: 700;
  margin: 4px 0 18px;
}


/* Robin Restaurant 0.2 bill management */

.bill-paid {
  opacity: .58;
}

.bill-paid > div:first-child strong {
  text-decoration: line-through;
}

.bill-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.bill-actions a,
.bill-actions button {
  font-size: 12px;
  font-weight: 800;
}

.bill-actions a {
  color: #6b7280;
}

.bill-actions form {
  margin: 0;
}

.bill-actions button {
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 9px;
  padding: 6px 9px;
  cursor: pointer;
}


/* Robin Restaurant 0.2 delivery management */

.delivery-received {
  opacity: .58;
}

.delivery-received > div:first-child strong {
  text-decoration: line-through;
}


/* Robin Restaurant 0.2 attention logic */

.warning-row {
  background: #fff7ed;
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 10px;
}

.attention-link {
  font-size: 12px;
  font-weight: 800;
  color: #9a3412;
}


/* Robin Restaurant quick add */

.quick-add-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 12px 0;
}

.quick-add-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 3px 12px rgba(17,24,39,.04);
}

.quick-add-card.featured {
  border-color: #111827;
}

.quick-add-card strong {
  display: block;
  font-size: 17px;
}

.quick-add-card small {
  display: block;
  color: #6b7280;
  margin-top: 4px;
}

.quick-icon {
  font-size: 30px;
  width: 42px;
  text-align: center;
}

.coming-soon {
  text-align: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.coming-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.coming-soon p {
  color: #6b7280;
  line-height: 1.55;
}

.primary-link {
  display: block;
  margin-top: 20px;
  background: #111827;
  color: white;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
}


/* Victory Assistant branding */

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  font-size: 10px;
  color: #6b7280;
  margin-top: 3px;
  font-weight: 600;
}


/* Victory Assistant authentication */

.login-body {
  min-height: 100vh;
  padding: 0;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(100%, 460px);
  padding: 24px 16px;
}

.login-brand {
  text-align: center;
  margin-bottom: 22px;
}

.login-brand h1 {
  font-size: 38px;
}

.login-card {
  padding: 22px;
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}

.powered {
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  margin-top: 20px;
}


/* Victory Assistant Calendar */

.calendar-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.today-button {
  background: white;
  border: 1px solid #d1d5db;
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
}

.calendar-nav a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 28px;
}

.calendar-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #e5e7eb;
}

.calendar-weekdays span {
  padding: 10px 2px;
  text-align: center;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  min-height: 108px;
  padding: 7px 5px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.day-number {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 5px;
}

.calendar-today .day-number {
  background: #111827;
  color: white;
}

.outside-month {
  background: #fafafa;
}

.outside-month .day-number {
  color: #c4c7cc;
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-event {
  display: flex;
  gap: 3px;
  border-radius: 6px;
  padding: 4px;
  font-size: 9px;
  line-height: 1.1;
  overflow: hidden;
}

.calendar-event.delivery {
  background: #eff6ff;
}

.calendar-event.bill {
  background: #fff7ed;
}

.event-icon {
  flex: 0 0 auto;
}

.event-text {
  min-width: 0;
}

.event-text strong,
.event-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-text strong {
  white-space: nowrap;
}

.event-text small {
  color: #6b7280;
  margin-bottom: 2px;
}

.event-done {
  opacity: .42;
  text-decoration: line-through;
}

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

.calendar-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 11px;
  padding: 12px 4px;
}

.legend-done {
  text-decoration: line-through;
  opacity: .6;
}

@media (max-width: 520px) {
  .calendar-day {
    min-height: 82px;
    padding: 5px 3px;
  }

  .calendar-event {
    padding: 3px;
  }

  .event-icon {
    display: none;
  }

  .event-text small {
    display: none;
  }
}
