/* ============================================================
   Time4Bets Casino (time-4-bets.com) - site overrides
   Look from the Time4Bets screenshots: near black teal ground, emerald
   green buttons, neon green highlights and gold trim. Saira Semi Condensed
   headings over Noto Sans; Cairo for the Arabic version (right to left).
   ============================================================ */
:root {
  --font-display: "Saira Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Noto Sans", "Segoe UI", Arial, sans-serif;
  --tb-green: #1f8a6b;
  --tb-green-2: #24a07c;
  --tb-neon: #2fe0a0;
  --tb-neon-soft: rgba(47, 224, 160, 0.12);
  --tb-gold: #d9b45a;
  --tb-line: linear-gradient(90deg, var(--tb-neon), rgba(47, 224, 160, 0));
}
html[dir="rtl"] {
  --font-display: "Cairo", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-body: "Cairo", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --tb-line: linear-gradient(270deg, var(--tb-neon), rgba(47, 224, 160, 0));
}

body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.75;
  letter-spacing: 0;
  background: var(--color-bg);
  font-synthesis: none;
}
html[dir="rtl"] body { line-height: 1.9; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--color-border); background: var(--color-header-bg); }
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, rgba(47, 224, 160, 0), var(--tb-neon) 50%, rgba(47, 224, 160, 0));
  opacity: 0.55;
}
.site-header .site-logo img { height: 30px; width: auto; }
.nav-main--desktop a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  background: rgba(31, 138, 107, 0.16);
  border: 1px solid rgba(47, 224, 160, 0.18);
}
html[dir="rtl"] .nav-main--desktop a { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.nav-main--desktop a:hover { color: var(--tb-neon); background: var(--color-nav-hover); border-color: rgba(47, 224, 160, 0.5); }
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
}
html[dir="rtl"] .btn { letter-spacing: 0; text-transform: none; }
.btn--primary {
  background: linear-gradient(180deg, var(--tb-green-2), var(--tb-green));
  color: #fff; border: 1px solid #2bb68b;
  box-shadow: 0 6px 22px rgba(47, 224, 160, 0.18);
}
.btn--primary:hover { background: linear-gradient(180deg, #2bb68b, var(--tb-green-2)); color: #fff; }
.btn--outline { border: 1px solid rgba(47, 224, 160, 0.55); color: var(--color-text); background: transparent; }
.btn--outline:hover { background: var(--tb-neon-soft); color: var(--tb-neon); border-color: var(--tb-neon); }

/* ---------- Hero: copy and offer card ---------- */
.hero {
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 300px at 85% 30%, var(--color-hero-glow), transparent 70%),
    radial-gradient(420px 260px at 8% 100%, rgba(217, 180, 90, 0.08), transparent 70%),
    linear-gradient(180deg, var(--color-hero-gradient-start), var(--color-hero-gradient-end));
  border-bottom: 1px solid var(--color-border);
}
.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  grid-template-areas:
    "badge badge"
    "title box"
    "sub   box"
    "ctas  box";
  column-gap: 56px;
  row-gap: 18px;
  align-items: start;
  text-align: start;
  max-width: none;
  position: relative;
  z-index: 1;
}
.hero__badge {
  grid-area: badge; justify-self: start;
  color: var(--tb-neon);
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(47, 224, 160, 0.4);
  background: rgba(47, 224, 160, 0.07);
}
html[dir="rtl"] .hero__badge { letter-spacing: 0; text-transform: none; }
.hero__badge::before { background: var(--tb-neon); box-shadow: 0 0 10px rgba(47, 224, 160, 0.7); }
.hero h1 {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin: 0;
  text-transform: uppercase;
}
html[dir="rtl"] .hero h1 { text-transform: none; line-height: 1.3; letter-spacing: 0; }
.hero__subtitle { grid-area: sub; margin: 0; max-width: 62ch; color: var(--color-text-muted); }
.hero__subtitle p { margin: 0; max-width: 62ch; }
.hero__ctas { grid-area: ctas; justify-content: flex-start; margin-top: 8px; }
.hero__bonus-box {
  grid-area: box;
  align-self: center;
  margin: 0;
  padding: 30px 28px 26px;
  text-align: start;
  background: linear-gradient(165deg, #0f3a32 0%, #0b2622 55%, #071816 100%);
  border: 1px solid rgba(47, 224, 160, 0.45);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(217, 180, 90, 0.25) inset, 0 18px 50px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}
.hero__bonus-box::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--tb-gold), var(--tb-neon));
  opacity: 1;
}
.hero__bonus-box .hero__bonus-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #062019;
  background: var(--tb-gold);
  padding: 3px 12px;
  border-radius: 4px;
  margin-top: 4px;
}
html[dir="rtl"] .hero__bonus-box .hero__bonus-label { letter-spacing: 0; font-size: 0.92rem; }
.hero__bonus-box .hero__bonus-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--tb-neon);
  margin: 14px 0 12px;
}
.hero__bonus-box .hero__bonus-extra { color: #d3e4de; font-size: 0.97rem; line-height: 1.6; }
@media (max-width: 960px) {
  .hero { padding: 56px 0 50px; }
  .hero__content {
    grid-template-columns: 1fr;
    grid-template-areas: "badge" "title" "sub" "box" "ctas";
    text-align: center;
  }
  .hero__badge { justify-self: center; }
  .hero__subtitle, .hero__subtitle p { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__bonus-box { text-align: center; }
}

/* ---------- Stats band ---------- */
.stats-bar { background: var(--color-surface-alt); border-bottom: 1px solid var(--color-border); padding: 24px 0; }
.stats-bar__inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stats-bar__inner .stat {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.25rem;
  padding: 14px 12px; border: 1px solid var(--color-border);
  border-radius: 10px; background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface));
}
.stats-bar__inner .stat__value {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--tb-neon);
}
.stats-bar__inner .stat__label { font-size: 0.8rem; line-height: 1.4; color: var(--color-text-muted); text-transform: none; letter-spacing: 0.01em; }
@media (max-width: 1100px) { .stats-bar__inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-bar__inner .stat { padding: 12px 8px; }
  .stats-bar__inner .stat__value { font-size: 1.35rem; }
}

/* ---------- Sections and headings ---------- */
.content-section { padding: 76px 0; }
.content-section--alt { background: #081b19; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.content-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.9vw, 2.5rem);
  line-height: 1.15;
  color: var(--color-text);
  padding: 0 0 22px 0;
  margin: 0 0 30px;
  border: 0;
  position: relative;
  max-width: none;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: start;
}
html[dir="rtl"] .content-section h2 { text-transform: none; letter-spacing: 0; line-height: 1.4; }
.content-section h2::before { display: none !important; }
.content-section h2::after {
  content: "";
  position: absolute; inset-inline-start: 0; bottom: 0;
  width: 180px; height: 3px;
  background: var(--tb-line);
  border-radius: 2px;
  opacity: 1;
}
.content-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--tb-gold);
  margin: 40px 0 14px;
  padding: 0;
  border: 0;
  text-transform: none;
  letter-spacing: 0;
  clear: none;
  text-align: start;
}
.content-section h3::before { display: none; }
.content-section p { margin-bottom: 1.05rem; color: var(--color-text-muted); text-align: start; }
.content-section p strong, .content-section li strong { color: var(--color-text); }
.content-section ul, .content-section ol { margin-block: 0 1.2rem; margin-inline: 1.2rem 0; padding: 0; }
.content-section li { margin-bottom: 0.5rem; color: var(--color-text-muted); text-align: start; }
.content-section li::marker { color: var(--tb-neon); }
.content-section p, .content-section li { max-width: calc(74ch + 320px); }
@media (max-width: 900px) {
  .content-section { padding: 56px 0; }
  .content-section p, .content-section li { max-width: 74ch; }
}

/* ---------- Supplied phone screenshots beside the text ---------- */
.content-section .section-illus--transparent {
  max-width: 280px; width: 280px; height: auto;
  background: transparent; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(47, 224, 160, 0.22), 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 40px rgba(47, 224, 160, 0.08);
}
.content-section .section-illus--right { float: right; margin: 4px 0 22px 36px; }
.content-section .section-illus--left { float: left; margin: 4px 36px 22px 0; }
html[dir="rtl"] .content-section .section-illus--right { float: left; margin: 4px 36px 22px 0; }
html[dir="rtl"] .content-section .section-illus--left { float: right; margin: 4px 0 22px 36px; }
.content-section h3 + .section-illus { clear: both; }
@media (max-width: 900px) {
  .content-section .section-illus--transparent,
  .content-section .section-illus--right,
  .content-section .section-illus--left,
  html[dir="rtl"] .content-section .section-illus--right,
  html[dir="rtl"] .content-section .section-illus--left {
    float: none; display: block; width: 240px; max-width: 240px; margin: 12px auto 24px;
  }
}

/* ---------- Designed fact tables ---------- */
.tb-table-wrap {
  clear: both;
  margin: 28px 0 30px;
  border: 1px solid var(--color-border-2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}
.tb-table-wrap .tb-table-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  padding: 13px 20px;
  border-bottom: 1px solid var(--color-border-2);
  background: linear-gradient(90deg, rgba(31, 138, 107, 0.45), rgba(31, 138, 107, 0.05));
  margin: 0;
  max-width: none;
}
html[dir="rtl"] .tb-table-wrap .tb-table-title { background: linear-gradient(270deg, rgba(31, 138, 107, 0.45), rgba(31, 138, 107, 0.05)); letter-spacing: 0; }
.tb-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content-section .tb-table-wrap table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin: 0;
  border: 0;
  display: table;
  font-size: 0.95rem;
}
.content-section .tb-table-wrap th,
.content-section .tb-table-wrap td {
  padding: 12px 16px;
  text-align: start;
  vertical-align: top;
  border: 1px solid var(--color-border);
  white-space: normal;
}
.content-section .tb-table-wrap thead th {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #062019;
  background: var(--tb-neon);
  border-color: #27c48c;
}
html[dir="rtl"] .content-section .tb-table-wrap thead th { letter-spacing: 0; font-size: 0.9rem; }
.content-section .tb-table-wrap tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025); }
.content-section .tb-table-wrap tbody tr:hover td { background: rgba(47, 224, 160, 0.06); color: var(--color-text); }
.content-section .tb-table-wrap td:first-child { color: var(--color-text); font-weight: 600; }
.tb-table-note {
  font-size: 0.9rem;
  color: var(--color-text-faint) !important;
  padding: 12px 20px;
  margin: 0 !important;
  border-top: 1px solid var(--color-border);
  max-width: none !important;
}
@media (max-width: 600px) {
  .content-section .tb-table-wrap table { min-width: 520px; font-size: 0.9rem; }
  .content-section .tb-table-wrap th, .content-section .tb-table-wrap td { padding: 10px 12px; }
}

/* ---------- Game grid with real thumbnails ---------- */
.tb-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 34px;
}
.tb-tile {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tb-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.tb-tile__info { display: block; padding: 9px 10px 11px; border-top: 2px solid var(--tb-green); text-align: start; }
.tb-tile__name { display: block; color: var(--color-text); font-weight: 600; font-size: 0.86rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-tile__provider { display: block; color: var(--color-text-faint); font-size: 0.75rem; line-height: 1.3; margin-top: 2px; }
.tb-tile:hover { transform: translateY(-3px); border-color: var(--tb-neon); box-shadow: 0 10px 26px rgba(47, 224, 160, 0.16); }
.tb-tile:hover .tb-tile__name { color: var(--tb-neon); }
@media (max-width: 1100px) { .tb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 460px) { .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Callout ---------- */
.money-note {
  clear: both;
  border: 1px solid rgba(217, 180, 90, 0.45);
  border-inline-start: 4px solid var(--tb-gold);
  background: rgba(217, 180, 90, 0.06);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 8px;
}
.money-note p { margin-bottom: 0.6rem; }
.money-note p:last-child { margin-bottom: 0; }

/* ---------- Numbered steps ---------- */
.content-section ol.tb-steps { display: flow-root; counter-reset: tbstep; list-style: none; margin: 18px 0 26px; padding: 0; }
.tb-steps li { counter-increment: tbstep; position: relative; padding-block: 3px; padding-inline: 52px 0; margin-bottom: 16px; }
.tb-steps li::before {
  content: counter(tbstep);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: #062019;
  background: var(--tb-neon);
  border-radius: 8px;
}

/* ---------- FAQ accordion ---------- */
.tb-faq { clear: both; margin: 18px 0 8px; }
.tb-faq details {
  border: 1px solid var(--color-border-2);
  border-radius: 8px;
  background: var(--color-surface);
  margin-bottom: 10px;
  overflow: hidden;
}
.tb-faq summary {
  cursor: pointer;
  list-style: none;
  padding-block: 16px; padding-inline: 20px 52px;
  position: relative;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text);
  text-align: start;
}
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq summary::after {
  content: "+";
  position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--tb-neon);
}
.tb-faq details[open] summary::after { content: "\2212"; }
.tb-faq details[open] { border-color: rgba(47, 224, 160, 0.45); }
.tb-faq details[open] summary { border-bottom: 1px solid var(--color-border); color: var(--tb-neon); }
.tb-faq details p { padding: 14px 20px 16px; margin: 0; }

/* ---------- CTA banner, footer, sticky ---------- */
.cta-banner {
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(47, 224, 160, 0.12), transparent 70%),
    var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.cta-banner h2 { text-align: center; }
.cta-banner h2::after { left: 50%; right: auto; transform: translateX(-50%); inset-inline-start: auto; background: linear-gradient(90deg, rgba(47,224,160,0), var(--tb-neon), rgba(47,224,160,0)); }
html[dir="rtl"] .cta-banner h2::after { left: 50%; right: auto; }
.cta-banner p { margin-left: auto; margin-right: auto; max-width: 760px; text-align: center; }
.site-footer { border-top: 2px solid var(--tb-green); background: var(--color-bg-2); }
.site-footer h5 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tb-gold); }
html[dir="rtl"] .site-footer h5 { letter-spacing: 0; }
.site-footer .site-logo img { height: 28px; width: auto; }
.sticky-cta { border-top: 2px solid var(--tb-green); }
.sticky-cta__text span:first-child { font-family: var(--font-display); font-weight: 700; }
.sticky-cta__bonus { color: var(--tb-neon); font-weight: 700; }

/* ---------- Language flags ---------- */
.lang-flag--ae {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><rect width='60' height='10' fill='%2300732f'/><rect y='10' width='60' height='10' fill='%23ffffff'/><rect y='20' width='60' height='10' fill='%23000000'/><rect width='15' height='30' fill='%23ff0000'/></svg>");
}

/* ---------- Right to left adjustments ---------- */
html[dir="rtl"] .site-header .container,
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .footer-bottom__inner,
html[dir="rtl"] .sticky-cta .container { direction: rtl; }
html[dir="rtl"] .footer-brand, html[dir="rtl"] .footer-col, html[dir="rtl"] .footer-bottom { text-align: right; }
html[dir="rtl"] .lang-switcher__menu { left: 0; right: auto; }
.tb-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Anchor offset, mobile header ---------- */
.content-section[id] { scroll-margin-top: 76px; }
@media (max-width: 640px) {
  .site-header .container { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .site-header .site-logo img { height: 22px; }
  .site-header .site-logo { flex-shrink: 0; }
  .nav-toggle { flex-shrink: 0; }
  .btn--mobile-cta { margin-inline-start: auto; font-size: 0.74rem !important; padding: 0.5rem 0.8rem !important; min-width: 0; max-width: 46vw; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero__badge::before { display: none; }
  .sticky-cta__text span:first-child { display: none; }
  .sticky-cta__bonus { font-size: 0.9rem; line-height: 1.3; }
  .sticky-cta .btn { white-space: nowrap; }
}
@media (max-width: 380px) {
  .btn--mobile-cta { font-size: 0.66rem !important; padding: 0.45rem 0.55rem !important; }
}

/* ---------- Tablet and small laptop: hamburger menu up to 1199px ---------- */
@media (max-width: 1199px) {
  .btn--mobile-cta { display: inline-flex; }
  .nav-toggle { display: flex; }
  .nav-main--desktop { display: none; }
  .nav-actions { display: none; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .nav-mobile.open { display: flex !important; }
}
