/**
 * bk333 app apk - Layout Stylesheet
 * All classes use pg44- prefix for namespace isolation
 * Color palette: #495057 | #FFFACD | #273746 | #006400
 */

:root {
  --pg44-primary: #006400;
  --pg44-primary-light: #008800;
  --pg44-bg: #273746;
  --pg44-bg-dark: #1a2530;
  --pg44-bg-card: #2f4050;
  --pg44-text: #FFFACD;
  --pg44-text-muted: #b8c4d0;
  --pg44-accent: #495057;
  --pg44-accent-light: #6c757d;
  --pg44-gold: #FFD700;
  --pg44-gold-dark: #DAA520;
  --pg44-danger: #dc3545;
  --pg44-success: #28a745;
  --pg44-border: #3d5060;
  --pg44-shadow: rgba(0,0,0,0.3);
  --pg44-radius: 8px;
  --pg44-radius-sm: 4px;
  --pg44-radius-lg: 12px;
  --pg44-transition: all 0.3s ease;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pg44-bg);
  color: var(--pg44-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--pg44-gold); }
ul, ol { list-style: none; }

/* ===== Header ===== */
.pg44-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 52px;
  background: var(--pg44-bg-dark);
  border-bottom: 1px solid var(--pg44-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}

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

.pg44-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: var(--pg44-radius-sm);
}

.pg44-logo-area span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pg44-gold);
  white-space: nowrap;
}

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

.pg44-btn-register, .pg44-btn-login {
  padding: 0.5rem 1rem;
  border-radius: var(--pg44-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--pg44-transition);
  min-height: 34px;
  min-width: 60px;
}

.pg44-btn-register {
  background: linear-gradient(135deg, var(--pg44-primary), var(--pg44-primary-light));
  color: #fff;
}

.pg44-btn-register:hover {
  background: linear-gradient(135deg, var(--pg44-primary-light), #00aa00);
  transform: scale(1.05);
}

.pg44-btn-login {
  background: transparent;
  color: var(--pg44-gold);
  border: 1px solid var(--pg44-gold);
}

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

.pg44-menu-toggle {
  background: none;
  border: none;
  color: var(--pg44-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== Mobile Menu ===== */
.pg44-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: var(--pg44-transition);
}

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

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

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

.pg44-menu-close {
  background: none;
  border: none;
  color: var(--pg44-text);
  font-size: 2.4rem;
  cursor: pointer;
  display: flex;
  margin-left: auto;
  margin-bottom: 1rem;
}

.pg44-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pg44-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  color: var(--pg44-text);
  font-size: 1.4rem;
  border-radius: var(--pg44-radius);
  transition: var(--pg44-transition);
}

.pg44-menu-list a:hover, .pg44-menu-list a:active {
  background: rgba(255,215,0,0.1);
  color: var(--pg44-gold);
}

.pg44-menu-list a i, .pg44-menu-list a span.material-symbols-outlined {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* ===== Carousel ===== */
.pg44-carousel {
  position: relative;
  width: 100%;
  margin-top: 52px;
  overflow: hidden;
  aspect-ratio: 16/7;
}

.pg44-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.pg44-slide-active { display: block; }

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

.pg44-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.pg44-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--pg44-transition);
}

.pg44-dot-active {
  background: var(--pg44-gold);
  width: 20px;
  border-radius: 4px;
}

/* ===== Main Content ===== */
.pg44-main {
  padding: 1rem;
  padding-bottom: 8rem;
}

.pg44-section {
  margin-bottom: 2rem;
}

.pg44-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg44-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg44-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg44-section-title i,
.pg44-section-title span.material-symbols-outlined {
  font-size: 2rem;
}

/* ===== Game Grid ===== */
.pg44-cat-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pg44-text);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pg44-primary);
}

.pg44-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.pg44-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--pg44-transition);
  padding: 0.4rem;
  border-radius: var(--pg44-radius);
}

.pg44-game-item:hover {
  background: rgba(255,215,0,0.08);
  transform: scale(1.03);
}

.pg44-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg44-radius);
  border: 1px solid var(--pg44-border);
  object-fit: cover;
}

.pg44-game-item span {
  font-size: 1rem;
  color: var(--pg44-text-muted);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== Promo CTA ===== */
.pg44-cta-box {
  background: linear-gradient(135deg, var(--pg44-primary), #004d00);
  border-radius: var(--pg44-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  cursor: pointer;
  transition: var(--pg44-transition);
}

.pg44-cta-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--pg44-shadow);
}

.pg44-cta-box h2 {
  font-size: 1.8rem;
  color: var(--pg44-gold);
  margin-bottom: 0.5rem;
}

.pg44-cta-box p {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.pg44-cta-btn {
  display: inline-block;
  background: var(--pg44-gold);
  color: var(--pg44-bg-dark);
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  transition: var(--pg44-transition);
}

.pg44-cta-btn:hover {
  background: var(--pg44-gold-dark);
  transform: scale(1.05);
}

/* ===== Content Cards ===== */
.pg44-card {
  background: var(--pg44-bg-card);
  border-radius: var(--pg44-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pg44-border);
}

.pg44-card h3 {
  font-size: 1.5rem;
  color: var(--pg44-gold);
  margin-bottom: 0.8rem;
}

.pg44-card p {
  font-size: 1.3rem;
  color: var(--pg44-text-muted);
  line-height: 2rem;
  margin-bottom: 0.8rem;
}

.pg44-card ul {
  padding-left: 1.2rem;
}

.pg44-card li {
  font-size: 1.3rem;
  color: var(--pg44-text-muted);
  line-height: 2rem;
  list-style: disc;
  margin-bottom: 0.3rem;
}

/* ===== Promo Link Text ===== */
.pg44-promo-text {
  color: var(--pg44-gold);
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg44-transition);
}

.pg44-promo-text:hover {
  color: var(--pg44-gold-dark);
  text-decoration: underline;
}

/* ===== Features Grid ===== */
.pg44-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.pg44-feature-item {
  background: var(--pg44-bg-card);
  border-radius: var(--pg44-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--pg44-border);
  cursor: pointer;
  transition: var(--pg44-transition);
}

.pg44-feature-item:hover {
  border-color: var(--pg44-primary);
  transform: translateY(-2px);
}

.pg44-feature-item i,
.pg44-feature-item span.material-symbols-outlined {
  font-size: 2.4rem;
  color: var(--pg44-primary-light);
  margin-bottom: 0.5rem;
  display: block;
}

.pg44-feature-item h4 {
  font-size: 1.2rem;
  color: var(--pg44-text);
  margin-bottom: 0.3rem;
}

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

/* ===== Winners ===== */
.pg44-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--pg44-bg-card);
  border-radius: var(--pg44-radius);
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--pg44-gold);
}

.pg44-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pg44-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

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

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

.pg44-winner-game {
  font-size: 1rem;
  color: var(--pg44-text-muted);
}

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

/* ===== Payment Methods ===== */
.pg44-payment-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pg44-payment-item {
  background: var(--pg44-bg-card);
  border: 1px solid var(--pg44-border);
  border-radius: var(--pg44-radius);
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: var(--pg44-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== Testimonials ===== */
.pg44-testimonial {
  background: var(--pg44-bg-card);
  border-radius: var(--pg44-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg44-primary);
}

.pg44-testimonial-text {
  font-size: 1.3rem;
  color: var(--pg44-text-muted);
  line-height: 1.8rem;
  font-style: italic;
  margin-bottom: 0.6rem;
}

.pg44-testimonial-author {
  font-size: 1.1rem;
  color: var(--pg44-gold);
  font-weight: 600;
}

/* ===== Footer ===== */
.pg44-footer {
  background: var(--pg44-bg-dark);
  padding: 2rem 1rem;
  border-top: 1px solid var(--pg44-border);
}

.pg44-footer-brand {
  font-size: 1.3rem;
  color: var(--pg44-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pg44-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg44-footer-links a {
  background: var(--pg44-bg-card);
  color: var(--pg44-text);
  padding: 0.5rem 1rem;
  border-radius: var(--pg44-radius);
  font-size: 1.1rem;
  border: 1px solid var(--pg44-border);
  transition: var(--pg44-transition);
}

.pg44-footer-links a:hover {
  border-color: var(--pg44-gold);
  color: var(--pg44-gold);
}

.pg44-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg44-footer-promos a {
  background: linear-gradient(135deg, var(--pg44-primary), #004d00);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--pg44-transition);
}

.pg44-footer-promos a:hover {
  transform: scale(1.05);
}

.pg44-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pg44-accent-light);
  border-top: 1px solid var(--pg44-border);
  padding-top: 1rem;
}

/* ===== Bottom Navigation ===== */
.pg44-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--pg44-bg-dark);
  border-top: 1px solid var(--pg44-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--pg44-shadow);
}

.pg44-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--pg44-text-muted);
  cursor: pointer;
  transition: var(--pg44-transition);
  padding: 0.3rem;
  border-radius: var(--pg44-radius);
  position: relative;
}

.pg44-bottom-btn i,
.pg44-bottom-btn span.material-symbols-outlined,
.pg44-bottom-btn ion-icon {
  font-size: 2.2rem;
  transition: var(--pg44-transition);
}

.pg44-bottom-btn span.pg44-btn-label {
  font-size: 1rem;
  margin-top: 0.1rem;
}

.pg44-bottom-btn:hover, .pg44-bottom-btn:active, .pg44-bottom-active {
  color: var(--pg44-gold);
}

.pg44-bottom-btn:hover i,
.pg44-bottom-btn:hover span.material-symbols-outlined,
.pg44-bottom-btn:hover ion-icon,
.pg44-bottom-active i,
.pg44-bottom-active span.material-symbols-outlined,
.pg44-bottom-active ion-icon {
  transform: scale(1.15);
}

.pg44-bottom-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--pg44-gold);
  border-radius: 1px;
}

/* ===== Help Page Styles ===== */
.pg44-help-content {
  margin-top: 52px;
  padding: 1rem;
  padding-bottom: 8rem;
}

.pg44-help-title {
  font-size: 1.8rem;
  color: var(--pg44-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg44-primary);
}

.pg44-help-section {
  margin-bottom: 1.5rem;
}

.pg44-help-section h2 {
  font-size: 1.5rem;
  color: var(--pg44-gold);
  margin-bottom: 0.6rem;
}

.pg44-help-section h3 {
  font-size: 1.3rem;
  color: var(--pg44-text);
  margin-bottom: 0.4rem;
}

.pg44-help-section p, .pg44-help-section li {
  font-size: 1.3rem;
  color: var(--pg44-text-muted);
  line-height: 2rem;
}

.pg44-help-section ol, .pg44-help-section ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.pg44-help-section li {
  margin-bottom: 0.4rem;
  list-style: decimal;
}

.pg44-help-section ul li { list-style: disc; }

.pg44-faq-item {
  background: var(--pg44-bg-card);
  border-radius: var(--pg44-radius);
  margin-bottom: 0.8rem;
  border: 1px solid var(--pg44-border);
  overflow: hidden;
}

.pg44-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pg44-text);
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg44-faq-q:hover { color: var(--pg44-gold); }

.pg44-faq-a {
  font-size: 1.2rem;
  color: var(--pg44-text-muted);
  padding: 0 1rem 1rem;
  line-height: 1.8rem;
}

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

@media (max-width: 768px) {
  .pg44-main, .pg44-help-content { padding-bottom: 76px; }
}

/* ===== Utility ===== */
.pg44-text-center { text-align: center; }
.pg44-mt-1 { margin-top: 1rem; }
.pg44-mb-1 { margin-bottom: 1rem; }
.pg44-mb-2 { margin-bottom: 2rem; }
.pg44-hidden { display: none; }
