/* ===================================================================
   STYLE.CSS - REFACTORED FOR MODERN LIGHT THEME
   =================================================================== */

/* =============================================
   1. GENERAL SETUP & VARIABLES
   ============================================= */
:root {
  /* --- New Light Theme Palette --- */
  --primary-color: #3498db; /* Blue - Main Accent */
  --secondary-color: #2ecc71; /* Green - Secondary Accent */
  --dark-bg: #f8f9fa; /* Very light gray for body background */
  --light-bg: #ffffff; /* White for cards and sections */
  --text-color: #343a40; /* Dark gray for primary text */
  --light-text-color: #6c757d; /* Medium gray for secondary text */
  --border-color: #e9ecef; /* Light gray for borders */
  --font-family: "Vazirmatn", sans-serif;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  padding: 0 10px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-color);
}

.loading-spinner {
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 50px auto;
}

/* =============================================
       2. HEADER & NAVIGATION
       ============================================= */
#main-nav {
  position: sticky;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 15px 0;
  background-color: var(--light-bg);
  transition: all 0.1s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}

.logo img {
  height: 50px;
  width: auto;
  margin-left: 15px;
  transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  vertical-align: middle;
}

.logo a:hover img {
  transform: scale(1.1);
}

.logo span {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo i {
  display: none;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  font-family: inherit;
  text-decoration: none;
  color: var(--light-text-color);
  margin: 0 10px;
  font-size: 1.6rem;
  transition: color 0.1s ease, transform 0.1s ease;
}

.social-icons a:hover {
  color: var(--primary-color);
}
.articles-btn {
  text-decoration: none;
  color: var(--light-text-color);
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.1s ease, transform 0.1s ease;
}
.articles-btn:hover {
 color: var(--primary-color);
}
.header-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  border: 2px solid var(--primary-color);
  padding: 8px 18px;
  border-radius: 50px;
  transition: all 0.1s ease;
  cursor: pointer;
  text-decoration: none;
  background-color: var(--primary-color);
}

.header-contact-item span {
  font-size: 1.1rem;
  transition: color 0.1s ease;
  color: #fff;
}

.header-contact-item i {
  font-size: 1.4rem;
  transition: color 0.1s ease;
  color: #fff;
}

.header-contact-item:hover {
  background-color: transparent;
}

.header-contact-item:hover span {
  color: var(--primary-color);
}

.header-contact-item:hover i {
  color: var(--secondary-color);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background-color: var(--secondary-color);
  color: #fff;
  border: 2px solid var(--secondary-color);
  padding: 8px 18px;
  font-size: 1.1rem;
  font-family: var(--font-family);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.1s ease;
}

.dropdown-btn:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.dropdown-btn i {
  transition: transform 0.1s ease;
}

.dropdown:hover .dropdown-btn i {
  transform: rotate(180deg);
}

.dropdown-content {
  right: 30%;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  background-color: var(--light-bg);
  min-width: 240px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 10px;
  padding: 10px 0;
  border: 1px solid var(--border-color);
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(10px) translateX(50%);
  pointer-events: none;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
}

.dropdown-content a:hover {
  background-color: var(--dark-bg);
  color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(50%);
  pointer-events: auto;
}

.products-menu-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.products-menu-btn:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* =============================================
       3. FLOATING CONTACT BUTTON
       ============================================= */
.floating-contact-btn {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-image: linear-gradient(45deg, var(--secondary-color), #27ae60);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
  z-index: 1000;
  animation: pulse 2s infinite;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.floating-contact-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6);
  animation-play-state: paused;
}

/* =============================================
     4. HERO CARDS SECTION - NEW LIGHT & ATTRACTIVE DESIGN
     ============================================= */
.hero-cards-section {
  padding: 20px 0;
}

.hero-cards-section .container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.hero-card {
  padding: 30px;
  border-radius: 20px;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #d7d2d2;
}

.card-content-col {
  flex: 1.2;
  text-align: right;
  align-self: center;
}

.card-image-col {
  flex: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-col img {
  max-width: 100%;
  max-height: 350px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.web-design-card .card-image-col img {
  max-height: 280px;
}

.hero-card h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-card h2 i {
  margin-left: 15px;
}

.web-design-card h2 {
  color: var(--text-color);
  text-shadow: none;
}

.hero-card p {
  place-self: center;
  border-radius: 8px;
  padding: 5px 30px;
  background-color: #ffffff;
  font-size: 1.2rem;
  color: rgb(48 48 48 / 90%);
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: center;
}

.web-design-card p {
  background-color: #7354ac;
  color: #ffffff;
}

.features-list-card {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: right;
  color: rgba(255, 255, 255, 0.9);
}

.web-design-card .features-list-card li {
  color: #444444;
  font-size: 1.2rem;
}
.web-design-card .features-list-card li i {
  color: #36cc74;
}
.features-list-card li {
  color: white;
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 1rem;
}

.features-list-card li i {
  color: #fff;
  opacity: 0.9;
  margin-left: 10px;
  margin-top: 4px;
  flex-shrink: 0;
}

.hero-card .cta-link {
  display: none;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.web-design-card .cta-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.hero-card .cta-link:hover {
  color: white;
  background-color: #4c4c4c;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Specific Card Styles - NEW GRADIENTS */
.web-design-card {
  flex: 1 1 100%;
  background-color: var(--light-bg);
}
.accounting-card {
  flex: 1 1 45%;
  background: linear-gradient(135deg, #2af598 0%, #009efd 100%);
}
.invoice-card {
  flex: 1 1 45%;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

@media (max-width: 992px) {
  .hero-card {
    flex-direction: column;
    text-align: center;
  }
  .card-image-col {
    order: -1;
    margin-bottom: 20px;
  }
  .card-content-col {
    text-align: center;
  }
  .features-list-card {
    display: inline-block;
    text-align: right;
  }
}


/* =============================================
       5. PRODUCTS SECTION (HOMEPAGE)
       ============================================= */
#products {
  padding: 50px 0;
  background-color: var(--dark-bg);
}

h1.section-title,
#products h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
}

h1.section-title::after,
#products h2::after,
.product-page-header h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-image: linear-gradient(
    to left,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 20px auto 0;
  border-radius: 2px;
}

.product-cards-container {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

.product-card {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--angle),
    var(--secondary-color),
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.card-inner {
  padding: 20px;
  background-color: var(--light-bg);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image-container {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.card-image-container img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-content {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.card-content h3 a {
  color: var(--text-color);
  text-decoration: none;
}
.card-content h3 a:hover {
  color: var(--primary-color);
}

.card-content p {
  font-size: 0.95rem;
  color: var(--light-text-color);
  line-height: 1.8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-price {
  font-size: 1.4rem;
  color: #915f00;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.discount-icon {
  font-size: 1rem;
  color: var(--secondary-color);
  transform: rotate(90deg);
}

.card-buttons {
  margin-top: auto;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  color: #fff;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  background-size: 200% 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-details:hover {
  background-position: 100% 0;
  box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
  transform: translateY(-2px);
}

.btn-details i {
  margin-left: 8px;
}
/* =============================================
       6. PRODUCT DETAIL PAGE
       ============================================= */
.product-page-header {
  padding: 30px 0;
  text-align: center;
}

.product-page-content {
  padding: 40px 0 50px 0;
  max-width: 900px;
  margin: auto;
}

.product-gallery {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.main-image-wrapper {
  position: relative;
  flex-grow: 1;
  order: 2;
  overflow: hidden;
}

.main-product-image {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 15px;
  cursor: zoom-in;
  border: 1px solid var(--border-color);
}

.gallery-nav-btn {
  position: static;
  transform: none;
  background: #fff;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.gallery-nav-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
#galleryPrevBtn {
  order: 1;
}
#galleryNextBtn {
  order: 3;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-thumbnails img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: border-color 0.1s ease;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
  border-color: var(--primary-color);
}

.product-description {
  padding: 30px;
  border-radius: 10px;
  background: #fff9f1;
  border: 1px solid var(--border-color);
  font-size: 1.1rem;
  line-height: 2.8;
  text-align: justify;
  color: var(--light-text-color);
  margin-top: 40px;
}

.product-description .fa {
  margin-left: 10px;
}
.product-description .fa-check-circle,
.product-description .fa-check-square {
  color: var(--secondary-color);
}
.product-description .fa-star {
  color: #f39c12;
}
.product-description .fa-user {
  color: var(--primary-color);
}
.product-description .fa-asterisk {
  color: var(--text-color);
}

.special-line-card {
  background: var(--light-bg);
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  padding: 20px 30px;
  font-size: 1.3rem;
  color: var(--text-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  line-height: 1.8;
}

.special-line-card strong {
  color: var(--secondary-color);
  font-weight: 700;
}

.product-licenses-container {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.product-license-card {
  background: var(--light-bg);
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  padding: 20px 30px;
  font-size: 1.1rem;
  color: var(--text-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.product-license-card strong {
  color: var(--secondary-color);
  font-weight: 700;
}
.license-discount-price {
  margin-top: 10px;
  font-size: 1.8rem;
}
.license-contact-note {
  color: var(--light-text-color);
  font-size: 1rem;
  margin-top: 15px;
}

.product-actions {
  text-align: center;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.product-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  font-family: inherit;
}

.product-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.product-actions .btn-download {
  background-image: linear-gradient(45deg, var(--primary-color), #2980b9);
  color: #fff;
}
.product-actions .btn-download:hover {
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}
.product-actions .btn-learn,
.btn-contact-support {
  background-image: linear-gradient(45deg, var(--secondary-color), #27ae60);
  color: #fff;
}
.product-actions .btn-learn:hover,
.btn-contact-support:hover {
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}
.btn-contact-support {
  margin-top: 10px;
  padding: 3px 30px;
}
.license-actions-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.btn-card-transfer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    background-image: linear-gradient(45deg, #8e44ad, #9b59b6);
    color: #fff;
    margin-top: 15px;
}
.btn-card-transfer:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4);
}
.btn-payment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  background-image: linear-gradient(45deg, #e67e22, #d35400);
  color: #fff;
  margin-top: 15px;
}
.btn-payment:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5);
}

.license-buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}


/* =============================================
       7. MODALS (GENERAL & SPECIFIC)
       ============================================= */
.modal {
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.modal-content {
  background-color: var(--light-bg);
  margin: auto;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  position: relative;
  text-align: center;
  animation: zoomIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.close-btn {
  background: #e74c3c;
  color: #fff;
  position: absolute;
  left: 20px;
  top: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.1s ease, transform 0.1s ease;
  z-index: 10;
  line-height: 1;
  border: none;
}
.close-btn:hover,
.close-btn:focus {
  background-color: #c0392b;
  transform: scale(1.1);
  color: #fff;
}
#modal-product-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}
#modal-product-title {
  margin-bottom: 15px;
  font-size: 2rem;
}
#modal-product-description {
  color: var(--light-text-color);
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.8;
}
.btn-primary-modal {
  display: inline-flex;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  background-image: linear-gradient(45deg, var(--primary-color), #2980b9);
  color: #fff;
  box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
  transition: all 0.1s ease;
  align-items: center;
  gap: 10px;
}
.btn-primary-modal:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.lightbox-modal {
  background-color: rgba(0, 0, 0, 0.9) !important;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

#lightboxPrevBtn { right: 20px; }
#lightboxNextBtn { left: 20px; }

/* Card Transfer Modal Styles */
#modal-card-title {
    margin-top: 30px !important;
    font-size: 1.4rem;
    margin: 10px;
    color: var(--text-color);
}
#modal-card-instructions {
    font-size: 1rem;
    color: var(--light-text-color);
    margin-bottom: 25px;
    line-height: 1.8;
}
#modal-card-instructions strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
}
.modal-price-highlight{
  font-size: 1.4rem;
  color: blue;
  margin: 5px;
}
.card-numbers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}
.card-number-item {
    display: flex;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    gap: 10px;
    align-items: baseline;
    flex-direction: column;
}
.card-info {
    gap: 10px;
    display: flex;
    text-align: right;
    align-items: baseline;
}
.card-bank-name {
    font-weight: bold;
    font-size: 1.1rem;
}
.card-owner-name {
    font-size: 1.2rem;
    color: var(--light-text-color);
}
.card-number-actions {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 5px 5px 5px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin: 10px auto;
    flex-direction: row-reverse;
    align-items: baseline;
}
.card-number {
    color: var(--primary-color);
    direction: ltr;
    letter-spacing: 2px;
}
.copy-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}
.copy-btn:hover {
    background: #27ae60;
}

@media (min-width: 768px) {
    .card-number-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    .card-number-actions {
        margin: 0;
    }
    .card-number {
        font-size: 1.4rem;
    }
    #cardTransferModal .modal-content{
        padding: 30px !important;
    }
}

.modal-footer-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--light-text-color);
}
.modal-footer-note strong {
    color: var(--text-color);
}
.footer-contact-links-modal {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.btn-modal-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.2s;
}
.btn-modal-contact:hover {
    opacity: 0.85;
}
.btn-modal-contact.call { background-color: #27ae60; }
.btn-modal-contact.sms { background-color: #2980b9; }

.btn-modal-contact.telegram { background-color: #2AABEE; }
.btn-modal-contact.whatsapp { background-color: #25D366; }

/* =============================================
       8. FOOTER
       ============================================= */
#contact {
  margin-top: 100px;
  background-color: #16213e;
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid #333;
}
#contact h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #f0f0f0;
}
#contact p {
  color: #a7a9be;
  margin-bottom: 30px;
}
.footer-main-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
}
.footer-contact-section {
  min-width: 300px;
}
.footer-contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}
.footer-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.footer-link-item {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  text-decoration: none;
  color: #a7a9be;
  transition: all 0.1s ease;
  flex-grow: 1;
  min-width: 400px;
  justify-content: center;
  font-size: 1.1rem;
}

.footer-link-item:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.footer-link-item i {
  font-size: 1.2rem;
  margin-left: 15px;
}
.footer-link-item .link-text {
  font-weight: 500;
  flex-grow: 1;
  text-align: center;
}
.footer-link-item .link-value {
  font-weight: bold;
  direction: ltr;
  text-align: center;
}

.enamad-logo-container {
  padding: 15px;
  border-radius: 8px;
  border: 1px solid dimgray;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.enamad-logo-container:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
}
/* =============================================
       9. ANIMATIONS & KEYFRAMES
       ============================================= */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rotate {
  to {
    --angle: 360deg;
  }
}
@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Unused keyframes were removed for clarity */

/* =============================================
       10. RESPONSIVE STYLES
       ============================================= */
@media (min-width: 576px) {
  .product-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .product-cards-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .product-cards-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  #main-nav .container {
    padding: 0 15px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .header-info {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo span,
  .social-icons {
    display: none;
  }
  .logo img {
    height: 40px;
  }
  .dropdown,
  .header-contact-item {
    display: inline-flex;
    align-items: center;
  }
  .dropdown-btn {
    font-size: 0.8rem;
  }
  .header-contact-item {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .header-contact-item span {
    display: none;
  }
  
  .product-cards-container {
    grid-template-columns: 1fr;
  }
  .floating-contact-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    left: 15px;
  }
  .footer-link-row {
    flex-direction: column;
  }
  .footer-link-item {
    width: 100%;
    max-width: 500px;
    min-width: initial;
  }
    .accounting-card,
  .invoice-card {
    flex: 1 1 100%; /* Stack on mobile */
  }
  .dropdown-btn{
    font-size: 0.9rem;
  }
  .dropdown-content {
    min-width: unset; /* حذف حداقل عرض ثابت */
    width: 90vw; /* تنظیم عرض بر اساس عرض صفحه */
    max-width: 220px; /* تعیین یک حداکثر عرض منطقی */
  }
  .dropdown-content a {
    white-space: normal; /* اجازه به متن برای شکسته‌شدن */
    overflow-wrap: break-word; /* شکستن کلمات طولانی که سرریز می‌کنند */
  }
  
  
}

.result-container p{
  margin: 10px;
}
