/* phdrem.sbs - Design Stylesheet */
/* All classes use wb821- prefix for namespace isolation */
/* Color palette: #DDA0DD | #CED4DA | #BA55D3 | #F4A460 | #1B263B | #FFE135 */

:root {
  --wb821-primary: #BA55D3;
  --wb821-primary-light: #DDA0DD;
  --wb821-accent: #F4A460;
  --wb821-bg: #1B263B;
  --wb821-bg-light: #2a3a5c;
  --wb821-text: #CED4DA;
  --wb821-text-light: #f0f0f0;
  --wb821-highlight: #FFE135;
  --wb821-card-bg: #22304a;
  --wb821-border: #3a4f6f;
  --wb821-radius: 12px;
  --wb821-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--wb821-bg);
  color: var(--wb821-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Header */
.wb821-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--wb821-bg) 0%, #1e2d4a 100%);
  border-bottom: 2px solid var(--wb821-primary);
  z-index: 1000;
  padding: 0 1rem;
  height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wb821-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.wb821-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.wb821-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb821-highlight);
  letter-spacing: 0.5px;
}

.wb821-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wb821-btn-register {
  background: linear-gradient(135deg, var(--wb821-primary), #9b30c9);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 36px;
}

.wb821-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(186,85,211,0.5);
}

.wb821-btn-login {
  background: transparent;
  color: var(--wb821-highlight);
  border: 2px solid var(--wb821-highlight);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 36px;
}

.wb821-btn-login:hover {
  background: rgba(255,225,53,0.1);
  transform: scale(1.05);
}

.wb821-menu-toggle {
  background: none;
  border: none;
  color: var(--wb821-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* Mobile Menu */
.wb821-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;
}

.wb821-overlay-active {
  opacity: 1;
  pointer-events: all;
}

.wb821-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--wb821-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  border-left: 2px solid var(--wb821-primary);
}

.wb821-menu-active {
  right: 0;
}

.wb821-menu-close {
  background: none;
  border: none;
  color: var(--wb821-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.wb821-menu-list {
  list-style: none;
  margin-top: 3rem;
}

.wb821-menu-list li {
  margin-bottom: 1.2rem;
}

.wb821-menu-list a {
  color: var(--wb821-text-light);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.wb821-menu-list a:hover {
  background: var(--wb821-bg-light);
  color: var(--wb821-highlight);
}

/* Main content */
.wb821-main {
  padding-top: 5.6rem;
}

/* Carousel */
.wb821-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 0 0 var(--wb821-radius) var(--wb821-radius);
}

.wb821-slide-track {
  display: flex;
  transition: transform 0.5s ease;
}

.wb821-slide {
  min-width: 100%;
  cursor: pointer;
}

.wb821-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.wb821-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.wb821-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.wb821-dot-active {
  background: var(--wb821-highlight);
  transform: scale(1.3);
}

/* Section */
.wb821-section {
  padding: 2rem 1.2rem;
}

.wb821-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wb821-highlight);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--wb821-primary);
}

.wb821-section-title i {
  margin-right: 0.5rem;
  color: var(--wb821-primary);
}

/* Category label */
.wb821-cat-label {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb821-primary-light);
  margin: 1.6rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--wb821-accent);
}

/* Game grid */
.wb821-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.wb821-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.wb821-game-item:hover {
  transform: scale(1.05);
}

.wb821-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid var(--wb821-border);
  transition: border-color 0.3s;
}

.wb821-game-item:hover img {
  border-color: var(--wb821-primary);
}

.wb821-game-name {
  font-size: 1.1rem;
  color: var(--wb821-text);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card */
.wb821-card {
  background: var(--wb821-card-bg);
  border-radius: var(--wb821-radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--wb821-border);
  box-shadow: var(--wb821-shadow);
}

.wb821-card h3 {
  font-size: 1.5rem;
  color: var(--wb821-primary-light);
  margin-bottom: 0.8rem;
}

.wb821-card p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--wb821-text);
}

/* Promo buttons */
.wb821-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--wb821-primary), var(--wb821-accent));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
  min-height: 44px;
}

.wb821-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(186,85,211,0.4);
}

.wb821-promo-link {
  color: var(--wb821-highlight);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1.3rem;
}

.wb821-promo-link:hover {
  color: var(--wb821-accent);
}

/* Feature list */
.wb821-feature-list {
  list-style: none;
}

.wb821-feature-list li {
  padding: 0.8rem 0;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--wb821-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wb821-feature-list li i {
  color: var(--wb821-primary);
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* FAQ */
.wb821-faq-item {
  margin-bottom: 1rem;
}

.wb821-faq-item h4 {
  font-size: 1.4rem;
  color: var(--wb821-primary-light);
  margin-bottom: 0.4rem;
}

.wb821-faq-item p {
  font-size: 1.2rem;
  color: var(--wb821-text);
  padding-left: 1rem;
}

/* Payment icons row */
.wb821-payment-row {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.wb821-payment-item {
  background: var(--wb821-bg-light);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--wb821-text-light);
  border: 1px solid var(--wb821-border);
}

/* Winners table */
.wb821-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--wb821-border);
}

.wb821-winner-name {
  color: var(--wb821-primary-light);
  font-weight: 600;
}

.wb821-winner-amount {
  color: var(--wb821-highlight);
  font-weight: 700;
}

/* Footer */
.wb821-footer {
  background: var(--wb821-bg);
  padding: 2rem 1.2rem;
  border-top: 2px solid var(--wb821-primary);
  text-align: center;
}

.wb821-footer-desc {
  font-size: 1.2rem;
  color: var(--wb821-text);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.wb821-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.wb821-footer-links a {
  color: var(--wb821-primary-light);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--wb821-border);
  border-radius: 6px;
  transition: all 0.2s;
}

.wb821-footer-links a:hover {
  background: var(--wb821-bg-light);
  color: var(--wb821-highlight);
}

.wb821-partner-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.wb821-partner-row span {
  font-size: 1.1rem;
  color: var(--wb821-text);
  padding: 0.4rem 0.8rem;
  background: var(--wb821-card-bg);
  border-radius: 4px;
}

.wb821-copyright {
  font-size: 1.1rem;
  color: #666;
  margin-top: 1rem;
}

/* Bottom Navigation */
.wb821-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1e2d4a 0%, var(--wb821-bg) 100%);
  border-top: 2px solid var(--wb821-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}

.wb821-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--wb821-text);
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 10px;
  padding: 0.3rem 0;
}

.wb821-bottom-btn i,
.wb821-bottom-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
  transition: all 0.25s;
}

.wb821-bottom-btn span {
  font-size: 1rem;
  font-weight: 500;
}

.wb821-bottom-btn:hover {
  color: var(--wb821-highlight);
  transform: scale(1.08);
}

.wb821-bottom-btn:active {
  transform: scale(0.95);
}

.wb821-bottom-active {
  color: var(--wb821-highlight) !important;
}

.wb821-bottom-active i,
.wb821-bottom-active .material-icons {
  color: var(--wb821-highlight);
  text-shadow: 0 0 8px rgba(255,225,53,0.6);
}

/* Content link styles */
.wb821-content-link {
  color: var(--wb821-accent);
  text-decoration: none;
  font-weight: 500;
}

.wb821-content-link:hover {
  text-decoration: underline;
}

/* Testimonial */
.wb821-testimonial {
  background: var(--wb821-card-bg);
  border-radius: var(--wb821-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--wb821-primary);
}

.wb821-testimonial-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wb821-highlight);
}

.wb821-testimonial-text {
  font-size: 1.2rem;
  color: var(--wb821-text);
  margin-top: 0.4rem;
  font-style: italic;
}

/* RTP bar */
.wb821-rtp-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.wb821-rtp-bar-name {
  min-width: 90px;
  color: var(--wb821-text-light);
  font-weight: 600;
}

.wb821-rtp-bar-track {
  flex: 1;
  height: 10px;
  background: var(--wb821-bg-light);
  border-radius: 5px;
  overflow: hidden;
}

.wb821-rtp-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--wb821-primary), var(--wb821-highlight));
}

.wb821-rtp-bar-value {
  min-width: 42px;
  color: var(--wb821-highlight);
  font-weight: 700;
  text-align: right;
}

/* Trick card */
.wb821-trick-card {
  background: var(--wb821-card-bg);
  border-radius: var(--wb821-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
  border-left: 4px solid var(--wb821-accent);
}

.wb821-trick-card h4 {
  font-size: 1.3rem;
  color: var(--wb821-accent);
  margin-bottom: 0.3rem;
}

.wb821-trick-card p {
  font-size: 1.2rem;
  color: var(--wb821-text);
}

/* App download CTA */
.wb821-app-cta {
  background: linear-gradient(135deg, var(--wb821-bg-light), var(--wb821-card-bg));
  border: 2px solid var(--wb821-primary);
  border-radius: var(--wb821-radius);
  padding: 2rem 1.4rem;
  text-align: center;
  margin: 1rem 0;
}

.wb821-app-cta h3 {
  font-size: 1.6rem;
  color: var(--wb821-highlight);
  margin-bottom: 0.8rem;
}

.wb821-app-cta p {
  font-size: 1.3rem;
  color: var(--wb821-text);
  margin-bottom: 1.2rem;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .wb821-bottom-nav {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

/* Mobile: add bottom padding */
@media (max-width: 768px) {
  .wb821-main {
    padding-bottom: 80px;
  }
}

/* Utility */
.wb821-text-center { text-align: center; }
.wb821-mt-1 { margin-top: 1rem; }
.wb821-mt-2 { margin-top: 2rem; }
.wb821-mb-1 { margin-bottom: 1rem; }
.wb821-mb-2 { margin-bottom: 2rem; }
.wb821-hidden { display: none; }
