:root {
  --bg: #040404;
  --panel: rgba(14, 14, 14, 0.92);
  --panel-strong: #111111;
  --panel-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 196, 0, 0.2);
  --text: #f7f7f7;
  --muted: #cfcfcf;
  --accent: #ffc400;
  --accent-deep: #d99a00;
  --success: #6bde8b;
  --danger: #ff7b72;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 196, 0, 0.14), transparent 28%),
    radial-gradient(circle at right center, rgba(255, 196, 0, 0.08), transparent 18%),
    linear-gradient(180deg, #020202, #090909 50%, #020202);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.04)' d='M0 90h180M90 0v180'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.app-shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero,
.card,
.stat-card,
.modal {
  backdrop-filter: blur(20px);
}

.hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(18, 18, 18, 0.86));
  box-shadow: var(--shadow);
}

.topbar,
.hero-content,
.section-head,
.cart-header,
.subhead,
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.hero-content {
  margin-top: 28px;
  align-items: stretch;
}

.hero-copy {
  flex: 1.3;
}

.hero-card {
  flex: 0.8;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 196, 0, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 196, 0, 0.22);
}

.hero-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.eyebrow,
.hero-card-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 8px;
}

.brand-lockup {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.brand-top,
.brand-bottom {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 11vw, 7.5rem);
}

.brand-top {
  color: var(--accent);
}

.brand-bottom {
  color: #ffffff;
  padding-left: 1.05em;
}

.brand-mark {
  position: absolute;
  left: 1.25em;
  bottom: 0.12em;
  width: clamp(72px, 10vw, 120px);
  height: clamp(72px, 10vw, 120px);
}

.bowl-ring {
  position: absolute;
  inset: 0;
  border: 12px solid #ffffff;
  border-radius: 50%;
}

.bowl-legs {
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 16%;
  height: 18%;
  border-left: 6px solid #ffffff;
  border-right: 6px solid #ffffff;
}

.bowl-legs::before,
.bowl-legs::after {
  content: "";
  position: absolute;
  top: -18%;
  width: 42%;
  height: 6px;
  background: #ffffff;
}

.bowl-legs::before {
  left: -4%;
  transform: rotate(20deg);
}

.bowl-legs::after {
  right: -4%;
  transform: rotate(-20deg);
}

.noodle-stick {
  position: absolute;
  top: 12%;
  width: 8px;
  height: 54%;
  background: #ffffff;
  border-radius: 999px;
}

.noodle-stick.left {
  left: 48%;
  transform: rotate(20deg);
}

.noodle-stick.right {
  left: 63%;
  transform: rotate(24deg);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.7rem;
}

.hero-summary,
.muted,
.tiny-note,
.history-card p,
.order-card p,
.inventory-card p {
  color: var(--muted);
}

.hero-badges,
.hero-actions,
.customer-actions,
.category-tabs,
.coupon-list,
.inventory-list,
.orders-list,
.cart-items,
.coupon-discovery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badges span,
.category-tabs button,
.coupon-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
}

main {
  margin-top: 24px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.customer-layout,
.admin-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.95fr;
  gap: 20px;
  margin-top: 18px;
}

.card,
.stat-card,
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.narrow-card {
  width: min(520px, 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 2rem;
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-form {
  margin-bottom: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 196, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.08);
}

button {
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

.accent-button,
.ghost-button,
.soft-button,
.text-button {
  border-radius: 16px;
  padding: 12px 18px;
}

.accent-button {
  background: linear-gradient(135deg, var(--accent), #f2b100);
  color: #201300;
  font-weight: 800;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.soft-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.text-button {
  background: transparent;
  color: var(--accent);
  padding-inline: 0;
}

.inline-input {
  display: flex;
  gap: 10px;
}

.inline-input button {
  flex: 0 0 auto;
}

.full-width {
  width: 100%;
  margin-top: 14px;
}

.coupon-banner {
  margin-bottom: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 196, 0, 0.2), rgba(255, 196, 0, 0.08));
  border: 1px solid rgba(255, 196, 0, 0.2);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.menu-card,
.inventory-card,
.order-card,
.history-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.menu-image {
  position: relative;
  height: 160px;
  background:
    linear-gradient(135deg, rgba(255, 196, 0, 0.34), rgba(0, 0, 0, 0.16)),
    linear-gradient(45deg, #232323, #0b0b0b);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.menu-image::after {
  content: attr(data-fallback);
  position: absolute;
  right: 14px;
  top: 10px;
  font-family: "Square Peg", cursive;
  font-size: 2.2rem;
  color: rgba(255, 218, 115, 0.66);
}

.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.menu-body,
.inventory-body,
.order-body,
.history-body {
  padding: 18px;
}

.price-row,
.item-meta,
.cart-row,
.cart-summary div,
.order-meta,
.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.muted-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.status-pill.pending {
  color: #ffdd8f;
}

.status-pill.acknowledged {
  color: var(--success);
}

.status-pill.cancelled {
  color: var(--danger);
}

.variant-list,
.addon-list,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.variant-chip,
.addon-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 40px;
}

.variant-chip.active,
.addon-chip.active,
.category-tabs button.active {
  background: rgba(255, 196, 0, 0.16);
  border-color: rgba(255, 196, 0, 0.3);
  color: #ffe7a6;
}

.item-meta {
  margin-top: 12px;
}

.cart-items {
  flex-direction: column;
  min-height: 200px;
}

.cart-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-summary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.grand-total {
  font-size: 1.1rem;
  margin-top: 10px;
}

.filter-inline {
  width: min(280px, 100%);
}

.hidden {
  display: none !important;
}

.error-text {
  color: var(--danger);
}

.success-text {
  color: var(--success);
}

.modal {
  width: min(720px, calc(100vw - 32px));
  color: var(--text);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.empty-state {
  padding: 20px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  text-align: center;
}

code {
  color: #ffe7a6;
}

@media (max-width: 1080px) {
  .customer-layout,
  .admin-grid,
  .stats-grid,
  .hero-content {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar,
  .section-head,
  .subhead,
  .modal-head {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 10px;
  }

  .hero,
  .card,
  .modal {
    padding: 18px;
    border-radius: 22px;
  }

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

  .inline-input {
    flex-direction: column;
  }
}
