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

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/fonts/Roboto-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/NotoSansArabic-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/fonts/NotoSansArabic-Bold.woff2") format("woff2");
}

:root {
  --ink: #090909;
  --navy: #090909;
  --navy-2: #151515;
  --gold: #f04444;
  --cream: #f7f3f3;
  --muted: #aaa3a3;
  --teal: #ff4545;
  --line: rgba(255,255,255,.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: Roboto, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.site-shell:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 580px;
  pointer-events: none;
  background: radial-gradient(circle at 76% 18%,rgba(240,68,68,.17),transparent 23%), radial-gradient(circle at 12% 0%,rgba(240,68,68,.12),transparent 30%);
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: auto;
  max-width: 1180px;
  padding: 20px 20px 12px;
  position: relative;
  z-index: 2;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .16em;
}

.brand-logo {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}

.brand-mark {
  align-items: center;
  border: 1px solid rgba(240,68,68,.7);
  border-radius: 50%;
  color: var(--gold);
  display: flex;
  font-size: 13px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav-links {
  display: none;
  gap: 24px;
}

.nav-links a {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: color .2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-toggle {
  display: none;
}

@media (max-width:699px) {
  :root {
    --mobile-nav-height: calc(98px + env(safe-area-inset-top,0px));
  }

  .site-shell {
    overflow: clip;
    padding-top: var(--mobile-nav-height);
  }

  html {
    scroll-padding-top: calc(var(--mobile-nav-height) + 24px);
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 8px;
    direction: ltr;
    padding: calc(10px + env(safe-area-inset-top,0px)) 12px 10px;
    background: rgba(13,10,10,.96);
    border-bottom: 1px solid rgba(240,68,68,.2);
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .nav .brand {
    gap: 6px;
    font-size: 12px;
    letter-spacing: .08em;
    white-space: nowrap;
    min-width: 0;
  }

  .nav .brand-logo {
    width: 132px;
  }

  .nav .brand-mark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav .lang {
    padding: 8px 12px;
    font-size: 13px;
  }

  .nav .pill {
    padding: 11px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(240,68,68,.35);
    border-radius: 12px;
    background: var(--navy-2);
    color: var(--cream);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    max-height: min(70vh,400px);
    overflow-y: auto;
    background: #151111;
    border: 1px solid rgba(240,68,68,.3);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 32px rgba(0,0,0,.45),0 0 20px rgba(240,68,68,.08);
  }

  .nav.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
    border-radius: 8px;
  }

  .nav-links a.active,.nav-links a:hover {
    background: rgba(240,68,68,.12);
  }

  .rtl-flip .nav .brand,.rtl-flip .nav-actions {
    direction: rtl;
  }

  /* Arabic: mirror the bar so the logo sits at the right edge */
  .rtl-flip .nav {
    direction: rtl;
  }
}

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid rgba(240,68,68,.65);
  border-radius: 99px;
  background: rgba(240,68,68,.14);
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  box-shadow: 0 0 16px rgba(240,68,68,.1);
}

.lang-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #ff7777;
}

.lang:hover {
  background: rgba(240,68,68,.25);
  border-color: var(--gold);
}

.lang:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.pill {
  background: var(--gold);
  border: 0;
  border-radius: 99px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 11px 15px;
}

.hero {
  margin: auto;
  max-width: 1180px;
  padding: 62px 20px 54px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  align-items: center;
  color: var(--teal);
  display: flex;
  font-size: 11px;
  font-weight: 900;
  gap: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow:before {
  background: var(--teal);
  border-radius: 50%;
  content: "";
  display: block;
  height: 7px;
  width: 7px;
}

h1 {
  font-size: clamp(48px, 14vw, 106px);
  letter-spacing: -.075em;
  line-height: .9;
  margin: 20px 0 24px;
  max-width: 850px;
}

h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 500px;
}

.hero-ctas {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border-radius: 99px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  padding: 15px 20px;
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--cream);
}

.casino-article .hero-ctas .button {
  transition: transform .2s ease, background-color .2s ease,
    border-color .2s ease, box-shadow .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .casino-article .hero-ctas .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(240,68,68,.22);
  }

  .casino-article .hero-ctas .button.primary:hover {
    background-color: #ff6262;
  }

  .casino-article .hero-ctas .button.ghost:hover {
    border-color: var(--gold);
    background-color: rgba(240,68,68,.12);
  }
}

.casino-article .hero-ctas .button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  box-shadow: 0 0 18px rgba(240,68,68,.2);
}

.casino-article .hero-ctas .button:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .casino-article .hero-ctas .button {
    transition: none;
  }

  .casino-article .hero-ctas .button:hover {
    transform: none;
  }
}

.button span {
  font-size: 17px;
}

.hero-art {
  background: linear-gradient(145deg,rgba(240,68,68,.18),rgba(240,68,68,.04));
  border: 1px solid var(--line);
  border-radius: 32px;
  height: 250px;
  margin-top: 48px;
  overflow: hidden;
  position: relative;
}

.hero-art:before {
  border: 1px solid rgba(240,68,68,.5);
  border-radius: 50%;
  content: "";
  height: 320px;
  left: 50%;
  position: absolute;
  top: 45px;
  transform: translateX(-50%);
  width: 320px;
}

.hero-art:after {
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 80px 24px rgba(240,68,68,.25);
  content: "";
  height: 116px;
  left: 50%;
  position: absolute;
  top: 108px;
  transform: translateX(-50%);
  width: 116px;
}

.pyramid {
  bottom: -15px;
  filter: drop-shadow(0 15px 18px rgba(0,0,0,.3));
  position: absolute;
  z-index: 1;
}

.pyramid.one {
  border-bottom: 155px solid rgba(8,21,38,.92);
  border-left: 78px solid transparent;
  border-right: 78px solid transparent;
  left: 11%;
}

.pyramid.two {
  border-bottom: 190px solid rgba(8,21,38,.99);
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  right: 4%;
}

.star {
  color: var(--cream);
  font-size: 18px;
  opacity: .75;
  position: absolute;
  z-index: 2;
}

.star.s1 {
  left: 15%;
  top: 37px;
}

.star.s2 {
  right: 18%;
  top: 70px;
}

.star.s3 {
  left: 32%;
  top: 82px;
}

.section {
  margin: auto;
  max-width: 1180px;
  padding: 46px 20px;
  position: relative;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section h2 {
  font-size: clamp(30px,6vw,52px);
  letter-spacing: -.06em;
  line-height: .95;
  margin: 0;
  max-width: 530px;
}

.section-note {
  color: var(--muted);
  display: none;
  font-size: 13px;
  line-height: 1.5;
  max-width: 210px;
}

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 200px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  transition: transform .25s,border-color .25s;
}

.card:hover {
  border-color: rgba(255,69,69,.65);
  transform: translateY(-4px);
}

.card-number {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.card h3 {
  font-size: 24px;
  letter-spacing: -.04em;
  margin: 50px 0 8px;
}

.card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  max-width: 220px;
}

.card-icon {
  color: var(--teal);
  font-size: 42px;
  position: absolute;
  right: 20px;
  top: 16px;
}

[dir="rtl"] .card-icon {
  left: 20px;
  right: auto;
}

.feature {
  align-items: center;
  background: #171313;
  border: 1px solid rgba(240,68,68,.3);
  border-radius: var(--radius);
  color: var(--cream);
  display: grid;
  gap: 28px;
  margin-top: 16px;
  padding: 28px 22px;
}

.feature h2 {
  margin: 0 0 14px;
}

.feature p {
  color: #b7aaaa;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.feature-visual {
  align-items: center;
  background: #241313;
  border: 1px solid rgba(240,68,68,.25);
  border-radius: 20px;
  display: flex;
  height: 190px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.phone {
  background: #090909;
  border: 6px solid #392020;
  border-radius: 25px;
  box-shadow: 0 15px 25px rgba(0,0,0,.4);
  height: 180px;
  padding: 18px 10px;
  transform: rotate(8deg);
  width: 94px;
}

.phone-screen {
  background: linear-gradient(145deg,#641d1d,#f04444);
  border-radius: 12px;
  height: 100%;
  position: relative;
}

.phone-screen:before {
  background: rgba(255,255,255,.85);
  border-radius: 99px;
  content: "";
  height: 6px;
  left: 14px;
  position: absolute;
  top: 24px;
  width: 36px;
}

.stat-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3,1fr);
  margin-top: 12px;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.stat strong {
  color: var(--gold);
  display: block;
  font-size: 27px;
  letter-spacing: -.06em;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 28px 20px 35px;
}

.footer-inner {
  color: var(--muted);
  font-size: 13px;
  margin: auto;
  max-width: 1180px;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand .brand-logo {
  width: 140px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  transition: color .2s ease;
}

.footer-links a.active {
  color: var(--cream);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}

.footer-responsible {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 740px;
  margin: 0;
  line-height: 1.65;
}

.footer-age {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border: 1px solid rgba(240,68,68,.5);
  border-radius: 50%;
  color: var(--cream);
  font-weight: 700;
}

.footer-copyright {
  white-space: nowrap;
}

.footer-support {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 48px;
  padding-top: 24px;
}

.footer-support a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #b9bec5;
}

.footer-support img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: grayscale(1) brightness(0) invert(.77);
}

.footer-support a:hover img,
.footer-support a:focus-visible img {
  filter: brightness(0) invert(1);
}

.footer-support a:hover,
.footer-support a:focus-visible {
  color: #fff;
}

.support-aware {
  width: 128px;
}

.support-therapy {
  width: 120px;
}

.support-ga span {
  font: italic 900 38px/1 Roboto, sans-serif;
  letter-spacing: -5px;
  padding-inline-end: 5px;
  border-bottom: 3px solid currentColor;
}

@media (max-width:520px) {
  .footer-support {
    gap: 14px 24px;
  }

  .support-aware {
    width: 110px;
  }

  .support-therapy {
    width: 100px;
  }
}

@media (max-width:699px) {
  .footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .footer-language {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    column-gap: 18px;
  }

  .footer-bottom {
    align-items: flex-start;
    gap: 14px;
  }
}

.page-hero {
  max-width: 1180px;
  margin: auto;
  padding: 54px 20px 26px;
}

.page-hero h1 {
  font-size: clamp(43px,10vw,86px);
  max-width: 760px;
}

.page-hero p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
}

.route-content {
  max-width: 1180px;
  margin: auto;
  padding: 0 20px 60px;
}

.download-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.download-card h3 {
  font-size: 25px;
  margin: 0 0 9px;
}

.download-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.download-card .button {
  margin-top: 20px;
}

.apk-article {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 20px 64px;
}

.apk-article section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.apk-article h2 {
  font-size: clamp(25px,5vw,38px);
  letter-spacing: -.045em;
  line-height: 1.12;
  margin: 0 0 14px;
}

.apk-article h3 {
  color: var(--cream);
  font-size: 18px;
  margin: 20px 0 8px;
}

.apk-article p,.apk-article li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.apk-article p {
  margin: 0 0 14px;
}

.apk-article ul,.apk-article ol {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding-inline-start: 22px;
}

.apk-article li strong {
  color: var(--cream);
}

.apk-lead {
  max-width: 780px;
}

.home-article .apk-lead {
  padding: 36px 0 28px;
}

.casino-article .apk-lead {
  max-width: none;
  padding: 36px 0 28px;
}

.casino-article .apk-lead > :not(.casino-hero-image) {
  max-width: 780px;
}

.casino-hero-figure {
  margin: 28px 0 0;
}

.casino-hero-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.casino-hero-image {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  margin-top: 0;
  margin-inline: 0;
  border: 1px solid rgba(240,68,68,.28);
  border-radius: 16px;
}

.apk-article.casino-article p,
.apk-article.casino-article li {
  font-size: 17px;
}

.casino-article h3 {
  font-size: 20px;
}

.casino-article .apk-table td {
  font-size: 16px;
}

.casino-article .apk-table th {
  font-size: 14px;
}

.casino-article .app-faq summary {
  font-size: 18px;
}

.casino-article section[id] {
  scroll-margin-top: 100px;
}

@media (max-width:520px) {
  .apk-article.casino-article p,
  .apk-article.casino-article li {
    font-size: 16px;
  }
}

.home-hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.register-hero-image {
  max-width: 560px;
  margin-inline: auto;
}

.home-article .security-checklist {
  list-style: none;
  padding-inline-start: 0;
}

.apk-article.home-article p,
.apk-article.home-article li {
  font-size: 17px;
}

.home-article h3 {
  font-size: 20px;
}

.home-article .apk-table td {
  font-size: 16px;
}

.home-article .apk-table th {
  font-size: 14px;
}

.home-article .app-faq summary {
  font-size: 18px;
}

@media (max-width:520px) {
  .apk-article.home-article p,
  .apk-article.home-article li {
    font-size: 16px;
  }
}

.home-toc {
  background: #121010;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 20px;
  padding: 0 18px;
}

.home-toc > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.home-toc > summary::-webkit-details-marker {
  display: none;
}

.home-toc > summary h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.home-toc > summary::after {
  content: "+";
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
}

.home-toc[open] {
  padding-bottom: 16px;
}

.home-toc[open] > summary::after {
  content: "−";
}

.home-toc > summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 4px;
}

.home-article section[id] {
  scroll-margin-top: 100px;
}

.home-illustration {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090909;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 24px;
}

.overview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: #100d0d;
  transition: transform .2s ease, border-color .2s ease;
}

.overview-card > summary {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 240px;
  padding: 64px 18px 20px;
  list-style: none;
  cursor: pointer;
}

.overview-card > summary::-webkit-details-marker {
  display: none;
}

.overview-card-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-card > summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,rgba(9,9,9,.15),rgba(9,9,9,.8) 52%,rgba(9,9,9,.96));
}

.overview-card-copy {
  width: 100%;
}

.home-article .overview-card h3 {
  margin: 0 0 10px;
  line-height: 1.4;
}

.apk-article.home-article .overview-card-copy p {
  margin: 0;
  color: #e2dada;
  font-size: 16px;
  line-height: 1.6;
}

.overview-card-arrow {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(9,9,9,.55);
  color: #fff;
}

.overview-card:hover,
.overview-card[open] {
  border-color: var(--gold);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .overview-card:hover {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .overview-card {
    transition: none;
  }
}

.overview-card[open] .overview-card-arrow {
  transform: rotate(90deg);
}

.overview-card > summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -4px;
}

.overview-card-details {
  padding: 20px 18px;
  border-top: 1px solid var(--line);
}

.overview-card-details p:last-child {
  margin-bottom: 0;
}

@media (max-width:699px) {
  .home-toc {
    padding: 0 14px;
    border-radius: 14px;
    margin-bottom: 20px;
  }

  .home-toc > summary {
    min-height: 44px;
    gap: 12px;
  }

  .home-toc > summary h2 {
    font-size: 16px;
    line-height: 1.25;
  }

  .home-toc > summary::after {
    font-size: 20px;
    line-height: 1;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-card > summary {
    min-height: 220px;
  }
}

@media (min-width: 700px) {
  .home-toc ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

.app-hero {
  display: grid;
  align-items: center;
  gap: 28px;
  max-width: none;
  padding-bottom: 28px;
}

.app-hero-copy {
  min-width: 0;
}

@media (max-width:699px) {
  .app-hero {
    padding-top: 24px;
  }
}

.app-hero-image {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  justify-self: center;
  border: 1px solid rgba(240,68,68,.28);
  border-radius: 24px;
  box-shadow: 0 0 28px rgba(240,68,68,.12);
}

@media (min-width:900px) {
  .app-hero {
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  }

  .app-hero .apk-title {
    font-size: 44px;
  }
}

.apk-title {
  font-size: clamp(34px,8vw,64px);
  letter-spacing: -.055em;
  line-height: 1.02;
  margin: 16px 0;
}

.apk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 12px;
}

.apk-download {
  position: relative;
  padding-inline-end: 48px;
}

.apk-download::after {
  content: "";
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.apk-download.is-downloading {
  background: #15834f;
  border-color: #15834f;
  color: #fff;
}

.apk-download.is-downloading::after {
  opacity: 1;
  animation: apk-download-spin .8s linear infinite;
}

@keyframes apk-download-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .apk-download.is-downloading::after {
    animation: none;
  }
}

.promo-button {
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.promo-button code {
  color: var(--gold);
  font: 700 13px Roboto, sans-serif;
  margin-inline-start: 5px;
}

.promo-button-large {
  width: 100%;
  min-height: 76px;
  margin-top: 16px;
  padding: 22px 18px;
  flex-wrap: wrap;
  gap: 10px;
  font-size: clamp(18px,3vw,24px);
  border-color: rgba(240,68,68,.5);
  background: linear-gradient(135deg,rgba(240,68,68,.16),rgba(240,68,68,.04));
  box-shadow: 0 0 24px rgba(240,68,68,.12);
}

.promo-button-large code {
  margin: 0;
  font-size: inherit;
}

.promo-button.copied {
  animation: promo-pop .32s ease-out;
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(240,68,68,.32);
}

@keyframes promo-pop {
  50% {
    transform: scale(1.045);
  }

}

.promo-toast {
  align-items: center;
  background: #171313;
  border: 1px solid rgba(240,68,68,.55);
  border-radius: 16px;
  bottom: 22px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
  color: var(--cream);
  display: flex;
  gap: 12px;
  left: 50%;
  max-width: calc(100vw - 32px);
  opacity: 0;
  overflow: hidden;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%,18px) scale(.97);
  transition: opacity .22s ease,transform .22s ease;
  z-index: 20;
}

.promo-toast.visible {
  opacity: 1;
  transform: translate(-50%,0) scale(1);
}

.promo-toast-spark {
  align-items: center;
  background: rgba(240,68,68,.16);
  border-radius: 50%;
  color: var(--gold);
  display: flex;
  flex: 0 0 34px;
  font-size: 19px;
  height: 34px;
  justify-content: center;
}

.promo-toast-copy {
  display: grid;
  font-size: 12px;
  gap: 3px;
  white-space: nowrap;
}

.promo-toast-copy strong {
  font-size: 13px;
}

.promo-toast-copy code {
  color: var(--gold);
  font: 700 13px Roboto, sans-serif;
}

.promo-toast-mark {
  color: var(--teal);
  font-size: 17px;
  margin-inline-start: 8px;
}

.promo-toast-progress {
  background: var(--gold);
  bottom: 0;
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(1);
  transform-origin: left;
  width: 100%;
}

.promo-toast.visible .promo-toast-progress {
  animation: promo-toast-time 2.8s linear forwards;
}

@keyframes promo-toast-time {
  to {
    transform: scaleX(0);
  }

}

@media (prefers-reduced-motion:reduce) {
  .promo-button.copied,.promo-toast,.promo-toast.visible .promo-toast-progress {
    animation: none;
    transition: none;
  }

}

.apk-meta {
  color: var(--muted);
  font-size: 12px!important;
}

.apk-table-wrap {
  background: #121010;
  border: 1px solid rgba(240,68,68,.28);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.2),0 0 20px rgba(240,68,68,.07);
  margin: 18px 0;
  overflow-x: auto;
}

.apk-table {
  border-collapse: collapse;
  min-width: 500px;
  text-align: start;
  width: 100%;
}

.apk-table th,.apk-table td {
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 16px 18px;
  line-height: 1.55;
  text-align: start;
}

.apk-table th {
  background: linear-gradient(180deg,#301919,#211515);
  color: #ffc1c1;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.apk-table td {
  color: #c4bdbd;
  font-size: 14px;
}

.apk-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,.025);
}

.apk-table td:first-child,.ios-article .apk-table th[scope="row"],.mirror-article .apk-table th[scope="row"] {
  color: var(--cream);
  font-weight: 700;
}

.apk-table th + th,.apk-table th + td,.apk-table td + td {
  border-inline-start: 1px solid rgba(255,255,255,.045);
}

@media (hover:hover) and (pointer:fine) {
  .apk-table tbody tr:hover {
    background: rgba(240,68,68,.065);
  }
}

.apk-table-wrap:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.apk-table tr:last-child td {
  border-bottom: 0;
}

.ios-article .apk-table th[scope="row"],.mirror-article .apk-table th[scope="row"] {
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.ios-article .apk-table tr:last-child th[scope="row"],.mirror-article .apk-table tr:last-child th[scope="row"] {
  border-bottom: 0;
}

.app-faq {
  display: grid;
  gap: 12px;
}

.mirror-links-table th:first-child {
  width: 8%;
}

.verified-status {
  color: #83dfa7;
  font-weight: 700;
}

.verified-check {
  color: #4ade80;
}

.mirror-links-table th:nth-child(2) {
  width: 46%;
}

.mirror-links-table .button {
  max-width: 100%;
  padding: 10px;
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mirror-links-table .button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.article-link {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.registration-link {
  color: #ff7777;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.registration-link:hover {
  color: #ffaaaa;
}

.registration-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.app-faq details {
  background: var(--navy-2);
  border: 1px solid rgba(240,68,68,.28);
  border-radius: 16px;
  box-shadow: 0 0 18px rgba(240,68,68,.08);
  padding: 18px;
}

.app-faq summary {
  color: var(--cream);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.app-faq summary::marker {
  color: var(--gold);
}

.app-faq details[open] summary {
  margin-bottom: 12px;
}

.app-faq details p {
  margin-bottom: 0;
}

.apk-steps {
  counter-reset: apk-step;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.apk-step {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.card,.download-card,.apk-step {
  border-color: rgba(240,68,68,.28);
  box-shadow: 0 0 18px rgba(240,68,68,.08),
    inset 0 0 24px rgba(240,68,68,.025);
  transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}

@media (hover:hover) and (pointer:fine) {
  .card:hover,.download-card:hover,.apk-step:hover {
    border-color: rgba(240,68,68,.6);
    box-shadow: 0 0 26px rgba(240,68,68,.18),
      inset 0 0 30px rgba(240,68,68,.045);
  }
}

.card:focus-visible,.download-card:focus-within,.apk-step:focus-within {
  border-color: rgba(240,68,68,.7);
  box-shadow: 0 0 26px rgba(240,68,68,.2),
    inset 0 0 30px rgba(240,68,68,.045);
}

@media (prefers-reduced-motion:reduce) {
  .card,.download-card,.apk-step {
    transition: none;
  }
}

.apk-step h3 {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0 0 6px;
}

.apk-step h3:before {
  align-items: center;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(240,68,68,.3);
  border-radius: 50%;
  color: var(--ink);
  content: counter(apk-step);
  counter-increment: apk-step;
  display: inline-flex;
  flex: 0 0 27px;
  font-size: 12px;
  height: 27px;
  justify-content: center;
}

.apk-warning {
  background: rgba(240,68,68,.08);
  border: 1px solid rgba(240,68,68,.35);
  border-radius: 16px;
  margin-top: 18px!important;
  padding: 16px;
}

@media (max-width:699px) {
  .apk-table {
    min-width: 0;
  }
  .apk-table th,.apk-table td {
    padding: 11px 8px;
    overflow-wrap: normal;
    hyphens: auto;
    white-space: normal;
    line-height: 1.5;
    vertical-align: top;
  }
  .apk-table th {
    letter-spacing: normal;
  }
}

@media (max-width:520px) {
  .apk-article p,.apk-article li {
    font-size: 14px;
  }

}

@media (min-width:700px) {
  :root {
    --desktop-nav-height: 84px;
  }

  html {
    scroll-padding-top: calc(var(--desktop-nav-height) + 24px);
  }

  .site-shell {
    padding-top: calc(var(--desktop-nav-height) + 32px);
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    max-width: none;
    height: var(--desktop-nav-height);
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    column-gap: 16px;
    padding: 20px max(20px,calc((100% - 1140px) / 2));
    background: rgba(13,10,10,.96);
    border-bottom: 1px solid rgba(240,68,68,.2);
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px,2vw,24px);
  }
  .nav > .brand {
    width: min(160px,100%);
    min-width: 0;
    justify-self: start;
  }
  .nav > .nav-actions {
    justify-self: end;
  }
  .hero {
    padding-top: 110px;
  }
  .hero-art {
    height: 350px;
    margin-left: 35%;
    margin-top: -220px;
    width: 65%;
  }
  .cards {
    grid-template-columns: repeat(3,1fr);
  }
  .card:nth-child(2) {
    transform: translateY(24px);
  }
  .card:nth-child(2):hover {
    transform: translateY(20px);
  }
  .feature {
    grid-template-columns: 1.1fr .9fr;
    padding: 48px;
  }
  .feature-visual {
    height: 250px;
  }
  .phone {
    height: 220px;
    width: 120px;
  }
  .section-note {
    display: block;
  }
  .download-grid {
    grid-template-columns: repeat(2,1fr);
  }

}

[dir="rtl"] {
  font-family: "Noto Sans Arabic", Roboto, sans-serif;
}

.rtl-flip {
  direction: rtl;
}

.rtl-flip h1,.rtl-flip h2,.rtl-flip h3 {
  letter-spacing: 0;
}

.rtl-flip .apk-title,.rtl-flip .apk-article h2 {
  line-height: 1.5;
}

.rtl-flip .hero-art {
  margin-left: 0;
  margin-right: 35%;
}

.rtl-flip .hero-copy,.rtl-flip .page-hero p {
  max-width: 560px;
}

.rtl-flip .nav-links {
  direction: rtl;
}

.rtl-flip .brand {
  letter-spacing: 0;
}

/* Visible captions for content images and linked logos. */
.app-image-figure, .logo-figure {
  margin: 0;
  min-width: 0;
}
.app-image-figure {
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
.app-image-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.overview-image-figure {
  margin: 0;
}
.overview-image-figure figcaption {
  position: absolute;
  top: 12px;
  inset-inline: 12px 42px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(9,9,9,.8);
  color: var(--cream);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
}
.logo-figure figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: center;
}

/* First screen: H1 + CTA only, centered (mobile first) */
.apk-lead.hero-first {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  min-height: calc(100vh - var(--mobile-nav-height, 98px));
  min-height: calc(100svh - var(--mobile-nav-height, 98px));
  margin: 0 auto;
  padding: 24px 0 32px;
  text-align: center;
}

.apk-lead.hero-first > * {
  max-width: 820px;
}

.hero-first .apk-title {
  margin: 0 auto;
  text-wrap: balance;
}

.apk-lead.hero-first > .hero-first-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin: 36px auto 0;
}

.hero-first-ctas .button {
  width: 100%;
  min-height: 62px;
  padding: 18px 28px;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.hero-first-ctas .apk-download {
  padding-inline: 48px;
}

.hero-intro {
  padding: 8px 0 28px;
}

.hero-intro.app-hero {
  padding-top: 8px;
}

@media (min-width:700px) {
  .apk-lead.hero-first {
    min-height: min(calc(100vh - var(--desktop-nav-height, 84px) - 32px), 760px);
    min-height: min(calc(100svh - var(--desktop-nav-height, 84px) - 32px), 760px);
    padding: 32px 0 48px;
  }

  .apk-lead.hero-first > .hero-first-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 820px;
  }

  .hero-first-ctas .button {
    width: auto;
    min-width: 240px;
    font-size: 19px;
    padding: 20px 34px;
  }
}

/* Secondary hero CTA (usually the app download): bright red outline so it stands out on black */
.hero-first-ctas .button.ghost {
  border: 2px solid var(--gold);
  background: rgba(240,68,68,.08);
  box-shadow: 0 0 18px rgba(240,68,68,.28);
}

/* Arabic pages: body sets Roboto, so the RTL shell must re-declare the Arabic face */
.rtl-flip {
  font-family: "Noto Sans Arabic", Roboto, sans-serif;
}

/* Buttons with mixed text + <bdi>: keep the label one inline run inside the flex box */
.button .button-label {
  font-size: inherit;
}

.mirror-links-table .apk-download {
  padding-inline-end: 40px;
}

.mirror-links-table .button {
  overflow-wrap: break-word;
}

/* Mobile tables: never split words mid-letter; wide tables scroll inside their wrapper */
@media (max-width:699px) {
  .apk-table th {
    text-transform: none;
    font-size: 12px;
  }
}
