/* ===================================================
   78w.homes - layout stylesheet (prefix: sda3-)
   Mobile-first. Color palette:
   #000080 | #EEEEEE | #1E90FF | #00FA9A | #3A3A3A | #87CEFA
   =================================================== */

:root {
  --sda3-primary: #000080;
  --sda3-bg: #0a0a3a;
  --sda3-bg-soft: #14146b;
  --sda3-text: #EEEEEE;
  --sda3-blue: #1E90FF;
  --sda3-mint: #00FA9A;
  --sda3-sky: #87CEFA;
  --sda3-dark: #3A3A3A;
  --sda3-accent: #FFD24A;
  --sda3-radius: 14px;
  --sda3-shadow: 0 8px 24px rgba(0, 0, 128, 0.35);
}

/* root font sizing */
html { font-size: 62.5%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Inter", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #06062a 0%, #0a0a3a 60%, #06062a 100%);
  color: var(--sda3-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sda3-sky); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout containers ---------- */
.sda3-wrapper { max-width: 430px; margin: 0 auto; padding: 0 14px; }
.sda3-container { width: 100%; }
.sda3-section { padding: 22px 0; }
.sda3-section-alt { background: rgba(30, 144, 255, 0.06); border-radius: var(--sda3-radius); }

/* ---------- Header ---------- */
.sda3-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #000080, #1a1a8a);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.sda3-header-inner {
  max-width: 430px; margin: 0 auto; padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.sda3-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; }
.sda3-brand img { width: 28px; height: 28px; border-radius: 6px; }
.sda3-brand-name { font-size: 1.6rem; letter-spacing: 0.5px; }
.sda3-brand-tag { font-size: 1rem; color: var(--sda3-mint); font-weight: 600; }
.sda3-header-actions { display: flex; align-items: center; gap: 8px; }
.sda3-menu-btn {
  background: transparent; border: 0; color: #fff; font-size: 2rem;
  cursor: pointer; padding: 6px 8px; border-radius: 8px;
}
.sda3-menu-btn:hover { background: rgba(255,255,255,0.12); }

/* ---------- Buttons ---------- */
.sda3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 24px; font-weight: 700; font-size: 1.25rem;
  border: 0; cursor: pointer; min-height: 36px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.sda3-btn:active { transform: scale(0.96); }
.sda3-btn-primary {
  background: linear-gradient(135deg, #00FA9A, #1E90FF);
  color: #04122a; box-shadow: 0 4px 14px rgba(0, 250, 154, 0.35);
}
.sda3-btn-ghost {
  background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.25);
}
.sda3-btn-accent {
  background: linear-gradient(135deg, #FFD24A, #FF8A00); color: #2a1a00;
}
.sda3-btn-block { width: 100%; padding: 12px; font-size: 1.4rem; }

/* ---------- Mobile menu ---------- */
.sda3-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 9998;
}
.sda3-backdrop-show { opacity: 1; pointer-events: auto; }
.sda3-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100%;
  background: linear-gradient(180deg, #0c0c52, #06062a); z-index: 9999;
  transition: right 0.28s ease; padding: 70px 14px 30px; overflow-y: auto;
}
.sda3-menu-open { right: 0; }
.sda3-mobile-menu a {
  display: block; color: var(--sda3-text); padding: 11px 12px; border-radius: 10px;
  font-size: 1.35rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sda3-mobile-menu a:hover { background: rgba(30,144,255,0.18); color: var(--sda3-mint); }
.sda3-mobile-menu .sda3-menu-close {
  position: absolute; top: 12px; right: 12px; color: #fff; font-size: 1.8rem;
}

/* ---------- Spacer under fixed header ---------- */
.sda3-header-spacer { height: 52px; }

/* ---------- Hero / Carousel ---------- */
.sda3-carousel {
  position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--sda3-shadow);
  margin-top: 8px;
}
.sda3-slide {
  display: none; position: relative; cursor: pointer;
}
.sda3-slide-active { display: block; }
.sda3-slide img { width: 100%; height: 180px; object-fit: cover; }
.sda3-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,40,0.85));
  padding: 30px 14px 12px;
}
.sda3-slide-overlay h2 { margin: 0 0 4px; font-size: 1.6rem; color: #fff; }
.sda3-slide-overlay p { margin: 0; font-size: 1.15rem; color: var(--sda3-sky); }
.sda3-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.45);
  color: #fff; border: 0; width: 30px; height: 30px; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sda3-carousel-arrow.prev { left: 8px; }
.sda3-carousel-arrow.next { right: 8px; }
.sda3-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0; }
.sda3-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.sda3-dot-active { background: var(--sda3-mint); }

/* ---------- Section titles ---------- */
.sda3-section-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 1.6rem; color: #fff; font-weight: 800;
}
.sda3-section-title i { color: var(--sda3-mint); }
.sda3-section-title .sda3-more { margin-left: auto; font-size: 1.1rem; color: var(--sda3-sky); font-weight: 600; }

/* ---------- Filter chips ---------- */
.sda3-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.sda3-chip {
  white-space: nowrap; padding: 6px 12px; border-radius: 18px; font-size: 1.15rem;
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
}
.sda3-chip-active {
  background: linear-gradient(135deg, #00FA9A, #1E90FF); color: #04122a; border-color: transparent;
}

/* ---------- Game grid ---------- */
.sda3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sda3-card {
  background: rgba(30, 144, 255, 0.07); border-radius: 12px; padding: 8px; text-align: center;
  border: 1px solid rgba(135, 206, 250, 0.15); cursor: pointer; transition: transform 0.15s;
}
.sda3-card:active { transform: scale(0.95); }
.sda3-card img { width: 100%; height: 78px; object-fit: cover; border-radius: 8px; }
.sda3-card-name {
  margin-top: 6px; font-size: 1.05rem; color: var(--sda3-text); font-weight: 600;
  line-height: 1.25; min-height: 30px;
}
.sda3-card-tag {
  display: inline-block; margin-top: 4px; font-size: 0.95rem; padding: 2px 8px;
  border-radius: 8px; background: rgba(0, 250, 154, 0.15); color: var(--sda3-mint);
}

/* ---------- Feature grid ---------- */
.sda3-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sda3-feature {
  background: rgba(20, 20, 107, 0.6); padding: 12px; border-radius: 12px;
  border-left: 3px solid var(--sda3-mint);
}
.sda3-feature i { font-size: 1.8rem; color: var(--sda3-sky); }
.sda3-feature h3 { margin: 6px 0 4px; font-size: 1.25rem; color: #fff; }
.sda3-feature p { margin: 0; font-size: 1.1rem; color: #cfd8e6; }

/* ---------- Info / article ---------- */
.sda3-prose { color: #d6dbe6; font-size: 1.25rem; line-height: 1.7; }
.sda3-prose h2, .sda3-prose h3 { color: #fff; }
.sda3-prose h2 { font-size: 1.5rem; margin: 18px 0 8px; }
.sda3-prose h3 { font-size: 1.3rem; margin: 14px 0 6px; }
.sda3-prose p { margin: 0 0 10px; }
.sda3-prose a { color: var(--sda3-mint); font-weight: 700; }
.sda3-prose ul { padding-left: 18px; margin: 6px 0 12px; }
.sda3-prose li { margin-bottom: 4px; }

/* ---------- FAQ accordion ---------- */
.sda3-faq-item {
  background: rgba(20, 20, 107, 0.5); border-radius: 10px; margin-bottom: 8px;
  overflow: hidden; border: 1px solid rgba(135, 206, 250, 0.12);
}
.sda3-faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; color: #fff;
  padding: 12px 14px; font-size: 1.25rem; font-weight: 700; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 8px;
}
.sda3-faq-q .sda3-faq-icon { color: var(--sda3-mint); transition: transform 0.2s; }
.sda3-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 14px;
  color: #cfd8e6; font-size: 1.15rem;
}
.sda3-faq-open .sda3-faq-a { max-height: 240px; padding: 0 14px 12px; }
.sda3-faq-open .sda3-faq-icon { transform: rotate(45deg); }

/* ---------- Testimonials ---------- */
.sda3-testimonial {
  background: rgba(20, 20, 107, 0.55); border-radius: 12px; padding: 12px; margin-bottom: 10px;
  border-left: 3px solid var(--sda3-blue);
}
.sda3-testimonial-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sda3-testimonial-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #1E90FF, #00FA9A); display: flex;
  align-items: center; justify-content: center; color: #04122a; font-weight: 800; font-size: 1.2rem;
}
.sda3-testimonial-name { font-size: 1.2rem; color: #fff; font-weight: 700; }
.sda3-testimonial-stars { color: #FFD24A; font-size: 1rem; }
.sda3-testimonial p { margin: 0; font-size: 1.15rem; color: #d6dbe6; }

/* ---------- Winners / Payment ---------- */
.sda3-winners { background: rgba(0, 250, 154, 0.06); border-radius: 12px; padding: 10px; }
.sda3-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 4px; border-bottom: 1px dashed rgba(255,255,255,0.08); font-size: 1.15rem;
}
.sda3-winner-row:last-child { border-bottom: 0; }
.sda3-winner-name { color: #fff; font-weight: 600; }
.sda3-winner-amount { color: var(--sda3-mint); font-weight: 800; }

.sda3-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sda3-pay-item {
  background: rgba(255,255,255,0.06); border-radius: 10px; padding: 10px 4px;
  text-align: center; font-size: 1rem; color: #cfd8e6;
}
.sda3-pay-item i { font-size: 1.6rem; color: var(--sda3-sky); display: block; margin-bottom: 4px; }

/* ---------- CTA strip ---------- */
.sda3-cta {
  background: linear-gradient(135deg, #1E90FF, #00FA9A);
  border-radius: 16px; padding: 18px 14px; text-align: center; color: #04122a;
  box-shadow: 0 8px 20px rgba(0, 250, 154, 0.25);
}
.sda3-cta h3 { margin: 0 0 6px; font-size: 1.5rem; color: #04122a; }
.sda3-cta p { margin: 0 0 12px; font-size: 1.2rem; color: #0a2050; }

/* ---------- Footer ---------- */
.sda3-footer {
  background: linear-gradient(180deg, #06062a, #03031a); padding: 24px 0 110px;
  margin-top: 20px; border-top: 2px solid rgba(30,144,255,0.25);
}
.sda3-footer p { font-size: 1.15rem; color: #aeb9cc; margin: 0 0 10px; }
.sda3-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0;
}
.sda3-footer-links a {
  font-size: 1.1rem; padding: 6px 10px; border-radius: 18px;
  background: rgba(255,255,255,0.06); color: var(--sda3-sky);
}
.sda3-footer-links a:hover { background: rgba(0,250,154,0.15); color: var(--sda3-mint); }
.sda3-footer-bottom {
  margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 1.05rem; color: #8b96aa; text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.sda3-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #06062a, #14146b, #06062a);
  border-top: 1px solid rgba(0, 250, 154, 0.3);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; padding: 4px 0; max-width: 430px; margin: 0 auto;
}
.sda3-navbtn {
  flex: 1; min-width: 60px; min-height: 54px; background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #cfd8e6; font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: color 0.2s, transform 0.15s; position: relative;
}
.sda3-navbtn i, .sda3-navbtn .material-icons-outlined,
.sda3-navbtn .ion { font-size: 22px; }
.sda3-navbtn:active { transform: scale(0.92); }
.sda3-navbtn-active { color: var(--sda3-mint); }
.sda3-navbtn-promo { color: var(--sda3-accent); }
.sda3-navbtn-promo::after {
  content: ""; position: absolute; top: 4px; right: 22px; width: 8px; height: 8px;
  background: #ff5a5a; border-radius: 50%;
}

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .sda3-bottom-nav { display: none; }
  .sda3-footer { padding-bottom: 30px; }
  .sda3-wrapper { max-width: 760px; }
  .sda3-grid { grid-template-columns: repeat(6, 1fr); }
  .sda3-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .sda3-pay-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Mobile bottom padding ---------- */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .sda3-slide img { height: 160px; }
}
