/* style.css */

/* --- Color Variables --- */
:root {
  /* Light Mode Variables - Enhanced Contrast */
  --background-color-light: #ffffff;
  --text-color-light: #1e1e1e;
  --primary-color-light: #006fff;
  --secondary-color-light: #f0f4f8;
  --card-background-light: #ffffff;
  --border-color-light: #d8dfe5;
  --header-background-light: rgba(255, 255, 255, 0.85);
  --footer-background-light: #1a1a1a;
  --button-primary-text-light: #ffffff;
  --button-primary-hover-light: #0056b3;
  --button-secondary-text-light: #1e1e1e;
  --button-secondary-hover-light: #006fff;
  --button-secondary-bg-hover-light: #e0e8ef;
  --input-background-light: #ffffff;
  --input-border-light: #d8dfe5;
  --particle-color-light: rgba(0, 111, 255, 0.2);

  /* Glow Colors */
  --mouse-glow-color-light: #006fff;
  --border-highlight-color-light: #006fff;
  --card-default-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
  --card-hover-shadow-light: 0 8px 25px rgba(0, 0, 0, 0.12);

  /* Default Variables (Initially set to Light Mode values) */
  --background-color: var(--background-color-light);
  --text-color: var(--text-color-light);
  --primary-color: var(--primary-color-light);
  --secondary-color: var(--secondary-color-light);
  --card-background: var(--card-background-light);
  --border-color: var(--border-color-light);
  --header-background: var(--header-background-light);
  --footer-background: var(--footer-background-light);
  --button-primary-text: var(--button-primary-text-light);
  --button-primary-hover: var(--button-primary-hover-light);
  --button-secondary-text: var(--button-secondary-text-light);
  --button-secondary-hover: var(--button-secondary-hover-light);
  --button-secondary-bg-hover: var(--button-secondary-bg-hover-light);
  --input-background: var(--input-background-light);
  --input-border: var(--input-border-light);
  --particle-color: var(--particle-color-light);
  --mouse-glow-color: var(--mouse-glow-color-light);
  --border-highlight-color: var(--border-highlight-color-light);
  --card-default-shadow: var(--card-default-shadow-light);
  --card-hover-shadow: var(--card-hover-shadow-light);

  --card-default-shadow-dark: 0 6px 18px rgba(0, 0, 0, 0.25);
  --card-hover-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Dark Mode Variables */
.dark-mode {
  --background-color: #121212;
  --text-color: #e0e0e0;
  --primary-color: #0085ff;
  --secondary-color: #1e1e1e;
  --card-background: #1e1e1e;
  --border-color: #333333;
  --header-background: rgba(18, 18, 18, 0.85);
  --footer-background: #1a1a1a;
  --button-primary-text: #ffffff;
  --button-primary-hover: #69b4ff;
  --button-secondary-text: #b0b0b0;
  --button-secondary-hover: #ffffff;
  --button-secondary-bg-hover: #333333;
  --input-background: #2a2a2a;
  --input-border: #333333;
  --particle-color: rgba(105, 180, 255, 0.3);
  --mouse-glow-color: #0085ff;
  --border-highlight-color: #69b4ff;
  --card-default-shadow: var(--card-default-shadow-dark);
  --card-hover-shadow: var(--card-hover-shadow-dark);
}

/* --- Custom Font Faces --- */
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Thin.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-UltraLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Regular.woff") format("woff");
  font-weight: 400; /* normal */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-DemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Bold.woff") format("woff");
  font-weight: 700; /* bold */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/IRANSansX-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- Base Styles --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.7;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: var(--primary-color);
  line-height: 1.3;
  margin-top: 0;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* --- Header --- */
header {
  background-color: var(--header-background);
  color: var(--text-color);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease,
    transform 0.3s ease;
}

.header-hidden {
  transform: translateY(-100%);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-color);
  flex-shrink: 0;
}

#main-nav {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

nav ul#nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-grow: 1;
  justify-content: flex-start;
  padding-left: 20px;
  padding-right: 0;
  box-sizing: border-box;
}

nav ul li {
  margin-left: 20px;
  flex-shrink: 0;
}

nav ul li#nav-login {
  margin-left: auto;
}
nav ul li#nav-register,
nav ul li#nav-dashboard,
nav ul li#nav-logout {
  margin-left: 10px;
}

nav ul li#nav-login a.btn,
nav ul li#nav-register a.btn,
nav ul li#nav-dashboard a.btn,
nav ul li#nav-logout button.btn {
  padding: 10px 20px;
  font-size: 0.95em;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 5px;
  white-space: nowrap;
}

nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 1;
  margin-right: 10px;
}

.theme-toggle-button {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.4em;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: 2;
  margin-right: 70px;
}

.theme-toggle-button:hover {
  color: var(--primary-color);
  transform: scale(1.1) rotate(15deg);
}

.menu-toggle-button {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.8em;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

.language-switcher button {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 6px 10px;
  margin: 0 3px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.language-switcher button:hover {
  background-color: var(--primary-color);
  color: var(--button-primary-text);
  border-color: var(--primary-color);
}

.language-switcher button.active-lang {
  background-color: var(--primary-color);
  color: var(--button-primary-text);
  border-color: var(--primary-color);
  cursor: default;
}
.language-switcher button:disabled {
  opacity: 0.7;
  cursor: default;
}

/* --- Sections --- */
.section {
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 100px 0;
}

.section:nth-child(odd) {
  background-color: var(--background-color);
}

.section:nth-child(even) {
  background-color: var(--secondary-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: -1px;
}
main section:last-child:nth-child(even) {
  border-bottom: none;
}

.section-particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  display: block;
  border-radius: 50%;
  background-color: var(--particle-color);
  pointer-events: none;
}

#mouse-glow {
  position: fixed;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--mouse-glow-color) 0%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

/* --- Common Card Styles --- */
.glow-card,
.plan-card {
  background-color: var(--card-background);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-default-shadow);
  transition: background-color 0.5s ease, border-color 0.3s ease,
    box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
  will-change: transform, box-shadow;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, var(--border-color) 50%, transparent);
}

.dark-mode .glow-card,
.dark-mode .plan-card {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.glow-card:hover,
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow),
    0 0 25px color-mix(in srgb, var(--border-highlight-color) 80%, transparent);
}

/* Specific to .glow-card */
.glow-card {
  cursor: pointer;
}
.glow-card.border-glow-active {
  box-shadow: 0 0 25px
    color-mix(in srgb, var(--border-highlight-color) 80%, transparent);
  border-color: color-mix(
    in srgb,
    var(--border-highlight-color) 50%,
    var(--border-color)
  );
}

#hero {
  background: linear-gradient(
    135deg,
    var(--background-color),
    var(--secondary-color)
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease;
  padding-top: 10px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.hero-section .container {
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 700;
}

.hero-section p {
  font-size: 1.3em;
  margin-bottom: 45px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  color: color-mix(in srgb, var(--text-color) 85%, var(--background-color));
}

.cta-buttons a {
  margin: 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease, border-color 0.3s ease;
  border-width: 2px;
  border-style: solid;
  cursor: pointer;
}
.btn i {
  margin-left: 8px;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--button-primary-text);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.primary-btn:hover {
  background-color: var(--button-primary-hover);
  border-color: var(--button-primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 6px 18px
    color-mix(in srgb, var(--primary-color) 50%, transparent);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--button-secondary-bg-hover);
  color: var(--button-secondary-hover);
  border-color: var(--button-secondary-bg-hover);
  transform: translateY(-4px);
}
.light-mode .secondary-btn:hover {
  color: var(--primary-color);
}
.dark-mode .secondary-btn:hover {
  color: var(--text-color);
}

.hero-graphic {
  margin-top: 10px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic img {
  max-width: 100%;
  height: auto;
  width: auto;
  opacity: 0.9;
}

h2 {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: 700;
}

.subtitle {
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 70px;
  color: color-mix(in srgb, var(--text-color) 75%, var(--background-color));
  font-weight: 400;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid,
.steps-grid {
  display: grid;
  gap: 35px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 50px;
}

.feature-item,
.step-item,
.tutorial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-item i,
.step-item i,
.tutorial-item i {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: 25px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.feature-item:hover i,
.step-item:hover i,
.tutorial-item:hover i {
  transform: scale(1.1);
}

.feature-item h3,
.step-item h3,
.tutorial-item h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

.feature-item p,
.step-item p,
.tutorial-item p {
  color: color-mix(in srgb, var(--text-color) 80%, var(--card-background));
  font-weight: 400;
  font-size: 0.95em;
}

.feature-item,
.step-item {
  padding: 45px 35px;
}

.tutorial-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 50px;
}

.tutorial-item {
  padding: 40px 30px;
  text-decoration: none;
  color: inherit;
}

.tutorial-item p {
  margin-bottom: 25px;
  flex-grow: 1;
}

.tutorial-item .btn-link-style {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 8px 15px;
  border-radius: 20px;
  background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
  color: var(--primary-color);
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 0.9em;
  align-self: center;
  max-width: max-content;
}
.dark-mode .tutorial-item .btn-link-style {
  background-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.tutorial-item:hover .btn-link-style {
  background-color: var(--primary-color);
  color: var(--button-primary-text);
}

.tutorial-item .btn-link-style i {
  font-size: 0.9em;
  margin-left: 8px;
  color: inherit;
  margin-bottom: 0;
  transition: transform 0.2s ease;
}
.tutorial-item:hover .btn-link-style i {
  transform: translateX(4px);
}

.plan-grid {
  display: grid;
  gap: 35px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: 50px;
}

.plan-card {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card.vip-plan {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary-color) 20%, transparent),
    var(--card-default-shadow);
}
.plan-card.vip-plan:hover {
  box-shadow: 0 0 30px color-mix(in srgb, var(--primary-color) 30%, transparent),
    var(--card-hover-shadow);
}
.plan-card.vip-plan h3 .fa-star {
  color: #ffc107;
  font-size: 0.8em;
  margin-left: 5px;
  vertical-align: middle;
}

.plan-card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

.plan-description {
  color: color-mix(in srgb, var(--text-color) 80%, var(--card-background));
  font-size: 0.9em;
  margin-bottom: 15px;
  line-height: 1.6;
}

.plan-attributes {
  text-align: right;
  margin-bottom: 15px;
}

.plan-attributes p {
  margin-bottom: 8px;
  font-size: 0.95em;
  color: color-mix(in srgb, var(--text-color) 80%, var(--card-background));
  display: flex;
  align-items: flex-start;
  font-weight: 400;
}

.plan-attributes p strong {
  font-weight: 600;
  color: color-mix(in srgb, var(--text-color) 95%, var(--card-background));
  margin-left: 5px;
  flex-shrink: 0;
}

.plan-attributes p::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-color);
  margin-left: 10px;
  font-size: 0.9em;
  width: 1.2em;
  text-align: center;
  flex-shrink: 0;
  margin-top: 0.15em;
}
.plan-attributes p.attr-region::before {
  content: "\f3c5";
}
.plan-attributes p.attr-type::before {
  content: "\f005";
}
.plan-attributes p.attr-code::before {
  content: "\f121";
}

.plan-customization {
  margin-bottom: 15px;
  text-align: right;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}
.plan-customization .input-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.plan-customization label {
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 0.9em;
  color: color-mix(in srgb, var(--text-color) 90%, var(--card-background));
}
.plan-customization input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--input-border);
  background-color: var(--input-background);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 0.95em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  direction: ltr;
}
.plan-customization input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--primary-color) 20%, transparent);
}
.plan-customization .input-range {
  font-size: 0.8em;
  color: color-mix(in srgb, var(--text-color) 70%, var(--card-background));
  margin-top: 3px;
  display: block;
}
.plan-notice {
  font-size: 0.85em;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-style: italic;
}
.plan-unavailable-notice {
  font-size: 0.8em;
  color: #e74c3c;
  margin-top: 8px;
}
.dark-mode .plan-unavailable-notice {
  color: #f87171;
}

.plan-card .price.dynamic-price-display {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.plan-card .price.dynamic-price-display .price-currency {
  font-size: 0.65em;
  font-weight: 500;
  color: color-mix(in srgb, var(--text-color) 70%, var(--card-background));
  margin-right: 8px;
}

.plan-card .btn {
  /* Layout */
  display: block;         /* To take full width and respect margin-top: auto */
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;       /* Pushes button to bottom of the flex column (.plan-card) */
  text-align: center;     /* Ensure text is centered as display is now block */

  /* Minor Appearance Tweaks (Keep if desired) */
  font-size: 1em;         /* Slightly different font size than base .btn */
}

.plan-grid > .plan-card:nth-child(n + 4) {
  display: none;
}
.plan-grid.show-all-plans > .plan-card {
  display: flex;
}
.show-more-container {
  text-align: center;
  margin-top: 40px;
}

.workflow-animation {
  margin-top: 80px;
  min-height: 300px;
  background-color: color-mix(
    in srgb,
    var(--secondary-color) 80%,
    var(--background-color)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  transition: background-color 0.5s ease, border-color 0.5s ease;
  font-style: italic;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}
.dark-mode .workflow-animation {
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}
.workflow-animation .packet {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  position: absolute;
  left: 10%;
  transform: translateY(-50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.workflow-animation .packet.data:nth-child(1) {
  top: 40%;
}
.workflow-animation .packet.data:nth-child(2) {
  top: 50%;
}
.workflow-animation .packet.data:nth-child(3) {
  top: 60%;
}
.workflow-animation .packet.parity {
  top: 70%;
}
.workflow-animation .packet.lost-placeholder {
  top: 50%;
}
.workflow-animation .packet.recovered {
  top: 50%;
}
.workflow-animation .packet.received:nth-child(7) {
  top: 40%;
  left: 90%;
}
.workflow-animation .packet.received:nth-child(8) {
  top: 50%;
  left: 90%;
}
.workflow-animation .packet.received:nth-child(9) {
  top: 60%;
  left: 90%;
}
.workflow-animation .data {
  background-color: var(--primary-color);
}
.workflow-animation .parity {
  background-color: #f39c12;
}
.workflow-animation .lost-placeholder {
  background-color: #e74c3c;
  opacity: 0.4;
  box-shadow: none;
}
.workflow-animation .recovered {
  background-color: #2ecc71;
}

.color-key {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.85em;
  color: #1e1e1e;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.dark-mode .color-key {
  background-color: rgba(30, 30, 30, 0.85);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.color-key .key-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.color-key .key-item:last-child {
  margin-bottom: 0;
}
.color-key .key-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.dark-mode .color-key .key-color {
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.color-key .key-color.data {
  background-color: var(--primary-color);
}
.color-key .key-color.parity {
  background-color: #f39c12;
}
.color-key .key-color.lost {
  background-color: #e74c3c;
}
.color-key .key-color.recovered {
  background-color: #2ecc71;
}
.color-key .key-color.received {
  background-color: var(--text-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-list {
  margin-top: 50px;
  text-align: left;
}
.faq-item {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--card-default-shadow);
  transition: margin-bottom 0.3s ease;
}
.faq-item.active {
  margin-bottom: 25px;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 25px;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  text-align: left;
  font-family: "Poppins", sans-serif;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}
.faq-item:last-child .faq-question {
  border-bottom: none;
}
.faq-item.active .faq-question {
  background-color: color-mix(in srgb, var(--primary-color) 5%, transparent);
  border-bottom-color: transparent;
}
.dark-mode .faq-item.active .faq-question {
  background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.faq-question span {
  flex-grow: 1;
  margin-right: 15px;
}
.faq-question i {
  font-size: 1em;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    padding 0.4s ease-out;
  padding: 0 25px;
  background-color: var(--card-background);
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 25px 25px;
}
.faq-answer p {
  margin: 0 0 15px 0;
  color: color-mix(in srgb, var(--text-color) 90%, var(--card-background));
  line-height: 1.8;
  text-align: left;
  font-weight: 400;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background-color: var(--footer-background);
  color: #b0b0b0;
  padding: 70px 0 0 0;
  font-size: 0.95em;
  line-height: 1.7;
  margin-top: 0;
  border-top: 3px solid var(--primary-color);
  font-weight: 400;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}
.footer-column {
  padding: 0 10px;
}
.footer-column h4 {
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  font-size: 1.25em;
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
}
.footer-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}
.footer-about .footer-logo {
  margin-bottom: 25px;
  max-width: 160px;
}
.footer-about .footer-logo img {
  max-width: 100%;
  height: auto;
}
.footer-about p {
  color: #a0a0a0;
  margin-bottom: 0;
  font-size: 0.98em;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 14px;
}
.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease, padding-right 0.3s ease;
  display: inline-block;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 10px;
  text-decoration: none;
}
.footer-links a:hover::before {
  content: "\f0da";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  margin-left: -10px;
  font-size: 0.9em;
}
.footer-logos .accreditation-logos,
.footer-logos .partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}
.footer-logos img {
  max-height: 55px;
  width: auto;
  max-width: 110px;
  background-color: #ffffff;
  padding: 8px;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #ddd;
}
.footer-logos a:hover img {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}
.footer-bottom {
  border-top: 1px solid #333333;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
}
.footer-bottom p {
  margin: 0;
  color: #888888;
  font-size: 0.9em;
  text-align: center;
  flex-grow: 1;
}
.footer-bottom .social-links {
  margin: 0;
  text-align: center;
  flex-shrink: 0;
}
.footer-bottom .social-links a {
  color: #888888;
  font-size: 1.5em;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.2s ease;
}
.footer-bottom .social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.animate-hero,
.animate-on-scroll .animate-item {
  opacity: 0;
  transform: translateY(25px);
}

.plan-status {
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  margin-left: 10px;
  vertical-align: middle;
  display: inline-block;
}
.status-active {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.dark-mode .status-active {
  background-color: rgba(74, 222, 128, 0.15);
  color: #86efac;
}
.status-pending {
  background-color: rgba(249, 115, 22, 0.1);
  color: #d97706;
}
.dark-mode .status-pending {
  background-color: rgba(251, 146, 60, 0.15);
  color: #fdba74;
}
.status-expired {
  background-color: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}
.dark-mode .status-expired {
  background-color: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}
.status-cancelled {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.dark-mode .status-cancelled {
  background-color: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}
.status-failed {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.dark-mode .status-failed {
  background-color: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}
.status-other {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.form-error,
.form-success {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
}
.form-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.dark-mode .form-error {
  background-color: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.form-success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.3);
}
.dark-mode .form-success {
  background-color: rgba(74, 222, 128, 0.15);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* --- RTL Adjustments --- */
.rtl-active {
  text-align: right;
  font-family: "IRANSansX", "Open Sans", sans-serif;
}
.rtl-active h1,
.rtl-active h2,
.rtl-active h3,
.rtl-active h4,
.rtl-active h5,
.rtl-active h6,
.rtl-active .logo {
  font-family: "IRANSansX", "Poppins", sans-serif;
}
.rtl-active .faq-question {
  font-family: "IRANSansX", "Poppins", sans-serif;
}

.rtl-active .btn,
.rtl-active .language-switcher button,
.rtl-active nav a {
  font-family: "IRANSansX", "Open Sans", sans-serif;
}

.rtl-active header #main-nav {
  margin-left: 0 !important;
  margin-right: 60px !important;
}
.rtl-active header nav ul#nav-list {
  justify-content: flex-start !important;
  padding-left: 0 !important;
  padding-right: 20px !important;
}
.rtl-active header nav ul#nav-list > li:not([id^="nav-"]) {
  order: 1;
  margin-left: 0 !important;
  margin-right: 20px !important;
}
.rtl-active header nav ul#nav-list > .language-switcher {
  order: 2;
  margin-left: 0 !important;
  margin-right: 15px !important;
}
.rtl-active header nav ul#nav-list > .theme-toggle-button {
  order: 3;
  margin-left: 0 !important;
  margin-right: 15px !important;
}
.rtl-active header nav ul#nav-list > li[id^="nav-login"],
.rtl-active header nav ul#nav-list > li[id^="nav-register"],
.rtl-active header nav ul#nav-list > li[id^="nav-dashboard"],
.rtl-active header nav ul#nav-list > li[id^="nav-logout"] {
  order: 4;
  margin-left: 0 !important;
}
.rtl-active header nav ul#nav-list > li#nav-login {
  margin-right: auto !important;
  margin-left: 0 !important;
}
.rtl-active header nav ul#nav-list > li#nav-register,
.rtl-active header nav ul#nav-list > li#nav-dashboard,
.rtl-active header nav ul#nav-list > li#nav-logout {
  margin-right: 10px !important;
  margin-left: 0 !important;
}

.rtl-active .logo,
.rtl-active code,
.rtl-active pre,
.rtl-active input[type="email"],
.rtl-active input[type="password"],
.rtl-active input[type="text"][name="username"],
.rtl-active input[type="text"][name="subject"] {
  text-align: left;
  direction: ltr;
  font-family: "Open Sans", sans-serif;
}
.rtl-active .auth-form input {
  text-align: left;
  direction: ltr;
  font-family: "Open Sans", sans-serif;
}
.rtl-active #contactForm input,
.rtl-active #contactForm textarea {
  text-align: right;
  direction: rtl;
  font-family: "IRANSansX", "Open Sans", sans-serif;
}
.rtl-active #contactForm input[type="email"] {
  text-align: left;
  direction: ltr;
  font-family: "Open Sans", sans-serif;
}

.rtl-active .hero-section h1,
.rtl-active .hero-section p,
.rtl-active .section > .container > h1,
.rtl-active .section > .container > h2,
.rtl-active .section > .container > .subtitle,
.rtl-active .blog-page > .container > h1,
.rtl-active .contact-page > .container > h1,
.rtl-active .contact-intro,
.rtl-active .rules-page > .container > h1,
.rtl-active .tutorial-page > .container > h1,
.rtl-active .tutorial-intro,
.rtl-active #blog-post-title,
.rtl-active .blog-post-meta,
.rtl-active .auth-form h2,
.rtl-active .show-more-container,
.rtl-active .back-to-blogs,
.rtl-active .next-steps {
  text-align: center;
  direction: rtl;
}
.rtl-active .blog-post-container #blog-post-title {
  text-align: center;
}

.rtl-active ul,
.rtl-active ol {
  padding-right: 25px;
  padding-left: 0;
  margin-right: 0;
  margin-left: 0;
}
.rtl-active .blog-text-content ul,
.rtl-active .blog-text-content ol,
.rtl-active .tutorial-section ul,
.rtl-active .tutorial-section ol,
.rtl-active .dashboard-nav ul,
.rtl-active .download-list ul,
.rtl-active .ticket-list ul {
  padding-right: 25px;
  padding-left: 0;
  margin-right: 0;
  margin-left: 0;
}
.rtl-active .dashboard-nav ul {
  padding-right: 0;
}

.rtl-active .feature-item,
.rtl-active .step-item,
.rtl-active .tutorial-item {
}
.rtl-active .feature-item h3,
.rtl-active .feature-item p,
.rtl-active .step-item h3,
.rtl-active .step-item p,
.rtl-active .tutorial-item h3,
.rtl-active .tutorial-item p,
.rtl-active .tutorial-item .btn-link-style {
  direction: rtl;
  width: 100%;
  text-align: center;
}
.rtl-active .tutorial-item .btn-link-style {
  text-align: center;
}
.rtl-active .feature-item i,
.rtl-active .step-item i,
.rtl-active .tutorial-item i {
  margin-left: 0;
  margin-right: 0;
  order: 0;
}

.rtl-active .contact-details p,
.rtl-active .dashboard-nav a {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.rtl-active .contact-details i,
.rtl-active .dashboard-nav a i {
  margin-right: 0;
  margin-left: 10px;
  order: 1;
}
.rtl-active .dashboard-nav a i {
  margin-left: 12px;
}
.rtl-active .contact-details i {
  margin-left: 15px;
  width: auto;
}

.rtl-active .contact-details p span,
.rtl-active .contact-details p a,
.rtl-active .dashboard-nav a span {
  order: 0;
  text-align: right;
}

.rtl-active .btn {
  flex-direction: row-reverse;
}
.rtl-active .btn i {
  margin-left: 0;
  margin-right: 8px;
}
.rtl-active .btn i.fa-arrow-left {
  transform: scaleX(-1);
}
.rtl-active .btn i.fa-arrow-right {
  transform: scaleX(-1);
}

.rtl-active .read-more-visual,
.rtl-active .tutorial-item .btn-link-style {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
}

.rtl-active .read-more-visual i {
  margin-left: 0;
  margin-right: 5px;
  transform: scaleX(-1);
}
.rtl-active a.blog-post:hover .read-more-visual i {
  transform: translateX(-4px) scaleX(-1);
}

.rtl-active .tutorial-item .btn-link-style i {
  margin-left: 0;
  margin-right: 5px;
}
.rtl-active .tutorial-item:hover .btn-link-style i {
  transform: translateX(4px);
}

.rtl-active .plan-card {
  text-align: right;
}
.rtl-active .plan-card h3 .fa-star {
  margin-left: 0;
  margin-right: 5px;
}
.rtl-active .plan-description {
  text-align: right;
}
.rtl-active .plan-attributes p {
  flex-direction: row-reverse;
  text-align: right;
}
.rtl-active .plan-attributes p::before {
  margin-right: 0;
  margin-left: 10px;
}
.rtl-active .plan-attributes p strong {
  margin-left: 0;
  margin-right: 5px;
  text-align: right;
}
.rtl-active .plan-customization {
  text-align: right;
}
.rtl-active .plan-customization .input-group {
  align-items: flex-start;
}
.rtl-active .plan-customization input[type="number"] {
  text-align: left;
  direction: ltr;
}
.rtl-active .plan-customization label {
  text-align: right;
}
.rtl-active .plan-customization .input-range {
  text-align: right;
}
.rtl-active .plan-notice,
.rtl-active .plan-unavailable-notice {
  text-align: right;
}
.rtl-active .plan-card .price.dynamic-price-display {
  flex-direction: row-reverse;
  justify-content: center;
}
.rtl-active .plan-card .price.dynamic-price-display .price-currency {
  margin-right: 0;
  margin-left: 8px;
}

.rtl-active .footer-column {
  text-align: right;
}
.rtl-active .footer-column h4::after {
  left: auto;
  right: 0;
}
.rtl-active .footer-links ul {
  padding-right: 0;
}
.rtl-active .footer-links a:hover {
  padding-left: 0;
  padding-right: 10px;
}
.rtl-active .footer-links a:hover::before {
  margin-right: 0;
  margin-left: 8px;
  content: "\f0d9";
}
.rtl-active .footer-bottom {
  flex-direction: row-reverse;
}
.rtl-active .footer-bottom .social-links {
  margin-right: auto;
  margin-left: 0;
}
.rtl-active .footer-bottom p {
  text-align: right;
}

.rtl-active .dashboard-nav a:hover {
  transform: translateX(-5px);
}
.rtl-active .dashboard-nav a.active-link {
  transform: translateX(0);
}
.rtl-active .download-list li {
  flex-direction: row-reverse;
}
.rtl-active .download-list li .btn-small {
  margin-left: 0;
  margin-right: auto;
  order: -1;
}
.rtl-active .download-list li > i {
  order: 1;
  margin-left: 0;
  margin-right: 12px;
}
.rtl-active .download-list li span {
  order: 0;
  margin-right: 10px;
  margin-left: 10px;
  text-align: right;
}
.rtl-active .download-list li .btn-small i.fas {
  margin-left: 0;
  margin-right: 6px;
}
.rtl-active .ticket-list li .ticket-info {
  order: 1;
  margin-right: 0;
  margin-left: 15px;
  text-align: right;
}
.rtl-active .ticket-list li .status {
  order: 0;
  margin-left: 10px;
  margin-right: 0;
}
.rtl-active .ticket-list li .btn-small {
  order: -1;
}

.rtl-active .contact-form-container h2,
.rtl-active .contact-info-container h2,
.rtl-active .blog-text-content h2,
.rtl-active .blog-text-content h3,
.rtl-active .rules-section h2,
.rtl-active .tutorial-section h2,
.rtl-active .dashboard-section h2 {
  padding-left: 0;
  padding-right: 15px;
  border-left: none;
  border-right: 3px solid var(--primary-color);
  text-align: right;
}
.rtl-active .rules-content-area {
  text-align: right;
}
.rtl-active .blog-text-content {
  text-align: right;
}

.rtl-active .faq-list {
  text-align: right;
}
.rtl-active .faq-question {
  text-align: right;
}
.rtl-active .faq-question span {
  order: 1;
  text-align: right;
  margin-left: 0;
  margin-right: 15px;
}
.rtl-active .faq-question i {
  order: 0;
  margin-left: 0;
}
.rtl-active .faq-answer p {
  text-align: right;
}

.rtl-active .form-group label {
  text-align: right;
}
.rtl-active .auth-form label,
.rtl-active #contactForm label,
.rtl-active .new-ticket-form label,
.rtl-active .extend-plan-form label,
.rtl-active .bandwidth-form label {
  display: block;
  text-align: right;
}

/* --- Responsive Design Adjustments --- */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 3.2em;
  }
  .hero-section p {
    font-size: 1.2em;
    max-width: 700px;
  }
  h2 {
    font-size: 2.6em;
  }
  .subtitle {
    margin-bottom: 60px;
  }
  .feature-grid,
  .steps-grid,
  .plan-grid,
  .tutorial-grid {
    gap: 30px;
  }
  .faq-list {
    display: block;
  }
  .section {
    padding: 80px 0;
  }
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  nav ul#nav-list {
    padding-left: 10px;
  }
  .theme-toggle-button {
    margin-right: 40px;
  }
  .rtl-active header #main-nav {
    margin-right: 30px !important;
  }
  .rtl-active .theme-toggle-button {
    margin-right: 15px !important;
    margin-left: 0 !important;
  }
  .rtl-active .language-switcher {
    margin-right: 15px !important;
    margin-left: 0 !important;
  }
  .rtl-active header nav ul#nav-list {
    padding-right: 10px !important;
  }
}

@media (max-width: 850px) and (min-width: 769px) {
  nav ul li {
    margin-left: 15px;
  }
  .rtl-active header nav ul#nav-list > li:not([id^="nav-"]) {
    margin-left: 0 !important;
    margin-right: 15px !important;
  }
  .theme-toggle-button {
    margin-right: 30px;
  }
  nav ul#nav-list {
    padding-left: 5px;
  }
  .rtl-active header #main-nav {
    margin-right: 20px !important;
  }
  .rtl-active .theme-toggle-button {
    margin-right: 10px !important;
  }
  .rtl-active .language-switcher {
    margin-right: 10px !important;
  }
  .rtl-active header nav ul#nav-list {
    padding-right: 5px !important;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  header .container {
    flex-wrap: wrap;
    position: relative;
  }

  .logo {
    margin-bottom: 0;
    order: 1;
  }

  .menu-toggle-button {
    display: block;
    order: 2;
    margin-left: auto;
  }

  .rtl-active .menu-toggle-button {
    margin-left: 0;
    margin-right: auto;
  }

  #main-nav {
    order: 3;
    width: 100%;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--header-background);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1050;
    padding: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  #main-nav.active {
    display: block;
  }

  #main-nav.active ul#nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    margin: 0;
    list-style: none;
    direction: ltr !important;
  }

  #main-nav.active ul#nav-list > * {
    width: 90%;
    max-width: 320px;
    margin: 8px auto;
    padding: 0;
    text-align: center !important;
    box-sizing: border-box;
    direction: ltr !important;
  }

  #main-nav.active ul#nav-list > .language-switcher,
  #main-nav.active ul#nav-list > .theme-toggle-button {
    order: -1;
    padding: 5px 0;
  }
  #main-nav.active ul#nav-list > .language-switcher {
    margin-top: 5px;
    margin-bottom: 5px;
  }
  #main-nav.active ul#nav-list > .theme-toggle-button {
    margin-top: 5px;
    margin-bottom: 10px;
  }

  #main-nav.active ul#nav-list > li:not([id^="nav-"]) {
    order: 1;
  }

  #main-nav.active ul#nav-list > li[id^="nav-"] {
    order: 2;
  }

  #main-nav.active ul#nav-list li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  #main-nav.active ul#nav-list li a:not(.btn):hover {
    background-color: var(--primary-color);
    color: var(--button-primary-text);
  }

  #main-nav.active ul#nav-list li a.btn,
  #main-nav.active ul#nav-list li button.btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 5px;
    box-sizing: border-box;
  }

  .rtl-active #main-nav.active ul#nav-list {
    direction: ltr !important;
    align-items: center !important;
  }

  .rtl-active #main-nav.active ul#nav-list > * {
    text-align: center !important;
    direction: ltr !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .rtl-active #main-nav.active ul#nav-list .btn i {
    margin-left: 8px !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  nav a:not(.btn)::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .rtl-active nav a:not(.btn)::after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
  }

  .hero-section h1 {
    font-size: 2.5em;
  }
  .hero-section p {
    font-size: 1.1em;
  }
  .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cta-buttons a {
    width: 90%;
    max-width: 320px;
    text-align: center;
    margin: 12px 0;
    padding: 14px 30px;
  }

  h2 {
    font-size: 2.2em;
  }
  .subtitle {
    margin-bottom: 50px;
  }
  .section {
    padding: 70px 0;
  }

  .faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 20px 20px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-grid .footer-column:nth-of-type(1) {
    grid-column: 1 / -1;
    order: 1;
    text-align: center;
  }
  .footer-grid .footer-column:nth-of-type(2) {
    order: 2;
  }
  .footer-grid .footer-column:nth-of-type(3) {
    order: 3;
  }
  .footer-grid .footer-column:nth-of-type(4) {
    grid-column: 1 / -1;
    order: 4;
    text-align: center;
  }

  .footer-column {
    padding: 0 15px;
  }
  .footer-column.footer-links ul {
    text-align: left;
  }
  .rtl-active .footer-column.footer-links ul {
    text-align: right;
  }
  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .rtl-active .footer-column h4::after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
  }
  .footer-about .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-logos .accreditation-logos,
  .footer-logos .partner-logos {
    justify-content: center;
  }
  .footer-bottom .container {
    flex-direction: column;
    justify-content: center;
  }
  .footer-bottom p {
    order: 2;
    margin-top: 15px;
    text-align: center !important;
  }
  .footer-bottom .social-links {
    order: 1;
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2.1em;
  }
  .hero-section p {
    font-size: 1em;
  }
  h2 {
    font-size: 1.9em;
  }
  .subtitle {
    font-size: 1.1em;
  }
  .feature-grid,
  .steps-grid,
  .plan-grid,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }
  .plan-card .price.dynamic-price-display {
    font-size: 1.5em;
  }
  .btn {
    padding: 12px 28px;
    font-size: 1em;
  }

  nav ul li#nav-login a.btn,
  nav ul li#nav-register a.btn,
  nav ul li#nav-dashboard a.btn,
  nav ul li#nav-logout button.btn {
    padding: 10px 18px;
    font-size: 0.9em;
  }

  #main-nav.active ul#nav-list > * {
    margin: 6px 0;
    width: 95%;
  }
  #main-nav.active ul#nav-list li a {
    padding: 10px 12px;
  }
  #main-nav.active ul#nav-list li a.btn,
  #main-nav.active ul#nav-list li button.btn {
    padding: 10px 15px;
  }

  .footer-grid {
    gap: 20px;
  }
  .footer-column h4 {
    font-size: 1.15em;
  }
  .faq-question {
    font-size: 1em;
  }
}

/* ========================================================================== */
/* SWIPER.JS SPECIFIC STYLES - REFINED BLOCK */
/* ========================================================================== */

/* Common Swiper container adjustments */
.features-slider .swiper-container,
.tutorials-slider .swiper-container,
.plans-slider .swiper-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  list-style: none;
  padding: 0;
  z-index: 1;
  /* overflow: hidden; Swiper handles this, but ensure it's not overridden to visible on mobile by mistake */
}

/* Styles only for mobile view (max-width: 768px) */
@media (max-width: 768px) {
  .features-slider .swiper-container,
  .tutorials-slider .swiper-container,
  .plans-slider .swiper-container {
    padding-top: 10px;
    padding-bottom: 45px;
    overflow: hidden; /* Explicitly hidden for mobile Swiper */
  }

  /* Ensure wrapper behaves as flex for Swiper slides on mobile */
  /* Swiper adds .swiper-wrapper-rtl if its rtl parameter is true */
  /* Since we force rtl:false in JS, Swiper should behave as LTR internally */
  .features-slider .feature-grid.swiper-wrapper,
  .tutorials-slider .tutorial-grid.swiper-wrapper,
  .plans-slider #plan-grid-container.swiper-wrapper {
    display: flex !important;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    box-sizing: content-box;
    transition-property: transform;
    /* Swiper will handle transform based on its LTR mode */
  }

  /* Individual slide styling for mobile */
  .features-slider .swiper-slide,
  .tutorials-slider .swiper-slide,
  .plans-slider .swiper-slide {
    flex-shrink: 0 !important;
    width: 85% !important; /* Adjust as needed for peeking or single centered slide */
    height: auto !important;
    box-sizing: border-box;
    /* margin-right is REMOVED - Swiper's spaceBetween will handle spacing */
    /* margin-left is also not needed if spaceBetween is used */
  }

  /* Ensure card items within slides maintain their internal styling */
  .feature-item.swiper-slide,
  .tutorial-item.swiper-slide,
  .plan-card.swiper-slide {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 0 !important; /* Reset any specific margins */
    margin-right: 0 !important; /* Reset any specific margins */
  }

  /* Swiper Navigation Buttons styling for mobile */
  .swiper-button-next,
  .swiper-button-prev {
    color: var(--primary-color) !important;
    top: auto !important;
    bottom: 0px !important;
    transform: translateY(0%) !important;
    height: 30px;
    width: 30px;
    margin-top: 0;
  }
  /* Adjust positioning if needed, Swiper's LTR mode should handle arrow direction */
  .swiper-button-next {
    right: 35%;
  }
  .swiper-button-prev {
    left: 35%;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 20px !important;
  }

  /* Swiper Pagination styling for mobile */
  .swiper-pagination {
    bottom: 5px !important;
    position: absolute;
    width: 100%;
    left: 0;
  }
  .swiper-pagination-bullet {
    background-color: var(--primary-color) !important;
    opacity: 0.4 !important;
  }
  .swiper-pagination-bullet-active {
    opacity: 1 !important;
  }

  /* Hide "Show More Plans" button on mobile */
  .plans-slider .show-more-container {
    display: none !important;
  }
}

/* ======== Desktop Styles: Restore original grid, hide Swiper elements ======== */
@media (min-width: 769px) {
  /* Reset Swiper container styles that might affect desktop layout */
  .features-slider .swiper-container,
  .tutorials-slider .swiper-container,
  .plans-slider .swiper-container {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important; /* Allow content to flow naturally for grid */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Restore original grid display for the wrappers */
  /* !!! IMPORTANT: ADJUST grid-template-columns and gap TO MATCH YOUR ORIGINAL DESIGN !!! */
  .features-slider .feature-grid.swiper-wrapper {
    /* Matches original .feature-grid */
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 35px !important;
    width: 100% !important;
    transform: none !important;
    position: static !important;
  }

  .tutorials-slider .tutorial-grid.swiper-wrapper {
    /* Matches original .tutorial-grid */
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    width: 100% !important;
    transform: none !important;
    position: static !important;
  }

  .plans-slider #plan-grid-container.swiper-wrapper {
    /* Matches original .plan-grid */
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important;
    gap: 35px !important;
    width: 100% !important;
    transform: none !important;
    position: static !important;
  }

  /* Reset Swiper slide styles to behave like normal grid items */
  .features-slider .swiper-slide,
  .tutorials-slider .swiper-slide,
  .plans-slider .swiper-slide {
    width: auto !important;
    height: auto !important;
    margin-right: 0 !important;
    flex-shrink: 1 !important;
  }

  /* Ensure cards themselves don't retain Swiper-specific sizing */
  .feature-item.swiper-slide,
  .tutorial-item.swiper-slide,
  .plan-card.swiper-slide {
    max-width: none !important;
  }

  /* Hide Swiper controls on desktop */
  .features-slider .swiper-button-next,
  .features-slider .swiper-button-prev,
  .features-slider .swiper-pagination,
  .tutorials-slider .swiper-button-next,
  .tutorials-slider .swiper-button-prev,
  .tutorials-slider .swiper-pagination,
  .plans-slider .swiper-button-next,
  .plans-slider .swiper-button-prev,
  .plans-slider .swiper-pagination {
    display: none !important;
  }

  /* Ensure "Show More Plans" button is visible on desktop for the plans section */
  .plans-slider .show-more-container {
    display: block !important;
    text-align: center;
    margin-top: 40px;
  }
}
/* ========================================================================== */
/* END OF SWIPER.JS SPECIFIC STYLES */
/* ========================================================================== */

/* --- Specific LTR Overrides for FEC Animation --- */
/* Place this AFTER your general .rtl-active .color-key rule if it exists, or at the end of CSS */
.workflow-animation {
  direction: ltr !important;
  text-align: left !important;
}

.workflow-animation .color-key {
  direction: ltr !important;
  left: 15px !important;
  right: auto !important;
  text-align: left !important;
}

.workflow-animation .color-key .key-item {
  flex-direction: row !important;
}

.workflow-animation .color-key .key-color {
  margin-right: 10px !important;
  margin-left: 0 !important;
}
