/* ==========================================================
   new-yallashoot.com — 1xBet Egypt guide
   Brand palette from the 1xBet header: navy bars, blue buttons, green "registration"
   ========================================================== */
:root {
  --top: #163d63;           /* top header bar */
  --nav: #1d5285;           /* secondary nav bar */
  --navy-950: #0b2239;      /* footer */
  --navy-900: #10304f;
  --navy-800: #15395e;
  --navy-700: #1c4a78;
  --tile: #2b6699;          /* icon tiles in the header */
  --blue: #2b6fb3;          /* "LOG IN" */
  --blue-hover: #3580c9;
  --green: #84b431;         /* "REGISTRATION" */
  --green-hover: #93c43c;
  --green-dark: #6a9324;

  --bg: #edf1f6;
  --surface: #ffffff;
  --surface-2: #f5f8fb;
  --line: #d9e2eb;
  --text: #15283c;
  --muted: #55697e;
  --link: #1f63a8;

  --info-bg: #eaf3fc;
  --info-line: #b9d5f0;
  --warn-bg: #fff6e5;
  --warn-line: #f1cf86;
  --warn-ink: #8a5a00;

  --r: 6px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 48, 79, .06), 0 6px 20px rgba(16, 48, 79, .07);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Cairo", "Tahoma", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
svg { width: 1em; height: 1em; flex: none; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; font-weight: 800; color: var(--navy-900); }
h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.65rem); }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
[id] { scroll-margin-top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 860px; padding-block: 24px 48px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: #fff; color: var(--text); padding: 8px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #f5c542; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 20px;
  border: 0; border-radius: var(--r);
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); box-shadow: 0 2px 0 var(--green-dark); }
.btn-green:hover { background: var(--green-hover); }
.btn-blue { background: var(--blue); box-shadow: 0 2px 0 #1d5590; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-outline:hover { background: var(--info-bg); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.btn-lg { min-height: 52px; padding: 10px 26px; font-size: 16.5px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }

/* ---------- Header (two bars, like the 1xBet site) ---------- */
.hdr__top { background: var(--top); }
.hdr__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.hdr__actions { display: flex; gap: 8px; }
.hdr__nav { background: var(--nav); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.hdr__navrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.hdr__nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.hdr__nav li { margin: 0; }
.hdr__nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r);
  color: #dbe8f5; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.hdr__nav a svg { width: 17px; height: 17px; opacity: .8; }
.hdr__nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hdr__nav a[aria-current="page"] { background: var(--tile); color: #fff; }
.hdr__meta { display: inline-flex; align-items: center; gap: 6px; color: #a9c3dd; font-size: 13.5px; white-space: nowrap; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__img { height: 30px; width: auto; display: block; }
.logo__sub {
  font-size: 12.5px; font-weight: 600; color: #a9c3dd; white-space: nowrap;
  padding-inline-start: 12px; border-inline-start: 1px solid rgba(255, 255, 255, .18);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(132, 180, 49, .16), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #e3eef9;
  padding: 36px 0 44px;
}
.hero h1 { color: #fff; }
.hero a:not(.btn) { color: #9fd0ff; }
.hero__grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
.hero__grid:has(.media--hero) { grid-template-columns: 1fr 440px; }
.hero .lead { font-size: 1.08rem; color: #cfdfef; max-width: 62ch; }
.hero__hint { font-size: 15px; color: #a9c3dd; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  padding: 4px 12px; border-radius: 999px; background: rgba(132, 180, 49, .16); color: #bfe27f;
  font-size: 13.5px; font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 18px; }
.chips li {
  margin: 0; display: flex; flex-direction: column; padding: 8px 14px; min-width: 104px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px;
  font-weight: 800; color: #fff; line-height: 1.3; direction: ltr; text-align: right;
}
.chips li span { font-size: 12px; font-weight: 600; color: #a9c3dd; direction: rtl; }
.disclosure {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.7;
  padding: 12px 14px; border-radius: 8px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .08); color: #c3d6ea;
  margin-bottom: 12px;
}
.disclosure svg { width: 20px; height: 20px; margin-top: 3px; color: var(--green-hover); }
.disclosure--light { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.disclosure--light svg { color: var(--green-dark); }
.reviewed { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: #a9c3dd; }
.reviewed b { font-weight: 700; }

/* ---------- Page head (service pages) ---------- */
.pagehead { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); padding: 26px 0 30px; }
.pagehead h1 { color: #fff; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; color: #a9c3dd; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "‹"; margin-inline: 8px; opacity: .6; }
.crumbs a { color: #cfe3f7 !important; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- TOC bar ---------- */
.tocbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.tocbar .container { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding-block: 10px; scrollbar-width: thin; }
.tocbar b { white-space: nowrap; font-size: 14.5px; margin-inline-end: 6px; color: var(--navy-900); }
.tocbar a {
  white-space: nowrap; padding: 5px 12px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--navy-700); font-size: 14px; font-weight: 700; text-decoration: none;
}
.tocbar a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-block: 24px 48px; align-items: start; }
.content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--shadow);
}
.card > h2 { position: relative; padding-inline-start: 16px; }
.card > h2::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 5px;
  border-radius: 4px; background: var(--green);
}
.card > :last-child { margin-bottom: 0; }
.card--accent { background: linear-gradient(135deg, #f3f9e8, #ffffff 60%); border-color: #cfe3a9; }
.card--muted { background: var(--surface-2); box-shadow: none; }

/* ---------- Side card ---------- */
.appcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.appcard__head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.appcard__head b { display: block; color: var(--navy-900); line-height: 1.3; }
.appcard__head small { color: var(--muted); font-size: 13px; }
.appcard__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--top); color: var(--green-hover); }
.appcard__icon--green { background: var(--green); color: #fff; }
.appcard__icon svg { width: 26px; height: 26px; }
.appcard__specs { margin: 0 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.appcard__specs div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.appcard__specs dt { font-size: 12px; color: var(--muted); }
.appcard__specs dd { margin: 0; font-weight: 800; color: var(--navy-900); font-size: 14.5px; }
.appcard__list { list-style: none; padding: 0; margin: 0 0 6px; font-size: 14.5px; }
.appcard__list li { display: flex; gap: 8px; align-items: flex-start; }
.appcard__list svg { color: var(--green-dark); margin-top: 5px; }
.appcard__note { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.toc b { display: block; margin-bottom: 6px; color: var(--navy-900); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: block; padding: 7px 0; text-decoration: none; color: var(--navy-700); font-weight: 600; font-size: 15px; }
.toc a:hover { color: var(--blue); }

/* ---------- Content blocks ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.steps li {
  counter-increment: s; position: relative; margin: 0;
  padding: 12px 16px; padding-inline-start: 58px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
}
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 12px; top: 10px;
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: var(--top); color: #fff; font-weight: 800; font-size: 15px;
}
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checks li { position: relative; padding-inline-start: 30px; margin: 0; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.note {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 1.2em; padding: 14px 16px; border-radius: 10px;
  background: var(--info-bg); border: 1px solid var(--info-line);
}
.note svg { width: 22px; height: 22px; color: var(--blue); margin-top: 4px; }
.note p { margin: 0; font-size: 16px; }
.note--warn { background: var(--warn-bg); border-color: var(--warn-line); }
.note--warn svg { color: var(--warn-ink); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th { background: var(--top); color: #fff; font-weight: 700; text-align: start; padding: 11px 16px; }
.tbl td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:nth-child(even) td { background: var(--surface-2); }
.tbl td:first-child { font-weight: 700; color: var(--navy-900); }
.tbl--specs td:first-child { width: 46%; }
.tbl--specs td:last-child { font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.faq details[open] { background: var(--surface); border-color: #b9cfe4; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq summary svg { width: 20px; height: 20px; color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq__a { padding: 0 18px 14px; }
.faq__a p { margin: 0; color: var(--muted); }

/* CTA band */
.ctaband {
  border-radius: var(--r-lg); padding: 30px 28px; color: #d6e5f3; text-align: center;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(132, 180, 49, .22), transparent 70%),
    linear-gradient(180deg, var(--navy-700), var(--navy-900));
}
.ctaband h2 { color: #fff; }
.ctaband p { max-width: 64ch; margin-inline: auto; }
.ctaband .cta-row { justify-content: center; }
.ctaband__risk { font-size: 14px; color: #a9c3dd; margin: 0 auto !important; }
.ctaband a:not(.btn) { color: #9fd0ff; }

/* Sources */
.sources { columns: 2; column-gap: 28px; font-size: 15px; }
.sources li { break-inside: avoid; }

/* Prose (service pages) */
.prose h2 { margin-top: 1.6em; padding-inline-start: 14px; border-inline-start: 4px solid var(--green); }
.prose .lead { font-size: 1.1rem; color: var(--navy-800); font-weight: 600; }

/* ---------- Images & placeholders ---------- */
.media { margin: 8px 0 1.2em; }
.media__frame {
  position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line); aspect-ratio: 16 / 9;
}
.media--phone .media__frame { aspect-ratio: 9 / 18; max-width: 300px; margin-inline: auto; border-radius: 22px; }
.media.is-loaded .media__frame { aspect-ratio: auto; background: none; }
.media--square .media__frame { max-width: 460px; margin-inline: auto; }
.media--square:not(.is-loaded) .media__frame { aspect-ratio: 1 / 1; }
.media--hero:not(.is-loaded) .media__frame { aspect-ratio: 4 / 3; }
.media--phone.is-loaded .media__frame { border: 0; background: none; border-radius: 0; overflow: visible; }
.media--phone.is-loaded img { border-radius: 18px; box-shadow: 0 10px 30px rgba(16, 48, 79, .18); }
.media__frame img { width: 100%; height: 100%; object-fit: contain; }
.media.is-loaded .media__frame img { height: auto; width: auto; max-width: 100%; margin-inline: auto; }
.media__ph {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px; text-align: center; color: var(--muted);
  background: repeating-linear-gradient(-45deg, #f3f6fa 0 12px, #e9eff6 12px 24px);
  border: 2px dashed #b8c8d9; border-radius: inherit;
}
.media__ph svg { width: 38px; height: 38px; color: #8ba3bb; }
.media__ph b { direction: ltr; font-size: 13px; color: var(--navy-700); word-break: break-all; }
.media__ph small { font-size: 12.5px; line-height: 1.5; }
.media.is-empty img { display: none; }
.media.is-empty .media__ph { display: flex; }
.hero .media__frame { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.hero .media__ph { background: repeating-linear-gradient(-45deg, #1b4670 0 12px, #18406a 12px 24px); border-color: rgba(255, 255, 255, .25); color: #a9c3dd; }
.hero .media__ph b { color: #fff; }
.hero .media__ph svg { color: #7fa6cb; }
.media figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.hero__media .media { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery .media { margin: 0; }
.gallery .media--phone .media__frame { max-width: 230px; }

/* ---------- Footer ---------- */
.ftr { background: var(--navy-950); color: #a9c3dd; font-size: 15px; }
.ftr a { color: #d3e3f3; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 36px 28px; }
.ftr__brand p { margin-top: 14px; max-width: 46ch; }
.ftr__h { color: #fff; font-size: 16px; margin-bottom: 10px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.ftr__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 16px; }
.ftr__row p { margin: 0; font-size: 14px; }
.ftr__copy { margin-inline-start: auto !important; direction: ltr; }
.age {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #e05a4f; color: #fff; font-weight: 800; font-size: 14px; direction: ltr; flex: none;
}

/* ---------- Mobile sticky CTA bar ---------- */
.mbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .toc { display: none; }
  .hero__grid { grid-template-columns: 1fr 240px; gap: 28px; }
  .hero__grid:has(.media--hero) { grid-template-columns: 1fr 340px; }
}
@media (max-width: 820px) {
  .hero__grid, .hero__grid:has(.media--hero) { grid-template-columns: 1fr; }
  .hero__media { order: 2; }
  .hero__media .media--phone .media__frame { max-width: 240px; }
  .hdr__meta { display: none; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
  .has-mbar { padding-bottom: 72px; }
  .mbar {
    display: flex; gap: 8px; position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(16, 48, 79, .96); backdrop-filter: blur(6px); box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
  }
  .mbar .btn { flex: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .card { padding: 20px 16px; }
  .ctaband { padding: 24px 16px; }
  .cta-row .btn { width: 100%; }
  .checks { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery--2 { grid-template-columns: 1fr 1fr; }
  .sources { columns: 1; }
  .hide-sm { display: none; }
  .logo__sub { display: none; }
  .logo__img { height: 24px; }
  .hdr__row { min-height: 58px; }
  .btn-sm { padding: 6px 12px; }
  /* stacked tables */
  .tbl--stack thead { display: none; }
  .tbl--stack, .tbl--stack tbody, .tbl--stack tr, .tbl--stack td { display: block; width: 100%; }
  .tbl--stack tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .tbl--stack tr:first-child { border-top: 0; }
  .tbl--stack tbody tr:nth-child(even) td { background: none; }
  .tbl--stack td { border: 0; padding: 4px 14px; }
  .tbl--stack td:first-child { color: var(--navy-900); }
  .tbl--compare td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
  .tbl--specs td:first-child { width: auto; }
  .ftr__grid { grid-template-columns: 1fr; gap: 22px; }
  .ftr__copy { margin-inline-start: 0 !important; }
}
@media (max-width: 380px) {
  .gallery, .gallery--2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
