﻿body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: linear-gradient(180deg, #f4f0e2 0%, #fff8e5 35%, #fefaf6 100%);
  color: #101010;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.landing-grid {
  margin-bottom: 1.5rem;
}

.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.button-primary {
  background: #2c2c2c;
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(44, 44, 44, 0.15);
}

.button-secondary {
  background: transparent;
  color: #2c2c2c;
  border: 2px solid rgba(44, 44, 44, 0.15);
}

@media (max-width: 620px) {
  .landing-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .landing-hero-actions .button {
    width: 100%;
  }
}

.menu-body {
  background: #f5b31a;
  color: #2c2c2c;
}

.menu-header {
  background: #2c2c2c;
  color: #ffffff;
  padding: 2rem 1rem 3rem;
  text-align: center;
  position: relative;
  min-height: 20vh;
}

.menu-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.menu-logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(245, 179, 26, 0.5);
  margin-bottom: 1rem;
}

.menu-header h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.menu-slogan {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #b5b5b5;
  margin: 0 auto 1.25rem;
  max-width: 520px;
}

.menu-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  letter-spacing: 0.12em;
  margin: 0;
  color: #f5b31a;
}

.menu-brush {
  height: 44px;
  background: #f5b31a;
  margin-top: -22px;
  position: relative;
  border-radius: 0 0 40% 40% / 0 0 80% 80%;
  overflow: hidden;
}

.menu-brush-bottom {
  height: 44px;
  background: #f5b31a;
  margin-top: 0;
  border-radius: 40% 40% 0 0 / 80% 80% 0 0;
  margin-bottom: -22px;
}

.menu-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
}

.menu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.menu-nav a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #2c2c2c;
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #2c2c2c;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.menu-nav a:hover {
  background: #2c2c2c;
  color: #f5b31a;
}

.menu-empty {
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #2c2c2c;
}

.menu-columns {
  columns: 2;
  column-gap: 3rem;
}

.menu-category {
  break-inside: avoid;
  margin-bottom: 2.5rem;
}

.menu-category h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: #2c2c2c;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  border-bottom: 3px solid #2c2c2c;
  padding-bottom: 0.5rem;
}

.menu-category-desc {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: rgba(44, 44, 44, 0.7);
  margin: 0 0 1.25rem;
}

.menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(44, 44, 44, 0.25);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 14px;
  border: 1.5px solid rgba(44, 44, 44, 0.25);
}

.menu-item-body {
  flex: 1;
  min-width: 0;
}

.menu-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.menu-item-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #2c2c2c;
}

.menu-item-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c2c2c;
  white-space: nowrap;
}

.menu-item-desc {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(44, 44, 44, 0.72);
  margin: 0.25rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-item .badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #2c2c2c;
  color: #f5b31a;
  font-size: 0.7rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.menu-footer {
  background: #2c2c2c;
  color: #ffffff;
  padding: 4rem 1rem 2.5rem;
  margin-top: 1.5rem;
}

.menu-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.menu-social {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #f5b31a;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid rgba(245, 179, 26, 0.6);
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.menu-social:hover {
  background: #f5b31a;
  color: #2c2c2c;
}

.menu-hours {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: #b5b5b5;
  width: 100%;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #f4f0e2;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/logo.jpg");
  background-size: 780px auto;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px) saturate(0.9);
  opacity: 0.5;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.login-card,
.dashboard-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 16, 16, 0.08);
  padding: 2rem;
}

.login-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-card h1,
.dashboard-card h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

.login-card label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #374151;
}

.login-hint {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

.login-hint code {
  background: #f4f0e2;
  padding: 0.15rem 0.4rem;
  border-radius: 0.4rem;
  color: #101010;
}

.login-card input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  font-size: 1rem;
  color: #101010;
  background: #ffffff;
}

.login-card button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  border: none;
  border-radius: 0.85rem;
  cursor: pointer;
  font-size: 1rem;
  background: #f2c200;
  color: #101010;
}

@media (max-width: 720px) {
  .login-card,
  .dashboard-card {
    max-width: 100%;
    padding: 1.5rem;
  }

  .login-card h1,
  .dashboard-card h1 {
    font-size: 1.5rem;
  }

  .login-card input,
  .login-card button {
    font-size: 0.95rem;
  }
}

.alert {
  padding: 1rem;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background: #fde0db;
  color: #c92d1f;
}

.dashboard-hero {
  max-width: 1200px;
  margin-bottom: 1.5rem;
}

.dashboard-hero-copy {
  margin-bottom: 1.5rem;
}

.dashboard-eyebrow {
  display: inline-flex;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d48806;
  margin-bottom: 0.5rem;
}

.dashboard-hero h1 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #101010;
}

.dashboard-hero p {
  margin: 0.5rem 0 0;
  color: #6b7280;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.dashboard-stat {
  position: relative;
  padding: 1.25rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(16, 16, 16, 0.06);
  box-shadow: 0 10px 24px rgba(16, 16, 16, 0.05);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.dashboard-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(16, 16, 16, 0.12);
}

.dashboard-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.dashboard-stat-icon svg {
  width: 22px;
  height: 22px;
}

.dashboard-stat h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #101010;
}

.dashboard-stat p {
  margin: 0.35rem 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.tone-amber .dashboard-stat-icon {
  background: #fef3c7;
  color: #b45309;
}

.tone-charcoal .dashboard-stat-icon {
  background: #e5e7eb;
  color: #374151;
}

.tone-green .dashboard-stat-icon {
  background: #d1fae5;
  color: #047857;
}

.tone-red .dashboard-stat-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.dashboard-section-title {
  margin: 0 0 1.25rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #101010;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid rgba(16, 16, 16, 0.07);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.quick-link:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 179, 26, 0.7);
  box-shadow: 0 16px 34px rgba(16, 16, 16, 0.1);
}

.quick-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  background: #2c2c2c;
  color: #f5b31a;
}

.quick-link-icon svg {
  width: 22px;
  height: 22px;
}

.quick-link-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quick-link-copy strong {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: #101010;
}

.quick-link-copy span {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  color: #6b7280;
}

.quick-link-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: #b5b5b5;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.quick-link:hover .quick-link-arrow {
  transform: translateX(3px);
  color: #f24030;
}

.admin-nav {
  background: #f2c200;
  color: #101010;
  padding: 1rem 1.5rem;
  box-shadow: 0 16px 40px rgba(16, 16, 16, 0.1);
}

.admin-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-nav-brand,
.admin-nav-links a,
.admin-nav-logout {
  color: #101010;
  text-decoration: none;
}

.admin-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.admin-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.admin-nav-links a {
  color: #101010;
  opacity: 0.7;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.admin-nav-links a:hover {
  color: #101010;
  opacity: 1;
}

.admin-nav-logout {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 16, 16, 0.2);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.admin-nav-logout:hover {
  background: rgba(16, 16, 16, 0.08);
}

.admin-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  width: 100%;
}

button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  border: none;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  background: #f2c200;
  color: #101010;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 16, 16, 0.12);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  background: #ffffff;
  font-size: 1rem;
  color: #101010;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) calc(50% - 0.15rem),
    calc(100% - 0.65rem) calc(50% - 0.15rem);
  background-size:
    0.55rem 0.55rem,
    0.55rem 0.55rem;
  background-repeat: no-repeat;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.25rem;
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(16, 16, 16, 0.06);
  border: 1px solid rgba(16, 16, 16, 0.05);
}

.table th,
.table td {
  padding: 1rem;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table th {
  background: #f7f4ea;
  color: #101010;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table tbody tr {
  transition: background 0.15s ease;
}

.table tbody tr:hover {
  background: #faf9f4;
}

.table td:last-child {
  white-space: nowrap;
}

.table .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.row-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    color 0.15s ease;
}

.row-action:hover {
  transform: translateY(-1px);
}

.row-action-edit {
  background: rgba(245, 179, 26, 0.18);
  color: #8a6d00;
}

.row-action-edit:hover {
  background: #f5b31a;
  color: #2c2c2c;
}

.row-action-delete {
  background: rgba(242, 64, 48, 0.12);
  color: #c92d1f;
}

.row-action-delete:hover {
  background: #f24030;
  color: #ffffff;
}

.table .inline-form button {
  background: transparent;
  border: none;
  color: #c92d1f;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.table .inline-form button:hover {
  background: #f24030;
  color: #ffffff;
}

.table a {
  color: #101010;
  text-decoration: none;
  font-weight: 600;
}

.table a:hover {
  color: #f24030;
}

.qr-preview {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 0.35rem;
  background: #ffffff;
}

.qr-token {
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  color: #6b7280;
  word-break: break-all;
  margin-top: 0.25rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.badge-danger {
  background: rgba(242, 64, 48, 0.12);
  color: #f24030;
}

.dashboard-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.create-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: #2c2c2c;
  color: #f5b31a;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.create-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(44, 44, 44, 0.22);
  background: #000000;
}

.create-link::before {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 800;
}

.button-secondary {
  background: #f24030;
  color: #ffffff;
}

.button-secondary:hover {
  background: #c92d1f;
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.85rem;
  background: transparent;
  color: #101010;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.button-ghost:hover {
  background: rgba(16, 16, 16, 0.06);
  color: #f24030;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.product-image-preview {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-image-preview img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.product-image-preview p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.dashboard-card form > label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #101010;
}

.dashboard-card input[type="file"] {
  width: 100%;
  font-size: 0.95rem;
  color: #374151;
}

.dashboard-card input[type="file"]::file-selector-button {
  background: #f2c200;
  color: #101010;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  border-radius: 0.85rem;
  padding: 0.85rem 1.2rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dashboard-card input[type="file"]::file-selector-button:hover {
  background: #f7d94a;
}

.inline-form {
  display: inline-block;
  margin: 0 0 0 0.75rem;
}

.inline-form button {
  background: transparent;
  border: none;
  color: #f24030;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}

.inline-form button:hover {
  color: #c92d1f;
}

.dashboard-card {
  max-width: 100%;
}

.dashboard-card p a:not(.create-link) {
  color: #101010;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-card p a:not(.create-link):hover {
  text-decoration: underline;
}

.inline-form button {
  background: transparent;
  border: none;
  color: #f24030;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}

@media (max-width: 640px) {
  .menu-logo {
    width: 86px;
    height: 86px;
  }

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

@media (max-width: 900px) {
  .menu-columns {
    columns: 1;
  }

  .menu-header {
    padding: 2.5rem 1rem 3.5rem;
  }
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #2c2c2c;
  color: #f5b31a;
  box-shadow: 0 10px 28px rgba(16, 16, 16, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #101010;
}

@media (max-width: 900px) {
  .back-to-top {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .table {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .table tbody tr {
    background: #ffffff;
    border: 1px solid rgba(16, 16, 16, 0.05);
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(16, 16, 16, 0.06);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
  }

  .table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef0f3;
    white-space: normal;
    text-align: right;
  }

  .table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
  }

  .table td:last-child {
    border-bottom: none;
  }

  .table td.row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    border-top: 1px solid #eef0f3;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
  }

  .table td.row-actions::before {
    width: 100%;
  }

  .qr-preview {
    width: 56px;
    height: 56px;
  }
}

.table-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 1.25rem;
}

.table-search-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
}

.table-search-input {
  width: 100%;
  max-width: 420px;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.95rem;
  color: #101010;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.table-search-input:focus {
  outline: none;
  border-color: #f5b31a;
  box-shadow: 0 0 0 4px rgba(245, 179, 26, 0.18);
}

.table-search-empty {
  margin: 1.25rem 0 0;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(242, 64, 48, 0.06);
  border: 1px dashed rgba(242, 64, 48, 0.35);
  color: #c92d1f;
  font-weight: 600;
  text-align: center;
}

.menus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.menu-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(16, 16, 16, 0.06);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 16, 16, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 16, 16, 0.1);
}

.menu-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.menu-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.25rem 1.25rem;
}

.menu-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.menu-card-header h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #101010;
}

.menu-card-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(245, 179, 26, 0.15);
  color: #8a6300;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.menu-card-description {
  margin: 0.5rem 0 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

.menu-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.menu-card-meta span {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
}

.menu-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eef0f3;
}

.menu-card-actions .inline-form {
  margin: 0;
}

.menu-card-actions .row-action {
  padding: 0.4rem 0.7rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
}

.menu-card-actions .inline-form button.row-action {
  display: inline-block;
  border: none;
  text-decoration: none;
}

.menu-card-actions button.btn-primary {
  background: #f2c200;
  color: #101010;
  border: none;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
}

.menu-card-actions button.btn-primary:hover {
  background: #f7d94a;
  color: #101010;
}

.menu-card-actions button.row-action-qr {
  background: #f2c200;
  color: #101010;
}

.menu-card-actions button.row-action-qr:hover {
  background: #f7d94a;
  color: #101010;
}

.menu-card-actions button.row-action-duplicate {
  background: #e5e7eb;
  color: #374151;
}

.menu-card-actions button.row-action-duplicate:hover {
  background: #d1d5db;
  color: #101010;
}

.menu-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.menu-card-status .inline-form {
  margin: 0;
}

.menu-card-status button.badge-active {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
}

.menu-card-status button.badge-active:hover {
  background: rgba(22, 163, 74, 0.22);
}

.menu-card-status button.badge-inactive {
  background: rgba(242, 64, 48, 0.12);
  color: #f24030;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
}

.menu-card-status button.badge-inactive:hover {
  background: rgba(242, 64, 48, 0.22);
}

.menu-card-move {
  display: flex;
  gap: 0.35rem;
}

.menu-card-move .inline-form {
  margin: 0;
}

.menu-card-move button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #374151;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.menu-card-move button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.menu-card-delete {
  margin: 0.9rem 0 0 !important;
  text-align: center;
}

.menu-card-delete button {
  color: #9ca3af;
  font-size: 0.8rem;
}

.menu-card-delete button:hover {
  color: #f24030;
}

.admin-nav-menu-select {
  margin: 0 0.75rem;
}

.admin-nav-menu-select select {
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-nav-menu-select select:focus {
  outline: none;
  border-color: #f5b31a;
}

.admin-nav-menu-select option {
  color: #101010;
}

.menu-form {
  max-width: 640px;
}

.menu-form .form-group {
  margin-top: 1rem;
}

.menu-form label,
.menu-form legend {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #101010;
  font-weight: 600;
}

.menu-form input[type="text"],
.menu-form input[type="number"],
.menu-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #101010;
  background: #ffffff;
  font-family: inherit;
}

.menu-form input[type="text"]:focus,
.menu-form input[type="number"]:focus,
.menu-form textarea:focus {
  outline: none;
  border-color: #f5b31a;
  box-shadow: 0 0 0 4px rgba(245, 179, 26, 0.18);
}

.menu-form input[type="color"] {
  width: 56px;
  height: 40px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 0.6rem;
  background: #ffffff;
  cursor: pointer;
}

.menu-form-fieldset {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
}

.menu-form-fieldset legend {
  padding: 0 0.4rem;
  font-family: "Montserrat", sans-serif;
}

.menu-form-hint {
  margin: 0 0 0.9rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.menu-form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #374151;
  cursor: pointer;
}

.menu-form-check input {
  width: auto;
  margin: 0;
}

.menu-form-image {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-form-image img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.menu-form-image label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.schedule-row select,
.schedule-row input[type="time"] {
  padding: 0.55rem 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: #ffffff;
  color: #101010;
}

.schedule-row select:focus,
.schedule-row input[type="time"]:focus {
  outline: none;
  border-color: #f5b31a;
}

.schedule-remove {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  background: #ffffff;
  color: #f24030;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.schedule-remove:hover {
  background: rgba(242, 64, 48, 0.08);
  border-color: rgba(242, 64, 48, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 0.85rem;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  background: #f2c200;
  color: #101010;
}

.btn-primary:hover {
  background: #f7d94a;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(242, 194, 0, 0.3);
}

.btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 720px) {
  .schedule-row {
    grid-template-columns: 1fr auto auto;
  }

  .schedule-remove {
    grid-column: 3;
    justify-self: end;
  }

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

  .admin-nav-menu-select {
    margin: 0.5rem 0 0;
  }
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.modal-box-header {
  padding: 1.25rem 1.5rem 0.5rem;
}

.modal-box-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #0f172a;
}

.modal-box-body {
  padding: 0.5rem 1.5rem 1rem;
  color: #475569;
  line-height: 1.6;
}

.modal-box-hint {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0.5rem 0 0;
}

.modal-box-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  background: #f8fafc;
}

.modal-open {
  overflow: hidden;
}
