/**
 * PH365 Casino - Core Stylesheet
 * Prefix: pgeb-
 * Colors: #40E0D0 | #0000CD | #6C757D | #FFB3BA | #4682B4 | #1A1A1A
 * Mobile-first design, max-width 430px
 */

:root {
  --pgeb-primary: #40E0D0;
  --pgeb-blue: #0000CD;
  --pgeb-gray: #6C757D;
  --pgeb-pink: #FFB3BA;
  --pgeb-steel: #4682B4;
  --pgeb-dark: #1A1A1A;
  --pgeb-bg: #0d0d1a;
  --pgeb-card: #1a1a2e;
  --pgeb-text: #e8e8e8;
  --pgeb-text-dim: #a0a0b0;
  --pgeb-radius: 8px;
  --pgeb-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--pgeb-bg);
  color: var(--pgeb-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

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

/* Header */
.pgeb-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, var(--pgeb-dark) 0%, #12122a 100%);
  border-bottom: 2px solid var(--pgeb-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(64, 224, 208, 0.15);
}

.pgeb-header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.pgeb-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pgeb-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pgeb-primary);
  letter-spacing: 0.5px;
}

.pgeb-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pgeb-btn-register, .pgeb-btn-login {
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pgeb-btn-register {
  background: linear-gradient(135deg, var(--pgeb-primary), #2abfb2);
  color: var(--pgeb-dark);
}

.pgeb-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(64, 224, 208, 0.4);
}

.pgeb-btn-login {
  background: transparent;
  border: 1.5px solid var(--pgeb-primary);
  color: var(--pgeb-primary);
}

.pgeb-btn-login:hover {
  background: rgba(64, 224, 208, 0.1);
}

.pgeb-hamburger {
  background: none;
  border: none;
  color: var(--pgeb-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Overlay */
.pgeb-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pgeb-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.pgeb-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--pgeb-dark) 0%, #0a0a1f 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}

.pgeb-menu-active { right: 0; }

.pgeb-menu-close {
  background: none;
  border: none;
  color: var(--pgeb-primary);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
}

.pgeb-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgeb-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(64, 224, 208, 0.2);
}

.pgeb-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--pgeb-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}

.pgeb-menu-link:hover { color: var(--pgeb-primary); }

.pgeb-menu-link i,
.pgeb-menu-link .material-icons-outlined {
  margin-right: 1rem;
  font-size: 1.6rem;
}

/* Bottom Navigation */
.pgeb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #141428 0%, var(--pgeb-dark) 100%);
  border-top: 1.5px solid rgba(64, 224, 208, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 0.4rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
}

.pgeb-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pgeb-gray);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.4rem 0;
  border-radius: 8px;
}

.pgeb-bottom-nav-btn:hover,
.pgeb-nav-active {
  color: var(--pgeb-primary);
  transform: scale(1.08);
}

.pgeb-bottom-nav-btn i,
.pgeb-bottom-nav-btn .material-icons-outlined,
.pgeb-bottom-nav-btn ion-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.pgeb-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 500;
}

.pgeb-nav-active {
  background: rgba(64, 224, 208, 0.08);
}

/* Carousel */
.pgeb-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pgeb-radius);
  margin-top: 0.8rem;
}

.pgeb-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.pgeb-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.pgeb-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.pgeb-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}

.pgeb-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pgeb-gray);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.pgeb-carousel-dot.active {
  background: var(--pgeb-primary);
  width: 20px;
  border-radius: 4px;
}

/* Section Headers */
.pgeb-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgeb-primary);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--pgeb-primary);
}

.pgeb-section-subtitle {
  font-size: 1.4rem;
  color: var(--pgeb-text-dim);
  margin-bottom: 1.2rem;
  padding-left: 1rem;
}

/* Game Grid */
.pgeb-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.pgeb-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

.pgeb-game-item:hover { transform: scale(1.05); }

.pgeb-game-item img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(64, 224, 208, 0.15);
  margin-bottom: 0.4rem;
}

.pgeb-game-item span {
  font-size: 1rem;
  color: var(--pgeb-text-dim);
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cards */
.pgeb-card {
  background: var(--pgeb-card);
  border-radius: var(--pgeb-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(64, 224, 208, 0.1);
  box-shadow: var(--pgeb-shadow);
}

.pgeb-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pgeb-primary);
  margin-bottom: 0.8rem;
}

.pgeb-card-text {
  font-size: 1.3rem;
  color: var(--pgeb-text-dim);
  line-height: 1.7rem;
}

/* Promo Buttons */
.pgeb-promo-btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: linear-gradient(135deg, var(--pgeb-primary), var(--pgeb-steel));
  color: var(--pgeb-dark);
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.pgeb-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(64, 224, 208, 0.35);
}

.pgeb-promo-link {
  color: var(--pgeb-primary);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.pgeb-promo-link:hover {
  color: var(--pgeb-pink);
  text-decoration: underline;
}

/* Footer */
.pgeb-footer {
  background: linear-gradient(180deg, var(--pgeb-dark) 0%, #08081a 100%);
  padding: 2.4rem 1.2rem 8rem;
  border-top: 1px solid rgba(64, 224, 208, 0.12);
  margin-top: 2rem;
}

.pgeb-footer-brand {
  font-size: 1.3rem;
  color: var(--pgeb-text-dim);
  line-height: 1.7rem;
  margin-bottom: 1.6rem;
}

.pgeb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.pgeb-footer-link {
  font-size: 1.2rem;
  color: var(--pgeb-text-dim);
  transition: color 0.2s;
}

.pgeb-footer-link:hover { color: var(--pgeb-primary); }

.pgeb-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.pgeb-footer-copy {
  font-size: 1.1rem;
  color: var(--pgeb-gray);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

main { padding-top: 60px; }

/* FAQ Accordion */
.pgeb-faq-item {
  background: var(--pgeb-card);
  border-radius: var(--pgeb-radius);
  margin-bottom: 0.8rem;
  border: 1px solid rgba(64, 224, 208, 0.08);
  overflow: hidden;
}

.pgeb-faq-q {
  padding: 1.2rem 1.4rem;
  font-weight: 600;
  color: var(--pgeb-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pgeb-faq-q i { color: var(--pgeb-primary); font-size: 1.4rem; }

.pgeb-faq-a {
  padding: 0 1.4rem 1.2rem;
  font-size: 1.3rem;
  color: var(--pgeb-text-dim);
  line-height: 1.7rem;
}

/* Feature list */
.pgeb-feature-list {
  list-style: none;
  padding: 0;
}

.pgeb-feature-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.3rem;
  color: var(--pgeb-text-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.pgeb-feature-list li i {
  color: var(--pgeb-primary);
  margin-top: 0.2rem;
  font-size: 1.4rem;
}

/* Winner list */
.pgeb-winner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.pgeb-winner-item {
  background: rgba(64, 224, 208, 0.04);
  border-radius: var(--pgeb-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(64, 224, 208, 0.08);
}

.pgeb-winner-name { font-size: 1.2rem; color: var(--pgeb-primary); font-weight: 600; }

.pgeb-winner-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pgeb-pink);
  margin: 0.4rem 0;
}

.pgeb-winner-game { font-size: 1.1rem; color: var(--pgeb-gray); }

/* Desktop */
@media (min-width: 769px) {
  .pgeb-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: 76px; }
}

/* Utility */
.pgeb-text-center { text-align: center; }
.pgeb-mt-1 { margin-top: 0.8rem; }
.pgeb-mt-2 { margin-top: 1.6rem; }
.pgeb-mb-1 { margin-bottom: 0.8rem; }
.pgeb-mb-2 { margin-bottom: 1.6rem; }
.pgeb-p-1 { padding: 0.8rem; }
.pgeb-p-2 { padding: 1.6rem; }

/* Tips page styling */
.pgeb-tip-card {
  background: var(--pgeb-card);
  border-radius: var(--pgeb-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--pgeb-primary);
}

.pgeb-tip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--pgeb-primary);
  color: var(--pgeb-dark);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: 0.8rem;
}

.pgeb-tip-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pgeb-text);
  margin-bottom: 0.5rem;
}

.pgeb-tip-desc {
  font-size: 1.3rem;
  color: var(--pgeb-text-dim);
  line-height: 1.7rem;
}

/* Payment icons */
.pgeb-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.pgeb-payment-icon {
  width: 56px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--pgeb-text-dim);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Highlight box */
.pgeb-highlight-box {
  background: linear-gradient(135deg, rgba(64, 224, 208, 0.08), rgba(70, 130, 180, 0.08));
  border-radius: var(--pgeb-radius);
  padding: 1.6rem;
  margin: 1.2rem 0;
  border: 1px solid rgba(64, 224, 208, 0.15);
}

/* Testimonial */
.pgeb-testimonial {
  background: var(--pgeb-card);
  border-radius: var(--pgeb-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pgeb-pink);
}

.pgeb-testimonial-name {
  font-size: 1.2rem;
  color: var(--pgeb-primary);
  font-weight: 600;
}

.pgeb-testimonial-text {
  font-size: 1.2rem;
  color: var(--pgeb-text-dim);
  line-height: 1.6rem;
  margin-top: 0.4rem;
}

/* RTP table */
.pgeb-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.pgeb-rtp-table th {
  background: rgba(64, 224, 208, 0.1);
  color: var(--pgeb-primary);
  padding: 0.8rem;
  text-align: left;
  font-weight: 600;
}

.pgeb-rtp-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--pgeb-text-dim);
}

.pgeb-rtp-table tr:hover td { color: var(--pgeb-text); }
