:root {
  --bg: #f6efe4;
  --bg-soft: #fbf7f0;
  --white: #ffffff;
  --stone: #1c1917;
  --stone-soft: #57534e;
  --maroon: #8b2635;
  --maroon-dark: #5e1722;
  --amber: #d6a64d;
  --amber-soft: #f7d995;
  --green: #2e8b57;
  --green-dark: #206441;
  --danger: #b42318;
  --success: #027a48;
  --shadow: 0 18px 50px rgba(68, 30, 14, 0.12);
  --radius: 22px;
  --container: min(1180px, calc(100% - 28px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f7f1e8 0%, #fff8ef 100%);
  color: var(--stone);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.container { width: var(--container); margin: 0 auto; }
.serif { font-family: Georgia, 'Times New Roman', serif; }
.text-center { text-align: center; }
.small { font-size: .92rem; color: var(--stone-soft); }
.muted { color: var(--stone-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #241915 0%, #1c1917 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  padding: 7px;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
  flex: 0 0 auto;
}
.brand-text h1 {
  margin: 0;
  color: var(--amber);
  font-size: 1.45rem;
  line-height: 1;
}
.brand-text p {
  margin: 5px 0 0;
  color: #f8dca4;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: #fff7e6;
  padding: 10px 12px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f9edd4;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a:hover { color: var(--amber-soft); }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: .75rem;
  background: var(--amber);
  color: #25140d;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  transition: .2s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--amber); color: #2a160d; }
.btn-secondary:hover { background: #e1b765; }
.btn-outline { background: transparent; color: var(--amber); border: 2px solid var(--amber); box-shadow: none; }
.btn-outline:hover { background: var(--amber); color: #241915; }
.btn-dark { background: var(--maroon); color: #fff; }
.btn-dark:hover { background: var(--maroon-dark); }
.btn-light { background: #fff; color: var(--maroon); }
.btn-block { width: 100%; }

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(92,18,34,.85), rgba(28,25,23,.7)), url('assets/images/mandi-lamb.jpg') center/cover no-repeat;
  color: white;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -120px -10%;
  height: 220px;
  background: radial-gradient(circle at center, rgba(255,209,102,.14), transparent 70%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
  padding: 76px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #ffe7b1;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .92rem;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}
.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: .98;
  color: var(--amber-soft);
}
.hero p {
  margin: 0 0 26px;
  max-width: 58ch;
  font-size: 1.07rem;
  color: #fff3d8;
}
.hero-card,
.card {
  background: rgba(255,255,255,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(139,38,53,.08);
}
.hero-card {
  background: rgba(255,248,238,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  padding: 24px;
}
.hero-card h3 { margin: 0 0 10px; color: #ffe7b1; font-size: 1.4rem; }
.hero-card ul { margin: 0; padding-left: 18px; color: #fff0cf; }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero {
  padding: 56px 0 24px;
}
.page-hero .card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,248,238,.92));
}
.page-hero h2 { margin: 0 0 10px; color: var(--maroon); font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero p { margin: 0; color: var(--stone-soft); }

.section { padding: 70px 0; }
.section-soft { background: linear-gradient(180deg, #fff7ea 0%, #f7ecdc 100%); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { margin: 0; color: var(--maroon); font-size: clamp(1.9rem, 4vw, 3rem); }
.section-head p { margin: 10px auto 0; max-width: 70ch; color: var(--stone-soft); }
.ornament {
  width: 110px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214,166,77,0) 0%, rgba(214,166,77,1) 50%, rgba(214,166,77,0) 100%);
}

.info-strip { margin-top: -34px; position: relative; z-index: 5; }
.grid-2, .grid-3, .grid-4, .info-grid, .dashboard-grid, .stats-grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4, .info-grid, .stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.dashboard-grid { grid-template-columns: 1.2fr .8fr; }
.info-card, .stat-card, .panel-card { padding: 22px; }
.info-card small, .stat-card small {
  display: block;
  color: var(--maroon);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.info-card strong, .stat-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.menu-preview, .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eadcca;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover img { transform: scale(1.04); }
.product-body {
  padding: 18px;
  display: grid;
  gap: 12px;
  height: 100%;
}
.category-tag {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fdf2dc;
  color: var(--maroon);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.item-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.item-top h3 { margin: 0; font-size: 1.18rem; color: #281510; }
.price { white-space: nowrap; font-weight: 800; color: var(--maroon); }
.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(139,38,53,.16);
}
.qty-input {
  width: 78px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d7c7b5;
  background: var(--bg-soft);
  font-weight: 700;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.search-input, .select-input, .text-input, .textarea-input {
  width: 100%;
  border: 1px solid #d6c6b5;
  border-radius: 14px;
  background: #fff;
  padding: 14px 15px;
  color: var(--stone);
}
.search-input { min-width: 240px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff;
  color: var(--stone-soft);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(68,30,14,.08);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--amber);
  color: #29170f;
}

.form-card, .summary-card, .panel-card { padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; color: var(--maroon); }
.checkbox-row, .inline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.notice, .status-box {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(214,166,77,.28);
  background: #fdf4e4;
  color: #6b4b12;
  font-size: .95rem;
}
.notice.success, .status-box.success {
  background: #ecf8f0;
  color: #205434;
  border-color: rgba(46,139,87,.22);
}
.notice.error, .status-box.error {
  background: #fef3f2;
  color: #b42318;
  border-color: rgba(180,35,24,.16);
}
.summary-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}
.summary-pill, .cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f9f1e2;
  border-radius: 14px;
  padding: 12px 14px;
}
.summary-rows { display: grid; gap: 10px; margin-top: 16px; }
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--stone-soft);
}
.summary-total {
  padding-top: 14px;
  border-top: 1px solid rgba(139,38,53,.14);
  color: var(--maroon);
  font-weight: 800;
}
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f8ead4;
  color: var(--maroon);
  font-size: .86rem;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(139,38,53,.08);
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.table th, .table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #f0e5d8;
  vertical-align: top;
}
.table th {
  background: #fbf6ef;
  color: var(--maroon);
  font-size: .92rem;
}
.table td { color: var(--stone-soft); }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 700;
}
.badge-success { background: #ecf8f0; color: var(--success); }
.badge-warn { background: #fff4df; color: #7a5311; }
.badge-dark { background: #efe6f8; color: #5b2e91; }
.badge-danger { background: #fef3f2; color: var(--danger); }

.auth-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 28px 0 56px;
}
.auth-card {
  width: min(560px, 100%);
  padding: 28px;
}
.auth-card h2 { margin: 0 0 10px; color: var(--maroon); }
.auth-card p { margin: 0 0 20px; color: var(--stone-soft); }

.footer {
  background: linear-gradient(180deg, #241915 0%, #160f0d 100%);
  color: #ffe9b3;
  padding: 34px 0;
  margin-top: 24px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.small-note { color: #cfc3b3; font-size: .92rem; }

@media (max-width: 1080px) {
  .hero-grid,
  .dashboard-grid,
  .grid-4,
  .grid-3,
  .info-grid,
  .stats-grid,
  .product-grid,
  .menu-preview,
  .grid-2,
  .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  .nav { align-items: center; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 10px);
    background: #241915;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .btn { width: 100%; justify-content: center; }
  .hero { min-height: auto; }
  .hero-grid,
  .dashboard-grid,
  .grid-4,
  .grid-3,
  .info-grid,
  .stats-grid,
  .product-grid,
  .menu-preview,
  .grid-2,
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .toolbar { align-items: stretch; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 18px, 1180px); }
  .hero-grid { padding: 58px 0; }
  .hero h2 { font-size: 2.2rem; }
  .brand-text h1 { font-size: 1.25rem; }
  .page-hero { padding-top: 34px; }
  .page-hero .card,
  .form-card,
  .summary-card,
  .panel-card,
  .auth-card { padding: 20px; }
  .btn { width: 100%; }
  .action-row { flex-direction: column; }
  .table th, .table td { padding: 12px 10px; }
}


.action-row .btn { width: auto; }
.table .btn { padding: 10px 14px; box-shadow: none; }
.table .select-input, .table .text-input { min-width: 110px; padding: 10px 12px; }
.panel-card .table-wrap { max-height: 520px; overflow: auto; }
@media (max-width: 560px) {
  .action-row .btn { width: 100%; }
}


.summary-column {
  display: grid;
  gap: 18px;
}

.stripe-status-card,
.summary-card {
  padding: 22px;
}

.stripe-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.stripe-refresh-btn {
  padding: 10px 16px;
  box-shadow: none;
}

.stripe-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stripe-status-item {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(139, 38, 53, 0.12);
  background: rgba(255, 248, 238, 0.78);
}

.stripe-status-item.ok {
  border-color: rgba(2, 122, 72, 0.25);
  background: rgba(236, 253, 243, 0.9);
}

.stripe-status-item.fail {
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(255, 241, 240, 0.9);
}

.stripe-status-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.stripe-status-item p {
  margin: 0;
  color: var(--stone-soft);
  font-size: 0.94rem;
}

.stripe-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.stripe-status-badge.ok {
  background: rgba(2, 122, 72, 0.12);
  color: var(--success);
}

.stripe-status-badge.fail {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.status-text-ok {
  color: var(--success);
  font-weight: 700;
}

.status-text-fail {
  color: var(--danger);
  font-weight: 700;
}

@media (max-width: 820px) {
  .stripe-status-head {
    flex-direction: column;
  }

  .stripe-refresh-btn {
    width: 100%;
  }

  .stripe-status-grid {
    grid-template-columns: 1fr;
  }
}
