/* ============================================================
 * taya365 original apk - Theme CSS
 * All custom classes use prefix "pg7a-".
 * Palette: #FFB6C1 (pink) | #1E1E1E (dark bg) | #C0C0C0 (silver) | #FFB3FF (light pink)
 * Mobile-first, max-width 430px viewport optimized.
 * ============================================================ */

:root {
  --pg7a-primary: #FFB6C1;
  --pg7a-secondary: #FFB3FF;
  --pg7a-bg: #1E1E1E;
  --pg7a-bg-2: #141414;
  --pg7a-bg-3: #2a2426;
  --pg7a-text: #f7e9ec;
  --pg7a-text-muted: #C0C0C0;
  --pg7a-gold: #FFD27A;
  --pg7a-accent: #ff5f87;
  --pg7a-border: rgba(255, 182, 193, 0.25);
  --pg7a-radius: 14px;
  --pg7a-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --pg7a-header-h: 60px;
  --pg7a-nav-h: 62px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #2a1f24 0%, #1E1E1E 55%, #141414 100%);
  color: var(--pg7a-text);
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--pg7a-secondary);
}

/* ------------------------------------------------------------
 * Layout containers
 * ------------------------------------------------------------ */
.pg7a-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.pg7a-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.pg7a-section {
  padding: 26px 0 18px;
}

.pg7a-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg7a-primary);
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: 0.5px;
}

.pg7a-section-sub {
  font-size: 1.25rem;
  color: var(--pg7a-text-muted);
  text-align: center;
  margin: 0 auto 18px;
  max-width: 320px;
}

/* ------------------------------------------------------------
 * Header
 * ------------------------------------------------------------ */
.pg7a-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pg7a-header-h);
  z-index: 1000;
  background: linear-gradient(90deg, #1E1E1E 0%, #2a1f24 100%);
  border-bottom: 1px solid var(--pg7a-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.pg7a-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.pg7a-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg7a-text);
  font-weight: 800;
  font-size: 1.5rem;
  flex: 1;
  min-width: 0;
}

.pg7a-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.pg7a-logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(90deg, #FFB6C1, #FFB3FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pg7a-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pg7a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 22px;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 38px;
  line-height: 1;
  font-family: inherit;
}

.pg7a-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 95, 135, 0.35);
}

.pg7a-btn-register {
  background: linear-gradient(90deg, #FFB6C1, #ff5f87);
  color: #1a1a1a;
}

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

.pg7a-btn-menu {
  background: transparent;
  color: var(--pg7a-primary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--pg7a-border);
  font-size: 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------
 * Mobile dropdown menu
 * ------------------------------------------------------------ */
.pg7a-mobile-menu {
  position: fixed;
  top: var(--pg7a-header-h);
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #1a1a1a;
  border-bottom: 1px solid var(--pg7a-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  z-index: 9999;
}

.pg7a-mobile-menu.pg7a-menu-open {
  max-height: 460px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.pg7a-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 14px;
}

.pg7a-mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  color: var(--pg7a-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(192, 192, 192, 0.12);
}

.pg7a-mobile-menu li:last-child a {
  border-bottom: none;
}

.pg7a-mobile-menu li a i,
.pg7a-mobile-menu li a .material-icons-outlined {
  color: var(--pg7a-primary);
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* ------------------------------------------------------------
 * Hero / Carousel
 * ------------------------------------------------------------ */
.pg7a-main {
  padding-top: calc(var(--pg7a-header-h) + 8px);
  padding-bottom: 0;
}

.pg7a-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  background: #111;
}

.pg7a-slides {
  position: relative;
  width: 100%;
  height: 200px;
}

.pg7a-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

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

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

.pg7a-slide-caption {
  position: absolute;
  left: 14px;
  bottom: 18px;
  right: 14px;
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.3rem;
  color: #fff;
  border: 1px solid var(--pg7a-border);
}

.pg7a-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.6);
  color: #fff;
  border: 1px solid var(--pg7a-border);
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.pg7a-carousel-arrow:hover {
  background: var(--pg7a-primary);
  color: #1a1a1a;
}

.pg7a-carousel-prev { left: 8px; }
.pg7a-carousel-next { right: 8px; }

.pg7a-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.pg7a-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}

.pg7a-dot.pg7a-dot-active {
  background: var(--pg7a-primary);
  width: 18px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
 * Quick action strip
 * ------------------------------------------------------------ */
.pg7a-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 6px;
}

.pg7a-quick-item {
  background: var(--pg7a-bg-3);
  border: 1px solid var(--pg7a-border);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  color: var(--pg7a-text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

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

.pg7a-quick-item i,
.pg7a-quick-item .material-icons-outlined,
.pg7a-quick-item ion-icon {
  font-size: 2.2rem;
  color: var(--pg7a-primary);
  margin-bottom: 4px;
  display: block;
}

/* ------------------------------------------------------------
 * Game list - compact icon grid
 * ------------------------------------------------------------ */
.pg7a-category {
  margin-bottom: 18px;
}

.pg7a-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pg7a-category-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pg7a-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg7a-category-title i,
.pg7a-category-title .material-icons-outlined {
  font-size: 2rem;
  color: var(--pg7a-secondary);
}

.pg7a-category-more {
  font-size: 1.2rem;
  color: var(--pg7a-text-muted);
  cursor: pointer;
}

.pg7a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pg7a-card {
  background: var(--pg7a-bg-3);
  border: 1px solid var(--pg7a-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.pg7a-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(255, 95, 135, 0.28);
  border-color: var(--pg7a-primary);
}

.pg7a-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.pg7a-card-name {
  padding: 6px 8px;
  font-size: 1.1rem;
  color: var(--pg7a-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(20, 20, 20, 0.85);
}

/* ------------------------------------------------------------
 * Info blocks (What is / How to / Features / FAQ / etc.)
 * ------------------------------------------------------------ */
.pg7a-card-box {
  background: var(--pg7a-bg-3);
  border: 1px solid var(--pg7a-border);
  border-radius: var(--pg7a-radius);
  padding: 18px 16px;
  margin-bottom: 14px;
}

.pg7a-card-box h2 {
  font-size: 1.7rem;
  color: var(--pg7a-primary);
  margin: 0 0 10px;
}

.pg7a-card-box h3 {
  font-size: 1.45rem;
  color: var(--pg7a-secondary);
  margin: 14px 0 6px;
}

.pg7a-card-box p {
  font-size: 1.3rem;
  color: var(--pg7a-text);
  margin: 0 0 10px;
  line-height: 1.6;
}

.pg7a-card-box ul,
.pg7a-card-box ol {
  font-size: 1.3rem;
  color: var(--pg7a-text);
  padding-left: 20px;
  margin: 0 0 10px;
  line-height: 1.6;
}

.pg7a-card-box li {
  margin-bottom: 6px;
}

.pg7a-card-box a {
  color: var(--pg7a-primary);
  font-weight: 700;
  cursor: pointer;
}

.pg7a-promo-text {
  color: var(--pg7a-primary);
  font-weight: 800;
  cursor: pointer;
}

/* ------------------------------------------------------------
 * Promo CTA banner
 * ------------------------------------------------------------ */
.pg7a-cta {
  background: linear-gradient(90deg, #2a1f24, #FFB6C1 120%);
  border: 1px solid var(--pg7a-border);
  border-radius: var(--pg7a-radius);
  padding: 18px 16px;
  text-align: center;
  margin: 18px 0;
}

.pg7a-cta h3 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  color: #1a1a1a;
}

.pg7a-cta p {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: #1a1a1a;
}

.pg7a-cta .pg7a-btn {
  background: #1a1a1a;
  color: var(--pg7a-primary);
}

/* ------------------------------------------------------------
 * Payment / winners / testimonials strip
 * ------------------------------------------------------------ */
.pg7a-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.pg7a-chip {
  background: var(--pg7a-bg-3);
  border: 1px solid var(--pg7a-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.15rem;
  color: var(--pg7a-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pg7a-chip i,
.pg7a-chip .material-icons-outlined {
  color: var(--pg7a-primary);
  font-size: 1.5rem;
}

.pg7a-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.pg7a-winner {
  background: var(--pg7a-bg-3);
  border: 1px solid var(--pg7a-border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 1.15rem;
}

.pg7a-winner b {
  color: var(--pg7a-gold);
}

/* ------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------ */
.pg7a-footer {
  margin-top: 18px;
  padding: 24px 0 18px;
  background: #111;
  border-top: 1px solid var(--pg7a-border);
}

.pg7a-footer p {
  font-size: 1.2rem;
  color: var(--pg7a-text-muted);
  text-align: center;
  margin: 4px 14px;
  line-height: 1.6;
}

.pg7a-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 14px 14px;
}

.pg7a-footer-links a {
  font-size: 1.2rem;
  color: var(--pg7a-text);
  background: var(--pg7a-bg-3);
  border: 1px solid var(--pg7a-border);
  border-radius: 18px;
  padding: 5px 12px;
}

.pg7a-footer-links a:hover {
  color: #1a1a1a;
  background: var(--pg7a-primary);
}

.pg7a-footer-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 14px;
}

.pg7a-footer-promo button {
  background: linear-gradient(90deg, #FFB6C1, #ff5f87);
  color: #1a1a1a;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.pg7a-footer-copy {
  font-size: 1.1rem;
  color: var(--pg7a-text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ------------------------------------------------------------
 * Mobile bottom navigation (fixed, 5 buttons)
 * ------------------------------------------------------------ */
.pg7a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg7a-nav-h);
  background: linear-gradient(180deg, #2a1f24, #141414);
  border-top: 1px solid var(--pg7a-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.55);
}

.pg7a-navbtn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg7a-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform 0.18s ease, color 0.18s ease;
  padding: 4px 2px;
}

.pg7a-navbtn i,
.pg7a-navbtn .material-icons-outlined,
.pg7a-navbtn ion-icon,
.pg7a-navbtn .bi {
  font-size: 22px;
}

.pg7a-navbtn:hover {
  transform: translateY(-2px) scale(1.06);
  color: var(--pg7a-primary);
}

.pg7a-navbtn-active {
  color: var(--pg7a-primary);
}

.pg7a-navbtn-active::after {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--pg7a-primary);
  margin-top: 2px;
}

/* ------------------------------------------------------------
 * Desktop: hide bottom nav, show desktop nav row
 * ------------------------------------------------------------ */
.pg7a-desktop-nav {
  display: none;
}

/* ------------------------------------------------------------
 * Responsive - mobile bottom padding clearance
 * ------------------------------------------------------------ */
@media (max-width: 768px) {
  .pg7a-main {
    padding-bottom: calc(var(--pg7a-nav-h) + 14px);
  }
}

@media (min-width: 769px) {
  .pg7a-bottom-nav {
    display: none;
  }
  .pg7a-container,
  .pg7a-wrapper,
  .pg7a-carousel,
  .pg7a-header-inner,
  .pg7a-mobile-menu {
    max-width: 960px;
  }
  .pg7a-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .pg7a-quick {
    grid-template-columns: repeat(8, 1fr);
  }
  .pg7a-desktop-nav {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 0 12px;
  }
  .pg7a-desktop-nav a {
    color: var(--pg7a-text);
    font-size: 1.25rem;
    font-weight: 600;
  }
  .pg7a-desktop-nav a:hover {
    color: var(--pg7a-primary);
  }
  .pg7a-main {
    padding-bottom: 24px;
  }
}

/* Small screens tuning */
@media (max-width: 360px) {
  .pg7a-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pg7a-btn {
    padding: 7px 10px;
    font-size: 1.15rem;
  }
}
