:root {
  --bg: #09090b;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #f7f7f8;
  --muted: #b8b8c2;
  --gold: #f5c76b;
  --gold-dark: #b9852d;
  --green: #50fa7b;
  --danger: #ff6b6b;
  --border: rgba(255, 255, 255, 0.13);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 199, 107, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(136, 84, 255, 0.16), transparent 35%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.background-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: -1;
}

.orb-one {
  top: 5%;
  left: 8%;
  background: #f5c76b;
}

.orb-two {
  bottom: 5%;
  right: 8%;
  background: #7c3aed;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
}

.hero-panel,
.chat-panel {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: 34px;
  padding: 42px;
}

.brand-pill {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(245, 199, 107, 0.14);
  border: 1px solid rgba(245, 199, 107, 0.35);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 26px;
}

.hero-panel h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin: 0 0 24px;
}

.hero-panel p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.quick-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 650;
}

.quick-btn:hover {
  transform: translateY(-2px);
  background: rgba(245, 199, 107, 0.16);
  border-color: rgba(245, 199, 107, 0.45);
}

.selling-card {
  margin-top: 34px;
  padding: 18px;
  border-radius: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--border);
}

.selling-card p {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 4px;
}

.dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--green);
  flex: 0 0 auto;
}

.chat-panel {
  height: min(850px, calc(100vh - 64px));
  min-height: 680px;
  border-radius: 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.18);
}

.chat-header div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-header small {
  color: var(--muted);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

#clearChatBtn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
}

#clearChatBtn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.message {
  display: flex;
  gap: 12px;
  max-width: 88%;
  animation: messageIn 0.22s ease both;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.bubble {
  padding: 15px 17px;
  border-radius: 22px;
  line-height: 1.55;
  color: #f4f4f5;
  border: 1px solid var(--border);
  white-space: pre-wrap;
}

.message.assistant .bubble {
  background: rgba(255, 255, 255, 0.085);
  border-top-left-radius: 6px;
}

.message.user .bubble {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #17120a;
  border: none;
  font-weight: 650;
  border-top-right-radius: 6px;
}

.typing {
  color: var(--muted);
  font-style: italic;
}

.image-gallery {
  padding: 0 24px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.image-gallery.hidden {
  display: none;
}

.image-gallery img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: 0.2s ease;
}

.image-gallery img:hover {
  transform: scale(1.04);
}

.chat-input-area {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.chat-input-area input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 16px 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-size: 15px;
}

.chat-input-area input::placeholder {
  color: #888892;
}

.chat-input-area input:focus {
  border-color: rgba(245, 199, 107, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 199, 107, 0.1);
}

.chat-input-area button {
  border: none;
  border-radius: 999px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #17120a;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.chat-input-area button:hover {
  transform: translateY(-1px);
}

.chat-input-area button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes messageIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 950px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .chat-panel {
    height: 760px;
  }

  .hero-panel {
    padding: 28px;
  }

  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.image-gallery {
  padding: 0 24px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-height: 330px;
  overflow-y: auto;
}

.dish-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  overflow: hidden;
  animation: messageIn 0.25s ease both;
}

.dish-card img,
.dish-placeholder {
  width: 100%;
  height: 128px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 38px;
  background:
    radial-gradient(circle at top left, rgba(245, 199, 107, 0.24), transparent 40%),
    rgba(255, 255, 255, 0.08);
}

.dish-card-body {
  padding: 14px;
}

.dish-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.dish-card-top small {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dish-card-top strong {
  color: var(--text);
  font-size: 14px;
}

.dish-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.dish-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.dish-tags span {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #17120a;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  font-weight: 800;
}

.dish-allergens {
  color: #a9a9b3;
  font-size: 11px;
  line-height: 1.35;
}

.dish-message {
  max-width: 96%;
}

.dish-cards-wrapper {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dish-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  overflow: hidden;
  animation: messageIn 0.25s ease both;
}

.dish-media {
  width: 100%;
  height: 145px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(245, 199, 107, 0.24), transparent 40%),
    rgba(255, 255, 255, 0.08);
}

.dish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.dish-media img:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.dish-placeholder {
  width: 100%;
  height: 145px;
  display: grid;
  place-items: center;
  font-size: 38px;
}

.dish-card-body {
  padding: 14px;
}

.dish-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.dish-card-top small {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dish-card-top strong {
  color: var(--text);
  font-size: 14px;
}

.dish-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.dish-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.dish-tags span {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #17120a;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  font-weight: 800;
}

.dish-allergens {
  color: #a9a9b3;
  font-size: 11px;
  line-height: 1.35;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
}

.image-modal.hidden {
  display: none;
}

.image-modal img {
  max-width: min(920px, 94vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.image-modal-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.image-modal-close:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 720px) {
  .dish-cards-wrapper {
    grid-template-columns: 1fr;
  }

  .dish-message {
    max-width: 100%;
  }
}

.restaurant-logo-area {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.restaurant-logo {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 42px;
  background:
    radial-gradient(circle at top left, rgba(245, 199, 107, 0.38), transparent 45%),
    rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(245, 199, 107, 0.35);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  flex: 0 0 auto;
}

.restaurant-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: -14px;
}

.restaurant-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.restaurant-action-btn {
  text-decoration: none;
  border: 1px solid rgba(245, 199, 107, 0.42);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #17120a;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.restaurant-action-btn:link,
.restaurant-action-btn:visited,
.restaurant-action-btn:hover,
.restaurant-action-btn:active {
  text-decoration: none;
  color: #17120a;
}

.restaurant-action-btn.secondary:link,
.restaurant-action-btn.secondary:visited,
.restaurant-action-btn.secondary:hover,
.restaurant-action-btn.secondary:active {
  text-decoration: none;
  color: var(--text);
}

.restaurant-action-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--border);
}

.restaurant-action-btn:hover {
  transform: translateY(-2px);
}

.restaurant-action-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.allergen-note {
  margin-top: 18px;
  border: 1px solid rgba(245, 199, 107, 0.24);
  background: rgba(245, 199, 107, 0.08);
  border-radius: 22px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.allergen-note strong {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.allergen-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.restaurant-actions a,
.restaurant-actions a:link,
.restaurant-actions a:visited,
.restaurant-actions a:hover,
.restaurant-actions a:active {
  color: #17120a !important;
  text-decoration: none !important;
}

.restaurant-actions a.secondary,
.restaurant-actions a.secondary:link,
.restaurant-actions a.secondary:visited,
.restaurant-actions a.secondary:hover,
.restaurant-actions a.secondary:active {
  color: #f7f7f8 !important;
  text-decoration: none !important;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
  font-weight: 700;
}

.language-select:hover {
  border-color: rgba(245, 199, 107, 0.45);
  background: rgba(245, 199, 107, 0.12);
}

.language-select option {
  background: #15151a;
  color: #f7f7f8;
}