@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;600;700;800&family=Cairo:wght@300;400;600;700&family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --top-bar-h: 38px;
  --main-nav-h: 76px;
  --site-header-offset: calc(var(--top-bar-h) + var(--main-nav-h));
}

/* Use Alexandria for all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-weight: 700;
}

/* ===========================
   Top Contact Bar
   =========================== */
.top-bar {
  background: linear-gradient(
    90deg,
    var(--accent-active) 0%,
    var(--accent-color) 42%,
    var(--accent-hover) 100%
  );
  color: #fff;
  font-size: 0.8rem;
  padding: 7px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  font-family: 'Cairo', sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.22);
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.top-bar-badge i {
  font-size: 0.68rem;
  opacity: 0.95;
}

html[data-theme="dark"] .top-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.top-bar-item {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
}

.top-bar-item i {
  color: rgba(255, 255, 255, 0.7);
}

.top-bar-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.top-bar-link:hover {
  color: #fff;
  opacity: 1;
}

.top-bar-link.is-active {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-bar-nav__sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.top-bar-social {
  color: rgba(255, 255, 255, 0.75);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
}

.top-bar-social:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

/* ===========================
   Navbar with Top Bar offset
   =========================== */
.main-nav {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 1040;
  padding-top: 0;
  padding-bottom: 0;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.main-nav__accent-line {
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--accent-rgb), 0.55) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

/* غلاف الشعار + زر القائمة: لا يتحرك عند فتح القائمة على الجوال */
.main-nav__topbar {
  display: contents;
}

.main-nav.is-scrolled {
  box-shadow:
    0 16px 48px rgba(var(--accent-rgb), 0.14),
    0 4px 16px rgba(15, 23, 42, 0.08);
}

.main-nav.is-scrolled .main-nav__accent-line {
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--accent-rgb), 0.75) 50%,
    transparent 100%
  );
}

html[data-theme="dark"] .main-nav.is-scrolled {
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(var(--accent-rgb), 0.08);
}

.main-nav__container {
  min-height: var(--main-nav-h);
  align-items: center;
}

.main-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  padding: 0;
  margin: 0;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-nav__brand:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.main-nav__brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  line-height: 1.15;
}

.main-nav__brand-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.85;
}

html[data-theme="dark"] .main-nav__brand-tag {
  color: rgba(255, 255, 255, 0.5);
}

.main-nav__brand-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22) 0%, rgba(var(--accent-rgb), 0.06) 100%);
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 1rem;
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.18),
    0 4px 16px rgba(var(--accent-rgb), 0.2);
  flex-shrink: 0;
}

.main-nav__brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--accent-color);
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.18),
    0 4px 16px rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.08);
}

.main-nav__brand-name {
  color: var(--accent-color);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.main-nav__brand-accent {
  color: var(--accent-color);
}

html[data-theme="dark"] .main-nav__brand-name {
  color: var(--accent-color);
}

.main-nav__toggler {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-bg);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.main-nav__toggler:focus {
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.main-nav__toggler-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-nav__collapse {
  align-items: center;
}

.main-nav__link-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.main-nav__link-icon {
  width: 1rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.main-nav__menu .nav-link {
  padding: 0.5rem 0.9rem !important;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
}

.main-nav__menu .nav-link:hover {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-color);
}

.main-nav__menu .nav-link:hover .main-nav__link-icon {
  opacity: 1;
  transform: scale(1.08);
}

.main-nav__menu .nav-link.active {
  background: linear-gradient(
    145deg,
    rgba(var(--accent-rgb), 0.16) 0%,
    rgba(var(--accent-rgb), 0.08) 100%
  );
  color: var(--accent-color);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 4px 16px rgba(var(--accent-rgb), 0.12);
}

.main-nav__menu .nav-link.active .main-nav__link-icon {
  opacity: 1;
  color: var(--accent-color);
}

html[data-theme="dark"] .main-nav__menu .nav-link.active {
  background: linear-gradient(
    145deg,
    rgba(var(--accent-rgb), 0.22) 0%,
    rgba(var(--accent-rgb), 0.1) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 20px rgba(var(--accent-rgb), 0.15);
}

/* خط سفلي في منتصف الرابط (يتجاوز قاعدة .nav-link العامة) */
.main-nav__menu .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: 2px;
  width: 0;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-light) 25%,
    var(--accent-color) 50%,
    var(--accent-light) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  transform: none;
  opacity: 0;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    background-position 0.6s ease;
}

.main-nav__menu .nav-link:hover::after,
.main-nav__menu .nav-link.active::after {
  left: 0;
  right: 0;
  margin-inline: auto;
  transform: none;
}

.main-nav__menu .nav-link:hover::after {
  width: 68%;
  opacity: 1;
}

.main-nav__menu .nav-link.active::after {
  width: 78%;
  height: 3px;
  opacity: 1;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45);
  animation: navUnderlineShine 2.4s ease-in-out infinite;
}

@keyframes navUnderlineShine {
  0% {
    background-position: 100% 0;
  }

  50% {
    background-position: 0% 0;
  }

  100% {
    background-position: 100% 0;
  }
}

.main-nav__search {
  flex: 1 1 auto;
  max-width: 460px;
  margin: 0 1rem;
}

.main-nav__search-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding-block: 0.4rem;
  padding-inline-start: 1rem;
  padding-inline-end: 0.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid rgba(var(--accent-rgb), 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 4px 16px rgba(var(--accent-rgb), 0.06);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

html[data-theme="dark"] .main-nav__search-field {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.main-nav__search-field:focus-within {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.14),
    0 8px 24px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.main-nav__search-kbd {
  flex-shrink: 0;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-secondary);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .main-nav__search-kbd {
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.main-nav__search-icon {
  color: var(--accent-color);
  font-size: 0.9rem;
  flex-shrink: 0;
  opacity: 0.85;
  margin-inline-start: 0.15rem;
}

.main-nav__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.88rem;
  padding: 0.45rem 0;
  outline: none;
}

.main-nav__search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.85;
}

html[data-theme="dark"] .main-nav__search-input {
  color: #f5f5f5;
}

html[data-theme="dark"] .main-nav__search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.main-nav__search-submit {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.main-nav__search-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
}

.main-nav__search-submit:active {
  background: var(--accent-active);
}

.main-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.main-nav__tools {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .main-nav__tools {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.main-nav__cart-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 24px rgba(var(--accent-rgb), 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.main-nav__cart-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(var(--accent-rgb), 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.main-nav__cart-cta.is-active {
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.25),
    0 10px 28px rgba(var(--accent-rgb), 0.42);
}

.main-nav__cart-cta-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
}

.main-nav__cart-cta .cart-badge,
.main-nav__cart-cta-badge {
  position: static;
  top: auto;
  right: auto;
  min-width: 1.35rem;
  width: auto;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-color);
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.main-nav__icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.main-nav__icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--accent-color);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.15);
}

.main-nav__icon-btn.is-active {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.1);
}

html[data-theme="dark"] .main-nav__icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
}

html[data-theme="dark"] .main-nav__icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.main-nav__icon-btn.theme-toggle {
  border: 1px solid var(--glass-border);
}

.main-nav__login-btn {
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.3);
}

.main-nav__user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.main-nav__user-toggle:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--text-primary);
}

.main-nav__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.main-nav__avatar--img {
  object-fit: cover;
  display: block;
}

.main-nav__user-name {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav__user-chevron {
  font-size: 0.65rem;
  opacity: 0.6;
}

.main-nav__dropdown {
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 12px;
  margin-top: 0.5rem !important;
}

.main-nav__dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.main-nav__dropdown .dropdown-item i {
  width: 1.1rem;
  color: var(--accent-color);
}

.main-nav__dropdown .dropdown-item:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--text-primary);
}

.main-nav__dropdown .dropdown-item--danger {
  color: #ef4444;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: start;
}

.main-nav__dropdown .dropdown-item--danger i {
  color: #ef4444;
}

html[data-theme="dark"] .main-nav__dropdown {
  background: rgba(12, 12, 12, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .main-nav__dropdown .dropdown-item {
  color: #f0f0f0;
}

.main-nav__secondary {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.main-nav__secondary-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.main-nav__secondary-link:hover {
  color: var(--accent-color);
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.1);
}

.main-nav__secondary-link.is-active {
  color: var(--accent-color);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.14);
}

.main-nav__search--mobile {
  margin-top: 0.75rem;
  margin-inline: 0 !important;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  .main-nav__container {
    flex-wrap: wrap;
    align-items: stretch;
    align-content: flex-start;
  }

  .main-nav__topbar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--main-nav-h);
    flex: 0 0 auto;
    gap: 1rem;
    margin: 0;
  }

  .main-nav__topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-inline-start: auto;
  }

  .main-nav__topbar .navbar-brand,
  .main-nav__topbar .main-nav__brand {
    position: static;
    transform: none;
    margin: 0;
    max-width: min(calc(100% - 6.5rem), 240px);
    flex-shrink: 1;
    min-width: 0;
  }

  .main-nav__collapse {
    padding: 1rem 0 1.25rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 0;
    flex: 0 0 100%;
    width: 100%;
  }

  .main-nav__search--mobile {
    margin-inline: 0 !important;
    padding-inline: 0;
  }

  .main-nav__search--mobile .main-nav__search-field {
    padding-inline: 0.65rem;
  }

  .main-nav__menu {
    width: 100%;
    margin-bottom: 0.5rem !important;
  }

  .main-nav__menu .nav-link {
    padding: 0.65rem 0.5rem !important;
  }

  .main-nav__actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--glass-border);
  }

  .main-nav__login-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .main-nav__brand-tag {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --main-nav-h: 64px;
  }
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  padding-top: var(--site-header-offset);
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* Toast notifications — above fixed header */
#toast-container {
  position: fixed;
  top: calc(var(--site-header-offset) + 0.75rem);
  inset-inline-end: 1rem;
  left: auto;
  right: 1rem;
  z-index: 1065;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: min(100vw - 2rem, 22rem);
  max-width: 22rem;
  pointer-events: none;
}

html[dir="rtl"] #toast-container {
  left: 1rem;
  right: auto;
}

#toast-container .toast,
#toast-container .site-toast {
  pointer-events: auto;
  width: 100%;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(var(--accent-rgb), 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1;
}

.site-toast__inner {
  direction: rtl;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
}

.site-toast__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.site-toast__text {
  flex: 1;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.site-toast--success {
  background: rgba(22, 163, 74, 0.94) !important;
}

.site-toast--warning {
  background: rgba(202, 138, 4, 0.96) !important;
  color: #1a1a1a;
}

.site-toast--warning .site-toast__text {
  color: #1a1a1a;
}

.site-toast--warning .btn-close {
  filter: none;
  opacity: 0.7;
}

.site-toast--danger {
  background: rgba(220, 38, 38, 0.94) !important;
}

@media (max-width: 767.98px) {
  #toast-container {
    top: calc(var(--site-header-offset) + 0.5rem);
    inset-inline-end: 0.65rem;
    left: auto;
    right: 0.65rem;
    width: min(100vw - 1.3rem, 20rem);
  }

  html[dir="rtl"] #toast-container {
    left: 0.65rem;
    right: auto;
  }
}

/* Hide top bar on mobile → adjust navbar */
@media (max-width: 767px) {
  :root {
    --top-bar-h: 0px;
    --nav-safe-top: max(0.65rem, env(safe-area-inset-top, 0px));
    --main-nav-h: calc(64px + var(--nav-safe-top));
  }

  .main-nav {
    top: 0;
    padding-top: var(--nav-safe-top);
  }

  .main-nav__topbar {
    min-height: 64px;
  }
}

html.mobile-nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* ===========================
   Swiper Team Slider
   =========================== */
.team-swiper {
  padding-bottom: 50px !important;
}

.team-swiper .swiper-slide {
  height: auto;
}

.team-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.team-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  width: 28px;
  border-radius: 5px;
}

.team-next,
.team-prev {
  color: var(--accent-color) !important;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  width: 40px !important;
  height: 40px !important;
  border-radius: 5px;
  border: 1px solid var(--glass-border);
}

.team-next::after,
.team-prev::after {
  font-size: 14px !important;
  font-weight: 700;
}

.team-social-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--accent-color);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

.team-social-btn:hover {
  background: var(--accent-color);
  color: #fff !important;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}


:root {
  /* Default brand (#387e99) — overridden by theme-variables from admin */
  --accent-color: #387e99;
  --accent-hover: #316f87;
  --accent-active: #2a6174;
  --accent-light: #7eabbd;
  --accent-lighter: #a5c5d1;
  --accent-muted: #cddfe6;
  --accent-rgb: 56, 126, 153;

  --bg-gradient-1: #f4f8f9;
  --bg-gradient-2: #fafcfd;
  --bg-gradient-3: #eef4f6;
  --hero-glow-strength: 0.06;

  --text-primary: #193945;
  --text-secondary: rgba(0, 77, 86, 0.65);

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: rgba(var(--accent-rgb), 0.12);

  --glass-hover-bg: rgba(255, 255, 255, 0.75);
  --glass-hover-border: rgba(var(--accent-rgb), 0.4);

  --page-bg: #eff5f7;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-glass {
  background: var(--glass-bg);
}

[data-theme="dark"] {
  --dark-base: #000000;
  --dark-surface: #0a0a0a;
  --dark-elevated: #111111;
  --dark-hover: #1a1a1a;
  --hero-glow-strength: 0.035;

  --text-primary: #f5f5f5;
  --text-secondary: rgba(255, 255, 255, 0.62);
  --page-bg: #000000;

  --glass-bg: rgba(18, 18, 18, 0.82);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.75);

  --glass-hover-bg: rgba(28, 28, 28, 0.9);
  --glass-hover-border: rgba(255, 255, 255, 0.16);

  background: var(--dark-base) fixed;
}

body[data-theme="dark"],
html[data-theme="dark"] body {
  background: var(--dark-base);
  background-attachment: fixed;
  animation: none;
}

html[data-theme="dark"] .glass-nav {
  background: linear-gradient(
    180deg,
    rgba(12, 12, 12, 0.94) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .glass-nav.is-scrolled {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.98) 0%,
    rgba(0, 0, 0, 0.96) 100%
  );
}

html[data-theme="dark"] .glass-panel,
html[data-theme="dark"] .glass-card {
  background: rgba(17, 17, 17, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .glass-card:hover {
  background: rgba(26, 26, 26, 0.95);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .text-white,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: #f5f5f5 !important;
}

html[data-theme="dark"] .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="dark"] .accordion-button {
  background-color: rgba(17, 17, 17, 0.9);
  color: #f5f5f5;
}

html[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--accent-lighter);
}

html[data-theme="dark"] .form-control.bg-glass {
  background-color: rgba(12, 12, 12, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
}

html[data-theme="dark"] p,
html[data-theme="dark"] body p {
  color: rgba(255, 255, 255, 0.62);
}

body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(
    160deg,
    var(--bg-gradient-2) 0%,
    var(--bg-gradient-2) 35%,
    var(--bg-gradient-1) 55%,
    var(--bg-gradient-2) 100%
  );
  background-size: 140% 140%;
  background-attachment: fixed;
  animation: bgShift 22s ease infinite;
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  transition: color 0.4s ease;
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* For English elements */
.en-text {
  font-family: 'Poppins', sans-serif;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: all 0.4s ease;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: all 0.4s ease;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--glass-shadow);
}

/* Navbar */
.glass-nav {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.76) 100%
  );
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
  box-shadow:
    0 8px 32px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.glass-nav.is-scrolled {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 100%
  );
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
}

/* Custom Buttons — solid accent (no gradients) */
.btn-accent {
  background: var(--accent-color);
  background-image: none;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 24px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-accent:active,
.btn-accent:focus-visible:active {
  background: var(--accent-active);
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(var(--accent-rgb), 0.35);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 5px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  color: var(--text-primary);
}

/* Outline CTAs (جميع المنتجات، عرض الكل…) — readable in light & dark */
.btn.btn-outline-light:not(.border-secondary) {
  color: var(--text-primary);
  border-color: rgba(var(--accent-rgb), 0.45);
  background-color: transparent;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn.btn-outline-light:not(.border-secondary):hover,
.btn.btn-outline-light:not(.border-secondary):focus-visible {
  color: #fff;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}

.btn.btn-outline-light:not(.border-secondary):active,
.btn.btn-outline-light:not(.border-secondary).active {
  color: #fff;
  background-color: var(--accent-active);
  border-color: var(--accent-active);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

/* Custom Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

p {
  color: var(--text-secondary);
}

/* Typing Animation Cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--accent-color);
  animation: blink 0.8s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.5);
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background: var(--accent-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
  right: auto;
}

/* النافبار الرئيسي: توسيط الخط (بعد القاعدة العامة) */
.main-nav__menu .nav-link:hover::after,
.main-nav__menu .nav-link.active::after {
  left: 0;
  right: 0;
  margin-inline: auto;
  transform: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-gradient-1);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-muted);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Base Utility Classes */
.bg-gradient-opacity {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.max-w-lg {
  max-width: 600px;
}

/* Form Styles Override for Glass */
.form-control.bg-glass {
  background-color: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-primary);
}

.form-control.bg-glass:focus {
  background-color: var(--glass-hover-bg);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
  color: var(--text-primary);
}

/* Animations ON Scroll */
.section-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero-section {
  min-height: calc(100vh - var(--site-header-offset));
  min-height: calc(100dvh - var(--site-header-offset));
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .hero-section {
    height: 650px;
    min-height: 650px;
    max-height: 650px;
  }

  .hero-section__content {
    display: flex;
    flex-direction: column;
    padding: 1rem 0 0.35rem;
    height: 100%;
    flex: 1;
    min-height: 0;
  }

  .hero-section__row {
    flex: 1;
    height: 100%;
    min-height: 0;
  }

  .hero-section__visual,
  .hero-section__copy {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-section .hero-title {
    font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  }

  .hero-section .hero-subtitle {
    font-size: 1.02rem;
    margin-bottom: 0.85rem !important;
  }

  .hero-section .hero-actions__btn {
    padding: 0.65rem 1.35rem !important;
    font-size: 1rem !important;
  }

  .hero-image-wrapper {
    max-width: none;
    margin-inline-start: 0;
    flex: 1;
    min-height: 0;
    height: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-main-image {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
  }
}

/* Hero — decorative squares (above glass so they stay visible) */
.hero-bg-squares {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-squares::before {
  content: '';
  position: absolute;
  inset: -2%;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.14) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.14) 1.5px, transparent 1.5px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 88% 78% at 50% 42%, #000 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 88% 78% at 50% 42%, #000 18%, transparent 72%);
  opacity: 0.55;
}

html[data-theme="dark"] .hero-bg-squares::before {
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.22) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.22) 1.5px, transparent 1.5px);
  opacity: 0.45;
}

.hero-bg-square {
  position: absolute;
  display: block;
  border-radius: 8px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(var(--accent-rgb), 0.22) 100%
  );
  box-shadow:
    0 10px 28px rgba(var(--accent-rgb), 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: heroSquareFloat 16s ease-in-out infinite;
  will-change: transform;
}

html[data-theme="dark"] .hero-bg-square {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(var(--accent-rgb), 0.28) 100%
  );
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-bg-square--1  { width: 22px; height: 22px; top: 10%; right: 6%;   --sq-rotate: 12deg;  animation-delay: 0s; }
.hero-bg-square--2  { width: 34px; height: 34px; top: 20%; right: 16%;  --sq-rotate: -18deg; animation-delay: -2s; }
.hero-bg-square--3  { width: 18px; height: 18px; top: 6%;  left: 12%;   --sq-rotate: 24deg;  animation-delay: -4s; }
.hero-bg-square--4  { width: 28px; height: 28px; top: 16%; left: 4%;    --sq-rotate: -8deg;  animation-delay: -1s; }
.hero-bg-square--5  { width: 20px; height: 20px; top: 36%; right: 3%;   --sq-rotate: 32deg;  animation-delay: -6s; }
.hero-bg-square--6  { width: 40px; height: 40px; top: 50%; right: 10%;  --sq-rotate: -22deg; animation-delay: -3s; }
.hero-bg-square--7  { width: 26px; height: 26px; top: 42%; left: 8%;    --sq-rotate: 14deg;  animation-delay: -5s; }
.hero-bg-square--8  { width: 16px; height: 16px; top: 60%; left: 3%;     --sq-rotate: -28deg; animation-delay: -7s; }
.hero-bg-square--9  { width: 32px; height: 32px; bottom: 20%; right: 20%; --sq-rotate: 8deg; animation-delay: -2.5s; }
.hero-bg-square--10 { width: 22px; height: 22px; bottom: 14%; left: 16%; --sq-rotate: -14deg; animation-delay: -4.5s; }
.hero-bg-square--11 { width: 36px; height: 36px; bottom: 26%; left: 6%;  --sq-rotate: 20deg;  animation-delay: -1.5s; }
.hero-bg-square--12 { width: 14px; height: 14px; top: 28%; left: 40%;   --sq-rotate: -6deg;  animation-delay: -8s; }
.hero-bg-square--13 { width: 24px; height: 24px; bottom: 10%; right: 5%; --sq-rotate: 26deg; animation-delay: -3.5s; }
.hero-bg-square--14 { width: 30px; height: 30px; top: 66%; right: 36%;  --sq-rotate: -16deg; animation-delay: -6.5s; }
.hero-bg-square--15 { width: 18px; height: 18px; top: 74%; left: 28%;   --sq-rotate: 10deg;  animation-delay: -5.5s; }
.hero-bg-square--16 { width: 26px; height: 26px; top: 14%; right: 42%;  --sq-rotate: -12deg; animation-delay: -7.5s; }
.hero-bg-square--17 { width: 20px; height: 20px; bottom: 32%; right: 8%; --sq-rotate: 18deg; animation-delay: -9s; }
.hero-bg-square--18 { width: 12px; height: 12px; top: 48%; right: 48%;  --sq-rotate: -20deg; animation-delay: -1.2s; }

@keyframes heroSquareFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(var(--sq-rotate, 0deg)) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(calc(var(--sq-rotate, 0deg) + 12deg)) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-square {
    animation: none;
  }
}

@media (max-width: 991.98px) {
  .hero-bg-square--6,
  .hero-bg-square--11,
  .hero-bg-square--14,
  .hero-bg-square--16 {
    display: none;
  }

  .hero-bg-squares::before {
    background-size: 44px 44px;
    opacity: 0.42;
  }
}

.hero-section__glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.38) 42%,
    rgba(var(--accent-rgb), 0.1) 100%
  );
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(var(--accent-rgb), 0.06);
}

html[data-theme="dark"] .hero-section__glass {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(var(--accent-rgb), 0.16) 42%,
    rgba(0, 0, 0, 0.72) 100%
  );
  backdrop-filter: blur(40px) saturate(1.35);
  -webkit-backdrop-filter: blur(40px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -24px 48px rgba(0, 0, 0, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.45);
}

/* Hero copy — static attractive typography */
.hero-title {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.28;
  margin: 0;
}

.hero-title__prefix {
  display: block;
  color: var(--text-primary);
}

.hero-title__highlight {
  display: block;
  margin-top: 0.12em;
  background: linear-gradient(
    120deg,
    var(--accent-hover) 0%,
    var(--accent-color) 45%,
    var(--accent-light) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.hero-copy-panel {
  padding: 0.25rem 0;
}

html[data-theme="dark"] .hero-title__prefix {
  color: #f5f5f5;
}

html[data-theme="dark"] .hero-title__highlight {
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    var(--accent-lighter) 42%,
    var(--accent-color) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .hero-subtitle {
  color: rgba(255, 255, 255, 0.68);
}

html[data-theme="dark"] .hero-badge {
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .hero-copy-panel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-section__content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 1.5rem;
  z-index: 3;
}

.hero-section__wave {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  line-height: 0;
  margin-top: auto;
  pointer-events: none;
}

.hero-section__wave svg {
  display: block;
  width: 100%;
  height: 56px;
}

@media (min-width: 992px) {
  .hero-section__wave svg {
    height: 72px;
  }
}

/* Hero stats — separate section below hero */
.hero-stats-section {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 80% at 12% 50%, rgba(var(--accent-rgb), 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 50% 75% at 88% 50%, rgba(var(--accent-rgb), 0.08) 0%, transparent 55%),
    rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 -16px 48px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .hero-stats-section {
  background:
    radial-gradient(ellipse 55% 80% at 12% 50%, rgba(var(--accent-rgb), 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 50% 75% at 88% 50%, rgba(var(--accent-rgb), 0.12) 0%, transparent 55%),
    rgba(8, 8, 8, 0.78);
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 -20px 56px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-stats-section .container {
  z-index: 1;
}

.hero-stats-section .hero-stat-card {
  --stat-color: var(--accent-color);
  border-radius: 18px;
  cursor: default;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.42) 100%);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 18px 44px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(var(--accent-rgb), 0.06);
}

.hero-stats-section .hero-stat-card::after {
  opacity: 0.42;
}

.hero-stats-section .hero-stat-card--1 { --stat-color: var(--accent-color); }
.hero-stats-section .hero-stat-card--2 { --stat-color: color-mix(in srgb, var(--accent-color) 68%, #22d3ee); }
.hero-stats-section .hero-stat-card--3 { --stat-color: color-mix(in srgb, var(--accent-color) 68%, #34d399); }
.hero-stats-section .hero-stat-card--4 { --stat-color: color-mix(in srgb, var(--accent-color) 68%, #818cf8); }

html[data-theme="dark"] .hero-stats-section .hero-stat-card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.09) 0%, rgba(0, 0, 0, 0.55) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(var(--accent-rgb), 0.1);
}

html[data-theme="dark"] .hero-stats-section .hero-stat-card::after {
  opacity: 0.55;
}

.hero-stats-section .hero-stat-card__orb {
  position: absolute;
  width: 120px;
  height: 120px;
  top: -40px;
  right: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--stat-color) 35%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.45s ease;
}

.hero-stats-section .hero-stat-card:hover .hero-stat-card__orb {
  opacity: 1;
  transform: scale(1.15);
}

.hero-stats-section .hero-stat-card__icon-ring {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--stat-color) 22%, transparent), transparent);
  border: 1px solid color-mix(in srgb, var(--stat-color) 35%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--stat-color) 25%, transparent);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.hero-stats-section .hero-stat-card .elegant-card__icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--stat-color), color-mix(in srgb, var(--stat-color) 72%, #000));
  border: none;
  color: #fff;
  font-size: 1.2rem;
  box-shadow:
    0 8px 22px color-mix(in srgb, var(--stat-color) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-stats-section .hero-stat-card .elegant-card__icon-wrap .elegant-icon {
  width: 1.75rem;
  height: 1.75rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.hero-stats-section .hero-stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: color-mix(in srgb, var(--stat-color) 45%, rgba(255, 255, 255, 0.5));
  box-shadow:
    0 28px 56px rgba(15, 23, 42, 0.14),
    0 0 0 1px color-mix(in srgb, var(--stat-color) 28%, transparent),
    0 16px 40px color-mix(in srgb, var(--stat-color) 22%, transparent);
}

.hero-stats-section .hero-stat-card:hover::after {
  opacity: 1;
}

.hero-stats-section .hero-stat-card:hover .hero-stat-card__icon-ring {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--stat-color) 38%, transparent);
}

html[data-theme="dark"] .hero-stats-section .hero-stat-card:hover {
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in srgb, var(--stat-color) 35%, transparent),
    0 0 48px color-mix(in srgb, var(--stat-color) 28%, transparent);
}

/* Home — best sellers ↔ features visual break */
.home-best-sellers-section {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
  padding-bottom: 0;
  background: var(--page-bg, #f4f8fa);
}

html[data-theme="dark"] .home-best-sellers-section {
  background: var(--page-bg, #0a0a0a);
}

.home-section-wave {
  line-height: 0;
  margin-top: 2rem;
}

.home-section-wave svg {
  display: block;
  width: 100%;
  height: 56px;
}

.home-section-wave--to-features path {
  fill: rgba(var(--accent-rgb), 0.06);
}

html[data-theme="dark"] .home-section-wave--to-features path {
  fill: rgba(var(--accent-rgb), 0.1);
}

.home-features-section {
  position: relative;
  z-index: 0;
  margin-top: -1px;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  background: rgba(var(--accent-rgb), 0.06);
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
  box-shadow:
    inset 0 12px 40px rgba(var(--accent-rgb), 0.04),
    0 -8px 32px rgba(var(--accent-rgb), 0.05);
}

html[data-theme="dark"] .home-features-section {
  background: rgba(var(--accent-rgb), 0.1);
  border-top-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 12px 48px rgba(0, 0, 0, 0.25),
    0 -12px 40px rgba(0, 0, 0, 0.35);
}

.home-features-section .feature-elegant-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .home-features-section .feature-elegant-card {
  background: rgba(18, 18, 18, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
  .home-section-wave svg {
    height: 72px;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: 0;
    height: auto;
  }

  .hero-section__content {
    padding: 1.5rem 0 0.75rem;
  }

  .hero-section__visual {
    margin-bottom: 0.25rem;
  }

  .hero-image-wrapper {
    max-width: 100%;
    margin-inline: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .hero-main-image {
    width: 100%;
    height: auto;
    max-height: min(70vw, 320px);
    object-fit: contain;
    border-radius: 0;
  }

  .hero-section .hero-title {
    font-size: clamp(1.65rem, 6vw, 2.15rem);
  }

  .hero-section .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem !important;
  }

}

@media (max-width: 767.98px) {
  .hero-actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .hero-actions__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.55rem 0.65rem !important;
    font-size: 0.875rem !important;
    line-height: 1.35;
    white-space: nowrap;
  }

  .hero-actions__btn .fa-arrow-left {
    font-size: 0.75rem;
    margin-inline-start: 0.35rem !important;
  }
}

.hero-section--mode-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 45% at 72% 38%,
    rgba(var(--accent-rgb), var(--hero-glow-strength)) 0%,
    transparent 62%
  );
}

html[data-theme="dark"] .hero-section--mode-gradient {
  background: radial-gradient(
    ellipse 50% 42% at 68% 40%,
    rgba(var(--accent-rgb), 0.04) 0%,
    #000000 68%
  );
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-layer--color {
  background-color: var(--hero-bg-color, #0a1628);
}

.hero-bg-layer--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(3, 7, 30, 0.82) 0%, rgba(10, 22, 40, 0.75) 50%, rgba(3, 7, 30, 0.88) 100%);
}

.hero-section--mode-color .hero-bg-shapes,
.hero-section--mode-image .hero-bg-shapes {
  display: none;
}

.hero-main-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.hero-image-wrapper {
  width: 100%;
  max-width: min(100%, 32rem);
  margin-inline-start: auto;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(32px);
}

.shape-1 {
  width: 180px;
  height: 180px;
  top: 14%;
  right: -20px;
  background: rgba(var(--accent-rgb), 0.07);
  animation: float 6s infinite ease-in-out;
}

.shape-2 {
  width: 220px;
  height: 220px;
  bottom: 14%;
  left: -50px;
  background: rgba(var(--accent-rgb), 0.05);
  animation: float 8s infinite ease-in-out reverse;
}

.shape-3 {
  width: 120px;
  height: 120px;
  top: 48%;
  left: 42%;
  background: rgba(var(--accent-rgb), 0.04);
  animation: float 10s infinite ease-in-out 1s;
}

html[data-theme="dark"] .hero-section--mode-gradient .shape-1 {
  background: rgba(var(--accent-rgb), 0.045);
}

html[data-theme="dark"] .hero-section--mode-gradient .shape-2 {
  background: rgba(var(--accent-rgb), 0.03);
}

html[data-theme="dark"] .hero-section--mode-gradient .shape-3 {
  background: rgba(var(--accent-rgb), 0.025);
}

.hero-digital-glow {
  position: relative;
}

.hero-digital-glow::before {
  content: '';
  position: absolute;
  inset: 15% 10%;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.2) 0%, transparent 65%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.hero-digital-panel {
  min-height: 480px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.95) 0%, rgba(var(--accent-rgb), 0.9) 50%, rgba(15, 23, 42, 0.95) 100%);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
  overflow: hidden;
}

.hero-digital-panel::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-digital-mockup {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.hero-digital-titlebar {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-digital-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.hero-digital-dot:first-child {
  background: rgba(239, 68, 68, 0.7);
}

.hero-digital-dot:nth-child(2) {
  background: rgba(234, 179, 8, 0.7);
}

.hero-digital-dot:nth-child(3) {
  background: rgba(34, 197, 94, 0.7);
}

.hero-digital-file {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-digital-file:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(96, 165, 250, 0.35);
}

.hero-digital-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

.hero-digital-file-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 6px;
}

.hero-digital-file-line.short {
  width: 65%;
  margin-bottom: 0;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* Category Cards (legacy / inner pages) */
.category-card:not(.category-card--home) {
  text-align: center;
  padding: 30px 20px;
  cursor: pointer;
  height: 100%;
}

.category-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.category-card:not(.category-card--home):hover .category-icon {
  transform: scale(1.2);
  text-shadow: 0 0 15px var(--accent-color);
}

/* ===========================
   Elegant cards (stats, categories, features)
   =========================== */
.hero-stat-card,
.category-card--home,
.feature-elegant-card,
.category-card-interactive {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease;
  isolation: isolate;
}

.hero-stat-card::after,
.category-card--home::after,
.feature-elegant-card::after,
.category-card-interactive::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.55) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(var(--accent-rgb), 0.35) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.elegant-card__shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.hero-stat-card:hover,
.category-card--home:hover,
.feature-elegant-card:hover,
.category-card-interactive:hover,
.category-card-link:hover .category-card--home {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 12px 36px rgba(var(--accent-rgb), 0.1);
}

.hero-stat-card:hover::after,
.category-card--home:hover::after,
.feature-elegant-card:hover::after,
.category-card-interactive:hover::after,
.category-card-link:hover .category-card--home::after {
  opacity: 1;
}

.hero-stat-card:hover .elegant-card__shine,
.category-card--home:hover .elegant-card__shine,
.feature-elegant-card:hover .elegant-card__shine,
.category-card-interactive:hover .elegant-card__shine,
.category-card-link:hover .elegant-card__shine {
  left: 130%;
}

html[data-theme="dark"] .hero-stat-card:hover,
html[data-theme="dark"] .category-card--home:hover,
html[data-theme="dark"] .feature-elegant-card:hover,
html[data-theme="dark"] .category-card-interactive:hover,
html[data-theme="dark"] .category-card-link:hover .category-card--home {
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(var(--accent-rgb), 0.14);
}

.elegant-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.elegant-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.elegant-card__icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.22) 0%, rgba(var(--accent-rgb), 0.06) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent-color);
  font-size: 1.35rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.elegant-card__icon-wrap .elegant-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.hero-stat-card:hover .elegant-card__icon-wrap,
.category-card--home:hover .elegant-card__icon-wrap,
.feature-elegant-card:hover .elegant-card__icon-wrap,
.category-card-interactive:hover .elegant-card__icon-wrap,
.category-card-link:hover .elegant-card__icon-wrap {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.3);
}

html[data-theme="dark"] .elegant-card__icon-wrap {
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.28) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(var(--accent-rgb), 0.35);
}

/* Hero stats */
.hero-stat-card__body {
  position: relative;
  z-index: 1;
  padding: 1.65rem 1.15rem 1.45rem;
  text-align: center;
}

.hero-stats-section .hero-stat-card__value {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(
    120deg,
    var(--stat-color, var(--accent-color)) 0%,
    color-mix(in srgb, var(--stat-color, var(--accent-color)) 65%, var(--text-primary)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform 0.35s ease;
}

.hero-stats-section .hero-stat-card:hover .hero-stat-card__value {
  transform: scale(1.04);
}

.hero-stat-card__value {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--text-primary);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

html[data-theme="dark"] .hero-stat-card__value {
  color: #ffffff;
}

.hero-stats-section .hero-stat-card__label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

html[data-theme="dark"] .hero-stats-section .hero-stat-card__label {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .hero-stats-section .hero-stat-card__value {
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-stat-card__label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

html[data-theme="dark"] .hero-stat-card__label {
  color: rgba(255, 255, 255, 0.58);
}

.section-fade-up.visible .hero-stats-row > [class*='col']:nth-child(1) .hero-stat-card {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.05s backwards;
}

.section-fade-up.visible .hero-stats-row > [class*='col']:nth-child(2) .hero-stat-card {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s backwards;
}

.section-fade-up.visible .hero-stats-row > [class*='col']:nth-child(3) .hero-stat-card {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.19s backwards;
}

.section-fade-up.visible .hero-stats-row > [class*='col']:nth-child(4) .hero-stat-card {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.26s backwards;
}

/* Category cards — home */
.category-card--home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.65rem 1rem 1.35rem;
  min-height: 168px;
  text-align: center;
  cursor: pointer;
}

.category-card--home.category-card--visual {
  padding: 0;
  min-height: 0;
  height: auto;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}

.category-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.12) 0%, rgba(var(--accent-rgb), 0.04) 100%);
}

/* Square image — padding hack (reliable vs flex stretch / h-100) */
.category-card__media--square {
  height: 0;
  padding-bottom: 100%;
}

.category-card__media--square img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card-link:hover .category-card__media--square img {
  transform: scale(1.08);
}

.category-card__footer {
  padding: 1rem 0.9rem 1.15rem;
  text-align: center;
  flex: 0 0 auto;
}

/* Home categories — 6 per row on desktop, responsive compact sizing */
@media (min-width: 992px) {
  .categories-home-row .category-card__footer {
    padding: 0.7rem 0.45rem 0.8rem;
  }

  .categories-home-row .category-card__name {
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .categories-home-row .category-card__footer {
    padding: 0.85rem 0.65rem 0.95rem;
  }

  .categories-home-row .category-card__name {
    font-size: 0.88rem;
  }
}

@media (max-width: 575.98px) {
  .categories-home-row .category-card__footer {
    padding: 0.55rem 0.35rem 0.65rem;
  }

  .categories-home-row .category-card__name {
    font-size: 0.76rem;
    line-height: 1.3;
    margin: 0;
  }

  .categories-home-row .category-card__hint {
    display: none;
  }
}

html[data-theme="dark"] .category-card__media {
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.2) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.category-card-link:focus-visible .category-card--home {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

.category-card__icon {
  margin-bottom: 1rem;
}

.category-card__icon i,
.category-icon__glyph {
  font-size: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card-interactive .category-icon__glyph {
  font-size: 1.35rem;
}

.category-card__name {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  line-height: 1.45;
  transition: color 0.3s ease;
}

html[data-theme="dark"] .category-card__name {
  color: #f5f5f5;
}

.category-card-link:hover .category-card__name {
  color: var(--accent-color);
}

.category-card__hint {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-color);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card-link:hover .category-card__hint {
  opacity: 1;
  transform: translateY(0);
}

.section-fade-up.visible .categories-home-row > [class*='col']:nth-child(1) .category-card--home {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s backwards;
}

.section-fade-up.visible .categories-home-row > [class*='col']:nth-child(2) .category-card--home {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.14s backwards;
}

.section-fade-up.visible .categories-home-row > [class*='col']:nth-child(3) .category-card--home {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

.section-fade-up.visible .categories-home-row > [class*='col']:nth-child(4) .category-card--home {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.26s backwards;
}

.section-fade-up.visible .categories-home-row > [class*='col']:nth-child(5) .category-card--home {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.32s backwards;
}

.section-fade-up.visible .categories-home-row > [class*='col']:nth-child(6) .category-card--home {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.38s backwards;
}

/* Feature cards */
.feature-elegant-card__body {
  position: relative;
  z-index: 1;
  padding: 1.65rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.feature-elegant-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.65rem;
}

html[data-theme="dark"] .feature-elegant-card__title {
  color: #f5f5f5;
}

.feature-elegant-card__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

html[data-theme="dark"] .feature-elegant-card__text {
  color: rgba(255, 255, 255, 0.58);
}

.section-fade-up.visible .features-elegant-row > [class*='col']:nth-child(1) .feature-elegant-card {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.06s backwards;
}

.section-fade-up.visible .features-elegant-row > [class*='col']:nth-child(2) .feature-elegant-card {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s backwards;
}

.section-fade-up.visible .features-elegant-row > [class*='col']:nth-child(3) .feature-elegant-card {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.18s backwards;
}

.section-fade-up.visible .features-elegant-row > [class*='col']:nth-child(4) .feature-elegant-card {
  animation: elegantCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s backwards;
}

@keyframes elegantCardIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Elegant cards: override generic glass hover */
.hero-stats-section .hero-stat-card.glass-card:hover {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.55) 100%);
}

html[data-theme="dark"] .hero-stats-section .hero-stat-card.glass-card:hover {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.62) 100%);
}

.category-card--home.glass-card:hover,
.feature-elegant-card.glass-card:hover,
.category-card-interactive.glass-card:hover {
  background: var(--glass-hover-bg);
}

/* Course Cards */
.course-img {
  height: 200px;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-light) 50%, var(--accent-lighter) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.glass-card:hover .course-img img {
  transform: scale(1.05);
}

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 2;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.4);
}

.old-price {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.new-price {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'Poppins', sans-serif;
}

/* Accordion Override for Glass */
.accordion-item {
  background-color: transparent;
  border: 1px solid var(--glass-border);
  margin-bottom: 1rem;
  border-radius: 5px !important;
  overflow: hidden;
}

.accordion-button {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  box-shadow: none !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  font-family: 'Cairo', sans-serif;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-color);
  box-shadow: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300d8e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300d8e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
}

/* Course Detail Tabs */
.course-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: all 0.3s ease;
}

.course-tabs .nav-link:hover {
  color: var(--text-primary);
}

.course-tabs .nav-link.active {
  color: var(--accent-color) !important;
  background: rgba(var(--accent-rgb), 0.06) !important;
  border-bottom-color: var(--accent-color);
}

/* Rating Bar */
.rating-bar {
  height: 8px;
  background-color: var(--glass-border);
  border-radius: 4px;
  overflow: hidden;
  flex-grow: 1;
  margin: 0 15px;
}

.rating-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 4px;
}

/* Override p color for light bg */
body p {
  color: var(--text-secondary);
}

/* .text-white only maps to dark text in light mode */
:root .text-white {
  color: var(--text-primary) !important;
}

/* In dark mode - restore white-ish text */
html[data-theme="dark"] .text-white {
  color: #e8f0fe !important;
}

/* These should always be white regardless of mode */
.card-front,
.card-back,
.card-front *,
.card-back *,
.btn-accent,
.course-img {
  color: #ffffff !important;
}

/* ===========================
   Credit Card Preview
   =========================== */
.credit-card-preview {
  perspective: 1000px;
  width: 100%;
  max-width: 380px;
  height: 220px;
  margin: 0 auto;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 5px;
}

.credit-card-preview.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 28px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.card-front {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-light) 55%, var(--accent-lighter) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-back {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.card-stripe {
  background: #1a1a1a;
  height: 48px;
  margin-bottom: 20px;
}

.card-cvv-strip {
  background: rgba(255, 255, 255, 0.1);
  margin: 0 20px;
  padding: 10px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cvv-display {
  background: white;
  color: #333;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 4px;
  font-size: 1rem;
}

.card-number-display {
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.card-holder-display,
.card-exp-display {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Category card — listing page */
.category-card-interactive {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.category-card-interactive .category-icon {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card-interactive__media {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.12);
}

.category-card-interactive__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card-interactive:hover .category-card-interactive__img {
  transform: scale(1.06);
}

/* ===========================
   Page Hero Banner
   =========================== */
html[data-theme="dark"] {
  --page-bg: #000000;
}

.page-hero {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 50%, var(--accent-active) 100%);
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2rem) 0 clamp(1.15rem, 2.5vw, 1.35rem);
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  top: -70px;
  inset-inline-start: -50px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.65rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.page-hero-title {
  font-family: 'Alexandria', 'Cairo', sans-serif !important;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  line-height: 1.35;
}

.page-hero-subtitle {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  max-width: 36rem;
  margin: 0 auto 0.65rem;
  line-height: 1.65;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin: 0.35rem auto 0.65rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  padding-bottom: 0;
  margin-top: 0.15rem;
}

.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.page-hero-breadcrumb a:hover {
  color: #fff;
}

.page-hero-breadcrumb .sep {
  opacity: 0.4;
  font-size: 0.7rem;
}

.page-hero-breadcrumb .current {
  color: rgba(255, 255, 255, 0.55);
}

/* ===========================
   Page Hero — Dark Mode
   =========================== */
html[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #000000 0%, #0d0d0d 50%, #111111 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .hero-bg-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.82) 50%, rgba(0, 0, 0, 0.9) 100%);
}

/* ===========================
   Blog toolbar (search + categories)
   =========================== */
.blog-toolbar__card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 5px;
  padding: 1.25rem 1.35rem;
  box-shadow:
    0 16px 48px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] .blog-toolbar__card {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.blog-toolbar__search-form {
  margin: 0;
}

.blog-toolbar__search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.5rem 0.5rem 0.85rem;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="dark"] .blog-toolbar__search {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.blog-toolbar__search:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.blog-toolbar__search-icon {
  color: var(--accent-color);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-inline-end: 0.15rem;
}

.blog-toolbar__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
}

html[data-theme="dark"] .blog-toolbar__search-input {
  color: #f5f5f5;
}

.blog-toolbar__search-input::placeholder {
  color: #5a7a88;
  opacity: 1;
}

html[data-theme="dark"] .blog-toolbar__search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.blog-toolbar__search-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-color);
  transition: background 0.2s ease, transform 0.2s ease;
}

.blog-toolbar__search-btn:hover {
  background: var(--accent-hover, var(--accent-active));
  transform: translateY(-1px);
}

.blog-toolbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  max-height: 120px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.35) transparent;
}

.blog-toolbar__nav::-webkit-scrollbar {
  height: 4px;
}

.blog-toolbar__nav::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.35);
  border-radius: 99px;
}

.blog-toolbar__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

html[data-theme="dark"] .blog-toolbar__chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.blog-toolbar__chip:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  transform: translateY(-1px);
}

.blog-toolbar__chip.is-active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.35);
}

.blog-toolbar__chip.is-active:hover {
  background: var(--accent-hover, var(--accent-active));
  border-color: var(--accent-hover, var(--accent-active));
  color: #fff;
}

.blog-toolbar__tag-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.14);
}

html[data-theme="dark"] .blog-toolbar__tag-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.blog-toolbar__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

html[data-theme="dark"] .blog-toolbar__tag {
  color: rgba(255, 255, 255, 0.9);
}

.blog-toolbar__tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--accent-color);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-toolbar__tag-remove:hover {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-hover, var(--accent-active));
}

@media (max-width: 991.98px) {
  .blog-toolbar__nav {
    justify-content: flex-start;
    max-height: none;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
}

/* ===========================
   Blog cards
   =========================== */
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 14px 40px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

html[data-theme="dark"] .blog-card {
  background: rgba(18, 18, 18, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow:
    0 22px 50px rgba(var(--accent-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html[data-theme="dark"] .blog-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
}

.blog-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(var(--accent-rgb), 0.06);
}

.blog-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.06);
}

.blog-card__category {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  padding: 0.35rem 0.85rem;
  border-radius: 5px;
  background: var(--accent-color);
  color: #fff;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.35);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.blog-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.blog-card__meta i {
  color: var(--accent-color);
  font-size: 0.82rem;
}

.blog-card__title {
  margin: 0 0 0.65rem;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
}

.blog-card__title a {
  color: var(--text-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.blog-card__title a:hover {
  color: var(--accent-color);
}

.blog-card__excerpt {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.blog-card__cta:hover {
  gap: 0.65rem;
  color: var(--accent-hover, var(--accent-active));
}

.blog-swiper .swiper-slide {
  height: auto;
}

.blog-swiper .blog-card {
  height: 100%;
}

.blog-empty-state h4 {
  color: var(--text-primary);
  font-weight: 800;
}

/* Legacy aliases (static HTML / old markup) */
.blog-image-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
}

.blog-image-wrapper img {
  transition: transform 0.55s ease;
}

.blog-category-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.blog-meta i {
  color: var(--accent-color);
}

.blog-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.45;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.read-more-link:hover {
  gap: 0.65rem;
  color: var(--accent-hover, var(--accent-active));
}

/* ===========================
   Blog detail (article / sidebar / comments)
   =========================== */
.blog-detail-main {
  padding-bottom: 2rem !important;
}

.blog-article {
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 12px 36px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] .blog-article {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blog-article__cover {
  margin: 0;
  line-height: 0;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  aspect-ratio: 16 / 9;
  background: rgba(var(--accent-rgb), 0.06);
}

.blog-article__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-article__body {
  padding: 1rem 1.15rem 1.15rem;
}

@media (min-width: 768px) {
  .blog-article__body {
    padding: 1.15rem 1.35rem 1.25rem;
  }
}

.blog-article__divider {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.14);
  opacity: 1;
}

html[data-theme="dark"] .blog-article__divider {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.blog-article__footer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .blog-article__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.blog-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-article__tag {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.blog-article__tag:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.blog-article__share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.blog-article__share-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.blog-post-content {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  color: var(--text-primary);
  margin-top: 1.35rem;
  margin-bottom: 0.65rem;
  font-weight: 800;
}

.blog-post-content p {
  margin-bottom: 0.85rem;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 0.85rem 0;
}

.blog-post-content a {
  color: var(--accent-color);
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 96px;
}

.blog-sidebar__panel {
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 12px 36px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

html[data-theme="dark"] .blog-sidebar__panel {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blog-sidebar__block {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}

html[data-theme="dark"] .blog-sidebar__block {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.blog-sidebar__block:last-child {
  border-bottom: 0;
}

.blog-sidebar__heading {
  margin: 0 0 0.65rem;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.blog-sidebar__heading--light {
  color: #fff;
}

.blog-sidebar__search-form {
  margin: 0;
}

.blog-sidebar__search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.45rem 0.4rem 0.65rem;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: #fff;
}

html[data-theme="dark"] .blog-sidebar__search {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.blog-sidebar__search:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.16);
}

.blog-sidebar__search-icon {
  color: var(--accent-color);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.blog-sidebar__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.25rem 0;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
}

html[data-theme="dark"] .blog-sidebar__search-input {
  color: #f5f5f5;
}

.blog-sidebar__search-input::placeholder {
  color: #5a7a88;
  opacity: 1;
}

html[data-theme="dark"] .blog-sidebar__search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.blog-sidebar__search-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: var(--accent-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.blog-sidebar__search-btn:hover {
  background: var(--accent-hover, var(--accent-active));
}

.blog-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-sidebar__list li + li {
  margin-top: 0.35rem;
}

.blog-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 5px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-sidebar__link:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
}

.blog-sidebar__count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-color);
}

.blog-sidebar__post {
  display: flex;
  gap: 0.65rem;
  padding: 0.45rem 0;
  text-decoration: none;
}

.blog-sidebar__post + .blog-sidebar__post {
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
  margin-top: 0.35rem;
  padding-top: 0.65rem;
}

html[data-theme="dark"] .blog-sidebar__post + .blog-sidebar__post {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.blog-sidebar__post-img {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 5px;
  object-fit: cover;
}

.blog-sidebar__post-title {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-sidebar__post:hover .blog-sidebar__post-title {
  color: var(--accent-color);
}

.blog-sidebar__post-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.blog-sidebar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-sidebar__tag {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-sidebar__tag:hover {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-color);
}

.blog-sidebar__block--newsletter {
  background: var(--accent-color);
  border-bottom: 0;
}

.blog-sidebar__newsletter-text {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.blog-sidebar__newsletter-input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.blog-sidebar__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.blog-sidebar__newsletter-btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: var(--accent-color);
  font-weight: 800;
  font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-sidebar__newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-hover, var(--accent-active));
}

/* Comments panels */
.blog-panel {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 10px 30px rgba(var(--accent-rgb), 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] .blog-panel {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blog-panel--form {
  margin-top: 0.65rem;
}

.blog-panel__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.blog-panel__empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.blog-comment {
  display: flex;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}

html[data-theme="dark"] .blog-comment {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.blog-comment:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.blog-comment__avatar {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-comment__author {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.blog-comment__time {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.blog-comment__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-comment-form__textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: #fff;
  color: var(--text-primary);
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
}

html[data-theme="dark"] .blog-comment-form__textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
}

.blog-comment-form__textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.16);
}

.blog-comment-form__field {
  margin-bottom: 0.65rem;
}

.blog-comment-form__submit {
  border-radius: 5px !important;
  padding: 0.45rem 1.25rem !important;
}

.blog-related {
  margin-top: 1rem;
  padding-top: 0.75rem;
}

.blog-related__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

@media (max-width: 991.98px) {
  .blog-sidebar {
    position: static;
    top: auto;
    margin-top: 0.25rem;
  }
}

/* Legacy sidebar (static HTML) */
.blog-sidebar-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 0.85rem;
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .blog-sidebar-card {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-post-item {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  text-decoration: none;
}

.sidebar-post-img {
  width: 72px;
  height: 54px;
  border-radius: 5px;
  object-fit: cover;
}

.sidebar-post-title {
  font-size: 0.86rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

/* Global overflow fix for sections with sliders */
section {
  overflow-x: hidden;
  position: relative;
}

/* ===========================
   Lesson Viewer Container
   =========================== */
.lesson-viewer-container {
  min-height: calc(100vh - 108px);
  padding: 0;
}

.lesson-viewer-wrapper {
  display: flex;
  gap: 0;
  max-width: 100%;
  margin: 0;
}

/* ===========================
   Lesson Sidebar
   =========================== */
.lesson-sidebar {
  width: 350px;
  min-width: 350px;
  height: calc(100vh - 108px);
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border-right: 1px solid var(--glass-border);
  overflow: hidden;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(var(--accent-rgb), 0.05);
}

.syllabus-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

/* Custom Scrollbar for Sidebar */
.syllabus-content::-webkit-scrollbar {
  width: 6px;
}

.syllabus-content::-webkit-scrollbar-track {
  background: transparent;
}

.syllabus-content::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.3);
  border-radius: 3px;
}

.syllabus-content::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.5);
}

/* ===========================
   Course Section (Accordion)
   =========================== */
.course-section {
  border-bottom: 1px solid var(--glass-border);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

html[data-theme="dark"] .section-header {
  background: rgba(0, 0, 0, 0.2);
}

.section-header:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

.section-header.collapsed {
  background: transparent;
}

.section-info {
  flex: 1;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  display: block;
}

.section-icon {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.section-header.collapsed .section-icon {
  transform: rotate(-90deg);
}

/* ===========================
   Lessons List
   =========================== */
.lessons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lesson-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lesson-link:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

.lesson-status {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.lesson-item.completed .lesson-status {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.lesson-item.active .lesson-status {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent-color);
}

.lesson-item.locked .lesson-status {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
}

.lesson-item.active {
  background: rgba(var(--accent-rgb), 0.1);
  border-right: 3px solid var(--accent-color);
}

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

.lesson-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lesson-meta i {
  font-size: 0.75rem;
}

.duration {
  font-family: 'Poppins', sans-serif;
}

.lesson-item.locked .lesson-title {
  opacity: 0.6;
}

/* ===========================
   Main Content Area
   =========================== */
.lesson-main {
  flex: 1;
  padding: 1.5rem 2rem;
  min-width: 0;
}

/* ===========================
   Video Player Box
   =========================== */
.video-player-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 1.5rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  color: #fff;
  cursor: pointer;
}

.video-placeholder i {
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.video-placeholder:hover i {
  transform: scale(1.1);
  opacity: 1;
}

.video-placeholder span {
  font-size: 1rem;
  opacity: 0.7;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-controls.visible {
  opacity: 1;
}

.video-player-box:hover .video-controls {
  opacity: 1;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-filled {
  height: 100%;
  background: var(--accent-color);
  border-radius: 3px;
  position: relative;
}

.progress-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-handle {
  opacity: 1;
}

.time-display {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  min-width: 90px;
  text-align: left;
}

.controls-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-right,
.controls-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.play-btn {
  font-size: 1.25rem;
}

.speed-label {
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
}

.volume-slider {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
}

.controls-right:hover .volume-slider {
  width: 80px;
}

.volume-slider input[type="range"] {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}

/* ===========================
   Lesson Info Header
   =========================== */
.lesson-info-header {
  margin-bottom: 1.5rem;
}

.lesson-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.lesson-breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lesson-breadcrumb a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.lesson-breadcrumb i {
  font-size: 0.7rem;
  opacity: 0.5;
}

.lesson-title-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.lesson-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-item i {
  color: var(--accent-color);
}

.completed-badge {
  color: #22c55e !important;
}

.completed-badge i {
  color: #22c55e;
}

/* ===========================
   Lesson Tabs
   =========================== */
.lesson-tabs-container {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.lesson-tabs {
  border-bottom: 1px solid var(--glass-border);
}

.lesson-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: all 0.3s ease;
  background: transparent;
}

.lesson-tabs .nav-link:hover {
  color: var(--text-primary);
  background: rgba(var(--accent-rgb), 0.05);
}

.lesson-tabs .nav-link.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.08);
}

.lesson-tab-content {
  padding: 1.5rem;
}

.lesson-highlights {
  padding-right: 1.5rem;
}

.lesson-highlights li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.lesson-instructor-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(var(--accent-rgb), 0.05);
  border-radius: 8px;
}

.instructor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-details {
  display: flex;
  flex-direction: column;
}

.instructor-details .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.instructor-details .name {
  font-weight: 600;
  color: var(--text-primary);
}

/* ===========================
   Resources Tab
   =========================== */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
}

.resource-item:hover {
  background: var(--glass-hover-bg);
}

.resource-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-color);
  font-size: 1.25rem;
}

.resource-info {
  flex: 1;
}

.resource-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.resource-size {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===========================
   Questions Tab
   =========================== */
.questions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ask-question-form {
  border-radius: 10px;
}

.user-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-item {
  padding: 1.25rem;
  border-radius: 10px;
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

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

.user-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.question-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.question-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.question-answer {
  background: rgba(34, 197, 94, 0.08);
  border-right: 3px solid #22c55e;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.answer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.answer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   Lesson Navigation
   =========================== */
.lesson-navigation {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--glass-hover-bg);
  transform: translateY(-2px);
}

.nav-btn i {
  font-size: 1.25rem;
  color: var(--accent-color);
}

.nav-info {
  display: flex;
  flex-direction: column;
}

.nav-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.nav-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.next-lesson {
  justify-content: flex-end;
  text-align: left;
}

.prev-lesson {
  justify-content: flex-start;
  text-align: right;
}

/* ===========================
   Mobile Sidebar Toggle
   =========================== */
.sidebar-toggle-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(var(--accent-rgb), 0.5);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1045;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   Responsive Styles
   =========================== */
@media (max-width: 1199px) {
  .lesson-sidebar {
    width: 300px;
    min-width: 300px;
  }
}

@media (max-width: 991px) {
  .lesson-viewer-wrapper {
    flex-direction: column;
  }

  .lesson-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    z-index: 1050;
    border-radius: 0;
    border-left: 1px solid var(--glass-border);
    transition: right 0.3s ease;
  }

  .lesson-sidebar.open {
    right: 0;
  }

  .sidebar-toggle-btn {
    display: flex;
  }

  .lesson-main {
    padding: 1rem;
  }

  .lesson-title-main {
    font-size: 1.25rem;
  }

  .lesson-meta-info {
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .lesson-sidebar {
    width: 100%;
    right: -100%;
  }

  .lesson-navigation {
    flex-direction: column;
  }

  .nav-btn {
    justify-content: center !important;
    text-align: center !important;
  }

  .nav-info {
    align-items: center;
  }

  .video-controls {
    padding: 0.75rem 1rem;
  }

  .controls-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .volume-slider {
    display: none;
  }

  .lesson-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .lesson-tab-content {
    padding: 1rem;
  }

  .resource-item {
    flex-wrap: wrap;
  }

  .resource-item .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575px) {
  .lesson-breadcrumb {
    flex-wrap: wrap;
    font-size: 0.8rem;
  }

  .meta-item {
    font-size: 0.85rem;
  }

  .sidebar-toggle-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
  }
}

/* ===========================
   Authentication Pages
   =========================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.auth-page body {
  padding-top: 0;
}

/* Animated Background */
.auth-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.auth-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-lighter) 100%);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-muted) 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

.shape-4 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--accent-lighter) 0%, var(--bg-gradient-3) 100%);
  top: 20%;
  left: 10%;
  animation-delay: -15s;
}

.shape-5 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-light) 100%);
  bottom: 20%;
  right: 15%;
  animation-delay: -7s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 10px) scale(1.02);
  }
}

.auth-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Auth Container */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.auth-wrapper {
  display: flex;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

/* Centered wrapper for forgot password */
.auth-wrapper-centered {
  max-width: 500px;
  margin: 0 auto;
}

/* Branding Section */
.auth-branding {
  flex: 1;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15) 0%, rgba(var(--accent-rgb), 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-branding::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.branding-content {
  position: relative;
  z-index: 2;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.auth-logo i {
  font-size: 2rem;
  color: var(--accent-color);
}

.auth-logo .accent {
  color: var(--accent-color);
}

.branding-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.branding-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.branding-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-text h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Floating Cards Decoration */
.branding-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card i {
  color: var(--accent-color);
}

.card-1 {
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 45%;
  left: 5%;
  animation-delay: -2s;
}

.card-3 {
  bottom: 20%;
  right: 15%;
  animation-delay: -4s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

/* Form Section */
.auth-form-section {
  width: 500px;
  flex-shrink: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.auth-form-wrapper {
  width: 100%;
}

.auth-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.auth-mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 2rem;
}

.auth-mobile-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-mobile-logo i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.auth-mobile-logo .accent {
  color: var(--accent-color);
}

.auth-form-header {
  margin-bottom: 2rem;
}

.auth-form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-form-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Social Login Buttons */
.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--glass-hover-bg);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.social-btn.google svg {
  flex-shrink: 0;
}

.social-btn.facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.social-btn.facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

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

.auth-divider span {
  padding: 0 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 0;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-label i {
  color: var(--accent-color);
  font-size: 0.85rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-left: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

html[data-theme="dark"] .input-wrapper .form-control {
  background: rgba(0, 0, 0, 0.2);
}

.input-wrapper .form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.input-wrapper .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.input-focus-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.input-wrapper.focused .input-focus-border,
.input-wrapper .form-control:focus+.input-focus-border {
  width: 100%;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--accent-color);
}

/* Phone Input */
.phone-input {
  display: flex;
  gap: 0.5rem;
}

.phone-code {
  width: 100px;
  flex-shrink: 0;
  padding: 0.875rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  color-scheme: light;
}

html[data-theme="dark"] .phone-code {
  color-scheme: dark;
  background-color: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f5f5f5;
  --bs-form-select-bg: rgba(0, 0, 0, 0.35);
  --bs-form-select-color: #f5f5f5;
  --bs-form-select-border-color: rgba(255, 255, 255, 0.14);
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f5f5f5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

html[data-theme="dark"] .phone-code option {
  background-color: #141414;
  color: #f5f5f5;
}

html[data-theme="dark"] .phone-code option:checked {
  background-color: var(--accent-color, #0d9488);
  color: #fff;
}

html[data-theme="dark"] .auth-form select {
  color-scheme: dark;
}

html[data-theme="light"] .phone-code option {
  background-color: #fff;
  color: #111827;
}

.phone-input .form-control {
  flex: 1;
  padding-left: 1rem;
}

/* Password Strength */
.password-strength {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-fill.weak {
  background: #ef4444;
}

.strength-fill.medium {
  background: #f59e0b;
}

.strength-fill.strong {
  background: #22c55e;
}

.strength-fill.very-strong {
  background: linear-gradient(90deg, #22c55e, #10b981);
}

.strength-text {
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 80px;
}

.strength-text.weak {
  color: #ef4444;
}

.strength-text.medium {
  color: #f59e0b;
}

.strength-text.strong,
.strength-text.very-strong {
  color: #22c55e;
}

/* Password Match */
.password-match {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-match.match {
  color: #22c55e;
}

.password-match.no-match {
  color: #ef4444;
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
}

.checkbox-wrapper input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-wrapper:hover .checkmark {
  border-color: var(--accent-color);
}

.checkbox-wrapper input:checked+.checkmark {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.checkbox-wrapper input:checked+.checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: #fff;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.checkbox-label a {
  color: var(--accent-color);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.forgot-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Auth Button */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-auth::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-auth:hover::before {
  left: 100%;
}

.btn-auth:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.4);
}

.btn-auth:active {
  background: var(--accent-active);
}

.btn-auth .btn-text {
  transition: opacity 0.2s ease;
}

.btn-auth .btn-icon {
  transition: transform 0.3s ease;
}

.btn-auth:hover .btn-icon {
  transform: translateX(-5px);
}

.btn-auth .btn-loader {
  display: none;
}

.btn-auth.loading .btn-text,
.btn-auth.loading .btn-icon {
  opacity: 0;
}

.btn-auth.loading .btn-loader {
  display: block;
  position: absolute;
}

.btn-block {
  width: 100%;
}

/* Auth Footer */
.auth-footer {
  margin-top: 2rem;
  text-align: center;
}

.auth-footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Forgot Password Page Styles */
.auth-card-only {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.auth-logo-centered {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo-centered a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-logo-centered i {
  font-size: 2rem;
  color: var(--accent-color);
}

.auth-logo-centered .accent {
  color: var(--accent-color);
}

.auth-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-color);
  border: 2px solid rgba(var(--accent-rgb), 0.3);
}

/* Steps Container */
.auth-steps-container {
  position: relative;
  min-height: 200px;
}

.auth-step {
  display: none;
}

.auth-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Email Sent Animation */
.email-sent-animation {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.email-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent-color);
}

.checkmark-circle {
  position: absolute;
  bottom: -5px;
  right: calc(50% - 60px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  animation: popIn 0.3s ease 0.5s both;
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.email-sent-content {
  text-align: center;
}

.email-sent-content h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.email-sent-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.sent-email {
  display: inline-block;
  background: rgba(var(--accent-rgb), 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--accent-color);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.countdown-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.countdown-text .count {
  font-weight: 700;
  color: var(--accent-color);
  font-family: 'Poppins', sans-serif;
}

/* Success Animation */
.success-animation {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-checkmark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPulse 0.5s ease;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.check-icon {
  position: relative;
  width: 50px;
  height: 50px;
}

.icon-line {
  position: absolute;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  animation: checkLine 0.3s ease 0.3s both;
}

.line-tip {
  width: 25px;
  top: 28px;
  left: 5px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.line-long {
  width: 40px;
  top: 24px;
  left: 15px;
  transform: rotate(-45deg);
  transform-origin: left center;
  animation-delay: 0.4s;
}

@keyframes checkLine {
  0% {
    width: 0;
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.success-content {
  text-align: center;
}

.success-content h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Back to Login Link */
.back-to-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.back-to-login:hover {
  color: var(--accent-color);
}

/* Responsive Styles for Auth Pages */
@media (max-width: 1199px) {
  .auth-wrapper {
    max-width: 900px;
  }

  .auth-branding {
    padding: 2rem;
  }

  .branding-title {
    font-size: 2rem;
  }

  .auth-form-section {
    width: 450px;
    padding: 2rem;
  }
}

@media (max-width: 991px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-wrapper {
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
  }

  .auth-branding {
    display: none;
  }

  .auth-form-section {
    width: 100%;
    padding: 2rem;
  }

  .auth-mobile-logo {
    display: block;
  }
}

@media (max-width: 767px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-form-section {
    padding: 1.5rem;
  }

  .auth-form-header h2 {
    font-size: 1.5rem;
  }

  .social-login {
    flex-direction: column;
  }

  .social-btn {
    width: 100%;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-card-only {
    padding: 1.5rem;
  }

  .auth-logo-centered a {
    font-size: 1.25rem;
  }

  .auth-icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 575px) {
  .auth-form-header h2 {
    font-size: 1.35rem;
  }

  .branding-features {
    display: none;
  }

  .phone-input {
    flex-direction: column;
  }

  .phone-code {
    width: 100%;
  }
}

/* ===========================
   E-Commerce Product Styles
   =========================== */
.product-img {
  height: 220px;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-light) 50%, var(--accent-lighter) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Legacy listing cards (glass-card markup / JS templates) */
.glass-card.product-card .product-img,
.product-card .product-img {
  height: auto;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.glass-card.product-card .product-img > a,
.product-card .product-img > a {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.glass-card.product-card .image-count-badge,
.glass-card.product-card .product-badge,
.glass-card.product-card .product-stock-badge,
.product-card .image-count-badge,
.product-card .product-badge,
.product-card .product-stock-badge {
  z-index: 4;
}

.glass-card.product-card a.product-img,
.product-card a.product-img {
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.glass-card:hover .product-img img {
  transform: scale(1.08);
}

.product-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover .product-img-overlay {
  opacity: 1;
}

.product-img-overlay i {
  font-size: 2rem;
  color: #fff;
  transform: scale(0.5);
  transition: transform 0.3s ease;
}

.glass-card:hover .product-img-overlay i {
  transform: scale(1);
}

.image-count-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.image-count-badge i {
  font-size: 0.7rem;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  z-index: 2;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.product-badge.new {
  background: var(--accent-color);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.4);
}

.product-badge.hot {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.product-actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.glass-card:hover .product-actions-overlay,
.product-card .product-img:hover .product-actions-overlay {
  transform: translateY(0);
}

.product-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.product-action-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.1);
}

.product-action-btn.wishlisted {
  background: #ef4444;
  border-color: #ef4444;
}

.product-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

.product-stock-badge.in-stock {
  background: rgba(var(--accent-rgb), 0.9);
  color: #fff;
}

.product-stock-badge.low-stock {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
}

.product-stock-badge.out-of-stock {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-rating .stars {
  color: #f59e0b;
  font-size: 0.8rem;
}

.product-rating .count {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.product-price .current-price {
  color: var(--accent-color);
  font-weight: 800;
  font-size: 1.3rem;
  font-family: 'Poppins', sans-serif;
}

.product-price .original-price {
  text-decoration: line-through;
  opacity: 0.5;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text-secondary);
}

.product-price .discount-percent {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.product-card-footer .btn-add-cart {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-card-footer .btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}

.product-card-footer .btn-quick-view {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.product-card-footer .btn-quick-view:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* ===========================
   Product card (catalog)
   =========================== */
article.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 12px 36px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

html[data-theme="dark"] article.product-card {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

article.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.38);
  box-shadow:
    0 18px 44px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] article.product-card:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  line-height: 0;
  background: rgba(var(--accent-rgb), 0.05);
}

.product-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

article.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 4;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.product-card__badge--hot {
  background: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.product-card__badge--new {
  background: var(--accent-color);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}

.product-card__stock {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 4;
  padding: 0.28rem 0.6rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.product-card__stock--out {
  background: rgba(239, 68, 68, 0.92);
}

.product-card__gallery-count {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-family: 'Poppins', sans-serif;
}

.product-card__actions {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
}

article.product-card:hover .product-card__actions {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.75rem 0.85rem 0.85rem;
  gap: 0.35rem;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.35rem;
}

.product-card__category {
  display: inline-flex;
  max-width: 70%;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .product-card__category {
  background: rgba(var(--accent-rgb), 0.2);
}

.product-card__brand {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__title {
  margin: 0;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  flex: 1;
}

.product-card__title a {
  color: var(--text-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.product-card__title a:hover {
  color: var(--accent-color);
}

.product-card__rating {
  margin: 0;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

html[data-theme="dark"] .product-card__footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.product-card__footer .product-price .current-price {
  font-size: 1.05rem;
}

.product-card__cart-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent-color);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-card__cart-btn:hover {
  background: var(--accent-hover, var(--accent-active));
  transform: translateY(-2px);
  color: #fff;
}

/* Home — latest products decorative squares */
.home-latest-products-section {
  isolation: isolate;
}

html[data-theme="dark"] .home-latest-products-section {
  background:
    radial-gradient(ellipse 65% 50% at 12% 28%, rgba(var(--accent-rgb), 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 55% 48% at 90% 72%, rgba(var(--accent-rgb), 0.09) 0%, transparent 55%),
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.04) 0%, transparent 45%, rgba(var(--accent-rgb), 0.06) 100%);
}

.home-latest-products__squares {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-latest-products__squares::before {
  content: '';
  position: absolute;
  inset: -2%;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.12) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.12) 1.5px, transparent 1.5px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 50%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 50%, #000 12%, transparent 78%);
  opacity: 0.5;
}

html[data-theme="dark"] .home-latest-products__squares::before {
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.42) 1px, transparent 1px);
  opacity: 0.72;
  mask-image: radial-gradient(ellipse 98% 92% at 50% 50%, #000 28%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 98% 92% at 50% 50%, #000 28%, transparent 88%);
}

.home-latest-products__square {
  position: absolute;
  display: block;
  border-radius: 8px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.42);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(var(--accent-rgb), 0.2) 100%
  );
  box-shadow:
    0 10px 28px rgba(var(--accent-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: heroSquareFloat 16s ease-in-out infinite;
  will-change: transform;
}

html[data-theme="dark"] .home-latest-products__square {
  border-color: rgba(var(--accent-rgb), 0.85);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(var(--accent-rgb), 0.45) 100%
  );
  box-shadow:
    0 0 22px rgba(var(--accent-rgb), 0.42),
    0 10px 28px rgba(var(--accent-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.home-latest-products__square--1  { width: 20px; height: 20px; top: 10%;  right: 4%;   --sq-rotate: 14deg;  animation-delay: 0s; }
.home-latest-products__square--2  { width: 30px; height: 30px; top: 22%;  right: 12%;  --sq-rotate: -16deg; animation-delay: -2s; }
.home-latest-products__square--3  { width: 16px; height: 16px; top: 6%;   left: 6%;    --sq-rotate: 22deg;  animation-delay: -4s; }
.home-latest-products__square--4  { width: 24px; height: 24px; top: 18%;  left: 2%;    --sq-rotate: -10deg; animation-delay: -1s; }
.home-latest-products__square--5  { width: 14px; height: 14px; top: 42%;  right: 2%;   --sq-rotate: 28deg;  animation-delay: -5s; }
.home-latest-products__square--6  { width: 36px; height: 36px; top: 55%;  right: 8%;   --sq-rotate: -20deg; animation-delay: -3s; }
.home-latest-products__square--7  { width: 22px; height: 22px; top: 48%;  left: 5%;    --sq-rotate: 12deg;  animation-delay: -6s; }
.home-latest-products__square--8  { width: 12px; height: 12px; bottom: 18%; left: 10%;  --sq-rotate: -24deg; animation-delay: -7s; }
.home-latest-products__square--9  { width: 28px; height: 28px; bottom: 12%; right: 18%; --sq-rotate: 8deg;  animation-delay: -2.5s; }
.home-latest-products__square--10 { width: 18px; height: 18px; bottom: 22%; left: 3%;   --sq-rotate: -14deg; animation-delay: -4.5s; }
.home-latest-products__square--11 { width: 32px; height: 32px; bottom: 8%;  right: 3%;  --sq-rotate: 18deg;  animation-delay: -1.5s; }
.home-latest-products__square--12 { width: 15px; height: 15px; top: 32%;  left: 18%;   --sq-rotate: -8deg;  animation-delay: -8s; }

.home-latest-products-section .container {
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .home-latest-products__square {
    animation: none;
  }
}

@media (max-width: 991.98px) {
  .home-latest-products__square--6,
  .home-latest-products__square--11 {
    display: none;
  }
}

.products-swiper .swiper-slide {
  height: auto;
}

.products-swiper article.product-card {
  height: 100%;
}

/* ===========================
   Shop page layout
   =========================== */
.shop-page__layout {
  align-items: flex-start;
}

.shop-toolbar {
  margin-bottom: 1rem;
}

.shop-toolbar__inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(var(--accent-rgb), 0.05) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 12px 36px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html[data-theme="dark"] .shop-toolbar__inner {
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.95) 0%, rgba(var(--accent-rgb), 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .shop-toolbar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.shop-toolbar__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.shop-toolbar__meta-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--accent-color);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.shop-toolbar__count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.shop-toolbar__count strong {
  color: var(--accent-color);
  font-weight: 800;
}

.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.shop-toolbar__sort-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.shop-toolbar__sort-label i {
  color: var(--accent-color);
  font-size: 0.8rem;
}

.shop-toolbar__select-wrap {
  position: relative;
  min-width: 190px;
}

.shop-toolbar__select {
  width: 100%;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.25);
  background: #fff;
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .shop-toolbar__select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
}

.shop-toolbar__select-chevron {
  position: absolute;
  top: 50%;
  inset-inline-end: 0.75rem;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--accent-color);
  pointer-events: none;
  opacity: 0.75;
}

.shop-toolbar__select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.shop-products-empty {
  text-align: center;
  padding: 2.75rem 1.5rem;
  border-radius: 18px;
  border: 1px dashed rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.04);
  color: var(--text-secondary);
}

html[data-theme="dark"] .shop-products-empty {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.shop-products-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  font-size: 1.5rem;
}

.shop-products-empty h5 {
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.shop-products-empty p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.shop-products-empty__btn {
  border-radius: 999px !important;
}

.shop-products-empty i {
  font-size: 3rem;
  opacity: 0.45;
  margin-bottom: 0.75rem;
  display: block;
}

.shop-products-empty h5 {
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  font-weight: 800;
}

.shop-products-empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* Wishlist page */
.wishlist-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding: 0.85rem 1.1rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 12px 36px rgba(var(--accent-rgb), 0.06);
}

html[data-theme="dark"] .wishlist-page__toolbar {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.wishlist-page__count {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.wishlist-page__empty {
  max-width: 28rem;
  margin: 2rem auto 3rem;
  padding: 2.5rem 1.25rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 16px 48px rgba(var(--accent-rgb), 0.08);
}

html[data-theme="dark"] .wishlist-page__empty {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

.account-dashboard #dashboard-wishlist-items .product-card {
  height: 100%;
}

/* Wishlist Badge */
.wishlist-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 0.7rem;
  font-family: 'Poppins', sans-serif;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

/* ===========================
   Product detail page
   =========================== */
.product-page {
  padding-bottom: 2rem;
}

.product-page__breadcrumb-wrap {
  padding: 0.85rem 0 0.25rem;
  margin-top: 5rem;
}

.product-page__breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.product-page__breadcrumb .breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-page__breadcrumb .breadcrumb-item a:hover {
  color: var(--accent-color);
}

.product-page__breadcrumb .breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.product-page__breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-secondary);
}

.product-page__gallery {
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 14px 40px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

html[data-theme="dark"] .product-page__gallery {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-page__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  line-height: 0;
  background: rgba(var(--accent-rgb), 0.05);
}

.product-page__media .product-image-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
}

.product-page__media .product-image-swiper .swiper-slide {
  height: 100%;
  border-radius: 0;
}

.product-page__image-frame {
  width: 100%;
  height: 100%;
}

.product-page__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-page__thumbs {
  padding: 0.65rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

html[data-theme="dark"] .product-page__thumbs {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.product-page__thumb-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.06);
}

.product-page__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-page__info {
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 14px 40px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  padding: 1.25rem 1.35rem 1.35rem;
}

html[data-theme="dark"] .product-page__info {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-page__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.product-page__badge {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-page__badge--category {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
}

html[data-theme="dark"] .product-page__badge--category {
  background: rgba(var(--accent-rgb), 0.22);
}

.product-page__badge--hot {
  background: #ef4444;
  color: #fff;
}

.product-page__badge--new {
  background: var(--accent-color);
  color: #fff;
}

.product-page__title {
  margin: 0 0 0.85rem;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-primary);
}

.product-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}

html[data-theme="dark"] .product-page__meta {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.product-page__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.product-page__meta-item i {
  color: var(--accent-color);
}

.product-page__meta-item--stock.is-in-stock {
  color: #16a34a;
}

.product-page__meta-item--stock.is-out-stock {
  color: #ef4444;
}

.product-page__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.product-page__price {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1.2;
}

.product-page__price-old {
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  opacity: 0.85;
}

.product-page__discount {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-page__excerpt {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.product-page__field {
  margin-bottom: 1rem;
}

.product-page__field-label {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-page__colors .color-option {
  width: 36px;
  height: 36px;
}

.product-page__actions {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.product-page__cart-form {
  flex: 1;
  min-width: 0;
  display: flex;
}

.product-page__add-cart {
  width: 100%;
  border-radius: 5px !important;
  padding: 0.85rem 1rem !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.28);
}

.product-page__wishlist-wrap .product-action-btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-color);
}

html[data-theme="dark"] .product-page__wishlist-wrap .product-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.product-page__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-page__highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.4rem;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(var(--accent-rgb), 0.06);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

html[data-theme="dark"] .product-page__highlight {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.product-page__highlight i {
  color: var(--accent-color);
  font-size: 1rem;
}

.product-page__features {
  padding-top: 0.85rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

html[data-theme="dark"] .product-page__features {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.product-page__features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-page__features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.product-page__features-list i {
  color: var(--accent-color);
  margin-top: 0.2rem;
}

.product-page__footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

html[data-theme="dark"] .product-page__footer-meta {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.product-page__footer-meta i {
  color: var(--accent-color);
  margin-inline-end: 0.25rem;
}

/* Tabs & related */
.product-page__tabs {
  margin-top: 1.5rem;
}

.product-page__tabs-nav {
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

html[data-theme="dark"] .product-page__tabs-nav {
  background: rgba(18, 18, 18, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.product-page-tabs .nav-link {
  border: 0;
  border-radius: 0;
  padding: 0.85rem 1.15rem;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-page-tabs .nav-link:hover {
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.08);
}

.product-page-tabs .nav-link.active {
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.14);
}

.product-page__tab-panel {
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(255, 255, 255, 0.78);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.06);
}

html[data-theme="dark"] .product-page__tab-panel {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.product-page__tab-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-color);
}

.product-page__tab-body {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.product-page__tab-body h2,
.product-page__tab-body h3 {
  color: var(--text-primary);
  margin-top: 1.25rem;
}

.product-page__tab-muted {
  color: var(--text-secondary);
}

.product-page__divider {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

html[data-theme="dark"] .product-page__divider {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.product-page__specs-table th {
  width: 38%;
  color: var(--text-primary);
  font-weight: 700;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
}

.product-page__specs-table td {
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.product-page__rating-big {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-color);
}

.product-page__rating-label {
  width: 4.5rem;
  flex-shrink: 0;
}

.product-page__rating-pct {
  width: 2.2rem;
  flex-shrink: 0;
  text-align: end;
}

.product-page__review {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

html[data-theme="dark"] .product-page__review {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.product-page__review:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.product-page__review-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-color);
  font-weight: 800;
  font-size: 0.85rem;
}

.product-page__review-author {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-page__review-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.product-page__related {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.14);
}

html[data-theme="dark"] .product-page__related {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.product-page__related-title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Legacy product detail aliases */
.product-info .product-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.product-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-meta-item i {
  color: var(--accent-color);
}

/* Quantity stepper (quick view, product detail, cart) */
.qty-stepper,
.quantity-selector {
  display: inline-flex;
  align-items: stretch;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: #fff;
  box-shadow:
    0 4px 14px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

html[data-theme="dark"] .qty-stepper,
html[data-theme="dark"] .quantity-selector {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.qty-stepper__btn,
.quantity-selector button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

html[data-theme="dark"] .qty-stepper__btn,
html[data-theme="dark"] .quantity-selector button {
  background: rgba(var(--accent-rgb), 0.22);
  color: #fff;
}

.qty-stepper__btn:hover:not(:disabled),
.quantity-selector button:hover:not(:disabled) {
  background: var(--accent-color);
  color: #fff;
}

.qty-stepper__btn:disabled,
.quantity-selector button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.qty-stepper__input,
.quantity-selector input {
  width: 3.75rem;
  min-width: 3.75rem;
  height: 46px;
  margin: 0;
  padding: 0 0.35rem;
  text-align: center;
  border: 0;
  border-inline: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.04);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

html[data-theme="dark"] .qty-stepper__input,
html[data-theme="dark"] .quantity-selector input {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.qv-qty-block__label {
  display: block;
}

.color-options {
  display: flex;
  gap: 10px;
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.color-option:hover,
.color-option.active {
  border-color: var(--accent-color);
  transform: scale(1.1);
}

.color-option.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.7rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Wishlist Page */
.wishlist-item {
  transition: all 0.3s ease;
}

.wishlist-item:hover {
  transform: translateY(-4px);
}

.wishlist-remove-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.wishlist-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Order Success Page */
.order-success-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: successPulse 0.6s ease;
}

.order-success-icon i {
  font-size: 3rem;
  color: #fff;
}

.order-details-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 25px;
}

.order-details-card .order-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

.order-details-card .order-item:last-child {
  border-bottom: none;
}

.order-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tracking Progress */
.tracking-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 30px 0;
}

.tracking-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--glass-border);
  z-index: 0;
}

.tracking-progress .progress-line {
  position: absolute;
  top: 20px;
  right: 0;
  height: 3px;
  background: var(--accent-color);
  z-index: 1;
  transition: width 0.5s ease;
}

.tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.tracking-step .step-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 3px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.tracking-step.completed .step-icon {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.tracking-step.active .step-icon {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  animation: pulse 2s infinite;
}

.tracking-step .step-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

.tracking-step.completed .step-label,
.tracking-step.active .step-label {
  color: var(--text-primary);
  font-weight: 600;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

/* Product List View */
.list-view-img {
  width: 280px;
  height: 200px;
}

/* Quick View Modal (base — extended below) */
.quick-view-modal .modal-header {
  border-bottom: 1px solid var(--glass-border);
}

/* Account dashboard — legacy hook (nav uses .account-sidebar__link) */

/* Cart Item Enhancements */
#cart-server-rendered.cart-is-busy {
  opacity: 0.65;
  pointer-events: none;
}

#shop-results-root.shop-results-loading {
  opacity: 0.55;
  pointer-events: none;
  position: relative;
  min-height: 120px;
}

#shop-results-root.shop-results-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem 0 0 -1.25rem;
  border: 3px solid rgba(var(--accent-rgb), 0.25);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: shopResultsSpin 0.7s linear infinite;
}

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

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
}

.cart-item-qty button {
  width: 32px;
  height: 32px;
  background: var(--glass-bg);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-item-qty button:hover {
  background: var(--accent-color);
  color: #fff;
}

.cart-item-qty span {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

/* Checkout Steps */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--text-secondary);
}

.checkout-step.active .step-num {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.checkout-step.completed .step-num {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.checkout-step .step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkout-step.active .step-text,
.checkout-step.completed .step-text {
  color: var(--text-primary);
  font-weight: 600;
}

.payment-method-option {
  cursor: pointer;
  user-select: none;
}

.payment-method-option:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Checkout buyer fields */
.checkout-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.checkout-field {
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-field::placeholder {
  color: var(--text-secondary);
  opacity: 0.75;
}

.checkout-field:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
  background: var(--glass-bg);
  color: var(--text-primary);
}

html[data-theme="light"] .checkout-field {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

html[data-theme="light"] .checkout-field:focus {
  background: #fff;
  border-color: var(--accent-color);
}

html[data-theme="dark"] .checkout-field {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .checkout-field:focus {
  background: rgba(255, 255, 255, 0.07);
}

.checkout-buyer-grid .checkout-phone-wrap {
  width: 100%;
}

.checkout-buyer-grid .checkout-phone-wrap.is-invalid .iti {
  border-color: #dc3545;
}

.checkout-buyer-grid .iti {
  width: 100%;
  display: block;
}

.checkout-buyer-grid .iti__country-container {
  border-radius: 5px 0 0 5px;
}

.checkout-buyer-grid .iti__selected-country {
  border-radius: 5px 0 0 5px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: none;
  padding: 0 0.5rem;
}

.checkout-buyer-grid .iti__selected-dial-code {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

.checkout-buyer-grid .iti .checkout-phone-input,
.checkout-buyer-grid .iti input.checkout-phone-input {
  width: 100%;
  padding-right: 0.9rem;
  padding-left: 6.5rem;
  border-radius: 5px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  min-height: calc(1.5em + 1.3rem + 2px);
}

html[data-theme="light"] .checkout-buyer-grid .iti__selected-country,
html[data-theme="light"] .checkout-buyer-grid .iti .checkout-phone-input {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

html[data-theme="dark"] .checkout-buyer-grid .iti__selected-country,
html[data-theme="dark"] .checkout-buyer-grid .iti .checkout-phone-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.checkout-buyer-grid .iti__dropdown-content {
  border-radius: 5px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  max-height: 240px;
}

html[data-theme="dark"] .checkout-buyer-grid .iti__dropdown-content {
  background: #1a2332;
  border-color: rgba(255, 255, 255, 0.12);
}

.checkout-buyer-grid .iti__search-input {
  border-radius: 5px;
  margin: 0.5rem;
  width: calc(100% - 1rem);
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
}

.checkout-buyer-grid .iti__country {
  padding: 0.45rem 0.75rem;
  color: var(--text-primary);
}

.checkout-buyer-grid .iti__country.iti__highlight {
  background: rgba(var(--accent-rgb), 0.15);
}

.checkout-buyer-grid .iti__country-name,
.checkout-buyer-grid .iti__dial-code {
  color: var(--text-primary);
}

[dir="rtl"] .checkout-buyer-grid .iti .checkout-phone-input {
  padding-left: 0.9rem;
  padding-right: 6.5rem;
  text-align: left;
}

.checkout-bank-details {
  padding: 0;
}

.checkout-bank-details__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary, #fff);
}

.checkout-bank-notice-field {
  min-height: 5.5rem;
  height: auto;
  padding: 0.85rem 1rem;
  line-height: 1.7;
  color: var(--text-primary, #fff);
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 5px;
  border-color: rgba(255, 193, 7, 0.45) !important;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.06) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.15);
  animation: checkout-bank-notice-pulse 2.5s ease-in-out infinite;
}

.checkout-bank-notice-field--empty {
  color: var(--text-secondary, #9ca3af);
  border-color: var(--glass-border, rgba(255, 255, 255, 0.12)) !important;
  background: var(--glass-bg, rgba(255, 255, 255, 0.03)) !important;
  animation: none;
  font-size: 0.88rem;
}

.checkout-bank-field {
  min-height: calc(1.5em + 0.75rem + 2px);
  height: auto;
  color: var(--text-primary, #fff);
  cursor: default;
  user-select: all;
}

.checkout-file-upload {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
  border-radius: 5px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.03));
  cursor: pointer;
  margin-bottom: 0;
}

.checkout-file-upload.is-invalid {
  border-color: #dc3545;
}

.checkout-file-upload__input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.checkout-file-upload__btn {
  margin: 0;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  border-radius: 5px;
  pointer-events: none;
}

.checkout-file-upload__name {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--text-secondary, #9ca3af);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-file-upload__name.has-file {
  color: var(--text-primary, #fff);
  font-weight: 500;
}

@keyframes checkout-bank-notice-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.15); }
  50% { box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.35), 0 0 12px rgba(255, 152, 0, 0.15); }
}

/* Checkout payment method panels (shared) */
.checkout-method-panel {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(var(--accent-rgb, 0, 212, 255), 0.22);
  border-radius: 5px;
  background: rgba(var(--accent-rgb, 0, 212, 255), 0.04);
  color: var(--text-primary, #fff);
}

.checkout-method-panel__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.checkout-method-panel__head > i,
.checkout-method-panel__head > .fab {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 1.15rem;
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.checkout-method-panel__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
}

.checkout-method-panel__subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary, #9ca3af);
}

.checkout-method-panel__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary, #b0b8c4);
}

.checkout-method-notice {
  padding: 0.85rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.checkout-method-notice--info {
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text-primary, #fff);
}

/* Credit card checkout panel */
.checkout-card-panel {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.07) 0%, rgba(var(--accent-rgb), 0.02) 100%);
}

.checkout-card-brands {
  display: flex;
  gap: 0.4rem;
  margin-right: auto;
  margin-left: 0;
}

.checkout-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #fff);
  background: rgba(255, 255, 255, 0.06);
}

.checkout-card-brand--visa {
  color: #1a1f71;
  background: #f8fafc;
  border-color: #dbeafe;
}

.checkout-card-brand--mc {
  color: #fff;
  background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
  border-color: transparent;
}

.checkout-card-brand--mada {
  font-size: 0.72rem;
  color: #0d9488;
  background: #ecfdf5;
  border-color: #99f6e4;
}

.checkout-card-visual {
  position: relative;
  padding: 1.35rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 45%, #134e4a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.checkout-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.checkout-card-visual__chip {
  width: 42px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: 5px;
  color: #fcd34d;
  background: linear-gradient(135deg, #fde68a 0%, #d97706 100%);
  font-size: 1rem;
}

.checkout-card-visual__number {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #f8fafc;
  margin-bottom: 1rem;
  font-family: ui-monospace, monospace;
}

.checkout-card-visual__footer {
  display: flex;
  gap: 2rem;
}

.checkout-card-visual__label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.15rem;
}

.checkout-card-visual__value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
  font-family: ui-monospace, monospace;
}

.checkout-card-panel__lead {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-primary, #fff);
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.checkout-card-fields {
  padding: 0.85rem;
  border-radius: 5px;
  border: 1px dashed rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.03);
}

.checkout-card-field {
  min-height: calc(1.5em + 0.75rem + 2px);
  color: var(--text-secondary, #9ca3af) !important;
  cursor: default;
  user-select: none;
  font-style: italic;
  opacity: 0.85;
}

.checkout-card-panel__hint {
  font-size: 0.88rem;
  color: var(--text-secondary, #b0b8c4);
  line-height: 1.6;
}

.checkout-card-notice-field {
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  line-height: 1.75;
  color: var(--text-primary, #fff);
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 5px;
  border-color: rgba(var(--accent-rgb), 0.35) !important;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12) 0%, rgba(var(--accent-rgb), 0.05) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.checkout-card-notice-field--empty {
  color: var(--text-secondary, #9ca3af);
  border-color: var(--glass-border, rgba(255, 255, 255, 0.12)) !important;
  background: var(--glass-bg, rgba(255, 255, 255, 0.03)) !important;
  font-size: 0.88rem;
  font-style: normal;
}

.checkout-card-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

.checkout-card-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #9ca3af);
}

.checkout-card-trust i {
  color: var(--accent-color);
  font-size: 0.85rem;
}

html[data-theme="light"] .checkout-card-visual {
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.18);
}

html[data-theme="light"] .checkout-card-brand--visa,
html[data-theme="light"] .checkout-card-brand--mada {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Checkout pending — luxury layout */
.page-hero--pending .page-hero-icon--pending {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.22) 0%, rgba(var(--accent-rgb), 0.12) 100%);
  border-color: rgba(255, 193, 7, 0.35);
  color: #ffc107;
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.12);
}

.checkout-pending-page {
  margin-top: 0;
}

.checkout-pending-status-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.75rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 193, 7, 0.28);
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.08) 0%, rgba(var(--accent-rgb), 0.05) 100%);
}

.checkout-pending-status-bar__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffc107;
  box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.5);
  animation: checkout-pending-pulse 2s ease-in-out infinite;
}

.checkout-pending-status-bar__text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary, #fff);
}

.checkout-pending-status-bar__order {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

@keyframes checkout-pending-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
}

.checkout-pending-card {
  padding: 0;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.checkout-pending-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%);
}

.checkout-pending-card__head--compact {
  padding: 1.15rem 1.5rem;
}

.checkout-pending-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 1.25rem;
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.checkout-pending-card__icon--soft {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.checkout-pending-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--text-primary, #fff);
}

.checkout-pending-card__subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary, #9ca3af);
}

.checkout-pending-notice {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
}

.checkout-pending-notice__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #ffc107;
  background: rgba(255, 193, 7, 0.15);
  font-size: 1rem;
}

.checkout-pending-notice__title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: #ffc107;
}

.checkout-pending-notice__body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-primary, #fff);
}

.checkout-pending-table-wrap {
  padding: 0.5rem 1.5rem 1.35rem;
}

.checkout-pending-card > .checkout-pending-table-wrap:first-of-type,
.checkout-pending-notice + .checkout-pending-table-wrap {
  padding-top: 1.25rem;
}

.checkout-pending-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.checkout-pending-table tbody tr {
  transition: background 0.2s ease;
}

.checkout-pending-table tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.04);
}

.checkout-pending-table th,
.checkout-pending-table td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-pending-table th[scope="row"] {
  width: 38%;
  font-weight: 500;
}

.checkout-pending-table__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary, #9ca3af);
  white-space: nowrap;
}

.checkout-pending-table__label i {
  width: 1.1rem;
  text-align: center;
  color: rgba(var(--accent-rgb), 0.7);
  font-size: 0.82rem;
}

.checkout-pending-table__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary, #fff);
  line-height: 1.6;
}

.checkout-pending-table__value--copy {
  user-select: all;
  letter-spacing: 0.02em;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}

.checkout-pending-table__value--muted {
  font-weight: 400;
  color: var(--text-secondary, #b0b8c4);
}

.checkout-pending-table__value--amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-color);
}

.checkout-pending-table__value--amount-sm {
  font-weight: 600;
  color: var(--accent-color);
}

.checkout-pending-table__row--highlight {
  background: rgba(var(--accent-rgb), 0.06);
}

.checkout-pending-table__row--highlight td,
.checkout-pending-table__row--highlight th {
  border-bottom-color: rgba(var(--accent-rgb), 0.15);
}

.checkout-pending-table--items thead th {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #9ca3af);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-pending-table--items tbody tr:last-child td {
  border-bottom: none;
}

.checkout-pending-table--summary th[scope="row"] {
  width: 42%;
}

.checkout-pending-table--summary tbody tr:last-child th,
.checkout-pending-table--summary tbody tr:last-child td {
  border-bottom: none;
}

.checkout-pending-product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.checkout-pending-product__img {
  flex-shrink: 0;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-pending-product__name {
  font-weight: 500;
  color: var(--text-primary, #fff);
  line-height: 1.45;
}

.checkout-pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
}

.checkout-pending-badge--success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.checkout-pending-badge--muted {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-pending-summary {
  padding: 1.5rem !important;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.checkout-pending-summary__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1.15rem;
  color: var(--text-primary, #fff);
}

.checkout-pending-summary .checkout-pending-table-wrap {
  padding: 0 0 1rem;
}

.checkout-pending-summary__total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.15rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 5px;
  text-align: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12) 0%, rgba(var(--accent-rgb), 0.04) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.checkout-pending-summary__total-label {
  font-size: 0.82rem;
  color: var(--text-secondary, #9ca3af);
  letter-spacing: 0.03em;
}

.checkout-pending-summary__total-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1.2;
}

.checkout-pending-timeline {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.checkout-pending-timeline__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  position: relative;
}

.checkout-pending-timeline__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 15px;
  top: calc(50% + 14px);
  width: 2px;
  height: calc(100% - 8px);
  background: rgba(255, 255, 255, 0.08);
}

.checkout-pending-timeline__item--done:not(:last-child)::after {
  background: rgba(var(--accent-rgb), 0.25);
}

.checkout-pending-timeline__dot {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.72rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  z-index: 1;
}

.checkout-pending-timeline__item--done .checkout-pending-timeline__dot {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-color);
}

.checkout-pending-timeline__item--current .checkout-pending-timeline__dot {
  border-color: rgba(255, 193, 7, 0.6);
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  animation: checkout-pending-pulse 2s ease-in-out infinite;
}

.checkout-pending-timeline__item--pending .checkout-pending-timeline__dot {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.checkout-pending-timeline__text {
  font-size: 0.9rem;
  color: var(--text-secondary, #9ca3af);
}

.checkout-pending-timeline__item--done .checkout-pending-timeline__text,
.checkout-pending-timeline__item--current .checkout-pending-timeline__text {
  color: var(--text-primary, #fff);
  font-weight: 500;
}

.checkout-pending-summary__actions {
  margin-bottom: 1rem;
}

.checkout-pending-summary__hint {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-secondary, #9ca3af);
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 767.98px) {
  .checkout-pending-table th[scope="row"] {
    width: auto;
    display: block;
    padding-bottom: 0.35rem;
    border-bottom: none;
  }

  .checkout-pending-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 1rem;
  }

  .checkout-pending-table tbody tr {
    display: block;
    padding: 0.5rem 0;
  }

  .checkout-pending-table--items thead {
    display: none;
  }

  .checkout-pending-summary {
    position: static !important;
  }
}

/* Payment Methods */
.payment-method-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.payment-method-option:hover {
  border-color: var(--accent-color);
}

.payment-method-option.selected {
  border-color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.1);
}

.payment-method-option input[type="radio"] {
  display: none;
}

.payment-method-option .radio-custom {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.payment-method-option.selected .radio-custom {
  border-color: var(--accent-color);
}

.payment-method-option.selected .radio-custom::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
}

.payment-method-option .payment-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* Special Offers Banner */
.offers-banner {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.offers-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.offers-banner .offer-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.offers-banner .offer-text {
  color: rgba(255,255,255,0.9);
}

.offers-banner .offer-timer {
  display: flex;
  gap: 15px;
}

.offer-timer-item {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 10px 15px;
  text-align: center;
  min-width: 70px;
}

.offer-timer-item .number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.offer-timer-item .label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}

/* ===========================
   Quick View Modal Styles
   =========================== */
.quick-view-modal .modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  color: var(--text-primary);
}

html[data-theme="dark"] .quick-view-modal .modal-content {
  background: rgba(12, 12, 12, 0.98);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
}

.quick-view-modal .qv-heading {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .quick-view-modal .qv-heading,
html[data-theme="dark"] .quick-view-modal #qv-title {
  color: rgba(255, 255, 255, 0.95) !important;
}

.quick-view-modal .qv-muted {
  color: var(--text-secondary) !important;
}

.quick-view-modal .qv-divider {
  border: 0;
  border-top: 1px solid var(--glass-border);
  opacity: 1;
}

.quick-view-modal__row {
  align-items: stretch;
  --bs-gutter-x: 0;
}

.quick-view-gallery-col,
.quick-view-details-col {
  min-width: 0;
}

.quick-view-gallery-col {
  display: flex;
  flex: 0 0 auto;
  overflow: hidden;
}

.quick-view-details-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.quick-view-gallery-pane {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: rgba(var(--accent-rgb), 0.06);
  overflow: hidden;
  isolation: isolate;
}

html[data-theme="dark"] .quick-view-gallery-pane {
  background: rgba(255, 255, 255, 0.03);
}

.quick-view-gallery-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
  contain: layout paint;
}

.quick-view-details {
  width: 100%;
  min-height: 100%;
}

.quick-view-thumbs-wrap {
  flex-shrink: 0;
  padding: 0.75rem 1rem 1rem;
}

.quick-view-modal .qv-placeholder-icon {
  color: var(--text-secondary);
}

.quick-view-modal .modal-dialog {
  max-width: 960px;
  max-height: calc(100vh - 2.5rem);
  margin: 1.25rem auto;
}

.quick-view-modal .modal-content,
.quick-view-modal .modal-body {
  max-height: calc(100vh - 2.5rem);
}

.quick-view-modal .modal-body {
  padding: 0;
  overflow-y: auto;
}

.quick-view-modal .btn-close {
  filter: none;
  opacity: 0.65;
  z-index: 10;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .quick-view-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.85;
}

.quick-view-modal .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.quick-view-gallery {
  position: relative;
  min-height: 0;
}

.quick-view-main-image {
  position: relative;
}

.quick-view-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.qv-thumb {
  width: 65px;
  height: 65px;
  border-radius: 5px;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.qv-thumb:hover,
.qv-thumb.active {
  border-color: var(--accent-color);
  opacity: 1;
  transform: scale(1.05);
}

.qv-thumb i {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

/* Quick View Product Info */
.quick-view-modal .product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-view-modal .product-rating .stars {
  color: #f59e0b;
  font-size: 0.9rem;
}

.quick-view-modal .product-rating .count {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.quick-view-modal .color-options {
  display: flex;
  gap: 12px;
}

.quick-view-modal .color-option {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.quick-view-modal .color-option:hover,
.quick-view-modal .color-option.active {
  border-color: var(--accent-color);
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3);
}

.quick-view-modal .color-option.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.7rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.quick-view-modal .qty-stepper {
  border-color: rgba(var(--accent-rgb), 0.32);
}

html[data-theme="light"] .quick-view-modal .qty-stepper {
  background: #f8fbfc;
  box-shadow:
    0 6px 18px rgba(var(--accent-rgb), 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .quick-view-modal .qty-stepper {
  background: rgba(12, 12, 12, 0.65);
}

.quick-view-modal .glass-panel,
.quick-view-modal .qv-feature-tile {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  backdrop-filter: none;
}

html[data-theme="dark"] .quick-view-modal .qv-feature-tile,
html[data-theme="dark"] .quick-view-modal .glass-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-view-modal .rounded-3,
.quick-view-modal .rounded-4 {
  border-radius: 5px !important;
}

.quick-view-modal #qv-wishlist {
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.quick-view-modal #qv-wishlist:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.quick-view-modal .glass-panel i {
  font-size: 1.2rem;
}

.quick-view-modal .glass-panel small {
  font-size: 0.7rem;
}

/* Home catalog swipers (products + blog) */
.home-catalog-swiper {
  padding-bottom: 4.25rem !important;
}

.home-catalog-swiper .swiper-slide {
  height: auto;
}

.home-catalog-pagination.swiper-pagination {
  bottom: 0.35rem !important;
}

.home-catalog-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  opacity: 0.3;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.home-catalog-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  width: 28px;
  border-radius: 5px;
}

.home-catalog-next,
.home-catalog-prev,
.products-next,
.products-prev,
.blog-next,
.blog-prev {
  color: var(--accent-color) !important;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 42px !important;
  height: 42px !important;
  border-radius: 5px;
  border: 1px solid var(--glass-border);
  top: 42% !important;
  margin-top: 0 !important;
  transform: translateY(-50%);
}

.home-catalog-next::after,
.home-catalog-prev::after,
.products-next::after,
.products-prev::after,
.blog-next::after,
.blog-prev::after {
  font-size: 14px !important;
  font-weight: 700;
}

.home-catalog-next:hover,
.home-catalog-prev:hover,
.products-next:hover,
.products-prev:hover,
.blog-next:hover,
.blog-prev:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff !important;
}

html[dir="rtl"] .home-catalog-next,
html[dir="rtl"] .products-next,
html[dir="rtl"] .blog-next {
  left: 0.35rem !important;
  right: auto !important;
}

html[dir="rtl"] .home-catalog-prev,
html[dir="rtl"] .products-prev,
html[dir="rtl"] .blog-prev {
  right: 0.35rem !important;
  left: auto !important;
}

html:not([dir="rtl"]) .home-catalog-next,
html:not([dir="rtl"]) .products-next,
html:not([dir="rtl"]) .blog-next {
  right: 0.35rem !important;
  left: auto !important;
}

html:not([dir="rtl"]) .home-catalog-prev,
html:not([dir="rtl"]) .products-prev,
html:not([dir="rtl"]) .blog-prev {
  left: 0.35rem !important;
  right: auto !important;
}

@media (max-width: 768px) {
  .home-catalog-next,
  .home-catalog-prev,
  .products-next,
  .products-prev,
  .blog-next,
  .blog-prev {
    display: none;
  }
  
  .quick-view-modal .modal-dialog {
    max-width: 95%;
  }
  
}

/* ===========================
   Product Image Gallery Swiper
   =========================== */
.product-thumbs-swiper .swiper-slide {
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border: 2px solid transparent;
}

.product-thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--accent-color);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.28);
}

.product-page__media .product-img-next,
.product-page__media .product-img-prev,
.product-img-next,
.product-img-prev {
  color: var(--accent-color) !important;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 42px !important;
  height: 42px !important;
  border-radius: 5px;
  border: 1px solid var(--glass-border);
}

.product-page__media .product-img-next::after,
.product-page__media .product-img-prev::after,
.product-img-next::after,
.product-img-prev::after {
  font-size: 14px !important;
  font-weight: 700;
}

.product-page__media .product-img-next:hover,
.product-page__media .product-img-prev:hover,
.product-img-next:hover,
.product-img-prev:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff !important;
}

/* Quick View Swiper — contained inside .quick-view-gallery-media only */
.quick-view-gallery-media .quick-view-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
}

.quick-view-swiper .swiper-wrapper {
  height: 100%;
}

.quick-view-swiper .swiper-slide {
  width: 100% !important;
  height: 100%;
  overflow: hidden;
}

.quick-view-swiper .qv-slide-frame {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: rgba(var(--accent-rgb), 0.08);
}

.quick-view-swiper .qv-slide-frame--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-view-swiper .qv-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.quick-view-swiper .product-badge {
  z-index: 2;
}

.quick-view-gallery-media .quick-view-swiper.qv-static-gallery {
  position: absolute;
  inset: 0;
}

.quick-view-swiper.qv-static-gallery .swiper-wrapper {
  transform: none !important;
  height: 100%;
}

.quick-view-swiper.qv-static-gallery .qv-static-image {
  width: 100%;
  height: 100%;
}

.quick-view-swiper.qv-static-gallery .qv-slide-frame {
  max-width: none;
  margin: 0;
}

.quick-view-thumbs-swiper {
  border-radius: 5px;
}

.quick-view-thumbs-swiper .swiper-slide {
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  opacity: 0.5;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.quick-view-thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3);
}

.quick-view-thumbs-swiper .qv-thumb {
  width: 100%;
  height: 56px;
  border-radius: 5px;
  overflow: hidden;
}

.quick-view-gallery-media .qv-img-next,
.quick-view-gallery-media .qv-img-prev {
  color: #fff !important;
  background: rgba(var(--accent-rgb), 0.7);
  backdrop-filter: blur(10px);
  width: 38px !important;
  height: 38px !important;
  border-radius: 50%;
  z-index: 3;
}

.qv-img-next::after,
.qv-img-prev::after {
  font-size: 12px !important;
  font-weight: 700;
}

.qv-img-next:hover,
.qv-img-prev:hover {
  background: var(--accent-color);
}

@media (min-width: 992px) {
  .quick-view-modal__row > .quick-view-gallery-col,
  .quick-view-modal__row > .quick-view-details-col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .quick-view-gallery-col {
    position: sticky;
    top: 0;
    align-self: flex-start;
  }
}

@media (max-width: 575px) {
  .product-page__highlights {
    grid-template-columns: 1fr;
  }

  .product-page__actions {
    flex-direction: column;
  }

  .product-page__wishlist-wrap {
    align-self: flex-end;
  }

  .quick-view-thumbs-wrap {
    padding: 0.5rem 0.75rem 0.75rem;
  }
}

/* ===========================
   Site Footer (Premium)
   =========================== */
.site-footer {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  color: var(--text-primary);
}

.site-footer--unified.site-footer--rich {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.04) 0%,
    rgba(var(--accent-rgb), 0.12) 55%,
    rgba(var(--accent-rgb), 0.18) 100%
  );
}

html[data-theme="dark"] .site-footer--unified.site-footer--rich {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    #000 100%
  );
}

.site-footer__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.site-footer__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
}

.site-footer__orb--1 {
  width: 380px;
  height: 380px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.38) 0%, transparent 68%);
  opacity: 0.45;
}

.site-footer__orb--2 {
  width: 300px;
  height: 300px;
  bottom: 20px;
  left: -80px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.25) 0%, transparent 68%);
  opacity: 0.35;
}

.site-footer__orb--3 {
  width: 220px;
  height: 220px;
  top: 45%;
  left: 42%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 70%);
  opacity: 0.3;
}

html[data-theme="dark"] .site-footer__orb--1,
html[data-theme="dark"] .site-footer__orb--2,
html[data-theme="dark"] .site-footer__orb--3 {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 68%);
  opacity: 0.22;
}

.site-footer__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.site-footer__square {
  position: absolute;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.05);
  transform: rotate(12deg);
}

.site-footer__square--1 {
  width: 52px;
  height: 52px;
  top: 18%;
  left: 8%;
  opacity: 0.5;
}

.site-footer__square--2 {
  width: 36px;
  height: 36px;
  bottom: 28%;
  right: 12%;
  opacity: 0.4;
  transform: rotate(-8deg);
}

.site-footer__square--3 {
  width: 28px;
  height: 28px;
  top: 32%;
  right: 28%;
  opacity: 0.35;
}

.site-footer__wrap {
  position: relative;
  z-index: 1;
}

.site-footer__panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 24px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow:
    0 28px 72px rgba(var(--accent-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .site-footer__panel {
  background: rgba(14, 14, 14, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-footer__subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12) 0%, rgba(var(--accent-rgb), 0.06) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.site-footer__subscribe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.35rem;
}

.site-footer__subscribe-copy p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.site-footer__subscribe-form {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: min(100%, 320px);
  max-width: 420px;
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.3rem 0.3rem 0.85rem;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.1);
}

html[data-theme="dark"] .site-footer__subscribe-form {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}

.site-footer__subscribe-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--text-primary);
  min-width: 0;
  padding: 0.55rem 0.35rem;
}

.site-footer__subscribe-input:focus {
  outline: none;
}

.site-footer__subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer__subscribe-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: #fff;
}

.site-footer__grid {
  margin-bottom: 1.75rem;
}

.footer-brand__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent-color), var(--accent-hover));
  border-radius: 14px;
  color: #fff;
  font-size: 1.25rem;
  margin-left: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.35);
}

.footer-brand__logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  margin-left: 0.85rem;
  flex-shrink: 0;
  border: 2px solid var(--accent-color);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.2);
}

.footer-brand__name {
  display: block;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  line-height: 1.2;
}

.footer-brand__tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: 0.2rem;
}

.footer-about {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary) !important;
  margin-bottom: 1.15rem;
}

.footer-stat-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.footer-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.55rem;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
}

.footer-stat-chip__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-color);
  font-size: 0.75rem;
}

.footer-stat-chip__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-stat-chip__body strong {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-color);
  line-height: 1.15;
}

.footer-stat-chip__body small {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.footer-social__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-social__link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.footer-social__link:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-social__link[data-social="twitter"]:hover { background: #000; }
.footer-social__link[data-social="facebook"]:hover { background: #1877f2; }
.footer-social__link[data-social="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.footer-social__link[data-social="linkedin"]:hover { background: #0a66c2; }
.footer-social__link[data-social="youtube"]:hover { background: #ff0000; }

.footer-heading {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a i {
  font-size: 0.5rem;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--accent-color);
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(-3px);
}

.footer-links a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

a.footer-contact-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateX(-3px);
}

.footer-contact-card--static {
  cursor: default;
}

.footer-contact-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.08));
  color: var(--accent-color);
  font-size: 0.9rem;
}

.footer-contact-card__body small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.1rem;
}

.footer-contact-card__body strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  word-break: break-word;
}

.footer-contact-fallback {
  padding: 1.15rem;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px dashed rgba(var(--accent-rgb), 0.25);
}

.footer-contact-fallback__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-contact-fallback__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--accent-color);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-contact-fallback__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: #fff !important;
}

.site-footer__trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  padding: 1.15rem 0 1.35rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
  margin-bottom: 1.25rem;
}

html[data-theme="dark"] .site-footer__trust-grid {
  border-color: rgba(255, 255, 255, 0.08);
}

.footer-trust-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.footer-trust-pill:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  transform: translateY(-2px);
}

.footer-trust-pill__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent-color), var(--accent-hover));
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.28);
}

.footer-trust-pill__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-trust-pill__text strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.footer-trust-pill__text small {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 0.25rem;
}

.footer-copyright {
  font-size: 0.84rem;
  color: var(--text-secondary) !important;
}

.footer-copyright strong {
  color: var(--text-primary);
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.footer-payment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.35rem;
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.footer-payment:hover {
  color: var(--accent-color);
  opacity: 1;
  transform: translateY(-1px);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent-color);
}

.footer-legal__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.45);
}

@media (max-width: 991px) {
  .site-footer__trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-stat-chips {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .site-footer__subscribe {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__subscribe-form {
    max-width: none;
  }
}

@media (max-width: 575px) {
  .site-footer__panel {
    padding: 1.35rem 1.15rem;
    border-radius: 18px;
  }

  .site-footer__trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-stat-chips {
    grid-template-columns: 1fr;
  }

  .site-footer__bar {
    flex-direction: column;
    text-align: center;
  }

  .footer-payments,
  .footer-legal {
    justify-content: center;
  }

  .site-footer__subscribe-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
    gap: 0.45rem;
  }

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

/* ===========================
   Testimonials cards
   =========================== */
.testimonials-section__title {
  color: var(--text-primary);
}

html[data-theme="dark"] .testimonials-section__title {
  color: #f5f5f5;
}

html[data-theme="dark"] .testimonials-section .text-secondary {
  color: rgba(255, 255, 255, 0.55) !important;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-top: 3px solid var(--accent-color);
  box-shadow:
    0 10px 32px rgba(var(--accent-rgb), 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow:
    0 18px 44px rgba(var(--accent-rgb), 0.14),
    0 4px 14px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .testimonial-card {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid rgba(var(--accent-rgb), 0.65);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="dark"] .testimonial-card:hover {
  background: rgba(26, 26, 26, 0.95);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.testimonial-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.testimonial-card__quote {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  font-size: 0.95rem;
}

.testimonial-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: #f59e0b;
  font-size: 0.9rem;
  line-height: 1;
}

.testimonial-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: #334155;
  text-align: start;
  flex-grow: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-color);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.28);
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: start;
  min-width: 0;
}

.testimonial-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

html[data-theme="dark"] .testimonial-card__quote {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--accent-lighter);
}

html[data-theme="dark"] .testimonial-card__text {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .testimonial-card__name {
  color: #f5f5f5;
}

html[data-theme="dark"] .testimonial-card__role {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .testimonial-card__stars .text-muted {
  color: rgba(255, 255, 255, 0.2) !important;
}

/* ===========================
   Brands marquee (homepage)
   =========================== */
.brands-marquee-section {
  overflow: hidden;
}

.brands-marquee {
  --marquee-duration: 42s;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  padding: 0.5rem 0 1.5rem;
}

.brands-marquee__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 1.25rem;
  animation: brandsMarqueeScroll var(--marquee-duration) linear infinite;
  will-change: transform;
}

.brands-marquee:hover .brands-marquee__track {
  animation-play-state: paused;
}

.brands-marquee__item {
  flex: 0 0 auto;
  width: 168px;
}

.brands-marquee__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: 100%;
  min-height: 130px;
  padding: 1.15rem 1rem;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px var(--glass-shadow);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.brands-marquee__item:hover .brands-marquee__card {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.2),
    0 0 24px rgba(var(--accent-rgb), 0.12);
}

html[data-theme="dark"] .brands-marquee__card {
  background: rgba(17, 17, 17, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .brands-marquee__item:hover .brands-marquee__card {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(var(--accent-rgb), 0.15);
}

.brands-marquee__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
}

.brands-marquee__logo {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.92;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.brands-marquee__item:hover .brands-marquee__logo {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

.brands-marquee__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.brands-marquee__item:hover .brands-marquee__name {
  color: var(--accent-color);
}

html[data-theme="dark"] .brands-marquee__name {
  color: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .brands-marquee__item:hover .brands-marquee__name {
  color: var(--accent-lighter);
}

@keyframes brandsMarqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .brands-marquee__item[aria-hidden='true'] {
    display: none;
  }
}

/* ===========================
   Homepage Newsletter Block — luxury
   =========================== */
.newsletter-block__card {
  position: relative;
  border-radius: 28px;
  padding: clamp(2rem, 4.5vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(var(--accent-rgb), 0.06) 48%, rgba(255, 255, 255, 0.88) 100%);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  box-shadow:
    0 32px 80px rgba(var(--accent-rgb), 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    inset 0 -1px 0 rgba(var(--accent-rgb), 0.08);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.newsletter-block__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.65) 0%,
    rgba(255, 255, 255, 0.2) 42%,
    rgba(var(--accent-rgb), 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  opacity: 0.85;
}

html[data-theme="dark"] .newsletter-block__card {
  background:
    linear-gradient(155deg, rgba(18, 18, 18, 0.96) 0%, rgba(var(--accent-rgb), 0.14) 45%, rgba(8, 8, 8, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    inset 0 -24px 48px rgba(0, 0, 0, 0.35);
}

.newsletter-block__card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 40px 96px rgba(var(--accent-rgb), 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.newsletter-block__card:hover .elegant-card__shine {
  left: 130%;
}

.newsletter-block__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.newsletter-block__grid {
  position: absolute;
  inset: -2%;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.1) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 80% at 18% 50%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 18% 50%, #000 15%, transparent 70%);
  opacity: 0.5;
}

html[data-theme="dark"] .newsletter-block__grid {
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.18) 1px, transparent 1px);
  opacity: 0.35;
}

.newsletter-block__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.newsletter-block__glow--1 {
  width: 340px;
  height: 340px;
  top: -140px;
  left: -100px;
  background: rgba(var(--accent-rgb), 0.22);
}

.newsletter-block__glow--2 {
  width: 280px;
  height: 280px;
  bottom: -120px;
  right: -60px;
  background: rgba(var(--accent-rgb), 0.16);
}

html[data-theme="dark"] .newsletter-block__glow--1 {
  background: rgba(var(--accent-rgb), 0.28);
  opacity: 0.7;
}

html[data-theme="dark"] .newsletter-block__glow--2 {
  background: rgba(var(--accent-rgb), 0.2);
  opacity: 0.55;
}

.newsletter-block__square {
  position: absolute;
  display: block;
  border-radius: 7px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.4);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.45), rgba(var(--accent-rgb), 0.18));
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.15);
  animation: newsletterSquareFloat 14s ease-in-out infinite;
}

.newsletter-block__square--1 { width: 22px; height: 22px; top: 14%; left: 8%;  --nl-rotate: 14deg;  animation-delay: 0s; }
.newsletter-block__square--2 { width: 16px; height: 16px; top: 68%; left: 14%; --nl-rotate: -20deg; animation-delay: -3s; }
.newsletter-block__square--3 { width: 28px; height: 28px; bottom: 18%; left: 4%; --nl-rotate: 8deg;  animation-delay: -6s; }
.newsletter-block__square--4 { width: 14px; height: 14px; top: 38%; left: 22%; --nl-rotate: -12deg; animation-delay: -2s; }

@keyframes newsletterSquareFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--nl-rotate, 0deg)); }
  50% { transform: translate3d(0, -10px, 0) rotate(calc(var(--nl-rotate, 0deg) + 10deg)); }
}

.newsletter-block__row {
  position: relative;
  z-index: 2;
}

.newsletter-block__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.12);
}

.newsletter-block__badge i {
  font-size: 0.75rem;
  opacity: 0.9;
}

.newsletter-block__title {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.newsletter-block__title-accent {
  display: block;
  margin-top: 0.15em;
  background: linear-gradient(
    120deg,
    var(--accent-hover) 0%,
    var(--accent-color) 50%,
    var(--accent-light) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.newsletter-block__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 34rem;
}

.newsletter-block__copy {
  margin-inline: auto;
}

@media (min-width: 992px) {
  .newsletter-block__desc {
    margin-inline-start: 0;
    margin-inline-end: auto;
  }
}

.newsletter-block__perks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: start;
  max-width: 22rem;
  margin-inline: auto;
}

@media (min-width: 992px) {
  .newsletter-block__perks {
    margin-inline: 0;
  }
}

.newsletter-block__perks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.newsletter-block__perk-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.newsletter-block__form-panel {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  box-shadow:
    0 20px 48px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html[data-theme="dark"] .newsletter-block__form-panel {
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.newsletter-block__icon-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.2);
}

.newsletter-block__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent-hover), var(--accent-color));
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.4);
}

.newsletter-block__form-lead {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.newsletter-block__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.newsletter-block__field {
  position: relative;
}

.newsletter-block__field-icon {
  position: absolute;
  top: 50%;
  inset-inline-end: 1.1rem;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 0.95rem;
  opacity: 0.75;
  pointer-events: none;
}

.newsletter-block__input {
  width: 100%;
  min-width: 0;
  border: 1.5px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 14px;
  padding: 0.95rem 2.75rem 0.95rem 1.25rem;
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

html[data-theme="dark"] .newsletter-block__input {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f5f5f5;
}

.newsletter-block__input::placeholder {
  color: var(--text-secondary);
  opacity: 0.85;
}

.newsletter-block__input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.18),
    0 8px 24px rgba(var(--accent-rgb), 0.12);
}

html[data-theme="dark"] .newsletter-block__input:focus {
  background: rgba(0, 0, 0, 0.65);
}

.newsletter-block__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border-radius: 14px !important;
  padding: 0.95rem 1.5rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.35) !important;
}

.newsletter-block__btn i {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.newsletter-block__btn:hover i {
  transform: translateX(-4px);
}

.newsletter-block__hint {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}

.newsletter-block__hint i {
  color: var(--accent-color);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-block__square {
    animation: none;
  }

  .newsletter-block__card:hover {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .newsletter-block__square--3,
  .newsletter-block__square--4 {
    display: none;
  }
}

/* ===========================
   Shop filters sidebar
   =========================== */
.shop-filters {
  top: calc(var(--site-header-offset, 88px) + 0.75rem);
  z-index: 10;
}

.shop-filters__card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(var(--accent-rgb), 0.04) 100%);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 20px;
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow:
    0 20px 52px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .shop-filters__card {
  background: linear-gradient(165deg, rgba(18, 18, 18, 0.96) 0%, rgba(var(--accent-rgb), 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.shop-filters__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
}

html[data-theme="dark"] .shop-filters__header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.shop-filters__title {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.shop-filters__title-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent-color), var(--accent-hover));
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.35);
}

.shop-filters__heading {
  margin: 0;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.shop-filters__tagline {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.shop-filters__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.06);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.shop-filters__reset:hover {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-hover);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.shop-filters__active {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}

.shop-filters__active-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.shop-filters__active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.shop-filters__active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

html[data-theme="dark"] .shop-filters__active-chip {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
}

.shop-filters__active-chip i {
  color: var(--accent-color);
  font-size: 0.65rem;
}

.shop-filters__section {
  margin-bottom: 1.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

.shop-filters__section:last-of-type {
  margin-bottom: 1.15rem;
  padding-bottom: 0;
  border-bottom: none;
}

.shop-filters__section-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.shop-filters__section-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.shop-filters__section-title {
  margin: 0;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.shop-filters__search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.22);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="dark"] .shop-filters__search {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.shop-filters__search:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.shop-filters__search-icon {
  color: var(--accent-color);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.shop-filters__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.15rem 0;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
}

html[data-theme="dark"] .shop-filters__input {
  color: #f5f5f5;
}

.shop-filters__input::placeholder {
  color: var(--text-secondary);
  opacity: 0.85;
}

.shop-filters__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.35) transparent;
}

.shop-filters__chips--brands {
  max-height: 160px;
}

.shop-filters__chips::-webkit-scrollbar {
  width: 4px;
}

.shop-filters__chips::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.35);
  border-radius: 99px;
}

.shop-filters__chip {
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.shop-filters__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.shop-filters__chip-text {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(var(--accent-rgb), 0.06);
  border: 1.5px solid rgba(var(--accent-rgb), 0.16);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shop-filters__chip:hover .shop-filters__chip-text {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
}

.shop-filters__chip:has(.shop-filters__radio:checked) .shop-filters__chip-text {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.32);
}

.shop-filters__radio:focus-visible + .shop-filters__chip-text {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.shop-filters__price-panel {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
}

.shop-filters__price-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.shop-filters__price-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
}

.shop-filters__price-badge--max {
  color: var(--accent-color);
  font-weight: 700;
}

.shop-filters__price-badge--max strong {
  font-weight: 800;
}

html[data-theme="dark"] .shop-filters__price-badge {
  background: rgba(0, 0, 0, 0.35);
}

.shop-filters__range-wrap {
  position: relative;
  padding: 0.35rem 0.1rem 0;
}

.shop-filters__range-track {
  position: absolute;
  left: 0.1rem;
  right: 0.1rem;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 99px;
  background: rgba(var(--accent-rgb), 0.15);
  pointer-events: none;
  overflow: hidden;
}

.shop-filters__range-fill {
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-hover), var(--accent-color));
  transition: width 0.15s ease;
}

.shop-filters__range {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 24px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
}

.shop-filters__range::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.shop-filters__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.45);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.shop-filters__range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.shop-filters__range::-moz-range-track {
  height: 6px;
  background: transparent;
}

.shop-filters__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.45);
  cursor: pointer;
}

html[data-theme="dark"] .shop-filters__range::-webkit-slider-thumb,
html[data-theme="dark"] .shop-filters__range::-moz-range-thumb {
  border-color: #1a1a1a;
}

.shop-filters__submit {
  border-radius: 14px !important;
  padding: 0.85rem 1rem !important;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.32);
}

@media (max-width: 991.98px) {
  .shop-filters {
    position: static !important;
    top: auto;
  }

  .shop-filters__card {
    margin-bottom: 0.75rem;
  }

  .shop-filters__chips {
    max-height: none;
  }
}

/* ===========================
   Account dashboard
   =========================== */
.account-sidebar {
  top: calc(var(--site-header-offset, 88px) + 0.75rem);
}

.account-sidebar__card {
  padding: 0;
  overflow: hidden;
}

.account-sidebar__profile {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 0;
  padding: 1.35rem 1.25rem 1.15rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
}

html[data-theme="dark"] .account-sidebar__profile {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.account-sidebar__title {
  align-items: flex-start;
  width: 100%;
}

.account-sidebar__avatar {
  width: 52px;
  height: 52px;
  border-radius: 5px;
  font-size: 1.05rem;
  font-weight: 800;
  flex-shrink: 0;
}

.account-sidebar__avatar--img {
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.35);
}

/* Profile form */
.account-profile-card {
  padding: 0;
  overflow: hidden;
}

.account-profile-card__header {
  padding: 1.35rem 1.5rem 0;
}

.account-profile-card__subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.account-profile-form__hero {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  margin: 1.25rem 1.5rem 0;
  padding: 1.35rem 1.25rem;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0.03) 55%, rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
}

html[data-theme="dark"] .account-profile-form__hero {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.18) 0%, rgba(var(--accent-rgb), 0.06) 55%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.account-profile-form__avatar-block {
  position: relative;
  flex-shrink: 0;
}

.account-profile-form__avatar-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.account-profile-form__avatar {
  width: 112px;
  height: 112px;
  margin: 4px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.22),
    0 12px 28px rgba(var(--accent-rgb), 0.18);
}

.account-profile-form__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-profile-form__avatar-initials {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: 0.02em;
}

.account-profile-form__avatar-btn {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .account-profile-form__avatar-btn {
  border-color: rgba(24, 24, 24, 0.95);
}

.account-profile-form__avatar-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.45);
}

.account-profile-form__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.account-profile-form__hero-meta {
  flex: 1;
  min-width: 200px;
}

.account-profile-form__hero-name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.account-profile-form__hero-email {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.account-profile-form__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.account-profile-form__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-color);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}

.account-profile-form__file-name {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.account-profile-form__divider {
  height: 1px;
  margin: 1.35rem 1.5rem 0;
  background: linear-gradient(
    to left,
    transparent,
    rgba(var(--accent-rgb), 0.22) 20%,
    rgba(var(--accent-rgb), 0.22) 80%,
    transparent
  );
}

.account-profile-form__section {
  padding: 1.35rem 1.5rem 0;
}

.account-profile-form__section-title {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.account-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.account-field {
  position: relative;
}

.account-field__icon {
  position: absolute;
  inset-inline-start: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  text-align: center;
  color: var(--accent-color);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.account-field__input {
  width: 100%;
  padding: 0.72rem 0.95rem 0.72rem 2.65rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

html[dir="rtl"] .account-field__input {
  padding: 0.72rem 2.65rem 0.72rem 0.95rem;
}

html[data-theme="dark"] .account-field__input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.account-field__input::placeholder {
  color: var(--text-secondary);
  opacity: 0.65;
}

.account-field__input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .account-field__input:focus {
  background: rgba(255, 255, 255, 0.06);
}

.account-field__input.is-invalid {
  border-color: rgba(220, 53, 69, 0.55);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.account-profile-form__error {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #dc3545;
}

.account-profile-form__actions {
  display: flex;
  justify-content: flex-end;
  padding: 1.35rem 1.5rem 1.5rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
  background: rgba(var(--accent-rgb), 0.03);
}

html[data-theme="dark"] .account-profile-form__actions {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: rgba(255, 255, 255, 0.06);
}

.account-profile-form__submit {
  min-width: 180px;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-profile-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.34);
}

@media (max-width: 575.98px) {
  .account-profile-form__hero {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }

  .account-profile-form__tags {
    justify-content: center;
  }

  .account-profile-form__actions {
    justify-content: stretch;
  }

  .account-profile-form__submit {
    width: 100%;
    min-width: 0;
  }
}

/* Account addresses panel & modal */
.account-addresses-panel {
  padding: 1.75rem 2rem 2rem;
  margin: 0.5rem;
}

.account-addresses-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

html[data-theme="dark"] .account-addresses-panel__header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.account-addresses-panel__subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.account-addresses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0.5rem 0.25rem 0.25rem;
}

.account-address-card {
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .account-address-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.account-address-card:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.08);
}

.account-address-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

html[data-theme="dark"] .account-address-card__head {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.account-address-card__identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.account-address-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  flex-shrink: 0;
}

.account-address-card__name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  word-break: break-word;
}

.account-address-card__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.account-address-card__action {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

html[data-theme="dark"] .account-address-card__action {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.account-address-card__action:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--accent-color);
}

.account-address-card__action--danger:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.25);
  color: #dc3545;
}

.account-address-card__line {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.account-address-card__line--muted {
  color: var(--text-secondary);
}

.account-address-card__meta--city {
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.account-address-card__meta {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.account-address-card__meta i {
  color: var(--accent-color);
  width: 1rem;
  text-align: center;
}

.account-addresses-empty {
  text-align: center;
  padding: 2.5rem 1.75rem;
  margin: 0.25rem 0.15rem;
  border-radius: 12px;
  border: 1px dashed rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.03);
}

.account-addresses-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  font-size: 1.5rem;
}

.account-addresses-empty__title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.account-addresses-empty__text {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.account-address-modal.quick-view-modal .modal-body.account-address-modal__body {
  padding: 1rem 1.75rem 1.5rem;
  overflow-y: auto;
}

.account-address-modal.quick-view-modal .modal-header.account-address-modal__header {
  padding: 1.35rem 1.75rem 0.85rem;
}

.account-address-modal.quick-view-modal .modal-footer.account-address-modal__footer {
  padding: 1.15rem 1.75rem 1.5rem;
}

.account-address-modal .modal-content {
  border-radius: 14px;
  overflow: hidden;
}

.account-address-modal__header {
  padding: 1.35rem 1.75rem 0.85rem;
  border-bottom: 0;
}

.account-address-modal__title {
  margin: 0;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary) !important;
}

.account-address-modal__title i {
  color: var(--accent-color);
}

.account-address-modal__body {
  padding: 0.5rem 1.75rem 1.5rem;
}

.account-address-form {
  padding: 0.25rem 0.15rem;
}

.account-address-modal__footer {
  padding: 1.15rem 1.75rem 1.5rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
  background: rgba(var(--accent-rgb), 0.03);
  gap: 0.65rem;
}

html[data-theme="dark"] .account-address-modal__footer {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: rgba(255, 255, 255, 0.06);
}

.account-address-form .account-field__input {
  padding-right: 0.95rem;
}

html[dir="rtl"] .account-address-form .account-field__input {
  padding-left: 0.95rem;
}

.account-address-phone-wrap {
  width: 100%;
}

.account-address-phone-wrap.is-invalid .iti {
  border-color: #dc3545;
}

.account-address-form .iti {
  width: 100%;
  display: block;
}

.account-address-form .iti__country-container {
  border-radius: 10px 0 0 10px;
}

.account-address-form .iti__selected-country {
  border-radius: 10px 0 0 10px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-left: none;
  padding: 0 0.5rem;
}

html[data-theme="dark"] .account-address-form .iti__selected-country {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.account-address-form .iti__selected-dial-code {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

.account-address-form .iti .account-address-phone-input,
.account-address-form .iti input.account-address-phone-input {
  width: 100%;
  padding-right: 0.95rem;
  padding-left: 6.5rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-primary);
  min-height: calc(1.5em + 1.44rem + 2px);
  font-size: 0.92rem;
}

html[data-theme="dark"] .account-address-form .iti .account-address-phone-input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.account-address-form .iti .account-address-phone-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

[dir="rtl"] .account-address-form .iti .account-address-phone-input {
  padding-right: 6.5rem;
  padding-left: 0.95rem;
}

@media (max-width: 767.98px) {
  .account-addresses-grid {
    grid-template-columns: 1fr;
  }

  .account-address-modal__footer {
    flex-direction: column-reverse;
  }

  .account-address-modal__footer .btn {
    width: 100%;
  }
}

.account-sidebar__identity {
  min-width: 0;
  flex: 1;
}

.account-sidebar__name {
  font-size: 1.05rem;
  line-height: 1.35;
  word-break: break-word;
}

.account-sidebar__email {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.account-sidebar__tier {
  align-self: flex-start;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
}

.account-sidebar__section {
  padding: 0 1rem 0.25rem;
  margin-bottom: 0;
}

.account-sidebar__list {
  max-height: none;
  padding: 0;
  margin: 0;
}

.account-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  margin: 0;
  border-radius: 5px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.account-sidebar__link:hover {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.12);
  color: inherit;
}

.account-sidebar__link.active {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.account-sidebar__indicator {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.45);
  background: transparent;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.account-sidebar__link.active .account-sidebar__indicator {
  border-color: var(--accent-color);
  background: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.account-sidebar__link.active .account-sidebar__indicator::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

.account-sidebar__icon {
  width: 1.1rem;
  text-align: center;
  color: var(--accent-color);
  font-size: 0.88rem;
  flex-shrink: 0;
}

.account-sidebar__link .shop-filters__option-text {
  flex: 1;
  font-weight: 600;
}

.account-sidebar__badge {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 0.2rem 0.45rem;
  margin-inline-start: auto;
}

.account-sidebar__footer {
  padding: 0.85rem 1rem 1.25rem;
  margin-bottom: 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

html[data-theme="dark"] .account-sidebar__footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.account-sidebar__footer-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.account-sidebar__footer-link:hover {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.12);
  color: var(--text-primary);
}

.account-sidebar__footer-link--danger {
  color: #dc3545;
}

.account-sidebar__footer-link--danger:hover {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.account-sidebar__logout-form {
  margin: 0;
}

/* Main panels & stats */
.account-dashboard__main .glass-card,
.account-dashboard__main .glass-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 5px;
  box-shadow:
    0 16px 48px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] .account-dashboard__main .glass-card,
html[data-theme="dark"] .account-dashboard__main .glass-panel {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.account-dashboard__main .glass-card:not(.product-card):hover {
  transform: none;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(var(--accent-rgb), 0.28);
}

html[data-theme="dark"] .account-dashboard__main .glass-card:not(.product-card):hover {
  background: rgba(24, 24, 24, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
}

.account-dashboard__main a.glass-card:not(.product-card):hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 14px 36px rgba(var(--accent-rgb), 0.12);
}

.account-dashboard .text-white,
.account-dashboard h3.text-white,
.account-dashboard h5.text-white,
.account-dashboard h6.text-white,
.account-dashboard td.text-white,
.account-dashboard p.text-white {
  color: var(--text-primary) !important;
}

.account-dashboard .text-secondary {
  color: var(--text-secondary) !important;
}

.account-stat {
  text-align: center;
  padding: 1.1rem 0.85rem;
  height: 100%;
}

.account-stat__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  font-size: 1.15rem;
}

.account-stat__icon--success {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
}

.account-stat__icon--warning {
  background: rgba(255, 193, 7, 0.15);
  color: #d4a106;
}

.account-stat__icon--info {
  background: rgba(13, 202, 240, 0.12);
  color: #0aa2c0;
}

.account-stat__value {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.account-stat__label {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.account-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.account-panel__title {
  margin: 0;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.account-panel__title i {
  color: var(--accent-color);
}

.account-dashboard__main .table {
  --bs-table-color: var(--text-secondary);
  --bs-table-bg: transparent;
}

.account-dashboard__main .table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom-color: rgba(var(--accent-rgb), 0.14) !important;
}

.account-dashboard__main .table tbody td {
  vertical-align: middle;
  border-bottom-color: rgba(var(--accent-rgb), 0.08) !important;
}

/* Account order detail + shared themed tables (light/dark) */
.account-order-page {
  color: var(--text-primary);
}

.account-order-card {
  border-radius: 5px;
}

.account-order-muted {
  color: var(--text-secondary) !important;
}

.account-order-value {
  color: var(--text-primary);
}

.account-order-total-label {
  font-weight: 700;
  color: var(--text-primary);
}

.account-order-total-value {
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--accent-color);
}

.account-order-divider {
  border: 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.14);
  opacity: 1;
  margin: 1rem 0;
}

.account-order-payment {
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

.account-order-input {
  color: var(--text-primary) !important;
}

.account-order-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.85;
}

.account-panel__title--sm {
  font-size: 0.98rem;
}

.account-order-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.account-order-product__img {
  flex-shrink: 0;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.account-order-product__name {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.45;
}

.account-themed-table-wrap {
  margin-top: 0.25rem;
}

.account-themed-table,
.account-order-page .table,
.checkout-order-page .table {
  --bs-table-color: var(--text-primary);
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(var(--accent-rgb), 0.05);
  --bs-table-border-color: rgba(var(--accent-rgb), 0.1);
  --bs-table-striped-bg: transparent;
  margin-bottom: 0;
}

.account-themed-table > :not(caption) > * > *,
.account-order-page .table > :not(caption) > * > *,
.checkout-order-page .table > :not(caption) > * > * {
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--text-primary);
}

.account-themed-table thead th,
.account-order-page .table thead th,
.checkout-order-page .table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.14) !important;
  padding: 0.75rem 1rem;
  background: transparent !important;
}

.account-themed-table tbody td,
.account-order-page .table tbody td,
.checkout-order-page .table tbody td {
  vertical-align: middle;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08) !important;
  color: var(--text-primary) !important;
}

.account-themed-table tbody tr:last-child td,
.account-order-page .table tbody tr:last-child td,
.checkout-order-page .table tbody tr:last-child td {
  border-bottom: none !important;
}

.account-themed-table tbody tr:hover td,
.account-order-page .table tbody tr:hover td,
.checkout-order-page .table tbody tr:hover td {
  background: rgba(var(--accent-rgb), 0.04) !important;
}

html[data-theme="dark"] .account-themed-table,
html[data-theme="dark"] .account-order-page .table,
html[data-theme="dark"] .checkout-order-page .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
}

html[data-theme="light"] .account-themed-table,
html[data-theme="light"] .account-order-page .table,
html[data-theme="light"] .checkout-order-page .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
}

@media (max-width: 767.98px) {
  .account-order-summary {
    position: static !important;
  }
}

.account-dashboard__main .form-select.bg-glass,
.account-dashboard__main .form-control.bg-glass {
  border-radius: 5px;
  border-color: rgba(var(--accent-rgb), 0.22);
  color: var(--text-primary);
}

.account-order-highlight {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 5px;
}

.account-quick-link {
  display: block;
  height: 100%;
  padding: 1.35rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.account-quick-link:hover {
  color: inherit;
}

.account-quick-link__icon {
  display: block;
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
  color: var(--accent-color);
}

.account-quick-link__icon--warning {
  color: #d4a106;
}

.account-quick-link__icon--success {
  color: #198754;
}

.account-quick-link__title {
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

@media (max-width: 991.98px) {
  .account-sidebar {
    position: static !important;
    top: auto;
  }
}

/* ===========================
   Catalog pagination (shop / blog)
   =========================== */
.catalog-pagination {
  margin-top: 2.5rem;
}

.catalog-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-pagination__item {
  margin: 0;
}

.catalog-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

html[data-theme="dark"] .catalog-pagination__btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.catalog-pagination__btn:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  transform: translateY(-1px);
}

html[data-theme="dark"] .catalog-pagination__btn:hover {
  background: rgba(var(--accent-rgb), 0.18);
  color: #fff;
}

.catalog-pagination__item.is-active .catalog-pagination__btn {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.35);
  transform: none;
}

.catalog-pagination__item.is-active .catalog-pagination__btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.catalog-pagination__item.is-disabled .catalog-pagination__btn {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.catalog-pagination__btn--dots {
  min-width: 36px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Override Bootstrap pagination inside shop results if any remain */
#shop-results-root .pagination .page-link,
.catalog-pagination .page-link {
  min-width: 42px;
  height: 42px;
  border-radius: 11px !important;
  border: 1px solid rgba(var(--accent-rgb), 0.22) !important;
  background: var(--glass-bg) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] #shop-results-root .pagination .page-link,
html[data-theme="dark"] .catalog-pagination .page-link {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

#shop-results-root .pagination .page-item.active .page-link,
.catalog-pagination .page-item.active .page-link {
  background: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: #fff !important;
}

#shop-results-root .pagination .page-item.disabled .page-link,
.catalog-pagination .page-item.disabled .page-link {
  opacity: 0.4;
  background: var(--glass-bg) !important;
}

/* ===========================
   About page
   =========================== */
.about-page {
  position: relative;
}

.about-page__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.about-page__heading {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.about-page__text,
.about-page__lead {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1rem;
}

.about-page__lead {
  max-width: 560px;
}

.about-page__section-header {
  margin-bottom: 2rem;
}

.about-page__story-visual {
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  position: relative;
  isolation: isolate;
}

.about-page__story-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.about-page__story-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.12) 0%, rgba(0, 0, 0, 0.35) 100%);
  position: relative;
  overflow: hidden;
}

.about-page__story-placeholder i {
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 1;
}

.about-page__story-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -40px;
  inset-inline-start: -40px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.35);
  filter: blur(60px);
  pointer-events: none;
}

.about-page__vm-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-page__vm-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  pointer-events: none;
}

.about-page__vm-glow--vision {
  top: -30px;
  inset-inline-end: -30px;
  background: rgba(var(--accent-rgb), 0.55);
}

.about-page__vm-glow--mission {
  bottom: -30px;
  inset-inline-start: -30px;
  background: #ff007f;
}

.about-page__vm-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.about-page__vm-icon--mission {
  color: #ff007f;
}

.about-page__vm-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.about-page__vm-text {
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.about-page__value-card .feature-elegant-card__body {
  padding: 1.5rem 1.25rem;
}

.about-page__stats {
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
}

.about-page__stat-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--accent-color);
  line-height: 1.1;
}

.about-page__stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.35rem;
}

.about-page__stat-icon {
  width: 52px;
  height: 52px;
  font-size: 1.15rem;
}

.about-page__cta {
  padding: 2.75rem 1.5rem;
  border-radius: 20px;
}

.about-page__cta-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.about-page__cta-text {
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

@media (max-width: 767.98px) {
  .about-page__stats {
    padding: 2rem 1rem;
  }

  .about-page__vm-card {
    padding: 1.5rem;
  }
}

/* ===========================
   FAQ page
   =========================== */
.faq-page {
  position: relative;
}

.faq-page__sidebar {
  position: sticky;
  top: calc(var(--site-header-offset) + 1rem);
}

.faq-page__sidebar-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.faq-page__search-card,
.faq-page__nav-card,
.faq-page__help-card {
  padding: 1.25rem;
  border-radius: 16px;
}

.faq-page__search-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.faq-page__search-input {
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
}

.faq-page__search-input:focus {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.faq-page__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.faq-page__nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.faq-page__nav-link:hover {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-color);
  transform: translateX(-2px);
}

.faq-page__nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  flex-shrink: 0;
}

.faq-page__nav-count {
  margin-inline-start: auto;
  min-width: 28px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
}

.faq-page__help-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.faq-page__help-list li + li {
  margin-top: 0.65rem;
}

.faq-page__help-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.55rem 0;
  transition: color 0.25s ease;
}

.faq-page__help-link i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
}

.faq-page__help-link:hover {
  color: var(--accent-color);
}

.faq-page__group {
  padding: 1.35rem;
  border-radius: 18px;
}

.faq-page__group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.faq-page__group-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18) 0%, rgba(var(--accent-rgb), 0.06) 100%);
  color: var(--accent-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-page__group-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.faq-page__group-meta {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.faq-page__accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 0;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0;
  --bs-accordion-active-color: var(--text-primary);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
}

.faq-page__item {
  border: 1px solid var(--glass-border);
  border-radius: 14px !important;
  overflow: hidden;
  background: rgba(var(--accent-rgb), 0.03);
  margin-bottom: 0.75rem;
}

.faq-page__item:last-child {
  margin-bottom: 0;
}

.faq-page__item .accordion-button {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.6;
  box-shadow: none;
}

.faq-page__item .accordion-button:not(.collapsed) {
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text-primary);
}

.faq-page__item .accordion-button::after {
  margin-inline-start: auto;
  flex-shrink: 0;
  filter: opacity(0.75);
}

.faq-page__question-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-color);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.faq-page__question-text {
  flex: 1;
  text-align: start;
}

.faq-page__answer {
  padding: 0 1.1rem 1.1rem 3rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.faq-page__empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.faq-page__cta {
  padding: 2.75rem 1.5rem;
  border-radius: 20px;
}

.faq-page__cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  font-size: 1.5rem;
}

.faq-page__cta-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.faq-page__cta-text {
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

html[data-theme="dark"] .faq-page__item {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .faq-page__item .accordion-button:not(.collapsed) {
  background: rgba(var(--accent-rgb), 0.1);
}

@media (max-width: 991.98px) {
  .faq-page__sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .faq-page__group {
    padding: 1rem;
  }

  .faq-page__answer {
    padding-inline-start: 1.1rem;
  }
}

/* ===========================
   Legal pages (terms, privacy)
   =========================== */
.legal-page {
  position: relative;
}

.legal-page__sidebar {
  position: sticky;
  top: calc(var(--site-header-offset) + 1rem);
}

.legal-page__sidebar-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.legal-page__meta-card,
.legal-page__toc-card,
.legal-page__intro,
.legal-page__section {
  padding: 1.25rem;
  border-radius: 16px;
}

.legal-page__meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.legal-page__meta-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-page__toc {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-page__toc-link {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: background 0.25s ease, color 0.25s ease;
}

.legal-page__toc-link:hover,
.legal-page__toc-link.is-active {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-color);
}

.legal-page__toc-num {
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-page__intro {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(var(--accent-rgb), 0.02) 100%);
}

.legal-page__intro-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-color);
  flex-shrink: 0;
}

.legal-page__intro-text {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1rem;
}

.legal-page__section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.legal-page__section-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0.05) 100%);
  color: var(--accent-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.legal-page__section-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.2rem;
}

.legal-page__section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.legal-page__section-body {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 0.98rem;
}

.legal-page__footer-note {
  padding: 2rem 1.5rem;
  border-radius: 18px;
  color: var(--text-secondary);
}

@media (max-width: 991.98px) {
  .legal-page__sidebar {
    position: static;
  }
}