:root {
  --bg: #120f0f;
  --bg-soft: #1a1513;
  --panel: #1d1a18;
  --panel-strong: #221f1e;
  --surface: rgba(255,255,255,0.03);
  --surface-strong: rgba(255,255,255,0.05);
  --gold: #d4af37;
  --gold-2: #f4c95d;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --red: #d75656;
  --text: #f7f2ea;
  --muted: #c7bdb4;
  --line: rgba(255,255,255,0.08);
  --green: #25d366;
  --shadow: 0 24px 60px rgba(0,0,0,0.35);
  --shadow-soft: 0 14px 28px rgba(0,0,0,0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.08), transparent 25%),
    linear-gradient(180deg, #120f0f 0%, #1b1715 100%);
  color: var(--text);
  font-family: 'Vazirmatn', sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.015), transparent 28%, rgba(212,175,55,0.03));
  z-index: 0;
}

.site-shell,
.main-header,
.main-footer,
.hero-section,
.section-block,
.page-section,
.admin-main,
.admin-sidebar {
  position: relative;
  z-index: 1;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(18, 15, 15, 0.78);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  gap: 18px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-home-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-home-link:hover strong,
.brand-home-link:hover span {
  color: var(--gold);
}

.brand-block strong,
.brand-home-link strong {
  display: block;
  font-size: 1rem;
  color: var(--gold);
}

.brand-block span,
.brand-home-link span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #8b6a1a);
  color: #1a1208;
  font-size: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn, .cart-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.icon-btn:hover, .cart-badge:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
  background: rgba(212, 175, 55, 0.06);
}

.cart-badge {
  width: auto;
  min-width: 42px;
  padding: 0 12px;
  display: inline-flex;
  gap: 8px;
  position: relative;
}

.cart-badge span {
  background: var(--gold);
  color: #111;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-section {
  padding: 58px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  position: relative;
}

.badge, .mini-label {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-2);
  font-size: 0.8rem;
  border: 1px solid rgba(212, 175, 55, 0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 620px;
  text-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 2;
  margin-bottom: 26px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-primary, .btn-secondary, .mini-btn, .logout-btn, .delete-btn {
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-family: 'Vazirmatn';
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.btn-primary, .mini-btn {
  background: linear-gradient(135deg, var(--gold), #b78120);
  color: #1a1208;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary:hover, .mini-btn:hover, .btn-secondary:hover, .logout-btn:hover, .delete-btn:hover {
  box-shadow: 0 18px 30px rgba(212, 175, 55, 0.18);
}

.btn-primary::before, .mini-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.24) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.btn-primary:hover::before, .mini-btn:hover::before {
  transform: translateX(120%);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.mini-btn {
  padding: 10px 14px;
  font-size: 0.82rem;
}

.btn-primary:hover, .mini-btn:hover, .btn-secondary:hover, .logout-btn:hover, .delete-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(212, 175, 55, 0.15);
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  min-width: 120px;
}

.hero-stats strong {
  color: var(--gold);
  font-size: 1.5rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(100%, 500px);
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.35));
  z-index: 1;
}

.hero-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.floating-box {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(17, 17, 17, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.floating-box span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.floating-box h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.floating-box strong {
  color: #fff;
}

.section-block {
  padding: 32px 0 14px;
}

.alt-block {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
}

.text-link {
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.text-link:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.32);
  transform: translateY(-1px);
}

.product-grid, .menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,0.28);
  box-shadow: 0 18px 34px rgba(0,0,0,0.24);
}

.product-card .product-image-wrap img {
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.03);
}

.product-image-wrap {
  position: relative;
}

.product-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.14) 100%);
  pointer-events: none;
}

.product-image-wrap img {
  height: 240px;
  width: 100%;
  object-fit: cover;
}

.tag-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(17,17,17,0.82);
  border: 1px solid var(--line);
  color: var(--gold-2);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.product-body {
  padding: 18px 18px 20px;
}

.product-body h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.product-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.9;
  min-height: 72px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 12px;
}

.price-row strong {
  display: block;
  font-size: 1.2rem;
  color: var(--gold-2);
}

.price-row small {
  color: var(--muted);
  text-decoration: line-through;
  display: block;
  margin-top: 4px;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.category-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.28);
}

.category-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.category-card h3 {
  margin: 0 0 8px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.menu-list {
  display: grid;
  gap: 18px;
}

.menu-item {
  display: flex;
  gap: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.menu-item:hover {
  transform: translateY(-2px);
  border-color: rgba(212,175,55,0.28);
}

.menu-thumb {
  width: 150px;
  min-width: 150px;
}

.menu-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.menu-content {
  flex: 1;
}

.menu-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.menu-topline h3 {
  margin: 0;
}

.menu-topline span {
  color: var(--gold-2);
  font-size: 0.8rem;
}

.menu-content p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.9;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.menu-footer strong {
  color: var(--gold-2);
}

.info-banner {
  padding-bottom: 40px;
}

.info-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.09), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  gap: 18px;
  flex-wrap: wrap;
}

.feature-points div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.feature-points i {
  color: var(--gold);
}

.main-footer {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.main-footer h3, .main-footer h4 {
  margin-bottom: 10px;
}

.main-footer p,
.main-footer a {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.page-section {
  padding: 40px 0;
}

.page-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
}

.empty-cart,
.success-box,
.auth-card,
.admin-panel,
.stat-card,
.checkout-summary,
.checkout-form,
.cart-summary {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.empty-cart {
  text-align: center;
  padding: 60px 18px;
}

.empty-cart i {
  display: block;
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.cart-layout, .checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
}

.cart-list {
  display: grid;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.cart-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-info h3 {
  margin: 0 0 8px;
}

.cart-info strong {
  color: var(--gold-2);
}

.qty-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(212, 175, 55, 0.2);
  color: var(--text);
  cursor: pointer;
}

.remove-btn {
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: rgba(215,86,86,0.12);
  color: #ff8e8e;
  cursor: pointer;
}

.cart-summary, .checkout-summary {
  padding: 22px 18px;
  position: sticky;
  top: 96px;
}

.cart-summary h3, .checkout-summary h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row strong {
  color: var(--gold-2);
}

.total-row {
  border-bottom: none;
  font-size: 1.05rem;
}

.full-width {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  margin-top: 18px;
}

.checkout-form {
  padding: 20px;
}

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(17, 14, 12, 0.92);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-group input:hover,
.field-group textarea:hover,
.field-group select:hover {
  border-color: rgba(212,175,55,0.25);
}

.field-group select,
.status-select {
  color-scheme: dark;
}

.field-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: rgba(17, 14, 12, 0.92);
  padding-left: 38px;
  color: var(--text);
}

.field-group select option,
.status-select option {
  background: #f5efe7;
  color: #1f1a17;
}

.field-group select option:checked,
.field-group select option:hover,
.status-select option:checked,
.status-select option:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1208;
}

.field-group select:focus,
.status-select:focus,
.order-note-input:focus,
.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.center-box {
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.success-box {
  text-align: center;
  max-width: 560px;
  padding: 48px 32px;
}

.success-box i {
  font-size: 4rem;
  color: var(--green);
  margin-bottom: 18px;
}

.success-box h1 {
  margin: 0 0 18px;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.auth-box {
  width: min(500px, calc(100% - 20px));
}

.auth-card {
  padding: 28px;
}

.auth-card h1 {
  margin-top: 0;
  text-align: center;
}

.alert-box {
  background: rgba(215,86,86,0.12);
  color: #ffb5b5;
  border: 1px solid rgba(215,86,86,0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, rgba(15,13,13,0.96), rgba(18,15,15,0.98));
  border-left: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
}

.admin-navigation {
  position: relative;
}

.admin-menu-toggle,
.admin-menu-backdrop {
  display: none;
}

.admin-brand {
  padding: 16px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.04));
  color: var(--gold-2);
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.18);
}

.admin-sidebar nav {
  display: grid;
  gap: 10px;
}

.admin-sidebar nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-sidebar nav a:hover {
  color: var(--gold-2);
  border-color: rgba(212,175,55,0.2);
  transform: translateX(-2px);
}

.admin-sidebar nav a.active {
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold-2);
  background: rgba(212, 175, 55, 0.08);
}

.logout-btn {
  width: 100%;
  background: rgba(215,86,86,0.12);
  color: #ffb3b3;
  border: 1px solid rgba(215,86,86,0.3);
}

.admin-main {
  flex: 1;
  padding: 32px 28px 48px;
}

.admin-topbar {
  margin-bottom: 24px;
}

.admin-topbar h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2vw, 2.4rem);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 22px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 1.8rem;
  color: var(--gold-2);
}

.admin-panel {
  padding: 20px;
  margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.manual-order-panel {
  overflow: hidden;
}

.manual-order-disclosure {
  display: block;
}

.manual-order-heading {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 8px 4px;
}

.manual-order-heading::-webkit-details-marker {
  display: none;
}

.manual-order-eyebrow {
  display: block;
  color: var(--gold-2);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.manual-order-heading h3 {
  margin: 0;
  font-size: 1.2rem;
}

.manual-order-heading-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.14);
  color: var(--gold-2);
}

.manual-order-chevron {
  transition: transform 0.2s ease;
}

.manual-order-disclosure[open] .manual-order-chevron {
  transform: rotate(180deg);
}

.manual-order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.manual-order-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manual-order-field label {
  color: var(--muted);
  font-weight: 600;
}

.manual-order-field-wide,
.manual-order-field-full {
  grid-column: 1 / -1;
}

.manual-order-field input,
.manual-order-field textarea,
.manual-order-field select {
  width: 100%;
}

.manual-order-input-wrap {
  position: relative;
}

.manual-order-input-suffix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.8rem;
}

.manual-order-input-wrap input {
  padding-left: 58px;
}

.manual-order-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.manual-order-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.orders-table-wrap, .product-table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: rgba(255,255,255,0.012);
  border-radius: 16px;
  overflow: hidden;
}

.orders-table thead th {
  padding: 12px 10px;
  text-align: right;
  color: var(--gold-2);
  background: rgba(212,175,55,0.08);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.orders-table tbody td {
  padding: 14px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-mobile-cell-label {
  display: none;
}

.orders-table tbody tr {
  transition: background 0.2s ease;
}

.orders-table tbody tr:hover {
  background: rgba(255,255,255,0.015);
}

.delete-btn {
  background: rgba(215,86,86,0.12);
  color: #ffb5b5;
  border: 1px solid rgba(215,86,86,0.2);
  padding: 8px 12px;
}

.product-delete-form,
.category-delete-form,
.rider-delete-form {
  margin-top: 12px;
}

.danger-btn {
  background: rgba(215, 86, 86, 0.12);
  color: #ffb9b9;
}

.closed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(148,163,184,0.14);
  color: var(--muted);
  border: 1px solid rgba(148,163,184,0.2);
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.form-panel {
  margin-bottom: 26px;
}

.hidden {
  display: none !important;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  width: 100%;
  padding-left: 44px;
}

.password-toggle {
  position: absolute;
  left: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color 160ms ease, background 160ms ease;
}

.password-toggle:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-2);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rider-order-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.rider-order-active {
  background: rgba(255,255,255,0.04);
}

.rider-order-done {
  opacity: 0.55;
  background: rgba(255,255,255,0.02);
}

.status-select,
.order-note-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(17, 14, 12, 0.92);
  color: var(--text);
  font-size: 1.02rem;
  font-family: 'Vazirmatn', sans-serif;
}

.status-select {
  font-size: 1.05rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: rgba(17, 14, 12, 0.92);
  padding-left: 38px;
  color: var(--text);
}

.order-note-input {
  min-height: 84px;
  resize: vertical;
  font-size: 0.98rem;
}

.inline-form {
  display: grid;
  gap: 10px;
}

.inline-form .two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(212,175,55,0.05));
  color: var(--gold-2);
  border: 1px solid rgba(212, 175, 55, 0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  font-weight: 700;
}

.order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-actions a,
.order-actions .mini-btn,
.order-actions button,
.order-actions form,
.order-actions .text-link {
  width: fit-content;
}

.order-actions a,
.order-actions .text-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.meta-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.meta-box strong {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.meta-box a,
.meta-box .btn-primary,
.meta-box .mini-btn,
.meta-box .text-link {
  margin-top: 8px;
}

.rider-order-card {
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
}

.rider-order-active {
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.08);
}

.rider-order-done {
  opacity: 0.72;
}

@media (max-width: 980px) {
  .hero-grid, .cart-layout, .checkout-layout, .product-grid, .menu-grid, .category-row, .footer-row, .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .product-grid, .menu-grid, .category-row, .footer-row, .stat-grid, .two-col, .cart-layout, .checkout-layout {
    grid-template-columns: 1fr;
  }

  .header-row {
    padding: 10px 0;
  }

  .hero-card img {
    height: 360px;
  }

  .menu-item, .cart-item {
    grid-template-columns: 1fr;
  }

  .menu-thumb {
    width: 100%;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  }

  .admin-navigation {
    position: static;
    order: -1;
    flex: 0 0 auto;
  }

  .admin-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.06));
    color: var(--gold-2);
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  .admin-menu-toggle:hover,
  .admin-menu-toggle:focus-visible {
    border-color: var(--gold-2);
    background: rgba(212, 175, 55, 0.2);
  }

  .admin-menu-toggle:active {
    transform: scale(0.96);
  }

  .admin-menu-toggle:focus-visible {
    outline: 2px solid var(--gold-2);
    outline-offset: 2px;
  }

  .admin-menu-backdrop {
    position: fixed;
    z-index: 1;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.56);
    cursor: default;
  }

  .admin-navigation.is-open .admin-menu-backdrop {
    display: block;
  }

  .admin-sidebar .admin-navigation nav {
    position: fixed;
    z-index: 2;
    top: 68px;
    right: 12px;
    display: none;
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #171413;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  }

  .admin-sidebar .admin-navigation.is-open nav {
    display: grid;
  }

  .admin-sidebar .admin-navigation nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 11px 14px;
  }

  .admin-navigation.is-open .admin-menu-toggle {
    position: relative;
    z-index: 3;
  }

  .admin-brand {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    padding: 8px 10px;
    border-radius: 10px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-sidebar > form {
    flex: 0 0 auto;
    margin: 0;
  }

  .admin-sidebar .logout-btn {
    width: auto;
    min-height: 42px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  body.admin-menu-open {
    overflow: hidden;
  }

  .admin-mobile-table {
    display: block;
    min-width: 0;
    overflow: visible;
    background: transparent;
  }

  .admin-mobile-table thead {
    display: none;
  }

  .admin-mobile-table tbody {
    display: grid;
    gap: 12px;
  }

  .admin-mobile-table tbody tr:not(.admin-mobile-edit-row) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.025);
  }

  .admin-mobile-table tbody td {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    overflow-wrap: anywhere;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
  }

  .admin-mobile-cell-label,
  .admin-mobile-table tbody td::before {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
  }

  .admin-mobile-cell-label {
    display: block;
  }

  .admin-mobile-table tbody td::before {
    content: attr(data-label);
  }

  .admin-mobile-table tbody td.order-actions,
  .admin-mobile-table tbody td[data-label="عملیات"],
  .admin-mobile-table tbody td[data-label="توضیحات"] {
    grid-column: 1 / -1;
  }

  .admin-mobile-table tbody td.order-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-mobile-table tbody td.order-actions form,
  .admin-mobile-table tbody td.order-actions button,
  .admin-mobile-table tbody td[data-label="عملیات"] .order-actions,
  .admin-mobile-table tbody td[data-label="عملیات"] .order-actions a,
  .admin-mobile-table tbody td[data-label="عملیات"] .order-actions button {
    max-width: 100%;
  }

  .admin-mobile-table tbody tr.admin-mobile-edit-row {
    display: block;
  }

  .admin-mobile-table tbody tr.admin-mobile-edit-row td {
    display: block;
    border: 0;
  }

  .admin-mobile-table tbody tr.admin-mobile-edit-row td::before {
    content: none;
  }

  .hero-stats {
    gap: 14px;
  }
}
