/* ==========================================================================
   c168s.homes - mobile-first casino styles
   All custom classes use the v7d5- prefix.
   Palette: #9932CC | #BA55D3 | #8B008B | #1E1E1E
   ========================================================================== */

:root {
  --v7d5-primary: #9932CC;
  --v7d5-secondary: #BA55D3;
  --v7d5-accent: #8B008B;
  --v7d5-bg: #1E1E1E;
  --v7d5-bg-soft: #2a1f2d;
  --v7d5-bg-card: #2e2333;
  --v7d5-text: #f5e9ff;
  --v7d5-text-muted: #c9b3da;
  --v7d5-border: #432b4a;
  --v7d5-gold: #ffcf5c;
  --v7d5-radius: 14px;
  --v7d5-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --v7d5-header-h: 60px;
  --v7d5-nav-h: 62px;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(circle at top, #2a1130 0%, #1E1E1E 55%);
  color: var(--v7d5-text);
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--v7d5-secondary); text-decoration: none; }
a:hover { color: var(--v7d5-gold); }
img { max-width: 100%; display: block; }

.v7d5-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.v7d5-wrapper { padding: 18px 0; }

h1, h2, h3, h4 { color: #fff; line-height: 1.25; margin: 0 0 10px; }
h1 { font-size: 2.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 12px; color: var(--v7d5-text-muted); }

/* ===================== Header ===================== */
.v7d5-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--v7d5-header-h);
  background: linear-gradient(90deg, #1E1E1E 0%, #3a1d44 60%, #1E1E1E 100%);
  border-bottom: 1px solid var(--v7d5-border);
  z-index: 1000;
  display: flex; align-items: center;
}
.v7d5-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.v7d5-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; font-size: 1.8rem; }
.v7d5-logo img { width: 30px; height: 30px; border-radius: 8px; }
.v7d5-logo span { background: linear-gradient(90deg, #BA55D3, #ffcf5c); -webkit-background-clip: text; background-clip: text; color: transparent; }

.v7d5-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.v7d5-menu-btn {
  background: transparent; border: 1px solid var(--v7d5-border); color: #fff;
  width: 40px; height: 40px; border-radius: 10px; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.v7d5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 24px; border: none; cursor: pointer;
  font-weight: 700; font-size: 1.35rem; min-height: 40px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.v7d5-btn:active { transform: scale(.96); }
.v7d5-btn-login { background: #fff; color: var(--v7d5-accent); }
.v7d5-btn-register { background: linear-gradient(90deg, #9932CC, #8B008B); color: #fff; box-shadow: 0 4px 14px rgba(153,50,204,.5); }
.v7d5-btn-cta { background: linear-gradient(90deg, #BA55D3, #9932CC); color: #fff; width: 100%; padding: 14px; font-size: 1.55rem; }
.v7d5-btn-gold { background: linear-gradient(90deg, #ffcf5c, #ff9d3a); color: #1E1E1E; }
.v7d5-text-link { color: var(--v7d5-gold); font-weight: 700; border-bottom: 1px dashed var(--v7d5-gold); }

/* ===================== Mobile menu ===================== */
.v7d5-mobile-menu {
  position: fixed; top: var(--v7d5-header-h); left: 0; right: 0;
  background: #221625; border-bottom: 1px solid var(--v7d5-border);
  max-height: 0; overflow: hidden; transition: max-height .28s ease; z-index: 9999;
}
.v7d5-mobile-menu.v7d5-menu-open { max-height: 80vh; overflow-y: auto; }
.v7d5-mobile-menu ul { list-style: none; margin: 0; padding: 6px 14px 14px; }
.v7d5-mobile-menu li { border-bottom: 1px solid var(--v7d5-border); }
.v7d5-mobile-menu li a { display: block; padding: 12px 6px; color: var(--v7d5-text); font-weight: 600; }

/* ===================== Hero / Carousel ===================== */
.v7d5-main { padding-top: calc(var(--v7d5-header-h) + 8px); }
.v7d5-carousel { position: relative; border-radius: var(--v7d5-radius); overflow: hidden; margin: 12px 0 4px; }
.v7d5-slide { display: none; position: relative; }
.v7d5-slide.v7d5-slide-active { display: block; }
.v7d5-slide img { width: 100%; height: 200px; object-fit: cover; }
.v7d5-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(30,30,30,.92), transparent);
  padding: 30px 14px 12px;
}
.v7d5-slide-cap h3 { margin: 0 0 4px; font-size: 1.6rem; color: #fff; }
.v7d5-slide-cap p { margin: 0; font-size: 1.25rem; color: var(--v7d5-text-muted); }
.v7d5-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
.v7d5-dot { width: 9px; height: 9px; border-radius: 50%; background: #5a4060; border: none; cursor: pointer; }
.v7d5-dot.v7d5-dot-active { background: var(--v7d5-gold); }

/* ===================== Sections ===================== */
.v7d5-section { padding: 18px 0; }
.v7d5-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.9rem; color: #fff; margin-bottom: 12px;
  border-left: 4px solid var(--v7d5-secondary); padding-left: 10px;
}
.v7d5-section-title i { color: var(--v7d5-gold); }

/* ===================== Game grid ===================== */
.v7d5-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0 8px;
}
.v7d5-cat-head h3 { margin: 0; font-size: 1.6rem; color: var(--v7d5-gold); text-transform: uppercase; letter-spacing: .5px; }
.v7d5-cat-head a { font-size: 1.25rem; }

.v7d5-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.v7d5-game {
  background: var(--v7d5-bg-card); border: 1px solid var(--v7d5-border);
  border-radius: 12px; overflow: hidden; text-align: center; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.v7d5-game:hover { transform: translateY(-3px); border-color: var(--v7d5-secondary); }
.v7d5-game img { width: 100%; height: 84px; object-fit: cover; }
.v7d5-game-name { font-size: 1.2rem; padding: 6px 4px; color: #fff; font-weight: 600; line-height: 1.2; min-height: 34px; }

/* ===================== Cards ===================== */
.v7d5-card {
  background: var(--v7d5-bg-card); border: 1px solid var(--v7d5-border);
  border-radius: var(--v7d5-radius); padding: 16px; margin-bottom: 14px;
  box-shadow: var(--v7d5-shadow);
}
.v7d5-card h3 { color: var(--v7d5-gold); }
.v7d5-card-list { list-style: none; padding: 0; margin: 0; }
.v7d5-card-list li { padding: 8px 0; border-bottom: 1px dashed var(--v7d5-border); color: var(--v7d5-text-muted); }
.v7d5-card-list li:last-child { border-bottom: none; }
.v7d5-card-list li::before { content: "▸ "; color: var(--v7d5-secondary); font-weight: 700; }

.v7d5-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.v7d5-feature {
  background: linear-gradient(160deg, #3a1d44, #1E1E1E); border-radius: 12px; padding: 14px;
  border: 1px solid var(--v7d5-border); text-align: center;
}
.v7d5-feature i { font-size: 2.4rem; color: var(--v7d5-gold); margin-bottom: 6px; }
.v7d5-feature b { display: block; color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.v7d5-feature span { font-size: 1.15rem; color: var(--v7d5-text-muted); }

/* ===================== Testimonials ===================== */
.v7d5-testimonial { background: var(--v7d5-bg-card); border-radius: 12px; padding: 14px; margin-bottom: 10px; border-left: 3px solid var(--v7d5-gold); }
.v7d5-stars { color: var(--v7d5-gold); margin-bottom: 6px; font-size: 1.3rem; }
.v7d5-testimonial p { margin: 0 0 6px; color: var(--v7d5-text); font-style: italic; }
.v7d5-testimonial b { color: var(--v7d5-secondary); }

/* ===================== Payment / winners ===================== */
.v7d5-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.v7d5-pill {
  background: #fff; color: #1E1E1E; border-radius: 20px; padding: 6px 12px;
  font-size: 1.2rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
}
.v7d5-winner-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--v7d5-border); font-size: 1.3rem; }
.v7d5-winner-row:last-child { border-bottom: none; }
.v7d5-winner-row b { color: var(--v7d5-gold); }

/* ===================== FAQ ===================== */
.v7d5-faq-item { background: var(--v7d5-bg-card); border: 1px solid var(--v7d5-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.v7d5-faq-item h4 { margin: 0 0 6px; color: var(--v7d5-secondary); font-size: 1.4rem; }
.v7d5-faq-item p { margin: 0; font-size: 1.3rem; }

/* ===================== Footer ===================== */
.v7d5-footer { background: #160f18; border-top: 1px solid var(--v7d5-border); padding: 22px 0 12px; margin-top: 18px; }
.v7d5-footer h4 { color: var(--v7d5-gold); margin-bottom: 8px; font-size: 1.4rem; }
.v7d5-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.v7d5-footer-links a {
  background: var(--v7d5-bg-card); border: 1px solid var(--v7d5-border); border-radius: 20px;
  padding: 6px 12px; font-size: 1.2rem; color: var(--v7d5-text);
}
.v7d5-footer-links a:hover { color: var(--v7d5-gold); border-color: var(--v7d5-secondary); }
.v7d5-footer-copy { text-align: center; font-size: 1.15rem; color: #7d6a87; padding-top: 10px; border-top: 1px solid var(--v7d5-border); margin-top: 12px; }

/* ===================== Mobile bottom nav ===================== */
.v7d5-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--v7d5-nav-h);
  background: linear-gradient(180deg, #2a1733 0%, #160a1c 100%);
  border-top: 1px solid var(--v7d5-border); z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
}
.v7d5-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--v7d5-text-muted); font-size: 1.05rem; gap: 2px; cursor: pointer;
  border-top: 3px solid transparent; transition: color .15s ease, border-color .15s ease, transform .12s ease;
  min-width: 60px; min-height: 60px;
}
.v7d5-bottom-nav a i { font-size: 2.2rem; }
.v7d5-bottom-nav a:active { transform: scale(.92); }
.v7d5-bottom-nav a:hover { color: var(--v7d5-gold); }
.v7d5-bottom-nav a.v7d5-active { color: var(--v7d5-gold); border-top-color: var(--v7d5-gold); }
.v7d5-bottom-nav a.v7d5-promo {
  color: #fff;
  background: linear-gradient(180deg, rgba(153,50,204,.35), transparent);
}

/* Back to top button */
#v7d5-to-top {
  position: fixed; right: 14px; bottom: calc(var(--v7d5-nav-h) + 12px);
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #9932CC, #8B008B); color: #fff; border: none;
  font-size: 1.8rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .2s ease; z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
}
#v7d5-to-top.v7d5-to-top-show { opacity: 1; pointer-events: auto; }

/* Mobile bottom padding so content isn't hidden behind nav */
@media (max-width: 768px) {
  .v7d5-main, .v7d5-footer { padding-bottom: calc(var(--v7d5-nav-h) + 14px); }
}

/* ===================== Desktop ===================== */
@media (min-width: 769px) {
  body { background: radial-gradient(circle at top, #2a1130 0%, #1E1E1E 60%); }
  .v7d5-container { max-width: 960px; }
  .v7d5-header-inner { max-width: 960px; }
  .v7d5-grid { grid-template-columns: repeat(6, 1fr); }
  .v7d5-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .v7d5-bottom-nav { display: none; }
  #v7d5-to-top { bottom: 22px; }
  .v7d5-slide img { height: 320px; }
}

/* ===================== Help pages ===================== */
.v7d5-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.v7d5-step { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--v7d5-border); }
.v7d5-step:last-child { border-bottom: none; }
.v7d5-step-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--v7d5-primary), var(--v7d5-accent));
  color: #fff; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.v7d5-step-body b { color: #fff; }
.v7d5-step-body p { margin: 4px 0 0; font-size: 1.3rem; }
.v7d5-alert {
  background: rgba(153, 50, 204, .16); border: 1px solid var(--v7d5-secondary);
  border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-size: 1.3rem;
}
.v7d5-alert b { color: var(--v7d5-gold); }
.v7d5-check-list { list-style: none; margin: 0; padding: 0; }
.v7d5-check-list li {
  padding: 7px 0 7px 26px; position: relative; font-size: 1.35rem;
  color: var(--v7d5-text-muted); border-bottom: 1px dashed var(--v7d5-border);
}
.v7d5-check-list li:last-child { border-bottom: none; }
.v7d5-check-list li::before { content: "\2714"; position: absolute; left: 4px; color: var(--v7d5-gold); }

/* Utility */
.v7d5-center { text-align: center; }
.v7d5-hide-desktop { display: block; }
@media (min-width: 769px) { .v7d5-hide-desktop { display: none; } }
