/* =========================================================
   مطعم السلام — نظام التصميم
   الفكرة: سوق التوابل الليلي + تذكرة الطلب في المطبخ
   الألوان: خلفية داكنة دافئة + ذهبي زعفران + أحمر فلفل + زيتوني
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Noto+Kufi+Arabic:wght@400;600;700&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root{
  --bg:            #1B1611;
  --bg-elevated:   #281E15;
  --bg-elevated-2: #352719;
  --cream:         #FFF4E3;
  --muted:         #C6B79D;
  --gold:          #F2B84B;
  --gold-dim:      #C88924;
  --paprika:       #D6533D;
  --paprika-dim:   #A83A2D;
  --olive:         #91A85D;
  --success:       #83D09A;
  --line:          rgba(255,244,227,0.15);
  --line-strong:   rgba(255,244,227,0.30);
  --radius:        14px;
  --shadow:        0 18px 40px rgba(0,0,0,0.35);
  --font-display:  'Noto Kufi Arabic', sans-serif;
  --font-body:     'Noto Sans Arabic', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.65;
  direction: rtl;
  overflow-x: hidden;
}

/* subtle woven-fabric / grain texture on the background */
body::before{
  content:"";
  position: fixed; inset:0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(242,184,75,0.10), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(214,83,61,0.09), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

h1,h2,h3,h4{ font-family: var(--font-display); margin:0; color: var(--cream); }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
input,textarea,select{ font-family: inherit; }

.container{ max-width: 1140px; margin:0 auto; padding: 0 24px; position: relative; z-index:1; }

/* ---------------------------------------------------------
   الشريط العلوي
--------------------------------------------------------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(23,20,15,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-logo{
  width:70px; height:70px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 2px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(217,164,65,0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand:hover .brand-logo{
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 4px 16px rgba(217,164,65,0.45);
}
.brand-mark{
  width:44px; height:44px; border-radius:50%;
  background: conic-gradient(from 210deg, var(--paprika), var(--gold), var(--olive), var(--paprika));
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:900; color:var(--bg); font-size:18px;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{ font-family: var(--font-display); font-weight:800; font-size:19px; }
.brand-text span{ font-size:12px; color: var(--muted); letter-spacing:.5px; }

.main-nav{ display:flex; align-items:center; gap:28px; }
.main-nav a{ font-size:15px; color: var(--muted); transition: color .2s; position:relative; }
.main-nav a:hover, .main-nav a.active{ color: var(--gold); }
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-link{
  display:flex; align-items:center; gap:8px;
  background: var(--bg-elevated); border:1px solid var(--line-strong);
  padding:9px 18px; border-radius: 999px; font-size:14px; color: var(--cream) !important;
  transition: border-color .2s, background .2s, transform 0.15s;
}
.cart-link:hover{ border-color: var(--gold); transform: translateY(-1px); }
.cart-link:active{ transform: translateY(1px); }
.cart-badge{
  background: var(--paprika); color:#fff; font-size:11px; font-weight:700;
  min-width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
}
.status-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  border:1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.status-btn.open{
  background: rgba(124, 138, 85, 0.15);
  border-color: rgba(124, 138, 85, 0.35);
  color: var(--gold);
}
.status-btn.closed{
  background: rgba(193, 68, 43, 0.14);
  border-color: rgba(193, 68, 43, 0.35);
  color: var(--paprika);
}
.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.admin-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(217,164,65,0.12);
}

.store-status-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid rgba(242,233,216,0.08);
}
.store-status-banner.open {
  background: rgba(124, 138, 85, 0.12);
  color: var(--gold);
}
.store-status-banner.closed {
  background: rgba(193, 68, 43, 0.12);
  color: var(--paprika);
}
.status-closed {
  display: inline-block;
  width: 100%;
  color: var(--paprika);
  font-weight: 700;
  text-align: center;
}

.store-closed-alert {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(193, 68, 43, 0.16);
  color: var(--cream);
  border: 1px solid rgba(193, 68, 43, 0.28);
  text-align: center;
  font-weight: 700;
  margin-bottom: 20px;
}

.burger-btn {
  cursor: pointer;
  z-index: 110;
}
.burger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.3s ease;
}
.burger-btn.open .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.open .burger-bar:nth-child(2) {
  opacity: 0;
}
.burger-btn.open .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -285px;
  width: 280px;
  background: rgba(23, 20, 15, 0.98);
  backdrop-filter: blur(15px);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  z-index: 110;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer.open {
  right: 0;
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 32px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.close-drawer-btn:hover {
  color: var(--gold);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(242,233,216,0.05);
  transition: color 0.2s, padding-right 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--gold);
  padding-right: 8px;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  width: calc(100% - 48px);
}
.toast {
  background: rgba(33, 27, 20, 0.95);
  backdrop-filter: blur(8px);
  border-right: 4px solid var(--gold);
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: toast-in 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s, transform 0.3s;
}
.toast.success {
  border-right-color: var(--olive);
}
.toast.error {
  border-right-color: var(--paprika);
}
.toast-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}
.toast-close:hover {
  color: var(--cream);
}
@keyframes toast-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-20px); }
}


/* ---------------------------------------------------------
   الهيرو
--------------------------------------------------------- */
.hero {
  padding: 84px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  max-width: 760px;
  line-height: 1.25;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  bottom: 5px; left: 0; right: 0;
  height: 8px;
  background: rgba(217, 164, 65, 0.15);
  z-index: -1;
  border-radius: 4px;
}
.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin-top: 18px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, background-color .18s, border-color .18s;
}
.btn:active {
  transform: scale(.97);
}
.btn-primary {
  background: var(--paprika);
  color: #fff;
  box-shadow: 0 10px 24px rgba(193, 68, 43, 0.25);
}
.btn-primary:hover {
  background: var(--paprika-dim);
  box-shadow: 0 14px 30px rgba(193, 68, 43, 0.4);
}
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--cream);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(217, 164, 65, 0.04);
}
.btn-danger {
  background: #b63c3c;
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}
.btn-danger:hover {
  background: #8f2c2c;
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 8px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  display: block;
}
.hero-stats div span {
  font-size: 13px;
  color: var(--muted);
}

/* Hero visual / floating elements */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
}
.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow), 0 0 30px rgba(242, 184, 75, 0.24);
  z-index: 2;
  position: relative;
  animation: float 6s ease-in-out infinite;
}
.hero-glow {
  position: absolute;
  top: -10%; left: -10%; right: -10%; bottom: -10%;
  background: radial-gradient(circle, rgba(242, 184, 75, 0.18) 0%, transparent 70%);
  z-index: 1;
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}
.floating-badge {
  position: absolute;
  background: rgba(33, 27, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 3;
  animation: float-badge 4s ease-in-out infinite alternate;
}
.floating-badge.badge-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0.5s;
}
.floating-badge.badge-2 {
  bottom: 10%;
  left: -25px;
  animation-delay: 1.2s;
}
.floating-badge .icon {
  font-size: 24px;
}
.floating-badge h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: var(--gold);
}
.floating-badge p {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 0 0;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes float-badge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* ---------------------------------------------------------
   شريط الأصناف
--------------------------------------------------------- */
.category-bar-wrapper {
  position: relative;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.category-bar-wrapper::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 50px;
  background: linear-gradient(to right, var(--bg), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.category-bar-wrapper.has-scroll::after {
  opacity: 1;
}
.category-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0;
  width: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-bar::-webkit-scrollbar {
  display: none;
}
.category-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.25s ease;
  background: var(--bg-elevated);
}
.category-pill:hover {
  color: var(--cream);
  border-color: var(--gold);
  background: var(--bg-elevated-2);
}
.category-pill.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(217, 164, 65, 0.25);
}

/* ---------------------------------------------------------
   بطاقة الطبق - على شكل تذكرة طلب مثقوبة
--------------------------------------------------------- */
.menu-section {
  padding: 20px 0 40px;
  scroll-margin-top: 100px;
}
.menu-section h2 {
  font-size: 26px;
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-section h2 .icon {
  font-size: 22px;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.ticket {
  position: relative;
  background: var(--bg-elevated);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.ticket:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(217, 164, 65, 0.08), var(--shadow);
}

/* notch holes to sell the "ticket stub" idea */
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.ticket::before { right: -10px; }
.ticket::after { left: -10px; }

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  z-index: 2;
}
.ticket-top h3 {
  font-size: 18px;
  font-weight: 700;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  color: #fff;
  flex-shrink: 0;
}
.tag.gold { background: var(--gold-dim); }
.tag.paprika { background: var(--paprika-dim); }
.tag.olive { background: var(--olive); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}
.menu-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  color: var(--cream);
}
.menu-badge.badge-hot {
  border-color: rgba(217, 98, 65, 0.7);
  color: #ffd6cb;
  background: rgba(217, 98, 65, 0.12);
}
.menu-badge.badge-rated {
  border-color: rgba(217, 164, 65, 0.7);
  color: #ffe7af;
  background: rgba(217, 164, 65, 0.12);
}

.ticket p.desc {
  color: var(--muted);
  font-size: 13.5px;
  min-height: 38px;
  z-index: 2;
}

.ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: auto;
  z-index: 2;
}
.price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--gold);
  font-size: 16px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 4px 10px rgba(217, 164, 65, 0.2);
}
.qty-val {
  min-width: 18px;
  text-align: center;
  font-family: var(--font-mono);
}

.unavailable {
  opacity: .45;
  filter: grayscale(.4);
}
.unavailable .qty-control {
  pointer-events: none;
}

.ticket-image {
  width: calc(100% + 40px);
  margin: -22px -20px 8px -20px;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 1.6;
  position: relative;
  background: var(--bg-elevated-2);
}
.ticket-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.ticket:hover .ticket-image img {
  transform: scale(1.05);
}

/* ---------------------------------------------------------
   السلة / الدفع
--------------------------------------------------------- */
.page-title {
  padding: 48px 0 8px;
}
.page-title h1 {
  font-size: 34px;
}
.page-title p {
  color: var(--muted);
  margin-top: 8px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  padding-bottom: 60px;
  align-items: start;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}
.cart-item.removing {
  opacity: 0;
  transform: translateX(-30px);
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-bottom: none;
  overflow: hidden;
}
.cart-item .info {
  flex: 1;
}
.cart-item .info h4 {
  font-size: 16px;
  font-weight: 700;
}
.cart-item .info span {
  font-size: 13px;
  color: var(--muted);
}
.remove-link {
  color: var(--paprika);
  font-size: 13px;
  transition: color 0.2s;
}
.remove-link:hover {
  color: var(--paprika-dim);
}

.summary-box {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
}
.summary-row.total {
  color: var(--cream);
  font-weight: 800;
  font-size: 19px;
  border-top: 1px dashed var(--line-strong);
  margin-top: 8px;
  padding-top: 16px;
}
.summary-row.total .price {
  font-size: 19px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--cream);
  padding: 13px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(217, 164, 65, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.order-status-card {
  max-width: 820px;
  margin: 34px auto 70px;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.order-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}
.order-status-form .form-group { margin-bottom: 0; }
.order-status-form .btn { min-height: 50px; white-space: nowrap; }
.order-status-empty {
  margin: 24px 0 0;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}
.order-details {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.order-details h2 { font-size: 23px; margin-bottom: 18px; }
.order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
}
.order-meta strong,
.order-notes strong { color: var(--cream); }
.order-notes {
  margin-top: 18px;
  padding: 14px 16px;
  border-right: 3px solid var(--gold);
  background: rgba(242,184,75,0.07);
  color: var(--muted);
}
.order-items { margin-top: 24px; }
.order-items h3 { font-size: 17px; margin-bottom: 10px; }
.order-item-row,
.order-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}
.order-total {
  border-bottom: 0;
  padding-top: 18px;
  color: var(--cream);
  font-weight: 700;
}
.order-total strong { color: var(--gold); font-family: var(--font-mono); }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state .emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ---------------------------------------------------------
   إيصال تأكيد الطلب
--------------------------------------------------------- */
.receipt {
  max-width: 440px;
  margin: 60px auto;
  background: var(--bg-elevated);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  box-shadow: var(--shadow);
}
.receipt::before, .receipt::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border-radius: 50%;
}
.receipt::before { right: 24px; }
.receipt::after { left: 24px; }
.receipt-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
}
.receipt h2 {
  text-align: center;
  font-size: 22px;
}
.receipt .code {
  text-align: center;
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 2px;
  margin: 14px 0 22px;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}
.receipt-line b {
  color: var(--cream);
  font-weight: 600;
}

/* ---------------------------------------------------------
   لوحة الإدارة
--------------------------------------------------------- */
.admin-shell {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--line);
  padding: 26px 20px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}
.admin-sidebar .brand-text strong {
  font-size: 16px;
}
.admin-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-nav a {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.admin-nav a:hover {
  background: var(--bg-elevated-2);
  color: var(--cream);
}
.admin-nav a.active {
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}
.admin-orders-link {
  justify-content: space-between;
}
.admin-notification-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--paprika);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
}
.admin-nav a.active .admin-notification-badge {
  background: var(--bg);
  color: var(--gold);
}
.admin-main {
  flex: 1;
  padding: 36px 40px;
  max-width: 1200px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.stat-card span {
  color: var(--muted);
  font-size: 13px;
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  margin-top: 8px;
  color: var(--gold);
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.admin-table th, table.admin-table td {
  padding: 14px 16px;
  text-align: right;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
table.admin-table th {
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-elevated-2);
}
table.admin-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-badge.new { background: rgba(217, 164, 65, 0.18); color: var(--gold); }
.status-badge.prep { background: rgba(124, 138, 85, 0.25); color: var(--olive); }
.status-badge.way { background: rgba(193, 68, 43, 0.2); color: var(--paprika); }
.status-badge.done { background: rgba(131, 208, 154, 0.2); color: var(--success); }
.status-badge.cancel { background: rgba(180, 80, 80, 0.2); color: #E88; }

.order-tracking {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.order-tracking h3 { font-size: 16px; margin-bottom: 20px; }
.tracking-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tracking-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.tracking-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  right: calc(-50% + 15px);
  width: calc(100% - 30px);
  height: 2px;
  background: var(--line-strong);
  z-index: 0;
}
.tracking-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--muted);
  font-family: var(--font-mono);
}
.tracking-step.complete,
.tracking-step.current { color: var(--gold); }
.tracking-step.complete .tracking-marker,
.tracking-step.current .tracking-marker {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg);
}
.tracking-step.complete:not(:last-child)::after { background: var(--gold); }
.tracking-step.current .tracking-marker { box-shadow: 0 0 0 5px rgba(217,164,65,0.12); }
.tracking-cancelled {
  padding: 12px 14px;
  border: 1px solid rgba(193,68,43,0.35);
  border-radius: 8px;
  color: #F0958A;
  background: rgba(193,68,43,0.12);
}

.status-update-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.status-update-row select {
  background: var(--bg);
  color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  max-width: 100%;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}
.flash.error { background: rgba(193, 68, 43, 0.15); color: #F0958A; border: 1px solid rgba(193, 68, 43, 0.4); }
.flash.success { background: rgba(145, 168, 93, 0.18); color: #D4E6B0; border: 1px solid rgba(145, 168, 93, 0.4); }

/* ---------------------------------------------------------
   تذييل
--------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer p {
  color: var(--muted);
  font-size: 13px;
}

/* ---------------------------------------------------------
   التجاوب مع الشاشات
--------------------------------------------------------- */
@media (max-width: 860px) {
  .site-header .container {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    height: auto;
    padding: 14px 0;
  }
  .brand {
    gap: 10px;
  }
  .brand-logo {
    width: 58px;
    height: 58px;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-image-wrapper {
    max-width: 280px;
  }
  .hero h1 {
    max-width: none;
  }
  .hero p {
    max-width: none;
  }
  .hero-actions {
    justify-content: center;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .summary-box {
    position: static;
    top: auto;
    width: 100%;
  }
  .site-footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  .cart-label {
    display: none;
  }
  .cart-link {
    padding: 9px 12px;
  }
  .site-header .container {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .header-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
  }
  .header-actions .status-btn,
  .header-actions .admin-link { display: none; }
  .header-actions > * {
    min-width: 0;
  }
  .brand-text strong {
    font-size: 16px;
  }
  .brand-text span {
    font-size: 11px;
  }
  .ticket {
    padding: 18px;
    min-width: 0;
  }
  .ticket::before,
  .ticket::after {
    display: none;
  }
  .ticket-image {
    width: 100%;
    margin: 0 0 12px;
    border-radius: 14px;
  }
  .ticket-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cart-item {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }
  .summary-box {
    padding: 22px;
    width: 100%;
    min-width: 0;
  }
  .page-title { padding-top: 32px; }
  .page-title h1 { font-size: 28px; }
  .form-group input,
  .form-group textarea { font-size: 16px; }
  .order-status-form .btn { width: 100%; justify-content: center; }
  .order-status-card { padding: 18px; margin-top: 24px; }
  .order-status-form { grid-template-columns: 1fr; gap: 12px; }
  .order-tracking { padding: 16px; }
  .receipt { margin: 36px auto; padding: 28px 20px; }
  .admin-shell {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .admin-sidebar .brand {
    gap: 12px;
  }
  .admin-sidebar .admin-nav {
    display: none;
  }
  .admin-sidebar .burger-btn {
    display: flex;
  }
  .admin-main {
    padding: 24px 18px;
  }
  .drawer-overlay {
    backdrop-filter: blur(8px);
  }
  table.admin-table {
    overflow-x: auto;
    display: block;
    width: 100%;
    white-space: nowrap;
  }
  .admin-main { overflow-x: hidden; }
  .tracking-steps { grid-template-columns: 1fr; gap: 14px; align-items: stretch; }
  .tracking-step { flex-direction: row; text-align: right; }
  .tracking-step:not(:last-child)::after {
    top: 30px;
    right: 14px;
    width: 2px;
    height: calc(100% + 14px);
  }
}


@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .dish-grid .ticket {
    padding: 12px 8px;
    gap: 8px;
  }
  .site-header .container {
    padding: 12px 0;
  }
  .brand-logo {
    width: 52px;
    height: 52px;
  }
  .hero {
    padding: 60px 0 40px;
  }
  .hero h1 {
    font-size: clamp(32px, 12vw, 44px);
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cart-link,
  .status-btn,
  .admin-link {
    font-size: 13px;
    padding: 8px 12px;
  }
  .mobile-drawer {
    width: min(92vw, 280px);
    padding: 22px 18px;
  }
  .mobile-nav a {
    font-size: 16px;
    padding: 12px 0;
  }
  .toast-container {
    left: 16px;
    right: 16px;
    width: auto;
  }
}
