:root {
  --bg: #0b1220;
  --panel: #0f1a30;
  --panel-2: #132540;
  --text: #e9f1ff;
  --muted: #9bb1d9;
  --accent: #26f0ff;
  --accent-2: #ff4fb4;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Consolas", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  min-height: 100vh;
}

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

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

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-tight {
  padding: 70px 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.9);
  border-bottom: 1px solid rgba(38, 240, 255, 0.25);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 16px rgba(38, 240, 255, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.lang-toggle {
  border: 1px solid var(--accent);
  background: rgba(38, 240, 255, 0.12);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(38, 240, 255, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 11px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 3px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}

.hero-glow {
  position: absolute;
  inset: -20% -30% auto -30%;
  height: 80%;
  background: radial-gradient(circle at 20% 20%, rgba(38, 240, 255, 0.35), transparent 40%), radial-gradient(circle at 80% 10%, rgba(255, 79, 180, 0.32), transparent 42%), radial-gradient(circle at 50% 70%, rgba(70, 132, 255, 0.25), transparent 55%);
  filter: blur(45px);
  animation: float 18s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.25;
  mix-blend-mode: screen;
  animation: drift 22s linear infinite;
}

.hero-layout {
  position: relative;
  display: grid;
  gap: 44px;
  align-items: center;
  grid-template-columns: 1fr;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(44px, 7vw, 68px);
  margin: 6px 0 12px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 25px rgba(38, 240, 255, 0.55);
}

.subtitle {
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(38, 240, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  position: relative;
  background: linear-gradient(140deg, rgba(38, 240, 255, 0.12), rgba(255, 79, 180, 0.08));
  border: 1px solid rgba(38, 240, 255, 0.35);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 360px;
  justify-self: flex-end;
  overflow: hidden;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.orbit {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 110px;
  height: 110px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.dot-a { background: var(--accent); color: var(--accent); top: 10%; left: 55%; animation: orbit 8s linear infinite; }
.dot-b { background: var(--accent-2); color: var(--accent-2); top: 60%; left: -4%; animation: orbit 10s linear infinite reverse; }
.dot-c { background: #7af55b; color: #7af55b; bottom: -2%; left: 60%; animation: orbit 12s linear infinite; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 5vw, 38px);
  margin: 6px 0 4px;
}

.muted {
  color: var(--muted);
}

.search {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(38, 240, 255, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
}

.search input {
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  min-width: 220px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 22px 0 14px;
}

.tab {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(38, 240, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, border-color 0.2s;
}

.tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(38, 240, 255, 0.35);
}

.tab.active {
  color: var(--text);
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(38, 240, 255, 0.18), rgba(255, 79, 180, 0.1));
  box-shadow: 0 0 18px rgba(38, 240, 255, 0.35);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.cards-grid.animate .menu-card {
  animation: fadeUp 0.38s ease;
}

.menu-card {
  background: linear-gradient(180deg, rgba(18, 32, 55, 0.95), rgba(13, 22, 37, 0.95));
  border: 1px solid rgba(38, 240, 255, 0.22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55), 0 0 18px rgba(38, 240, 255, 0.35);
}

.card-image img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.menu-card:hover img {
  transform: scale(1.05);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

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

.card-top h3 {
  margin: 0;
  font-size: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--muted);
}

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

.price {
  font-weight: 800;
  color: var(--text);
}

.details-btn {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.details-btn:hover {
  background: rgba(38, 240, 255, 0.12);
  transform: translateY(-1px);
}

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

.admin {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(38, 240, 255, 0.2);
  border-bottom: 1px solid rgba(38, 240, 255, 0.2);
}

.add-form {
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.9), rgba(12, 19, 32, 0.95));
  border: 1px solid rgba(38, 240, 255, 0.2);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.form-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.form-row input,
.form-row select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(38, 240, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.form-row .full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(38, 240, 255, 0.35);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(120deg, #26f0ff, #ff4fb4);
  border-color: transparent;
  box-shadow: 0 0 22px rgba(38, 240, 255, 0.5);
}

.btn-primary.alt {
  background: linear-gradient(120deg, #ff4fb4, #26f0ff);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(38, 240, 255, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(38, 240, 255, 0.35);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.branch-card {
  background: linear-gradient(160deg, rgba(38, 240, 255, 0.1), rgba(255, 79, 180, 0.06));
  border: 1px solid rgba(38, 240, 255, 0.2);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
}

.contact {
  background: radial-gradient(circle at 20% 30%, rgba(38, 240, 255, 0.12), transparent 35%), radial-gradient(circle at 80% 10%, rgba(255, 79, 180, 0.12), transparent 30%), #0b1220;
}

.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(38, 240, 255, 0.2);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.contact-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(38, 240, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-2px);
}

.footer {
  padding: 28px 0 34px;
  background: #0a101d;
  border-top: 1px solid rgba(38, 240, 255, 0.2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.link {
  color: var(--accent);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(38, 240, 255, 0.25), transparent 35%), rgba(7, 10, 18, 0.88);
  display: grid;
  place-items: center;
  z-index: 2000;
  padding: 18px;
}

.modal {
  background: #0f182c;
  border: 1px solid rgba(38, 240, 255, 0.3);
  border-radius: 16px;
  width: min(520px, 95vw);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.modal img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.modal-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.close-modal {
  position: absolute;
  right: 12px;
  top: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.small { font-size: 13px; }

/* RTL tweaks */
body.rtl {
  direction: rtl;
}

body.rtl .nav-links {
  flex-direction: row-reverse;
}

body.rtl .nav-link::after {
  transform-origin: right;
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    inset: calc(100% - 1px) 0 auto 0;
    background: rgba(11, 18, 32, 0.98);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(38, 240, 255, 0.2);
  }

  body.rtl .nav-links {
    align-items: flex-end;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    padding: 12px 0;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-card {
    justify-self: stretch;
  }
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(20px); }
}

@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 140px 140px, 140px 140px; }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(34px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(34px) rotate(-360deg); }
}

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





/* Ramadan Lanterns (Sticky Top) */
:root { --lantern-offset: 120px; }

.lanterns-container{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: clamp(96px, 18vw, 145px);
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}

.lantern-track{
  position: relative;
  width: 100%;
  height: 100%;
}

.lantern{
  --swing: 6deg;
  --drop: 52px;
  --duration: 4.8s;
  --delay: 0s;
  --flicker: 2.1s;

  position: absolute;
  top: 0;
  left: var(--x);
  transform-origin: 50% 0;
  animation: rl-swing var(--duration) ease-in-out infinite var(--delay);
  will-change: transform;
}

/* chain */
.chain{
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: var(--drop);
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #ccb98a 0%, #8b7449 100%);
  box-shadow: 0 0 2px rgba(0,0,0,.2);
}

.chain::before{
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 10px;
  height: 7px;
  transform: translateX(-50%);
  border: 2px solid #9e8556;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

/* lantern body (renamed to avoid conflict) */
.lantern .body{
  position: absolute;
  top: var(--drop);
  left: 50%;
  width: clamp(26px, 4.2vw, 42px);
  height: clamp(46px, 7.5vw, 74px);
  transform: translateX(-50%);
  border-radius: 11px 11px 14px 14px;
  background: linear-gradient(160deg, #ffd872 0%, #ffb43b 50%, #e47c17 100%);
  box-shadow:
    0 0 0 2px rgba(113,57,13,.35) inset,
    0 8px 16px rgba(70,34,6,.35);
  animation: rl-flicker var(--flicker) ease-in-out infinite;
}

.lantern .body::before{
  content:"";
  position:absolute;
  top:-8px;
  left:50%;
  width:65%;
  height:9px;
  transform:translateX(-50%);
  border-radius:4px;
  background: linear-gradient(180deg, #8f744a 0%, #6d542f 100%);
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}

.lantern .body::after{
  content:"";
  position:absolute;
  bottom:-7px;
  left:50%;
  width:44%;
  height:7px;
  transform:translateX(-50%);
  border-radius:4px;
  background: linear-gradient(180deg, #8f744a 0%, #6d542f 100%);
}

.core{
  position: absolute;
  top: calc(var(--drop) + 13px);
  left: 50%;
  width: clamp(11px, 2vw, 17px);
  height: clamp(19px, 3.2vw, 28px);
  transform: translateX(-50%);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 35%, #fffde8 0%, #ffe79a 52%, rgba(255,204,106,.75) 100%);
  opacity: .9;
  filter: blur(.2px);
  animation: rl-flicker calc(var(--flicker) * .9) ease-in-out infinite;
}

.light{
  position: absolute;
  top: calc(var(--drop) + 6px);
  left: 50%;
  width: clamp(80px, 13vw, 145px);
  height: clamp(58px, 10vw, 108px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,155,.5) 0%, rgba(255,208,92,.22) 45%, rgba(255,180,65,.08) 70%, transparent 100%);
  filter: blur(2px);
  animation: rl-glow calc(var(--flicker) * 1.25) ease-in-out infinite;
}

@keyframes rl-swing{
  0%,100%{ transform: rotate(calc(var(--swing) * -1)); }
  50%{ transform: rotate(var(--swing)); }
}
@keyframes rl-flicker{
  0%,100%{ filter: brightness(1) saturate(1); }
  18%{ filter: brightness(1.1) saturate(1.08); }
  35%{ filter: brightness(.92) saturate(.96); }
  58%{ filter: brightness(1.2) saturate(1.12); }
  80%{ filter: brightness(.97) saturate(1); }
}
@keyframes rl-glow{
  0%,100%{ opacity:.55; transform: translateX(-50%) scale(1); }
  50%{ opacity:.9; transform: translateX(-50%) scale(1.08); }
}

@media (max-width: 700px){
  .lanterns-container{ height: clamp(88px, 23vw, 128px); }
  .light{
    width: clamp(68px, 18vw, 110px);
    height: clamp(50px, 14vw, 86px);
  }
}

