/* ==========================================================================
   NuStar PH Login - Base Stylesheet (mobile-first, 320-430px canvas)
   All custom classes use the gb9d- prefix for namespace isolation.
   Palette: #0F0F23 base / #8FBC8F / #AFEEEE / #00CED1 / #C0C0C0 / #48D1CC
   ========================================================================== */

:root {
  --gb9d-bg: #0F0F23;
  --gb9d-bg-2: #14142e;
  --gb9d-bg-3: #1c1c3e;
  --gb9d-card: #1a1a38;
  --gb9d-text: #AFEEEE;
  --gb9d-text-soft: #C0C0C0;
  --gb9d-text-dim: #8a8ab0;
  --gb9d-accent: #00CED1;
  --gb9d-accent-2: #48D1CC;
  --gb9d-sage: #8FBC8F;
  --gb9d-gold: #ffd479;
  --gb9d-border: rgba(72, 209, 204, 0.22);
  --gb9d-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --gb9d-radius: 12px;
  --gb9d-radius-lg: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--gb9d-bg);
  color: var(--gb9d-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0,206,209,0.18), transparent 60%),
    radial-gradient(800px 500px at 110% 10%, rgba(143,188,143,0.12), transparent 60%),
    var(--gb9d-bg);
  /* Reserve space for the fixed bottom navigation */
  padding-bottom: 76px;
}

a { color: var(--gb9d-accent); text-decoration: none; }
a:hover, a:focus { color: var(--gb9d-text); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: #ffffff; margin: 0 0 8px; line-height: 1.25; font-weight: 700; }
h1 { font-size: 22px; }
h2 { font-size: 19px; }
h3 { font-size: 17px; }
p { margin: 0 0 10px; color: var(--gb9d-text-soft); }

.gb9d-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ===================== Header ===================== */
.gb9d-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(15,15,35,0.96), rgba(15,15,35,0.86));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gb9d-border);
}

.gb9d-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  max-width: 480px;
  margin: 0 auto;
}

.gb9d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gb9d-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gb9d-border);
  flex: 0 0 auto;
}

.gb9d-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.gb9d-brand-text strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gb9d-brand-text span {
  color: var(--gb9d-accent);
  font-size: 11px;
}

.gb9d-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gb9d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-height: 34px;
  text-align: center;
}

.gb9d-btn:active { transform: scale(0.96); }

.gb9d-btn-login {
  background: transparent;
  color: var(--gb9d-text);
  border-color: var(--gb9d-border);
}

.gb9d-btn-login:hover, .gb9d-btn-login:focus {
  background: rgba(72,209,204,0.10);
  color: #fff;
}

.gb9d-btn-register {
  background: linear-gradient(135deg, #00CED1, #48D1CC 60%, #8FBC8F);
  color: #042021;
  box-shadow: 0 4px 14px rgba(0,206,209,0.35);
}

.gb9d-btn-register:hover, .gb9d-btn-register:focus {
  box-shadow: 0 6px 20px rgba(0,206,209,0.55);
  color: #042021;
}

.gb9d-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(72,209,204,0.10);
  border: 1px solid var(--gb9d-border);
  color: var(--gb9d-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gb9d-icon-btn svg { width: 20px; height: 20px; }

.gb9d-menu-toggle .gb9d-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin: 3px auto;
  transition: transform 0.2s, opacity 0.2s;
}
.gb9d-menu-toggle.gb9d-active .gb9d-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.gb9d-menu-toggle.gb9d-active .gb9d-bar:nth-child(2) { opacity: 0; }
.gb9d-menu-toggle.gb9d-active .gb9d-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ===================== Mobile slide-down menu ===================== */
.gb9d-mobile-menu {
  display: none;
  position: sticky;
  top: 56px;
  z-index: 55;
  background: var(--gb9d-bg-2);
  border-bottom: 1px solid var(--gb9d-border);
  padding: 8px 12px 12px;
  max-width: 480px;
  margin: 0 auto;
}
.gb9d-mobile-menu.gb9d-open { display: block; }

.gb9d-mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gb9d-text);
  font-size: 14px;
  border-bottom: 1px solid rgba(72,209,204,0.08);
}
.gb9d-mobile-menu a:last-child { border-bottom: none; }
.gb9d-mobile-menu a:hover, .gb9d-mobile-menu a:focus {
  background: rgba(72,209,204,0.10);
  color: #fff;
}

.gb9d-menu-cta {
  display: flex !important;
  gap: 8px;
  padding: 10px 12px !important;
  border-bottom: none !important;
}
.gb9d-menu-cta .gb9d-btn { flex: 1; }

/* ===================== Hero / carousel ===================== */
.gb9d-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--gb9d-radius-lg);
  margin: 12px 0;
  border: 1px solid var(--gb9d-border);
  background: var(--gb9d-bg-2);
}

.gb9d-hero-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gb9d-hero-slide {
  min-width: 100%;
  position: relative;
}

.gb9d-hero-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: brightness(0.78);
}

.gb9d-hero-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #fff;
}
.gb9d-hero-caption h2 { font-size: 20px; margin-bottom: 4px; }
.gb9d-hero-caption p { color: var(--gb9d-text); font-size: 12px; margin: 0 0 8px; }

.gb9d-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.gb9d-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}
.gb9d-hero-dot.gb9d-dot-active { background: var(--gb9d-accent); }

/* ===================== Section title ===================== */
.gb9d-section {
  margin: 18px 0;
}
.gb9d-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.gb9d-section-head h2 {
  font-size: 17px;
  position: relative;
  padding-left: 12px;
}
.gb9d-section-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #00CED1, #8FBC8F);
}
.gb9d-section-head a { font-size: 12px; color: var(--gb9d-accent); }

/* ===================== Category filter ===================== */
.gb9d-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gb9d-filter::-webkit-scrollbar { display: none; }

.gb9d-filter-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--gb9d-bg-2);
  color: var(--gb9d-text-soft);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--gb9d-border);
  cursor: pointer;
  white-space: nowrap;
}
.gb9d-filter-tab.gb9d-tab-active {
  background: linear-gradient(135deg, #00CED1, #48D1CC);
  color: #042021;
  border-color: transparent;
}

/* ===================== Game grid ===================== */
.gb9d-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 375px) {
  .gb9d-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
@media (min-width: 414px) {
  .gb9d-grid { grid-template-columns: repeat(5, 1fr); }
}

.gb9d-game-group { margin-bottom: 16px; }
.gb9d-game-group h3 {
  font-size: 14px;
  margin: 8px 0;
  color: var(--gb9d-accent-2);
  letter-spacing: 0.4px;
}

.gb9d-card {
  position: relative;
  border-radius: var(--gb9d-radius);
  overflow: hidden;
  background: var(--gb9d-card);
  border: 1px solid var(--gb9d-border);
  transition: transform 0.15s, box-shadow 0.2s;
}
.gb9d-card:active { transform: scale(0.97); }
.gb9d-card:hover { box-shadow: var(--gb9d-shadow); }

.gb9d-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0b0b1c;
}
.gb9d-card-name {
  font-size: 10.5px;
  color: var(--gb9d-text-soft);
  padding: 5px 6px 7px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.gb9d-card-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(0,206,209,0.85);
  color: #042021;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ===================== Info / promo cards ===================== */
.gb9d-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gb9d-promo-card {
  border-radius: var(--gb9d-radius);
  padding: 12px;
  background: linear-gradient(135deg, rgba(0,206,209,0.10), rgba(143,188,143,0.10));
  border: 1px solid var(--gb9d-border);
}
.gb9d-promo-card h3 { font-size: 14px; color: #fff; margin-bottom: 4px; }
.gb9d-promo-card p { font-size: 12px; margin-bottom: 8px; color: var(--gb9d-text-soft); }
.gb9d-promo-card .gb9d-btn { width: 100%; padding: 7px 10px; font-size: 12px; }

/* ===================== Feature blocks ===================== */
.gb9d-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gb9d-feature {
  background: var(--gb9d-bg-2);
  border: 1px solid var(--gb9d-border);
  border-radius: var(--gb9d-radius);
  padding: 12px;
  text-align: center;
}
.gb9d-feature-ico {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(72,209,204,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gb9d-accent);
}
.gb9d-feature-ico svg { width: 22px; height: 22px; }
.gb9d-feature h3 { font-size: 13px; color: #fff; margin-bottom: 4px; }
.gb9d-feature p { font-size: 11.5px; margin: 0; color: var(--gb9d-text-soft); }

/* ===================== SEO content prose ===================== */
.gb9d-prose {
  background: var(--gb9d-bg-2);
  border: 1px solid var(--gb9d-border);
  border-radius: var(--gb9d-radius-lg);
  padding: 16px;
  margin: 14px 0;
}
.gb9d-prose h2 { font-size: 17px; margin-bottom: 8px; }
.gb9d-prose h3 { font-size: 14px; margin: 12px 0 4px; color: var(--gb9d-accent-2); }
.gb9d-prose p { font-size: 13.5px; line-height: 1.65; color: var(--gb9d-text-soft); }
.gb9d-prose ul { padding-left: 18px; margin: 6px 0 10px; }
.gb9d-prose li { color: var(--gb9d-text-soft); margin-bottom: 4px; font-size: 13.5px; }
.gb9d-prose a { color: var(--gb9d-accent); }

/* ===================== Accordion ===================== */
.gb9d-acc-item {
  background: var(--gb9d-bg-2);
  border: 1px solid var(--gb9d-border);
  border-radius: var(--gb9d-radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.gb9d-acc-head {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.gb9d-acc-head::after {
  content: '+';
  color: var(--gb9d-accent);
  font-size: 18px;
  font-weight: 700;
}
.gb9d-acc-item.gb9d-acc-open .gb9d-acc-head::after { content: '\2212'; }
.gb9d-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 14px;
}
.gb9d-acc-item.gb9d-acc-open .gb9d-acc-body {
  max-height: 600px;
  padding: 0 14px 12px;
}
.gb9d-acc-body p { font-size: 13px; margin: 0; color: var(--gb9d-text-soft); }

/* ===================== Footer ===================== */
.gb9d-footer {
  margin-top: 22px;
  padding: 18px 12px 24px;
  background: var(--gb9d-bg-2);
  border-top: 1px solid var(--gb9d-border);
}
.gb9d-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gb9d-footer h4 {
  color: #fff;
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}
.gb9d-footer ul { list-style: none; padding: 0; margin: 0; }
.gb9d-footer li { margin-bottom: 5px; }
.gb9d-footer a { color: var(--gb9d-text-soft); font-size: 12px; }
.gb9d-footer a:hover { color: var(--gb9d-accent); }
.gb9d-footer-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(72,209,204,0.10);
  text-align: center;
  color: var(--gb9d-text-dim);
  font-size: 11px;
  line-height: 1.5;
}
.gb9d-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.gb9d-footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.gb9d-footer-brand strong { color: #fff; font-size: 14px; }

.gb9d-disclaimer {
  margin-top: 10px;
  font-size: 11px;
  color: var(--gb9d-text-dim);
  background: rgba(255,255,255,0.03);
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed rgba(72,209,204,0.18);
}

/* ===================== Mobile bottom nav ===================== */
.gb9d-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: linear-gradient(180deg, rgba(20,20,46,0.98), rgba(15,15,35,0.98));
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--gb9d-border);
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  height: 64px;
}

.gb9d-nav-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--gb9d-text-dim);
  font-size: 10px;
  cursor: pointer;
  padding: 6px 2px;
  transition: color 0.18s, transform 0.12s;
  text-decoration: none;
}
.gb9d-nav-btn:active { transform: scale(0.93); }
.gb9d-nav-btn svg { width: 22px; height: 22px; }
.gb9d-nav-btn:hover { color: var(--gb9d-text); }
.gb9d-nav-btn.gb9d-nav-active { color: var(--gb9d-accent); }
.gb9d-nav-btn.gb9d-nav-active svg { filter: drop-shadow(0 0 6px rgba(0,206,209,0.55)); }
.gb9d-nav-label { font-size: 9.5px; line-height: 1; }

.gb9d-nav-promo {
  color: var(--gb9d-gold);
}
.gb9d-nav-promo.gb9d-nav-active { color: var(--gb9d-gold); }

.gb9d-nav-fab {
  position: relative;
}
.gb9d-nav-fab svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00CED1, #8FBC8F);
  color: #042021;
  box-shadow: 0 4px 12px rgba(0,206,209,0.45);
  margin-top: -10px;
}

/* ===================== Misc ===================== */
.gb9d-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gb9d-accent);
  margin-bottom: 4px;
}

.gb9d-cta-band {
  background: linear-gradient(135deg, rgba(0,206,209,0.16), rgba(143,188,143,0.10));
  border: 1px solid var(--gb9d-border);
  border-radius: var(--gb9d-radius-lg);
  padding: 16px;
  text-align: center;
  margin: 16px 0;
}
.gb9d-cta-band h2 { font-size: 18px; margin-bottom: 6px; }
.gb9d-cta-band p { font-size: 13px; margin: 0 auto 12px; max-width: 320px; }
.gb9d-cta-band .gb9d-btn { padding: 11px 22px; font-size: 14px; }

.gb9d-breadcrumbs {
  font-size: 11px;
  color: var(--gb9d-text-dim);
  padding: 8px 0;
}
.gb9d-breadcrumbs span { color: var(--gb9d-accent); }

.gb9d-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Keep the mobile canvas centered on wider screens */
@media (min-width: 481px) {
  body { background-attachment: fixed; }
}

/* Editorial help layouts: compact field notes and sequential decision cards. */
.gb9d-help-intro { border-left: 3px solid var(--gb9d-accent); padding: 12px 14px; background: rgba(0,206,209,.08); border-radius: 4px 14px 14px 4px; margin: 12px 0; }
.gb9d-help-intro p:last-child, .gb9d-prose p:last-child { margin-bottom: 0; }
.gb9d-checklist { display: grid; gap: 8px; margin: 12px 0; }
.gb9d-check { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 11px; border: 1px solid var(--gb9d-border); border-radius: 10px; background: var(--gb9d-bg-2); }
.gb9d-check strong { color: #fff; font-size: 13px; }
.gb9d-check span { color: var(--gb9d-text-soft); font-size: 12.5px; }
.gb9d-check-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--gb9d-sage); color: #102010; font-weight: 800; }
.gb9d-scenario { border-top: 1px solid var(--gb9d-border); padding: 14px 0; }
.gb9d-scenario h3 { color: #fff; margin-bottom: 5px; }
.gb9d-callout { padding: 13px; border-radius: 14px; border: 1px solid rgba(175,238,238,.36); background: linear-gradient(120deg, rgba(72,209,204,.12), rgba(143,188,143,.07)); margin: 12px 0; }
.gb9d-callout strong { color: #fff; }
.gb9d-steps { counter-reset: gb9d-step; display: grid; gap: 10px; margin: 12px 0; }
.gb9d-step { counter-increment: gb9d-step; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--gb9d-border); border-radius: 12px; background: var(--gb9d-bg-2); }
.gb9d-step::before { content: counter(gb9d-step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gb9d-accent); color: #061f20; font-weight: 800; }
.gb9d-step h3 { font-size: 14px; margin-bottom: 3px; }
.gb9d-step p { font-size: 12.8px; margin: 0; }
.gb9d-facts { display: grid; gap: 7px; padding: 0; list-style: none; }
.gb9d-facts li { padding: 10px 12px; border-bottom: 1px solid rgba(72,209,204,.16); color: var(--gb9d-text-soft); font-size: 13px; }
.gb9d-facts li strong { color: var(--gb9d-accent-2); }
.gb9d-inline-promos { display: flex; gap: 8px; overflow-x: auto; padding: 3px 0 10px; scrollbar-width: none; }
.gb9d-inline-promos::-webkit-scrollbar { display: none; }
.gb9d-inline-promos .gb9d-btn { flex: 0 0 auto; min-height: 44px; }
.gb9d-home-extensions { display: grid; gap: 12px; margin: 18px 0; }
.gb9d-home-extensions .gb9d-prose { margin: 0; }
@media (min-width: 380px) { .gb9d-help-intro, .gb9d-prose { padding: 18px; } }

