/* ============================================================
   Fortune 777 Slots - layout.css
   All custom classes use the "v790-" prefix.
   Palette: #D3D3D3 | #90EE90 | #ADFF2F | #708090 | #0D1117
   Mobile-first: max-width 430px design baseline.
   ============================================================ */

:root {
  --v790-bg: #0D1117;
  --v790-surface: #161B22;
  --v790-surface-2: #1F2630;
  --v790-primary: #ADFF2F;
  --v790-secondary: #90EE90;
  --v790-accent: #D3D3D3;
  --v790-muted: #708090;
  --v790-text: #E6EDF3;
  --v790-border: #2A313C;
  --v790-danger: #FF5C7C;
  --v790-gold: #FFD24A;
  --v790-radius: 14px;
  --v790-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --v790-header-h: 58px;
  --v790-bnav-h: 62px;
}

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

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

body {
  background: var(--v790-bg);
  color: var(--v790-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.v790-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

.v790-container {
  padding: 0 1.2rem;
  width: 100%;
}

/* ============== Header ============== */
.v790-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v790-header-h);
  background: linear-gradient(180deg, #11161D, #0D1117);
  border-bottom: 1px solid var(--v790-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.v790-header-inner {
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v790-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.v790-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.v790-logo-text {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--v790-primary);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v790-logo-text span { color: var(--v790-gold); }

.v790-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.v790-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
  min-height: 36px;
  line-height: 1;
}

.v790-btn:active { transform: scale(0.94); }

.v790-btn-register {
  background: linear-gradient(135deg, #ADFF2F, #90EE90);
  color: #0D1117;
  box-shadow: 0 4px 12px rgba(173, 255, 47, 0.35);
}

.v790-btn-login {
  background: transparent;
  color: var(--v790-accent);
  border: 1px solid var(--v790-border);
}

.v790-menu-btn {
  background: transparent;
  border: 1px solid var(--v790-border);
  color: var(--v790-text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
}

/* ============== Expandable Nav Menu ============== */
.v790-nav {
  position: fixed;
  top: var(--v790-header-h);
  left: 0; right: 0;
  background: var(--v790-surface);
  border-bottom: 1px solid var(--v790-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}

.v790-nav-active { max-height: 480px; box-shadow: var(--v790-shadow); }

.v790-nav-list {
  list-style: none;
  padding: 0.6rem 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}

.v790-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.4rem;
  color: var(--v790-text);
  border-bottom: 1px solid var(--v790-border);
  font-size: 1.35rem;
}

.v790-nav-list li:last-child a { border-bottom: none; }
.v790-nav-list li a i { color: var(--v790-primary); width: 22px; text-align: center; }

/* ============== Main / Sections ============== */
.v790-main {
  padding-top: calc(var(--v790-header-h) + 0.8rem);
  padding-bottom: 1.5rem;
}

.v790-section {
  margin: 1.4rem 0;
  padding: 1.2rem;
  background: var(--v790-surface);
  border-radius: var(--v790-radius);
  border: 1px solid var(--v790-border);
}

.v790-section-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--v790-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v790-section-title i { color: var(--v790-gold); }

.v790-lead {
  color: var(--v790-accent);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.v790-p { color: var(--v790-text); margin-bottom: 0.8rem; font-size: 1.4rem; }

.v790-h1 {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 1rem 0 0.6rem;
  color: #FFFFFF;
}

.v790-h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 1.2rem 0 0.6rem;
  color: var(--v790-primary);
}

.v790-h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
  color: var(--v790-secondary);
}

/* ============== Carousel ============== */
.v790-carousel {
  position: relative;
  border-radius: var(--v790-radius);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--v790-shadow);
}

.v790-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.v790-slide-active { display: block; }

.v790-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.v790-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.35rem;
}

.v790-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}

.v790-carousel-dots span {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}

/* ============== Game Grid ============== */
.v790-game-section { margin: 1.4rem 0; }

.v790-game-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.v790-game-section-head h2 {
  font-size: 1.5rem;
  color: var(--v790-primary);
  font-weight: 800;
}

.v790-game-section-head a {
  font-size: 1.2rem;
  color: var(--v790-gold);
  font-weight: 700;
}

.v790-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.v790-card {
  background: var(--v790-surface-2);
  border-radius: 12px;
  border: 1px solid var(--v790-border);
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
}

.v790-card:hover { border-color: var(--v790-primary); }
.v790-card:active { transform: scale(0.96); }

.v790-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
}

.v790-card-name {
  font-size: 1.1rem;
  color: var(--v790-text);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============== CTA / Promo Blocks ============== */
.v790-cta {
  background: linear-gradient(135deg, #1A2310, #0D1117);
  border: 1px solid var(--v790-primary);
  border-radius: var(--v790-radius);
  padding: 1.2rem;
  text-align: center;
  margin: 1.4rem 0;
}

.v790-cta h2 {
  font-size: 1.7rem;
  color: var(--v790-primary);
  margin-bottom: 0.5rem;
}

.v790-cta p { color: var(--v790-accent); margin-bottom: 0.8rem; }

.v790-cta .v790-btn { padding: 0.9rem 2rem; font-size: 1.4rem; }

.v790-promo-link {
  color: var(--v790-gold);
  font-weight: 700;
  text-decoration: underline;
}

/* ============== RTP / Stats ============== */
.v790-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.v790-rtp-item {
  background: var(--v790-surface-2);
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--v790-border);
}

.v790-rtp-name { font-size: 1.2rem; color: var(--v790-text); font-weight: 600; }
.v790-rtp-value { font-size: 1.4rem; color: var(--v790-primary); font-weight: 800; }
.v790-rtp-bar { height: 5px; background: #2A313C; border-radius: 3px; margin-top: 4px; overflow: hidden; }
.v790-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, #90EE90, #ADFF2F); }

/* ============== Feature / Step list ============== */
.v790-list { list-style: none; padding: 0; }
.v790-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--v790-border);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 1.35rem;
  color: var(--v790-text);
}
.v790-list li i { color: var(--v790-secondary); margin-top: 3px; }
.v790-list li:last-child { border-bottom: none; }

/* ============== Testimonials ============== */
.v790-testimonials { display: grid; gap: 0.7rem; }
.v790-testimonial {
  background: var(--v790-surface-2);
  border-radius: 10px;
  padding: 0.8rem;
  border-left: 3px solid var(--v790-primary);
}
.v790-testimonial p { font-size: 1.3rem; color: var(--v790-text); font-style: italic; }
.v790-testimonial .v790-author { font-size: 1.15rem; color: var(--v790-gold); margin-top: 4px; font-weight: 700; }

/* ============== Winners ============== */
.v790-winners { display: grid; gap: 0.4rem; }
.v790-winner {
  display: flex;
  justify-content: space-between;
  background: var(--v790-surface-2);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 1.25rem;
}
.v790-winner .v790-amount { color: var(--v790-primary); font-weight: 800; }

/* ============== Payment ============== */
.v790-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.6rem;
}
.v790-payments span {
  background: var(--v790-surface-2);
  border: 1px solid var(--v790-border);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 1.15rem;
  color: var(--v790-accent);
}

/* ============== FAQ ============== */
.v790-faq-item {
  background: var(--v790-surface-2);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--v790-border);
}
.v790-faq-item h3 { font-size: 1.3rem; color: var(--v790-secondary); margin-bottom: 4px; }
.v790-faq-item p { font-size: 1.25rem; color: var(--v790-text); }

/* ============== Footer ============== */
.v790-footer {
  margin-top: 1.5rem;
  padding: 1.4rem 1.2rem 2rem;
  background: #0A0E14;
  border-top: 1px solid var(--v790-border);
}

.v790-footer-brand {
  color: var(--v790-accent);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.v790-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.v790-footer-promos .v790-btn {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 0.6rem 0.8rem;
  font-size: 1.2rem;
}

.v790-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.8rem 0;
}

.v790-footer-links a {
  font-size: 1.2rem;
  color: var(--v790-secondary);
}

.v790-footer-copy {
  font-size: 1.1rem;
  color: var(--v790-muted);
  text-align: center;
  margin-top: 0.8rem;
}

/* ============== Mobile Bottom Nav ============== */
.v790-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v790-bnav-h);
  background: linear-gradient(180deg, #11161D, #0A0E14);
  border-top: 1px solid var(--v790-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.55);
}

.v790-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v790-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0;
}

.v790-bnav-btn i,
.v790-bnav-btn .material-icons-outlined,
.v790-bnav-btn .material-symbols-outlined {
  font-size: 22px;
}

.v790-bnav-btn:active { transform: scale(0.9); }

.v790-bnav-btn span.label { font-size: 1.05rem; font-weight: 600; }

.v790-bnav-btn.v790-bnav-promo { color: var(--v790-primary); }
.v790-bnav-btn.v790-bnav-gift { color: var(--v790-gold); }
.v790-bnav-current { color: var(--v790-primary) !important; }
.v790-bnav-current span.label { color: var(--v790-primary); }

/* Desktop: hide bottom nav, hide menu toggle, widen wrapper */
@media (min-width: 769px) {
  .v790-bnav { display: none; }
  .v790-wrapper { max-width: 768px; }
  .v790-header-inner { max-width: 768px; }
  .v790-nav-list { max-width: 768px; }
  .v790-grid { grid-template-columns: repeat(5, 1fr); }
  .v790-rtp-grid { grid-template-columns: repeat(4, 1fr); }
  body { padding-bottom: 0; }
}

/* Mobile: add bottom padding so fixed nav does not cover content */
@media (max-width: 768px) {
  .v790-main { padding-bottom: calc(var(--v790-bnav-h) + 1rem); }
  .v790-footer { padding-bottom: calc(var(--v790-bnav-h) + 1.4rem); }
}
