/* ==========================================================================
   FORTUNE GEMS PINOY — MASTER APP SHELL DESIGN SYSTEM
   Palette: Emerald Brilliance (#00E676), Imperial Gold (#FFD700), Dark Graphite (#121212)
   Mobile-First (430px App Shell) & Accessible Design
   ========================================================================== */

:root {
  --bg-dark: #0f1012;
  --bg-shell: #16171a;
  --surface: #1e2024;
  --surface-hover: #26292e;
  --surface-card: #202227;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 215, 0, 0.35);
  --border-emerald: rgba(0, 230, 118, 0.35);
  
  --emerald: #00E676;
  --emerald-glow: rgba(0, 230, 118, 0.25);
  --emerald-dark: #00B248;
  --gold: #FFD700;
  --gold-glow: rgba(255, 215, 0, 0.25);
  --gold-dark: #FFA000;
  
  --text-main: #FFFFFF;
  --text-muted: #A0A5B0;
  --text-sub: #727782;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-shell: 0 0 50px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 4px 20px rgba(0, 230, 118, 0.18);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #1a221f 0%, #0f1012 60%);
  margin: 0;
  padding: 0;
}

/* 430px Mobile App Shell Container */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: var(--bg-shell);
  box-shadow: var(--shadow-shell);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 120px; /* Space for bottom dock + sticky action bar */
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 23, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

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

.btn-header-login {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-header-login:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-header-register {
  color: #121212;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
  transition: transform 0.2s ease;
}

.btn-header-register:hover {
  transform: translateY(-1px);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.breadcrumbs a {
  color: var(--emerald);
  text-decoration: none;
}

.breadcrumbs span.separator {
  color: var(--text-sub);
}

.breadcrumbs span.current {
  color: var(--text-muted);
}

/* Main Content Area */
main {
  flex: 1;
  padding: 14px 16px;
}

/* TL;DR Direct Answer Capsule (AEO Optimized) */
.tldr-capsule {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(255, 215, 0, 0.05) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.tldr-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* Expert Insight Callout (E-E-A-T Signal) */
.expert-callout {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.expert-callout strong {
  color: var(--gold);
  font-style: normal;
}

/* Headings */
h1 {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

h2 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 26px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--emerald);
  margin-top: 18px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 14px;
  font-size: 0.94rem;
  color: #d1d5db;
}

/* Answer Capsule under H2 */
.answer-capsule {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--emerald);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #f3f4f6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Hero Banners */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-gold);
  background: #000;
}

.hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 16, 18, 0.95) 90%);
  padding: 16px 14px 12px;
}

.hero-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--emerald);
  color: #121212;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Call to Action Box */
.cta-box {
  background: linear-gradient(135deg, rgba(32, 34, 39, 0.9) 0%, rgba(20, 25, 22, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.cta-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #00E676 0%, #00B248 100%);
  color: #0c1810;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px var(--emerald-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 230, 118, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FF8F00 100%);
  box-shadow: 0 4px 18px var(--gold-glow);
  color: #211600;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}

.game-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-emerald);
}

.game-thumb-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  background: #111;
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-rtp-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--emerald);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-emerald);
}

.game-info {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.game-studio {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.game-meta {
  font-size: 0.74rem;
  color: var(--gold);
  margin-top: auto;
  font-weight: 600;
}

/* Data Tables */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

th {
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold);
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
}

tr:last-child td {
  border-bottom: none;
}

/* Numbered Steps Process */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #0c1810;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.step-content p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
  margin: 24px 0;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

details.faq-item[open] {
  border-color: var(--border-gold);
}

summary.faq-question {
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f3f4f6;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

summary.faq-question::after {
  content: "+";
  color: var(--emerald);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

details.faq-item[open] summary.faq-question::after {
  content: "−";
  color: var(--gold);
}

.faq-answer {
  padding: 0 14px 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
}

/* Rotating Silo Links / Related Guides */
.related-silo-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 24px 0;
}

.related-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.related-links-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.related-link:hover {
  background: var(--surface-hover);
  border-color: var(--border-gold);
  color: var(--gold);
  transform: translateX(3px);
}

/* Compliance Trust Bar */
.compliance-trust-bar {
  margin: 24px 0 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-sub);
}

.compliance-trust-bar strong {
  color: var(--gold);
}

.compliance-trust-bar a {
  color: #d1d5db;
  text-decoration: underline;
  margin: 0 4px;
}

/* Fixed Bottom Navigation Dock */
.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 64px;
  background: rgba(20, 22, 25, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 99;
  padding: 0 4px;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.68rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  gap: 3px;
  transition: color 0.2s ease;
}

.dock-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.dock-item:hover, .dock-item.active {
  color: var(--emerald);
}

.dock-item.gold-highlight {
  color: var(--gold);
}

/* ==========================================================================
   HIGH-CONVERTING AFFILIATE PROMOTIONAL & GATEWAY STYLES
   ========================================================================== */

/* Sticky Floating Action Bar (Anchored above Bottom Dock) */
.sticky-promo-bar {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(90deg, #0e1e14 0%, #17261b 50%, #201a08 100%);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 98;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.sticky-promo-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #fff;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-glow 1.5s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 6px var(--emerald); }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--emerald); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 6px var(--emerald); }
}

.btn-sticky-action {
  background: linear-gradient(135deg, #FFD700 0%, #FF8F00 100%);
  color: #1a1200;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
  letter-spacing: 0.3px;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.btn-sticky-action:hover {
  transform: scale(1.04);
}

/* Hero Card Play Button Overlay */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00E676 0%, #00B248 100%);
  color: #0c1810;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px rgba(0, 230, 118, 0.4);
  margin-top: 6px;
  transition: all 0.2s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 230, 118, 0.6);
}

/* Game Card Action Buttons */
.game-card-btn-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.btn-game-play {
  flex: 2;
  background: linear-gradient(135deg, #FFD700 0%, #FF8F00 100%);
  color: #1a1200;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.25);
  transition: transform 0.15s ease;
}

.btn-game-play:hover {
  transform: scale(1.02);
}

.btn-game-info {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #d1d5db;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 6px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
}

.btn-game-info:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Official Gateway Card (for /login/, /register/, /download/) */
.official-gateway-card {
  background: linear-gradient(135deg, rgba(30, 36, 32, 0.95) 0%, rgba(20, 22, 25, 0.98) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  margin: 18px 0 24px;
  box-shadow: 0 4px 25px rgba(255, 215, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.official-gateway-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--gold) 100%);
}

.gateway-tag {
  display: inline-block;
  background: var(--gold);
  color: #121212;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.official-gateway-card h2, .official-gateway-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 6px 0;
  justify-content: center;
}

.official-gateway-card p {
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 14px;
}

