:root {
  --faq-primary: #3b82f6;
  --faq-secondary: #2563eb;
  --faq-accent: #8b5cf6;
  --faq-accent-2: #ec4899;
  --faq-bg-base: #050505;
  --faq-bg-card: rgba(15, 20, 30, 0.6);
  --faq-border: rgba(255, 255, 255, 0.08);
  --faq-border-glow: rgba(139, 92, 246, 0.3);
  --faq-text-main: #f8fafc;
  --faq-text-muted: #94a3b8;
  --faq-glow: rgba(59, 130, 246, 0.5);
  --faq-gradient-hero: linear-gradient(
    135deg,
    #3b82f6 0%,
    #8b5cf6 50%,
    #ec4899 100%
  );
  --faq-gradient-text: linear-gradient(to right, #60a5fa, #c084fc, #f472b6);
}
.faq-shell {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  position: relative;
  z-index: 1;
}
.faq-shell * {
  box-sizing: border-box;
}
.faq-hero-enhanced {
  position: relative;
  margin-bottom: 60px;
  padding: 80px 40px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.2) 0, transparent 50%),
    radial-gradient(
      circle at 100% 100%,
      rgba(236, 72, 153, 0.15) 0,
      transparent 50%
    ),
    rgba(10, 15, 25, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--faq-border);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.faq-hero-enhanced::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.1) 0,
    transparent 60%
  );
  animation: 20s linear infinite faq-rotate;
  z-index: 0;
  pointer-events: none;
}
@keyframes faq-rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
.faq-hero-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.8),
    transparent
  );
  opacity: 0.8;
}
.faq-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.faq-kicker {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.faq-hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: var(--faq-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: 4s linear infinite faq-text-shine;
  background-size: 200% auto;
}
@keyframes faq-text-shine {
  to {
    background-position: 200% center;
  }
}
.faq-hero-subtitle {
  font-size: 1.1rem;
  color: var(--faq-text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 90%;
}
.faq-search-wrapper {
  position: relative;
  margin-bottom: 15px;
  max-width: 600px;
}
.faq-search-clear {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: 0 0;
  border: none;
  color: var(--faq-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  border-radius: 50%;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-search-clear:hover {
  color: var(--faq-text-main);
  background: rgba(255, 255, 255, 0.1);
}
html[dir="rtl"] .faq-search-clear {
  right: auto;
  left: 20px;
}
mark.faq-highlight {
  background: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}
.faq-search-input {
  width: 100%;
  padding: 22px 24px 22px 60px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--faq-text-main);
  font-size: 1.15rem;
  font-family: inherit;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 2px 5px rgba(255, 255, 255, 0.02);
}
html[dir="rtl"] .faq-search-input {
  padding: 22px 60px 22px 24px;
}
.faq-search-input:focus {
  outline: 0;
  border-color: var(--faq-accent);
  background: rgba(0, 0, 0, 0.7);
  box-shadow:
    0 0 0 4px rgba(139, 92, 246, 0.25),
    0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}
.faq-search-wrapper i {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: #60a5fa;
  font-size: 1.2rem;
  pointer-events: none;
}
html[dir="rtl"] .faq-search-wrapper i {
  left: auto;
  right: 20px;
}
.faq-search-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 30px;
}
.faq-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.faq-highlight-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}
.faq-highlight-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--faq-border-glow);
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.faq-highlight-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--faq-text-main);
  margin-bottom: 8px;
}
.faq-highlight-card span {
  font-size: 0.9rem;
  color: var(--faq-text-muted);
  line-height: 1.4;
}
.faq-hero-panel {
  background: rgba(15, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  backdrop-filter: blur(10px);
}
.faq-panel-label {
  color: var(--faq-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.faq-hero-panel h2 {
  font-size: 1.8rem;
  color: var(--faq-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}
.faq-panel-text {
  color: var(--faq-text-muted);
  margin-bottom: 25px;
  line-height: 1.6;
}
.faq-panel-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.faq-panel-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: var(--faq-text-muted);
}
.faq-panel-list i {
  color: #60a5fa;
  margin-top: 4px;
  margin-right: 15px;
}
html[dir="rtl"] .faq-panel-list i {
  margin-right: 0;
  margin-left: 15px;
}
.faq-panel-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.faq-panel-link {
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  text-align: center;
  flex: 1;
}
.faq-panel-link.primary {
  background: var(--faq-gradient-hero);
  color: #fff;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
.faq-panel-link.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(59, 130, 246, 0.4);
}
.faq-panel-link.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--faq-text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.faq-panel-link.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.faq-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
}
.faq-sidebar {
  position: sticky;
  top: 120px;
  background: rgba(15, 20, 30, 0.5);
  border: 1px solid var(--faq-border);
  border-radius: 24px;
  padding: 30px 20px;
  backdrop-filter: blur(12px);
}
.faq-sidebar-label {
  color: var(--faq-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.faq-sidebar-head h2 {
  font-size: 1.4rem;
  color: var(--faq-text-main);
  margin-bottom: 25px;
}
.faq-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-nav-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 12px;
  color: var(--faq-text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  border: 1px solid transparent;
}
.faq-nav-item i {
  width: 24px;
  font-size: 1.1rem;
  margin-right: 15px;
  color: #60a5fa;
  transition: 0.3s;
}
html[dir="rtl"] .faq-nav-item i {
  margin-right: 0;
  margin-left: 15px;
}
.faq-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--faq-text-main);
  transform: translateX(5px);
}
html[dir="rtl"] .faq-nav-item:hover {
  transform: translateX(-5px);
}
.faq-nav-item.active {
  background: var(--faq-gradient-hero);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
  transform: translateX(5px);
}
html[dir="rtl"] .faq-nav-item.active {
  transform: translateX(-5px);
}
.faq-nav-item.active i {
  color: #fff;
}
.faq-sidebar-note {
  margin-top: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--faq-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.faq-sidebar-note i {
  color: var(--faq-accent);
  margin-top: 2px;
}
.faq-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.faq-results-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 30px;
  color: #60a5fa;
  font-weight: 600;
  align-self: flex-start;
}
.faq-results-count {
  background: #3b82f6;
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
}
.faq-category-section {
  background: rgba(15, 20, 30, 0.4);
  border: 1px solid var(--faq-border);
  border-radius: 24px;
  padding: 40px;
  scroll-margin-top: 120px;
  transition: 0.3s;
}
.faq-category-section:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.faq-category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.faq-category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(139, 92, 246, 0.2)
  );
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #60a5fa;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}
.faq-category-heading {
  flex: 1;
}
.faq-category-kicker {
  color: var(--faq-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 5px;
}
.faq-category-header h2 {
  font-size: 1.8rem;
  color: var(--faq-text-main);
  margin: 0;
}
.faq-section-count {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 20px;
  color: var(--faq-text-muted);
  font-weight: 600;
}
.faq-category-summary {
  color: var(--faq-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item-modern {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.faq-item-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--faq-gradient-hero);
  opacity: 0;
  transition: opacity 0.3s;
}
html[dir="rtl"] .faq-item-modern::before {
  left: auto;
  right: 0;
}
.faq-item-modern:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.faq-question-btn {
  width: 100%;
  text-align: right;
  background: 0 0;
  border: none;
  padding: 24px 30px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--faq-text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: 0.3s;
  font-family: inherit;
}
html[dir="ltr"] .faq-question-btn {
  text-align: left;
}
.faq-question-btn span {
  flex: 1;
}
.faq-question-btn .toggle-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item-modern.active {
  background: rgba(139, 92, 246, 0.05);
  border-color: var(--faq-border-glow);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}
.faq-item-modern.active::before {
  opacity: 1;
}
.faq-item-modern.active .faq-question-btn {
  color: #c084fc;
}
.faq-item-modern.active .toggle-icon {
  transform: rotate(180deg);
  background: var(--faq-gradient-hero);
  color: #fff;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}
.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s,
    opacity 0.4s;
  opacity: 0;
}
.faq-item-modern.active .faq-answer-panel {
  opacity: 1;
  padding: 0 30px 30px;
}
.faq-answer-panel p {
  margin: 0;
  color: var(--faq-text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}
.faq-empty-state {
  text-align: center;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}
.faq-empty-state i {
  font-size: 3rem;
  color: #60a5fa;
  margin-bottom: 20px;
  opacity: 0.5;
}
.faq-empty-state h2 {
  font-size: 1.8rem;
  color: var(--faq-text-main);
  margin-bottom: 15px;
}
.faq-empty-state p {
  color: var(--faq-text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}
.faq-empty-link {
  display: inline-block;
  padding: 14px 30px;
  background: var(--faq-gradient-hero);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}
.faq-empty-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
@media (max-width: 1200px) {
  .faq-hero-grid {
    grid-template-columns: 1fr;
  }
  .faq-hero-panel {
    margin-top: 20px;
  }
}
@media (max-width: 992px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-sidebar {
    position: static;
    top: 0;
    margin-bottom: 30px;
  }
  .faq-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .faq-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .faq-highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .faq-hero-enhanced {
    padding: 40px 20px;
  }
  .faq-highlight-grid {
    grid-template-columns: 1fr;
  }
  .faq-hero-copy h1 {
    font-size: 2rem;
  }
  .faq-category-section {
    padding: 30px 20px;
  }
  .faq-question-btn {
    padding: 20px;
    font-size: 1.05rem;
  }
  .faq-item-modern.active .faq-answer-panel {
    padding: 0 20px 20px;
  }
}

/* Professional Enhancements: Breadcrumbs & Feedback */
.faq-breadcrumb {
  margin-bottom: 25px;
  font-size: 0.95rem;
  color: var(--faq-text-muted);
}
.faq-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-breadcrumb a {
  color: #60a5fa;
  text-decoration: none;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.faq-breadcrumb a:hover {
  color: var(--faq-text-main);
}
.faq-breadcrumb .separator {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}
html[dir="rtl"] .faq-breadcrumb .separator {
  transform: scaleX(-1);
}

.faq-feedback {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--faq-text-muted);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease 0.2s;
}
.faq-item-modern.active .faq-feedback {
  opacity: 1;
  transform: translateY(0);
}
.feedback-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--faq-text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.feedback-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}
.feedback-btn.active {
  background: var(--faq-gradient-hero);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
