/* ============================================
   NO LIMIT – Main Stylesheet
   Colors: #40513B, #628040, #3D361A, #E67F22, #6E8F72, #342F29, #C0C6C4
============================================ */

:root {
  /* Brand Colors */
  --brand-dark-green: #40513B;
  --brand-medium-green: #628040;
  --brand-dark-brown: #3D361A;
  --brand-orange: #E67F22;
  --brand-light-green: #6E8F72;
  --brand-very-dark: #342F29;
  --brand-silver: #C0C6C4;

  /* Dark Theme (default) */
  --bg-primary: #1a1d18;
  --bg-secondary: #222820;
  --bg-card: #2a302a;
  --bg-card-hover: #303830;
  --bg-glass: rgba(40, 51, 35, 0.7);
  --bg-navbar: rgba(26, 29, 24, 0.95);
  --text-primary: #f0f4f0;
  --text-secondary: #C0C6C4;
  --text-muted: #8a9a8a;
  --border-color: rgba(98, 128, 64, 0.25);
  --border-accent: rgba(230, 127, 34, 0.4);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --overlay-bg: rgba(0, 0, 0, 0.7);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, rgba(26,29,24,0.9) 0%, rgba(53,64,43,0.85) 50%, rgba(61,54,26,0.9) 100%);
  --gradient-card: linear-gradient(145deg, #2a302a, #242820);
  --gradient-orange: linear-gradient(135deg, #E67F22, #c96a10);
  --gradient-green: linear-gradient(135deg, #628040, #40513B);
  --gradient-brand: linear-gradient(135deg, #40513B 0%, #628040 50%, #3D361A 100%);

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Typography — خط عام الحرف اليدوية (وزارة الثقافة) */
  --font-primary: 'TheYearofHandicrafts', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
  --transition-slow: 0.5s ease;

  /* Navbar height */
  --navbar-height: 72px;
}

[data-theme="light"] {
  --bg-primary: #f5f7f3;
  --bg-secondary: #eef2ec;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4ee;
  --bg-glass: rgba(245, 247, 243, 0.85);
  --bg-navbar: rgba(245, 247, 243, 0.97);
  --text-primary: #1a2018;
  --text-secondary: #3D361A;
  --text-muted: #6E8F72;
  --border-color: rgba(98, 128, 64, 0.2);
  --border-accent: rgba(230, 127, 34, 0.35);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --gradient-hero: linear-gradient(135deg, rgba(64,81,59,0.88) 0%, rgba(98,128,64,0.82) 50%, rgba(61,54,26,0.85) 100%);
  --gradient-card: linear-gradient(145deg, #ffffff, #f5f7f3);
}

/* ============================================
   Reset & Base
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-family: var(--font-primary);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
  transition: background-color var(--transition-med), color var(--transition-med);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================
   Scrollbar
============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--brand-medium-green); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-orange); }

/* ============================================
   Layout
============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content {
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-med);
  overflow: visible;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px var(--shadow-color);
  border-bottom-color: var(--border-accent);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
  overflow: visible;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img,
.site-logo,
.footer-brand-logo-img,
.auth-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0;
}

.navbar-logo img {
  filter: drop-shadow(0 0 8px rgba(230,127,34,0.4));
  transition: filter var(--transition-med), transform var(--transition-med);
}

.navbar-logo:hover img {
  filter: drop-shadow(0 0 14px rgba(230,127,34,0.7));
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-orange);
  background: rgba(230,127,34,0.08);
}

.nav-link .arrow {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 220px;
  background: #1a1e1a;
  border: 1px solid rgba(230,127,34,0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.75), 0 0 0 1px rgba(230,127,34,0.15);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 100000;
  isolation: isolate;
}

[data-theme="light"] .dropdown-menu {
  background: #ffffff;
  border-color: rgba(230,127,34,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(230,127,34,0.1);
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.lang-dropdown:hover .dropdown-menu,
.lang-dropdown:focus-within .dropdown-menu,
.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

/* قائمة الحساب — وضوح أعلى + جسر hover */
.navbar-actions .account-menu {
  position: relative;
}

.navbar-actions .account-menu::before {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 14px;
  z-index: 99999;
}

.account-dropdown-menu {
  min-width: 260px !important;
  max-width: min(280px, calc(100vw - 16px)) !important;
  padding: 10px !important;
  background: #1e231e !important;
  border: 2px solid rgba(230, 127, 34, 0.55) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 24px rgba(230, 127, 34, 0.12) !important;
  right: auto !important;
  left: 0 !important;
}

html[dir="rtl"] .account-dropdown-menu {
  right: auto !important;
  left: 0 !important;
}

[data-theme="light"] .account-dropdown-menu {
  background: #ffffff !important;
  border-color: rgba(230, 127, 34, 0.45) !important;
}

.account-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(230, 127, 34, 0.25);
  background: rgba(230, 127, 34, 0.08);
  border-radius: var(--radius-sm);
}

.account-dropdown-header i {
  font-size: 1.35rem;
  color: var(--brand-orange);
  flex-shrink: 0;
}

.account-dropdown-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

.account-dropdown-menu .dropdown-item {
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 11px 14px;
}

.account-dropdown-menu .dropdown-item:hover {
  background: rgba(230, 127, 34, 0.15);
  color: var(--brand-orange);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 4px;
}

.dropdown-item-danger {
  color: #f66 !important;
}

.dropdown-item-danger:hover {
  background: rgba(244, 68, 68, 0.12) !important;
  color: #f44 !important;
}

.dropdown-item-danger .icon {
  color: #f44 !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(230,127,34,0.1);
  color: var(--brand-orange);
}

.dropdown-item .icon,
.dropdown-item [class^="fa-"],
.dropdown-item [class*=" fa-"] {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  color: var(--brand-orange);
  flex-shrink: 0;
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(98,128,64,0.12);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.lang-dropdown .dropdown-menu {
  right: 0;
  left: auto;
  min-width: 160px;
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  overflow: visible;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(98,128,64,0.08);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.icon-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: rgba(230,127,34,0.1);
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--brand-orange);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  border-radius: 13px;
  background: var(--brand-medium-green);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  transition: transform var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

[data-theme="light"] .theme-toggle::after {
  transform: translateX(-24px);
}

[data-theme="light"] .theme-toggle {
  background: var(--brand-orange);
}

/* Hamburger */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  background: rgba(230, 127, 34, 0.12);
  border: 1px solid rgba(230, 127, 34, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--brand-orange);
  z-index: 20;
}

.hamburger-icon {
  font-size: 1.25rem;
  line-height: 1;
  pointer-events: none;
  transition: transform var(--transition-fast);
}

.hamburger.open .hamburger-icon {
  transform: rotate(90deg);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 16px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-med);
  display: none;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float-particle 8s infinite ease-in-out;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px 24px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(230,127,34,0.15);
  border: 1px solid rgba(230,127,34,0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-orange);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease forwards;
}

.hero-badge i {
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.3;
  color: white;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-title span {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.9s ease 0.4s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.6s both;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-med);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-primary);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.btn:hover::before { opacity: 1; }

.btn i[class*="fa-"] {
  font-size: 1.05rem;
  flex-shrink: 0;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-orange);
  color: white;
  box-shadow: 0 6px 24px rgba(230,127,34,0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(230,127,34,0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.btn-outline:hover {
  background: var(--brand-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,127,34,0.3);
}

.btn-green {
  background: var(--gradient-green);
  color: white;
  box-shadow: 0 6px 24px rgba(64,81,59,0.35);
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(64,81,59,0.5);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-full { width: 100%; justify-content: center; }

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* ============================================
   SECTIONS
============================================ */
.section {
  padding: 80px 0;
}

.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(230,127,34,0.1);
  border: 1px solid rgba(230,127,34,0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-title span {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   CARDS
============================================ */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 2px;
  background: var(--gradient-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-med);
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px var(--shadow-color);
}

.card:hover::before { transform: scaleX(1); }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.features-grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .features-grid--three {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: rgba(230,127,34,0.1);
  border: 1px solid rgba(230,127,34,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--brand-orange);
  margin: 0 auto 20px;
  transition: all var(--transition-med);
}

.feature-card:hover .feature-icon {
  background: rgba(230,127,34,0.2);
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Services Grid */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

/* Homepage Hub Cards */
.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.hub-card {
  position: relative;
  padding: 36px 28px;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 127, 34, 0.35);
}

.hub-card--soon {
  opacity: 0.95;
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(230, 127, 34, 0.04) 100%);
}

.hub-card-icon {
  font-size: 2.6rem;
  color: var(--brand-orange);
  margin-bottom: 16px;
}

.hub-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hub-card-badge--live {
  background: rgba(98, 128, 64, 0.15);
  color: var(--brand-medium-green);
  border: 1px solid rgba(98, 128, 64, 0.25);
}

.hub-card-badge--soon {
  background: rgba(230, 127, 34, 0.12);
  color: var(--brand-orange);
  border: 1px solid rgba(230, 127, 34, 0.28);
}

.hub-card-title {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.hub-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.hub-card-quote {
  font-size: 0.88rem;
  color: var(--brand-orange);
  font-weight: 700;
  line-height: 1.75;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: rgba(230, 127, 34, 0.06);
  border-radius: 10px;
  border-right: 3px solid var(--brand-orange);
}

.hub-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-card-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-card-list li i {
  color: var(--brand-orange);
  width: 18px;
  text-align: center;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-img {
  transform: scale(1.04);
}

.service-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: var(--brand-orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ============================================
   PRICING TABS
============================================ */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 36px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.tab-btn:hover {
  border-color: var(--brand-orange);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--gradient-orange);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(230,127,34,0.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* Pricing Plans */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pricing-card {
  text-align: center;
  position: relative;
  transition: all var(--transition-med);
}

.pricing-card.featured {
  border-color: var(--brand-orange);
  box-shadow: 0 0 40px rgba(230,127,34,0.15);
  transform: translateY(-8px);
}

.pricing-card .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-orange);
  margin-bottom: 4px;
  line-height: 1;
}

.pricing-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  text-align: right;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child { border-bottom: none; }



/* ============================================
   CTA SECTION
============================================ */
.cta-section {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230,127,34,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.8;
}

/* ============================================
   TUTORIALS / BLOG
============================================ */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tutorial-card {
  cursor: pointer;
  overflow: hidden;
}

.tutorial-thumbnail {
  position: relative;
  width: 100%;
  height: 185px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.tutorial-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.tutorial-card:hover .tutorial-thumbnail img {
  transform: scale(1.06);
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background var(--transition-fast);
}

.play-btn::after {
  content: '▶';
  width: 52px;
  height: 52px;
  background: var(--brand-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  padding-left: 4px;
  box-shadow: 0 8px 24px rgba(230,127,34,0.5);
  transition: all var(--transition-fast);
}

.tutorial-card:hover .play-btn { background: rgba(0,0,0,0.2); }
.tutorial-card:hover .play-btn::after { transform: scale(1.15); }

.tutorial-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tutorial-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  transition: color var(--transition-fast);
}

.tutorial-card:hover .tutorial-title { color: var(--brand-orange); }

/* ============================================
   ABOUT PAGE
============================================ */
.about-hero {
  background: var(--gradient-brand);
  padding: 80px 0 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.value-card {
  text-align: center;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.value-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   CONTACT PAGE
============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.contact-info-box:hover {
  border-color: var(--brand-orange);
  transform: translateX(-6px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(230,127,34,0.1);
  border: 1px solid rgba(230,127,34,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ============================================
   FORMS
============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.94rem;
  font-family: var(--font-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  direction: rtl;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(230,127,34,0.12);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}

.form-error {
  font-size: 0.8rem;
  color: #f44;
  margin-top: 6px;
}

/* ============================================
   AUTH PAGES
============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at top right, rgba(98,128,64,0.1) 0%, transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(230,127,34,0.06) 0%, transparent 60%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.auth-logo {
  margin-bottom: 28px;
}

.auth-logo img {
  height: 56px;
  max-width: 200px;
  margin: 0 auto;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.auth-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-switch {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--brand-orange);
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth-switch a:hover { color: var(--brand-medium-green); }

/* ============================================
   CART SIDEBAR
============================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform var(--transition-med);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 40px var(--shadow-color);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
}

.cart-sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--brand-orange);
  font-weight: 700;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 800;
}

.cart-total-price {
  color: var(--brand-orange);
  font-size: 1.2rem;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.cart-empty-text { font-size: 0.95rem; }

/* ============================================
   MODAL OVERLAY
============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  position: relative;
  animation: scaleIn 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover { background: rgba(244,68,68,0.1); color: #f44; }

/* ============================================
   TOAST
============================================ */
.toast-container {
  position: fixed;
  top: 90px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px var(--shadow-color);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 260px;
  animation: slideInLeft 0.35s ease, fadeOut 0.35s ease 2.6s forwards;
  pointer-events: all;
}

.toast.success { border-color: #4caf50; }
.toast.error { border-color: #f44; }
.toast.warning { border-color: var(--brand-orange); }
.toast.info { border-color: var(--brand-medium-green); }

.toast-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ============================================
   ACCOUNT / ADMIN PAGES
============================================ */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  min-height: calc(100vh - var(--navbar-height));
  padding: 28px 0;
}

.account-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: calc(var(--navbar-height) + 24px);
}

.account-avatar {
  width: 80px;
  height: 80px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  color: white;
  font-weight: 700;
}

.account-name {
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.account-email {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
}

.account-nav-item:hover,
.account-nav-item.active {
  background: rgba(230,127,34,0.1);
  color: var(--brand-orange);
}

.account-nav-item .icon { font-size: 1.1rem; }

.account-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.content-tab { display: none; }
.content-tab.active { display: block; animation: fadeIn 0.3s ease; }

/* Orders Table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  padding: 12px 16px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.orders-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: rgba(98,128,64,0.04); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.confirmed { background: rgba(76,175,80,0.1); color: #4caf50; }
.status-badge.processing { background: rgba(230,127,34,0.1); color: var(--brand-orange); }
.status-badge.delivered { background: rgba(98,128,64,0.1); color: var(--brand-medium-green); }
.status-badge.pending { background: rgba(150,150,150,0.1); color: var(--text-muted); }
.status-badge.cancelled { background: rgba(244,68,68,0.1); color: #f44; }

/* Admin Dashboard */
.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-page-header-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.admin-page-header-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-page-header-text {
  min-width: 0;
}

.admin-page-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.admin-header-btn {
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.admin-header-btn--green {
  background: rgba(98,128,64,.08);
  border: 1px solid rgba(98,128,64,.3);
  color: var(--brand-medium-green);
}

.admin-header-btn--danger {
  background: rgba(244,68,68,.08);
  border: 1px solid rgba(244,68,68,.25);
  color: #f44;
}

.admin-layout {
  grid-template-columns: 220px 1fr;
}

.admin-sidebar {
  overflow: hidden;
}

.admin-nav-scroll .account-nav-item.active {
  border-right: none;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-orange);
  margin-bottom: 6px;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   WARNING BOX
============================================ */
.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(230,127,34,0.08);
  border: 1px solid rgba(230,127,34,0.3);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.warning-icon { font-size: 1.3rem; flex-shrink: 0; }

.warning-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 600;
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 14px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-link:hover { color: var(--brand-orange); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   DIVIDER
============================================ */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 40px 0;
}

/* ============================================
   UTILITIES
============================================ */
.text-orange { color: var(--brand-orange); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-heavy { font-weight: 900; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex !important; }
  .mobile-nav { display: flex; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --navbar-height: 64px; }
  .section { padding: 56px 0; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cart-sidebar { width: 100%; right: 0; left: 0; transform: translateY(100%); }
  .cart-sidebar.open { transform: translateY(0); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Additional Responsive Fixes
============================================ */
@media (max-width: 900px) {
  .about-story-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Hero scroll hint */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.hero-scroll-indicator::after {
  content: '';
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator::before {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 1.5s ease-in-out infinite;
}

/* ============================================
   Select styling
============================================ */
select.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ============================================
   Number inputs and range
============================================ */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; }

/* ============================================
   Gradient text utility
============================================ */
.gradient-text {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   No-select for UI elements
============================================ */
.tab-btn, .btn, .nav-link, .account-nav-item {
  user-select: none;
  -webkit-user-select: none;
}

/* ============================================
   Print styles
============================================ */
@media print {
  .navbar, .cart-sidebar, .toast-container { display: none !important; }
  .page-content { padding-top: 0 !important; }
}

/* ============================================
   Focus accessible styles
============================================ */
:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

/* ============================================
   Loading skeleton for images
============================================ */
img.loading {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
}

/* ============================================
   Tooltip
============================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 100;
  box-shadow: 0 4px 12px var(--shadow-color);
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ============================================
   Glassy hero variant
============================================ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

/* ============================================
   Animated border
============================================ */
.animated-border {
  position: relative;
}

.animated-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-medium-green), var(--brand-orange));
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity .3s ease;
}

.animated-border:hover::after {
  opacity: 1;
}

/* ============================================
   Back to top button
============================================ */
#back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: white;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(230,127,34,.4);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(230,127,34,.5);
}

/* ============================================
   FLOATING LIVE CHAT BUTTON – معيار 3
   واجهة المحادثة الفورية العائمة
============================================ */
.live-chat-float {
  position: fixed;
  bottom: 84px;           /* فوق زر الرجوع للأعلى */
  left: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;    /* واتساب */
  color: white;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: all .3s ease;
  text-decoration: none;
  animation: pulse-chat 3s infinite;
}

.live-chat-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 28px rgba(37,211,102,.6);
}

.live-chat-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 14px var(--shadow-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.live-chat-float:hover .live-chat-tooltip {
  opacity: 1;
}

@keyframes pulse-chat {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 6px 28px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.12); }
}

/* ============================================
   POPULAR BADGE – شارة الأكثر طلباً
============================================ */
.popular-badge {
  position: absolute;
  top: -12px;
  right: 50%;
  transform: translateX(50%);
  background: var(--gradient-orange);
  color: white;
  padding: 4px 18px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(230,127,34,.45);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .5px;
  z-index: 2;
}

.pricing-card.featured {
  border-color: var(--brand-orange) !important;
  box-shadow: 0 0 0 2px rgba(230,127,34,.25), 0 20px 60px var(--shadow-color);
}

/* ============================================
   CONTACT INFO BOX
============================================ */
.contact-info-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 12px;
}

.contact-info-box:hover {
  border-color: var(--brand-orange);
  background: rgba(230,127,34,.05);
  transform: translateX(-3px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(230,127,34,.1);
  border: 1px solid rgba(230,127,34,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   CONTACT GRID
============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

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

/* ============================================
   TRUST / COMPLIANCE BADGES
============================================ */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-item i {
  color: var(--brand-orange);
  font-size: .85rem;
}

/* ============================================
   PAYMENT METHOD BADGES
============================================ */
.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .5px;
  color: white;
  min-width: 36px;
}

/* ============================================
   STATUS BADGES
============================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}

.status-badge.pending  { background: rgba(230,127,34,.15); color: var(--brand-orange); }
.status-badge.done     { background: rgba(98,128,64,.15);  color: var(--brand-medium-green); }
.status-badge.cancelled{ background: rgba(244,67,54,.12);  color: #f44; }
.status-badge.in-progress { background: rgba(33,150,243,.12); color: #2196f3; }

/* ============================================
   ABOUT PAGE HERO
============================================ */
.about-hero {
  position: relative;
  padding: 100px 0 60px;
  background: var(--gradient-brand);
  text-align: center;
  color: white;
  overflow: hidden;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.value-card { text-align: center; }

.value-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(230,127,34,.1);
  border: 2px solid rgba(230,127,34,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all var(--transition-med);
}

.value-card:hover .value-icon {
  background: rgba(230,127,34,.2);
  transform: rotate(8deg) scale(1.08);
}

.value-title { font-size: 1.1rem; font-weight: 900; margin-bottom: 10px; }
.value-desc  { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   ORDERS TABLE
============================================ */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.orders-table th {
  text-align: right;
  padding: 10px 14px;
  font-weight: 800;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.orders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.orders-table tr:hover td {
  background: rgba(230,127,34,.04);
}

/* ============================================
   AUTH PAGES
============================================ */
.auth-page {
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
}

.auth-logo { text-align: center; margin-bottom: 8px; }
.auth-title { text-align: center; font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.auth-desc  { text-align: center; font-size: .88rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }

.auth-divider {
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  margin: 16px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-color);
}
.auth-divider::before { right: 0; }
.auth-divider::after  { left: 0; }

.auth-switch {
  text-align: center;
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 20px;
}
.auth-switch a {
  color: var(--brand-orange);
  font-weight: 700;
  cursor: pointer;
  margin-right: 4px;
}

.form-error {
  padding: 10px 14px;
  background: rgba(244,67,54,.1);
  border: 1px solid rgba(244,67,54,.3);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: #f44;
  font-weight: 600;
}

/* ============================================
   ACCOUNT PAGE
============================================ */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.account-sidebar {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  position: sticky;
  top: calc(var(--navbar-height) + 20px);
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-orange);
  color: white;
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.account-name  { text-align: center; font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.account-email { text-align: center; font-size: .78rem; color: var(--text-muted); }

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
}

.account-nav-item:hover { background: rgba(230,127,34,.08); color: var(--brand-orange); }
.account-nav-item.active { background: rgba(230,127,34,.12); color: var(--brand-orange); border-right: 2px solid var(--brand-orange); }
.account-nav-item .icon { color: var(--brand-orange); font-size: .95rem; flex-shrink: 0; }

.account-content {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 400px;
}

.content-tab { display: none; }
.content-tab.active { display: block; animation: fadeIn .3s ease; }

/* ============================================
   ADMIN PANEL
============================================ */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-fast);
}

.stat-card:hover { border-color: var(--brand-orange); }

.stat-label { font-size: .75rem; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; display:flex; gap:6px; align-items:center; }
.stat-value { font-size: 1.6rem; font-weight: 900; color: var(--brand-orange); }
.stat-sub   { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   WARNING BOX
============================================ */
.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(230,127,34,.08);
  border: 1px solid rgba(230,127,34,.25);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.warning-icon { flex-shrink: 0; margin-top: 2px; }
.warning-text { font-size: .88rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(230,127,34,0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin-bottom: 12px; }
.cta-desc  { font-size: .95rem; opacity: .85; margin-bottom: 28px; line-height: 1.7; }

/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 56px;
  padding-bottom: 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-title {
  font-weight: 800;
  font-size: .9rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-link {
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-link:hover { color: var(--brand-orange); }

/* ============================================
   SPINNER
============================================ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   TOAST NOTIFICATIONS
============================================ */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: 100%;
  max-width: 440px;
  padding: 0 16px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  animation: slideDown .35s ease;
  pointer-events: auto;
  width: 100%;
  border: 1px solid transparent;
}

.toast.success { background: rgba(28,50,28,.95); border-color: rgba(98,128,64,.5); color: #8ecb8e; }
.toast.error   { background: rgba(50,20,20,.95); border-color: rgba(244,67,54,.4); color: #f88; }
.toast.info    { background: rgba(20,35,55,.95); border-color: rgba(33,150,243,.4); color: #90caf9; }
.toast.warning { background: rgba(50,38,15,.95); border-color: rgba(255,167,38,.4); color: #ffa726; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FORMS
============================================ */
.form-group { margin-bottom: 20px; }

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .92rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(230,127,34,.12);
}

.form-textarea { min-height: 130px; resize: vertical; line-height: 1.7; }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9a8a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
  cursor: pointer;
}

/* ============================================
   TABS
============================================ */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 6px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tab-btn {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.tab-btn:hover  { color: var(--brand-orange); background: rgba(230,127,34,.08); }
.tab-btn.active { background: var(--gradient-orange); color: white; box-shadow: 0 4px 14px rgba(230,127,34,.35); }

/* ============================================
   PRICING
============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pricing-card { padding: 36px 28px; text-align: center; }
.pricing-plan-name { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 16px; }
.pricing-price    { font-size: 2.6rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.pricing-currency { font-size: .85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 24px; }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* tab panel */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .3s ease; }

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

/* ============================================
   CART SIDEBAR
============================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform var(--transition-med);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 40px var(--shadow-color);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}

.cart-overlay.visible { opacity: 1; pointer-events: auto; }

/* ============================================
   HERO SCROLL INDICATOR
============================================ */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 13px;
  z-index: 3;
}

.hero-scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.6);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease infinite;
}

@keyframes scroll-dot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ============================================
   RESPONSIVE – Enhanced for all devices
============================================ */
@media (max-width: 1200px) {
  .navbar-nav { display: none; }
  .hamburger  { display: flex !important; }
  .mobile-nav { display: flex; }
  .navbar-inner {
    gap: 10px;
    flex-wrap: nowrap;
  }
  .navbar-actions {
    flex-shrink: 1;
    min-width: 0;
    gap: 8px;
  }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .footer-grid-4 { grid-template-columns: 1fr 1fr !important; column-gap: 48px !important; row-gap: 36px !important; }
}

@media (max-width: 768px) {
  :root { --navbar-height: 60px; }
  .section  { padding: 48px 0; }
  .section-lg { padding: 64px 0; }
  .container { padding: 0 16px; }
  .hero-content { padding: 52px 16px; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.8rem); }
  .hero-desc  { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-story-grid { grid-template-columns: 1fr !important; }
  .live-chat-float  { bottom: 78px; left: 16px; width: 48px; height: 48px; font-size: 1.4rem; }
  #back-to-top      { bottom: 20px; left: 20px; width: 40px; height: 40px; }
  .footer-grid-4 { grid-template-columns: 1fr !important; column-gap: 0 !important; row-gap: 28px !important; }
  .auth-card { padding: 24px 20px !important; margin: 12px; }
  /* Admin chat responsive */
  #admin-chat-rooms { display: none; }
  .account-layout[style] { grid-template-columns: 1fr !important; }
  .admin-layout { grid-template-columns: 1fr !important; }
  .admin-page-section { padding: 20px 0 !important; }
  .admin-page-header-actions { width: 100%; }
  .admin-header-btn { flex: 1 1 calc(50% - 4px); font-size: .72rem; padding: 10px 8px; }
  .admin-sidebar { padding: 12px 10px; overflow: hidden; }
  .admin-nav-scroll { margin-bottom: 0; }
  .admin-nav-scroll .account-nav-item {
    border-right: none !important;
    max-width: calc(100vw - 48px);
  }
  .admin-content,
  .account-content { overflow-x: auto; }
  /* Orders table scroll */
  .orders-table { font-size: 0.78rem; }
}

@media (max-width: 600px) {
  /* Galaxy Tab S9 / medium tablets */
  .features-grid { grid-template-columns: 1fr; }
  .services-preview-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 36px; }
  .card { padding: 20px; }
  /* Admin panel */
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card   { padding: 16px 12px; }
}

@media (max-width: 480px) {
  .btn     { padding: 11px 20px; font-size: .88rem; }
  .btn-sm  { padding: 7px 12px;  font-size: .78rem; }
  .admin-stats  { grid-template-columns: 1fr; }
  .live-chat-tooltip { display: none; }
  .cart-sidebar { width: 100vw; right: -100vw; }
  .cart-sidebar.open { right: 0; }
  .g-recaptcha { transform: scale(0.82) !important; transform-origin: right !important; }
  /* Order table full scroll */
  #orders-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .orders-table th, .orders-table td { white-space: nowrap; }
}

/* ============================================
   CART SIDEBAR  –  وضع 1
============================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.38s;
  box-shadow: -8px 0 40px rgba(0,0,0,0.3);
  visibility: hidden;
  pointer-events: none;
}

.cart-sidebar.open {
  right: 0;
  visibility: visible;
  pointer-events: all;
  transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.cart-sidebar-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.cart-item:hover {
  border-color: var(--border-accent);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--brand-orange);
  font-weight: 800;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(98,128,64,0.12);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.qty-btn:hover {
  background: rgba(230,127,34,0.15);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.qty-value {
  min-width: 26px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.cart-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.cart-empty-text {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cart-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.cart-total-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--brand-orange);
}

/* ============================================
   CART PAGE  –  وضع 2
============================================ */
.cart-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.cart-page-grid.cart-empty-mode {
  grid-template-columns: 1fr !important;
  justify-items: center;
}

.cart-page-grid.cart-empty-mode > div:first-child {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.cart-page-grid.cart-empty-mode #cart-page-summary {
  display: none;
}

.cart-page-grid.cart-empty-mode .cart-breadcrumb {
  justify-content: center;
}

.cart-page-wrapper {
  min-height: 60vh;
}

/* ============================================
   CLIENTS ARENA – About page
============================================ */
.clients-arena {
  position: relative;
  min-height: 300px;
  background:
    radial-gradient(ellipse at center, rgba(230, 127, 34, 0.06) 0%, transparent 70%),
    var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.clients-arena-ring {
  position: absolute;
  border: 1px dashed rgba(230, 127, 34, 0.12);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.clients-arena-ring--sm { width: 220px; height: 220px; }
.clients-arena-ring--lg { width: 360px; height: 360px; border-color: rgba(230, 127, 34, 0.06); }

.clients-arena-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 72px;
  padding: 56px 24px;
  min-height: 280px;
}

.client-card {
  text-decoration: none;
  text-align: center;
  animation: clientFloat 5s ease-in-out infinite;
}

.client-card--alt {
  animation-duration: 6s;
  animation-direction: alternate;
}

.client-card--ig {
  animation-duration: 5.5s;
  animation-delay: 0.8s;
}

.client-avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.client-card:hover .client-avatar {
  transform: scale(1.08);
}

.client-avatar--orange {
  border: 3px solid var(--brand-orange);
  box-shadow: 0 8px 32px rgba(230, 127, 34, 0.4);
  background: var(--gradient-brand);
}

.client-avatar--green {
  border: 3px solid var(--brand-medium-green);
  box-shadow: 0 8px 32px rgba(98, 128, 64, 0.4);
  background: linear-gradient(135deg, #1a1d18, #303830);
}

.client-avatar--instagram {
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4) border-box;
  box-shadow: 0 8px 32px rgba(221, 42, 123, 0.35);
}

.client-ig-icon {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.client-label--ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.client-avatar-fallback {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.client-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-orange);
  letter-spacing: 0.5px;
}

@keyframes clientFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* توسيط النصوص التسويقية على الجوال */
@media (max-width: 900px) {
  .about-story-text {
    text-align: center;
  }

  .about-story-text .section-label {
    margin-inline: auto;
  }

  .about-story-text .btn {
    margin-inline: auto;
  }

  .clients-arena-inner {
    gap: 32px 48px;
    padding: 40px 16px;
  }

  .client-avatar {
    width: 100px;
    height: 100px;
  }
}

/* تأثير hover للمنتجات في صفحة العربة */
#cart-page-items .card {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

#cart-page-items .card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px var(--shadow-color);
  transform: translateY(-2px);
}

/* ملخص الطلب sticky */
#cart-page-summary .card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
}

/* Modal overlay مشترك */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 1050;
  cursor: pointer;
}

.modal-overlay.hidden {
  display: none;
}

/* ============================================
   RESPONSIVE – Cart
============================================ */
@media (max-width: 860px) {
  .cart-page-grid:not(.cart-empty-mode) {
    grid-template-columns: 1fr !important;
  }
  #cart-page-summary .card {
    position: static !important;
  }
}

@media (max-width: 480px) {
  .cart-sidebar {
    width: 100vw;
    right: -100vw;
  }
  .cart-sidebar.open {
    right: 0;
  }
}

/* ============================================
   Password Requirements Component
============================================ */
.pwd-req {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .25s ease;
  padding: 2px 0;
}
.pwd-req .req-icon {
  font-size: .78rem;
  flex-shrink: 0;
  transition: color .25s ease;
}

/* Toast icon fix for Font Awesome */
.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Font Awesome — خط الموقع لا يصغّر الأيقونات */
[class^="fa-"],
[class*=" fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.icon-btn [class^="fa-"],
.icon-btn [class*=" fa-"],
.navbar-login-btn [class^="fa-"],
.navbar-login-btn [class*=" fa-"],
.hamburger-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.hero-badge [class^="fa-"],
.hero-badge [class*=" fa-"] {
  font-size: 1rem;
}

.feature-icon [class^="fa-"],
.feature-icon [class*=" fa-"],
.hub-card-icon [class^="fa-"],
.hub-card-icon [class*=" fa-"] {
  font-size: inherit;
  line-height: 1;
}

/* Back-to-top button centering */
#back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* reCAPTCHA responsiveness */
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
@media (max-width: 380px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
  }
}
@media (max-width: 420px) {
  #password-requirements > div {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   MOBILE – تحسينات شاملة لكل الشاشات
============================================ */
html, body, #app {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hero {
  width: 100%;
  max-width: 100vw;
}

.hero-content {
  max-width: 100%;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

@media (max-width: 900px) {
  .navbar-inner {
    gap: 8px;
  }
  .navbar-logo img {
    height: 36px;
  }
  .logo-text {
    font-size: 1.05rem;
  }
  .navbar-actions .lang-dropdown {
    display: none;
  }
  .navbar-login-btn .login-text {
    display: none;
  }
  .navbar-login-btn {
    min-width: 40px;
    padding: 8px 10px !important;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .theme-toggle {
    width: 42px;
    height: 22px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 14px;
  }
  .auth-page {
    padding: 16px 12px;
    align-items: flex-start;
    padding-top: 24px;
  }
  .auth-card {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 22px 16px !important;
  }
  .signup-email-row {
    flex-direction: column !important;
  }
  .signup-send-btn {
    width: 100% !important;
    justify-content: center;
  }
  .hero {
    min-height: auto;
    min-height: calc(100dvh - var(--navbar-height));
  }
  .hero-title {
    font-size: clamp(1.45rem, 7vw, 2.2rem) !important;
    line-height: 1.45;
  }
  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }
  .section-title {
    font-size: clamp(1.25rem, 5.5vw, 1.8rem);
  }
  #signup-recaptcha,
  #login-recaptcha,
  #fp-recaptcha {
    transform: scale(0.92);
    transform-origin: center;
  }
}

@media (max-width: 380px) {
  .navbar-logo .logo-text {
    display: none;
  }
}

/* ============================================
   MOBILE PRO – iPhone / iPad / Samsung
   أيقونات وأزرار أوضح + تقليل الفراغات
============================================ */
:root {
  --touch-target: 44px;
}

@media (max-width: 1200px) {
  :root { --navbar-height: 68px; }
  .navbar-inner {
    gap: 10px;
    padding: 0 12px;
  }
  .navbar-logo img {
    height: 40px;
    width: auto;
  }
  .logo-text {
    font-size: 1.15rem;
  }
  .navbar-actions {
    gap: 10px;
  }
  .icon-btn,
  .hamburger {
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    width: var(--touch-target);
    height: var(--touch-target);
    font-size: 1.2rem;
  }
  .hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(230, 127, 34, 0.35);
    background: rgba(230, 127, 34, 0.12);
    padding: 0;
    color: var(--brand-orange);
    flex-shrink: 0;
  }
  .hamburger-icon {
    font-size: 1.35rem;
  }
  .navbar-login-btn {
    min-height: var(--touch-target) !important;
    min-width: var(--touch-target) !important;
    padding: 0 14px !important;
    font-size: 0.9rem !important;
    gap: 6px;
  }
  .navbar-login-btn .login-text {
    display: inline;
  }
  .theme-toggle {
    width: 48px;
    height: 26px;
    flex-shrink: 0;
  }
  .mobile-nav .nav-link {
    padding: 14px 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-nav .nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
  }
  .hero {
    min-height: calc(100dvh - var(--navbar-height));
    max-height: none;
  }
  .hero-content {
    padding: 40px 18px 56px;
  }
  .hero-badge {
    font-size: 0.82rem;
    padding: 8px 14px;
    margin-bottom: 20px;
  }
  .hero-title {
    font-size: clamp(1.65rem, 5.5vw, 2.6rem) !important;
    line-height: 1.4;
    margin-bottom: 16px;
  }
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 28px;
    padding: 0 4px;
  }
  .hero-actions {
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 0.95rem;
    padding: 14px 20px;
  }
  .hero-scroll-indicator {
    bottom: 20px;
    transform: translateX(-50%) scale(0.9);
  }
  .btn {
    min-height: 44px;
    padding: 12px 22px;
    font-size: 0.92rem;
  }
  .btn-sm {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .section {
    padding: 48px 0;
  }
  .section-title {
    font-size: clamp(1.35rem, 4.5vw, 2rem);
  }
  .section-desc {
    font-size: 0.92rem;
  }
  .auth-page {
    padding: 20px 14px;
    min-height: calc(100dvh - var(--navbar-height));
    align-items: flex-start;
    padding-top: 16px;
  }
  .auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto !important;
    padding: 26px 20px !important;
  }
  .auth-title {
    font-size: 1.35rem !important;
  }
  .auth-desc {
    font-size: 0.88rem !important;
  }
  .form-input,
  .form-textarea,
  select {
    min-height: 48px;
    font-size: 16px !important; /* يمنع zoom في iOS */
    padding: 12px 14px;
  }
  #signup-recaptcha,
  #login-recaptcha {
    transform: none;
    min-height: 78px;
    overflow: visible;
  }
  .g-recaptcha {
    transform: scale(1);
    transform-origin: center;
  }
  .orders-table select {
    min-height: 40px;
    font-size: 0.85rem !important;
    padding: 8px 10px;
  }
  .orders-table .btn-sm {
    min-height: 40px;
    min-width: 40px;
  }
}

@media (max-width: 768px) {
  .navbar-actions .lang-dropdown {
    display: none;
  }
  .footer-grid-4 {
    grid-template-columns: 1fr !important;
    row-gap: 28px !important;
  }
  .features-grid,
  .services-preview-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card {
    padding: 20px 18px;
  }
}

@media (min-width: 481px) and (max-width: 1200px) {
  .hero-content {
    padding: 48px 28px 60px;
  }
  .hero-actions {
    flex-direction: row;
    max-width: 480px;
  }
  .hero-actions .btn {
    width: auto;
    flex: 1;
  }
  .container {
    padding: 0 20px;
  }
  .auth-card {
    padding: 32px 28px !important;
  }
}

@media (max-width: 480px) {
  .navbar-login-btn .login-text {
    display: none;
  }
  .navbar-login-btn {
    width: var(--touch-target);
    padding: 0 !important;
    justify-content: center;
  }
  .signup-email-row {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .signup-send-btn {
    width: 100% !important;
    min-height: 44px;
  }
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER – spacing & mobile centering
============================================ */
.footer-brand-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: .82rem;
}

.footer-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
  padding: 6px 0;
  line-height: 1.7;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-color);
  padding: 28px 0 36px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom-link {
  font-size: .78rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  line-height: 1.7;
  transition: color var(--transition-fast);
}

.footer-bottom-link:hover {
  color: var(--brand-orange);
}

footer .footer-links {
  gap: 14px;
}

footer .footer-link {
  line-height: 1.65;
  padding: 3px 0;
}

footer .footer-brand-desc {
  line-height: 1.9;
  margin-bottom: 6px;
}

footer .footer-title {
  margin-bottom: 18px;
}

.footer-grid-4 {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  column-gap: 56px;
  row-gap: 40px;
}

.footer-col {
  padding-inline: 8px;
}

.footer-col-brand {
  padding-inline-end: 24px;
}

.footer-col-services {
  padding-inline-start: 20px;
}

@media (max-width: 1200px) {
  .footer-grid-4 {
    column-gap: 40px;
  }
}

@media (max-width: 1024px) {
  .footer-grid-4 {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 36px;
  }
  .footer-col-brand,
  .footer-col-services {
    padding-inline: 0;
  }
}

@media (max-width: 768px) {
  footer .container,
  footer .footer-grid,
  footer .footer-grid > div {
    text-align: center;
  }

  footer .footer-brand-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 300px;
  }

  footer .footer-brand-logo,
  footer .footer-brand-email,
  footer .footer-brand-social,
  footer .footer-hours,
  footer .footer-link {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  footer .footer-brand-logo,
  footer .footer-brand-email,
  footer .footer-brand-social {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  footer .footer-links {
    align-items: center;
  }

  footer .footer-link {
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  footer .footer-hours {
    justify-content: center;
    width: 100%;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0 40px;
    gap: 18px;
  }

  .footer-bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .footer-col,
  .footer-col-brand,
  .footer-col-services {
    padding-inline: 0;
  }
}

/* ============================================
   Admin chat + user chat input (إصلاح حقل الرد)
============================================ */
.admin-chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  height: min(520px, calc(100dvh - 220px));
  min-height: 360px;
}

#admin-chat-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-card);
}

#admin-chat-msgs,
#chat-messages-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-msg--mine {
  align-self: flex-start;
}

.chat-msg--theirs {
  align-self: flex-end;
}

[dir="rtl"] .chat-msg--mine {
  align-self: flex-start;
}

[dir="rtl"] .chat-msg--theirs {
  align-self: flex-end;
}

.admin-chat-input-row,
.user-chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
  padding: 12px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

#admin-reply-input,
#user-msg-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  resize: none;
  outline: none;
  line-height: 1.5;
}

#admin-reply-input:focus,
#user-msg-input:focus {
  border-color: var(--brand-orange);
}

.admin-chat-send-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--gradient-orange);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-account-chat {
  display: flex;
  flex-direction: column;
  height: min(480px, calc(100dvh - 200px));
  min-height: 320px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .admin-chat-layout {
    grid-template-columns: 1fr;
    height: min(70dvh, 520px);
  }
  #admin-chat-rooms {
    display: none;
  }
  .admin-chat-layout.has-active-room #admin-chat-rooms {
    display: none;
  }
}

/* ============================================
   MOBILE FIX – Navbar + Account + Orders
============================================ */
.orders-mobile-list {
  display: none;
}

.order-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.order-card-title {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.order-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.order-card-meta span i {
  color: var(--brand-orange);
  margin-left: 6px;
  width: 14px;
}

.order-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.order-card-cancel {
  width: 100%;
  justify-content: center;
  background: rgba(244, 68, 68, 0.1) !important;
  color: #f44 !important;
  border: 1px solid rgba(244, 68, 68, 0.2) !important;
}

.account-profile-compact {
  display: block;
}

@media (max-width: 1200px) {
  .navbar-actions .account-menu {
    display: none !important;
  }

  .navbar-inner {
    gap: 6px;
  }

  .navbar-actions {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }

  .navbar-logo {
    min-width: 0;
    flex-shrink: 1;
  }
}

@media (max-width: 768px) {
  .account-page-section {
    padding: 20px 0 !important;
  }

  .account-layout {
    gap: 12px;
  }

  .account-sidebar {
    padding: 14px 12px;
    position: static;
  }

  .account-profile-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .account-profile-compact .account-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin: 0;
  }

  .account-profile-text {
    flex: 1;
    min-width: 0;
    text-align: right;
  }

  .account-profile-text .account-name,
  .account-profile-text .account-email {
    text-align: inherit;
    margin-bottom: 2px;
  }

  .account-profile-text .account-email {
    margin-bottom: 0;
    word-break: break-all;
  }

  .account-nav-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 10px;
    scrollbar-width: none;
  }

  .account-nav-scroll::-webkit-scrollbar {
    display: none;
  }

  .account-nav-scroll .account-nav-item {
    flex-shrink: 0;
    white-space: nowrap;
    margin-bottom: 0;
    border-right: none !important;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .account-nav-scroll .account-nav-item.active {
    border-bottom: 2px solid var(--brand-orange);
  }

  .account-nav-logout {
    justify-content: center;
    margin-top: 4px;
    padding: 10px;
    font-size: 0.85rem;
  }

  .account-content {
    padding: 18px 14px;
    min-height: auto;
  }

  .orders-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .orders-desktop-table {
    display: none;
  }

  .user-account-chat {
    height: min(420px, calc(100dvh - 280px));
  }

  .admin-page-header-main {
    width: 100%;
  }

  .admin-page-header-actions {
    flex-direction: column;
  }

  .admin-header-btn {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 480px) {
  .navbar-actions .theme-toggle {
    display: none;
  }

  .navbar-inner {
    padding: 0 8px !important;
    gap: 4px;
  }

  .navbar-actions {
    gap: 4px;
  }

  .icon-btn,
  .hamburger {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    font-size: 1.05rem !important;
  }

  .hamburger-icon {
    font-size: 1.15rem !important;
  }
}

/* ============================================
   MOBILE UNIFIED — Admin + User + Global v47
============================================ */
@media (max-width: 768px) {
  :root {
    --navbar-height: 60px;
  }

  html, body {
    overflow-x: hidden;
  }

  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar {
    padding-top: env(safe-area-inset-top, 0);
  }

  .mobile-nav {
    max-height: calc(100dvh - var(--navbar-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
  }

  .navbar-actions .navbar-msg-btn,
  .navbar-actions .navbar-login-btn .login-text {
    display: none !important;
  }

  .icon-btn,
  .hamburger {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  .account-layout,
  .admin-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .account-sidebar,
  .admin-sidebar {
    position: static;
    padding: 12px 10px;
    overflow: hidden;
  }

  .account-content,
  .admin-content {
    padding: 16px 12px !important;
    overflow-x: visible !important;
    min-height: auto;
  }

  .account-page-section,
  .admin-page-section {
    padding: 20px 0 !important;
  }

  .orders-mobile-list,
  .admin-mobile-list {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  .orders-desktop-table,
  .admin-desktop-table {
    display: none !important;
  }

  .table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px 4px;
  }

  .admin-order-user {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 4px;
    word-break: break-all;
  }

  .admin-order-card-extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
  }

  .admin-order-card-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .admin-order-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  .admin-mobile-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-primary);
  }

  .admin-order-btn-danger,
  .admin-order-btn-muted {
    width: 100%;
    justify-content: center;
  }

  .admin-order-btn-danger {
    background: rgba(244, 68, 68, 0.1) !important;
    color: #f44 !important;
    border: 1px solid rgba(244, 68, 68, 0.2) !important;
  }

  .admin-order-btn-muted {
    background: rgba(100, 100, 100, 0.1) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-color) !important;
  }

  .admin-user-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    flex-shrink: 0;
  }

  .admin-chat-layout {
    height: min(72dvh, 560px) !important;
    min-height: 360px;
  }

  .admin-chat-layout:not(.has-active-room) #admin-chat-active {
    display: none !important;
  }

  .admin-chat-layout.has-active-room #admin-chat-rooms {
    display: none !important;
  }

  .admin-chat-layout.has-active-room #admin-chat-active {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
  }

  .admin-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
  }

  .admin-chat-back-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .admin-chat-header-text {
    min-width: 0;
    flex: 1;
  }

  .admin-chat-header-name {
    font-weight: 800;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-chat-header-email {
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-chat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    flex-shrink: 0;
  }

  .user-account-chat {
    height: min(460px, calc(100dvh - 240px)) !important;
    min-height: 300px;
  }

  .cart-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
    right: -100vw !important;
    left: auto !important;
    transform: none !important;
    height: 100dvh !important;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .cart-sidebar.open {
    right: 0 !important;
    transform: none !important;
  }

  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 20px 16px !important;
    border-radius: 16px 16px 0 0 !important;
  }

  #admin-modal-actions {
    flex-direction: column !important;
  }

  #admin-modal-actions .btn {
    width: 100%;
    flex: none !important;
  }

  .admin-page-header-actions {
    flex-direction: column;
  }

  .admin-header-btn {
    width: 100%;
    flex: none !important;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .auth-card {
    margin: 8px !important;
    padding: 22px 16px !important;
  }

  .toast-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(92vw, 360px);
    top: calc(var(--navbar-height) + 8px);
  }
}

@media (max-width: 480px) {
  .admin-stats {
    grid-template-columns: 1fr !important;
  }

  .navbar-actions .theme-toggle {
    display: none;
  }

  .account-nav-scroll .account-nav-item,
  .admin-nav-scroll .account-nav-item {
    font-size: 0.78rem;
    padding: 9px 12px;
  }

  .order-card-title {
    font-size: 0.86rem;
  }
}

@media (min-width: 769px) {
  .admin-mobile-list {
    display: none !important;
  }

  .admin-desktop-table {
    display: block !important;
  }

  .admin-chat-back-btn {
    display: none;
  }
}
