/**
 * KKBB - Theme Stylesheet
 * Prefix: pgb9-
 * Colors: #00FFFF (cyan), #7CFC00 (green), #273746 (dark bg)
 */

/* CSS Variables */
:root {
  --pgb9-primary: #00FFFF;
  --pgb9-secondary: #7CFC00;
  --pgb9-bg: #273746;
  --pgb9-bg-dark: #1a2530;
  --pgb9-bg-card: #2c3e50;
  --pgb9-text: #e8f4f8;
  --pgb9-text-muted: #8fa8b8;
  --pgb9-accent: #00FFFF;
  --pgb9-success: #7CFC00;
  --pgb9-warning: #FFD700;
  --pgb9-danger: #FF6B6B;
  --pgb9-radius: 8px;
  --pgb9-radius-lg: 12px;
  --pgb9-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --pgb9-header-height: 56px;
  --pgb9-bottom-nav-height: 60px;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pgb9-bg);
  color: var(--pgb9-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pgb9-primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.pgb9-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
}

.pgb9-wrapper {
  padding-top: var(--pgb9-header-height);
  min-height: 100vh;
}

/* Header */
.pgb9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pgb9-header-height);
  background: linear-gradient(135deg, var(--pgb9-bg-dark), var(--pgb9-bg));
  border-bottom: 2px solid var(--pgb9-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}

.pgb9-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pgb9-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pgb9-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgb9-primary);
  letter-spacing: 1px;
}

.pgb9-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pgb9-btn-register {
  background: var(--pgb9-primary);
  color: var(--pgb9-bg-dark);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--pgb9-radius);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pgb9-btn-register:hover {
  background: #33FFFF;
  transform: scale(1.05);
}

.pgb9-btn-login {
  background: transparent;
  color: var(--pgb9-primary);
  border: 1.5px solid var(--pgb9-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--pgb9-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pgb9-btn-login:hover {
  background: rgba(0, 255, 255, 0.1);
}

.pgb9-menu-toggle {
  background: none;
  border: none;
  color: var(--pgb9-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.pgb9-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--pgb9-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

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

.pgb9-mobile-menu .pgb9-menu-title {
  font-size: 1.8rem;
  color: var(--pgb9-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.pgb9-menu-links {
  list-style: none;
}

.pgb9-menu-links li {
  margin-bottom: 0.8rem;
}

.pgb9-menu-links a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--pgb9-text);
  font-size: 1.5rem;
  border-radius: var(--pgb9-radius);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.pgb9-menu-links a:hover {
  background: rgba(0, 255, 255, 0.08);
  border-left-color: var(--pgb9-primary);
  color: var(--pgb9-primary);
}

.pgb9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Carousel */
.pgb9-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pgb9-radius-lg);
  margin: 1rem 0;
}

.pgb9-slides-wrapper {
  position: relative;
  width: 100%;
  padding-top: 45%;
}

.pgb9-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.pgb9-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgb9-slide-active {
  opacity: 1;
}

.pgb9-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 1.6rem;
  z-index: 5;
  border-radius: 50%;
  transition: background 0.2s;
}

.pgb9-carousel-btn:hover {
  background: rgba(0, 255, 255, 0.4);
}

.pgb9-carousel-prev { left: 0.5rem; }
.pgb9-carousel-next { right: 0.5rem; }

/* Section titles */
.pgb9-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pgb9-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.pgb9-section-title i {
  margin-right: 0.5rem;
}

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

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

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

.pgb9-game-item img {
  width: 70px;
  height: 70px;
  border-radius: var(--pgb9-radius);
  object-fit: cover;
  border: 2px solid rgba(0, 255, 255, 0.2);
  margin-bottom: 0.4rem;
}

.pgb9-game-name {
  font-size: 1.1rem;
  color: var(--pgb9-text);
  line-height: 1.3rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category label */
.pgb9-cat-label {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pgb9-secondary);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pgb9-cat-label i {
  font-size: 1.8rem;
}

/* Content cards */
.pgb9-card {
  background: var(--pgb9-bg-card);
  border-radius: var(--pgb9-radius-lg);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.pgb9-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pgb9-primary);
  margin-bottom: 0.8rem;
}

.pgb9-card p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--pgb9-text-muted);
  margin-bottom: 0.8rem;
}

/* Promo link styles */
.pgb9-promo-link {
  color: var(--pgb9-secondary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.pgb9-promo-link:hover {
  color: #9fff3a;
}

.pgb9-btn-play {
  display: inline-block;
  background: linear-gradient(135deg, var(--pgb9-primary), var(--pgb9-secondary));
  color: var(--pgb9-bg-dark);
  padding: 0.8rem 2rem;
  border-radius: var(--pgb9-radius);
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  margin: 0.5rem 0;
}

.pgb9-btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Features grid */
.pgb9-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.pgb9-feature-item {
  background: var(--pgb9-bg-card);
  border-radius: var(--pgb9-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid rgba(0, 255, 255, 0.1);
  transition: border-color 0.2s;
}

.pgb9-feature-item:hover {
  border-color: var(--pgb9-primary);
}

.pgb9-feature-item i {
  font-size: 2.4rem;
  color: var(--pgb9-primary);
  margin-bottom: 0.5rem;
}

.pgb9-feature-item h3 {
  font-size: 1.4rem;
  color: var(--pgb9-primary);
  margin-bottom: 0.3rem;
}

.pgb9-feature-item p {
  font-size: 1.2rem;
  color: var(--pgb9-text-muted);
}

/* RTP Table */
.pgb9-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1.3rem;
}

.pgb9-rtp-table th {
  background: var(--pgb9-bg-dark);
  color: var(--pgb9-primary);
  padding: 0.8rem 0.5rem;
  text-align: left;
  border-bottom: 2px solid var(--pgb9-primary);
}

.pgb9-rtp-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pgb9-rtp-table tr:hover td {
  background: rgba(0, 255, 255, 0.05);
}

.pgb9-rtp-high {
  color: var(--pgb9-secondary);
  font-weight: 700;
}

/* Testimonials */
.pgb9-testimonial {
  background: var(--pgb9-bg-card);
  border-radius: var(--pgb9-radius);
  padding: 1.2rem;
  margin: 0.8rem 0;
  border-left: 3px solid var(--pgb9-primary);
}

.pgb9-testimonial p {
  font-style: italic;
  color: var(--pgb9-text-muted);
  font-size: 1.3rem;
}

.pgb9-testimonial .pgb9-author {
  color: var(--pgb9-secondary);
  font-style: normal;
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

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

.pgb9-payment-item {
  background: var(--pgb9-bg-card);
  border-radius: var(--pgb9-radius);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--pgb9-text);
  border: 1px solid rgba(0, 255, 255, 0.15);
}

/* Winners showcase */
.pgb9-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--pgb9-bg-card);
  border-radius: var(--pgb9-radius);
  margin: 0.5rem 0;
}

.pgb9-winner-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.pgb9-winner-info {
  flex: 1;
}

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

.pgb9-winner-amount {
  font-size: 1.4rem;
  color: var(--pgb9-secondary);
  font-weight: 700;
}

/* Footer */
.pgb9-footer {
  background: var(--pgb9-bg-dark);
  padding: 2rem 1.2rem 6rem;
  margin-top: 2rem;
  border-top: 2px solid rgba(0, 255, 255, 0.2);
}

.pgb9-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pgb9-footer-brand p {
  font-size: 1.3rem;
  color: var(--pgb9-text-muted);
  line-height: 1.6;
  margin: 0.5rem 0;
}

.pgb9-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0;
}

.pgb9-footer-promo button {
  background: linear-gradient(135deg, var(--pgb9-primary), var(--pgb9-secondary));
  color: var(--pgb9-bg-dark);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--pgb9-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.pgb9-footer-promo button:hover {
  transform: scale(1.05);
}

.pgb9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.pgb9-footer-links a {
  font-size: 1.2rem;
  color: var(--pgb9-text-muted);
  transition: color 0.2s;
}

.pgb9-footer-links a:hover {
  color: var(--pgb9-primary);
}

.pgb9-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--pgb9-text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Nav */
.pgb9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--pgb9-bottom-nav-height);
  background: linear-gradient(180deg, var(--pgb9-bg), var(--pgb9-bg-dark));
  border-top: 2px solid var(--pgb9-primary);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 0.3rem;
}

.pgb9-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--pgb9-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 0.3rem 0;
}

.pgb9-bottom-nav-btn i,
.pgb9-bottom-nav-btn .material-icons,
.pgb9-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 0.2rem;
}

.pgb9-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

.pgb9-bottom-nav-btn:hover {
  color: var(--pgb9-primary);
  background: rgba(0, 255, 255, 0.08);
}

.pgb9-bottom-nav-btn.pgb9-btn-active {
  color: var(--pgb9-primary);
}

.pgb9-bottom-nav-btn.pgb9-btn-active i,
.pgb9-bottom-nav-btn.pgb9-btn-active .material-icons {
  color: var(--pgb9-secondary);
}

/* Utility */
.pgb9-text-center { text-align: center; }
.pgb9-text-cyan { color: var(--pgb9-primary); }
.pgb9-text-green { color: var(--pgb9-secondary); }
.pgb9-mt-1 { margin-top: 1rem; }
.pgb9-mb-1 { margin-bottom: 1rem; }
.pgb9-hidden { display: none; }

/* Responsive */
@media (min-width: 769px) {
  .pgb9-bottom-nav {
    display: none;
  }
  .pgb9-container {
    max-width: 430px;
  }
}

@media (max-width: 768px) {
  .pgb9-wrapper {
    padding-bottom: 80px;
  }
}

@media (max-width: 360px) {
  .pgb9-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .pgb9-game-item img {
    width: 60px;
    height: 60px;
  }
}
