/* ============================================================
   Ahfad Al-Faraena - Conquer Mobile (Gaming UI/UX v4)
   Dark Mode Charcoal + Royal Gold (#D4AF37) + Fire (#FF5722)
   Mobile-First Responsive + Glassmorphism + Inline SVG Flags
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --bg: #07080d;
  --bg2: #0d1018;
  --card: rgba(16, 20, 32, 0.78);
  --card-solid: #111522;
  --border: rgba(212, 175, 55, 0.24);
  --border-strong: rgba(212, 175, 55, 0.65);
  --gold: #D4AF37;
  --gold-bright: #f5d061;
  --fire: #FF5722;
  --teal: #2dd4bf;
  --text: #f4f1ea;
  --muted: #98a2b8;
  --danger: #f87171;
  --success: #4ade80;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(212, 175, 55, 0.12), transparent 42%),
    radial-gradient(circle at 85% 12%, rgba(255, 87, 34, 0.11), transparent 38%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ===== Navbar & Mobile Hamburger ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7, 8, 13, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0; position: relative;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 18.5px; white-space: nowrap;
}
.brand-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-bright), var(--fire));
  display: grid; place-items: center; color: #090b10; font-size: 20px;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.45);
}
.brand .gold { color: var(--gold-bright); }
.brand .fire { color: var(--fire); }

.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-links a {
  padding: 9px 13px; border-radius: 10px; font-weight: 700; font-size: 14px;
  color: var(--muted); transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-bright); background: rgba(212, 175, 55, 0.12);
}
.nav-links a.nav-cta {
  background: linear-gradient(135deg, var(--gold-bright), var(--fire));
  color: #090b10; font-weight: 800;
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
}
.nav-links a.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

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

/* Language Switcher with Crisp Inline SVG Flags (Works on Windows 7/10/11 & Mobile) */
.lang-switch { display: flex; gap: 5px; align-items: center; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card-solid); border: 1px solid var(--border);
  color: var(--text); padding: 6px 10px; border-radius: 9px;
  cursor: pointer; font-family: inherit; font-weight: 700; font-size: 12.5px;
  transition: all 0.2s; min-height: 36px;
}
.lang-btn svg.flag-svg {
  width: 20px; height: 14px; border-radius: 2px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.22);
}
.lang-btn.active, .lang-btn:hover {
  border-color: var(--gold-bright); color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.16);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

/* Hamburger Button (Mobile Only) */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--card-solid); border: 1px solid var(--border);
  cursor: pointer; padding: 0 10px;
}
.hamburger span {
  display: block; height: 2.5px; width: 100%; border-radius: 2px;
  background: var(--gold-bright); transition: 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 72px 0 56px; text-align: center;
  background:
    linear-gradient(180deg, rgba(7,8,13,0.68) 0%, rgba(7,8,13,0.92) 85%, var(--bg) 100%),
    url('../img/shot3.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 99px;
  background: rgba(212, 175, 55, 0.13); border: 1px solid var(--border-strong);
  color: var(--gold-bright); font-weight: 800; font-size: 13px; margin-bottom: 18px;
}
.dot-live {
  width: 9px; height: 9px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 10px var(--success); animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(1.3)} }

.hero h1 {
  font-size: clamp(28px, 5vw, 54px); font-weight: 900; line-height: 1.25;
  background: linear-gradient(135deg, #ffffff 10%, var(--gold-bright) 55%, var(--fire) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.hero p.lead { max-width: 720px; margin: 0 auto 28px; font-size: 16.5px; color: #dbe3f3; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }

/* ===== Buttons (min-height: 48px) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; min-height: 48px; border-radius: 12px;
  font-family: inherit; font-weight: 800; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.22s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--fire));
  color: #090b10;
  box-shadow: 0 10px 28px rgba(255, 87, 34, 0.32), 0 0 18px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-outline { background: rgba(16, 20, 32, 0.8); border-color: var(--border-strong); color: var(--gold-bright); }
.btn-outline:hover { background: rgba(212, 175, 55, 0.16); transform: translateY(-2px); }
.btn-wa { background: #16a34a; color: #fff; }
.btn-wa:hover { background: #15803d; }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 13px; border-radius: 9px; }

/* ===== Stats & Cards ===== */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.stat-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; backdrop-filter: blur(12px);
}
.stat-val { font-size: 26px; font-weight: 900; color: var(--gold-bright); }
.stat-lbl { font-size: 13px; color: var(--muted); }

.section { padding: 54px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(23px, 3.5vw, 35px); font-weight: 900; color: var(--gold-bright); margin-bottom: 8px; }
.section-head p { color: var(--muted); max-width: 650px; margin: 0 auto; }

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

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  backdrop-filter: blur(12px); transition: transform 0.22s, border-color 0.22s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(212, 175, 55, 0.14); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 22px; color: var(--gold-bright);
}
.card h3 { font-size: 18.5px; margin-bottom: 8px; color: #fff; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ===== Social & Phones ===== */
.social-stack { display: flex; flex-direction: column; gap: 26px; max-width: 780px; margin: 0 auto; }
.social-embed-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.social-embed-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.social-embed-head h3 { font-size: 17.5px; color: var(--gold-bright); }
.embed-frame-wrap { display: flex; justify-content: center; overflow: hidden; border-radius: 12px; background: #0a0d16; padding: 10px; }

.phones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phone-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
}
.phone-num { font-size: 21px; font-weight: 900; color: var(--gold-bright); direction: ltr; letter-spacing: 1px; }
.phone-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ===== Forms ===== */
.form-card {
  max-width: 560px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.form-card.wide { max-width: 920px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: #e5ecf8; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; min-height: 48px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14); background: #0a0e18;
  color: #fff; font-family: inherit; font-size: 15px; outline: none; transition: 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; font-size: 14.5px; display: none; }
.alert.show { display: block; }
.alert-ok { background: rgba(22, 163, 74, 0.18); border: 1px solid #22c55e; color: #86efac; }
.alert-err { background: rgba(239, 68, 68, 0.16); border: 1px solid #ef4444; color: #fca5a5; }

/* ===== TopUp ===== */
.packs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pack-item {
  background: #0b0f1b; border: 2px solid rgba(255,255,255,0.09);
  border-radius: 14px; padding: 16px 12px; text-align: center; cursor: pointer; transition: 0.2s;
}
.pack-item:hover { border-color: rgba(212, 175, 55, 0.55); transform: translateY(-2px); }
.pack-item.selected {
  border-color: var(--gold-bright); background: rgba(212, 175, 55, 0.13);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.24);
}
.pack-title { font-weight: 900; font-size: 15.5px; color: #fff; margin-bottom: 4px; }
.pack-cps { font-size: 13px; color: var(--teal); margin-bottom: 6px; }
.pack-price { font-size: 18px; font-weight: 900; color: var(--gold-bright); }

.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pay-btn {
  background: #0b0f1b; border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 12px; min-height: 48px; text-align: center;
  cursor: pointer; color: var(--text); font-family: inherit; font-weight: 700; transition: 0.2s;
}
.pay-btn.selected { border-color: var(--gold-bright); background: rgba(212, 175, 55, 0.15); color: var(--gold-bright); }
.pay-info-box { background: rgba(212, 175, 55, 0.08); border: 1px dashed var(--gold-bright); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: #0a0e18; padding: 10px 14px; border-radius: 10px; margin-top: 8px; }
.copy-num { font-size: 18px; font-weight: 900; color: var(--gold-bright); direction: ltr; }
.upload-zone { display: block; border: 2px dashed var(--border-strong); border-radius: 14px; padding: 22px; text-align: center; background: #0a0e18; cursor: pointer; transition: 0.2s; }
.upload-zone:hover { background: rgba(212, 175, 55, 0.06); }
.receipt-preview { max-height: 240px; margin: 14px auto 0; border-radius: 10px; border: 1px solid var(--gold-bright); display: none; }

/* ===== Gallery & Lightbox ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; aspect-ratio: 16/9; background: #0b0e17; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 12px; border: 2px solid var(--gold-bright); }

/* ===== Scrollable Rankings Table ===== */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
table.rank-table { width: 100%; min-width: 600px; border-collapse: collapse; }
table.rank-table th, table.rank-table td { padding: 13px 16px; text-align: start; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 14.5px; white-space: nowrap; }
table.rank-table th { background: rgba(212, 175, 55, 0.12); color: var(--gold-bright); font-weight: 800; }
.rank-1 { color: #facc15; font-weight: 900; }
.rank-2 { color: #e2e8f0; font-weight: 900; }
.rank-3 { color: #fb923c; font-weight: 900; }

/* ===== SEO & Footer ===== */
.seo-article { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; line-height: 1.9; }
.seo-article h2 { color: var(--gold-bright); font-size: 22px; margin-bottom: 14px; }
.seo-article h3 { color: #fff; font-size: 17.5px; margin: 18px 0 8px; }
.seo-article p, .seo-article li { color: #cbd5e1; font-size: 15px; }
.seo-article ul { padding-inline-start: 22px; margin: 10px 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 14px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-weight: 800; color: var(--gold-bright); margin-bottom: 4px; }

.footer { background: #05060a; border-top: 1px solid var(--border); padding: 44px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 28px; }
.footer h4 { color: var(--gold-bright); margin-bottom: 12px; font-size: 17px; }
.footer a { display: block; color: var(--muted); margin-bottom: 8px; font-size: 14px; }
.footer a:hover { color: var(--gold-bright); }
.copyright { text-align: center; color: #64748b; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 18px; }

.float-bar { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); transition: transform 0.2s; }
.float-btn:hover { transform: scale(1.1); }
.float-wa { background: #16a34a; }
.float-dc { background: #5865F2; }

/* ===== Mobile Breakpoints ===== */
@media (max-width: 960px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(10, 13, 22, 0.98);
    border-bottom: 1px solid var(--border-strong);
    padding: 14px 4%; box-shadow: 0 20px 40px rgba(0,0,0,0.75);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; min-height: 46px; display: flex; align-items: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .phones-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 38px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .form-card { padding: 20px 16px; }
  .lang-btn span { display: none; }
  .lang-btn { padding: 6px 8px; }
}
