/* ══════════════════════════════════════
   Appify FAQ Booster — CSS
   (مدمج من MAX FAQ Booster — Khaled)
══════════════════════════════════════ */

.appify-faq {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 28px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
}

/* Head */
.appify-faq__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.appify-faq__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  text-align: right;
  position: relative;
  padding-right: 14px;
  color: #111;
}
.appify-faq__title:before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 65%;
  background: #ffe600;
  border-radius: 999px;
}
.appify-faq__hint {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
}

/* List */
.appify-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Item */
.appify-faq__item {
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.appify-faq__item.is-high .appify-faq__q {
  border-left: 3px solid #ffe600;
}

/* Question button */
.appify-faq__q {
  width: 100%;
  text-align: right;
  background: #f8f8f8;
  border: 1.5px solid #eee;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 12px;
  outline: none;
  transition: background .18s, border-color .18s, color .18s, transform .1s;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--appify-font, 'Cairo', sans-serif);
}
.appify-faq__q:hover {
  background: #111;
  border-color: #ffe600;
  color: #fff;
}
.appify-faq__q:active { transform: scale(.99); }
.appify-faq__q[aria-expanded="true"] {
  background: #ffe600;
  color: #111;
  border-color: #ffe600;
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
  border-radius: 12px 12px 0 0;
}

/* Priority badge */
.appify-faq__badge {
  font-size: 11px;
  font-weight: 800;
  background: rgba(0,0,0,.06);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.appify-faq__q[aria-expanded="true"] .appify-faq__badge {
  background: rgba(0,0,0,.1);
}

/* Arrow icon */
.appify-faq__icon {
  width: 10px; height: 10px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.appify-faq__q[aria-expanded="true"] .appify-faq__icon {
  transform: rotate(-135deg);
}

/* Answer panel */
.appify-faq__a {
  border: 1.5px solid #ffe600;
  border-top: none;
  background: #fffef3;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  animation: appify-faq-open .2s ease;
}
@keyframes appify-faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.appify-faq__acontent {
  padding: 14px 16px 16px;
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  text-align: right;
  font-family: var(--appify-font, 'Cairo', sans-serif);
}
.appify-faq__acontent p { margin: 0 0 8px; }
.appify-faq__acontent p:last-child { margin: 0; }
.appify-faq__acontent a { color: #0a6cff; }
.appify-faq__acontent strong { font-weight: 800; }

/* Dark mode */
.appify-dark .appify-faq {
  background: var(--appify-dark-surface, #1e1e1e) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.appify-dark .appify-faq__title { color: var(--appify-dark-text, #f0f0f0); }
.appify-dark .appify-faq__hint  { color: #888; }
.appify-dark .appify-faq__q {
  background: #2a2a2a;
  border-color: #444;
  color: #ddd;
}
.appify-dark .appify-faq__q:hover {
  background: #f0f0f0;
  color: #111;
}
.appify-dark .appify-faq__acontent { color: #ccc; }
.appify-dark .appify-faq__a { background: #252525; }

/* Mobile */
@media (max-width: 600px) {
  .appify-faq { padding: 14px; margin: 20px 0; }
  .appify-faq__title { font-size: 18px; }
  .appify-faq__q { font-size: 14px; padding: 11px 13px; }
  .appify-faq__acontent { font-size: 13px; }
  .appify-faq__hint { display: none; }
}
