/* Buz Cup — موقع عام عربي */
@import url("icons.css");

:root {
  --black: #0b0b0b;
  --black-soft: #141414;
  --surface: #1e1e1e;
  --gold: #d4af37;
  --gold-light: #f0d78c;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --white: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.72);
  --blue: #1b3c73;
  --blue-glow: rgba(27, 60, 115, 0.45);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --max: 1200px;
  --max-wide: 1320px;
  --header-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.75;
  font-size: 1.05rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--gold-light);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-inline: max(0px, var(--safe-left), var(--safe-right));
}

.container-wide {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* خلفية زخرفية */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--blue-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(212, 175, 55, 0.06), transparent 45%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  padding-top: var(--safe-top);
  min-height: calc(var(--header-h) + var(--safe-top));
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-desktop a {
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--gold);
  background: var(--gold-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8942e);
  color: var(--black);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.45);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
}

.btn-outline:hover {
  background: var(--gold-dim);
  color: var(--gold-light);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  position: relative;
  border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

/* قائمة جانبية (جوال / آيباد) */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 92vw);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 500;
  background: linear-gradient(180deg, #121212 0%, var(--black) 100%);
  border-left: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-drawer-title {
  font-weight: 800;
  color: var(--gold-light);
  font-size: 1.1rem;
}

.nav-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.nav-drawer-links {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-drawer-links a {
  color: var(--white);
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
}

.nav-drawer-links a:hover,
.nav-drawer-links a.active {
  border-color: rgba(212, 175, 55, 0.4);
  background: var(--gold-dim);
  color: var(--gold-light);
}

.nav-drawer-links .nav-telegram-wrap {
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: transparent;
}

.nav-drawer-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 0.5rem;
}

main {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

.hero-copy {
  max-width: 40rem;
  margin-inline: auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 1rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-visual {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.hero-visual img {
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(20, 20, 20, 0.6) 30%, transparent);
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--white);
}

.section-head p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

/* Grid cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  align-items: center;
}

.card {
  background: var(--black-soft);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-4px);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  color: var(--gold-light);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--gold-dim);
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--gold);
  font-weight: 900;
}

.stat span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Page hero (inner) */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin: 0 0 0.75rem;
}

.page-hero .breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
}

.page-hero .breadcrumb a {
  color: var(--gold);
}

/* Content prose */
.prose {
  max-width: 52rem;
  margin: 0 auto;
}

.prose h2 {
  color: var(--gold-light);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-right: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* صفحات قانونية */
.legal-layout {
  padding: 2rem 0 4rem;
}

.legal-toc {
  background: var(--black-soft);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.legal-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--gold);
}

.legal-toc ol {
  margin: 0;
  padding-right: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-toc a {
  color: var(--muted);
}

.legal-toc a:hover {
  color: var(--gold-light);
}

.legal-section {
  background: var(--black-soft);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.legal-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: var(--gold-light);
}

.legal-section p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.legal-section ul {
  margin: 0;
  padding-right: 1.25rem;
  color: var(--muted);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.legal-meta span {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.support-card {
  padding: 1.75rem;
  background: var(--black-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.15);
  text-align: center;
}

.support-card h3 {
  margin: 0 0 0.5rem;
  color: var(--gold-light);
}


/* FAQ */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--black-soft);
}

.faq-q {
  width: 100%;
  text-align: right;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.faq-item.open .faq-a {
  display: block;
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin: 2rem auto;
}

.store-card {
  text-align: center;
  padding: 2rem;
  background: var(--black-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.store-card .soon {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
}

.store-card.disabled .btn {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.store-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-card--link:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--shadow);
}

.store-card--link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3.5rem 2rem;
  margin: 3rem 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(27, 60, 115, 0.35), rgba(212, 175, 55, 0.12));
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  background: var(--black-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: var(--gold);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.88rem;
}

/* Keywords strip (subtle SEO footer text) */
.seo-note {
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.35);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
}

/* Utilities */
.text-gold {
  color: var(--gold);
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta-desktop {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    width: min(100% - 2.5rem, var(--max));
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav-drawer,
  .nav-overlay {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    text-align: right;
    gap: 3rem;
  }

  .hero-copy {
    margin-inline: 0;
    max-width: none;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-visual {
    margin: 0;
    max-width: 380px;
    justify-self: end;
  }
}

@media (min-width: 1280px) {
  :root {
    --max: 1280px;
  }

  body {
    font-size: 1.08rem;
  }

  .section {
    padding: 5rem 0;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 2.75rem 0;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .brand span {
    font-size: 1.1rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
