/**
 * unapk — English LTR overrides
 * Loads last so the site reads as native LTR, not flipped Arabic.
 */

html,
html.ltr,
body {
  direction: ltr !important;
  text-align: left;
}

#content,
.footer,
.widget,
body,
footer,
h1, h2, h3,
.button, button, input, select, textarea {
  font-family: Nunito, "Segoe UI", "Helvetica Neue", sans-serif !important;
}

/* Meta list / specs: icon then label (LTR) */
.spec-icon {
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
}

@media (min-width: 640px) {
  .spec-label {
    margin-right: 1.5rem !important;
    margin-left: 0 !important;
  }
}

@media (min-width: 860px) {
  .spec-icon {
    margin-right: 0.75rem !important;
  }
}

/* App hero: icon left of data */
.view-app-img {
  margin-right: 1.5rem !important;
  margin-left: 0 !important;
}

@media (min-width: 992px) {
  .view-app-img {
    margin-right: 2.5rem !important;
  }
}

.view-app-rate,
.view-news-head .likes {
  margin-left: 2rem !important;
  margin-right: 0 !important;
}

/* Breadcrumbs: start from the left */
.speedbar-panel {
  float: left !important;
  text-align: left;
}

@media (min-width: 768px) {
  .speedbar-panel {
    float: left !important;
    border-bottom-left-radius: 2.25rem;
    border-bottom-right-radius: 1.125rem;
  }
}

/* Header menu icons: space after icon */
.hmenu > a .c-icon {
  margin-left: 0 !important;
  margin-right: 0.75rem !important;
}

.section-title > .c-icon,
.f-telegram a .c-icon {
  margin-left: 0 !important;
  margin-right: 1rem !important;
}

.head-cat-tools {
  margin-right: 0 !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 1rem !important;
}

/* Download block header */
.b-nobugs {
  display: flex !important;
  align-items: center !important;
}

.b-nobugs-icon {
  display: flex !important;
  align-items: center !important;
  margin-right: 0.75rem !important;
  margin-left: 0 !important;
  flex-shrink: 0;
}

/* Always show app logo (was display:none under 640px) */
.b-nobugs-icon .img {
  display: block !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  margin: 0 !important;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 0.75rem;
}

.b-nobugs-icon .img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0.75rem;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Remove overlapping blur/shield circle on the logo */
.b-nobugs-icon > i.c-green,
.b-nobugs-icon .c-green {
  display: none !important;
}

.b-nobugs-text {
  margin-right: 0 !important;
  margin-left: 0;
  text-align: left;
}

.downline-line-list {
  margin-right: 0 !important;
  margin-left: 0;
}

/* Download buttons: title left, size badge right */
.download-line-title {
  display: flex !important;
  align-items: center;
  flex-direction: row;
  text-align: left;
}

.download-line-title > span {
  float: none !important;
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.download-line-title > i {
  float: none !important;
  order: 2;
  margin: 0 0 0 0.75rem !important;
  direction: ltr !important;
}

@media (min-width: 576px) {
  .download-line-title > i {
    margin-left: 1rem !important;
    margin-right: 0 !important;
  }
}

/* Download page / interstitial */
.alert-box,
#DwnP > a,
ul.post-pagination.flex-grow li a {
  direction: ltr !important;
}

.InfoBox > * {
  float: left !important;
}

/* Rating bar fills from the left in LTR */
.rating_progress_bar > span {
  right: auto !important;
  left: 0 !important;
}

/* FAQ chevron / indicator on the right */
.link-faq::after {
  margin-right: 0 !important;
  margin-left: auto !important;
}

/* Labels on cards: top-left in LTR */
.entry-app .label {
  right: auto !important;
  left: 0 !important;
}

.comment-head {
  padding-right: 0 !important;
  padding-left: 3.75rem !important;
}

.comment-head .avatar-status {
  right: auto !important;
  left: 0 !important;
}

/* “See all” arrow faces right in LTR */
@media (max-width: 639px) {
  .btn-all > svg {
    transform: none !important;
  }
}

/* Footer logo / upper controls */
@media (min-width: 576px) {
  .footer-panel .logotype {
    right: auto !important;
    left: 0;
  }
  .footer-panel .upper {
    left: auto !important;
    right: 0;
  }
  .f-telegram a .c-icon {
    margin-left: 0 !important;
    margin-right: 1rem !important;
  }
}

/* Forms: left-aligned English */
.rtl .remodal-is-initialized,
.rtl .report-post-form,
.report-post-form {
  text-align: left !important;
}

/* ---------- Load more (post content) ---------- */
.unapk-content-collapsed {
  max-height: 9.5em;
  overflow: hidden;
  position: relative;
}

.unapk-content-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5em;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--block-bg, #fff));
}

html.darktheme .unapk-content-collapsed::after {
  background: linear-gradient(to bottom, rgba(42, 64, 85, 0), var(--block-dark-bg, #2a4055));
}

.unapk-content-expanded {
  max-height: none !important;
  overflow: visible;
}

.unapk-content-expanded::after {
  display: none !important;
}

.unapk-load-more-wrap {
  text-align: center;
  margin: 1.25rem 0 0.5rem;
}

.unapk-load-more-btn {
  display: inline-block;
  cursor: pointer;
  border: 0;
  font-weight: 700;
  color: #fff !important;
  background-color: var(--main-heading, #2ecc71);
  background-image: linear-gradient(180deg, var(--main-heading, #2ecc71) 0%, var(--main-heading, #27ae60) 100%);
  box-shadow: 0 0.25rem 0.5rem 0 rgba(69, 195, 104, 0.3);
  height: 2.75rem;
  line-height: 1.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 1.25rem;
  font-size: 0.95rem;
}

.unapk-load-more-btn:hover {
  opacity: 0.92;
}

.unapk-load-more-wrap.is-hidden {
  display: none !important;
}

/* Hide legacy Arabic New/Update badges */
.label-جديد,
.label-تحديث,
span.label[class*="جديد"],
span.label[class*="تحديث"] {
  display: none !important;
}
