/* 7u7 dark loop - Layout Stylesheet */
/* All classes use pg65- prefix for namespace isolation */

/* CSS Variables */
:root {
  --pg65-primary: #C0C0C0;
  --pg65-secondary: #4A4A4A;
  --pg65-bg-dark: #2D2D2D;
  --pg65-bg-light: #F5F5F5;
  --pg65-accent: #DCDCDC;
  --pg65-text-light: #F5F5F5;
  --pg65-text-dark: #2D2D2D;
  --pg65-gold: #D4AF37;
  --pg65-highlight: #E8C547;
  --pg65-danger: #C0392B;
  --pg65-success: #27AE60;
  --pg65-header-h: 5.6rem;
  --pg65-bottom-h: 6.4rem;
}

html { font-size: 62.5%; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background: var(--pg65-bg-dark);
  color: var(--pg65-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.pg65-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a2e 0%, #2D2D2D 50%, #16213e 100%);
  border-bottom: 1px solid rgba(212,175,55,0.3);
  max-width: 430px; margin: 0 auto;
  height: var(--pg65-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.pg65-logo-area {
  display: flex; align-items: center; gap: 0.8rem; text-decoration: none;
}
.pg65-logo-img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.pg65-site-name {
  font-size: 1.6rem; font-weight: 700; color: var(--pg65-gold);
  white-space: nowrap; letter-spacing: 0.5px;
}
.pg65-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg65-btn-register {
  background: linear-gradient(135deg, var(--pg65-gold), #b8960c);
  color: var(--pg65-bg-dark); font-weight: 700;
  padding: 0.6rem 1.4rem; border-radius: 2rem; border: none;
  font-size: 1.2rem; cursor: pointer; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pg65-btn-login {
  background: transparent; color: var(--pg65-primary);
  border: 1.5px solid var(--pg65-gold); font-weight: 600;
  padding: 0.5rem 1.2rem; border-radius: 2rem;
  font-size: 1.2rem; cursor: pointer;
}
.pg65-menu-btn {
  background: none; border: none; color: var(--pg65-primary);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.pg65-menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.pg65-overlay-active { display: block; }
.pg65-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 75%;
  height: 100vh; z-index: 9999;
  background: linear-gradient(180deg, #1a1a2e, #2D2D2D);
  transition: right 0.3s ease; overflow-y: auto;
  padding: 2rem 1.5rem;
}
.pg65-menu-active { right: 0; }
.pg65-menu-close {
  background: none; border: none; color: var(--pg65-primary);
  font-size: 2.4rem; cursor: pointer; float: right; margin-bottom: 1rem;
}
.pg65-menu-list { list-style: none; clear: both; padding-top: 1rem; }
.pg65-menu-list li { border-bottom: 1px solid rgba(192,192,192,0.15); }
.pg65-menu-list a {
  display: block; padding: 1.2rem 0.5rem;
  color: var(--pg65-primary); text-decoration: none;
  font-size: 1.4rem; font-weight: 500;
  transition: color 0.2s;
}
.pg65-menu-list a:hover { color: var(--pg65-gold); }

/* Main Content */
.pg65-main {
  margin-top: var(--pg65-header-h);
  padding-bottom: 2rem;
}
@media (max-width: 768px) {
  .pg65-main { padding-bottom: calc(var(--pg65-bottom-h) + 2rem); }
}

/* Carousel */
.pg65-carousel {
  position: relative; width: 100%; overflow: hidden;
  background: #1a1a2e;
}
.pg65-slide {
  display: none; width: 100%; cursor: pointer;
}
.pg65-slide img { width: 100%; height: auto; display: block; }
.pg65-dots {
  position: absolute; bottom: 1rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 0.6rem;
}
.pg65-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(192,192,192,0.4); cursor: pointer;
  border: none; transition: background 0.3s;
}
.pg65-dot-active { background: var(--pg65-gold); }

/* Section */
.pg65-section {
  padding: 2rem 1.2rem;
}
.pg65-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem;
  color: var(--pg65-gold); position: relative;
  padding-bottom: 0.8rem;
}
.pg65-section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 4rem; height: 0.3rem;
  background: linear-gradient(90deg, var(--pg65-gold), transparent);
}

/* Game Grid */
.pg65-cat-title {
  font-size: 1.5rem; font-weight: 600; margin: 1.5rem 0 1rem;
  color: var(--pg65-primary); display: flex; align-items: center; gap: 0.6rem;
}
.pg65-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1rem;
}
.pg65-game-item {
  text-align: center; cursor: pointer;
  transition: transform 0.2s;
}
.pg65-game-item:hover { transform: scale(1.05); }
.pg65-game-icon {
  width: 100%; aspect-ratio: 1; border-radius: 1rem;
  object-fit: cover; border: 2px solid rgba(192,192,192,0.15);
  transition: border-color 0.3s;
}
.pg65-game-item:hover .pg65-game-icon { border-color: var(--pg65-gold); }
.pg65-game-name {
  font-size: 1.05rem; color: var(--pg65-primary);
  margin-top: 0.3rem; line-height: 1.3rem;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Card */
.pg65-card {
  background: linear-gradient(135deg, #33334d 0%, #2D2D2D 100%);
  border: 1px solid rgba(192,192,192,0.1);
  border-radius: 1.2rem; padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.pg65-card-title {
  font-size: 1.6rem; font-weight: 700;
  color: var(--pg65-gold); margin-bottom: 1rem;
}

/* Promo Button */
.pg65-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg65-gold), #b8960c);
  color: var(--pg65-bg-dark); font-weight: 700;
  padding: 1rem 2.5rem; border-radius: 3rem;
  text-decoration: none; font-size: 1.4rem;
  cursor: pointer; border: none; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0.5rem 0;
}
.pg65-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}
.pg65-promo-text {
  color: var(--pg65-gold); font-weight: 600;
  cursor: pointer; text-decoration: underline;
  transition: color 0.2s;
}
.pg65-promo-text:hover { color: var(--pg65-highlight); }

/* Winner Strip */
.pg65-winner-strip {
  background: linear-gradient(90deg, rgba(212,175,55,0.1), rgba(212,175,55,0.05));
  padding: 0.8rem 1.2rem; display: flex;
  align-items: center; gap: 0.8rem;
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid rgba(212,175,55,0.15);
}
.pg65-winner-badge {
  background: var(--pg65-gold); color: var(--pg65-bg-dark);
  font-weight: 700; font-size: 1.1rem; padding: 0.3rem 0.8rem;
  border-radius: 1rem; flex-shrink: 0;
}
.pg65-winner-text {
  font-size: 1.2rem; color: var(--pg65-primary);
  animation: pg65-scroll 20s linear infinite;
}
@keyframes pg65-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Feature Grid */
.pg65-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.pg65-feature-item {
  background: rgba(192,192,192,0.05);
  border: 1px solid rgba(192,192,192,0.1);
  border-radius: 1rem; padding: 1.2rem;
  text-align: center;
}
.pg65-feature-icon { font-size: 2.4rem; margin-bottom: 0.6rem; color: var(--pg65-gold); }
.pg65-feature-label { font-size: 1.2rem; font-weight: 600; color: var(--pg65-primary); }
.pg65-feature-desc { font-size: 1rem; color: rgba(192,192,192,0.7); margin-top: 0.3rem; }

/* Payment Methods */
.pg65-payment-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center; padding: 1rem 0;
}
.pg65-payment-item {
  background: rgba(192,192,192,0.08);
  border: 1px solid rgba(192,192,192,0.15);
  border-radius: 0.8rem; padding: 0.8rem 1.2rem;
  font-size: 1.1rem; color: var(--pg65-primary);
}

/* Footer */
.pg65-footer {
  background: linear-gradient(180deg, #2D2D2D, #1a1a2e);
  padding: 2rem 1.2rem 3rem; border-top: 1px solid rgba(212,175,55,0.2);
}
.pg65-footer-brand {
  font-size: 1.3rem; color: rgba(192,192,192,0.7);
  line-height: 1.8rem; margin-bottom: 1.5rem;
}
.pg65-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.pg65-footer-link {
  color: var(--pg65-gold); text-decoration: none;
  font-size: 1.1rem; padding: 0.4rem 0.8rem;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 0.6rem; cursor: pointer;
  transition: background 0.2s;
}
.pg65-footer-link:hover { background: rgba(212,175,55,0.1); }
.pg65-footer-copy {
  font-size: 1rem; color: rgba(192,192,192,0.5);
  text-align: center; border-top: 1px solid rgba(192,192,192,0.1);
  padding-top: 1.5rem;
}

/* Bottom Navigation */
.pg65-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-top: 1.5px solid rgba(212,175,55,0.35);
  max-width: 430px; margin: 0 auto;
  height: var(--pg65-bottom-h);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 0.3rem;
}
.pg65-bottom-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5.6rem;
  background: none; border: none;
  color: rgba(192,192,192,0.6);
  font-size: 1rem; cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
}
.pg65-bottom-btn:hover { color: var(--pg65-gold); transform: scale(1.08); }
.pg65-bottom-btn .pg65-bnav-icon { font-size: 2.2rem; margin-bottom: 0.2rem; }
.pg65-bottom-btn .pg65-bnav-label { font-size: 0.95rem; font-weight: 500; }
.pg65-bottom-active { color: var(--pg65-gold) !important; }
@media (min-width: 769px) {
  .pg65-bottom-nav { display: none; }
}

/* Utility */
.pg65-text-center { text-align: center; }
.pg65-mt-1 { margin-top: 1rem; }
.pg65-mb-1 { margin-bottom: 1rem; }
.pg65-img-responsive { width: 100%; height: auto; display: block; border-radius: 1rem; }

/* Testimonial */
.pg65-testimonial {
  background: rgba(192,192,192,0.05);
  border-left: 3px solid var(--pg65-gold);
  padding: 1rem 1.2rem; border-radius: 0 0.8rem 0.8rem 0;
  margin-bottom: 1rem;
}
.pg65-testimonial-user {
  font-size: 1.1rem; font-weight: 600; color: var(--pg65-gold);
}
.pg65-testimonial-text {
  font-size: 1.2rem; color: var(--pg65-primary); margin-top: 0.4rem;
  line-height: 1.6rem;
}

/* RTP Table */
.pg65-rtp-table {
  width: 100%; border-collapse: collapse; font-size: 1.2rem;
}
.pg65-rtp-table th {
  background: rgba(212,175,55,0.15); color: var(--pg65-gold);
  padding: 0.8rem; text-align: left; font-weight: 600;
}
.pg65-rtp-table td {
  padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(192,192,192,0.1);
  color: var(--pg65-primary);
}
.pg65-rtp-bar {
  height: 0.6rem; border-radius: 0.3rem;
  background: rgba(192,192,192,0.15);
  overflow: hidden;
}
.pg65-rtp-fill {
  height: 100%; border-radius: 0.3rem;
  background: linear-gradient(90deg, var(--pg65-gold), var(--pg65-highlight));
}
