/* نَسَق التقني — برتقالي عالي التباين */
:root {
  --bg-deep: #04060d;
  --bg-mid: #070b18;
  --bg-card: rgba(10, 18, 42, 0.62);
  --bg-elevated: rgba(14, 24, 52, 0.88);
  --border: rgba(251, 146, 60, 0.18);
  --gold: #fb923c;
  --gold-dim: #f97316;
  --gold-glow: rgba(251, 146, 60, 0.38);
  --copper-deep: #9a3412;
  --copper-mid: #ea580c;
  --copper-bright: #f97316;
  --copper-light: #fdba74;
  --copper-highlight: #ffedd5;
  --copper-glow: rgba(249, 115, 22, 0.5);
  --violet-soft: #fed7aa;
  --violet-glow: rgba(234, 88, 12, 0.28);
  --surface-dark: #0c1228;
  --surface-mid: #0f172a;
  --text: #f1f5f9;
  --text-muted: rgba(203, 213, 225, 0.62);
  --danger: #f87171;
  --success: #4ade80;
  --info: #fdba74;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Tajawal", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  --header-bg: linear-gradient(180deg, rgba(4, 8, 18, 0.94), rgba(4, 8, 18, 0.78));
  --header-shadow: 0 1px 0 rgba(249, 115, 22, 0.06) inset, 0 12px 40px rgba(0, 0, 0, 0.35);
  --nav-hover-bg: rgba(249, 115, 22, 0.08);
  --soft-surface: rgba(10, 18, 42, 0.55);
  --input-bg: rgba(6, 12, 28, 0.72);
  --ticker-bg: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(4, 8, 18, 0.92) 38%, rgba(4, 8, 18, 0.96));
  --ticker-label-text: #0c1228;
  --overlay-glow-1: rgba(249, 115, 22, 0.14);
  --overlay-glow-2: rgba(234, 88, 12, 0.16);
  --overlay-glow-3: rgba(251, 146, 60, 0.1);
  --overlay-glow-4: rgba(249, 115, 22, 0.08);
  --page-end: #03050c;
}

:root[data-theme="light"] {
  --bg-deep: #f6efe6;
  --bg-mid: #fffaf4;
  --bg-card: rgba(255, 252, 247, 0.88);
  --bg-elevated: rgba(255, 248, 239, 0.96);
  --border: rgba(194, 101, 22, 0.18);
  --gold: #c45b12;
  --gold-dim: #a54610;
  --gold-glow: rgba(196, 91, 18, 0.18);
  --copper-deep: #9a3412;
  --copper-mid: #c75a16;
  --copper-bright: #d97706;
  --copper-light: #b45309;
  --copper-highlight: #fff7ed;
  --copper-glow: rgba(196, 91, 18, 0.18);
  --violet-soft: #fed7aa;
  --violet-glow: rgba(234, 88, 12, 0.16);
  --surface-dark: #fff6eb;
  --surface-mid: #fffaf5;
  --text: #24160d;
  --text-muted: rgba(73, 48, 29, 0.72);
  --danger: #c2410c;
  --success: #15803d;
  --info: #b45309;
  --shadow: 0 24px 72px rgba(149, 84, 30, 0.12);
  --header-bg: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(255, 247, 237, 0.88));
  --header-shadow: 0 1px 0 rgba(255, 255, 255, 0.68) inset, 0 10px 32px rgba(180, 105, 33, 0.08);
  --nav-hover-bg: rgba(196, 91, 18, 0.1);
  --soft-surface: rgba(255, 248, 239, 0.92);
  --input-bg: rgba(255, 252, 247, 0.94);
  --ticker-bg: linear-gradient(90deg, rgba(255, 214, 170, 0.76), rgba(255, 250, 244, 0.96) 38%, rgba(255, 246, 235, 0.98));
  --ticker-label-text: #ffffff;
  --overlay-glow-1: rgba(251, 146, 60, 0.14);
  --overlay-glow-2: rgba(251, 191, 36, 0.12);
  --overlay-glow-3: rgba(253, 186, 116, 0.14);
  --overlay-glow-4: rgba(196, 91, 18, 0.08);
  --page-end: #fff4e8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 130% 85% at 50% -18%, var(--overlay-glow-1), transparent 52%),
    radial-gradient(ellipse 75% 55% at 100% 25%, var(--overlay-glow-2), transparent 48%),
    radial-gradient(ellipse 65% 50% at 0% 85%, var(--overlay-glow-3), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 90%, var(--overlay-glow-4), transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--page-end) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fb923c' stroke-opacity='0.09' stroke-width='0.5'%3E%3Cpath d='M0 48h96M48 0v96M0 24h96M0 72h96M24 0v96M72 0v96'/%3E%3C/g%3E%3Cg fill='%23ea580c' fill-opacity='0.07'%3E%3Ccircle cx='48' cy='48' r='1.2'/%3E%3Ccircle cx='24' cy='24' r='0.8'/%3E%3Ccircle cx='72' cy='72' r='0.8'/%3E%3Ccircle cx='72' cy='24' r='0.8'/%3E%3Ccircle cx='24' cy='72' r='0.8'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #ffedd5;
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--header-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand-logo-img {
  height: 3.5rem;
  width: auto;
  max-width: min(4.25rem, 22vw);
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(249, 115, 22, 0.42))
    drop-shadow(0 0 20px rgba(234, 88, 12, 0.18));
}

.brand:hover .brand-logo-img {
  filter: drop-shadow(0 3px 16px rgba(249, 115, 22, 0.55))
    drop-shadow(0 0 28px rgba(234, 88, 12, 0.26));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-name {
  font-weight: 800;
  font-size: 1.48rem;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.2;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(251, 146, 60, 0.85);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-main a,
.nav-main .nav-dd-toggle {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-main a:hover,
.nav-main .nav-dd-toggle:hover {
  color: var(--text);
  background: var(--nav-hover-bg);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.06);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--soft-surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--nav-hover-bg);
  border-color: rgba(249, 115, 22, 0.34);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: var(--gold);
  font-size: 0.95rem;
}

.nav-dd {
  position: relative;
}

.nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dd-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  padding: 0.5rem;
  margin-top: 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel {
  display: block;
}

.nav-dd-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-count {
  background: linear-gradient(145deg, var(--copper-light), var(--copper-mid));
  color: #431407;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 2px 10px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(249, 115, 22, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.28s ease,
    background 0.28s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    filter 0.25s ease,
    background-position 0.7s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: #431407;
  border-color: rgba(255, 237, 213, 0.55);
  background-image:
    linear-gradient(
      100deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.38) 50%,
      transparent 62%,
      transparent 100%
    ),
    linear-gradient(
      155deg,
      var(--copper-highlight) 0%,
      var(--copper-light) 22%,
      var(--copper-bright) 48%,
      var(--copper-mid) 72%,
      var(--copper-deep) 100%
    );
  background-size: 220% 100%, 100% 100%;
  background-position: -30% 0, 0 0;
  background-repeat: no-repeat;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(0, 0, 0, 0.2) inset,
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 12px 36px var(--copper-glow),
    0 0 40px var(--violet-glow);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: scale(1.04);
  filter: brightness(1.07) saturate(1.08);
  background-position: 130% 0, 0 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -1px 0 rgba(0, 0, 0, 0.2) inset,
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 18px 52px var(--copper-glow),
    0 0 48px var(--violet-glow);
}

.btn-ghost {
  background: var(--soft-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(251, 146, 60, 0.22);
  color: var(--text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-ghost:hover {
  border-color: rgba(251, 146, 60, 0.45);
  color: var(--copper-light);
  background: rgba(249, 115, 22, 0.08);
  transform: scale(1.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 28px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(234, 88, 12, 0.18);
}

.btn-danger {
  background: linear-gradient(145deg, rgba(232, 93, 93, 0.22), rgba(232, 93, 93, 0.1));
  color: #ff9a9a;
  border-color: rgba(232, 93, 93, 0.45);
  box-shadow: 0 4px 16px rgba(232, 93, 93, 0.12);
}

.btn-danger:hover {
  background: linear-gradient(145deg, rgba(232, 93, 93, 0.32), rgba(232, 93, 93, 0.16));
  border-color: rgba(255, 150, 150, 0.55);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(232, 93, 93, 0.2);
}

.btn-sm {
  padding: 0.42rem 0.9rem;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition-duration: 0.01ms;
  }

  .btn:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-danger:hover {
    transform: none;
  }

  .btn-primary:hover {
    background-position: -30% 0, 0 0;
  }
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 1rem;
  background: linear-gradient(125deg, #fff7ed 0%, #fdba74 32%, #fb923c 58%, #f97316 82%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.12));
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-lead p {
  margin: 0 0 0.9rem;
}

.hero-lead p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Homepage announcement ticker */
.announcement-ticker {
  width: 100%;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--ticker-bg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.announcement-ticker-inner {
  display: flex;
  align-items: stretch;
  direction: rtl;
  gap: 0;
  min-height: 2.65rem;
}

.announcement-ticker-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem 0.45rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ticker-label-text);
  background: linear-gradient(135deg, var(--gold), var(--copper-mid));
  white-space: nowrap;
}

.announcement-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.announcement-ticker-track {
  display: flex;
  width: max-content;
  direction: ltr;
  animation: announcement-ticker-marquee 55s linear infinite;
}

.announcement-ticker-seg {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1.75rem 0.35rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.announcement-ticker-item a {
  color: var(--copper-light);
}

.announcement-ticker-item a:hover {
  color: #fff7ed;
}

.announcement-ticker-dot {
  color: rgba(251, 146, 60, 0.35);
  font-size: 0.45rem;
  padding: 0 0.15rem;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .announcement-ticker-track {
    animation: none;
  }

  .announcement-ticker-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@keyframes announcement-ticker-marquee {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* Banners */
.banner-strip {
  margin-bottom: 2rem;
}

.banner-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.04) inset, 0 16px 48px rgba(0, 0, 0, 0.25);
}

.banner-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--gold);
}

.banner-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sections grid */
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.03) inset, 0 8px 32px rgba(0, 0, 0, 0.22);
}

.cat-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 32px rgba(249, 115, 22, 0.08);
  transform: translateY(-3px);
}

.cat-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.cat-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
  margin-bottom: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.2s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
  border-color: rgba(251, 146, 60, 0.2);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.45), 0 0 40px rgba(249, 115, 22, 0.06);
}

.service-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, var(--surface-mid), var(--surface-dark));
  overflow: hidden;
}

.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.service-card .price {
  font-weight: 800;
  color: var(--gold);
  margin-top: auto;
  font-size: 1.1rem;
}

.service-card .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

/* Detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0 3rem;
  align-items: start;
}

@media (max-width: 880px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-dark);
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.gallery-thumbs button {
  width: 72px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-mid);
}

.gallery-thumbs button.active {
  border-color: var(--gold);
}

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

.prose strong {
  color: var(--text);
}

/* Forms */
.form-card {
  max-width: 480px;
  margin: 2rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.04) inset, 0 20px 56px rgba(0, 0, 0, 0.35);
}

.form-wide {
  max-width: 720px;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--gold);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* Alerts */
.flash-wrap {
  max-width: 720px;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.flash-success {
  background: rgba(93, 214, 138, 0.12);
  border: 1px solid rgba(93, 214, 138, 0.35);
  color: var(--success);
}

.flash-danger {
  background: rgba(232, 93, 93, 0.12);
  border: 1px solid rgba(232, 93, 93, 0.35);
  color: var(--danger);
}

.flash-warning {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--copper-light);
}

.flash-info {
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.32);
  color: var(--info);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer .foot-brand {
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

/* Admin shell */
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 80px);
}

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

.admin-nav {
  background: var(--bg-card);
  border-inline-end: 1px solid var(--border);
  padding: 1.25rem;
}

.admin-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(249, 115, 22, 0.1);
  color: var(--gold);
}

.admin-content {
  padding: 1.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.stat-box .num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-box .lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.page-head {
  margin-bottom: 1.5rem;
}

.page-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

/* عرض اليوم */
.daily-offer {
  margin-bottom: 2.75rem;
}

.daily-offer-inner {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(249, 115, 22, 0.28);
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.08), var(--bg-elevated));
  box-shadow:
    0 0 0 1px rgba(234, 88, 12, 0.08) inset,
    0 24px 72px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(249, 115, 22, 0.06);
  overflow: hidden;
}

.daily-offer-badge {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  background: linear-gradient(135deg, var(--copper-light), var(--gold-dim));
  color: #431407;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  z-index: 2;
}

.daily-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  align-items: stretch;
}

@media (max-width: 768px) {
  .daily-offer-grid {
    grid-template-columns: 1fr;
  }
}

.daily-offer-media {
  min-height: 220px;
  background: linear-gradient(160deg, var(--surface-mid), var(--surface-dark));
}

.daily-offer-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.daily-offer-copy {
  padding: 2rem 1.75rem 1.75rem;
}

.daily-offer-copy h2 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}

.daily-offer-body {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.daily-offer-prices {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.daily-sale {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.daily-was {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.daily-offer-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* من نحن */
.about-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-toc a {
  font-weight: 600;
  font-size: 0.92rem;
}

.about-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-section h1 {
  margin-top: 0;
  font-size: 1.65rem;
}

.about-section h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--gold);
}

.legal-block {
  white-space: pre-wrap;
  color: var(--text-muted);
  line-height: 1.85;
}

/* تذييل وسائل الدفع */
.footer-payments {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.footer-payments-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 146, 60, 0.62);
  margin-bottom: 0.75rem;
}

.footer-payments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.footer-payments-list li {
  margin: 0;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--soft-surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

a.payment-chip:hover {
  border-color: var(--gold);
  color: var(--text);
}

.payment-chip img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}

.payment-method-page {
  padding: 2rem 0 3rem;
}

.payment-method-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] body {
  color-scheme: light;
}

:root[data-theme="light"] body::after {
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c45b12' stroke-opacity='0.08' stroke-width='0.5'%3E%3Cpath d='M0 48h96M48 0v96M0 24h96M0 72h96M24 0v96M72 0v96'/%3E%3C/g%3E%3Cg fill='%23d97706' fill-opacity='0.06'%3E%3Ccircle cx='48' cy='48' r='1.2'/%3E%3Ccircle cx='24' cy='24' r='0.8'/%3E%3Ccircle cx='72' cy='72' r='0.8'/%3E%3Ccircle cx='72' cy='24' r='0.8'/%3E%3Ccircle cx='24' cy='72' r='0.8'/%3E%3C/g%3E%3C/svg%3E");
}

:root[data-theme="light"] .hero h1 {
  background: linear-gradient(125deg, #7c2d12 0%, #c2410c 35%, #d97706 68%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

:root[data-theme="light"] .nav-main a,
:root[data-theme="light"] .nav-main .nav-dd-toggle,
:root[data-theme="light"] .theme-toggle {
  color: var(--text-muted);
}

:root[data-theme="light"] .nav-dd-panel,
:root[data-theme="light"] .form-card,
:root[data-theme="light"] .table-wrap,
:root[data-theme="light"] .admin-nav,
:root[data-theme="light"] .stat-box,
:root[data-theme="light"] .about-toc,
:root[data-theme="light"] .about-section,
:root[data-theme="light"] .service-card,
:root[data-theme="light"] .cat-card,
:root[data-theme="light"] .gallery-main,
:root[data-theme="light"] .gallery-thumbs button {
  box-shadow: 0 14px 36px rgba(161, 98, 7, 0.08);
}

:root[data-theme="light"] .payment-method-logo {
  background: rgba(255, 255, 255, 0.98);
}

:root[data-theme="light"] .daily-offer-badge,
:root[data-theme="light"] .cart-count,
:root[data-theme="light"] .btn-primary {
  color: #ffffff;
  text-shadow: none;
}

:root[data-theme="light"] .flash-success,
:root[data-theme="light"] .flash-danger,
:root[data-theme="light"] .flash-warning,
:root[data-theme="light"] .flash-info {
  color: var(--text);
}

.payment-method-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.payment-method-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.payment-method-status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
  font-weight: 800;
  font-size: 0.86rem;
}

.payment-method-body {
  white-space: pre-wrap;
  line-height: 1.95;
  color: var(--text-muted);
}

.payment-method-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .payment-method-card {
    padding: 1.15rem;
  }

  .payment-method-head {
    align-items: flex-start;
  }
}
