/* JILIEE Mobile App-Shell Stylesheet */
:root {
  --bg-outer: #0f172a;
  --bg-shell: #1e293b;
  --bg-surface: #273549;
  --bg-card: #243044;
  --border-subtle: #334155;
  --border-glow: rgba(5, 148, 255, 0.25);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --brand-blue: #053daf;
  --brand-cyan: #0594ff;
  --brand-gold: #f6ae33;
  --brand-gold-hover: #e69d20;
  --brand-emerald: #10b981;
}

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

body {
  background: radial-gradient(circle at 50% 0%, #172554 0%, #090d16 100%);
  background-color: var(--bg-outer);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

/* App Shell Mobile Container */
.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #1b263b 0%, #151e2e 100%);
  color: var(--text-main);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.1);
  padding-bottom: 74px; /* Space for sticky bottom navigation */
}

/* Fixed Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(22, 32, 50, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.brand-link {
  display: flex !important;
  flex-direction: row !important;
  direction: ltr !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none;
  color: inherit;
}

.brand-logo-img {
  order: 1 !important;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(5, 61, 175, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-title {
  order: 2 !important;
  font-size: 1.1875rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  background: linear-gradient(180deg, #ffffff 15%, #f6ae33 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(246, 174, 51, 0.25);
}

.header-login-btn {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.6);
  transition: all 0.15s ease;
}

.header-login-btn:hover {
  color: #ffffff;
  border-color: #f6ae33;
}

.header-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-register-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

/* Sticky Bottom Navigation */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(18, 26, 42, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

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

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: transform 0.15s ease;
}

.nav-item.active,
.nav-item:hover {
  color: #f6ae33;
}

.nav-item.active svg {
  transform: translateY(-1px);
}

.nav-item.highlight {
  color: #38bdf8;
}

/* Common UI Elements */
.content-wrapper {
  padding: 16px;
  flex: 1;
}

.h1-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(246, 174, 51, 0.15);
  color: #f6ae33;
  border: 1px solid rgba(246, 174, 51, 0.35);
  margin-bottom: 8px;
}

/* Primary CTA Button (Golden Brand Gradient with Subtle Glow) */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  background: linear-gradient(180deg, #f7b536 0%, #ea9a1f 100%);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(246, 174, 51, 0.35), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
  border: none;
  cursor: pointer;
  margin: 14px 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #f8bc46 0%, #ed9e23 100%);
  box-shadow: 0 6px 20px rgba(246, 174, 51, 0.45), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.cta-button:active {
  transform: translateY(1px);
}

.secondary-cta {
  background: #243044;
  color: #e2e8f0;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.secondary-cta:hover {
  background: #2d3b54;
  border-color: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Card Surface */
.card-box {
  background: linear-gradient(180deg, #243044 0%, #1e2839 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* 21+ Compliance & Responsible Gaming Footer */
.compliance-footer {
  background: #111827;
  border-top: 1px solid var(--border-subtle);
  padding: 22px 16px;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.6;
}

.age-badge {
  display: inline-block;
  font-weight: 800;
  color: #ef4444;
  border: 1.5px solid #ef4444;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  margin-right: 6px;
}

/* FAQ Accordion */
details.faq-item {
  background: #202b3c;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

details.faq-item[open] {
  border-color: rgba(246, 174, 51, 0.35);
  background: #233045;
}

details.faq-item summary {
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

details.faq-item summary::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 700;
  color: #f6ae33;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: #cbd5e1;
  line-height: 1.55;
}

/* ==========================================================================
   Hero Carousel Slider & Live Win Ticker Bar
   ========================================================================== */
.hero-slider-wrap {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #172554 50%, #1e293b 100%);
  border: 1px solid rgba(5, 148, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(5, 61, 175, 0.25);
}

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

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

@keyframes slideFadeIn {
  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: #f6ae33;
  background: rgba(246, 174, 51, 0.15);
  border: 1px solid rgba(246, 174, 51, 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: #cbd5e1;
  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 rgba(255, 255, 255, 0.12);
  background: #0f172a;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1.15 / 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.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(15, 23, 42, 0.7) 35%, rgba(15, 23, 42, 0.95) 100%);
  color: #f8fafc;
  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: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Live Win Ticker Bar */
.live-win-bar {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid rgba(5, 148, 255, 0.28);
  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: #f6ae33;
  white-space: nowrap;
  margin-right: 12px;
  padding-right: 10px;
  border-right: 1px solid #334155;
}

.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: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

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

.win-game {
  color: #94a3b8;
  font-size: 11px;
}

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

/* ==========================================================================
   Trust & Authority Strip (Payments, Providers, Licensed & Safe)
   ========================================================================== */
.trust-strip {
  background: #0b0f19;
  border-top: 1px solid rgba(246, 174, 51, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 14px;
}

.trust-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.trust-row:first-child {
  padding-top: 2px;
}

@media (min-width: 360px) {
  .trust-row {
    flex-direction: row;
    align-items: center;
  }
  .trust-label {
    min-width: 95px;
    flex-shrink: 0;
  }
}

.trust-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f6ae33;
}

.trust-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.trust-pill-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0f172a;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  height: 23px;
  white-space: nowrap;
}

.trust-pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #141c2e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  height: 23px;
  white-space: nowrap;
}

.trust-text-muted {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 2px;
}

