/**
 * 365 Casino - Core Stylesheet
 * Prefix: pg48-
 * Mobile-first design, max-width 430px
 * Colors: #E0E0E0 | #FAF0E6 | #FFFACD | #FFEFD5 | #F4A460 | #0E1621
 */

/* CSS Variables */
:root {
  --pg48-bg: #0E1621;
  --pg48-bg-light: #162030;
  --pg48-bg-card: #1a2740;
  --pg48-text: #E0E0E0;
  --pg48-text-light: #FAF0E6;
  --pg48-text-muted: #8a9bb5;
  --pg48-accent: #F4A460;
  --pg48-accent-hover: #e8933f;
  --pg48-highlight: #FFFACD;
  --pg48-highlight2: #FFEFD5;
  --pg48-border: #2a3a55;
  --pg48-primary: #F4A460;
  --pg48-secondary: #FFFACD;
  --pg48-success: #4ade80;
  --pg48-font-size: 62.5%;
}

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

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

/* Header */
.pg48-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 5.6rem;
  background: var(--pg48-bg);
  border-bottom: 1px solid var(--pg48-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}
.pg48-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg48-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
}
.pg48-logo-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg48-accent);
  white-space: nowrap;
}
.pg48-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg48-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 3.6rem;
  min-width: 4.4rem;
}
.pg48-btn-register {
  background: linear-gradient(135deg, var(--pg48-accent), #e8933f);
  color: var(--pg48-bg);
}
.pg48-btn-register:hover {
  background: linear-gradient(135deg, #e8933f, #d4822e);
  transform: scale(1.03);
}
.pg48-btn-login {
  background: transparent;
  color: var(--pg48-accent);
  border: 1px solid var(--pg48-accent);
}
.pg48-btn-login:hover {
  background: rgba(244, 164, 96, 0.1);
}
.pg48-menu-btn {
  background: none;
  border: none;
  color: var(--pg48-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

/* Mobile Menu */
.pg48-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--pg48-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}
.pg48-menu-active {
  right: 0;
}
.pg48-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}
.pg48-overlay-active {
  display: block;
}
.pg48-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--pg48-text);
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg48-menu-list {
  list-style: none;
  padding: 1rem 0;
}
.pg48-menu-list li {
  border-bottom: 1px solid var(--pg48-border);
}
.pg48-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  color: var(--pg48-text-light);
  font-size: 1.4rem;
  transition: background 0.2s;
}
.pg48-menu-list a:hover {
  background: rgba(244, 164, 96, 0.08);
  color: var(--pg48-accent);
}

/* Carousel */
.pg48-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
}
.pg48-carousel-slide {
  display: none;
  width: 100%;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.pg48-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}
.pg48-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.pg48-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.pg48-dot-active {
  background: var(--pg48-accent);
  transform: scale(1.2);
}

/* Sections */
.pg48-section {
  padding: 2rem 0;
}
.pg48-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg48-accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.pg48-section-title i,
.pg48-section-title .material-icons {
  font-size: 2rem;
}
.pg48-section-desc {
  color: var(--pg48-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

/* Game Grid */
.pg48-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.pg48-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}
.pg48-game-item:hover {
  transform: scale(1.05);
}
.pg48-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.8rem;
  margin-bottom: 0.4rem;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.pg48-game-item:hover img {
  border-color: var(--pg48-accent);
}
.pg48-game-name {
  font-size: 1rem;
  color: var(--pg48-text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Content Cards */
.pg48-card {
  background: var(--pg48-bg-card);
  border-radius: 1rem;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--pg48-border);
}
.pg48-card h2,
.pg48-card h3 {
  color: var(--pg48-accent);
  margin-bottom: 1rem;
}
.pg48-card h2 { font-size: 1.8rem; }
.pg48-card h3 { font-size: 1.5rem; }
.pg48-card p {
  color: var(--pg48-text);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Promo Buttons */
.pg48-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg48-accent), #e8933f);
  color: var(--pg48-bg);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
  min-height: 4.4rem;
}
.pg48-promo-btn:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, #e8933f, #d4822e);
}
.pg48-promo-link {
  color: var(--pg48-accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.pg48-promo-link:hover {
  color: var(--pg48-highlight);
}

/* FAQ */
.pg48-faq-item {
  background: var(--pg48-bg-card);
  border-radius: 0.8rem;
  padding: 1.4rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--pg48-accent);
}
.pg48-faq-item h3 {
  color: var(--pg48-accent);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.pg48-faq-item p {
  color: var(--pg48-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Feature Grid */
.pg48-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.pg48-feature-item {
  background: var(--pg48-bg-card);
  border-radius: 0.8rem;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--pg48-border);
}
.pg48-feature-item i,
.pg48-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--pg48-accent);
  margin-bottom: 0.6rem;
}
.pg48-feature-item h4 {
  font-size: 1.2rem;
  color: var(--pg48-text-light);
  margin-bottom: 0.4rem;
}
.pg48-feature-item p {
  font-size: 1.1rem;
  color: var(--pg48-text-muted);
}

/* Footer */
.pg48-footer {
  background: var(--pg48-bg-light);
  padding: 2rem 1.2rem 10rem;
  border-top: 1px solid var(--pg48-border);
}
.pg48-footer-brand {
  font-size: 1.3rem;
  color: var(--pg48-text-muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.pg48-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.pg48-footer-links a {
  color: var(--pg48-accent);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: var(--pg48-bg-card);
  border-radius: 0.4rem;
  transition: background 0.2s;
}
.pg48-footer-links a:hover {
  background: rgba(244, 164, 96, 0.15);
}
.pg48-footer-copy {
  font-size: 1.1rem;
  color: var(--pg48-text-muted);
  text-align: center;
  padding-top: 1.2rem;
  border-top: 1px solid var(--pg48-border);
}

/* Bottom Navigation */
.pg48-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: var(--pg48-bg-light);
  border-top: 1px solid var(--pg48-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 0.4rem;
}
.pg48-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  color: var(--pg48-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0.8rem;
  gap: 0.2rem;
}
.pg48-nav-btn i,
.pg48-nav-btn .material-icons,
.pg48-nav-btn ion-icon,
.pg48-nav-btn bi {
  font-size: 2.2rem;
}
.pg48-nav-btn span {
  font-size: 1rem;
  font-weight: 500;
}
.pg48-nav-btn:hover,
.pg48-nav-btn.pg48-nav-active {
  color: var(--pg48-accent);
  background: rgba(244, 164, 96, 0.08);
}
.pg48-nav-btn:active {
  transform: scale(0.92);
}

/* Back to Top */
.pg48-back-top {
  position: fixed;
  bottom: 7rem;
  right: 1.2rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--pg48-accent);
  color: var(--pg48-bg);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.pg48-back-top:hover { transform: scale(1.1); }
.pg48-back-top-show { display: flex; }

/* Utility */
.pg48-text-center { text-align: center; }
.pg48-mb-1 { margin-bottom: 1rem; }
.pg48-mb-2 { margin-bottom: 2rem; }
.pg48-mt-1 { margin-top: 1rem; }
.pg48-mt-2 { margin-top: 2rem; }
.pg48-hidden { display: none; }
.pg48-flex { display: flex; }
.pg48-flex-center { display: flex; align-items: center; justify-content: center; }
.pg48-gap-1 { gap: 1rem; }

/* Winner list */
.pg48-winner-list {
  background: var(--pg48-bg-card);
  border-radius: 0.8rem;
  padding: 1rem;
}
.pg48-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--pg48-border);
  font-size: 1.2rem;
}
.pg48-winner-item:last-child { border-bottom: none; }
.pg48-winner-name { color: var(--pg48-text-light); }
.pg48-winner-game { color: var(--pg48-accent); }
.pg48-winner-amount { color: var(--pg48-success); font-weight: 600; }

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

/* Responsive: desktop hides bottom nav */
@media (min-width: 769px) {
  .pg48-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  .pg48-wrapper { padding-bottom: 8rem; }
}
