/* ============================================================
 * PHdream Casino - phdream-casino.homes
 * Mobile-first stylesheet (class prefix: g7ad-)
 * Palette: #BBBBBB | #32CD32 | #98FB98 | #2E8B57 | #1A1A2E | #FFBF00
 * ============================================================ */

:root {
  --g7ad-primary: #32CD32;        /* lime green accent */
  --g7ad-primary-dark: #2E8B57;   /* sea green secondary */
  --g7ad-primary-light: #98FB98;  /* pale green highlight */
  --g7ad-gold: #FFBF00;           /* gold CTA */
  --g7ad-bg: #1A1A2E;             /* deep night base */
  --g7ad-bg-2: #16213e;           /* surface */
  --g7ad-bg-3: #0f1626;           /* deeper surface */
  --g7ad-text: #BBBBBB;           /* muted text */
  --g7ad-text-light: #f5f7fa;     /* strong text */
  --g7ad-border: rgba(50, 205, 50, 0.18);
  --g7ad-radius: 14px;
  --g7ad-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(circle at top, #1f2747 0%, var(--g7ad-bg) 55%, var(--g7ad-bg-3) 100%);
  color: var(--g7ad-text-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--g7ad-primary-light); text-decoration: none; }

.g7ad-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g7ad-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ===================== Header ===================== */
.g7ad-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(15,22,38,0.98), rgba(22,33,62,0.95));
  border-bottom: 1px solid var(--g7ad-border);
  backdrop-filter: blur(8px);
}
.g7ad-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.g7ad-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.g7ad-brand img { width: 30px; height: 30px; border-radius: 8px; }
.g7ad-brand-text { font-weight: 800; color: var(--g7ad-text-light); font-size: 1.5rem; line-height: 1.1; }
.g7ad-brand-text span { color: var(--g7ad-gold); }

.g7ad-header-actions { display: flex; align-items: center; gap: 0.4rem; }
.g7ad-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; font-size: 1.25rem; padding: 0.55rem 1rem;
  border-radius: 999px; border: none; cursor: pointer; min-height: 36px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.g7ad-btn:active { transform: scale(0.96); }
.g7ad-btn-login { background: transparent; color: var(--g7ad-primary-light); border: 1px solid var(--g7ad-border); }
.g7ad-btn-register { background: linear-gradient(135deg, var(--g7ad-gold), #ff9d00); color: #1a1a2e; box-shadow: 0 4px 14px rgba(255,191,0,0.35); }
.g7ad-btn-primary { background: linear-gradient(135deg, var(--g7ad-primary), var(--g7ad-primary-dark)); color: #0f1626; box-shadow: 0 4px 14px rgba(50,205,50,0.3); }
.g7ad-btn-ghost { background: rgba(50,205,50,0.1); color: var(--g7ad-primary-light); border: 1px solid var(--g7ad-border); }
.g7ad-btn-block { display: flex; width: 100%; padding: 1rem; font-size: 1.5rem; }

.g7ad-icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--g7ad-border);
  background: rgba(50,205,50,0.08); color: var(--g7ad-primary-light);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.g7ad-icon-btn i { font-size: 20px; }

/* ===================== Mobile Menu ===================== */
.g7ad-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.g7ad-menu-open.g7ad-menu-overlay { opacity: 1; pointer-events: auto; }
.g7ad-mobile-menu {
  position: fixed; top: 0; right: -85%; bottom: 0; width: 80%; max-width: 320px;
  background: var(--g7ad-bg-3); z-index: 9999; transition: right .3s ease;
  padding: 6rem 1.2rem 2rem; overflow-y: auto;
  border-left: 1px solid var(--g7ad-border);
}
.g7ad-mobile-menu.g7ad-menu-open { right: 0; }
.g7ad-mobile-menu h4 { color: var(--g7ad-gold); margin: 1.4rem 0 0.6rem; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .05em; }
.g7ad-mobile-menu a {
  display: block; padding: 0.9rem 0.8rem; border-radius: 10px; color: var(--g7ad-text-light);
  border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1.45rem;
}
.g7ad-mobile-menu a:active { background: rgba(50,205,50,0.12); }

/* ===================== Layout sections ===================== */
.g7ad-main { padding-top: 64px; padding-bottom: 84px; }
.g7ad-section { padding: 1.8rem 0; }
.g7ad-section-title {
  display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem;
  font-size: 1.7rem; font-weight: 800; color: var(--g7ad-text-light);
}
.g7ad-section-title i { color: var(--g7ad-gold); font-size: 22px; }
.g7ad-section-title small { margin-left: auto; font-size: 1.15rem; font-weight: 600; color: var(--g7ad-primary); }

.g7ad-card {
  background: linear-gradient(160deg, var(--g7ad-bg-2), var(--g7ad-bg-3));
  border: 1px solid var(--g7ad-border); border-radius: var(--g7ad-radius);
  padding: 1.2rem; box-shadow: var(--g7ad-shadow);
}

/* ===================== Hero Carousel ===================== */
.g7ad-carousel { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--g7ad-shadow); }
.g7ad-carousel-track { display: flex; transition: transform .5s ease; }
.g7ad-slide { min-width: 100%; position: relative; }
.g7ad-slide img { width: 100%; height: 180px; object-fit: cover; }
.g7ad-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.g7ad-slide-cap h3 { margin: 0 0 0.3rem; font-size: 1.7rem; color: #fff; }
.g7ad-slide-cap p { margin: 0; font-size: 1.25rem; color: var(--g7ad-primary-light); }
.g7ad-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.7rem 0; }
.g7ad-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; }
.g7ad-dot.g7ad-dot-active { background: var(--g7ad-gold); width: 22px; border-radius: 5px; }

/* ===================== Chips ===================== */
.g7ad-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0 1rem; scrollbar-width: none; }
.g7ad-chips::-webkit-scrollbar { display: none; }
.g7ad-chip {
  white-space: nowrap; padding: 0.5rem 1rem; border-radius: 999px;
  background: rgba(50,205,50,0.08); color: var(--g7ad-text-light); font-size: 1.25rem;
  border: 1px solid var(--g7ad-border); cursor: pointer; font-weight: 600;
}
.g7ad-chip.g7ad-chip-active { background: linear-gradient(135deg, var(--g7ad-gold), #ff9d00); color: #1a1a2e; }

/* ===================== Game Grid ===================== */
.g7ad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.g7ad-grid-4 { grid-template-columns: repeat(4, 1fr); }
.g7ad-game {
  background: linear-gradient(160deg, var(--g7ad-bg-2), var(--g7ad-bg-3));
  border: 1px solid var(--g7ad-border); border-radius: 12px; overflow: hidden;
  text-align: center; transition: transform .15s ease; cursor: pointer;
}
.g7ad-game:active { transform: scale(0.96); }
.g7ad-game img { width: 100%; height: 84px; object-fit: cover; }
.g7ad-game-name { padding: 0.4rem 0.3rem 0.5rem; font-size: 1.1rem; color: var(--g7ad-text-light); font-weight: 600; line-height: 1.2; min-height: 32px; }
.g7ad-game-tag { display: inline-block; font-size: 1rem; color: var(--g7ad-gold); font-weight: 700; }

/* ===================== Feature blocks ===================== */
.g7ad-feature-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.g7ad-feature { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: 12px; background: rgba(50,205,50,0.05); border: 1px solid var(--g7ad-border); }
.g7ad-feature .g7ad-ico { width: 44px; height: 44px; min-width: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--g7ad-primary), var(--g7ad-primary-dark)); color: #0f1626; display: flex; align-items: center; justify-content: center; }
.g7ad-feature .g7ad-ico i { font-size: 22px; }
.g7ad-feature h4 { margin: 0 0 0.3rem; font-size: 1.45rem; color: var(--g7ad-text-light); }
.g7ad-feature p { margin: 0; font-size: 1.25rem; color: var(--g7ad-text); }

.g7ad-prose p { color: var(--g7ad-text); margin: 0 0 1rem; font-size: 1.35rem; }
.g7ad-prose strong { color: var(--g7ad-gold); }
.g7ad-prose a { color: var(--g7ad-primary); font-weight: 600; border-bottom: 1px dashed rgba(50,205,50,0.4); }

.g7ad-step-list { counter-reset: step; padding-left: 0; list-style: none; margin: 0; }
.g7ad-step-list li { position: relative; padding: 0.6rem 0 0.6rem 3.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--g7ad-text); font-size: 1.3rem; }
.g7ad-step-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0.5rem; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--g7ad-gold), #ff9d00); color: #1a1a2e; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }

/* ===================== RTP table ===================== */
.g7ad-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.g7ad-rtp-table th, .g7ad-rtp-table td { padding: 0.6rem 0.4rem; text-align: left; border-bottom: 1px solid var(--g7ad-border); }
.g7ad-rtp-table th { color: var(--g7ad-gold); font-size: 1.15rem; text-transform: uppercase; }
.g7ad-rtp-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.g7ad-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--g7ad-primary), var(--g7ad-gold)); }

/* ===================== Testimonials ===================== */
.g7ad-testimonial { padding: 1rem; border-radius: 12px; background: rgba(50,205,50,0.06); border: 1px solid var(--g7ad-border); margin-bottom: 0.8rem; }
.g7ad-testimonial-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.g7ad-testimonial-head .g7ad-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--g7ad-primary), var(--g7ad-primary-dark)); color: #0f1626; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.g7ad-testimonial-head strong { color: var(--g7ad-text-light); font-size: 1.35rem; }
.g7ad-stars { color: var(--g7ad-gold); font-size: 1.1rem; }
.g7ad-testimonial p { margin: 0; font-size: 1.25rem; color: var(--g7ad-text); }

/* ===================== Winners ticker ===================== */
.g7ad-winners { background: var(--g7ad-bg-3); border-radius: 12px; padding: 0.6rem; border: 1px solid var(--g7ad-border); }
.g7ad-winner-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1.2rem; }
.g7ad-winner-row:last-child { border-bottom: none; }
.g7ad-winner-amount { margin-left: auto; color: var(--g7ad-gold); font-weight: 800; }

/* ===================== Payment ===================== */
.g7ad-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.g7ad-pay {
  background: rgba(255,255,255,0.04); border: 1px solid var(--g7ad-border); border-radius: 10px;
  padding: 0.8rem; text-align: center; color: var(--g7ad-text-light); font-weight: 700; font-size: 1.2rem;
}
.g7ad-pay i { font-size: 24px; color: var(--g7ad-primary); display: block; margin-bottom: 0.3rem; }

/* ===================== FAQ ===================== */
.g7ad-faq details {
  background: rgba(50,205,50,0.05); border: 1px solid var(--g7ad-border); border-radius: 10px;
  padding: 0.8rem 1rem; margin-bottom: 0.6rem;
}
.g7ad-faq summary { font-weight: 700; color: var(--g7ad-text-light); font-size: 1.35rem; cursor: pointer; list-style: none; }
.g7ad-faq summary::before { content: "+ "; color: var(--g7ad-gold); font-weight: 800; }
.g7ad-faq details[open] summary::before { content: "− "; }
.g7ad-faq p { color: var(--g7ad-text); margin: 0.6rem 0 0; font-size: 1.25rem; }

/* ===================== CTA banner ===================== */
.g7ad-cta {
  background: linear-gradient(135deg, var(--g7ad-primary-dark), var(--g7ad-bg-2));
  border: 1px solid var(--g7ad-gold); border-radius: 16px; padding: 1.4rem; text-align: center;
  box-shadow: var(--g7ad-shadow);
}
.g7ad-cta h3 { margin: 0 0 0.4rem; color: var(--g7ad-gold); font-size: 1.8rem; }
.g7ad-cta p { margin: 0 0 1rem; color: var(--g7ad-text-light); font-size: 1.3rem; }

/* ===================== Footer ===================== */
.g7ad-footer { background: var(--g7ad-bg-3); border-top: 1px solid var(--g7ad-border); padding: 2rem 0 1.5rem; margin-top: 2rem; }
.g7ad-footer p { color: var(--g7ad-text); font-size: 1.25rem; margin: 0 0 1rem; }
.g7ad-footer h5 { color: var(--g7ad-gold); font-size: 1.3rem; margin: 1.2rem 0 0.6rem; text-transform: uppercase; letter-spacing: .04em; }
.g7ad-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.8rem; }
.g7ad-footer-links a { color: var(--g7ad-text-light); font-size: 1.2rem; padding: 0.3rem 0; }
.g7ad-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem; }
.g7ad-footer-promo .g7ad-btn { font-size: 1.15rem; padding: 0.5rem 0.9rem; }
.g7ad-copyright { text-align: center; color: var(--g7ad-text); font-size: 1.15rem; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1rem; margin-top: 1rem; }

/* ===================== Mobile Bottom Nav ===================== */
.g7ad-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(22,33,62,0.97), rgba(15,22,38,0.99));
  border-top: 1px solid var(--g7ad-gold);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; padding: 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.g7ad-bottomnav a, .g7ad-bottomnav button {
  flex: 1; min-width: 60px; min-height: 60px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.15rem; background: transparent; border: none;
  color: var(--g7ad-text); font-size: 1rem; cursor: pointer; position: relative;
  transition: color .15s ease, transform .15s ease;
}
.g7ad-bottomnav a i, .g7ad-bottomnav button i { font-size: 22px; }
.g7ad-bottomnav a.active, .g7ad-bottomnav button.active { color: var(--g7ad-gold); }
.g7ad-bottomnav a.active::before, .g7ad-bottomnav button.active::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--g7ad-gold);
}
.g7ad-bottomnav a:active, .g7ad-bottomnav button:active { transform: scale(0.92); }
.g7ad-bottomnav .g7ad-badge {
  position: absolute; top: 6px; right: 18px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #ff3b3b; color: #fff; font-size: 0.9rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ===================== Desktop: hide bottom nav ===================== */
@media (min-width: 769px) {
  .g7ad-bottomnav { display: none; }
  .g7ad-main { padding-bottom: 2rem; }
  .g7ad-container, .g7ad-wrapper, .g7ad-header-inner, .g7ad-footer .g7ad-container { max-width: 760px; }
}

/* Larger touch targets on very small devices */
@media (max-width: 360px) {
  .g7ad-grid { grid-template-columns: repeat(2, 1fr); }
  .g7ad-game img { height: 96px; }
}
