/* Styles specific to index.html */
html, body {
  height: 100%;
  overflow: hidden; /* Prevent scroll on desktop */
}
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.bg {
  background-image: url('images/bg1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(2px) brightness(0.4);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(139,69,19,0.3));
  z-index: -1;
}
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}
.welcome-box {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(139,69,19,0.4));
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 650px;
  animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: #ffcc66;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-weight: bold;
  animation: glow 2s infinite alternate;
}
@keyframes glow {
  from { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(255,204,102,0.3); }
  to { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 30px rgba(255,204,102,0.5); }
}
p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  line-height: 1.6;
}
a.button {
  text-decoration: none;
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, #ffcc66, #f59e0b);
  color: #1a1a1a;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(255,204,102,0.3);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}
a.button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}
a.button:hover:before { left: 100%; }
a.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255,204,102,0.5);
  background: linear-gradient(135deg, #f59e0b, #ffcc66);
}
.flags {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  padding: 10px 15px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.flags img {
  width: 35px;
  height: auto;
  border-radius: 6px;
  transition: all 0.3s ease;
  filter: brightness(0.9);
}
.flags img:hover {
  transform: scale(1.2) rotate(5deg);
  filter: brightness(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.special-offer {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e, #ff4757);
  color: white;
  padding: 15px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
  z-index: 10;
  animation: sparkle 3s infinite;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  min-width: 250px;
  direction: rtl;
  transition: all 0.8s ease;
}
.special-offer::before {
  content: '🎁';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 24px;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  animation: bounce 2s infinite;
}
.special-offer .offer-text {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.special-offer .offer-subtitle {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}
@keyframes sparkle {
  0% { transform: scale(1); box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 20px 40px rgba(255, 107, 107, 0.6); }
  100% { transform: scale(1); box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4); }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
.top-contact {
  position: fixed;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(139,69,19,0.3));
  color: #fff;
  padding: 12px 18px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  direction: rtl;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.8s ease;
}
.top-contact a {
  color: #ffcc66;
  text-decoration: none;
  transition: color 0.3s ease;
}
.top-contact a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,204,102,0.5);
}
.button-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}
.click-hint {
  color: #ffcc66;
  font-size: 16px;
  animation: pulse 2s infinite;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255,204,102,0.3);
}
@keyframes pulse {
  0% { opacity: 0.6; transform: translateX(0) scale(1); }
  50% { opacity: 1; transform: translateX(-8px) scale(1.1); }
  100% { opacity: 0.6; transform: translateX(0) scale(1); }
}
#lang-switch {
  margin-top: 8px;
  color: #ffcc66;
  font-size: 13px;
  text-align: left;
  direction: ltr;
}
#lang-switch span {
  cursor: pointer;
  margin: 0 5px;
  transition: all 0.3s ease;
  padding: 2px 5px;
  border-radius: 5px;
}
#lang-switch span:hover {
  color: #fff;
  background: rgba(255,204,102,0.2);
  transform: scale(1.05);
}
.main-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #3e2c1c);
  color: #fff;
  z-index: 11;
  padding: 80px 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  pointer-events: none;
  overflow-y: auto;
}
.main-menu h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #ffcc66;
  text-align: center;
}
.main-menu ul { list-style: none; padding: 0; text-align: center; }
.main-menu ul li { margin: 20px 0; font-size: 1.4rem; }
.main-menu ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
}
.main-menu ul li a:hover {
  color: #ffcc66;
  background: rgba(255, 204, 102, 0.1);
}
.main-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hidden { display: none; }
body.fade-out {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.menu-hidden {
  opacity: 0 !important;
  transform: translateY(-30px) !important;
}
body.menu-is-open .flags,
body.menu-is-open .search-icon {
   display: none;
}
.search-icon {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 204, 102, 0.1);
  border: 1px solid rgba(255, 204, 102, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInFromLeft 1s ease-out;
}
.search-icon:hover {
  background: rgba(255, 204, 102, 0.2);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(255, 204, 102, 0.4);
}
.search-icon svg {
  width: 30px;
  height: 30px;
  fill: #ffcc66;
  transition: transform 0.3s ease;
}
.search-icon:hover svg {
  transform: rotate(15deg);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.search-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.search-container {
  position: relative;
  width: 80%;
  max-width: 600px;
}

#search-input {
  width: 100%;
  padding: 20px 60px 20px 20px;
  font-size: 1.5rem;
  border-radius: 50px;
  border: 2px solid #ffcc66;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  box-shadow: 0 0 30px rgba(255, 204, 102, 0.5);
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#search-close-btn {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ffcc66;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#search-close-btn:hover {
  transform: translateY(-50%) scale(1.2);
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
  /* حذف انیمیشن‌های سنگین در موبایل */
  *, *::before, *::after {
    animation-duration: 0.3s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.3s !important;
  }
  
  /* تنظیم body برای موبایل */
  html, body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  /* بهینه‌سازی پس‌زمینه برای موبایل */
  .bg, .overlay {
    background-attachment: scroll;
    filter: brightness(0.3) !important;
    backdrop-filter: none !important;
  }

  /* حذف ذرات در موبایل */
  .particles {
    display: none !important;
  }

  /* تنظیم دکمه ورود و عضویت برای موبایل */
  .login-register-btn, #login-register-btn {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 15px auto 10px auto;
    display: block;
    width: 90%;
    max-width: 280px;
    text-align: center;
    font-size: 1rem;
    padding: 12px 20px;
    order: 1;
  }

  /* تنظیم dropdown کاربر برای موبایل */
  .user-dropdown {
    position: fixed !important;
    top: 70px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90%;
    max-width: 280px;
  }

  /* تنظیم اطلاعات تماس برای موبایل */
  .top-contact {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 10px auto;
    width: 90%;
    max-width: 350px;
    text-align: center;
    font-size: 13px;
    padding: 10px 15px;
    order: 2;
  }

  #lang-switch {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
  }

  /* تنظیم آیکون جستجو برای موبایل */
  .search-icon {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 10px auto;
    width: 50px;
    height: 50px;
    order: 3;
  }

  .search-icon svg {
    width: 22px;
    height: 22px;
  }

  /* تنظیم تخفیف ویژه برای موبایل */
  .special-offer {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 10px auto;
    width: 90%;
    max-width: 300px;
    min-width: auto;
    font-size: 14px;
    padding: 12px 15px;
    animation: none !important;
    background: linear-gradient(135deg, #ff6b6b, #ff4757) !important;
    order: 4;
  }

  .special-offer::before {
    animation: none !important;
    font-size: 20px;
    width: 30px;
    height: 30px;
  }

  .special-offer .offer-text {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .special-offer .offer-subtitle {
    font-size: 12px;
  }

  /* تنظیم کانتینر خوشامدگویی برای موبایل */
  .welcome-container {
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 10px;
    width: 100%;
    order: 5;
  }
  
  /* تنظیم جعبه خوشامدگویی برای موبایل */
  .welcome-box {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 20px auto;
    width: 95%;
    max-width: 400px;
    padding: 20px;
    backdrop-filter: none !important;
    animation: fadeInUpMobile 0.6s ease-out forwards;
    background: rgba(0, 0, 0, 0.85) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important;
  }

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

  /* تنظیم عناوین برای موبایل */
  h1 {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
    animation: none !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
    line-height: 1.3;
  }
  
  p {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
    line-height: 1.5;
  }
  
  /* تنظیم دکمه‌ها برای موبایل */
  .button-wrap {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  a.button {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    width: auto;
    max-width: 200px;
    text-align: center;
    box-sizing: border-box;
  }

  .click-hint {
    animation: none !important;
    opacity: 0.8 !important;
    font-size: 14px;
  }

  /* تنظیم پرچم‌ها برای موبایل */
  .flags {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 15px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 90%;
    max-width: 350px;
    padding: 8px 12px;
    order: 6;
  }

  .flags img {
    width: 28px;
    height: auto;
  }

  /* تنظیم منوی اصلی برای موبایل */
  .main-menu {
    padding: 40px 15px;
  }

  .main-menu h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .main-menu ul li {
    font-size: 1.1rem;
    margin: 15px 0;
  }

  .main-menu ul li a {
    padding: 12px 18px;
    font-size: 1.1rem;
  }

  /* تنظیم overlay جستجو برای موبایل */
  .search-container {
    width: 95%;
    max-width: 400px;
  }

  #search-input {
    padding: 15px 50px 15px 15px;
    font-size: 1.2rem;
  }

  #search-close-btn {
    font-size: 2rem;
    right: 12px;
  }

  /* مخفی کردن المنت‌ها هنگام باز بودن منو */
  body.menu-is-open .flags,
  body.menu-is-open .search-icon,
  body.menu-is-open .special-offer,
  body.menu-is-open .top-contact,
  body.menu-is-open .login-register-btn {
    display: none !important;
  }

  /* تنظیم مودال ورود برای موبایل */
  .login-modal {
    width: 95%;
    max-width: 380px;
    margin: 10px;
  }

  .login-modal-body {
    padding: 20px;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .submit-btn {
    padding: 12px;
    font-size: 1rem;
  }

  .tab-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  /* تنظیم فرم ثبت نام افقی برای موبایل */
  #registration-form > div:first-child {
    flex-direction: column !important;
    gap: 0 !important;
  }

  #registration-form > div:first-child .form-group {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .welcome-box {
    padding: 20px;
    width: 95%;
  }
  h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .special-offer .offer-text {
    font-size: 1rem;
  }
  .special-offer .offer-subtitle {
    font-size: 0.8rem;
  }
  .flags img {
      width: 25px;
  }
  
  /* بهینه‌سازی اضافی برای صفحه‌های کوچک */
  .welcome-container {
    padding: 10px;
  }
  
  .button-wrap {
    gap: 10px;
  }
  
  .click-hint {
    font-size: 14px;
  }
}

/* Login/Registration Button and Modal Styles */
.login-register-btn {
  position: fixed;
  top: 20px;
  left: 320px;
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.2), rgba(255, 204, 102, 0.1));
  color: #ffcc66;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid rgba(255, 204, 102, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.login-register-btn:hover {
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.3), rgba(255, 204, 102, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 204, 102, 0.3);
}

/* Login Modal Styles */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.login-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.login-modal {
  background: linear-gradient(135deg, #2c1d0e, #1c0e04);
  border: 1px solid rgba(255, 204, 102, 0.3);
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s ease;
  overflow: hidden;
}

.login-modal-overlay.show .login-modal {
  transform: scale(1);
}

.login-modal-header {
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.2), rgba(255, 204, 102, 0.1));
  padding: 20px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 204, 102, 0.2);
}

.login-modal-header h3 {
  color: #ffcc66;
  font-size: 1.5rem;
  margin: 0;
  font-weight: bold;
}

.login-modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.3s ease;
}

.login-modal-close:hover {
  color: #ffcc66;
}

.login-modal-body {
  padding: 30px;
}

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

.form-group label {
  display: block;
  color: #ffcc66;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(255, 204, 102, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-group input:focus {
  outline: none;
  border-color: #ffcc66;
  box-shadow: 0 0 15px rgba(255, 204, 102, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ffcc66, #f59e0b);
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 204, 102, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 204, 102, 0.5);
  background: linear-gradient(135deg, #f59e0b, #ffcc66);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Registration Steps */
.registration-step {
  display: none;
}

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

/* Verification Step Styles */
.verification-info {
  text-align: center;
  margin-bottom: 20px;
  color: #ffcc66;
}

.verification-info p {
  margin: 5px 0;
  font-size: 0.9rem;
}

#verification-phone {
  font-weight: bold;
  color: #fff;
}

#verificationCode {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  font-weight: bold;
}

.verification-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.resend-btn {
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.3), rgba(255, 204, 102, 0.1));
  color: #ffcc66;
  border: 1px solid rgba(255, 204, 102, 0.5);
  padding: 15px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.resend-btn:hover {
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.4), rgba(255, 204, 102, 0.2));
  transform: translateY(-2px);
}

.resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.countdown-timer {
  text-align: center;
  margin-top: 15px;
  color: #ffcc66;
  font-size: 0.9rem;
}

/* Mobile Responsive for Login Modal */
@media (max-width: 768px) {
  .login-register-btn {
    position: static;
    margin: 10px auto;
    display: inline-block;
  }
  
  .login-modal {
    width: 95%;
    margin: 20px;
  }
  
  .login-modal-body {
    padding: 20px;
  }
  
  .form-group input {
    padding: 10px 12px;
  }
  
  .submit-btn {
    padding: 12px;
    font-size: 1rem;
  }
}

/* Modal Tabs Styles */
.modal-tabs {
  display: flex;
  background: rgba(255, 204, 102, 0.1);
  border-bottom: 1px solid rgba(255, 204, 102, 0.2);
}

.tab-btn {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  color: rgba(255, 204, 102, 0.7);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: #ffcc66;
  background: rgba(255, 204, 102, 0.1);
  border-bottom-color: #ffcc66;
}

.tab-btn:hover {
  color: #ffcc66;
  background: rgba(255, 204, 102, 0.05);
}

/* Tab Content Styles */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Login Form Specific Styles */
#login-form .form-group:last-of-type {
  margin-bottom: 25px;
}

#login-email {
  opacity: 0.8;
}

/* Mobile Responsive for Tabs */
@media (max-width: 768px) {
  .tab-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}
/* Additional Mobile Optimizations for Small Screens */
@media (max-width: 480px) {
  /* تنظیمات اضافی برای صفحه‌های کوچک */
  body {
    font-size: 14px;
  }

  /* تنظیم دکمه ورود برای صفحه‌های کوچک */
  .login-register-btn, #login-register-btn {
    width: 95%;
    max-width: 260px;
    font-size: 0.9rem;
    padding: 10px 15px;
    margin: 12px auto 8px auto;
  }

  /* تنظیم اطلاعات تماس برای صفحه‌های کوچک */
  .top-contact {
    width: 95%;
    max-width: 320px;
    font-size: 12px;
    padding: 8px 12px;
  }

  #lang-switch {
    font-size: 11px;
    margin-top: 6px;
  }

  #lang-switch span {
    margin: 0 3px;
    padding: 1px 3px;
  }

  /* تنظیم آیکون جستجو برای صفحه‌های کوچک */
  .search-icon {
    width: 45px;
    height: 45px;
  }

  .search-icon svg {
    width: 20px;
    height: 20px;
  }

  /* تنظیم تخفیف ویژه برای صفحه‌های کوچک */
  .special-offer {
    width: 95%;
    max-width: 280px;
    font-size: 13px;
    padding: 10px 12px;
  }

  .special-offer::before {
    font-size: 18px;
    width: 28px;
    height: 28px;
    top: -8px;
    right: -8px;
  }

  .special-offer .offer-text {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .special-offer .offer-subtitle {
    font-size: 11px;
  }

  /* تنظیم کانتینر خوشامدگویی برای صفحه‌های کوچک */
  .welcome-container {
    padding: 15px 8px;
  }

  /* تنظیم جعبه خوشامدگویی برای صفحه‌های کوچک */
  .welcome-box {
    width: 98%;
    max-width: 350px;
    padding: 15px;
    margin: 15px auto;
  }

  /* تنظیم عناوین برای صفحه‌های کوچک */
  h1 {
    font-size: 1.6rem !important;
    margin-bottom: 12px !important;
    line-height: 1.2;
  }

  p {
    font-size: 0.9rem !important;
    margin-bottom: 18px !important;
    line-height: 1.4;
  }

  /* تنظیم دکمه‌ها برای صفحه‌های کوچک */
  .button-wrap {
    gap: 10px;
  }

  a.button {
    padding: 6px 15px !important;
    font-size: 0.8rem !important;
    max-width: 180px;
  }

  .click-hint {
    font-size: 12px;
  }

  /* تنظیم پرچم‌ها برای صفحه‌های کوچک */
  .flags {
    width: 95%;
    max-width: 320px;
    padding: 6px 10px;
    gap: 6px;
  }

  .flags img {
    width: 24px;
  }

  /* تنظیم منوی اصلی برای صفحه‌های کوچک */
  .main-menu {
    padding: 30px 10px;
  }

  .main-menu h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .main-menu ul li {
    font-size: 1rem;
    margin: 12px 0;
  }

  .main-menu ul li a {
    padding: 10px 15px;
    font-size: 1rem;
  }

  /* تنظیم overlay جستجو برای صفحه‌های کوچک */
  .search-container {
    width: 98%;
    max-width: 350px;
  }

  #search-input {
    padding: 12px 45px 12px 12px;
    font-size: 1.1rem;
  }

  #search-close-btn {
    font-size: 1.8rem;
    right: 10px;
  }

  /* تنظیم مودال ورود برای صفحه‌های کوچک */
  .login-modal {
    width: 98%;
    max-width: 350px;
    margin: 5px;
  }

  .login-modal-header {
    padding: 15px;
  }

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

  .login-modal-body {
    padding: 15px;
  }

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

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .form-group input {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 10px;
    font-size: 0.9rem;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  /* تنظیم dropdown کاربر برای صفحه‌های کوچک */
  .user-dropdown {
    width: 95%;
    max-width: 260px;
    top: 60px !important;
  }

  .user-dropdown-content {
    min-width: auto;
    max-width: 100%;
  }

  .user-info {
    padding: 10px 12px;
  }

  .user-name {
    font-size: 0.85rem;
  }

  .dropdown-item {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .dropdown-item .icon {
    font-size: 0.8rem;
    width: 14px;
  }

  /* تنظیم فرم تایید برای صفحه‌های کوچک */
  .verification-info p {
    font-size: 0.85rem;
  }

  #verificationCode {
    font-size: 1.3rem;
    letter-spacing: 0.3rem;
  }

  .verification-actions {
    flex-direction: column;
    gap: 8px;
  }

  .resend-btn {
    padding: 10px;
    font-size: 0.9rem;
  }

  .countdown-timer {
    font-size: 0.8rem;
    margin-top: 10px;
  }
}

/* Extra Small Screens (320px and below) */
@media (max-width: 320px) {
  /* تنظیمات برای صفحه‌های خیلی کوچک */
  .welcome-box {
    width: 99%;
    padding: 12px;
    margin: 10px auto;
  }

  h1 {
    font-size: 1.4rem !important;
    margin-bottom: 10px !important;
  }

  p {
    font-size: 0.85rem !important;
    margin-bottom: 15px !important;
  }

  a.button {
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
    max-width: 160px;
  }

  .login-register-btn, #login-register-btn {
    width: auto;
    max-width: 160px;
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .special-offer {
    width: 98%;
    max-width: 260px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .special-offer .offer-text {
    font-size: 13px;
  }

  .special-offer .offer-subtitle {
    font-size: 10px;
  }

  .top-contact {
    width: 98%;
    max-width: 300px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .flags {
    width: 98%;
    max-width: 300px;
    padding: 4px 8px;
    gap: 4px;
  }

  .flags img {
    width: 20px;
  }

  .search-icon {
    width: 40px;
    height: 40px;
  }

  .search-icon svg {
    width: 18px;
    height: 18px;
  }

  .login-modal {
    width: 99%;
    max-width: 320px;
    margin: 2px;
  }

  .login-modal-body {
    padding: 12px;
  }

  .form-group input {
    padding: 6px 8px;
    font-size: 0.85rem;
  }

  .submit-btn {
    padding: 8px;
    font-size: 0.85rem;
  }
}