/* ===== Dana Font Faces ===== */
@font-face {
  font-family: "Dana";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/Dana/woff2/DanaFaNum-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Dana";
  font-weight: 500;
  font-style: normal;
  src: url("../fonts/Dana/woff2/DanaFaNum-Medium.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Dana";
  font-weight: 600;
  font-style: normal;
  src: url("../fonts/Dana/woff2/DanaFaNum-DemiBold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Dana";
  font-weight: 700;
  font-style: normal;
  src: url("../fonts/Dana/woff2/DanaFaNum-DemiBold.woff2") format("woff2");
  font-display: swap;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Dana", sans-serif;
  background: #fafafa;
  color: #111827;
  direction: rtl;
  overflow-x: hidden;
}

/* ===== Navbar ===== */
.nav-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-link {
  transition: color 0.2s;
}
.nav-link:hover {
  color: #059669;
}
.pt-hero {
  margin-top: 8rem;
}
.h1-hreo {
  font-size: 4rem !important;
  line-height: 1.5 !important;
  font-weight: 900;
}

/* ===== Hero ===== */
.hero-bg {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 30%, #fafafa 70%);
}
.grid-lines-pattern {
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-curve {
  border-radius: 0 0 50% 50% / 0 0 80px 80px;
}

/* ===== Glass / Cards ===== */
.card-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.card-glass-elevated {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 253, 244, 0.9) 100%
  );
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* ===== Products ===== */
.product-card {
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 20px rgba(16, 185, 129, 0.12),
    0 0 0 1px rgba(16, 185, 129, 0.2);
}

/* ===== Tags ===== */
.tag-blue {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.tag-violet {
  background: rgba(52, 211, 153, 0.12);
  color: #10b981;
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.tag-green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.tag-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.tag-red {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  color: #ffffff;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.btn-outline {
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.5);
}
.btn-outline-violet {
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #10b981;
  transition: all 0.2s ease;
}
.btn-outline-violet:hover {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.5);
}
.btn-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.3);
  transition: all 0.2s ease;
  color: #ffffff;
}
.btn-red:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* ===== Forms ===== */
.input-field {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
  transition: border-color 0.2s;
}
.input-field:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.input-field::placeholder {
  color: #9ca3af;
}
select option {
  background: #ffffff;
}
.developer-form {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.06) 0%,
    rgba(255, 255, 255, 0.95) 50%
  );
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* ===== Floating animations ===== */
.floating-badge {
  animation: float 5s ease-in-out infinite;
}
.floating-badge-2 {
  animation: float 7s ease-in-out infinite 1s;
}
.floating-badge-3 {
  animation: float 6s ease-in-out infinite 0.5s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ===== Hero Animations ===== */
.hero-fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeInUp 0.7s ease forwards;
}
.hero-fade-in-up-d1 {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeInUp 0.7s ease 0.15s forwards;
}
.hero-fade-in-up-d2 {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeInUp 0.7s ease 0.3s forwards;
}
.hero-fade-in-up-d3 {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeInUp 0.7s ease 0.45s forwards;
}
.hero-fade-in-up-d4 {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeInUp 0.7s ease 0.6s forwards;
}
.hero-fade-in-up-d5 {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeInUp 0.7s ease 0.75s forwards;
}
@keyframes heroFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scale-in {
  opacity: 0;
  transform: scale(0.8);
  animation: heroScaleIn 0.5s ease 0.1s forwards;
}
@keyframes heroScaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.glow-pulse {
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.15);
  }
  50% {
    box-shadow: 0 4px 40px rgba(16, 185, 129, 0.35);
  }
}

.hero-tag-bounce {
  opacity: 0;
  animation: heroTagBounce 0.5s ease 0.9s forwards;
}
.hero-tag-bounce:nth-child(2) {
  animation-delay: 1s;
}
.hero-tag-bounce:nth-child(3) {
  animation-delay: 1.1s;
}
.hero-tag-bounce:nth-child(4) {
  animation-delay: 1.2s;
}
.hero-tag-bounce:nth-child(5) {
  animation-delay: 1.3s;
}
@keyframes heroTagBounce {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  60% {
    transform: translateY(-3px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-bg-animate {
  background-size: 100% 100%;
  animation: heroBgShift 8s ease-in-out infinite alternate;
}
@keyframes heroBgShift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

.hero-stat {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeInUp 0.6s ease 1.4s forwards;
}
.hero-stat:nth-child(2) {
  animation-delay: 1.5s;
}
.hero-stat:nth-child(3) {
  animation-delay: 1.6s;
}
.hero-stat:nth-child(4) {
  animation-delay: 1.7s;
}
.hero-stat:nth-child(5) {
  animation-delay: 1.8s;
}

/* ===== Shimmer text ===== */
.shimmer-text {
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* ===== Section label ===== */
.section-label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}

/* ===== Star rating ===== */
.star {
  color: #f59e0b;
}
.star-empty {
  color: #d1d5db;
}

/* ===== Mega Menu ===== */
.mega-menu-trigger {
  position: relative;
}
.mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}
.mega-menu-trigger:hover .mega-menu,
.mega-menu-trigger .mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu-inner {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 20px;
  display: flex;
  gap: 20px;
  min-width: 580px;
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}
.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all 0.15s ease;
  text-decoration: none;
  color: #374151;
}
.mega-menu-item:hover {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  transform: translateX(-2px);
}
.mega-menu-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.mega-menu-item-text {
  display: flex;
  flex-direction: column;
}
.mega-menu-item-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.mega-menu-item-count {
  font-size: 10px;
  color: #9ca3af;
}
.mega-menu-image {
  width: 180px;
  min-height: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.mega-menu-image svg {
  opacity: 0.6;
}
.mega-menu-image span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.mega-menu-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.mega-menu-trigger:hover .mega-menu-chevron {
  transform: rotate(180deg);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f4f5f7;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ===== Cart ===== */
.cart-item {
  transition: all 0.3s ease;
}
.cart-item:hover {
  background: rgba(0, 0, 0, 0.02);
}
.qty-btn {
  transition: all 0.2s ease;
}
.qty-btn:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* ===== Checkout ===== */
.checkout-summary {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.04) 0%,
    rgba(255, 255, 255, 0.9) 50%
  );
}

/* ===== Mobile menu ===== */
.mobile-menu {
  transition: all 0.3s ease;
}
.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}
.mobile-menu.closed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* ===== Filter sidebar ===== */
.filter-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.filter-checkbox:checked + label {
  color: #059669;
}
.filter-checkbox {
  accent-color: #10b981;
}

/* ===== Pagination ===== */
.page-link {
  transition: all 0.2s ease;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.page-link:hover:not(.active) {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}
.page-link.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* ===== Accordion / FAQ ===== */
.faq-item summary {
  cursor: pointer;
  transition: color 0.2s;
  color: #111827;
}
.faq-item[open] summary {
  color: #059669;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* ===== Toast/notification ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== Skeleton loading ===== */
.skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== Empty state ===== */
.empty-state {
  opacity: 0.6;
}

/* ===== Progress bar ===== */
.progress-bar {
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ===== Custom select arrow ===== */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 32px;
}

/* ===== Navbar specific ===== */
nav.nav-blur {
  background: rgba(255, 255, 255, 0.9) !important;
}

/* ===== Product card preview areas ===== */
.product-card .preview-bg {
  border-radius: inherit;
}

/* ===== RTL adjustments ===== */
.ml-2 {
  margin-left: 0;
  margin-right: 0.5rem;
}
.mr-2 {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* ===== Scroll reveal animation ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Newsletter input ===== */
.newsletter-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ===== Badge pulse ===== */
.badge-pulse {
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ===== Tab active styles ===== */
.active-tab {
  background: #10b981 !important;
  color: #ffffff !important;
}

/* ===== Responsive typography tweaks ===== */
@media (max-width: 640px) {
  .product-card .h-40 {
    height: 120px;
  }
  section.py-14 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* ===== Hover card image zoom ===== */
.product-card .h-40,
.product-card .h-36 {
  transition: transform 0.5s ease;
}
.product-card:hover .h-40,
.product-card:hover .h-36 {
  transform: scale(1.05);
}

/* ===== Footer link hover ===== */
footer ul li a {
  position: relative;
  display: inline-block;
}
footer ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 1.5px;
  background: #10b981;
  transition: width 0.3s ease;
}
footer ul li a:hover::after {
  width: 100%;
}

/* ===== Product Gallery ===== */
.gallery-zoom {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-zoom:hover {
  transform: scale(1.03);
}
.active-thumb {
  border-color: #10b981 !important;
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.3),
    0 4px 12px rgba(16, 185, 129, 0.2);
}
#thumbnailStrip > div {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#thumbnailStrip > div:hover {
  transform: translateY(-2px);
}
#thumbnailStrip .active-thumb {
  transform: translateY(-2px);
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay .lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lightbox-overlay.open .lightbox-content {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}
.lightbox-overlay:hover .lightbox-nav {
  opacity: 1;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-nav.prev {
  left: 20px;
}
.lightbox-nav.next {
  right: 20px;
}
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#mainImageContainer {
  cursor: zoom-in;
}

/* ===== How It Works ===== */
.how-it-works-card {
  transition: all 0.3s ease;
  position: relative;
}
.how-it-works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
}
.step-number {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* ===== Success Stories ===== */
.success-card {
  transition: all 0.3s ease;
}
.success-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
}

/* ===== Earning Tiers ===== */
.tier-card {
  transition: all 0.3s ease;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
}
.tier-gold {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(254, 243, 199, 0.3) 100%
  ) !important;
}
.tier-gold:hover {
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.2) !important;
}

/* ===== Developer Tools ===== */
.tool-card {
  transition: all 0.3s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
}

/* ===== CTA Banner ===== */
.cta-banner {
  transition: all 0.3s ease;
}
.cta-banner:hover {
  box-shadow: 0 8px 40px rgba(16, 185, 129, 0.1);
}

/* ===== Print styles ===== */
@media print {
  .nav-blur,
  .sticky {
    position: relative !important;
  }
}

/* ===== Hero Mosaic Background ===== */
.mosaic-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 2px;
}
.mosaic-bg img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  opacity: 0.06;
  border-radius: 4px;
  flex-shrink: 0;
}
.mosaic-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2px 0;
}
.mosaic-col-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: mosaicScroll 20s linear infinite;
  will-change: transform;
}
.mosaic-col-inner.rev {
  animation-direction: reverse;
}
@keyframes mosaicScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* ===== Special Spotlight Section ===== */
@keyframes spotlightFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}
.floating-particle {
  animation: particleFloat 6s ease-in-out infinite;
}
@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px) scale(1.5);
    opacity: 1;
  }
}
@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}
.animate-bounce-subtle {
  animation: bounceSubtle 2s ease-in-out infinite;
}
@keyframes bounceSubtle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.animate-float-delayed {
  animation: floatDelayed 5s ease-in-out infinite;
}
@keyframes floatDelayed {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ===== VIP Section ===== */
.vip-glow {
  animation: vipGlow 3s ease-in-out infinite;
}
@keyframes vipGlow {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(212, 175, 55, 0.15),
      0 0 60px rgba(212, 175, 55, 0.05);
  }
  50% {
    box-shadow:
      0 0 30px rgba(212, 175, 55, 0.3),
      0 0 80px rgba(212, 175, 55, 0.1);
  }
}
.vip-gold-text {
  background: linear-gradient(90deg, #f59e0b, #fcd34d, #f59e0b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}
.vip-shimmer-line {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.3),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
.vip-card-dark {
  background: linear-gradient(
    135deg,
    rgba(30, 27, 75, 0.95) 0%,
    rgba(15, 23, 42, 0.98) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.4s ease;
}
.vip-card-dark:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
}
.vip-star {
  animation: vipStarPulse 2s ease-in-out infinite;
}
@keyframes vipStarPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}
.vip-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fcd34d;
  border-radius: 50%;
  animation: vipParticleFloat 6s ease-in-out infinite;
  opacity: 0.3;
}
@keyframes vipParticleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-30px) scale(1.5);
    opacity: 0.6;
  }
}

/* ===== Search / Command Palette (TailwindCSS-style) ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.search-modal {
  width: 100%;
  max-width: 500px;
  max-height: min(560px, calc(100vh - 40px));
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(-8px);
  transition: transform 0.2s ease;
}
.search-overlay.open .search-modal {
  transform: scale(1) translateY(0);
}
.search-modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
}
.search-modal-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: #111827;
  font-family: "Dana", sans-serif;
}
.search-modal-input-wrap input::placeholder {
  color: #9ca3af;
}
.search-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: #f3f4f6;
  flex-shrink: 0;
}
.search-modal-close:hover {
  background: #e5e7eb;
  color: #111827;
}
.search-modal-results {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.search-group-header {
  padding: 8px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  margin: 0 2px;
}
.search-result-item:hover {
  background: #f0fdf4;
}
.search-result-item .result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.search-result-item .result-info {
  flex: 1;
  min-width: 0;
}
.search-result-item .result-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item .result-desc {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.search-result-item .result-price {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  white-space: nowrap;
  background: rgba(16, 185, 129, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.search-modal-empty {
  padding: 32px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}
.search-modal-empty svg {
  margin: 0 auto 10px;
  opacity: 0.3;
}
.search-modal-hint {
  padding: 8px 14px;
  border-top: 1px solid #f3f4f6;
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-modal-hint kbd {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-family: inherit;
  color: #6b7280;
  line-height: 1.4;
}

/* ===== Auth Modal ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.auth-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.95) translateY(-8px);
  transition: transform 0.2s ease;
}
.auth-overlay.open .auth-modal {
  transform: scale(1) translateY(0);
}
.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.auth-modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.auth-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: #f3f4f6;
  flex-shrink: 0;
}
.auth-modal-close:hover {
  background: #e5e7eb;
  color: #111827;
}
.auth-tabs {
  display: flex;
  padding: 16px 24px 0;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}
.auth-tab.active {
  background: #f0fdf4;
  color: #059669;
}
.auth-form {
  display: none;
  padding: 20px 24px 24px;
}
.auth-form.active {
  display: block;
}
.auth-form-group {
  margin-bottom: 16px;
}
.auth-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.auth-form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 13px;
  font-family: "Dana", sans-serif;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s;
}
.auth-form-group input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.auth-form-group input::placeholder {
  color: #9ca3af;
}
.auth-form-group input.error {
  border-color: #ef4444;
}
.auth-form-submit {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Dana", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
  margin-top: 4px;
}
.auth-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.auth-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.auth-form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #6b7280;
}
.auth-form-footer button {
  color: #059669;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  font-family: "Dana", sans-serif;
  font-size: 12px;
}
.auth-form-footer button:hover {
  text-decoration: underline;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #9ca3af;
  font-size: 11px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.auth-social-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Dana", sans-serif;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}
.auth-social-btn:hover {
  background: #f9fafb;
  border-color: #10b981;
}
.auth-forgot {
  text-align: left;
  margin-top: -10px;
  margin-bottom: 12px;
}
.auth-forgot button {
  border: none;
  background: none;
  color: #059669;
  font-size: 11px;
  cursor: pointer;
  font-family: "Dana", sans-serif;
}
.auth-forgot button:hover {
  text-decoration: underline;
}

/* ===== Collapsible Filters ===== */
#filterPanel {
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease;
  overflow: hidden;
}
#filterPanel.open {
  max-height: 600px;
  opacity: 1;
}
@media (min-width: 1024px) {
  #filterPanel {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
}

/* ===== Review Star Rating ===== */
.star-rating-btn {
  transition: all 0.15s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 1px;
}
.star-rating-btn:hover {
  transform: scale(1.2);
}
.star-rating-btn:hover ~ .star-rating-btn {
  color: #d1d5db !important;
}
#starRating {
  direction: ltr;
  display: inline-flex;
}
#starRating:hover .star-rating-btn {
  color: #f59e0b;
}
#starRating .star-rating-btn:hover ~ .star-rating-btn {
  color: #d1d5db;
}

/* ============================================= */
/* ===== MOBILE-FIRST IMPROVEMENTS ===== */
/* ============================================= */

/* ---- Better container widths on small screens ---- */
@media (max-width: 480px) {
  .max-w-\[90\%\],
  .max-w-\[85\%\],
  .max-w-\[92\%\] {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  section > .max-w-\[90\%\],
  section > .max-w-\[85\%\] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ---- Mobile typography tweaks ---- */
@media (max-width: 640px) {
  .product-card .h-40 {
    height: 120px;
  }
  section.py-14 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .text-\[10px\] {
    font-size: 10px;
  }
  .text-\[11px\] {
    font-size: 11px;
  }
  h1.text-3xl {
    font-size: 1.6rem !important;
    line-height: 1.4 !important;
  }
  h2.text-2xl {
    font-size: 1.3rem !important;
  }
  h2.text-xl {
    font-size: 1.15rem !important;
  }
}

/* ---- Touch-friendly tap targets ---- */
@media (max-width: 768px) {
  button,
  a,
  .nav-link,
  [onclick] {
    cursor: default;
  }
  .nav-link,
  .mega-menu-item,
  .product-card a,
  footer a {
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.15);
  }
  input,
  select,
  textarea,
  button {
    font-size: 16px !important;
  }
}

/* ---- Mobile menu: slide from right with overlay ---- */
@media (max-width: 1023px) {
  .mobile-menu {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-bottom: 24px;
  }
  .mobile-menu.open {
    max-height: calc(100vh - 64px);
    opacity: 1;
    overflow-y: auto;
  }
  .mobile-menu.closed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
  .mobile-menu > div {
    padding-bottom: 80px;
  }

  /* Mobile menu category sub-items */
  .mobile-sub-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
  }
  .mobile-sub-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 12px;
  }
  .mobile-sub-items.open {
    max-height: 400px;
  }
  .mobile-sub-items a {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 10px;
  }
}

/* ---- Hero: hide mosaic on mobile, reduce clutter ---- */
@media (max-width: 640px) {
  .mosaic-bg {
    display: none !important;
  }
  .hero-curve {
    border-radius: 0 0 40px 40px;
  }
  section.hero-bg {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
  .hero-bg .max-w-\[85\%\] {
    max-width: 100% !important;
  }
  .hero-bg .gap-6.md\:gap-10 {
    gap: 0.75rem;
  }
  .hero-scale-in {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* ---- Product cards: bigger touch areas on mobile ---- */
@media (max-width: 640px) {
  .product-card a,
  .product-card button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .product-card .p-4 {
    padding: 12px;
  }
  .product-card h3 {
    font-size: 13px;
  }
  .product-card .text-\[11px\] {
    font-size: 11px;
  }
  .product-card .text-\[10px\] {
    font-size: 10px;
  }
  .product-card .bottom-3.left-3 {
    bottom: 8px;
    left: 8px;
  }
}

/* ---- Footer mobile improvements ---- */
@media (max-width: 767px) {
  footer .grid {
    gap: 24px;
  }
  footer .grid > div {
    scroll-margin-top: 20px;
  }
  footer .grid > div:first-child {
    order: -1;
  }
}

/* ---- Better mobile grid for categories ---- */
@media (max-width: 480px) {
  .grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-6 {
    gap: 8px;
  }
  .card-glass.rounded-2xl.p-5 {
    padding: 12px 8px;
  }
  .card-glass.rounded-2xl.p-5 .w-11.h-11 {
    width: 36px;
    height: 36px;
  }
  .card-glass.rounded-2xl.p-5 .w-11.h-11 svg {
    width: 18px;
    height: 18px;
  }
}

/* ---- Promo banners mobile ---- */
@media (max-width: 640px) {
  .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ---- Special sections mobile spacing ---- */
@media (max-width: 640px) {
  section.max-w-\[92\%\] {
    max-width: 96% !important;
    border-radius: 20px !important;
  }
  section.max-w-\[92\%\] .max-w-\[90\%\] {
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ---- Newsletter section mobile ---- */
@media (max-width: 640px) {
  .flex-col.sm\:flex-row {
    flex-direction: column;
  }
  .flex-col.sm\:flex-row input,
  .flex-col.sm\:flex-row button {
    width: 100%;
  }
}

/* ---- Trust badges row mobile ---- */
@media (max-width: 640px) {
  .gap-6.md\:gap-12 {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .gap-6.md\:gap-12 > div {
    flex: 1 1 auto;
    min-width: calc(50% - 12px);
    justify-content: center;
  }
}

/* ---- Stats row mobile ---- */
@media (max-width: 480px) {
  .hero-stat .text-xl.md\:text-2xl {
    font-size: 1.1rem !important;
  }
}

/* ---- Cart badge mobile ---- */
@media (max-width: 640px) {
  .cart-badge {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
}

/* ---- Auth modal mobile ---- */
@media (max-width: 480px) {
  .auth-modal {
    border-radius: 16px;
  }
  .auth-modal-header {
    padding: 16px 16px 0;
  }
  .auth-form {
    padding: 16px;
  }
  .auth-tabs {
    padding: 12px 16px 0;
  }
}

/* ---- Search modal mobile ---- */
@media (max-width: 480px) {
  .search-overlay {
    align-items: flex-start;
    padding-top: 60px;
  }
  .search-modal {
    max-height: calc(100vh - 80px);
  }
}

/* ---- Smooth scroll on mobile ---- */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---- Remove tap highlight on mobile ---- */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ---- Hide scrollbar utility ---- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ---- Trust section mobile improvements ---- */
@media (max-width: 640px) {
  .grid.sm\:grid-cols-3 {
    gap: 24px;
  }
}

/* ---- Hero section CTA on mobile ---- */
@media (max-width: 640px) {
  section.hero-bg .flex-wrap.gap-2 a.tag-blue,
  section.hero-bg .flex-wrap.gap-2 a.tag-violet,
  section.hero-bg .flex-wrap.gap-2 a.tag-green {
    padding: 6px 10px;
    font-size: 10px;
  }
}

/* ---- "مشاهده همه" link: always visible on mobile ---- */
@media (max-width: 639px) {
  .section-header-link {
    display: inline-flex !important;
  }
}

/* ---- Navbar: better mobile spacing ---- */
@media (max-width: 640px) {
  nav .max-w-\[90\%\] {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  nav .h-16 {
    height: 56px;
  }
}

/* ===== Dashboard Layout ===== */
.dashboard-layout {
  display: flex;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}
.dashboard-sidebar {
  width: 240px;
  flex-shrink: 0;
}
.dashboard-content {
  flex: 1;
  min-width: 0;
}
.dashboard-sidebar-inner {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 12px;
  position: sticky;
  top: 100px;
}
.dashboard-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}
.dashboard-sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.dashboard-sidebar-user-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
.dashboard-sidebar-user-info span {
  font-size: 11px;
  color: #6b7280;
}
.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.15s ease;
}
.dashboard-nav-item:hover {
  background: #f0fdf4;
  color: #059669;
}
.dashboard-nav-item.active {
  background: #f0fdf4;
  color: #059669;
  font-weight: 600;
}
.dashboard-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.dashboard-nav-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 6px 12px;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dashboard-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.dashboard-header span {
  font-size: 13px;
  color: #6b7280;
}

/* Dashboard Stats Cards */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.dashboard-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.2s ease;
}
.dashboard-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dashboard-stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.dashboard-stat-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.dashboard-stat-card p {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* Dashboard Table */
.dashboard-table-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.dashboard-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.dashboard-table-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.dashboard-table-header a {
  font-size: 12px;
  color: #059669;
  text-decoration: none;
  font-weight: 500;
}
.dashboard-table-header a:hover {
  text-decoration: underline;
}
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}
.dashboard-table th {
  text-align: right;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
}
.dashboard-table td {
  padding: 14px 20px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f9fafb;
}
.dashboard-table tr:last-child td {
  border-bottom: none;
}
.dashboard-table tr:hover td {
  background: #fafafa;
}

/* Order Status Badges */
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.order-status.completed {
  background: rgba(16,185,129,0.12);
  color: #059669;
}
.order-status.pending {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}
.order-status.processing {
  background: rgba(59,130,246,0.12);
  color: #2563eb;
}
.order-status.cancelled {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
}

/* Dashboard Quick Actions */
.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.dashboard-quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.dashboard-quick-action:hover {
  border-color: #10b981;
  background: #f0fdf4;
  transform: translateY(-1px);
}
.dashboard-quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dashboard-quick-action-text h4 {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.dashboard-quick-action-text span {
  font-size: 11px;
  color: #6b7280;
}

/* Downloads / License */
.download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}
.download-item:hover {
  border-color: rgba(16,185,129,0.3);
  box-shadow: 0 2px 12px rgba(16,185,129,0.06);
}
.download-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.download-item-info {
  flex: 1;
  min-width: 0;
}
.download-item-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.download-item-info p {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}
.download-item-license {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-family: monospace;
  color: #374151;
}
.download-item-license svg {
  cursor: pointer;
  color: #10b981;
}
.download-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.download-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Dana", sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.download-btn.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}
.download-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16,185,129,0.35);
}
.download-btn.outline {
  border: 1px solid #d1d5db;
  color: #374151;
  background: #fff;
}
.download-btn.outline:hover {
  border-color: #10b981;
  color: #059669;
}

/* Wishlist Grid */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.wishlist-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.wishlist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.2);
}
.wishlist-card-preview {
  height: 120px;
  position: relative;
}
.wishlist-card-body {
  padding: 12px 14px;
}
.wishlist-card-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.wishlist-card-body p {
  font-size: 11px;
  color: #6b7280;
}
.wishlist-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 14px;
}
.wishlist-card-footer .price {
  font-size: 14px;
  font-weight: 700;
  color: #059669;
}
.wishlist-remove {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wishlist-remove:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239,68,68,0.06);
}

/* Profile Page */
.profile-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
}
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f3f4f6;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-avatar-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.profile-avatar-info p {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.profile-avatar-change {
  margin-right: auto;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Dana", sans-serif;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}
.profile-avatar-change:hover {
  border-color: #10b981;
  color: #059669;
}

/* Responsive Dashboard */
@media (max-width: 1023px) {
  .dashboard-layout {
    flex-direction: column;
    padding: 16px;
  }
  .dashboard-sidebar {
    width: 100%;
  }
  .dashboard-sidebar-inner {
    position: static;
  }
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .wishlist-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-table-wrap {
    overflow-x: auto;
  }
  .dashboard-table {
    min-width: 600px;
  }
  .download-item {
    flex-wrap: wrap;
  }
  .download-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .profile-avatar-section {
    flex-wrap: wrap;
  }
  .profile-avatar-change {
    margin-right: 0;
    width: 100%;
  }
}
