:root {
  --radius: 0.875rem;
  --background: #000000;
  --foreground: #f8f8f8;
  --surface: #141414;
  --surface-elevated: #1f1f1f;
  --card: #141414;
  --border: #2e2e2e;
  --brand: #e11d1d;
  --brand-foreground: #ffffff;
  --muted-foreground: #a3a3a3;
  --font-display: "Bebas Neue", "Impact", sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --shadow-glow: 0 0 40px -8px rgba(225, 29, 29, 0.55);
  --shadow-card: 0 6px 24px -8px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html, body, #app {
  height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hidden { display: none !important; }

/* HEADER */
.header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  padding: 0.75rem 1.5rem;
}

.header-logo img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.header-orders {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

.orders-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.75rem 1.25rem;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s;
}

.orders-toggle:hover { border-color: var(--brand); }

.orders-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.roka-icon {
  height: 3.5rem;
  width: 3.5rem;
  flex-shrink: 0;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.15s;
}

.roka-icon:hover { transform: scale(1.05); }
.roka-icon:active { transform: scale(0.95); }

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

.orders-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.orders-badge {
  border-radius: 0.375rem;
  background: rgba(225, 29, 29, 0.15);
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.chevron {
  color: var(--muted-foreground);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.orders-toggle[aria-expanded="true"] .chevron,
.lang-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.orders-dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 40;
  width: 520px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.75rem;
  cursor: default;
}

.order-item:hover { background: var(--surface); }

.order-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.status-dot {
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--surface-elevated);
  color: var(--muted-foreground);
}

.status-dot.preparing { background: var(--surface-elevated); color: var(--muted-foreground); }
.status-dot.ready { background: var(--brand); color: var(--brand-foreground); }
.status-dot.served { background: var(--surface-elevated); color: var(--muted-foreground); }

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

.order-label {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-eta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

/* ACTIONS */
.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.lang-wrapper, .settings-wrapper { position: relative; }

.lang-toggle {
  display: flex;
  height: 3rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 0.75rem;
  color: var(--foreground);
  cursor: pointer;
  transition: border-color 0.2s;
}

.lang-toggle:hover { border-color: var(--brand); }
.lang-toggle[aria-expanded="true"] { border-color: var(--brand); }

.lang-flag { font-size: 1.25rem; line-height: 1; }
.lang-name { font-size: 0.875rem; font-weight: 600; }

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 14rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-card);
}

.lang-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover { background: var(--surface); }
.lang-option.active { background: var(--surface); color: var(--brand); }

.lang-option-flag { font-size: 1.25rem; line-height: 1; }

.check {
  margin-left: auto;
  color: currentColor;
}

.settings-toggle {
  display: grid;
  height: 3rem;
  width: 3rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.settings-toggle:hover { border-color: var(--brand); }
.settings-toggle[aria-expanded="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-foreground);
}

.settings-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 16rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-card);
}

.settings-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.settings-item:hover { background: var(--surface); }
.settings-item.accent { color: var(--brand); font-weight: 600; }

.settings-icon {
  display: grid;
  height: 2rem;
  width: 2rem;
  place-items: center;
  border-radius: 0.375rem;
  background: var(--surface);
}

.settings-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}

/* MAIN */
.main {
  flex: 1;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main-overlay {
  display: flex;
  height: 100%;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.6);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem;
}

.brush-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
}

.brush-stroke {
  position: absolute;
  pointer-events: none;
  height: 260%;
  width: 170%;
  object-fit: contain;
  opacity: 0.95;
}

.section-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: 0.025em;
  color: var(--foreground);
}

.section-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* DISH SCROLL */
.dish-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1.5rem 1rem;
  scrollbar-width: none;
}

.dish-scroll::-webkit-scrollbar { display: none; }

.dish-row {
  display: flex;
  height: 100%;
  min-width: 100%;
  gap: 1rem;
}

.dish-card {
  position: relative;
  display: flex;
  height: 100%;
  width: 28rem;
  flex-shrink: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dish-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-glow);
}

.dish-image-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.dish-image-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.dish-card:hover .dish-image-wrap img { transform: scale(1.05); }

.dish-tag {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dish-tag.hot { background: var(--brand); color: var(--brand-foreground); }
.dish-tag.new { background: var(--foreground); color: var(--background); }
.dish-tag.chef { background: rgba(0, 0, 0, 0.8); color: var(--foreground); backdrop-filter: blur(4px); }

.dish-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6rem;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}

.dish-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.dish-name {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dish-price {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}

.dish-action {
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s;
}

.dish-card:hover .dish-action { transform: scale(1.1); }

.empty-state {
  display: grid;
  height: 100%;
  width: 100%;
  place-items: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-scroll {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.75rem;
  scrollbar-width: none;
}

.footer-scroll::-webkit-scrollbar { display: none; }

.footer-btn {
  display: flex;
  min-width: 112px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.footer-btn:hover { background: var(--background); color: var(--foreground); }

.footer-btn.active {
  background: var(--brand);
  color: var(--brand-foreground);
}

.footer-btn img {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: contain;
  transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}

.footer-btn.info-btn img {
  border-radius: 9999px;
  object-fit: cover;
}

.footer-btn:not(.active) img { opacity: 0.8; }
.footer-btn:not(.active):hover img { opacity: 1; }
.footer-btn.active img {
  filter: brightness(0) invert(1);
}

.footer-btn span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* MODALS */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  display: flex;
  max-height: 100%;
  width: 100%;
  max-width: 64rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-card);
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 10;
  display: grid;
  height: 2.5rem;
  width: 2.5rem;
  place-items: center;
  border: none;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--foreground);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover { background: var(--brand); color: var(--brand-foreground); }

.dish-panel { flex-direction: row; }

.dish-modal-left {
  position: relative;
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.dish-modal-left img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.dish-modal-right {
  display: flex;
  width: 50%;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem;
}

.modal-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--brand);
}

.modal-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: 0.025em;
}

.modal-desc {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.modal-allergens { margin-top: 1.5rem; }

.allergen-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.allergen-list span {
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--surface);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
}

.price-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.price-value {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--brand);
}

.add-to-cart {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius);
  background: var(--brand);
  padding: 0.75rem 1.25rem;
  color: var(--brand-foreground);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: filter 0.15s;
}

.add-to-cart:hover { filter: brightness(1.1); }

/* INFO MODAL */
.info-panel {
  max-width: 42rem;
  flex-direction: column;
  padding: 2rem;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-header img {
  height: 12rem;
  width: 12rem;
  border-radius: 9999px;
  object-fit: cover;
}

.info-body {
  overflow-y: auto;
  padding-right: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.info-body > p { margin-bottom: 1rem; }

.info-subtitle {
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

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

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--surface);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.legend-icon.brand { color: var(--brand); }

.dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--foreground);
}

.dot.ring {
  background: var(--background);
  box-shadow: 0 0 0 1px var(--foreground);
}

/* LANDSCAPE TABLET ADJUSTMENTS */
@media (orientation: landscape) and (max-height: 800px) {
  .header { padding: 0.5rem 1rem; }
  .section-title { font-size: 2rem; }
  .dish-card { width: 24rem; }
}
