/* =============================================
   Play No Deposit — Neumorphic Soft-UI Theme
   Primary: #c8e0f4 | Secondary: #f5e0e8 | Ink: #171f26
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-primary: #c8e0f4;
  --c-secondary: #f5e0e8;
  --c-ink: #171f26;
  --c-bg: #ddeaf7;
  --c-bg2: #f9edf2;
  --c-muted: #5a6a7a;
  --c-border: #b5cce6;
  --c-accent: #7aaad4;
  --c-accent2: #d4849e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-raise: -5px -5px 15px rgba(255,255,255,0.85), 5px 5px 15px rgba(0,0,0,0.12);
  --shadow-press: -2px -2px 6px rgba(255,255,255,0.7), 2px 2px 6px rgba(0,0,0,0.1);
  --shadow-inset: inset 2px 2px 6px rgba(0,0,0,0.1), inset -2px -2px 6px rgba(255,255,255,0.8);
  --font-body: 'Noto Naskh Arabic', 'Noto Sans Arabic', Georgia, serif;
  --font-ui: 'Noto Sans Arabic', system-ui, sans-serif;
  --max-content: 780px;
  --max-site: 1200px;
  --transition: 150ms ease;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  min-height: 100vh;
}

/* ---- Screen reader only ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Site wrapper ---- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================
   HEADER — Two-row neumorphic
   ============================================ */
.site-header {
  background: linear-gradient(145deg, var(--c-primary), #b8d3ee);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand-row {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo { height: 40px; width: auto; }

.brand-text {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-ink);
}

/* Search */
.header-search {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #d4e9f9, #b8cfea);
  box-shadow: var(--shadow-inset);
  border-radius: 999px;
  overflow: hidden;
  height: 38px;
}

.header-search input {
  border: none;
  background: transparent;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-ui);
  color: var(--c-ink);
  outline: none;
  width: clamp(140px, 20vw, 260px);
  line-height: 1.4;
}

.header-search input::placeholder { color: var(--c-muted); }

.header-search button {
  background: var(--c-accent);
  border: none;
  color: #fff;
  padding: 0 0.9rem;
  height: 38px;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}

.header-search button:hover { background: #5a93c0; }

/* Nav row */
.header-nav-row {
  background: linear-gradient(145deg, #b8d3ee, var(--c-primary));
  border-top: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  max-width: 100%;
  padding: 0 1.25rem;
  gap: 0.5rem;
  overflow: hidden;
}

.header-nav-row > .nav-inline {
  flex: 1;
  overflow: hidden;
}

.nav-inline ul {
  display: flex;
  list-style: none;
  gap: 0.1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.35rem 0;
}

.nav-inline ul::-webkit-scrollbar { display: none; }

.nav-inline ul li a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: box-shadow var(--transition), background var(--transition);
  min-height: 44px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.nav-inline ul li a:hover {
  background: linear-gradient(145deg, #d4eafd, #c0d8f0);
  box-shadow: var(--shadow-raise);
}

/* CTA buttons */
.header-ctas {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  padding: 0.35rem 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}

.cta-signup {
  background: linear-gradient(145deg, var(--c-accent), #5a93c0);
  color: #fff;
  box-shadow: var(--shadow-raise);
}

.cta-signup:hover {
  transform: scale(0.98);
  box-shadow: var(--shadow-press);
}

.cta-login {
  background: transparent;
  color: var(--c-ink);
  border: 2px solid var(--c-accent);
  box-shadow: var(--shadow-raise);
}

.cta-login:hover {
  background: rgba(122,170,212,0.12);
  transform: scale(0.98);
  box-shadow: var(--shadow-press);
}

/* Mobile nav details/summary */
.nav-details {
  display: none;
  position: relative;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--c-primary), #b8d3ee);
  box-shadow: var(--shadow-raise);
  cursor: pointer;
  font-size: 0;
  list-style: none;
  user-select: none;
}

.nav-toggle::after {
  content: '☰';
  font-size: 1.2rem;
  color: var(--c-ink);
}

details[open] .nav-toggle::after { content: '✕'; }

.nav-details > menu,
.nav-details > ul {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: linear-gradient(145deg, var(--c-primary), #d4eafd);
  box-shadow: var(--shadow-raise);
  border-radius: var(--radius);
  list-style: none;
  min-width: 240px;
  z-index: 200;
  padding: 0.5rem;
}

.nav-details > menu li a,
.nav-details > ul li a {
  display: block;
  padding: 0.65rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--c-ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  min-height: 44px;
  line-height: 1.4;
  transition: background var(--transition);
}

.nav-details > menu li a:hover,
.nav-details > ul li a:hover {
  background: rgba(122,170,212,0.18);
}

/* ============================================
   HERO — Home only
   ============================================ */
.hero-band {
  position: relative;
  background: linear-gradient(145deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 4rem;
}

.hero-copy {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  flex: 0 0 auto;
  z-index: 2;
  position: relative;
}

.hero-copy h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
  max-width: 620px;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 540px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-media {
  z-index: 1;
  position: relative;
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-raise);
  object-fit: cover;
  max-height: 340px;
}

.hero-slant {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(145deg, var(--c-accent), #5a93c0);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-raise);
  min-height: 48px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: scale(0.97);
  box-shadow: var(--shadow-press);
}

/* ============================================
   MAIN LAYOUT — Content + Sidebar
   ============================================ */
main {
  flex: 1;
  display: flex;
  max-width: var(--max-site);
  margin: 2rem auto;
  padding: 0 1.25rem;
  gap: 2rem;
  width: 100%;
  align-items: flex-start;
}

main > section {
  flex: 1 1 0;
  min-width: 0;
}

main > aside.sidebar {
  flex: 0 0 280px;
  width: 280px;
}

/* Sections */
.content-section {
  margin-bottom: 2.25rem;
}

/* ============================================
   NEUMORPHIC CARDS
   ============================================ */
.card-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  padding: 0;
}

.card {
  background: linear-gradient(145deg, #ddeaf7, #cfd9e8);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raise);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: -7px -7px 18px rgba(255,255,255,0.9), 7px 7px 18px rgba(0,0,0,0.15);
}

.card a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--c-ink);
  border-radius: var(--radius-sm);
}

.card a:hover .card-title { color: var(--c-accent); }

.card-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.card small {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.5;
}

.rank-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(145deg, var(--c-accent), #5a93c0);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.85rem;
  margin-left: 0.5rem;
  box-shadow: var(--shadow-raise);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-widget {
  background: linear-gradient(145deg, #d4e9f9, #c8dfef);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raise);
  padding: 1.25rem 1.1rem;
  margin-bottom: 1.25rem;
}

.sidebar-widget h2 {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: 0.25rem;
}

.sidebar-widget .subtitle {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-links li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--c-ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), box-shadow var(--transition);
  min-height: 44px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.sidebar-links li a:hover {
  background: linear-gradient(145deg, #ddeaf7, #cdd9ea);
  box-shadow: var(--shadow-raise);
}

.rg-widget {
  background: linear-gradient(145deg, #f5e0e8, #ecd4dc);
  box-shadow: var(--shadow-inset);
}

.rg-widget small {
  font-size: 0.78rem;
  color: var(--c-muted);
  line-height: 1.5;
  display: block;
}

/* ============================================
   TYPOGRAPHY / CONTENT
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-ui);
  color: var(--c-ink);
  line-height: 1.3;
}

h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.5rem; font-weight: 700; }
h2 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); margin-bottom: 0.4rem; font-weight: 600; }
h3 { font-size: 1.05rem; margin-bottom: 0.3rem; font-weight: 600; }

.lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 680px;
}

p.subtitle {
  font-size: 0.88rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Page content prose */
.page-content p,
.page-content li {
  margin-bottom: 0.85rem;
  max-width: var(--max-content);
  line-height: 1.75;
}

.page-content a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover { color: #5a93c0; }

.page-content h2 { margin-top: 1.75rem; }
.page-content h3 { margin-top: 1.2rem; }

.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-raise);
}

.page-content th {
  background: linear-gradient(145deg, var(--c-accent), #5a93c0);
  color: #fff;
  padding: 0.65rem 0.9rem;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.page-content td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(145deg, #d9eaf7, #cad8e8);
}

.page-content tr:last-child td { border-bottom: none; }

/* Byline */
.byline {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
  padding: 0.5rem 0.9rem;
  background: linear-gradient(145deg, #ddeaf7, #d0e0ee);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-inset);
  display: inline-block;
}

.byline strong { color: var(--c-ink); }

/* Stage tag */
.stage-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  background: linear-gradient(145deg, var(--c-secondary), #ecd0db);
  color: var(--c-ink);
  box-shadow: var(--shadow-raise);
}

/* Author div */
.author-section .author-card {
  background: linear-gradient(145deg, #daeaf9, #ccd8ea);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raise);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 640px;
}

.author-name {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-ink);
}

.author-creds {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}

.author-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--c-ink);
  margin: 0;
}

/* Review hero */
.review-hero {
  margin: 1rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-raise);
}

.review-hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ============================================
   FOOTER — Minimal (only p + small)
   ============================================ */
.site-footer {
  background: linear-gradient(145deg, #b8d3ee, var(--c-primary));
  border-top: 2px solid rgba(255,255,255,0.45);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-left {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.footer-left a {
  color: var(--c-ink);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-left a:hover { color: var(--c-accent); }

.footer-rg {
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.5;
  max-width: 380px;
  text-align: right;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger li.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  main {
    flex-direction: column;
  }

  main > aside.sidebar {
    flex: unset;
    width: 100%;
  }

  .header-nav-row { gap: 0.25rem; }
}

@media (max-width: 640px) {
  .nav-details { display: block; }
  .nav-inline { display: none; }

  .header-brand-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-search { flex: 1 1 auto; }
  .header-search input { width: 100%; }

  .header-ctas {
    gap: 0.35rem;
  }

  .cta {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
    min-height: 44px;
  }

  .hero-copy { padding: 2rem 1rem 1.5rem; }

  .hero-copy h1 { font-size: 1.45rem; }

  main { padding: 0 0.9rem; margin: 1.25rem auto; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-rg { text-align: left; max-width: 100%; }

  .card-list { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .card-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 901px) {
  .card-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  .ranking-header,
  .compare-header,
  .review-header,
  .about-header,
  .privacy-header,
  .data-header {
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(145deg, #d8ebf9, #ccd9ea);
    border-radius: var(--radius);
    box-shadow: var(--shadow-raise);
    margin-bottom: 1.75rem;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .site-header, .sidebar, .hero-slant, .header-ctas { display: none; }
  main { display: block; }
  .reveal, .stagger li { opacity: 1; transform: none; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}