/**
 * 4777det Main Stylesheet
 * All classes use pg5f- prefix for namespace isolation
 * Color palette: #CC99FF | #00CED1 | #004D40 | #F0F0F0 | #0000CD | #212F3D
 */

/* CSS Variables */
:root {
  --pg5f-primary: #00CED1;
  --pg5f-secondary: #CC99FF;
  --pg5f-accent: #0000CD;
  --pg5f-bg-dark: #212F3D;
  --pg5f-bg-deep: #004D40;
  --pg5f-text-light: #F0F0F0;
  --pg5f-text-muted: #a0b4c8;
  --pg5f-border: #2a4a5a;
  --pg5f-card-bg: #1a2f3e;
  --pg5f-gradient-start: #212F3D;
  --pg5f-gradient-end: #004D40;
  --pg5f-font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--pg5f-font-size); scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--pg5f-gradient-start), var(--pg5f-gradient-end));
  color: var(--pg5f-text-light);
  line-height: 1.5rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pg5f-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--pg5f-secondary); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.pg5f-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.pg5f-wrapper { width: 100%; overflow-x: hidden; }

/* Header */
.pg5f-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #1a2530, #004D40);
  border-bottom: 2px solid var(--pg5f-primary);
  padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.pg5f-header-logo {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
}
.pg5f-header-logo img { width: 28px; height: 28px; border-radius: 4px; }
.pg5f-header-logo span { color: var(--pg5f-primary); font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; }
.pg5f-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.pg5f-header-menu-btn {
  background: none; border: none; color: var(--pg5f-text-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; line-height: 1;
}
.pg5f-btn-register {
  background: linear-gradient(135deg, #CC99FF, #9b59b6);
  color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 6px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.pg5f-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(204,153,255,0.4); }
.pg5f-btn-login {
  background: linear-gradient(135deg, #00CED1, #008B8B);
  color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 6px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.pg5f-btn-login:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(0,206,209,0.4); }

/* Mobile Menu Overlay */
.pg5f-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.pg5f-overlay-active { display: block; }

/* Mobile Menu */
.pg5f-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: linear-gradient(180deg, #1a2f3e, #004D40);
  z-index: 9999; transition: right 0.3s ease; overflow-y: auto;
  padding: 2rem 1.5rem;
}
.pg5f-menu-active { right: 0; }
.pg5f-menu-close {
  background: none; border: none; color: var(--pg5f-text-light);
  font-size: 2.4rem; cursor: pointer; position: absolute; top: 1rem; right: 1rem;
}
.pg5f-mobile-menu h3 { color: var(--pg5f-primary); font-size: 1.4rem; margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--pg5f-border); }
.pg5f-mobile-menu ul { list-style: none; }
.pg5f-mobile-menu li { margin-bottom: 0.3rem; }
.pg5f-mobile-menu a {
  display: block; padding: 0.9rem 1rem; color: var(--pg5f-text-light);
  font-size: 1.3rem; border-radius: 6px; transition: all 0.3s;
}
.pg5f-mobile-menu a:hover { background: rgba(0,206,209,0.15); color: var(--pg5f-primary); }

/* Main Content Area */
.pg5f-main { padding-top: 56px; }
@media (max-width: 768px) {
  .pg5f-main { padding-bottom: 80px; }
}

/* Slider */
.pg5f-slider { position: relative; overflow: hidden; margin: 0.8rem 0; border-radius: 10px; }
.pg5f-slide {
  display: none; width: 100%; cursor: pointer; border-radius: 10px; overflow: hidden;
}
.pg5f-slide-active { display: block; animation: pg5f-fadeIn 0.5s ease; }
.pg5f-slide img { width: 100%; height: auto; border-radius: 10px; }
@keyframes pg5f-fadeIn { from { opacity: 0.3; } to { opacity: 1; } }
.pg5f-slider-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.pg5f-slide-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(240,240,240,0.4);
  cursor: pointer; transition: all 0.3s;
}
.pg5f-dot-active { background: var(--pg5f-primary); width: 20px; border-radius: 4px; }

/* Section Title */
.pg5f-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--pg5f-primary);
  margin: 1.8rem 0 1rem; padding-left: 1rem;
  border-left: 4px solid var(--pg5f-secondary);
  line-height: 1.3;
}
.pg5f-section-title span { color: var(--pg5f-secondary); }

/* Game Grid */
.pg5f-game-section { margin: 1.2rem 0; }
.pg5f-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0.5rem 0;
}
.pg5f-game-item {
  text-align: center; cursor: pointer; transition: transform 0.3s;
  border-radius: 8px; overflow: hidden;
}
.pg5f-game-item:hover { transform: translateY(-3px); }
.pg5f-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: 8px;
  border: 2px solid var(--pg5f-border); transition: border-color 0.3s;
  object-fit: cover;
}
.pg5f-game-item:hover img { border-color: var(--pg5f-primary); }
.pg5f-game-item p {
  font-size: 1rem; color: var(--pg5f-text-light); margin-top: 0.3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Content Cards */
.pg5f-card {
  background: var(--pg5f-card-bg); border-radius: 10px; padding: 1.5rem;
  margin: 1rem 0; border: 1px solid var(--pg5f-border);
  transition: border-color 0.3s;
}
.pg5f-card:hover { border-color: var(--pg5f-primary); }
.pg5f-card h2 { color: var(--pg5f-primary); font-size: 1.6rem; margin-bottom: 0.8rem; }
.pg5f-card h3 { color: var(--pg5f-secondary); font-size: 1.4rem; margin-bottom: 0.6rem; }
.pg5f-card p { font-size: 1.2rem; line-height: 1.6; color: var(--pg5f-text-muted); margin-bottom: 0.8rem; }
.pg5f-card ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.pg5f-card li { font-size: 1.2rem; color: var(--pg5f-text-muted); margin-bottom: 0.4rem; line-height: 1.5; }

/* Promo Link Styles */
.pg5f-promo-text {
  color: var(--pg5f-primary); font-weight: 700; cursor: pointer;
  text-decoration: underline; transition: color 0.3s; font-size: 1.2rem;
}
.pg5f-promo-text:hover { color: var(--pg5f-secondary); }
.pg5f-btn-promo {
  display: inline-block; background: linear-gradient(135deg, var(--pg5f-accent), #1a237e);
  color: #fff; padding: 0.8rem 2rem; border-radius: 8px; font-size: 1.3rem;
  font-weight: 600; border: none; cursor: pointer; transition: all 0.3s;
  text-align: center;
}
.pg5f-btn-promo:hover { transform: scale(1.03); box-shadow: 0 3px 12px rgba(0,0,205,0.5); }
.pg5f-btn-promo-accent {
  display: inline-block; background: linear-gradient(135deg, #CC99FF, #9b59b6);
  color: #fff; padding: 0.8rem 2rem; border-radius: 8px; font-size: 1.3rem;
  font-weight: 600; border: none; cursor: pointer; transition: all 0.3s;
  text-align: center;
}
.pg5f-btn-promo-accent:hover { transform: scale(1.03); box-shadow: 0 3px 12px rgba(204,153,255,0.5); }

/* Testimonial Card */
.pg5f-testimonial {
  background: var(--pg5f-card-bg); border-radius: 10px; padding: 1.2rem;
  margin: 0.8rem 0; border-left: 3px solid var(--pg5f-secondary);
}
.pg5f-testimonial p { font-style: italic; font-size: 1.1rem; color: var(--pg5f-text-muted); }
.pg5f-testimonial .pg5f-author { color: var(--pg5f-primary); font-weight: 600; font-size: 1.1rem; margin-top: 0.5rem; }

/* Winner List */
.pg5f-winner-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(42,74,90,0.5);
  font-size: 1.1rem;
}
.pg5f-winner-item:last-child { border-bottom: none; }
.pg5f-winner-name { color: var(--pg5f-secondary); }
.pg5f-winner-game { color: var(--pg5f-text-muted); }
.pg5f-winner-amount { color: var(--pg5f-primary); font-weight: 700; }

/* Payment Methods */
.pg5f-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
  margin: 1rem 0;
}
.pg5f-payment-item {
  background: var(--pg5f-card-bg); padding: 0.6rem 1.2rem;
  border-radius: 6px; font-size: 1.1rem; color: var(--pg5f-text-light);
  border: 1px solid var(--pg5f-border);
}

/* Bottom Navigation */
.pg5f-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; height: 60px;
  background: linear-gradient(180deg, #1a2530, #0d1a24);
  border-top: 2px solid var(--pg5f-primary);
  justify-content: space-around; align-items: center;
  padding: 0 0.3rem;
}
@media (max-width: 768px) { .pg5f-bottom-nav { display: flex; } }
.pg5f-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(--pg5f-text-muted); cursor: pointer; transition: all 0.3s;
  border-radius: 8px; padding: 0.3rem 0;
}
.pg5f-bottom-nav-btn:hover, .pg5f-bottom-nav-btn.pg5f-nav-current {
  color: var(--pg5f-primary); transform: scale(1.08);
}
.pg5f-bottom-nav-btn i, .pg5f-bottom-nav-btn span.material-symbols-outlined,
.pg5f-bottom-nav-btn ion-icon, .pg5f-bottom-nav-btn bi {
  font-size: 22px; margin-bottom: 2px;
}
.pg5f-bottom-nav-btn span.pg5f-nav-label {
  font-size: 1rem; line-height: 1.2;
}

/* Footer */
.pg5f-footer {
  background: linear-gradient(180deg, #0d1a24, #071015);
  padding: 2rem 1rem 1.5rem; margin-top: 2rem;
  border-top: 2px solid var(--pg5f-border);
}
.pg5f-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.pg5f-footer-brand p { font-size: 1.1rem; color: var(--pg5f-text-muted); line-height: 1.6; margin-bottom: 0.5rem; }
.pg5f-footer-brand h4 { color: var(--pg5f-primary); font-size: 1.4rem; margin-bottom: 0.5rem; }
.pg5f-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1rem 0; }
.pg5f-footer-links a {
  color: var(--pg5f-text-muted); font-size: 1.1rem; padding: 0.3rem 0.6rem;
  border-radius: 4px; transition: all 0.3s;
}
.pg5f-footer-links a:hover { color: var(--pg5f-primary); background: rgba(0,206,209,0.1); }
.pg5f-footer-promo {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1.2rem 0;
}
.pg5f-footer-promo button {
  background: linear-gradient(135deg, var(--pg5f-accent), #1a237e);
  color: #fff; border: none; padding: 0.6rem 1.4rem; border-radius: 6px;
  font-size: 1.1rem; cursor: pointer; transition: all 0.3s; font-weight: 600;
}
.pg5f-footer-promo button:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(0,0,205,0.4); }
.pg5f-footer-copy {
  text-align: center; font-size: 1rem; color: rgba(160,180,200,0.5);
  padding-top: 1rem; border-top: 1px solid var(--pg5f-border);
}

/* Responsive: hide bottom nav on desktop */
@media (min-width: 769px) {
  .pg5f-bottom-nav { display: none !important; }
  .pg5f-main { padding-bottom: 0; }
}

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