:root{
  --bg: #0b1f2a;
  --bg2:#0f2c3b;
  --card:#ffffff;
  --muted:#6c757d;
  --primary:#0d6efd;
  --shadow: 0 12px 30px rgba(0,0,0,.12);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f6f7fb;
  color:#14212b;
}

/* Topbar */
.topbar{
  background: linear-gradient(90deg, var(--bg), var(--bg2));
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.brand-badge{
  width:36px;height:36px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
}
.brand-sub{
  opacity:.85; font-size:.9rem; margin-right:10px;
}
.fw-extrabold{ font-weight:800; }

.search-wrap{
  position:relative;
  width: min(420px, 70vw);
}
.search-wrap i{
  position:absolute;
  top:50%; right:12px;
  transform: translateY(-50%);
  opacity:.65;
}
.search-wrap input{
  padding-right: 36px;
  border-radius: 999px;
}

/* Hero */
.hero{
  background: radial-gradient(1100px 400px at 80% 0%, rgba(13,110,253,.26), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:#fff;
  padding: 34px 0 26px;
}
.hero-inner{ padding-top: 8px; }
.hero-title{
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 8px;
}
.hero-lead{
  opacity:.9;
  max-width: 55ch;
}
.hero-actions .btn{
  border-radius: 14px;
  padding: 10px 14px;
}
.hero-meta{
  display:flex; gap:10px; flex-wrap:wrap;
}
.meta-pill{
  display:inline-flex; gap:8px; align-items:center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* Cards */
.hero-card, .side-card{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  color:#13212b;
}
.hero-card-top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.hero-card-body{
  padding: 14px 16px 16px;
}
.stat{
  text-align:center;
  background: rgba(13,110,253,.08);
  border: 1px solid rgba(13,110,253,.18);
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 92px;
}
.stat-num{ font-weight:900; font-size: 1.35rem; line-height: 1; }
.stat-label{ font-size:.8rem; color: var(--muted); }

.chips{
  display:flex; flex-wrap:wrap; gap:8px;
}
.chip{
  background: rgba(13,110,253,.10);
  border: 1px solid rgba(13,110,253,.20);
  color:#0b4aa6;
  padding: 6px 10px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 700;
  font-size:.9rem;
}
.chip:hover{ filter:brightness(.98); }

/* Main */
.main{
  padding: 18px 0 60px;
}

.side-card{ padding: 14px; }
.side-title{
  font-weight: 900;
  margin-bottom: 10px;
}
.list-group .list-group-item{
  border: 0;
  border-radius: 12px !important;
  margin-bottom: 8px;
  background: #f2f4f8;
  cursor:pointer;
  font-weight: 800;
}
.list-group .list-group-item.active{
  background: rgba(13,110,253,.14);
  color:#0b4aa6;
  border: 1px solid rgba(13,110,253,.25);
}

/* Menu sections */
.menu-card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.06);
}

/* Category banner image */
.cat-hero{
  position: relative;
  height: 165px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: #0f2c3b;
}
.cat-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.02);
}
.cat-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(7,42,64,.78), rgba(7,42,64,.10));
}
.cat-hero .cat-hero-content{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding: 14px 14px;
  color:#fff;
}
.cat-hero .cat-title{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 1.1rem;
}
.cat-hero .cat-sub{
  color: rgba(255,255,255,.86);
  font-size: .9rem;
}
.cat-hero .count-badge{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
}

/* Items */
.item-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.item-row:hover{
  background: #fbfcff;
}
.item-name{
  font-weight: 900;
}
.item-desc{
  color: var(--muted);
  font-size: .9rem;
  margin-top: 2px;
}
.item-price{
  font-weight: 900;
  color:#0b4aa6;
  white-space:nowrap;
}
.item-btn{
  border-radius: 12px;
  padding: 8px 10px;
}

/* Compact mode */
body.compact .cat-hero{ height: 120px; }
body.compact .item-desc{ display:none; }
body.compact .item-row{ padding: 10px 12px; }

/* Modal */
.modal-card{
  border-radius: 18px;
  overflow:hidden;
}
.price-tag{
  font-size: 1.25rem;
  font-weight: 900;
  color:#0b4aa6;
}
#modalDesc{
  line-height: 1.8;
}

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(10px);
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
  transition: all .55s ease;
}

/* Floating top button */
.float-top{
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadow);
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  transform: translateY(10px);
  transition: all .25s ease;
}
.float-top.show{
  opacity:1;
  transform: translateY(0);
}

/* Footer note */
.footer-note{
  padding: 10px 4px;
}
