:root {
  --midnight: #0f172a;
  --deep-indigo: #1e2a78;
  --royal: #315bff;
  --amber-gold: #f4b740;
  --sunset-coral: #ff7a59;
  --soft-cream: #fff8ed;
  --surface: #fff8ef;
  --surface-low: #faf3e8;
  --surface-card: #ffffff;
  --surface-muted: #f4ede2;
  --slate-900: #111827;
  --slate-700: #374151;
  --slate-500: #6b7280;
  --slate-300: #d1d5db;
  --slate-200: #e5e7eb;
  --slate-100: #f3f4f6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 60px rgba(17, 24, 39, 0.08);
  --shadow-card: 0 18px 40px rgba(17, 24, 39, 0.06);
  --shadow-glow: 0 20px 50px rgba(30, 42, 120, 0.08);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--slate-900);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
  font-family: 'Epilogue', 'Manrope', sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(255, 248, 239, 0.78);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.topbar-inner,
.container,
.page-content,
.hero-inner,
.footer-inner {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 900;
  color: var(--midnight);
}

.brandmark img {
  width: 38px;
  height: 38px;
}

.brandmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brandmark-text strong {
  font-size: 1.15rem;
}

.brandmark-text span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate-500);
}

.nav-links,
.nav-actions,
.hero-search,
.inline-actions,
.filter-row,
.chip-group,
.kpi-grid,
.card-grid,
.form-grid,
.stats-strip,
.slot-grid,
.info-stack,
.split-layout,
.admin-stats,
.tile-grid,
.action-pills,
.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a,
.nav-actions a,
.nav-actions button {
  font-weight: 700;
  color: var(--slate-700);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
}

.language-switcher select {
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.96);
  color: var(--slate-700);
  font-weight: 700;
}

.language-switcher.compact select {
  min-height: 44px;
  max-width: 136px;
  padding-inline: 0.8rem 2rem;
  box-shadow: var(--shadow-card);
  color: var(--midnight);
  font-size: 0.83rem;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links a.active,
.nav-links a:hover,
.nav-actions a:hover {
  color: var(--midnight);
}

.page-section {
  padding: 3rem 0;
}

.page-section.compact {
  padding: 2rem 0;
}

.hero {
  position: relative;
  padding: 3rem 0 4rem;
}

.hero.full {
  min-height: 72vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero.full::before,
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.82));
}

.hero-media,
.hero-image {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.hero-copy {
  max-width: 760px;
  color: white;
}

.hero-copy .eyebrow,
.section-header .eyebrow,
.panel-header .eyebrow,
.sidebar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(244, 183, 64, 0.14);
  color: white;
}

.section-header .eyebrow,
.panel-header .eyebrow {
  color: var(--deep-indigo);
  background: rgba(49, 91, 255, 0.08);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.98;
  margin: 1rem 0;
}

.hero p,
.section-header p,
.card-subtitle,
.muted {
  color: rgba(255, 255, 255, 0.82);
}

.hero-panel,
.glass-panel {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.12);
  padding: 1rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.hero-search {
  align-items: center;
}

.hero-field,
.form-field,
.select-field,
.search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  color: var(--slate-900);
  flex: 1 1 180px;
}

.hero-field select,
.hero-field input,
.form-field input,
.form-field textarea,
.form-field select,
.search-field input,
.search-field select {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: inherit;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
  padding: 1rem 0;
}

.primary-button,
.secondary-button,
.ghost-button,
.link-button,
.tag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: 18px;
  border: none;
  font-weight: 800;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, #0f172a 0%, #1e2a78 100%);
  color: white;
  box-shadow: var(--shadow-glow);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.tag-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  background: var(--surface-muted);
  color: var(--midnight);
}

.ghost-button {
  background: transparent;
  color: var(--deep-indigo);
}

.link-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--deep-indigo);
}

.tag-button,
.chip,
.meta-chip {
  min-height: 40px;
  background: var(--surface-muted);
  color: var(--slate-700);
  border-radius: 999px;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.chip.active,
.tag-button.active {
  background: var(--midnight);
  color: white;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.section-header p {
  max-width: 620px;
  color: var(--slate-500);
}

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

.restaurant-card,
.content-card,
.form-card,
.kpi-card,
.table-card,
.list-card,
.qr-panel,
.hero-summary-card,
.info-card,
.editorial-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.restaurant-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}

.restaurant-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.restaurant-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.82) 100%);
}

.restaurant-media .restaurant-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  color: white;
}

.restaurant-body {
  padding: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.restaurant-body h3 {
  font-size: 1.25rem;
}

.meta-row,
.list-row,
.table-inline,
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.meta-row {
  color: var(--slate-500);
  font-size: 0.92rem;
}

.rating-pill,
.pill,
.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rating-pill {
  background: rgba(244, 183, 64, 0.16);
  color: var(--midnight);
}

.discount-badge {
  position: relative;
  z-index: 2;
}

.discount-gold {
  background: linear-gradient(135deg, #f4b740 0%, #ffd87a 100%);
  color: var(--midnight);
}

.discount-coral {
  background: linear-gradient(135deg, #ff7a59 0%, #ff9873 100%);
  color: white;
}

.discount-outline {
  background: rgba(49, 91, 255, 0.06);
  color: var(--deep-indigo);
  box-shadow: inset 0 0 0 1px rgba(49, 91, 255, 0.24);
}

.pill.is-success-soft { background: rgba(34, 197, 94, 0.12); color: #166534; }
.pill.is-warning-soft { background: rgba(245, 158, 11, 0.15); color: #92400e; }
.pill.is-danger-soft { background: rgba(239, 68, 68, 0.12); color: #991b1b; }
.pill.is-info-soft { background: rgba(14, 165, 233, 0.12); color: #0c4a6e; }
.pill.is-muted-soft { background: rgba(107, 114, 128, 0.12); color: var(--slate-700); }

.hero-summary-card,
.content-card,
.form-card,
.table-card,
.list-card,
.editorial-card,
.info-card {
  padding: 1.5rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card {
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,243,232,0.95));
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.kpi-value {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  margin-top: 0.5rem;
}

.kpi-note {
  color: var(--slate-500);
  font-size: 0.88rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.form-card h3,
.content-card h3,
.table-card h3,
.list-card h3,
.hero-summary-card h3,
.qr-panel h3,
.info-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.info-stack {
  display: grid;
  gap: 1rem;
}

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

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

.form-field label,
.field-label {
  font-size: 0.78rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.field-stack {
  display: grid;
  gap: 0.45rem;
}

.table-card,
.list-card {
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--surface-low);
}

.data-table th,
.data-table td {
  padding: 1rem;
  vertical-align: top;
  text-align: left;
}

.data-table th {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.data-table tbody tr + tr {
  border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.list-stack {
  display: grid;
  gap: 0.9rem;
}

.list-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.list-item + .list-item {
  border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: white;
  padding: 2rem 1.2rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1.5rem;
}

.sidebar .brandmark {
  color: white;
}

.sidebar .brandmark-text span,
.sidebar small,
.sidebar .sidebar-meta {
  color: rgba(255,255,255,0.6);
}

.sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 50px;
  padding: 0 1rem;
  border-radius: 16px;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.main-panel {
  background: var(--surface);
}

.page-content {
  padding: 2rem 0 4rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-500);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.breadcrumbs span.current {
  color: var(--deep-indigo);
  font-weight: 800;
}

.flash-stack {
  position: sticky;
  top: 84px;
  z-index: 40;
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin-top: 0.9rem;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  background: white;
}

.flash.success { border-left: 4px solid var(--success); }
.flash.warning { border-left: 4px solid var(--warning); }
.flash.danger { border-left: 4px solid var(--danger); }
.flash.info { border-left: 4px solid var(--info); }

.mobile-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  z-index: 50;
}

.mobile-bottom-nav a {
  min-width: 72px;
  min-height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--slate-500);
  font-size: 0.78rem;
  font-weight: 800;
}

.mobile-bottom-nav a.active {
  background: var(--midnight);
  color: white;
}

.footer {
  padding: 3rem 0 5rem;
  color: var(--slate-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}

.hero-gallery,
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.gallery-grid .stack {
  display: grid;
  gap: 1rem;
}

.gallery-image,
.hero-gallery img {
  border-radius: var(--radius-xl);
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

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

.slot-card {
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface-low);
  display: grid;
  gap: 0.55rem;
}

.slot-card.is-active {
  background: rgba(49, 91, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(49, 91, 255, 0.18);
}

.slot-card.is-muted {
  opacity: 0.58;
}

.metric-row {
  display: grid;
  gap: 0.35rem;
}

.qr-panel {
  text-align: center;
  padding: 1.5rem;
}

.qr-panel img {
  width: min(100%, 260px);
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 24px;
  background: white;
}

.timeline-list {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
}

.timeline-item strong {
  color: var(--deep-indigo);
}

.editorial-card {
  min-height: 100%;
}

.editorial-image {
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--slate-500);
}

.auth-card {
  width: min(calc(100% - 2rem), 540px);
  margin: 2rem auto 4rem;
  background: white;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.demo-account-grid {
  display: grid;
  gap: 0.75rem;
}

.demo-account {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--surface-low);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stats-chip {
  padding: 1rem;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-card);
}

.code-box {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: var(--midnight);
  color: white;
  font-weight: 700;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.notice {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(49, 91, 255, 0.08);
  color: var(--deep-indigo);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.hidden-desktop {
  display: none;
}

@media (max-width: 1080px) {
  .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .restaurant-card {
    grid-column: span 3;
  }

  .split-layout,
  .sidebar-layout,
  .footer-grid,
  .stats-strip,
  .kpi-grid,
  .form-grid,
  .hero-gallery,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .sidebar-layout {
    min-height: auto;
  }

  .page-content {
    padding-top: 1.5rem;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .container,
  .page-content,
  .hero-inner,
  .footer-inner,
  .flash-stack {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .nav-links,
  .nav-actions .desktop-only,
  .hidden-mobile {
    display: none !important;
  }

  .mobile-bottom-nav,
  .hidden-desktop {
    display: flex;
  }

  .topbar-inner {
    min-height: 68px;
  }

  .brandmark-text span {
    display: none;
  }

  .brandmark-text strong {
    font-size: 1rem;
  }

  .nav-actions {
    margin-left: auto;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  .language-switcher.compact select {
    max-width: 112px;
    padding-inline: 0.65rem 1.8rem;
  }

  .page-section {
    padding: 2.25rem 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-card {
    grid-column: span 1;
  }

  .slot-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-panel,
  .glass-panel {
    padding: 0.85rem;
  }

  .hero-search {
    gap: 0.75rem;
  }

  .hero-field,
  .form-field,
  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--slate-700);
  font-weight: 600;
}

.checkbox-field input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--royal-blue);
}
