/*!
 * thabet.cfd - Main Stylesheet
 * CSS class prefix: pga8-
 * Palette: #0D1117 (bg) | #00E5FF (accent) | #008B8B (secondary)
 * Mobile-first, max-width 430px. Comments in English.
 */

:root {
  --pga8-bg: #0D1117;
  --pga8-bg-soft: #141b24;
  --pga8-bg-card: #1b2330;
  --pga8-accent: #00E5FF;
  --pga8-secondary: #008B8B;
  --pga8-text: #eaf6fb;
  --pga8-text-dim: #9fb3c0;
  --pga8-border: rgba(0, 229, 255, 0.18);
  --pga8-gold: #ffd56a;
  --pga8-radius: 12px;
  --pga8-header-h: 56px;
}

/* Root font scaling: 62.5% -> 1rem = 10px */
html { font-size: 62.5%; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Arial, sans-serif;
  background: var(--pga8-bg);
  color: var(--pga8-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

a { color: var(--pga8-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.4; font-weight: 700; }

/* ---------- Layout ---------- */
.pga8-wrapper { width: 100%; max-width: 430px; margin: 0 auto; padding: 0; }
.pga8-container { width: 100%; padding: 0 1.2rem; }
.pga8-main { padding-bottom: 84px; }

.pga8-body-lock { overflow: hidden; }

/* ---------- Header ---------- */
.pga8-header {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--pga8-header-h);
  background: linear-gradient(180deg, #0b1118 0%, #0D1117 100%);
  border-bottom: 1px solid var(--pga8-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000;
}
.pga8-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.8rem; font-weight: 800; color: var(--pga8-accent);
  letter-spacing: 0.5px;
}
.pga8-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pga8-logo .pga8-logo-sub { color: var(--pga8-text-dim); font-size: 1rem; font-weight: 500; }

.pga8-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pga8-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1rem; border-radius: 10px; border: none;
  font-size: 1.25rem; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  min-height: 38px;
}
.pga8-btn:active { transform: scale(0.95); }
.pga8-btn-login {
  background: transparent; color: var(--pga8-text);
  border: 1px solid var(--pga8-border);
}
.pga8-btn-register {
  background: linear-gradient(135deg, var(--pga8-accent) 0%, var(--pga8-secondary) 100%);
  color: #001016; box-shadow: 0 4px 14px rgba(0,229,255,0.25);
}
.pga8-btn-promo {
  background: linear-gradient(135deg, var(--pga8-accent) 0%, var(--pga8-secondary) 100%);
  color: #001016; font-weight: 800; padding: 0.9rem 1.4rem; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,229,255,0.3);
}
.pga8-btn-pressed { opacity: 0.85; transform: scale(0.97); }

.pga8-menu-btn {
  background: transparent; border: 1px solid var(--pga8-border);
  color: var(--pga8-accent); border-radius: 8px;
  width: 38px; height: 38px; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Mobile menu ---------- */
.pga8-mobile-menu {
  position: fixed; top: var(--pga8-header-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--pga8-bg-soft); border-bottom: 1px solid var(--pga8-border);
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  z-index: 9999;
}
.pga8-mobile-menu.pga8-menu-open { max-height: 480px; }
.pga8-menu-list { list-style: none; padding: 0.8rem 1.2rem 1.4rem; }
.pga8-menu-link {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 0.6rem; color: var(--pga8-text);
  border-bottom: 1px solid rgba(0,229,255,0.08); font-size: 1.4rem;
}
.pga8-menu-link:active { background: rgba(0,229,255,0.06); }
.pga8-menu-link i { color: var(--pga8-accent); width: 22px; text-align: center; }

/* ---------- Carousel ---------- */
.pga8-carousel {
  position: relative; margin-top: var(--pga8-header-h);
  width: 100%; height: 200px; overflow: hidden;
}
.pga8-carousel-track { position: relative; width: 100%; height: 100%; }
.pga8-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  display: flex; align-items: flex-end; padding: 1.2rem;
}
.pga8-carousel-slide.pga8-active { opacity: 1; }
.pga8-carousel-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pga8-carousel-caption {
  position: relative; z-index: 2; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.pga8-carousel-caption h2 { font-size: 1.8rem; margin-bottom: 0.4rem; color: var(--pga8-accent); }
.pga8-carousel-caption p { font-size: 1.2rem; color: #eaf6fb; }
.pga8-carousel-dots {
  position: absolute; bottom: 10px; right: 14px; z-index: 3;
  display: flex; gap: 6px;
}
.pga8-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; border: none;
}
.pga8-carousel-dot.pga8-active { background: var(--pga8-accent); }

/* ---------- Section / headings ---------- */
.pga8-section { padding: 1.6rem 1.2rem; }
.pga8-section-title {
  font-size: 1.8rem; color: var(--pga8-accent); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.pga8-section-title i { color: var(--pga8-accent); }
.pga8-section-intro { color: var(--pga8-text-dim); font-size: 1.25rem; margin-bottom: 1.2rem; }

.pga8-h1 {
  font-size: 2.1rem; color: #fff; line-height: 1.3;
  padding: 1.4rem 1.2rem 0.4rem;
}
.pga8-h1 span { color: var(--pga8-accent); }

/* ---------- Game grid ---------- */
.pga8-game-group { margin-bottom: 1.8rem; }
.pga8-game-group-title {
  font-size: 1.5rem; color: var(--pga8-secondary);
  margin-bottom: 0.8rem; padding-left: 0.4rem;
  border-left: 3px solid var(--pga8-accent); padding-left: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pga8-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.pga8-game-card {
  background: var(--pga8-bg-card); border-radius: var(--pga8-radius);
  border: 1px solid var(--pga8-border); overflow: hidden;
  cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.pga8-game-card:active { transform: scale(0.96); border-color: var(--pga8-accent); }
.pga8-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pga8-game-card-name {
  font-size: 1.05rem; color: var(--pga8-text); padding: 0.5rem 0.4rem;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Promo / content cards ---------- */
.pga8-card {
  background: var(--pga8-bg-card); border: 1px solid var(--pga8-border);
  border-radius: var(--pga8-radius); padding: 1.2rem; margin-bottom: 1rem;
}
.pga8-card h3 { color: var(--pga8-accent); font-size: 1.45rem; margin-bottom: 0.6rem; }
.pga8-card p { color: var(--pga8-text-dim); font-size: 1.2rem; }
.pga8-card ul { list-style: none; padding: 0; margin: 0.6rem 0; }
.pga8-card ul li {
  padding: 0.4rem 0 0.4rem 1.4rem; position: relative; color: var(--pga8-text-dim); font-size: 1.2rem;
}
.pga8-card ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--pga8-accent); position: absolute; left: 0; font-size: 1rem; }

.pga8-link-text {
  color: var(--pga8-accent); font-weight: 700; cursor: pointer; text-decoration: underline;
}
.pga8-inline-link { color: var(--pga8-accent); font-weight: 600; text-decoration: underline; }

/* ---------- Article / help pages ---------- */
.pga8-page-hero {
  margin-top: var(--pga8-header-h); padding: 2rem 1.2rem 1.4rem;
  background: radial-gradient(circle at top left, rgba(0,229,255,0.18), transparent 56%), linear-gradient(135deg, #101722, #0D1117);
  border-bottom: 1px solid var(--pga8-border);
}
.pga8-page-hero h1 { font-size: 2.05rem; color: #fff; margin-bottom: 0.7rem; line-height: 1.32; }
.pga8-page-hero h1 span { color: var(--pga8-accent); }
.pga8-page-hero p { color: var(--pga8-text-dim); font-size: 1.22rem; margin-bottom: 1rem; }
.pga8-page-hero img { border-radius: 14px; border: 1px solid var(--pga8-border); margin-top: 1rem; }
.pga8-step-list { counter-reset: pga8-step; display: flex; flex-direction: column; gap: 0.8rem; }
.pga8-step {
  position: relative; padding: 1rem 1rem 1rem 4.4rem; min-height: 58px;
  background: var(--pga8-bg-card); border: 1px solid var(--pga8-border); border-radius: 12px;
}
.pga8-step::before {
  counter-increment: pga8-step; content: counter(pga8-step);
  position: absolute; left: 1rem; top: 1rem; width: 26px; height: 26px; border-radius: 50%;
  background: var(--pga8-accent); color: #001016; display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.pga8-step h3 { color: var(--pga8-accent); font-size: 1.35rem; margin-bottom: 0.25rem; }
.pga8-step p { color: var(--pga8-text-dim); font-size: 1.16rem; }
.pga8-note {
  border: 1px dashed var(--pga8-accent); border-radius: 12px; padding: 1rem; margin: 1rem 0;
  background: rgba(0,229,255,0.07); color: var(--pga8-text-dim); font-size: 1.18rem;
}
.pga8-internal-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.pga8-internal-links a {
  color: var(--pga8-accent); border-bottom: 1px solid rgba(0,229,255,0.55); font-size: 1.15rem; font-weight: 700;
}
.pga8-rating-row { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: center; margin: 0.7rem 0; }
.pga8-rating-label { color: var(--pga8-text); font-size: 1.18rem; }
.pga8-rating-score { color: var(--pga8-gold); font-size: 1.2rem; font-weight: 800; }

/* ---------- Feature / RTP stats ---------- */
.pga8-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.pga8-stat-box {
  background: var(--pga8-bg-card); border: 1px solid var(--pga8-border);
  border-radius: 10px; padding: 1rem; text-align: center;
}
.pga8-stat-num { font-size: 2rem; font-weight: 800; color: var(--pga8-accent); }
.pga8-stat-label { font-size: 1.1rem; color: var(--pga8-text-dim); margin-top: 0.3rem; }

.pga8-feature-row { display: flex; gap: 0.8rem; margin-bottom: 0.9rem; align-items: flex-start; }
.pga8-feature-icon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(0,229,255,0.12); display: flex; align-items: center; justify-content: center;
  color: var(--pga8-accent); font-size: 1.8rem;
}
.pga8-feature-text h3 { font-size: 1.35rem; color: var(--pga8-text); margin-bottom: 0.2rem; }
.pga8-feature-text p { font-size: 1.18rem; color: var(--pga8-text-dim); }

/* ---------- Testimonials ---------- */
.pga8-testimonial {
  background: var(--pga8-bg-card); border-left: 3px solid var(--pga8-accent);
  border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 0.9rem;
}
.pga8-testimonial p { font-style: italic; color: var(--pga8-text-dim); font-size: 1.18rem; }
.pga8-testimonial .pga8-author { display: block; margin-top: 0.5rem; color: var(--pga8-accent); font-weight: 700; font-size: 1.1rem; }

/* ---------- Winners ---------- */
.pga8-winners { display: flex; flex-direction: column; gap: 0.5rem; }
.pga8-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--pga8-bg-card); border: 1px solid var(--pga8-border);
  border-radius: 8px; padding: 0.7rem 1rem;
}
.pga8-winner-name { color: var(--pga8-text); font-size: 1.18rem; font-weight: 600; }
.pga8-winner-amount { color: var(--pga8-gold); font-weight: 800; font-size: 1.25rem; }

/* ---------- Payment / badges ---------- */
.pga8-badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pga8-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--pga8-bg-card); border: 1px solid var(--pga8-border);
  border-radius: 20px; padding: 0.5rem 0.9rem; font-size: 1.1rem; color: var(--pga8-text-dim);
}
.pga8-badge i { color: var(--pga8-accent); }

/* ---------- App CTA ---------- */
.pga8-app-cta {
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(0,139,139,0.18));
  border: 1px solid var(--pga8-border); border-radius: 14px; padding: 1.4rem; text-align: center;
}
.pga8-app-cta h3 { color: var(--pga8-accent); font-size: 1.6rem; margin-bottom: 0.5rem; }
.pga8-app-cta p { color: var(--pga8-text-dim); font-size: 1.18rem; margin-bottom: 1rem; }

/* ---------- FAQ ---------- */
.pga8-faq-item {
  background: var(--pga8-bg-card); border: 1px solid var(--pga8-border);
  border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 0.7rem;
}
.pga8-faq-item h3 { color: var(--pga8-accent); font-size: 1.3rem; margin-bottom: 0.4rem; }
.pga8-faq-item p { color: var(--pga8-text-dim); font-size: 1.18rem; }

/* ---------- Footer ---------- */
.pga8-footer {
  background: #0a0f15; border-top: 1px solid var(--pga8-border);
  padding: 1.6rem 1.2rem 1.4rem; margin-top: 1rem;
}
.pga8-footer-brand { color: var(--pga8-text-dim); font-size: 1.15rem; margin-bottom: 1rem; line-height: 1.6; }
.pga8-footer-brand strong { color: var(--pga8-accent); }
.pga8-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.pga8-footer-links a { color: var(--pga8-text-dim); font-size: 1.15rem; }
.pga8-footer-links a:hover { color: var(--pga8-accent); }
.pga8-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem;
}
.pga8-footer-promo .pga8-btn { flex: 1 1 auto; justify-content: center; min-width: 120px; }
.pga8-footer-copy { color: var(--pga8-text-dim); font-size: 1.05rem; border-top: 1px solid var(--pga8-border); padding-top: 0.8rem; }

/* ---------- Mobile bottom nav ---------- */
.pga8-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: #0a0f15; border-top: 1px solid var(--pga8-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0 0.2rem;
}
.pga8-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--pga8-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; transition: color .15s ease, transform .15s ease;
  font-size: 1rem; padding: 4px 0;
}
.pga8-bottom-nav-btn i { font-size: 22px; }
.pga8-bottom-nav-btn ion-icon { font-size: 24px; }
.pga8-bottom-nav-btn .material-icons-outlined { font-size: 24px; }
.pga8-bottom-nav-btn:active { transform: scale(0.9); color: var(--pga8-accent); }
.pga8-bottom-nav-btn.pga8-nav-active { color: var(--pga8-accent); }
.pga8-bottom-nav-btn.pga8-nav-active i { text-shadow: 0 0 12px rgba(0,229,255,0.6); }
.pga8-nav-badge {
  position: absolute; top: 4px; right: 18px; min-width: 16px; height: 16px;
  background: var(--pga8-gold); color: #001016; border-radius: 8px;
  font-size: 0.9rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .pga8-bottom-nav { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .pga8-main { padding-bottom: 84px; }
}
