/**
 * Casino Plus App - Core Stylesheet
 * All classes use s72e- prefix for namespace isolation
 * Color palette: #0C0C0C (bg) | #36454F (text accent) | Gold accents
 */

:root {
  --s72e-primary: #C8A855;
  --s72e-bg: #0C0C0C;
  --s72e-bg-alt: #141414;
  --s72e-bg-card: #1A1A1A;
  --s72e-bg-elevated: #222222;
  --s72e-text: #E8E8E8;
  --s72e-text-muted: #8A8A8A;
  --s72e-text-accent: #36454F;
  --s72e-border: #2A2A2A;
  --s72e-gold: #C8A855;
  --s72e-gold-dark: #A08030;
  --s72e-gold-light: #E0C878;
  --s72e-success: #4CAF50;
  --s72e-danger: #E53935;
  --s72e-header-h: 56px;
  --s72e-bottom-nav-h: 60px;
  --s72e-radius: 10px;
  --s72e-radius-sm: 6px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* ===== HEADER ===== */
.s72e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s72e-header-h);
  background: linear-gradient(180deg, #111111, #0C0C0C);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 1px solid var(--s72e-border);
  transition: box-shadow 0.3s ease;
}

.s72e-header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.s72e-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.s72e-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s72e-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s72e-gold);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.s72e-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s72e-btn-register {
  background: linear-gradient(135deg, var(--s72e-gold), var(--s72e-gold-dark));
  color: #0C0C0C;
  border: none;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s72e-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(200, 168, 85, 0.4);
}

.s72e-btn-login {
  background: transparent;
  color: var(--s72e-gold);
  border: 1.5px solid var(--s72e-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.s72e-btn-login:hover {
  background: rgba(200, 168, 85, 0.1);
}

.s72e-menu-toggle {
  background: none;
  border: none;
  color: var(--s72e-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.s72e-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.s72e-overlay-active {
  opacity: 1;
  visibility: visible;
}

.s72e-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #111111;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 20px 16px;
  border-left: 1px solid var(--s72e-border);
}

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

.s72e-menu-close {
  background: none;
  border: none;
  color: var(--s72e-text);
  font-size: 2.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 16px;
}

.s72e-menu-list {
  list-style: none;
}

.s72e-menu-item {
  border-bottom: 1px solid var(--s72e-border);
}

.s72e-menu-link {
  display: block;
  padding: 14px 8px;
  color: var(--s72e-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.2s;
}

.s72e-menu-link:hover {
  color: var(--s72e-gold);
}

/* ===== MAIN CONTENT ===== */
.s72e-main {
  padding-top: calc(var(--s72e-header-h) + 4px);
  padding-bottom: 80px;
  min-height: 100vh;
}

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

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

.s72e-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

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

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

.s72e-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

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

.s72e-dot-active {
  background: var(--s72e-gold);
  width: 20px;
  border-radius: 4px;
}

/* ===== SECTIONS ===== */
.s72e-section {
  padding: 20px 14px;
}

.s72e-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s72e-gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--s72e-gold-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.s72e-section-title i,
.s72e-section-title .material-icons {
  font-size: 2rem;
}

/* ===== GAME GRID ===== */
.s72e-cat-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--s72e-text);
  margin: 16px 0 10px;
  padding-left: 4px;
  border-left: 3px solid var(--s72e-gold);
  padding-left: 8px;
}

.s72e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.s72e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}

.s72e-game-item:hover {
  transform: scale(1.06);
}

.s72e-game-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--s72e-radius-sm);
  object-fit: cover;
  margin-bottom: 4px;
  border: 1px solid var(--s72e-border);
}

.s72e-game-name {
  font-size: 1rem;
  color: var(--s72e-text-muted);
  text-align: center;
  line-height: 1.2rem;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT CARDS ===== */
.s72e-card {
  background: var(--s72e-bg-card);
  border-radius: var(--s72e-radius);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--s72e-border);
}

.s72e-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s72e-gold);
  margin-bottom: 10px;
}

.s72e-card-text {
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: var(--s72e-text);
  margin-bottom: 10px;
}

.s72e-card-text strong {
  color: var(--s72e-gold-light);
}

.s72e-card-text a {
  color: var(--s72e-gold);
  text-decoration: underline;
}

/* ===== PROMO BUTTON ===== */
.s72e-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--s72e-gold), var(--s72e-gold-dark));
  color: #0C0C0C;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  text-decoration: none;
}

.s72e-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(200, 168, 85, 0.4);
}

.s72e-promo-text {
  color: var(--s72e-gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.s72e-footer {
  background: var(--s72e-bg-alt);
  padding: 24px 14px 16px;
  border-top: 1px solid var(--s72e-border);
}

.s72e-footer-brand {
  font-size: 1.3rem;
  color: var(--s72e-text-muted);
  margin-bottom: 14px;
  line-height: 1.5rem;
}

.s72e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.s72e-footer-link {
  background: var(--s72e-bg-elevated);
  color: var(--s72e-text);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.s72e-footer-link:hover {
  background: var(--s72e-gold-dark);
  color: #fff;
}

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

/* ===== BOTTOM NAV ===== */
.s72e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s72e-bottom-nav-h);
  background: linear-gradient(180deg, #161616, #0A0A0A);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  border-top: 1px solid var(--s72e-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}

.s72e-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--s72e-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px;
  text-decoration: none;
  position: relative;
}

.s72e-nav-btn:hover,
.s72e-nav-btn:focus {
  color: var(--s72e-gold);
}

.s72e-nav-btn-active {
  color: var(--s72e-gold);
}

.s72e-nav-btn-active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--s72e-gold);
  border-radius: 0 0 2px 2px;
}

.s72e-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
  line-height: 1;
}

.s72e-nav-label {
  font-size: 1rem;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.s72e-nav-btn:active {
  transform: scale(0.92);
}

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

.s72e-rpt-row {
  border-bottom: 1px solid var(--s72e-border);
}

.s72e-rtp-game {
  padding: 8px 6px;
  color: var(--s72e-text);
}

.s72e-rtp-value {
  padding: 8px 6px;
  color: var(--s72e-gold);
  font-weight: 600;
  text-align: right;
}

/* ===== TESTIMONIALS ===== */
.s72e-testimonial {
  background: var(--s72e-bg-elevated);
  border-radius: var(--s72e-radius);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--s72e-gold);
}

.s72e-testimonial-name {
  font-weight: 700;
  color: var(--s72e-gold);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.s72e-testimonial-text {
  font-size: 1.2rem;
  color: var(--s72e-text-muted);
  line-height: 1.4rem;
}

/* ===== WINNERS ===== */
.s72e-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--s72e-border);
  font-size: 1.2rem;
}

.s72e-winner-game {
  color: var(--s72e-text);
  flex: 1;
}

.s72e-winner-amount {
  color: var(--s72e-gold);
  font-weight: 700;
}

/* ===== PAYMENT ===== */
.s72e-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.s72e-payment-item {
  background: var(--s72e-bg-elevated);
  padding: 8px 14px;
  border-radius: var(--s72e-radius-sm);
  font-size: 1.2rem;
  color: var(--s72e-text);
  border: 1px solid var(--s72e-border);
}

/* ===== HELP PAGE ===== */
.s72e-faq-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--s72e-border);
}

.s72e-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--s72e-gold);
  margin-bottom: 6px;
}

.s72e-faq-a {
  font-size: 1.3rem;
  color: var(--s72e-text);
  line-height: 1.5rem;
}

/* ===== ACHIEVEMENT ===== */
.s72e-achieve-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--s72e-border);
}

.s72e-achieve-icon {
  width: 36px;
  height: 36px;
  background: var(--s72e-bg-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--s72e-gold);
  flex-shrink: 0;
}

.s72e-achieve-info {
  flex: 1;
}

.s72e-achieve-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--s72e-text);
}

.s72e-achieve-desc {
  font-size: 1.1rem;
  color: var(--s72e-text-muted);
}

/* ===== UTILITIES ===== */
.s72e-text-center { text-align: center; }
.s72e-mt-10 { margin-top: 10px; }
.s72e-mb-10 { margin-bottom: 10px; }
.s72e-mb-16 { margin-bottom: 16px; }
.s72e-hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .s72e-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .s72e-main {
    padding-bottom: 80px;
  }
}
