/* ============================================================
   AH7.homes — Base Stylesheet (prefix: sf0e-)
   Mobile-first Philippine online casino / Texas Hold'em arena
   Palette: #000080 #F0F0F0 #0000FF #2E4057 #48D1CC #00B8D4
   ============================================================ */

:root {
  --sf0e-navy: #000080;
  --sf0e-blue: #0000FF;
  --sf0e-slate: #2E4057;
  --sf0e-mint: #48D1CC;
  --sf0e-cyan: #00B8D4;
  --sf0e-light: #F0F0F0;
  --sf0e-dark: #050b25;
  --sf0e-darker: #02050f;
  --sf0e-gold: #ffd76b;
  --sf0e-red: #ff4d6d;
  --sf0e-green: #34e89e;
  --sf0e-muted: #8aa0c2;
  --sf0e-border: rgba(72, 209, 204, 0.18);
  --sf0e-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --sf0e-radius: 14px;
  --sf0e-max: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #0b1657 0%, var(--sf0e-darker) 55%, #000 100%);
  color: var(--sf0e-light);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 60px;
}

a { color: var(--sf0e-mint); text-decoration: none; }
a:hover { color: var(--sf0e-cyan); }
img { max-width: 100%; display: block; }

/* ----------------------------- Layout ----------------------------- */
.sf0e-wrap {
  width: 100%;
  max-width: var(--sf0e-max);
  margin: 0 auto;
  padding: 0 14px;
}

.sf0e-section {
  padding: 36px 0 8px;
}

.sf0e-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sf0e-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf0e-section-title i { color: var(--sf0e-cyan); }

.sf0e-section-more {
  font-size: 1.25rem;
  color: var(--sf0e-mint);
  font-weight: 600;
}

/* ----------------------------- Header ----------------------------- */
.sf0e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(5, 11, 37, 0.95) 0%, rgba(5, 11, 37, 0.85) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sf0e-border);
}

.sf0e-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.sf0e-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: 1px;
  color: #fff;
}

.sf0e-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sf0e-blue), var(--sf0e-cyan));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 4px 14px rgba(0, 184, 212, 0.5);
}

.sf0e-logo-text { background: linear-gradient(90deg, var(--sf0e-mint), var(--sf0e-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

.sf0e-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(72, 209, 204, 0.1);
  border: 1px solid var(--sf0e-border);
  color: var(--sf0e-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.7rem;
  transition: all 0.25s;
}
.sf0e-icon-btn:hover { background: var(--sf0e-slate); color: var(--sf0e-cyan); }

.sf0e-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.sf0e-btn:active { transform: scale(0.96); }

.sf0e-btn-login {
  background: transparent;
  color: var(--sf0e-light);
  border: 1.5px solid var(--sf0e-mint);
}
.sf0e-btn-login:hover { background: rgba(72, 209, 204, 0.12); }

.sf0e-btn-register {
  background: linear-gradient(90deg, var(--sf0e-blue), var(--sf0e-cyan));
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 184, 212, 0.45);
}
.sf0e-btn-register:hover { box-shadow: 0 8px 22px rgba(0, 184, 212, 0.65); }

.sf0e-btn-promo {
  background: linear-gradient(90deg, #ff4d6d, var(--sf0e-gold));
  color: #1a0d00;
  box-shadow: 0 6px 18px rgba(255, 77, 109, 0.4);
}

/* ----------------------------- Marquee ----------------------------- */
.sf0e-marquee {
  background: linear-gradient(90deg, rgba(0, 0, 128, 0.6), rgba(46, 64, 87, 0.6));
  border-bottom: 1px solid var(--sf0e-border);
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  font-size: 1.25rem;
  color: var(--sf0e-mint);
}
.sf0e-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: sf0eScroll 22s linear infinite;
  font-weight: 600;
}
@keyframes sf0eScroll { to { transform: translateX(-100%); } }

/* ----------------------------- Hero ----------------------------- */
.sf0e-hero {
  position: relative;
  margin-top: 12px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sf0e-shadow);
}
.sf0e-hero-slide {
  display: none;
  position: relative;
  min-height: 210px;
}
.sf0e-hero-slide.sf0e-active { display: block; animation: sf0eFade 0.6s ease; }
@keyframes sf0eFade { from { opacity: 0.4; } to { opacity: 1; } }
.sf0e-hero-slide img { width: 100%; height: 210px; object-fit: cover; }
.sf0e-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,5,15,0.15) 30%, rgba(2,5,15,0.88) 100%);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sf0e-hero-badge {
  align-self: flex-start;
  background: var(--sf0e-red);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.sf0e-hero-title { font-size: 2.3rem; font-weight: 900; color: #fff; line-height: 1.15; }
.sf0e-hero-desc { font-size: 1.25rem; color: var(--sf0e-light); margin-top: 4px; opacity: 0.92; }
.sf0e-hero-cta { margin-top: 10px; }
.sf0e-hero-dots {
  position: absolute;
  bottom: 8px; right: 12px;
  display: flex; gap: 5px;
}
.sf0e-hero-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.sf0e-hero-dots span.sf0e-active { background: var(--sf0e-cyan); width: 18px; border-radius: 5px; }

/* ----------------------------- Quick Stats ----------------------------- */
.sf0e-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 0;
}
.sf0e-stat {
  background: linear-gradient(180deg, rgba(46,64,87,0.55), rgba(5,11,37,0.45));
  border: 1px solid var(--sf0e-border);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
}
.sf0e-stat-num {
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--sf0e-mint), var(--sf0e-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sf0e-stat-label { font-size: 1.05rem; color: var(--sf0e-muted); margin-top: 2px; }

/* ----------------------------- Category Tabs ----------------------------- */
.sf0e-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.sf0e-cats::-webkit-scrollbar { display: none; }
.sf0e-cat {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(72, 209, 204, 0.08);
  border: 1px solid var(--sf0e-border);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sf0e-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sf0e-cat.sf0e-active {
  background: linear-gradient(90deg, var(--sf0e-blue), var(--sf0e-cyan));
  color: #fff;
  border-color: transparent;
}
.sf0e-cat i { font-size: 1.4rem; }

/* ----------------------------- Game Grid ----------------------------- */
.sf0e-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sf0e-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sf0e-slate);
  border: 1px solid var(--sf0e-border);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.sf0e-card:hover, .sf0e-card:active {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 184, 212, 0.3);
}
.sf0e-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a1330;
}
.sf0e-card-name {
  padding: 6px 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--sf0e-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf0e-card-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--sf0e-red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.sf0e-card-badge.sf0e-hot { background: linear-gradient(90deg, #ff4d6d, var(--sf0e-gold)); }
.sf0e-card-badge.sf0e-new { background: var(--sf0e-green); color: #021; }
.sf0e-card-play {
  position: absolute; inset: 0;
  background: rgba(2,5,15,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.sf0e-card:hover .sf0e-card-play, .sf0e-card:active .sf0e-card-play { opacity: 1; }
.sf0e-card-play span {
  background: linear-gradient(90deg, var(--sf0e-blue), var(--sf0e-cyan));
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* ----------------------------- Promo Banner ----------------------------- */
.sf0e-promo {
  background: linear-gradient(120deg, #000080 0%, #2E4057 60%, #00B8D4 130%);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sf0e-border);
  margin: 14px 0 0;
}
.sf0e-promo::before {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,215,107,0.4), transparent 70%);
}
.sf0e-promo-icon {
  font-size: 2.6rem; color: var(--sf0e-gold);
}
.sf0e-promo-text { flex: 1; }
.sf0e-promo-text h3 { font-size: 1.55rem; color: #fff; }
.sf0e-promo-text p { font-size: 1.15rem; color: var(--sf0e-light); opacity: 0.9; margin-top: 2px; }

/* ----------------------------- Features ----------------------------- */
.sf0e-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sf0e-feature {
  background: linear-gradient(160deg, rgba(46,64,87,0.55), rgba(5,11,37,0.5));
  border: 1px solid var(--sf0e-border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.sf0e-feature-icon {
  width: 46px; height: 46px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sf0e-blue), var(--sf0e-cyan));
  display: grid; place-items: center;
  font-size: 2rem; color: #fff;
}
.sf0e-feature h4 { font-size: 1.35rem; color: #fff; }
.sf0e-feature p { font-size: 1.15rem; color: var(--sf0e-muted); margin-top: 4px; }

/* ----------------------------- SEO Content ----------------------------- */
.sf0e-seo {
  background: rgba(5, 11, 37, 0.55);
  border: 1px solid var(--sf0e-border);
  border-radius: 14px;
  padding: 16px;
  line-height: 1.7;
  font-size: 1.35rem;
  color: #cfd9ea;
}
.sf0e-seo h2 {
  font-size: 1.9rem;
  color: var(--sf0e-mint);
  margin: 14px 0 6px;
  font-weight: 800;
}
.sf0e-seo h2:first-child { margin-top: 0; }
.sf0e-seo h3 { font-size: 1.55rem; color: var(--sf0e-cyan); margin: 10px 0 4px; font-weight: 700; }
.sf0e-seo p { margin-bottom: 8px; }
.sf0e-seo ul { padding-left: 18px; margin: 6px 0 10px; }
.sf0e-seo li { margin-bottom: 4px; }
.sf0e-seo strong { color: var(--sf0e-gold); }
.sf0e-seo a { color: var(--sf0e-cyan); text-decoration: underline; text-underline-offset: 2px; }

/* ----------------------------- FAQ ----------------------------- */
.sf0e-faq-item {
  background: rgba(5, 11, 37, 0.55);
  border: 1px solid var(--sf0e-border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.sf0e-faq-q {
  padding: 12px 14px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sf0e-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.sf0e-faq-q i { color: var(--sf0e-cyan); transition: transform 0.25s; }
.sf0e-faq-item.sf0e-open .sf0e-faq-q i { transform: rotate(180deg); }
.sf0e-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  color: #b8c5dd;
  font-size: 1.25rem;
}
.sf0e-faq-item.sf0e-open .sf0e-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ----------------------------- Footer ----------------------------- */
.sf0e-footer {
  margin-top: 30px;
  background: linear-gradient(180deg, rgba(5,11,37,0.85), #02050f);
  border-top: 1px solid var(--sf0e-border);
  padding: 22px 0 30px;
}
.sf0e-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.sf0e-footer-col h5 {
  font-size: 1.3rem;
  color: var(--sf0e-mint);
  margin-bottom: 8px;
  font-weight: 800;
}
.sf0e-footer-col a {
  display: block;
  font-size: 1.2rem;
  color: #9fb1cd;
  padding: 3px 0;
}
.sf0e-footer-col a:hover { color: var(--sf0e-cyan); }
.sf0e-footer-bottom {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sf0e-muted);
  border-top: 1px solid var(--sf0e-border);
  padding-top: 12px;
}
.sf0e-footer-warn {
  font-size: 1.05rem;
  color: #8294b0;
  margin-top: 8px;
  line-height: 1.5;
}

/* ----------------------------- Bottom Nav ----------------------------- */
.sf0e-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, rgba(5,11,37,0.98), #02050f);
  border-top: 1px solid var(--sf0e-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sf0e-bottomnav a, .sf0e-bottomnav button {
  flex: 1;
  background: none; border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--sf0e-muted);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.sf0e-bottomnav a i, .sf0e-bottomnav button i { font-size: 2.1rem; }
.sf0e-bottomnav a.sf0e-active, .sf0e-bottomnav button.sf0e-active { color: var(--sf0e-cyan); }
.sf0e-bottomnav a.sf0e-active::before, .sf0e-bottomnav button.sf0e-active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--sf0e-blue), var(--sf0e-cyan));
}
.sf0e-bottomnav .sf0e-nav-promo {
  color: var(--sf0e-gold);
}

/* Center floating action */
.sf0e-bottomnav .sf0e-nav-center i {
  position: relative;
  z-index: 2;
}
.sf0e-bottomnav .sf0e-nav-center {
  position: relative;
}
.sf0e-bottomnav .sf0e-nav-center::after {
  content: "";
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sf0e-blue), var(--sf0e-cyan));
  box-shadow: 0 6px 16px rgba(0,184,212,0.55);
  z-index: 1;
}
.sf0e-bottomnav .sf0e-nav-center i {
  color: #fff; font-size: 2.2rem;
}
.sf0e-bottomnav .sf0e-nav-center span { position: relative; z-index: 2; margin-top: 18px; }

/* ----------------------------- Mobile Menu Drawer ----------------------------- */
.sf0e-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.sf0e-overlay.sf0e-open { opacity: 1; pointer-events: auto; }

.sf0e-drawer {
  position: fixed;
  top: 0; right: -82%;
  width: 78%; max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #050b25, #02050f);
  z-index: 9999;
  padding: 18px 16px;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 1px solid var(--sf0e-border);
}
.sf0e-drawer.sf0e-open { right: 0; }
.sf0e-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--sf0e-border); padding-bottom: 12px;
}
.sf0e-drawer-head h4 { font-size: 1.7rem; color: var(--sf0e-mint); }
.sf0e-drawer-close {
  background: rgba(255,77,109,0.15);
  border: 1px solid rgba(255,77,109,0.4);
  color: var(--sf0e-red);
  width: 34px; height: 34px; border-radius: 8px;
  cursor: pointer; font-size: 1.6rem;
}
.sf0e-drawer-section { margin-top: 14px; }
.sf0e-drawer-section h5 {
  font-size: 1.2rem; color: var(--sf0e-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.sf0e-drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px;
  font-size: 1.35rem; color: var(--sf0e-light);
  border-radius: 8px;
}
.sf0e-drawer-link:hover { background: rgba(72,209,204,0.1); color: var(--sf0e-cyan); }
.sf0e-drawer-link i { color: var(--sf0e-cyan); width: 22px; text-align: center; }
.sf0e-drawer-cta {
  margin-top: 16px;
  display: grid; gap: 8px;
}
.sf0e-drawer-cta .sf0e-btn { justify-content: center; padding: 12px; }

/* ----------------------------- Back to top ----------------------------- */
.sf0e-totop {
  position: fixed;
  bottom: 76px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sf0e-blue), var(--sf0e-cyan));
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.sf0e-totop.sf0e-show { opacity: 1; pointer-events: auto; }
.sf0e-totop:active { transform: scale(0.92); }

/* ----------------------------- Responsive ----------------------------- */
@media (min-width: 769px) {
  .sf0e-bottomnav { display: none; }
  .sf0e-wrap { max-width: 720px; }
  .sf0e-games { grid-template-columns: repeat(4, 1fr); }
  .sf0e-features { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 360px) {
  .sf0e-games { grid-template-columns: repeat(2, 1fr); }
  .sf0e-hero-title { font-size: 2rem; }
}
