:root {
  --navy: #0a1628;
  --navy-light: #132038;
  --sand: #f5f0eb;
  --sand-dark: #e8e0d6;
  --gold: #c8a97e;
  --gold-light: #d4bc99;
  --white: #fafafa;
  --text-dark: #1a1a1a;
  --text-light: #e8e0d6;
  --text-muted: #8a8a8a;
  --danger: #d9534f;
  --success: #5cb85c;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--sand);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* LOADING SCREEN */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  transition: opacity 0.6s var(--transition), visibility 0.6s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  width: 60px;
  height: 60px;
  border: 3px solid var(--gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--gold);
  margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* HEADER */
.header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header.has-banner {
  background-color: var(--navy);
}

.header-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.header-overlay::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(200, 169, 126, 0.08) 0%, transparent 50%);
}

.header-overlay.has-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.header.has-banner .header-overlay::before {
  display: none;
}

.header-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
  border: 2px solid var(--gold);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInDown 0.8s var(--transition) 0.2s forwards;
}

.header-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeInDown 0.8s var(--transition) 0.2s forwards;
}

.header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0;
  letter-spacing: 1px;
  opacity: 0;
  position: relative;
  z-index: 1;
  animation: fadeInDown 0.8s var(--transition) 0.6s forwards;
}

.header .subtitle {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeInDown 0.8s var(--transition) 0.6s forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CATEGORIES NAV */
.categories-nav {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--sand) 88%, white 12%);
  z-index: 100;
  border-bottom: 1px solid var(--sand-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
}

.categories-scroll {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
}

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

.cat-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--sand-dark);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s var(--transition);
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.16);
}

/* MENU SECTIONS */
.menu-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.menu-section {
  margin-bottom: 2.75rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* FEATURED */
.featured-section {
  margin-bottom: 2.75rem;
}

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

.featured-card {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #13243f 100%);
  border: 1px solid #c8a97e55;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.featured-card.featured-visible {
  animation: featuredReveal 0.5s var(--transition) forwards;
}

.featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.12) 45%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.featured-card:hover::after {
  transform: translateX(120%);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(6, 19, 36, 0.35);
}

.featured-image,
.featured-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-image-placeholder {
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #1b2f52, #243e69);
  color: #f5f0eb;
}

.featured-content {
  padding: 1rem;
}

.featured-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.featured-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.featured-card p {
  color: #d9dde5;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.featured-card .price {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
}

/* DISH CARDS */
.dish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.dish-card {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #ececec;
  padding: 0.8rem;
  box-shadow: var(--shadow);
  transition: all 0.28s var(--transition);
  opacity: 0;
  transform: translateY(18px);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.dish-image,
.dish-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  border: 1px solid #eee;
}

.dish-image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f5efe8, #efe7dd);
  color: #8c7a63;
  font-size: 1.6rem;
}

.dish-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.dish-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.dish-card.visible:hover {
  transform: translateY(-2px);
}

.dish-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.28s var(--transition), box-shadow 0.28s var(--transition);
  pointer-events: none;
}

.dish-card:hover::before {
  border-color: #d8b78f;
  box-shadow: 0 0 0 2px rgba(200, 169, 126, 0.14);
}

.dish-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.dish-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  flex: 1;
}

.dish-price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
  white-space: nowrap;
}

.dish-description {
  color: #5f6776;
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.add-to-cart-btn {
  margin-top: 0.7rem;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  background: linear-gradient(135deg, #0f2d52 0%, #1c4676 100%);
  color: #f7e8cf;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 34, 63, 0.25);
}

.add-to-cart-btn.disabled {
  background: #c5ccd6;
  color: #5b6573;
  cursor: not-allowed;
  box-shadow: none;
}

.cart-fab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 150;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f2d52 0%, #1c4676 100%);
  color: #fff;
  padding: 0.72rem 1rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(10, 34, 63, 0.35);
  cursor: pointer;
}

.cart-fab-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: #c8a97e;
  color: #12223c;
  font-size: 0.78rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 14, 28, 0.45);
  z-index: 200;
  display: none;
}

.cart-overlay.active { display: block; }

.cart-drawer {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(430px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -12px 0 34px rgba(5, 20, 38, 0.25);
}

.cart-overlay.active .cart-drawer { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #edf0f4;
}

.cart-close { border: none; background: transparent; font-size: 1.1rem; cursor: pointer; }

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.6rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e8edf3;
  border-radius: 10px;
}

.cart-item-name { font-weight: 600; color: #112847; }
.cart-item-price { font-size: 0.82rem; color: #5f6776; }

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.cart-checkout {
  border-top: 1px solid #edf0f4;
  padding: 0.95rem 1rem 1rem;
  display: grid;
  gap: 0.7rem;
}

.cart-total-row { display: flex; justify-content: space-between; align-items: center; }
.cart-note { font-size: 0.78rem; color: #6b7280; margin: 0.2rem 0 0.4rem; }
.delivery-options { display: grid; gap: 0.35rem; }
.delivery-option { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }

.delivery-address textarea {
  width: 100%;
  border: 1px solid #d8e0eb;
  border-radius: 10px;
  padding: 0.65rem;
  font-family: inherit;
}

.delivery-note { font-size: 0.75rem; color: #6b7381; margin-top: 0.35rem; }

.send-order-btn {
  border: none;
  border-radius: 11px;
  padding: 0.78rem 0.9rem;
  background: linear-gradient(135deg, #0f766e 0%, #128a80 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cart-empty { color: #707888; text-align: center; margin-top: 1.3rem; }

.hidden { display: none !important; }

@media (min-width: 640px) {
  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .dish-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dish-card.unavailable {
  opacity: 0;
  background: var(--sand-dark);
}

.dish-card.unavailable.visible {
  opacity: 0.6;
}

.dish-card.unavailable .dish-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.out-of-stock-badge {
  display: inline-block;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-left: 0.75rem;
}

/* FOOTER */
.footer {
  background: var(--navy);
  color: var(--text-light);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.social-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s var(--transition);
}

.social-link:hover {
  opacity: 0.7;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-divider {
  height: 1px;
  background: var(--navy-light);
  margin: 1.5rem 0;
}

/* ADMIN STYLES */
.admin-body {
  background: #f0f2f5;
  min-height: 100vh;
}

.admin-header {
  background: var(--navy);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold);
  font-size: 1.2rem;
}

.admin-header a,
.admin-header button {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  background: none;
  border: 1px solid var(--navy-light);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-header a:hover,
.admin-header button:hover {
  background: var(--navy-light);
  color: var(--gold);
}

.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.admin-alert-error {
  background: #ffe8e8;
  color: #9e1c1c;
  border: 1px solid #ffcaca;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

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

.settings-form .form-group {
  margin-bottom: 0;
}

.settings-form .form-group:nth-child(1),
.settings-form .form-group:nth-child(2),
.settings-form .form-group:last-of-type,
.settings-form .btn {
  grid-column: 1 / -1;
}

.settings-form .btn {
  justify-content: center;
  margin-top: 0.25rem;
}

.settings-form input {
  background: #fbfbfd;
}

.admin-hero {
  background: linear-gradient(135deg, #0a1628 0%, #13243f 100%);
  color: #f5f0eb;
  border-radius: 16px;
  padding: 1.25rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.admin-kicker {
  color: #c8a97e;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.admin-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.admin-hero p {
  color: rgba(245, 240, 235, 0.88);
  font-size: 0.92rem;
  max-width: 58ch;
}

.admin-hero .btn-primary {
  background: #c8a97e;
  color: #0a1628;
  white-space: nowrap;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: none;
  padding: 0.35rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.admin-tab {
  padding: 0.75rem 1rem;
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
  flex: 1;
}

.admin-tab.active,
.admin-tab:hover {
  color: #0a1628;
  border-color: #e9ded0;
  background: #fbf8f4;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
  animation: fadeInUp 0.3s var(--transition);
}

.admin-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid #ececec;
}

.admin-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--navy);
  color: var(--gold);
}

.btn-primary:hover {
  background: var(--navy-light);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #c9302c;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-icon {
  padding: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.btn-icon:hover {
  color: var(--danger);
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.item-row.row-enter {
  animation: rowEnter 0.32s ease both;
}

.item-row.row-exit {
  animation: rowExit 0.2s ease both;
}

.item-row.row-pulse {
  animation: rowPulse 0.24s ease;
}

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

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dish-thumb-admin {
  width: 82px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e7e7e7;
}

.item-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.item-info .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.item-actions-dish {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toggle-chip-form {
  margin: 0;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 62px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #e7edf4;
  border: 1px solid #d6dfeb;
  color: #35506f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-chip input {
  display: none;
}

.toggle-chip input:checked + .chip-label {
  color: #fff;
}

.toggle-chip:has(input:checked) {
  background: #0f766e;
  border-color: #0f766e;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
}

.toggle-featured {
  min-width: 40px;
}

.toggle-featured:has(input:checked) {
  background: #c8a97e;
  border-color: #c8a97e;
  box-shadow: 0 6px 16px rgba(200, 169, 126, 0.3);
}

/* STOCK TOGGLE */
.stock-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.stock-form {
  margin: 0;
}

.stock-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.stock-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--danger);
  border-radius: 24px;
  transition: 0.3s;
}

.stock-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.stock-toggle input:checked + .stock-slider {
  background: var(--success);
}

.stock-toggle input:checked + .stock-slider::before {
  transform: translateX(20px);
}

/* LOGIN PAGE */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 1rem;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s var(--transition);
}

.login-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.login-error {
  background: #f8d7da;
  color: var(--danger);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInUp 0.3s var(--transition);
}

.modal h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.admin-section.is-loading {
  position: relative;
}

.admin-skeleton-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.admin-skeleton-row {
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef2f6 20%, #f7f9fb 45%, #eef2f6 80%);
  background-size: 220% 100%;
  animation: shimmer 1.05s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -40% 0; }
}

@keyframes featuredReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rowEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rowExit {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.98); }
}

@keyframes rowPulse {
  0% { background: transparent; }
  50% { background: rgba(15, 118, 110, 0.08); }
  100% { background: transparent; }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .header {
    padding: 2rem 1rem 2rem;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .header-logo,
  .header-logo-placeholder {
    width: 60px;
    height: 60px;
  }

  .categories-scroll {
    justify-content: flex-start;
    padding: 0.7rem 0.85rem;
    gap: 0.55rem;
  }

  .cat-btn {
    min-height: 42px;
    padding: 0.55rem 1rem;
  }

  .menu-container {
    padding: 1.35rem 0.85rem 2.6rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .featured-content {
    padding: 0.85rem;
  }

  .dish-card {
    padding: 0.75rem;
  }

  .admin-hero {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .admin-hero .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .admin-tab {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    min-width: calc(50% - 0.25rem);
    flex: initial;
  }

  .item-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .item-actions-dish {
    width: 100%;
    justify-content: flex-start;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 1.2rem;
    max-height: 88vh;
    animation: drawerUp 0.24s ease;
  }
}

@keyframes drawerUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
