/* JL58 Design CSS - All classes prefixed with se8d- */
/* Root variables */
:root {
  --se8d-primary: #FF6347;
  --se8d-bg: #0E1621;
  --se8d-text: #f0f0f0;
  --se8d-accent: #FF6347;
  --se8d-dark: #0a1019;
  --se8d-card: #151f2e;
  --se8d-border: #1e2d42;
  --se8d-muted: #8a9bb5;
  --se8d-success: #2ecc71;
  --se8d-gold: #f1c40f;
  font-size: 62.5%;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--se8d-bg);
  color: var(--se8d-text);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--se8d-accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.se8d-wrapper {
  padding-top: 5.6rem;
}

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

.se8d-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.se8d-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
}

.se8d-logo span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--se8d-primary);
  letter-spacing: 0.5px;
}

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

.se8d-btn-register,
.se8d-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.se8d-btn-register {
  background: linear-gradient(135deg, var(--se8d-primary), #e5533a);
  color: #fff;
}

.se8d-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(255, 99, 71, 0.4);
}

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

.se8d-btn-login:hover {
  background: rgba(255, 99, 71, 0.1);
}

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

/* Overlay */
.se8d-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* Mobile menu */
.se8d-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 280px;
  height: 100%;
  background: var(--se8d-dark);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--se8d-border);
}

.se8d-mobile-menu-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--se8d-border);
}

.se8d-mobile-menu-header span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--se8d-primary);
}

.se8d-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--se8d-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--se8d-border);
  transition: color 0.2s;
}

.se8d-mobile-menu a:hover {
  color: var(--se8d-primary);
}

/* Carousel */
.se8d-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.8rem;
  margin: 1rem 0;
}

.se8d-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.se8d-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.8rem;
}

.se8d-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}

.se8d-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--se8d-border);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.se8d-dot-active {
  background: var(--se8d-primary);
}

/* Sections */
.se8d-section {
  padding: 2rem 0;
}

.se8d-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--se8d-text);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--se8d-primary);
  display: inline-block;
}

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

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

.se8d-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 0.8rem;
  overflow: hidden;
  background: var(--se8d-card);
  padding: 0.5rem;
}

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

.se8d-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.6rem;
}

.se8d-game-item p {
  font-size: 1rem;
  color: var(--se8d-text);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Category header */
.se8d-cat-header {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--se8d-primary);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Promo button */
.se8d-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--se8d-primary), #e5533a);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 2.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
}

.se8d-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 99, 71, 0.5);
}

.se8d-promo-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--se8d-primary);
  padding: 0.7rem 1.8rem;
  border-radius: 2.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: 2px solid var(--se8d-primary);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.se8d-promo-btn-outline:hover {
  background: rgba(255, 99, 71, 0.1);
}

/* Cards */
.se8d-card {
  background: var(--se8d-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--se8d-border);
}

.se8d-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--se8d-text);
}

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

.se8d-testimonial-name {
  font-weight: 700;
  color: var(--se8d-primary);
  font-size: 1.3rem;
}

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

/* Winner showcase */
.se8d-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--se8d-card);
  border-radius: 0.8rem;
  margin-bottom: 0.6rem;
}

.se8d-winner-item img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

.se8d-winner-name {
  font-weight: 700;
  font-size: 1.2rem;
}

.se8d-winner-amount {
  color: var(--se8d-gold);
  font-weight: 800;
  font-size: 1.3rem;
}

/* Payment */
.se8d-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.se8d-payment-item {
  background: var(--se8d-card);
  border: 1px solid var(--se8d-border);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--se8d-muted);
  text-align: center;
}

/* Footer */
.se8d-footer {
  background: var(--se8d-dark);
  padding: 2rem 1.2rem 10rem;
  border-top: 1px solid var(--se8d-border);
}

.se8d-footer-brand {
  color: var(--se8d-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.se8d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.se8d-footer-links a {
  background: var(--se8d-card);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  color: var(--se8d-text);
  border: 1px solid var(--se8d-border);
  transition: all 0.2s;
}

.se8d-footer-links a:hover {
  border-color: var(--se8d-primary);
  color: var(--se8d-primary);
}

.se8d-footer-copy {
  text-align: center;
  color: var(--se8d-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--se8d-border);
}

/* Bottom nav */
.se8d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, #111b28, #0a1019);
  border-top: 1px solid var(--se8d-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.se8d-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.2rem;
  background: none;
  border: none;
  color: var(--se8d-muted);
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 0.8rem;
  position: relative;
}

.se8d-bottom-nav-btn:hover,
.se8d-bottom-nav-btn:focus {
  color: var(--se8d-primary);
  background: rgba(255, 99, 71, 0.08);
}

.se8d-bottom-nav-btn.active {
  color: var(--se8d-primary);
}

.se8d-bottom-nav-btn.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 0.3rem;
  background: var(--se8d-primary);
  border-radius: 0 0 0.3rem 0.3rem;
}

.se8d-bottom-nav-btn i,
.se8d-bottom-nav-btn span.material-symbols-outlined {
  font-size: 2.4rem;
}

.se8d-bottom-nav-btn span.se8d-nav-label {
  font-size: 1rem;
  margin-top: 0.2rem;
  font-weight: 600;
}

/* Help page styles */
.se8d-help-section {
  padding: 1.5rem 0;
}

.se8d-help-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--se8d-primary);
  margin-bottom: 1rem;
}

.se8d-help-section p {
  color: var(--se8d-muted);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.se8d-step-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.se8d-step-num {
  background: var(--se8d-primary);
  color: #fff;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.se8d-step-text {
  color: var(--se8d-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

.se8d-faq-item {
  background: var(--se8d-card);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--se8d-border);
}

.se8d-faq-q {
  font-weight: 700;
  color: var(--se8d-text);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.se8d-faq-a {
  color: var(--se8d-muted);
  font-size: 1.3rem;
}

/* Feature list */
.se8d-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.se8d-feature-item {
  background: var(--se8d-card);
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--se8d-border);
}

.se8d-feature-item i {
  font-size: 2.4rem;
  color: var(--se8d-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.se8d-feature-item h3 {
  font-size: 1.3rem;
  color: var(--se8d-text);
  margin-bottom: 0.3rem;
}

.se8d-feature-item p {
  font-size: 1.1rem;
  color: var(--se8d-muted);
}

/* CTA section */
.se8d-cta {
  background: linear-gradient(135deg, rgba(255, 99, 71, 0.15), rgba(255, 99, 71, 0.05));
  border: 1px solid var(--se8d-primary);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.se8d-cta h2 {
  font-size: 1.8rem;
  color: var(--se8d-primary);
  margin-bottom: 0.8rem;
}

.se8d-cta p {
  color: var(--se8d-muted);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

/* Utility */
.se8d-text-center {
  text-align: center;
}

.se8d-mt1 {
  margin-top: 1rem;
}

.se8d-mb1 {
  margin-bottom: 1rem;
}

.se8d-mb2 {
  margin-bottom: 2rem;
}

/* Desktop: hide bottom nav, show desktop nav */
@media (min-width: 769px) {
  .se8d-bottom-nav {
    display: none;
  }

  .se8d-footer {
    padding-bottom: 2rem;
  }
}

/* Mobile bottom padding for content */
@media (max-width: 768px) {
  .se8d-wrapper {
    padding-bottom: 8rem;
  }

  main {
    padding-bottom: 8rem;
  }
}

/* Achievement list */
.se8d-achievement {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--se8d-border);
}

.se8d-achievement-icon {
  color: var(--se8d-gold);
  font-size: 2rem;
}

.se8d-achievement-text {
  font-size: 1.2rem;
  color: var(--se8d-muted);
}

/* Tricks */
.se8d-trick-item {
  background: var(--se8d-card);
  border-left: 3px solid var(--se8d-primary);
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  border-radius: 0 0.6rem 0.6rem 0;
  font-size: 1.3rem;
  color: var(--se8d-muted);
}

/* Promo link text style */
.se8d-promo-text {
  color: var(--se8d-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.se8d-promo-text:hover {
  color: #ff8a78;
  text-decoration: underline;
}

/* RTP table */
.se8d-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.se8d-rtp-table th {
  background: var(--se8d-card);
  padding: 0.6rem;
  color: var(--se8d-primary);
  border: 1px solid var(--se8d-border);
  text-align: left;
}

.se8d-rtp-table td {
  padding: 0.6rem;
  border: 1px solid var(--se8d-border);
  color: var(--se8d-muted);
}
