/**
 * PHWIN Theme Stylesheet
 * File: css/theme-c668.css
 * All classes use prefix: g688-
 * Color palette: #1B263B | #000080 | #6495ED | #87CEFA
 */

/* CSS Variables */
:root {
  --g688-primary: #000080;
  --g688-secondary: #6495ED;
  --g688-accent: #87CEFA;
  --g688-dark: #1B263B;
  --g688-darker: #0f1525;
  --g688-text: #e8edf5;
  --g688-text-muted: #94a3b8;
  --g688-bg: #1B263B;
  --g688-card-bg: #162032;
  --g688-border: #2a3a52;
  --g688-success: #22c55e;
  --g688-warning: #f59e0b;
  --g688-radius: 1.2rem;
  --g688-radius-sm: 0.8rem;
  --g688-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g688-text);
  background: var(--g688-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--g688-accent); text-decoration: none; }
a:hover { color: var(--g688-secondary); }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
.g688-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g688-dark) 0%, var(--g688-primary) 100%);
  border-bottom: 0.2rem solid var(--g688-border);
  height: 5.6rem;
}
.g688-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.g688-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.g688-logo-area img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
}
.g688-logo-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--g688-accent), var(--g688-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}
.g688-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g688-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--g688-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.g688-btn-register {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}
.g688-btn-register:hover { transform: scale(1.05); background: linear-gradient(135deg, #16a34a, #15803d); }
.g688-btn-login {
  background: linear-gradient(135deg, var(--g688-secondary), var(--g688-primary));
  color: #fff;
}
.g688-btn-login:hover { transform: scale(1.05); }
.g688-btn-promo {
  background: linear-gradient(135deg, var(--g688-accent), var(--g688-secondary));
  color: var(--g688-dark);
  padding: 0.8rem 2rem;
  font-size: 1.4rem;
}
.g688-btn-promo:hover { transform: scale(1.05); }
.g688-hamburger {
  background: none;
  border: none;
  color: var(--g688-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.g688-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.g688-overlay-active { opacity: 1; pointer-events: all; }
.g688-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--g688-darker), var(--g688-dark));
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}
.g688-menu-active { right: 0; }
.g688-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 0.1rem solid var(--g688-border);
}
.g688-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g688-accent);
}
.g688-menu-close {
  background: none;
  border: none;
  color: var(--g688-text-muted);
  font-size: 2.2rem;
  cursor: pointer;
}
.g688-menu-nav { list-style: none; }
.g688-menu-nav li {
  margin-bottom: 0.3rem;
}
.g688-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: var(--g688-text);
  font-size: 1.5rem;
  border-radius: var(--g688-radius-sm);
  transition: all 0.2s;
}
.g688-menu-nav a:hover {
  background: rgba(100, 149, 237, 0.15);
  color: var(--g688-accent);
}
.g688-menu-nav .material-icons, .g688-menu-nav .bi {
  font-size: 2rem;
  color: var(--g688-secondary);
}

/* ===== CAROUSEL ===== */
.g688-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--g688-radius);
  margin-top: 6.4rem;
  aspect-ratio: 16/7;
  cursor: pointer;
}
.g688-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.g688-slide-active { opacity: 1; }
.g688-carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.g688-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.g688-carousel-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.g688-dot-active {
  background: var(--g688-accent);
  transform: scale(1.3);
}

/* ===== SECTIONS ===== */
.g688-section {
  padding: 2.5rem 0;
}
.g688-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--g688-text);
  position: relative;
  padding-left: 1.2rem;
}
.g688-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.4rem;
  height: 2rem;
  background: linear-gradient(180deg, var(--g688-secondary), var(--g688-accent));
  border-radius: 0.2rem;
}
.g688-section-desc {
  color: var(--g688-text-muted);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===== GAME GRID ===== */
.g688-game-section { margin-bottom: 2rem; }
.g688-cat-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g688-secondary);
  margin: 1.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g688-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g688-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--g688-radius-sm);
  overflow: hidden;
}
.g688-game-item:hover { transform: scale(1.06); }
.g688-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--g688-radius-sm);
  border: 0.15rem solid var(--g688-border);
  transition: border-color 0.2s;
}
.g688-game-item:hover img { border-color: var(--g688-secondary); }
.g688-game-name {
  font-size: 1.1rem;
  color: var(--g688-text-muted);
  margin-top: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT CARDS ===== */
.g688-card {
  background: var(--g688-card-bg);
  border-radius: var(--g688-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 0.1rem solid var(--g688-border);
}
.g688-card h2, .g688-card h3 {
  color: var(--g688-text);
  margin-bottom: 1rem;
}
.g688-card p {
  color: var(--g688-text-muted);
  font-size: 1.4rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.g688-card ul {
  padding-left: 1.8rem;
  color: var(--g688-text-muted);
  font-size: 1.4rem;
  line-height: 1.8;
}
.g688-card li { margin-bottom: 0.5rem; }

/* ===== FAQ ===== */
.g688-faq-item {
  border-bottom: 0.1rem solid var(--g688-border);
  padding: 1.2rem 0;
}
.g688-faq-q {
  font-weight: 700;
  color: var(--g688-accent);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.g688-faq-a {
  color: var(--g688-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  padding-left: 1rem;
}

/* ===== FEATURES GRID ===== */
.g688-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.g688-feature-card {
  background: linear-gradient(145deg, var(--g688-card-bg), var(--g688-darker));
  border-radius: var(--g688-radius);
  padding: 1.6rem;
  text-align: center;
  border: 0.1rem solid var(--g688-border);
  transition: transform 0.2s;
}
.g688-feature-card:hover { transform: translateY(-0.3rem); }
.g688-feature-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  color: var(--g688-secondary);
}
.g688-feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--g688-text);
  margin-bottom: 0.4rem;
}
.g688-feature-desc {
  font-size: 1.1rem;
  color: var(--g688-text-muted);
  line-height: 1.4;
}

/* ===== TESTIMONIALS ===== */
.g688-testimonial {
  background: var(--g688-card-bg);
  border-radius: var(--g688-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 0.3rem solid var(--g688-secondary);
}
.g688-testimonial-text {
  font-size: 1.3rem;
  color: var(--g688-text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.8rem;
}
.g688-testimonial-author {
  font-size: 1.2rem;
  color: var(--g688-accent);
  font-weight: 600;
}

/* ===== WINNER SHOWCASE ===== */
.g688-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 0.1rem solid rgba(42,58,82,0.5);
}
.g688-winner-name { font-weight: 600; font-size: 1.3rem; color: var(--g688-accent); }
.g688-winner-game { font-size: 1.2rem; color: var(--g688-text-muted); }
.g688-winner-amount { font-weight: 800; color: var(--g688-success); font-size: 1.4rem; }

/* ===== PAYMENT ===== */
.g688-payment-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.g688-payment-item {
  background: var(--g688-card-bg);
  border: 0.1rem solid var(--g688-border);
  border-radius: var(--g688-radius-sm);
  padding: 0.8rem 1.4rem;
  font-size: 1.3rem;
  color: var(--g688-text);
  font-weight: 600;
}

/* ===== PROMO TEXT LINK ===== */
.g688-promo-link {
  color: var(--g688-accent);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 0.15rem solid var(--g688-secondary);
  transition: color 0.2s;
}
.g688-promo-link:hover { color: var(--g688-secondary); }

/* ===== FOOTER ===== */
.g688-footer {
  background: var(--g688-darker);
  padding: 3rem 0 10rem;
  border-top: 0.2rem solid var(--g688-border);
}
.g688-footer-brand {
  text-align: center;
  margin-bottom: 2rem;
}
.g688-footer-brand p {
  color: var(--g688-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto 1rem;
}
.g688-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.g688-footer-links a {
  color: var(--g688-text-muted);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 0.1rem solid var(--g688-border);
  border-radius: var(--g688-radius-sm);
  transition: all 0.2s;
}
.g688-footer-links a:hover { color: var(--g688-accent); border-color: var(--g688-secondary); }
.g688-footer-copy {
  text-align: center;
  color: var(--g688-text-muted);
  font-size: 1.1rem;
}

/* ===== BOTTOM NAV ===== */
.g688-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g688-primary), #00004d);
  border-top: 0.15rem solid var(--g688-secondary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  padding: 0 0.4rem;
}
.g688-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(--g688-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 0.8rem;
  padding: 0.4rem;
}
.g688-bottom-nav-btn:hover, .g688-bottom-nav-btn:focus {
  color: var(--g688-accent);
  transform: scale(1.08);
}
.g688-bottom-nav-btn.g688-nav-active {
  color: var(--g688-accent);
}
.g688-bottom-nav-btn .g688-nav-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.g688-bottom-nav-btn .g688-nav-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (min-width: 769px) {
  .g688-bottom-nav { display: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
}

/* ===== UTILITY ===== */
.g688-text-center { text-align: center; }
.g688-mt-1 { margin-top: 1rem; }
.g688-mt-2 { margin-top: 2rem; }
.g688-mb-1 { margin-bottom: 1rem; }
.g688-mb-2 { margin-bottom: 2rem; }
.g688-highlight {
  color: var(--g688-accent);
  font-weight: 700;
}

/* ===== STEP LIST ===== */
.g688-step-list { counter-reset: step; }
.g688-step-item {
  counter-increment: step;
  padding: 1.2rem 0 1.2rem 3.5rem;
  position: relative;
  border-bottom: 0.1rem solid var(--g688-border);
}
.g688-step-item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 2.4rem;
  height: 2.4rem;
  background: linear-gradient(135deg, var(--g688-secondary), var(--g688-primary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.g688-step-title {
  font-weight: 700;
  color: var(--g688-text);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.g688-step-desc {
  color: var(--g688-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* ===== APP DOWNLOAD CTA ===== */
.g688-app-cta {
  background: linear-gradient(135deg, var(--g688-primary), var(--g688-dark));
  border-radius: var(--g688-radius);
  padding: 2rem;
  text-align: center;
  border: 0.15rem solid var(--g688-secondary);
  margin-bottom: 2rem;
}
.g688-app-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--g688-accent);
}
.g688-app-cta p {
  color: var(--g688-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

/* ===== PROMO BANNER ===== */
.g688-promo-banner {
  background: linear-gradient(135deg, var(--g688-secondary), var(--g688-accent));
  border-radius: var(--g688-radius);
  padding: 2rem;
  text-align: center;
  color: var(--g688-dark);
  margin-bottom: 2rem;
}
.g688-promo-banner h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--g688-dark);
}
.g688-promo-banner p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--g688-dark);
}
.g688-promo-banner .g688-btn {
  background: var(--g688-dark);
  color: var(--g688-accent);
}
