/* ============================================================
 * sz777 login - theme.css
 * Mobile-first VIP casino theme. Palette: #8B008B | #0F0F23
 * All custom classes use the "v2c9-" prefix.
 * ============================================================ */

:root {
  --v2c9-primary: #8B008B;
  --v2c9-primary-light: #b14cb1;
  --v2c9-primary-dark: #5e005e;
  --v2c9-bg: #0F0F23;
  --v2c9-bg-2: #161630;
  --v2c9-bg-3: #1f1f44;
  --v2c9-text: #f4f1fb;
  --v2c9-text-muted: #a59ec4;
  --v2c9-gold: #f5c542;
  --v2c9-border: rgba(177, 76, 177, 0.35);
  --v2c9-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --v2c9-radius: 12px;
  --v2c9-maxw: 430px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #1d0d33 0%, var(--v2c9-bg) 55%);
  color: var(--v2c9-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem * 1;
  line-height: 2.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0 0 .8rem; line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; color: var(--v2c9-text); }
h3 { font-size: 1.6rem; color: var(--v2c9-primary-light); }
p { margin: 0 0 1rem; }

.v2c9-container { width: 100%; max-width: var(--v2c9-maxw); margin: 0 auto; padding: 0 1.2rem; }
.v2c9-wrapper { padding: 1rem 0 2rem; }

/* ===== Header ===== */
.v2c9-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(15,15,35,0.96), rgba(15,15,35,0.82));
  border-bottom: 1px solid var(--v2c9-border);
  backdrop-filter: blur(8px);
}
.v2c9-header-inner {
  max-width: var(--v2c9-maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 1rem; gap: .5rem;
}
.v2c9-brand { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.v2c9-brand img { width: 30px; height: 30px; border-radius: 6px; }
.v2c9-brand-text { font-weight: 800; font-size: 1.5rem; color: #fff; white-space: nowrap; }
.v2c9-brand-text span { color: var(--v2c9-primary-light); }

.v2c9-header-actions { display: flex; align-items: center; gap: .4rem; }
.v2c9-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem 1rem; border: 0; border-radius: 8px;
  font-size: 1.25rem; font-weight: 700; cursor: pointer;
  min-height: 36px; transition: transform .15s, filter .15s;
  text-decoration: none;
}
.v2c9-btn:active { transform: scale(.95); }
.v2c9-btn-primary { background: linear-gradient(135deg, var(--v2c9-primary), var(--v2c9-primary-light)); color: #fff; }
.v2c9-btn-ghost { background: transparent; color: var(--v2c9-text); border: 1px solid var(--v2c9-border); }
.v2c9-btn-gold { background: linear-gradient(135deg, var(--v2c9-gold), #d99a1a); color: #2a1a00; }
.v2c9-btn-block { display: flex; width: 100%; justify-content: center; }
.v2c9-menu-btn {
  background: transparent; border: 1px solid var(--v2c9-border); color: var(--v2c9-text);
  width: 36px; height: 36px; border-radius: 8px; font-size: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ===== Mobile expandable menu ===== */
.v2c9-mobile-menu {
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  background: var(--v2c9-bg-2); border-top: 1px solid transparent;
}
.v2c9-mobile-menu.v2c9-menu-open { max-height: 480px; border-top-color: var(--v2c9-border); }
.v2c9-mobile-menu-inner { max-width: var(--v2c9-maxw); margin: 0 auto; padding: .6rem 1rem .9rem; }
.v2c9-mobile-menu a {
  display: block; padding: .7rem .6rem; border-bottom: 1px dashed rgba(177,76,177,.22);
  color: var(--v2c9-text); font-size: 1.35rem; font-weight: 600;
}
.v2c9-mobile-menu a:last-child { border-bottom: 0; }
.v2c9-mobile-menu a i { width: 22px; text-align: center; color: var(--v2c9-gold); margin-right: .4rem; }

/* ===== Hero / Carousel ===== */
.v2c9-hero { padding-top: 62px; }
.v2c9-carousel { position: relative; border-radius: var(--v2c9-radius); overflow: hidden; box-shadow: var(--v2c9-shadow); }
.v2c9-slide {
  display: none; position: relative; cursor: pointer;
}
.v2c9-slide.v2c9-slide-active { display: block; }
.v2c9-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.v2c9-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(15,15,35,.9), rgba(15,15,35,0));
  padding: 1rem 1.2rem; font-weight: 700; font-size: 1.35rem; color: #fff;
}
.v2c9-slide-cap small { display: block; font-weight: 400; color: var(--v2c9-text-muted); font-size: 1.1rem; }
.v2c9-dots { display: flex; gap: .4rem; justify-content: center; padding: .6rem 0; }
.v2c9-dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer;
}
.v2c9-dot.v2c9-dot-active { background: var(--v2c9-gold); width: 18px; border-radius: 4px; }

/* ===== Section title ===== */
.v2c9-section { padding: 1.2rem 0; }
.v2c9-section-title {
  display: flex; align-items: center; gap: .55rem; margin-bottom: .8rem;
}
.v2c9-section-title h2 { font-size: 1.7rem; }
.v2c9-section-title i { color: var(--v2c9-gold); font-size: 1.4rem; }
.v2c9-section-title .v2c9-link { margin-left: auto; font-size: 1.15rem; color: var(--v2c9-primary-light); }

/* ===== Filter tabs ===== */
.v2c9-filter {
  display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem;
  -webkit-overflow-scrolling: touch;
}
.v2c9-filter-tab {
  padding: .4rem .9rem; border: 1px solid var(--v2c9-border); border-radius: 20px;
  font-size: 1.2rem; color: var(--v2c9-text-muted); white-space: nowrap; cursor: pointer;
  background: transparent;
}
.v2c9-filter-tab.v2c9-filter-active {
  background: linear-gradient(135deg, var(--v2c9-primary), var(--v2c9-primary-light));
  color: #fff; border-color: transparent;
}

/* ===== Game grid ===== */
.v2c9-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
}
.v2c9-game-card {
  background: var(--v2c9-bg-2); border: 1px solid rgba(255,255,255,.04);
  border-radius: 10px; padding: .5rem; text-align: center;
  transition: transform .15s, box-shadow .15s; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.v2c9-game-card:active { transform: scale(.95); }
.v2c9-game-card:hover { box-shadow: 0 4px 14px rgba(139,0,139,.4); }
.v2c9-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--v2c9-border);
}
.v2c9-game-name {
  font-size: 1.05rem; color: var(--v2c9-text); font-weight: 600;
  line-height: 1.2; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.v2c9-cat-tag {
  display: inline-block; font-size: 1rem; color: var(--v2c9-gold);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: .5rem; font-weight: 700;
}

/* ===== Cards / boxes ===== */
.v2c9-card {
  background: linear-gradient(160deg, var(--v2c9-bg-3), var(--v2c9-bg-2));
  border: 1px solid var(--v2c9-border); border-radius: var(--v2c9-radius);
  padding: 1.1rem; margin-bottom: 1rem;
}
.v2c9-card h3 { margin-top: 0; }
.v2c9-card a { color: var(--v2c9-gold); font-weight: 700; }

.v2c9-list { margin: 0; padding-left: 1.4rem; }
.v2c9-list li { margin-bottom: .55rem; line-height: 1.4; }

.v2c9-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }

.v2c9-stat {
  background: rgba(139,0,139,.12); border-radius: 10px; padding: .8rem; text-align: center;
}
.v2c9-stat .num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--v2c9-gold); }
.v2c9-stat .lbl { font-size: 1.05rem; color: var(--v2c9-text-muted); }

/* Testimonial */
.v2c9-quote {
  background: var(--v2c9-bg-2); border-left: 3px solid var(--v2c9-primary-light);
  padding: .8rem 1rem; border-radius: 0 10px 10px 0; margin-bottom: .7rem;
}
.v2c9-quote .who { display: block; font-size: 1.1rem; color: var(--v2c9-gold); font-weight: 700; margin-top: .3rem; }

/* Payment chips */
.v2c9-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.v2c9-chip {
  background: var(--v2c9-bg-3); border: 1px solid var(--v2c9-border);
  padding: .45rem .85rem; border-radius: 20px; font-size: 1.15rem; color: var(--v2c9-text);
}
.v2c9-chip i { color: var(--v2c9-gold); margin-right: .3rem; }

/* Winners ticker */
.v2c9-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 1.2rem;
}
.v2c9-winner:last-child { border-bottom: 0; }
.v2c9-winner b { color: var(--v2c9-gold); }

/* CTA banner */
.v2c9-cta {
  background: linear-gradient(135deg, var(--v2c9-primary-dark), var(--v2c9-primary));
  border-radius: var(--v2c9-radius); padding: 1.3rem; text-align: center; color: #fff;
  box-shadow: var(--v2c9-shadow);
}
.v2c9-cta h3 { color: #fff; }
.v2c9-cta p { color: rgba(255,255,255,.85); }

/* FAQ */
.v2c9-faq { border-bottom: 1px solid rgba(255,255,255,.08); padding: .7rem 0; }
.v2c9-faq summary { cursor: pointer; font-weight: 700; font-size: 1.3rem; color: var(--v2c9-text); list-style: none; }
.v2c9-faq summary::-webkit-details-marker { display: none; }
.v2c9-faq summary::before { content: "+ "; color: var(--v2c9-gold); }
.v2c9-faq[open] summary::before { content: "- "; }
.v2c9-faq p { margin-top: .5rem; color: var(--v2c9-text-muted); }

/* Inline SEO text link */
.v2c9-seo-link { color: var(--v2c9-gold); font-weight: 700; border-bottom: 1px dotted var(--v2c9-gold); }

/* ===== Footer ===== */
.v2c9-footer {
  background: var(--v2c9-bg-2); border-top: 1px solid var(--v2c9-border);
  padding: 1.4rem 0 96px; margin-top: 1.2rem;
}
.v2c9-footer p { color: var(--v2c9-text-muted); font-size: 1.2rem; }
.v2c9-footer-links {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0;
}
.v2c9-footer-links a {
  background: var(--v2c9-bg-3); border: 1px solid var(--v2c9-border);
  padding: .35rem .75rem; border-radius: 6px; font-size: 1.1rem; color: var(--v2c9-text);
}
.v2c9-footer-bottom { color: var(--v2c9-text-muted); font-size: 1.1rem; margin-top: .8rem; }

/* ===== Mobile bottom nav ===== */
.v2c9-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(22,22,48,.97), rgba(15,15,35,.99));
  border-top: 1px solid var(--v2c9-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; max-width: var(--v2c9-maxw); margin: 0 auto;
}
.v2c9-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--v2c9-text-muted);
  font-size: 1rem; gap: .15rem; cursor: pointer; position: relative;
  transition: color .15s, transform .15s;
}
.v2c9-bottom-nav-btn:active { transform: scale(.92); }
.v2c9-bottom-nav-btn i,
.v2c9-bottom-nav-btn span.material-icons-outlined,
.v2c9-bottom-nav-btn ion-icon { font-size: 22px; color: var(--v2c9-text-muted); }
.v2c9-bottom-nav-btn .lbl { font-size: 1rem; line-height: 1; }
.v2c9-bottom-nav-btn.v2c9-nav-current i,
.v2c9-bottom-nav-btn.v2c9-nav-current span,
.v2c9-bottom-nav-btn.v2c9-nav-current ion-icon { color: var(--v2c9-gold); }
.v2c9-bottom-nav-btn.v2c9-nav-current .lbl { color: var(--v2c9-gold); }
.v2c9-bottom-nav-btn.v2c9-nav-promo i { color: var(--v2c9-primary-light); }
.v2c9-bottom-nav-btn.v2c9-nav-promo .lbl { color: var(--v2c9-primary-light); font-weight: 700; }
.v2c9-nav-badge {
  position: absolute; top: 6px; right: 18px;
  background: var(--v2c9-gold); color: #2a1a00;
  font-size: .9rem; font-weight: 800; border-radius: 10px; padding: 0 5px; min-width: 16px;
}

main { padding-bottom: 80px; }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .v2c9-bottom-nav { display: none; }
  main { padding-bottom: 0; }
  .v2c9-header-inner { max-width: 960px; }
  .v2c9-container { max-width: 960px; }
  .v2c9-mobile-menu { display: none; }
  .v2c9-menu-btn { display: none; }
  .v2c9-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v2c9-grid-2 { grid-template-columns: repeat(4, 1fr); }
  .v2c9-footer { padding-bottom: 2rem; }
}

@media (max-width: 768px) {
  body { padding-bottom: 70px; }
}
