/**
 * Hann Online APK - Core Stylesheet
 * All classes use w7597- prefix for namespace isolation
 * Color Palette: #BAE1FF | #FF5722 | #A9A9A9 | #1C2833 | #FF8A80
 * @version 1.0.0
 */

/* === CSS Variables === */
:root {
  --w7597-primary: #FF5722;
  --w7597-accent: #FF8A80;
  --w7597-light: #BAE1FF;
  --w7597-dark: #1C2833;
  --w7597-gray: #A9A9A9;
  --w7597-bg: #0d1117;
  --w7597-surface: #161b22;
  --w7597-surface2: #1c2333;
  --w7597-text: #e6edf3;
  --w7597-text-muted: #8b949e;
  --w7597-radius: 12px;
  --w7597-radius-sm: 8px;
  --w7597-shadow: 0 4px 16px rgba(0,0,0,0.3);
  font-size: 62.5%;
}

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--w7597-bg);
  color: var(--w7597-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w7597-light); text-decoration: none; }
a:hover { color: var(--w7597-primary); }
img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.w7597-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, var(--w7597-dark) 0%, #0a0e14 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,87,34,0.2);
}
.w7597-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w7597-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.w7597-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--w7597-primary), var(--w7597-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.w7597-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.w7597-btn-register {
  background: linear-gradient(135deg, var(--w7597-primary), #e64a19);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.w7597-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 12px rgba(255,87,34,0.4); }
.w7597-btn-login {
  background: transparent;
  color: var(--w7597-light);
  border: 1px solid var(--w7597-light);
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.w7597-btn-login:hover { background: rgba(186,225,255,0.1); }
.w7597-menu-toggle {
  background: none;
  border: none;
  color: var(--w7597-light);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* === Mobile Menu === */
.w7597-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 270px;
  height: 100vh;
  background: var(--w7597-surface);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 60px 16px 20px;
  overflow-y: auto;
}
.w7597-menu-active { right: 0; }
.w7597-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.w7597-overlay-active { display: block; }
.w7597-mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--w7597-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
}
.w7597-mobile-menu a:hover {
  background: rgba(255,87,34,0.1);
  color: var(--w7597-primary);
  padding-left: 22px;
}
.w7597-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--w7597-text);
  font-size: 24px;
  cursor: pointer;
}

/* === Main Content === */
.w7597-main {
  padding-top: 56px;
  min-height: 100vh;
}

/* === Carousel === */
.w7597-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--w7597-radius) var(--w7597-radius);
}
.w7597-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.w7597-slide-active { display: block; }
.w7597-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.w7597-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.w7597-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.w7597-dot-active {
  background: var(--w7597-primary);
  width: 20px;
  border-radius: 4px;
}

/* === Sections === */
.w7597-section {
  padding: 20px 14px;
}
.w7597-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w7597-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w7597-section-title i, .w7597-section-title span.material-symbols-outlined {
  color: var(--w7597-primary);
  font-size: 2rem;
}

/* === Game Grid === */
.w7597-game-section { margin-bottom: 20px; }
.w7597-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w7597-light);
  margin-bottom: 10px;
  padding-left: 4px;
  border-left: 3px solid var(--w7597-primary);
  padding-left: 10px;
}
.w7597-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.w7597-game-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.w7597-game-card:hover { transform: scale(1.05); }
.w7597-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w7597-radius-sm);
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.w7597-game-card:hover img { border-color: var(--w7597-primary); }
.w7597-game-card p {
  font-size: 1rem;
  color: var(--w7597-text-muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Content Cards === */
.w7597-card {
  background: var(--w7597-surface);
  border-radius: var(--w7597-radius);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.05);
}
.w7597-card h3 {
  font-size: 1.5rem;
  color: var(--w7597-primary);
  margin-bottom: 8px;
}
.w7597-card p {
  color: var(--w7597-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* === Promo Buttons === */
.w7597-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--w7597-primary), #e64a19);
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
}
.w7597-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,87,34,0.4);
}
.w7597-promo-text {
  color: var(--w7597-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.w7597-promo-text:hover { color: var(--w7597-accent); }

/* === H1 Title === */
.w7597-h1-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  padding: 18px 14px;
  background: linear-gradient(135deg, rgba(255,87,34,0.12), rgba(255,138,128,0.08));
  border-left: 4px solid var(--w7597-primary);
  margin: 14px;
  border-radius: 0 var(--w7597-radius) var(--w7597-radius) 0;
  line-height: 1.4;
}

/* === RTP Table === */
.w7597-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.w7597-rtp-table th {
  background: var(--w7597-primary);
  color: #fff;
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
}
.w7597-rtp-table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--w7597-text-muted);
}
.w7597-rtp-table tr:hover td { background: rgba(255,87,34,0.06); }
.w7597-rtp-high { color: #4caf50; font-weight: 700; }
.w7597-rtp-med { color: #ff9800; font-weight: 600; }

/* === Winners Component === */
.w7597-winner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.w7597-winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--w7597-surface2);
  padding: 8px 12px;
  border-radius: var(--w7597-radius-sm);
}
.w7597-winner-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.w7597-winner-info { flex: 1; }
.w7597-winner-name { font-size: 1.2rem; font-weight: 600; color: var(--w7597-light); }
.w7597-winner-amount { font-size: 1.3rem; font-weight: 700; color: #4caf50; }

/* === Testimonials === */
.w7597-testimonial {
  background: var(--w7597-surface2);
  border-radius: var(--w7597-radius);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--w7597-primary);
}
.w7597-testimonial-text {
  font-style: italic;
  color: var(--w7597-text-muted);
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.w7597-testimonial-author {
  font-size: 1.1rem;
  color: var(--w7597-gray);
}

/* === Payment Methods === */
.w7597-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.w7597-payment-item {
  background: var(--w7597-surface2);
  padding: 10px 16px;
  border-radius: var(--w7597-radius-sm);
  font-size: 1.2rem;
  color: var(--w7597-light);
  border: 1px solid rgba(255,255,255,0.08);
}

/* === Footer === */
.w7597-footer {
  background: var(--w7597-dark);
  padding: 24px 14px;
  border-top: 1px solid rgba(255,87,34,0.15);
}
.w7597-footer-desc {
  color: var(--w7597-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.w7597-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}
.w7597-footer-links a {
  background: var(--w7597-surface);
  color: var(--w7597-text-muted);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.w7597-footer-links a:hover {
  background: var(--w7597-primary);
  color: #fff;
}
.w7597-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.w7597-footer-promo button {
  background: linear-gradient(135deg, var(--w7597-primary), #e64a19);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}
.w7597-footer-copy {
  text-align: center;
  color: var(--w7597-gray);
  font-size: 1.1rem;
  margin-top: 12px;
}

/* === Bottom Navigation === */
.w7597-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--w7597-dark), #080b10);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid rgba(255,87,34,0.2);
  padding: 0 4px;
}
.w7597-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--w7597-gray);
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  transition: all 0.2s;
  padding: 4px;
}
.w7597-nav-btn:hover, .w7597-nav-btn.w7597-nav-active {
  color: var(--w7597-primary);
}
.w7597-nav-btn:hover .w7597-nav-icon, .w7597-nav-btn.w7597-nav-active .w7597-nav-icon {
  transform: scale(1.15);
}
.w7597-nav-icon {
  font-size: 24px;
  transition: transform 0.2s;
}
.w7597-nav-label {
  font-size: 1rem;
  font-weight: 500;
}
.w7597-nav-active .w7597-nav-icon { color: var(--w7597-primary); }
.w7597-nav-active .w7597-nav-label { color: var(--w7597-primary); }

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

/* === Desktop: hide bottom nav === */
@media (min-width: 769px) {
  .w7597-bottom-nav { display: none; }
}

/* === Guide/FAQ Page Styles === */
.w7597-page-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  padding: 20px 14px 10px;
  color: var(--w7597-text);
}
.w7597-guide-step {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.w7597-step-num {
  background: var(--w7597-primary);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.w7597-step-content h3 {
  font-size: 1.4rem;
  color: var(--w7597-light);
  margin-bottom: 4px;
}
.w7597-step-content p {
  color: var(--w7597-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}
.w7597-faq-item {
  background: var(--w7597-surface);
  border-radius: var(--w7597-radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}
.w7597-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--w7597-light);
  margin-bottom: 6px;
}
.w7597-faq-a {
  font-size: 1.2rem;
  color: var(--w7597-text-muted);
  line-height: 1.5;
}

/* === Feature List === */
.w7597-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.w7597-feature-item {
  background: var(--w7597-surface2);
  border-radius: var(--w7597-radius-sm);
  padding: 12px;
  text-align: center;
}
.w7597-feature-item i, .w7597-feature-item .material-symbols-outlined {
  font-size: 2.4rem;
  color: var(--w7597-primary);
  margin-bottom: 6px;
}
.w7597-feature-item h4 {
  font-size: 1.2rem;
  color: var(--w7597-light);
  margin-bottom: 4px;
}
.w7597-feature-item p {
  font-size: 1rem;
  color: var(--w7597-text-muted);
}

/* === Download CTA === */
.w7597-download-cta {
  background: linear-gradient(135deg, var(--w7597-primary), #e64a19);
  border-radius: var(--w7597-radius);
  padding: 20px;
  text-align: center;
  margin: 14px 0;
}
.w7597-download-cta h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.w7597-download-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.w7597-download-btn {
  background: #fff;
  color: var(--w7597-primary);
  padding: 12px 30px;
  border-radius: 24px;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}
.w7597-download-btn:hover { transform: scale(1.05); }

/* === Utility Classes === */
.w7597-text-center { text-align: center; }
.w7597-mt-10 { margin-top: 10px; }
.w7597-mb-10 { margin-bottom: 10px; }
.w7597-mb-16 { margin-bottom: 16px; }
.w7597-hidden { display: none; }
.w7597-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 16px 0;
}
