/* ----------------------------------------------------
   DFPIX Help Center & Technical Support (مركز المساعدة)
   World-class international support design standards
---------------------------------------------------- */

.help-hero {
  padding: 48px 0 36px;
  background: linear-gradient(135deg, rgba(61, 37, 165, 0.05) 0%, rgba(117, 99, 194, 0.08) 100%);
  border-bottom: 1px solid var(--line);
}

.help-hero-inner {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.help-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #e1dceb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #2e2a44;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(61, 37, 165, 0.04);
}

.help-status-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: inline-block;
  animation: pulse-dot 2.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
  }
}

.help-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: var(--purple);
  font-weight: 700;
}

.help-hero p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 auto;
  max-width: 660px;
}

.help-search-container {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
}

.help-search-input {
  width: 100%;
  padding: 16px 20px;
  padding-inline-start: 52px;
  padding-inline-end: 20px;
  font-size: 15px;
  border: 2px solid #cfc7e8;
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(61, 37, 165, 0.06);
}

.help-search-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(61, 37, 165, 0.14), 0 8px 24px rgba(61, 37, 165, 0.08);
}

.help-search-icon {
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--purple);
  pointer-events: none;
}

/* Quick Channels */
.help-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1160px;
  margin-inline: auto;
  margin-top: 36px;
}

.help-channel-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: right;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.help-channel-card:hover {
  transform: translateY(-4px);
  border-color: #c9c0f0;
  box-shadow: 0 14px 30px rgba(61, 37, 165, 0.08);
}

.help-channel-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f0eef8;
  color: var(--purple);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.help-channel-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.help-channel-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.help-channel-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 20px;
  flex: 1;
}

.help-channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.help-channel-btn.primary {
  background: var(--purple);
  color: #ffffff;
}

.help-channel-btn.primary:hover {
  background: #2b197a;
}

.help-channel-btn.whatsapp {
  background: #20b96a;
  color: #ffffff;
}

.help-channel-btn.whatsapp:hover {
  background: #179b57;
}

.help-channel-btn.outline {
  border: 1px solid #d5cdec;
  color: var(--purple);
  background: transparent;
}

.help-channel-btn.outline:hover {
  background: #f0eef8;
}

.help-channel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.help-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0eef8;
  color: var(--purple);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(61, 37, 165, 0.12);
}

/* Category Topics */
.help-topics-section {
  padding: 50px 0;
}

.help-section-title {
  text-align: center;
  margin-bottom: 35px;
}

.help-section-title h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--purple);
  margin: 0 0 10px;
  font-weight: 700;
}

.help-section-title p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.help-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.help-topic-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  text-align: right;
  transition: all 0.2s ease;
}

.help-topic-card:hover {
  border-color: #c9c0f0;
  box-shadow: 0 10px 25px rgba(61, 37, 165, 0.05);
}

.help-topic-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.help-topic-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f0eef8;
  color: var(--purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

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

.help-topic-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.help-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.help-topic-list li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b4862;
}

.help-topic-list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 4px;
  color: var(--purple);
  font-weight: bold;
  font-size: 18px;
}

/* FAQ Accordion */
.help-faq-section {
  padding: 30px 0 60px;
}

.help-faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.help-faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-faq-item:hover {
  border-color: #c9c0f0;
}

.help-faq-item[open] {
  border-color: var(--purple);
  box-shadow: 0 8px 24px rgba(61, 37, 165, 0.06);
}

.help-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.help-faq-question::-webkit-details-marker {
  display: none;
}

.help-faq-icon {
  width: 20px;
  height: 20px;
  color: var(--purple);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.help-faq-item[open] .help-faq-icon {
  transform: rotate(180deg);
}

.help-faq-answer {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
  border-top: 1px solid #f2effa;
  margin-top: 0;
  padding-top: 14px;
}

.help-faq-answer p {
  margin: 0;
}

/* Support Form Section */
.help-ticket-section {
  padding: 20px 0 70px;
}

.help-ticket-card {
  background: #f0eef8;
  border-radius: 28px;
  padding: 45px 50px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 45px;
  align-items: start;
}

.help-ticket-info h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  color: var(--purple);
  margin: 0 0 14px;
}

.help-ticket-info p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 15.5px;
  margin: 0 0 25px;
}

.help-guarantees {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.help-guarantees li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #3b3753;
}

.help-guarantees svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .help-channels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .help-topics-grid {
    grid-template-columns: 1fr;
  }
  .help-ticket-card {
    grid-template-columns: 1fr;
    padding: 32px 26px;
    gap: 30px;
  }
}

@media (max-width: 650px) {
  .help-hero {
    padding: 32px 0 24px;
  }
  .help-hero h1 {
    font-size: 28px;
  }
  .help-hero p {
    font-size: 14.5px;
    margin-bottom: 0;
  }
  .help-search-input {
    padding: 13px 16px;
    padding-inline-start: 44px;
    padding-inline-end: 16px;
    font-size: 14px;
  }
  .help-faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }
  .help-faq-answer {
    padding: 12px 18px 18px;
    font-size: 13.8px;
  }
}

/* Security Policy Modal */
.security-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 14, 53, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.security-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.security-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(61, 37, 165, 0.25);
  border: 1px solid #d5cdec;
  padding: 32px 30px;
  position: relative;
  text-align: right;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.security-modal-overlay.is-active .security-modal-dialog {
  transform: translateY(0) scale(1);
}

.security-modal-close {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e1dceb;
  background: #f8f6fc;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.security-modal-close:hover {
  background: var(--purple);
  color: #ffffff;
}

.security-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0eef8;
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.security-modal-dialog h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 10px;
}

.security-modal-dialog p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 18px;
}

.security-code-box {
  background: #1e1935;
  color: #f3f0fa;
  border-radius: 14px;
  padding: 16px 18px;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.7;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  margin-bottom: 20px;
  border: 1px solid #3d25a5;
  user-select: all;
}

.security-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
