/* 18JILI Clean Mobile-App Shell & Component Design System */
:root {
  --bg-outer: #1a1a1a;
  --bg-shell: #2b2b2b;
  --bg-card: #333333;
  --bg-card-subtle: #242424;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-subtle: #3f3f46;
  --border-strong: #52525b;
  --color-primary: #f59e0b;
  --color-primary-hover: #d97706;
  --color-accent: #10b981;
  --color-accent-hover: #059669;
  --color-badge: #e11d48;
}

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

body {
  background-color: var(--bg-outer);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-size: 15px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* App Shell Container */
.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 40px rgba(0, 0, 0, 0.7);
  padding-bottom: 76px; /* Space for bottom nav */
}

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

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

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

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

.btn-header-login {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.btn-header-deposit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-header-deposit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Page Content Area */
.page-content {
  flex: 1;
  padding: 16px;
}

/* Strict Heading Hierarchy */
h1 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

h2 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 10px;
  border-left: 3px solid var(--color-primary);
  padding-left: 8px;
}

h3 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #f9fafb;
  margin-top: 18px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 14px;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
}

/* CTA Buttons */
.btn-cta-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  margin: 16px 0;
  transition: all 0.2s ease;
}

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

.btn-cta-gold {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  margin: 14px 0;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}

/* Card Components */
.card-metric {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.metric-item {
  background: var(--bg-card-subtle);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  margin-top: 2px;
}

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

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.game-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

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

.game-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.game-rtp {
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
}

/* FAQ Accordion Section */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.faq-question {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.faq-answer {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Footer Section */
.app-footer {
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 20px 16px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.footer-nav a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 6px;
  color: #fb7185;
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 8px;
}

/* Sticky Bottom Navigation (5 English Icons) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 64px;
  background: rgba(36, 36, 36, 0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 4px 0 6px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
  flex: 1;
  transition: color 0.15s ease;
}

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

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

.nav-item.highlight-play {
  color: #10b981;
}

/* Hero Carousel Slider */
.hero-slider-wrap {
  position: relative;
  background: linear-gradient(135deg, #1f1f1f 0%, #2b2318 100%);
  border: 1px solid #443722;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.hero-slide {
  display: none;
  padding: 14px;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.slide-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.slide-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.slide-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.45;
  margin-bottom: 12px;
}

/* 2x2 Mini Game Quad inside Slider */
.slide-games-quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.slide-game-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #3f3f46;
  background: #18181b;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1.15 / 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.slide-game-lbl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.92) 100%);
  color: #f3f4f6;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 10px 4px 6px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 10px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slide-dot.active {
  background: #f59e0b;
  width: 20px;
  border-radius: 4px;
}

/* Live Win Ticker Bar */
.live-win-bar {
  display: flex;
  align-items: center;
  background: #1c1c1c;
  border: 1px solid #3f3f46;
  border-radius: 9999px;
  padding: 7px 12px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.live-win-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #f59e0b;
  white-space: nowrap;
  margin-right: 12px;
  padding-right: 10px;
  border-right: 1px solid #3f3f46;
}

.live-win-marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
}

.live-win-track {
  display: inline-flex;
  gap: 20px;
  animation: marquee 25s linear infinite;
}

.live-win-track:hover {
  animation-play-state: paused;
}

.win-item {
  font-size: 12px;
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.win-user {
  font-weight: 700;
  color: #f3f4f6;
}

.win-amt {
  color: #f59e0b;
  font-weight: 800;
}

.win-game {
  color: #9ca3af;
  font-size: 11px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

