/* Reset و تنظیمات پایه */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6d28d9;
  --primary-dark: #5b21b6;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --light: #f8fafc;
  --dark: #1e293b;
  --gray: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-dark: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--dark) 100%
  );
}

body {
  font-family: "Vazirmatn", sans-serif;
  background: var(--light);
  color: var(--dark);
  direction: rtl;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* انیمیشن‌های کلیدی */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(109, 40, 217, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(109, 40, 217, 0);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-circle:nth-child(2) {
  border-top-color: var(--secondary);
  animation-delay: 0.2s;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: white;
  margin-top: 20px;
  font-size: 1.2rem;
  animation: fadeIn 1s infinite alternate;
}

/* بخش Navbar اصلاح شده */
.seoking-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.seoking-navbar.scrolled {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6d28d9 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.nav-logo img {
  width: 38px;
  height: 38px;
  transition: transform 0.5s ease;
}

.nav-logo:hover img {
  animation: float-logo 3s ease-in-out infinite;
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

.nav-menu {
  display: flex;
  gap: 8px;
  flex-grow: 1;
  justify-content: center;
  margin: 0 30px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: auto;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  height: 44px;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(109, 40, 217, 0.08) 0%,
    rgba(14, 165, 233, 0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link:hover {
  color: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.1);
}

.nav-link.active {
  background: linear-gradient(
    135deg,
    rgba(109, 40, 217, 0.12) 0%,
    rgba(14, 165, 233, 0.12) 100%
  );
  color: #6d28d9;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: linear-gradient(135deg, #6d28d9 0%, #0ea5e9 100%);
  border-radius: 2px;
  animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 24px;
    opacity: 1;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle span {
  width: 25px;
  height: 2.5px;
  background: linear-gradient(135deg, #6d28d9 0%, #0ea5e9 100%);
  border-radius: 3px;
  transition: 0.3s;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #6d28d9;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid transparent;
}

.cart-btn:hover {
  background: rgba(109, 40, 217, 0.1);
  transform: scale(1.1);
  border-color: rgba(109, 40, 217, 0.2);
}

.cart-count {
  position: absolute;
  top: 5px;
  right: 5px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.download-btn {
  background: linear-gradient(135deg, #6d28d9 0%, #0ea5e9 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 48px;
}

.download-btn::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.6s ease;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.3);
}

.download-btn:active {
  transform: translateY(-1px);
}

/* استایل دکمه ورود/ثبت‌نام */
.auth-btn {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 48px;
  font-family: "Vazirmatn", sans-serif;
}

.auth-btn::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.6s ease;
}

.auth-btn:hover::before {
  left: 100%;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.auth-btn:active {
  transform: translateY(-1px);
}

.auth-btn.logged-in {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.auth-btn.logged-in:hover {
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.auth-text {
  white-space: nowrap;
}

/* Responsive Navbar */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin: 0;
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    padding: 18px 25px;
    border-radius: 12px;
    margin: 5px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: auto;
    text-align: right;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #6d28d9 0%, #0ea5e9 100%);
    border-radius: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 65px;
    padding: 0 15px;
  }

  .nav-logo {
    font-size: 1.6rem;
  }

  .nav-logo img {
    width: 34px;
    height: 34px;
  }

  .download-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    height: 44px;
  }

  .cart-btn {
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
  }

  .nav-link {
    padding: 16px 20px;
    font-size: 0.9rem;
  }

  .auth-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    height: 44px;
  }

  .auth-text {
    display: none;
  }

  .auth-btn i {
    margin: 0;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .nav-logo span {
    display: none;
  }

  .download-btn span {
    display: none;
  }

  .download-btn {
    padding: 10px;
    border-radius: 10%;
    width: 44px;
    height: 44px;
  }

  .download-btn i {
    margin: 0;
  }

  .auth-btn {
    padding: 10px;
    border-radius: 10%;
    width: 44px;
    height: 44px;
  }
}

/* استایل برای زمانی که منو باز است روی موبایل */
body.nav-open {
  overflow: hidden;
}

/* انیمیشن برای لینک‌ها در موبایل */
@media (max-width: 992px) {
  .nav-link {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInMobile 0.4s ease forwards;
  }

  .nav-menu.active .nav-link:nth-child(1) {
    animation-delay: 0.1s;
  }
  .nav-menu.active .nav-link:nth-child(2) {
    animation-delay: 0.15s;
  }
  .nav-menu.active .nav-link:nth-child(3) {
    animation-delay: 0.2s;
  }
  .nav-menu.active .nav-link:nth-child(4) {
    animation-delay: 0.25s;
  }
  .nav-menu.active .nav-link:nth-child(5) {
    animation-delay: 0.3s;
  }
  .nav-menu.active .nav-link:nth-child(6) {
    animation-delay: 0.35s;
  }

  @keyframes slideInMobile {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* بخش Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
  padding-top: 70px;
}

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

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s infinite linear;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 10%;
  animation-delay: 5s;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 20%;
  animation-delay: 10s;
}

.circle-4 {
  width: 100px;
  height: 100px;
  bottom: 30%;
  right: 30%;
  animation-delay: 15s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text {
  color: white;
  animation: slideInRight 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.title-word {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.8s ease forwards;
}

.word-1 {
  animation-delay: 0.2s;
  color: var(--accent);
  font-weight: 800;
}

.word-2 {
  animation-delay: 0.4s;
}

.word-3 {
  animation-delay: 0.6s;
  background: linear-gradient(45deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.hero-image {
  animation: slideInLeft 1s ease-out 0.5s both;
}

.phone-mockup {
  position: relative;
  perspective: 1000px;
}

.phone-frame {
  width: 280px;
  height: 600px;
  background: #222;
  border-radius: 40px;
  padding: 14px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(5deg);
  box-shadow: -40px 40px 80px rgba(0, 0, 0, 0.3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
}

.screen-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.screen-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-shadow {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 50px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  filter: blur(20px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  animation: fadeIn 2s infinite alternate;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 10px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

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

/* بخش ویژگی‌ها */
.features-section {
  padding: 100px 0;
  background: var(--light);
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

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

.feature-icon {
  margin-bottom: 20px;
}

.icon-circle {
  width: 70px;
  height: 70px;
  background: rgba(109, 40, 217, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-card:hover .icon-circle {
  background: var(--gradient);
  color: white;
  transform: rotateY(360deg);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-description {
  color: var(--gray);
  line-height: 1.6;
}

.feature-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%236d28d9' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-wave {
  opacity: 1;
}

/* بخش محصولات */
.products-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-card.highlight {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gradient);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.product-price {
  margin: 30px 0;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.currency {
  font-size: 1.2rem;
  color: var(--gray);
  margin-right: 5px;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

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

.product-features li {
  margin-bottom: 10px;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.product-features i {
  color: var(--success);
}

.btn-add-to-cart {
  width: 100%;
  background: var(--gradient);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-to-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(109, 40, 217, 0.3);
}

/* بخش درباره ما */
.about-section {
  padding: 100px 0;
  background: white;
}

.about-content {
  background: linear-gradient(
    135deg,
    rgba(109, 40, 217, 0.05) 0%,
    rgba(14, 165, 233, 0.05) 100%
  );
  padding: 50px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.about-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--gradient);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* بخش قوانین */
.rules-section {
  padding: 100px 0;
  background: var(--light);
}

.rules-card {
  background: white;
  padding: 50px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.rules-card h4 {
  color: var(--primary);
  margin: 30px 0 15px;
  font-size: 1.4rem;
  position: relative;
  padding-right: 20px;
}

.rules-card h4::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.rules-card ul {
  list-style: none;
  margin-right: 20px;
}

.rules-card li {
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
  padding-right: 30px;
}

.rules-card li::before {
  content: "•";
  color: var(--primary);
  font-size: 1.5rem;
  position: absolute;
  right: 0;
  top: -5px;
}

/* بخش سوالات متداول */
.faq-section {
  padding: 100px 0;
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
  background: linear-gradient(135deg, var(--light) 0%, #f1f5f9 100%);
  padding: 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  transition: all 0.3s ease;
  text-align: right;
}

.faq-question:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.faq-icon {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  line-height: 1.6;
  text-align: right;
}

.faq-answer.active {
  padding: 25px;
  max-height: 1000px;
}

/* فوتر */
.footer {
  background: var(--gradient-dark);
  color: white;
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 50px;
  height: 50px;
}

.footer-logo span {
  font-size: 2rem;
  font-weight: 800;
}

.footer-description {
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links h4 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.enamad {
  display: inline-block;
  margin-top: 20px;
  transition: transform 0.3s ease;
}

.enamad:hover {
  transform: scale(1.1);
}

/* انیمیشن‌های اسکرول */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.delay-4 {
  transition-delay: 0.8s;
}

.delay-5 {
  transition-delay: 1s;
}

/* استایل دکمه‌های مارکت‌های ایرانی */
.market-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.market-link {
  display: inline-flex;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.market-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.market-link img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .market-buttons {
    justify-content: center;
  }

  .market-link {
    padding: 10px 15px;
  }

  .market-link img {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .market-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .market-link {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  .market-link img {
    width: 120px;
  }
}

/* استایل منوی کاربر */
.user-menu-popup {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 320px;
  overflow: hidden;
  animation: slideDown 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  z-index: 10001;
}

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

.user-menu-header {
  background: linear-gradient(135deg, #6d28d9 0%, #0ea5e9 100%);
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 3px solid white;
}

.user-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
}

.user-info p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.menu-section {
  padding: 15px 0;
}

.menu-item {
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.95rem;
  text-align: right;
}

.menu-item:hover {
  background: #f8fafc;
  color: #6d28d9;
}

.menu-item.info-item {
  cursor: default;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
}

.menu-item.info-item:hover {
  background: transparent;
  color: inherit;
}

.info-label {
  color: #666;
  font-size: 0.9rem;
  margin-left: 10px;
}

.info-value {
  font-weight: 600;
  color: #333;
  direction: ltr;
  text-align: left;
  flex-grow: 1;
}

.menu-item i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.menu-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

.logout-btn:hover {
  background: #fef2f2 !important;
}

/* استایل‌های مودال احراز هویت */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.auth-modal.show {
  display: flex;
}

.auth-modal-content {
  background: white;
  border-radius: 25px;
  width: 100%;
  max-width: 450px;
  position: relative;
  animation: slideInUp 0.4s ease;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

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

.auth-modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  font-size: 1.2rem;
  z-index: 1;
  transition: all 0.3s ease;
}

.auth-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.auth-steps {
  padding: 50px 40px;
  position: relative;
}

.auth-step {
  display: none;
}

.auth-step.active {
  display: block;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.step-header h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin: 0;
}

.step-description {
  color: var(--gray);
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: "Vazirmatn", sans-serif;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.form-group input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.input-prefix {
  padding: 15px 20px;
  background: #e2e8f0;
  color: var(--dark);
  font-weight: 600;
  border-left: 2px solid #cbd5e1;
  font-family: monospace;
  direction: ltr;
}

.input-with-prefix input {
  border: none;
  background: transparent;
  text-align: left;
  direction: ltr;
  font-family: monospace;
  letter-spacing: 1px;
}

.input-with-prefix input:focus {
  box-shadow: none;
}

.input-hint {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 8px;
  text-align: right;
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.otp-inputs input {
  width: 60px;
  height: 60px;
  text-align: left;
  direction: ltr;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 2px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.otp-inputs input:focus {
  border-color: var(--primary);
  background: white;
}

.timer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 10px 0;
}

#timer {
  color: var(--primary);
  font-weight: 600;
  font-family: monospace;
  font-size: 1.1rem;
}

.resend-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: "Vazirmatn", sans-serif;
}

.resend-btn:hover:not(:disabled) {
  background: rgba(109, 40, 217, 0.1);
}

.resend-btn:disabled {
  color: var(--gray);
  cursor: not-allowed;
  opacity: 0.5;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.btn-block {
  width: 100%;
}

.success-content {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 2.5rem;
  color: white;
  animation: pulse 2s infinite;
}

.success-content h3 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.success-content p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* لودینگ و ارور مودال */
.auth-loading,
.auth-error {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
}

.auth-loading.show,
.auth-error.show {
  display: flex;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.auth-loading p {
  color: var(--gray);
  font-size: 1.1rem;
}

.error-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: white;
}

.auth-error p {
  color: var(--dark);
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* استایل‌های برای ورودی‌های عددی LTR */
input[type="tel"],
input[type="text"][pattern="[0-9]*"],
.national-id-input {
  text-align: left !important;
  direction: ltr !important;
  font-family: monospace !important;
  letter-spacing: 1px !important;
}

.otp-inputs input {
  text-align: center !important;
  direction: ltr !important;
  font-family: monospace !important;
  letter-spacing: 2px !important;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .phone-frame {
    margin: 0 auto;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    gap: 0;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: right;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Responsive مودال */
  .auth-modal-content {
    max-width: 95%;
    border-radius: 20px;
  }

  .auth-steps {
    padding: 40px 25px;
  }

  .otp-inputs input {
    width: 50px;
    height: 50px;
  }

  /* Responsive منوی کاربر */
  .user-menu-popup {
    position: fixed !important;
    top: 65px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100% - 20px);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  .product-card.highlight {
    transform: scale(1);
  }

  .features-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Responsive مودال */
  .auth-steps {
    padding: 30px 20px;
  }

  .step-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .step-header h3 {
    font-size: 1.3rem;
  }

  .step-description {
    font-size: 0.95rem;
  }

  .form-group input {
    padding: 12px 15px;
  }

  .otp-inputs {
    gap: 8px;
  }

  .otp-inputs input {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .price {
    font-size: 2.5rem;
  }

  .about-content {
    padding: 30px 20px;
  }

  .rules-card {
    padding: 30px 20px;
  }

  .faq-question {
    padding: 20px;
    font-size: 1rem;
  }

  /* Responsive مودال */
  .auth-steps {
    padding: 25px 15px;
  }

  .step-header h3 {
    font-size: 1.2rem;
  }

  .step-description {
    font-size: 0.9rem;
  }

  .otp-inputs input {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* استایل‌های اضافی برای نمایش اعداد فارسی */
.persian-numbers {
  font-family: "Vazirmatn", sans-serif;
  font-feature-settings: "numr";
}

/* بهبود ظاهر اسکرول‌بار */
.auth-modal-content::-webkit-scrollbar {
  width: 8px;
}

.auth-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.auth-modal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.auth-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ظاهر بهتر برای فیلدهای فرم در حالت focus */
.form-group input:focus,
.input-with-prefix:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

/* استایل برای دکمه‌های موجود در منوی کاربر */
.menu-item[onclick*="increaseBalance"] {
  color: #10b981;
}

.menu-item[onclick*="increaseBalance"]:hover {
  background: rgba(16, 185, 129, 0.1);
}

.menu-item[onclick*="logout"] {
  color: #ef4444;
}

.menu-item[onclick*="logout"]:hover {
  background: rgba(239, 68, 68, 0.1);
}
