
:root {
  --bg-dark: #000000;
  --bg-card: #0b0b0b;
  --bg-card-hover: #111111;
  --accent: #DC2626;
  --accent-glow: rgba(220, 38, 38, 0.4);
  --text-main: #ffffff;
  --text-muted: #888888;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'Inter',sans-serif;background:var(--bg-dark);color:var(--text-main)}img{max-width:100%;display:block}a{text-decoration:none;color:inherit}.container{width:min(1180px,calc(100% - 32px));margin:0 auto}.header{position:fixed;top:0;left:0;right:0;z-index:1000;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:none;transition:all .35s ease}.header.scrolled{background:rgba(0,0,0,.88);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-bottom:1px solid var(--glass-border);}body[data-page="dashboard"] .header,body[data-page="login"] .header{position:sticky;background:rgba(0,0,0,.7);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-bottom:1px solid var(--glass-border);}.nav{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;flex-direction:column;z-index:1100}.brand-title{color:var(--accent);font-weight:900;letter-spacing:.25em;font-size:1.5rem;text-shadow: 0 0 20px rgba(220, 38, 38, 0.3)}.brand-sub{color:var(--text-muted);text-transform:uppercase;letter-spacing:.3em;font-size:.75rem;margin-top:6px;font-weight:800}.nav-links{display:flex;gap:32px;color:var(--text-muted);align-items:center;transition:all .4s ease}.nav-links a:hover{color:#fff}.menu-toggle{display:none;border:1px solid var(--glass-border);background:var(--glass);color:#fff;border-radius:14px;width:48px;height:48px;align-items:center;justify-content:center;cursor:pointer;font-size:1.5rem;z-index:1100;flex-shrink:0}.menu-toggle:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3)}.cart-link{padding:12px 20px;border-radius:999px;background:rgba(220,38,38,.12);border:1px solid rgba(220,38,38,.3);font-weight:800;white-space:nowrap;color:var(--accent);letter-spacing:0.05em}
.hero{position:relative;min-height:100vh;display:flex;align-items:center;overflow:hidden}.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0); /* Hardware acceleration */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.hero-glass-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 48px;
  width: min(540px, calc(100% - 48px));
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
  animation: heroCardSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.hero-glass-card h1 {
  color: #fff;
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.95;
  margin: 12px 0 16px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-glass-card .hero-subtitle {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-size: 1rem;
  opacity: 0.9;
}

.hero-badge-wrap { margin-bottom: 16px; }
.hero-badge-animated {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(225, 29, 72, 0); }
  50% { transform: scale(1.03); box-shadow: 0 0 25px rgba(225, 29, 72, 0.3); }
}


input[readonly]{opacity:.9;background:#141414}


.form-control, input, textarea, select { outline: none; }
.form-control:focus, input:focus, textarea:focus, select:focus { border-color: rgba(225,29,72,.45); box-shadow: 0 0 0 3px rgba(225,29,72,.08); }


.menu-category-list{display:grid;gap:18px;margin-top:34px}
.menu-category-block{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);border-radius:26px;overflow:hidden}
.menu-category-header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:22px 24px;cursor:pointer;background:rgba(255,255,255,.03)}
.menu-category-header h3{margin:0;font-size:1.35rem}
.menu-category-meta{color:#9f9f9f;font-size:.95rem}
.menu-category-toggle{font-size:1.4rem;color:#ff4c79}
.menu-category-items{display:none;border-top:1px solid rgba(255,255,255,.08)}
.menu-category-block.open .menu-category-items{display:block}
.menu-line-item{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 24px;border-top:1px solid rgba(255,255,255,.06);cursor:pointer;transition:background 0.3s ease, border-color 0.3s ease, transform 0.2s ease}
.menu-line-item:first-child{border-top:none}
.menu-line-item:hover{background:rgba(255,255,255,.05); transform:translateX(6px);}
.menu-line-left{display:flex;flex-direction:column;gap:6px}
.menu-line-name{font-weight:700;font-size:1.05rem}
.menu-line-hint{color:#9d9d9d;font-size:.92rem}
.menu-line-price{white-space:nowrap;font-weight:800;color:#ff4c79}
.menu-modal{position:fixed;inset:0;display:none;z-index:300}
.menu-modal.show{display:block}
.menu-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(4px)}
.menu-modal-card{position:relative;z-index:2;width:min(980px,calc(100% - 24px));margin:5vh auto 0;background:#111;border:1px solid rgba(255,255,255,.08);border-radius:28px;padding:20px}
.menu-modal-x{position:absolute;right:16px;top:12px;border:none;background:transparent;color:#fff;font-size:2rem;cursor:pointer}
.menu-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
.menu-modal-image-wrap{border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:#0c0c0c}
.menu-modal-image{width:100%;height:clamp(240px,40vh,420px);object-fit:cover}
.menu-modal-content{padding:10px 8px 8px}
.menu-modal-content h3{font-size:2rem;margin:14px 0 10px}
.menu-modal-price{display:inline-block;padding:10px 14px;border-radius:999px;background:rgba(225,29,72,.12);border:1px solid rgba(225,29,72,.25);color:#ff4c79;font-weight:800;margin-bottom:18px}
.menu-modal-section-title{margin:18px 0 8px;font-weight:800;color:#fff}
.menu-modal-text{color:#c7c7c7;line-height:1.8;margin:0}
@media (max-width:720px){.menu-modal-grid{grid-template-columns:1fr}.menu-modal-image{height:clamp(180px,32vh,260px)}.menu-category-header,.menu-line-item{padding:16px}.hero-stats{grid-template-columns:repeat(2,1fr);gap:10px}.hero-stat-number{font-size:1.3rem}.hero-stat-label{font-size:0.72rem}}


/* ===== FOOTER & UTILS ===== */
.full { width: 100%; }
.flex-center { display: flex; flex-direction: column; justify-content: center; align-items: center; }


/* Button icon */
.btn-icon {
  margin-right: 8px;
  font-size: 1.1em;
}

/* Glowing primary button */
.btn-glow {
  box-shadow: 0 4px 24px rgba(225,29,72,.35);
  transition: transform .2s ease, box-shadow .3s ease;
}
.btn-glow:hover {
  box-shadow: 0 6px 32px rgba(225,29,72,.5);
  transform: translateY(-2px);
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  animation: descFade 1.2s ease-out .5s both;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: #e11d48;
  line-height: 1;
}
.hero-stat-label {
  font-size: .82rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-indicator span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(225,29,72,.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}
.particle:nth-child(1) { left: 10%; top: 80%; animation-duration: 8s; animation-delay: 0s; width: 3px; height: 3px; }
.particle:nth-child(2) { left: 25%; top: 90%; animation-duration: 10s; animation-delay: 1s; width: 5px; height: 5px; }
.particle:nth-child(3) { left: 50%; top: 85%; animation-duration: 7s; animation-delay: 2s; }
.particle:nth-child(4) { left: 70%; top: 95%; animation-duration: 9s; animation-delay: .5s; width: 6px; height: 6px; }
.particle:nth-child(5) { left: 85%; top: 88%; animation-duration: 11s; animation-delay: 3s; width: 3px; height: 3px; }
.particle:nth-child(6) { left: 40%; top: 92%; animation-duration: 8.5s; animation-delay: 1.5s; }

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-70vh) scale(.3); }
}

/* ===== FOOTER ===== */
.footer {
  background: #060606;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0 32px;
  margin-top: 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand .brand-title {
  font-size: 1.1rem;
}
.footer-brand p {
  color: #888;
  margin: 6px 0 0;
  font-size: .9rem;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #aaa;
  font-size: .92rem;
  transition: color .2s ease;
}
.footer-links a:hover {
  color: #e11d48;
}
.footer-copy {
  color: #555;
  font-size: .82rem;
  margin: 0;
}

/* ===== DISH CARD HOVER ===== */
.dish-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(225,29,72,.12);
}

/* ===== RESPONSIVE HERO ===== */
@media (max-width:720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-subtitle { font-size: .95rem; }
  .hero-scroll-indicator { bottom: 16px; }
  .btn-icon { margin-right: 6px; }
  .footer-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .footer-links a { min-height: 44px; display: flex; align-items: center; padding: 0 8px; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 700;
  font-size: .85rem;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s cubic-bezier(0.3, 2, 0.5, 1), box-shadow 0.3s ease;
  white-space: nowrap;
  transform: scale(1);
}
.lang-switch:hover {
  background: rgba(225,29,72,.15);
  border-color: rgba(225,29,72,.3);
  color: #ff4c79;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(225,29,72,0.25);
}
.lang-switch:active {
  transform: scale(0.95);
}

/* ===== NAV LINKS ANIMATION ===== */
.nav-links a:not(.lang-switch) {
  position: relative;
  transition: color 0.3s ease;
  padding: 8px 0;
}
.nav-links a:not(.lang-switch)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 2px;
  left: 50%;
  background: #e11d48;
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(225,29,72,0.6);
}
.nav-links a:not(.lang-switch):hover {
  color: #fff;
}
.nav-links a:not(.lang-switch):hover::after {
  width: 100%;
  left: 0;
}
/* --- Scroll Animations --- */
.scroll-fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.scroll-fade-in-visible { opacity: 1; transform: translateY(0); }

/* Mobile Navigation Interaction */
@media (max-width: 820px) {
  .menu-toggle { display: none; }
  .nav { min-height: 64px; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 85vw); height: 100dvh;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 36px 40px;
    z-index: 1050;
    box-shadow: -10px 0 60px rgba(0,0,0,0.9);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255,255,255,0.06);
    gap: 0;
  }
  .nav-links.show { right: 0; }
  .nav-links a {
    font-size: 1.2rem;
    font-weight: 700;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0;
    color: #ccc;
    display: flex;
    align-items: center;
    min-height: 56px;
  }
  .lang-switch {
    padding: 10px 14px;
    font-size: 0.82rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* Overlay backdrop when nav is open */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
  }
  .nav-overlay.show { display: block; }
}

/* Glass Card Enhanced Hover */
.glass-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(225,29,72,0.15);
  border-color: rgba(225,29,72,0.3);
}

/* Button scale effect */
.btn {
  transform: scale(1);
  transition: transform 0.2s cubic-bezier(0.3, 2, 0.5, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover {
  transform: scale(1.04);
}
.btn:active {
  transform: scale(0.96);
}

/* Modernize inputs focus transition */
.form-control, input, textarea, select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.form-control:focus, input:focus, textarea:focus, select:focus {
  background: #111;
}

/* ===== MINIMALIST ARCHITECTURE & MENU ===== */
.hero-center-layout { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-center-layout #heroTitle { font-size: clamp(3.5rem, 10vw, 8rem); margin: 24px 0 16px; }
.hero-center-layout .hero-subtitle { margin-bottom: 32px; font-size: 1.25rem; }
.btn-hero-large { padding: 18px 40px; font-size: 1.15rem; border-radius: 999px; }

/* Sticky Categories — Underline Tab Style */
.category-sticky-bar {
  position: sticky;
  top: 77px;
  z-index: 90;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: background 0.3s ease;
}
.sticky-chip-container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.sticky-chip-container::-webkit-scrollbar { display: none; }
.category-chip {
  padding: 18px 28px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
  margin-bottom: -1px;
}
.category-chip:hover {
  background: transparent;
  color: #d1d5db;
  transform: none;
  border-bottom-color: rgba(220,38,38,0.4);
}
.category-chip.active {
  background: transparent;
  border-bottom-color: #dc2626;
  color: #dc2626;
  font-weight: 700;
  box-shadow: none;
}

/* Modern Menu Grid */
.unified-menu-section { padding: 48px 0 100px; scroll-margin-top: 90px; }
/* scroll-margin-top for the #menu section anchor itself (nav=70px + gap) */
#menu { scroll-margin-top: 70px; }
.menu-section-block { scroll-margin-top: 140px; margin-bottom: 56px; }
.menu-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 20px;
}
.menu-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.modern-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* Text-only Dish Cards */
.modern-dish-card {
  display: block;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.modern-dish-card:hover {
  background: #181818;
  border-color: rgba(220,38,38,0.3);
  transform: none;
  box-shadow: none;
}
.modern-dish-img-wrap { display: none; }
.modern-dish-content { padding: 0; display: block; }
.dish-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.dish-card-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.35;
}
.dish-card-price {
  font-weight: 800;
  color: #dc2626;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.dish-card-desc {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.minimal-contact { margin-top: 32px; }
.flex-center { display: flex; flex-direction: column; justify-content: center; align-items: center; }

@media (max-width: 1024px) {
  .modern-menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero-center-layout #heroTitle { font-size: clamp(2.5rem, 12vw, 4rem); }
  .modern-menu-grid { grid-template-columns: 1fr; }
  .category-sticky-bar { top: 64px; }
  .category-chip { padding: 16px 20px; font-size: 0.78rem; min-height: 52px; }
  .menu-line-item { padding: 16px 16px; }
  .menu-line-name { font-size: 1rem; }
  /* top padding = fixed header (64px) + sticky bar (~52px) + small gap */
  .unified-menu-section { padding: 24px 0 120px; scroll-margin-top: 64px; }
  .modern-dish-card { padding: 14px 16px; }
  /* scroll-margin-top = nav height (64px) + sticky bar height (52px) + breathing room (12px) */
  .menu-section-block { margin-bottom: 40px; scroll-margin-top: 130px; }
}

/* ===== FIXED ACTION BUTTONS ===== */
.fixed-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
}
.fixed-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.fixed-btn:hover {
  transform: translateY(-8px) scale(1.05);
}
.fixed-btn svg {
  width: 26px;
  height: 26px;
}
.fixed-phone {
  background: #333;
  border: 1px solid rgba(255,255,255,0.1);
}
.fixed-phone:hover {
  background: #444;
  box-shadow: 0 12px 30px rgba(255,255,255,0.15);
}
@media (max-width: 820px) {
  .fixed-actions {
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    right: max(16px, env(safe-area-inset-right, 16px));
    gap: 10px;
  }
  .fixed-btn { width: 52px; height: 52px; }
  .fixed-btn svg { width: 22px; height: 22px; }
}
/* ===== ADMIN DASHBOARD ===== */
.admin-card {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 48px;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.admin-card:hover { border-color: rgba(220, 38, 38, 0.2); }

.admin-card h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  background: linear-gradient(to bottom, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 40px 0 20px;
  color: #fff;
  letter-spacing: -0.01em;
}

.admin-card .muted {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.repeat-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.repeat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.repeat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(220, 38, 38, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.repeat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.repeat-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Collapsed state for admin category cards */
.menu-category-card.collapsed .input-group-lang,
.menu-category-card.collapsed .category-items-list {
  display: none;
}
.menu-category-card.collapsed {
  padding-bottom: 0;
}
.menu-category-card.collapsed .repeat-header {
  margin-bottom: 0;
}
.menu-category-card.collapsed:hover {
  transform: none;
}
/* Toggle arrow button */
.toggle-collapse {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.toggle-collapse:hover {
  background: rgba(255,255,255,0.12);
}
/* Confirm state for remove button */
.remove-category[data-confirm="1"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.admin-grid {
  display: grid;
  gap: 20px;
}

.admin-grid.two { grid-template-columns: 1fr 1fr; }
.admin-grid.three { grid-template-columns: repeat(3, 1fr); }

.admin-card input,
.admin-card textarea,
.admin-card select,
.input-group-lang input,
.input-group-lang textarea,
.admin-grid input,
.admin-grid textarea,
.admin-grid select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 20px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.admin-card input::placeholder,
.admin-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.admin-card input:focus,
.admin-card textarea:focus,
.input-group-lang input:focus,
.input-group-lang textarea:focus,
.admin-grid input:focus,
.admin-grid textarea:focus {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

/* Dashboard Statistics */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0 48px;
}

.stat-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 40px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 40px rgba(220, 38, 38, 0.4);
  margin-bottom: 12px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

/* Tab Navigation Dashboard */
.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  width: fit-content;
}

.tab-btn {
  padding: 14px 28px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active {
  display: block;
}

.success-msg { color: #4ade80; display: none; margin-top: 12px; font-weight: 700; }
.error-msg { color: #f87171; display: none; margin-top: 12px; font-weight: 700; }

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

/* Category Shortcut Bar */
.category-shortcuts {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--glass-border);
  scrollbar-width: none;
}

.shortcut-chip {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shortcut-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* Bilingual Fields Styling */
.input-group-lang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 24px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
}

.lang-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 8px;
  text-transform: uppercase;
}

.lang-al { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lang-en { background: rgba(220, 38, 38, 0.15); color: #ff4c79; }

/* Charts & Analytics */
.chart-container {
  height: 280px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 32px 20px 48px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 32px;
  border: 1px solid var(--glass-border);
}

.chart-bar {
  background: linear-gradient(to top, var(--accent), #ff4c79);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

.top-page-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.top-page-row:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.top-page-row span:last-child {
  color: var(--accent);
  font-weight: 900;
}

/* Photos & Gallery Previews */
.preview {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #111;
}

.preview:hover {
  transform: scale(1.1) rotate(2deg);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.rm-img-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}

.rm-img-btn:hover {
  background: #ff4c79;
  transform: scale(1.1);
}

.main-img-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  text-align: center;
  font-weight: 900;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Button & Global refinements */
.btn {
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.3, 2, 0.5, 1);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.3, 2, 0.5, 1);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  background: #B91C1C;
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.5);
}

.btn-hero-large {
  padding: 18px 44px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hero-glass-card {
    padding: 28px 20px;
    margin: 0 12px;
    text-align: center;
    border-radius: 24px;
    max-width: none;
    width: calc(100% - 24px);
  }
  .hero-glass-card h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); margin: 8px 0 12px; }
  .hero-glass-card .hero-subtitle { font-size: 0.9rem; margin-bottom: 20px; }
  .btn-hero-large { width: 100%; padding: 16px 24px; font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; padding-top: 18px; }
  .hero-stat-number { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.72rem; }
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

/* Modal refinements */
.menu-modal-card {
  background: rgba(10,10,10, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
}

@media (max-width: 820px) {
  .admin-card { padding: 32px 24px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 2.5rem; }
  .admin-grid.three { grid-template-columns: 1fr 1fr; }
  .toggle-collapse { width: 44px; height: 44px; border-radius: 12px; }
}

@media (max-width: 768px) {
  .admin-grid.two,
  .admin-grid.three { grid-template-columns: 1fr; }
}

/* ===== ADMIN LOGIN PAGE ===== */
body[data-page="login"] {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #000;
}

.login-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.login-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) blur(2px);
}

.login-shell {
  position: relative;
  z-index: 2;
  width: min(440px, calc(100% - 32px));
  animation: loginFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.login-card {
  background: rgba(15, 15, 15, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(225, 29, 72, 0.1);
  text-align: center;
}

.login-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}

.login-card .muted {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.login-card .section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(225, 29, 72, 0.12);
  color: #ff4c79;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.login-card .form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.login-card .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
}

.login-card .btn-primary {
  margin-top: 8px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 12px;
  background: #e11d48;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.3, 2, 0.5, 1);
}

.login-card .btn-primary:hover {
  background: #ff4c79;
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4);
}

.login-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.login-footer a {
  color: #666;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.login-footer a:hover {
  color: #ff4c79;
}

#loginError {
  min-height: 20px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ff9c9c;
}

/* ===== SECTION BASE STYLES ===== */
.section {
  padding: 80px 0;
}
.section-dark {
  background: var(--bg-dark);
}
.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(225, 29, 72, 0.12);
  color: #ff4c79;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.lead {
  color: #aaa;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ===== SPLIT GRID LAYOUT ===== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ===== MOBILE GLOBAL ===== */
@media (max-width: 820px) {
  .section { padding: 56px 0; }

  /* Stack contact split-grid on mobile */
  .split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Glass card in contact section */
  .glass-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  /* Admin grids stack on mobile */
  .admin-grid.two { grid-template-columns: 1fr; }
  .admin-grid.three { grid-template-columns: 1fr; }

  /* input-group-lang stacks */
  .input-group-lang {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }

  /* Admin card padding */
  .admin-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  /* Tab bar wraps nicely */
  .tab-bar {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 18px;
    gap: 6px;
  }
  .tab-btn {
    padding: 12px 18px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }

  /* Menu modal full-screen on small mobile */
  .menu-modal-card {
    width: 100%;
    margin: 0;
    border-radius: 24px 24px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .menu-modal {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .menu-modal.show { display: flex; }

  /* Dish card full-width readable */
  .dish-card-name { font-size: 0.95rem; }
  .dish-card-desc { font-size: 0.8rem; }
  .dish-card-price { font-size: 0.95rem; }

  /* Contact buttons full width */
  .btn-large.full {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    font-size: 1rem;
  }

  /* Stat number smaller */
  .stat-number { font-size: 2.5rem; }

  .footer { padding: 36px 0 24px; }
  .footer-copy { font-size: 0.78rem; }
}

/* ===== TOUCH DEVICE IMPROVEMENTS ===== */
@media (hover: none) {
  /* Remove hover transforms on touch to avoid sticky states */
  .glass-card:hover { transform: none; box-shadow: none; border-color: var(--glass-border); }
  .dish-card:hover { transform: none; }
  .modern-dish-card:hover { transform: none; }
  .menu-line-item:hover { transform: none; }
  .fixed-btn:hover { transform: none; }
}

/* ===== SAFE AREA / NOTCH SUPPORT ===== */
@supports (padding: max(0px)) {
  .header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  body { padding-top: env(safe-area-inset-top, 0); }
}

/* BRAND LOGO */
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(220,38,38,0.35); flex-shrink: 0; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.brand-logo:hover { transform: scale(1.06); box-shadow: 0 0 20px rgba(220,38,38,0.35); }
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; }

/* SKELETON LOADING */
@keyframes shimmer { 0% { background-position: -600px 0; } 100% { background-position: 600px 0; } }
.skeleton { background: linear-gradient(90deg,#1a1a1a 25%,#222 50%,#1a1a1a 75%); background-size: 600px 100%; animation: shimmer 1.4s infinite linear; border-radius: 10px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 24px 0; }
.skeleton-card { height: 72px; border-radius: 12px; }
.skeleton-title { height: 16px; width: 120px; border-radius: 6px; margin-bottom: 20px; }
@media (max-width: 1024px) { .skeleton-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px) { .skeleton-grid { grid-template-columns: 1fr; } }

/* BOTTOM NAVIGATION BAR */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200; background: rgba(6,6,6,0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-top: 1px solid rgba(255,255,255,0.07); padding-bottom: env(safe-area-inset-bottom,0); box-shadow: 0 -8px 40px rgba(0,0,0,0.6); }
  .bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px; text-decoration: none; color: #555; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.2s ease, transform 0.15s cubic-bezier(0.3,2,0.5,1); -webkit-tap-highlight-color: transparent; min-height: 56px; }
  .bottom-nav-item:active { transform: scale(0.88); }
  .bottom-nav-item.active { color: #dc2626; }
  .bottom-nav-icon { font-size: 1.35rem; line-height: 1; display: block; transition: transform 0.2s cubic-bezier(0.3,2,0.5,1); }
  .bottom-nav-item:active .bottom-nav-icon { transform: scale(0.85); }
  .bottom-nav-item.active .bottom-nav-icon { filter: drop-shadow(0 0 6px rgba(220,38,38,0.5)); }
  .bottom-nav-item.order-btn { color: #fff; }
  .bottom-nav-item.order-btn .bottom-nav-icon { background: linear-gradient(135deg,#dc2626,#b91c1c); border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 16px rgba(220,38,38,0.45); transition: transform 0.2s cubic-bezier(0.3,2,0.5,1), box-shadow 0.2s ease; }
  .bottom-nav-item.order-btn:active .bottom-nav-icon { transform: scale(0.88); box-shadow: 0 2px 8px rgba(220,38,38,0.25); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom,0px)); overscroll-behavior-y: none; }
  .fixed-actions { display: none; }
  .hero { min-height: 75dvh; }
  .nav { min-height: 56px; }
  .category-sticky-bar { top: 56px; }
  #menu { scroll-margin-top: 56px; }
  .modern-dish-card { min-height: 64px; padding: 16px; }
  .category-chip { min-height: 48px; padding: 14px 20px; display: inline-flex; align-items: center; }
}
@media (max-width: 480px) {
  .brand-logo { width: 36px; height: 36px; }
  .brand-title { font-size: 1.15rem; letter-spacing: .18em; }
  .brand-sub { font-size: 0.62rem; }
}
@media (display-mode: standalone) {
  .header { padding-top: env(safe-area-inset-top,0); }
  body { user-select: none; -webkit-user-select: none; }
  p, h1, h2, h3, h4, .dish-card-desc, .product-page-desc { user-select: text; -webkit-user-select: text; }
}
