/* ==========================================================================
   PPGAMING - GREY MOBILE APP-SHELL DESIGN SYSTEM
   Standard: Philippine E-Wallet First, 430px Container, Image 1 & 2 Matches
   Root Language: en-PH
   ========================================================================== */

:root {
  --bg-outer: #1a1a1a;
  --bg-shell: #2b2b2b;
  --bg-card: #222222;
  --border-subtle: #383838;
  --border-gold: rgba(245, 158, 11, 0.35);
  --color-amber: #f59e0b;
  --color-amber-dark: #d97706;
  --color-green: #10b981;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --font-sans: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body {
  background-color: var(--bg-outer);
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* 430px Grey Mobile Shell */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: var(--bg-shell);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

/* Fixed Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  background-color: #1a1a1a;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

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

.brand-logo-img {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

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

.header-login-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #d1d5db;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 13px;
  border: 1px solid #4b5563;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

.header-login-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.header-register-btn,
.header-cashier-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  line-height: 1;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.header-register-btn:hover,
.header-cashier-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Main Content Area */
.app-content {
  flex: 1;
  padding: 14px;
  padding-bottom: 85px; /* offset for sticky bottom nav */
}

/* Typography & Headings */
h1 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 14px;
}

h2 {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 22px;
  margin-bottom: 10px;
}

h3 {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  margin-top: 14px;
  margin-bottom: 6px;
}

p {
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 12px;
  line-height: 1.55;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #d1d5db;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--color-amber);
}

/* Answer Capsule Callout (E-E-A-T & PAA Featured Snippet Target) */
.answer-capsule {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--color-amber);
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #fef3c7;
  line-height: 1.5;
}

.answer-capsule strong {
  color: var(--color-amber);
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

/* Call to Action Buttons */
.btn-primary {
  display: block;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transition: all 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: #2a2a2a;
  color: #f3f4f6;
  border: 1px solid #444444;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #333333;
}

/* Hero Carousel (Proven 3-Slide H2 Structure) */
.hero-carousel-wrap {
  position: relative;
  background: linear-gradient(145deg, #251910 0%, #1a110a 100%);
  border: 1px solid #3d2a1b;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
  display: none;
  padding: 16px 14px 14px;
  animation: fadeIn 0.35s ease-in-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 10px;
  align-items: center;
}

.carousel-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-tag {
  display: inline-block;
  align-self: flex-start;
  background: #1f140b;
  border: 1px solid #c26514;
  color: #f97316;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2.5px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.carousel-title {
  font-family: var(--font-sans);
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

.carousel-desc {
  font-size: 10.5px;
  color: #bda897;
  line-height: 1.38;
  margin: 0 0 12px 0;
}

.carousel-btn {
  align-self: flex-start;
  background: linear-gradient(180deg, #ff7a00 0%, #d85000 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(216, 80, 0, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.carousel-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.carousel-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: 100%;
}

.carousel-tile {
  background: #2b1f14;
  border: 1px solid #4a3422;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
}

.carousel-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-indicators {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #4b3623;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: #f59e0b;
  width: 16px;
}

.carousel-arrow {
  background: none;
  border: none;
  color: #d1d5db;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
}

/* Category Filter Tabs */
.category-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  background: #222222;
  border: 1px solid var(--border-subtle);
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-btn.active, .cat-btn:hover {
  background: var(--color-amber);
  color: #111827;
  border-color: var(--color-amber);
}

/* Game Grid & Cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

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

.game-thumb-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

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

.game-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

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

.game-title {
  font-size: 12px;
  font-weight: 700;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.game-play-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  padding: 5px 0;
  border-radius: 6px;
  margin-top: auto;
}

/* Feature/Editorial Cards */
.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

/* Data & Comparison Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

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

th {
  background-color: #1a1a1a;
  color: #f59e0b;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

td {
  padding: 8px 10px;
  border-bottom: 1px solid #2d2d2d;
  color: #d1d5db;
}

tr:nth-child(even) {
  background-color: #262626;
}

/* PAA FAQ Accordion Items */
.paa-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.paa-accordion-item summary {
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f3f4f6;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.paa-accordion-item summary::-webkit-details-marker {
  display: none;
}

.paa-accordion-item summary::after {
  content: "+";
  font-size: 15px;
  color: var(--color-amber);
  font-weight: bold;
}

.paa-accordion-item[open] summary::after {
  content: "−";
}

.paa-accordion-content {
  padding: 10px 12px;
  border-top: 1px solid #2d2d2d;
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.5;
}

/* Explore Hub Cards */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.explore-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.explore-card:hover {
  border-color: var(--color-amber);
  transform: translateY(-1px);
}

.explore-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #f3f4f6;
}

.explore-arrow {
  color: var(--color-amber);
  font-size: 13px;
}

/* ==========================================================================
   IMAGE 1 & 2 3-ROW DARK PILL BADGE ARCHITECTURE (MANDATORY TRUST BAR)
   ========================================================================== */
.trust-bar-container {
  margin-top: 24px;
  padding: 14px 10px;
  background-color: #171717;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.trust-row {
  margin-bottom: 14px;
}

.trust-row:last-child {
  margin-bottom: 0;
}

.trust-label {
  color: #f59e0b; /* Warm amber #f59e0b */
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* White Rounded Pill (Row 1 Payments & Row 3 Licensed & Safe) */
.pill-white {
  background-color: #ffffff;
  border-radius: 9999px;
  padding: 4px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease;
}

.pill-white:hover {
  transform: scale(1.02);
}

.pill-white img {
  height: 18px;
  width: auto;
  display: block;
}

/* Dark Rounded Pill (Row 2 Providers) */
.pill-dark {
  background-color: #0b111a;
  border: 1px solid #1c2738;
  border-radius: 9999px;
  padding: 4px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease;
}

.pill-dark:hover {
  transform: scale(1.02);
}

.pill-dark img {
  height: 18px;
  width: auto;
  display: block;
}

.self-exclusion-link {
  color: #9ca3af;
  font-size: 11px;
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
}

.self-exclusion-link:hover {
  color: #f3f4f6;
}

/* App Footer Block */
.app-footer {
  margin-top: 18px;
  padding: 14px 10px 24px;
  text-align: center;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pill-badge {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #ef4444;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
}

.footer-tagline {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.5px;
}

.footer-text {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer-text a {
  color: #f59e0b;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 12px 0 10px;
}

.footer-links a {
  color: #d1d5db;
  font-size: 11px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-amber);
}

.footer-copy {
  font-size: 10px;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.4;
}

/* Fixed/Sticky Bottom Navigation (5 English Icons) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background-color: #1a1a1a;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  gap: 3px;
  height: 100%;
  transition: color 0.15s ease;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-item:hover, .nav-item.active {
  color: var(--color-amber);
}

/* Accessible Self-Exclusion Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: #222222;
  border: 1px solid #444444;
  border-radius: 14px;
  max-width: 380px;
  width: 100%;
  padding: 20px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-body {
  font-size: 12.5px;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 16px;
}

.modal-close-btn {
  width: 100%;
  background: #333333;
  color: #ffffff;
  border: 1px solid #555555;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
