/* 22ph Gaming Platform - Core Stylesheet */
/* All classes use w7b8f- prefix for namespace isolation */

/* ===== CSS Variables ===== */
:root {
  --w7b8f-primary: #40E0D0;
  --w7b8f-secondary: #6495ED;
  --w7b8f-bg: #1C2833;
  --w7b8f-bg-light: #243342;
  --w7b8f-bg-card: #1e3044;
  --w7b8f-text: #B0E0E6;
  --w7b8f-text-bright: #FFFFFF;
  --w7b8f-accent: #40E0D0;
  --w7b8f-accent2: #6495ED;
  --w7b8f-border: rgba(64, 224, 208, 0.15);
  --w7b8f-radius: 12px;
  --w7b8f-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-size: 62.5%;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--w7b8f-bg);
  color: var(--w7b8f-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--w7b8f-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--w7b8f-text-bright); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Header ===== */
.w7b8f-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1C2833 0%, #243342 100%);
  border-bottom: 1px solid var(--w7b8f-border);
  height: 56px; display: flex; align-items: center; padding: 0 12px;
  backdrop-filter: blur(10px);
}
.w7b8f-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 430px; margin: 0 auto;
}
.w7b8f-logo-area {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.w7b8f-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.w7b8f-logo-text {
  font-size: 2.0rem; font-weight: 800; color: var(--w7b8f-primary);
  letter-spacing: -0.5px;
}
.w7b8f-header-actions { display: flex; gap: 8px; align-items: center; }
.w7b8f-btn-register, .w7b8f-btn-login {
  padding: 6px 16px; border-radius: 20px; font-size: 1.3rem;
  font-weight: 700; cursor: pointer; border: none; transition: all .25s;
  min-height: 32px; min-width: 70px;
}
.w7b8f-btn-register {
  background: linear-gradient(135deg, var(--w7b8f-primary), var(--w7b8f-secondary));
  color: #1C2833;
}
.w7b8f-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 16px rgba(64,224,208,0.4); }
.w7b8f-btn-login {
  background: transparent; color: var(--w7b8f-primary);
  border: 1.5px solid var(--w7b8f-primary);
}
.w7b8f-btn-login:hover { background: rgba(64,224,208,0.1); }

/* Hamburger Menu Button */
.w7b8f-menu-btn {
  width: 32px; height: 32px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.w7b8f-menu-btn span {
  display: block; width: 20px; height: 2px; background: var(--w7b8f-primary);
  border-radius: 2px; transition: all .3s;
}

/* ===== Mobile Menu ===== */
.w7b8f-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.w7b8f-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
  background: linear-gradient(180deg, #1C2833 0%, #0f1923 100%);
  z-index: 9999; transform: translateX(-100%); transition: transform .3s ease;
  padding: 70px 0 20px; overflow-y: auto;
}
.w7b8f-mobile-menu a {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  color: var(--w7b8f-text); font-size: 1.5rem; border-bottom: 1px solid var(--w7b8f-border);
  transition: all .2s;
}
.w7b8f-mobile-menu a:hover {
  background: rgba(64,224,208,0.08); color: var(--w7b8f-primary);
}

/* ===== Main Content ===== */
.w7b8f-main {
  margin-top: 56px; max-width: 430px; margin-left: auto; margin-right: auto;
}
@media (max-width: 768px) {
  .w7b8f-main { padding-bottom: 80px; }
}

/* ===== Carousel ===== */
.w7b8f-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 0 0 16px 16px; background: #0f1923;
}
.w7b8f-slide {
  display: none; cursor: pointer; width: 100%;
}
.w7b8f-slide-active { display: block; }
.w7b8f-slide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.w7b8f-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.w7b8f-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: all .3s;
}
.w7b8f-dot-active { background: var(--w7b8f-primary); width: 20px; border-radius: 4px; }

/* ===== Section Container ===== */
.w7b8f-section {
  padding: 20px 14px;
}
.w7b8f-section-title {
  font-size: 2.0rem; font-weight: 800; color: var(--w7b8f-text-bright);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--w7b8f-primary);
  display: flex; align-items: center; gap: 8px;
}
.w7b8f-section-title i { color: var(--w7b8f-primary); font-size: 2.2rem; }

/* ===== Game Grid ===== */
.w7b8f-game-category-title {
  font-size: 1.7rem; font-weight: 700; color: var(--w7b8f-primary);
  margin: 18px 0 10px; padding-left: 4px;
}
.w7b8f-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.w7b8f-game-item {
  display: flex; flex-direction: column; align-items: center;
  background: var(--w7b8f-bg-card); border-radius: 10px; padding: 8px 4px;
  cursor: pointer; transition: all .25s; border: 1px solid transparent;
}
.w7b8f-game-item:hover {
  border-color: var(--w7b8f-primary); transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64,224,208,0.15);
}
.w7b8f-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  margin-bottom: 4px;
}
.w7b8f-game-item span {
  font-size: 1.1rem; color: var(--w7b8f-text); text-align: center;
  line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Cards ===== */
.w7b8f-card {
  background: var(--w7b8f-bg-card); border-radius: var(--w7b8f-radius);
  padding: 16px; border: 1px solid var(--w7b8f-border);
  margin-bottom: 12px;
}
.w7b8f-card h3 {
  font-size: 1.6rem; color: var(--w7b8f-primary); margin-bottom: 8px;
}
.w7b8f-card p {
  font-size: 1.4rem; line-height: 1.6; color: var(--w7b8f-text);
}

/* ===== Promo Buttons ===== */
.w7b8f-promo-btn {
  display: inline-block; padding: 10px 24px; border-radius: 25px;
  background: linear-gradient(135deg, var(--w7b8f-primary), var(--w7b8f-secondary));
  color: #1C2833; font-weight: 800; font-size: 1.5rem;
  cursor: pointer; border: none; transition: all .25s;
  text-align: center; min-height: 44px;
}
.w7b8f-promo-btn:hover {
  transform: scale(1.05); box-shadow: 0 0 20px rgba(64,224,208,0.4);
}
.w7b8f-promo-text {
  color: var(--w7b8f-primary); font-weight: 700; cursor: pointer;
  text-decoration: underline; transition: color .2s;
}
.w7b8f-promo-text:hover { color: var(--w7b8f-text-bright); }

/* ===== Features Grid ===== */
.w7b8f-features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.w7b8f-feature-card {
  background: linear-gradient(135deg, var(--w7b8f-bg-card), var(--w7b8f-bg-light));
  border-radius: var(--w7b8f-radius); padding: 14px; text-align: center;
  border: 1px solid var(--w7b8f-border); transition: all .25s;
}
.w7b8f-feature-card:hover { border-color: var(--w7b8f-primary); }
.w7b8f-feature-card i { font-size: 2.8rem; color: var(--w7b8f-primary); margin-bottom: 8px; }
.w7b8f-feature-card h3 {
  font-size: 1.3rem; color: var(--w7b8f-text-bright); margin-bottom: 4px;
}
.w7b8f-feature-card p { font-size: 1.2rem; color: var(--w7b8f-text); }

/* ===== RTP Table ===== */
.w7b8f-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.w7b8f-rtp-table th {
  background: var(--w7b8f-bg-light); color: var(--w7b8f-primary);
  padding: 8px 6px; text-align: left; font-size: 1.2rem;
}
.w7b8f-rtp-table td {
  padding: 7px 6px; border-bottom: 1px solid var(--w7b8f-border);
  color: var(--w7b8f-text);
}
.w7b8f-rtp-bar {
  height: 6px; border-radius: 3px; background: var(--w7b8f-bg-light);
  overflow: hidden;
}
.w7b8f-rtp-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--w7b8f-primary), var(--w7b8f-secondary));
}

/* ===== Testimonials ===== */
.w7b8f-testimonial {
  background: var(--w7b8f-bg-card); border-radius: var(--w7b8f-radius);
  padding: 14px; margin-bottom: 10px; border-left: 3px solid var(--w7b8f-primary);
}
.w7b8f-testimonial p { font-size: 1.35rem; font-style: italic; margin-bottom: 6px; }
.w7b8f-testimonial cite { font-size: 1.2rem; color: var(--w7b8f-secondary); }

/* ===== Payment Icons ===== */
.w7b8f-payment-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 10px 0;
}
.w7b8f-payment-icon {
  background: var(--w7b8f-bg-light); border-radius: 8px; padding: 10px 14px;
  font-size: 1.3rem; color: var(--w7b8f-text); font-weight: 600;
  border: 1px solid var(--w7b8f-border);
}

/* ===== Winners Ticker ===== */
.w7b8f-winner-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--w7b8f-border);
  font-size: 1.3rem;
}
.w7b8f-winner-name { color: var(--w7b8f-primary); font-weight: 600; }
.w7b8f-winner-amount { color: #FFD700; font-weight: 700; }

/* ===== Footer ===== */
.w7b8f-footer {
  background: linear-gradient(180deg, var(--w7b8f-bg-card), #0f1923);
  padding: 24px 14px 20px; border-top: 1px solid var(--w7b8f-border);
  max-width: 430px; margin: 0 auto;
}
.w7b8f-footer-brand { margin-bottom: 14px; }
.w7b8f-footer-brand p { font-size: 1.3rem; line-height: 1.6; color: var(--w7b8f-text); margin-bottom: 8px; }
.w7b8f-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.w7b8f-footer-links a {
  display: inline-block; padding: 6px 14px; border-radius: 16px;
  background: var(--w7b8f-bg-light); font-size: 1.2rem;
  color: var(--w7b8f-text); border: 1px solid var(--w7b8f-border);
  transition: all .2s;
}
.w7b8f-footer-links a:hover { border-color: var(--w7b8f-primary); color: var(--w7b8f-primary); }
.w7b8f-footer-copy {
  font-size: 1.2rem; color: rgba(176,224,230,0.5); text-align: center;
  padding-top: 12px; border-top: 1px solid var(--w7b8f-border);
}

/* ===== Bottom Navigation ===== */
.w7b8f-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1e3044, #1C2833);
  border-top: 1px solid var(--w7b8f-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 4px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}
.w7b8f-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; background: none; border: none;
  cursor: pointer; transition: all .25s; color: rgba(176,224,230,0.6);
  padding: 4px 2px; border-radius: 8px;
}
.w7b8f-bnav-btn i, .w7b8f-bnav-btn .material-icons {
  font-size: 24px; margin-bottom: 2px; transition: all .25s;
}
.w7b8f-bnav-btn span {
  font-size: 1.0rem; font-weight: 600; transition: color .25s;
}
.w7b8f-bnav-btn:hover, .w7b8f-bnav-active {
  color: var(--w7b8f-primary);
}
.w7b8f-bnav-active i, .w7b8f-bnav-active .material-icons {
  transform: scale(1.15);
}
.w7b8f-bnav-btn:active {
  transform: scale(0.92);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .w7b8f-bnav { display: none; }
}

/* ===== Utility ===== */
.w7b8f-text-center { text-align: center; }
.w7b8f-mt-10 { margin-top: 10px; }
.w7b8f-mb-10 { margin-bottom: 10px; }
.w7b8f-promo-banner {
  background: linear-gradient(135deg, rgba(64,224,208,0.15), rgba(100,149,237,0.15));
  border: 1px solid var(--w7b8f-primary); border-radius: var(--w7b8f-radius);
  padding: 16px; text-align: center; margin: 14px 0;
}
.w7b8f-promo-banner h3 {
  font-size: 1.7rem; color: var(--w7b8f-primary); margin-bottom: 6px;
}
.w7b8f-promo-banner p {
  font-size: 1.3rem; color: var(--w7b8f-text); margin-bottom: 10px;
}

/* ===== FAQ Accordion ===== */
.w7b8f-faq-item { margin-bottom: 8px; }
.w7b8f-faq-q {
  background: var(--w7b8f-bg-light); padding: 12px 14px; border-radius: 8px;
  font-weight: 700; font-size: 1.4rem; color: var(--w7b8f-text-bright);
  cursor: pointer; border: 1px solid var(--w7b8f-border);
}
.w7b8f-faq-a {
  padding: 10px 14px; font-size: 1.35rem; line-height: 1.6;
  color: var(--w7b8f-text); display: none;
}
.w7b8f-faq-a.w7b8f-faq-open { display: block; }

/* ===== CTA Section ===== */
.w7b8f-cta {
  background: linear-gradient(135deg, rgba(64,224,208,0.1), rgba(100,149,237,0.1));
  border: 2px solid var(--w7b8f-primary); border-radius: var(--w7b8f-radius);
  padding: 20px 16px; text-align: center; margin: 16px 0;
}
.w7b8f-cta h2 {
  font-size: 2.0rem; color: var(--w7b8f-primary); margin-bottom: 8px;
}
.w7b8f-cta p {
  font-size: 1.4rem; color: var(--w7b8f-text); margin-bottom: 14px;
}

/* ===== Help Page Styles ===== */
.w7b8f-help-section { padding: 16px 14px; }
.w7b8f-help-section h2 {
  font-size: 1.8rem; color: var(--w7b8f-primary); margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--w7b8f-border);
}
.w7b8f-help-section p, .w7b8f-help-section li {
  font-size: 1.4rem; line-height: 1.7; color: var(--w7b8f-text);
}
.w7b8f-help-section ul { padding-left: 16px; }
.w7b8f-help-section li { margin-bottom: 6px; list-style: disc; }
