/* ==========================================================================
   COMMON STYLESHEET - MOBILE-FIRST CONTAINER (APP-LIKE ON ALL SCREENS)
   Edujar Dark Cosmic Purple Theme - Online Casino Indonesia
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Mobile Viewport Width constraint */
  --app-width: 480px;

  /* Cosmic Dark Purple / Indigo Palette */
  --bg-dark: #0a0622;
  --bg-main: #0e092b;
  --bg-card: #18113e;
  --bg-card-hover: #221854;
  --bg-card-subtle: #140d34;
  --bg-glass: rgba(24, 17, 62, 0.7);

  /* Primary Brand Violet */
  --primary: #703bf7;
  --primary-light: #8e5bf9;
  --primary-dark: #5824e3;
  --primary-gradient: linear-gradient(135deg, #703bf7 0%, #9b51e0 100%);
  --primary-glow: rgba(112, 59, 247, 0.35);

  /* Coral / Sunset CTA Accent (from reference) */
  --accent-coral: #ff5b65;
  --accent-coral-hover: #ff434e;
  --coral-gradient: linear-gradient(135deg, #ff6b78 0%, #f94144 100%);
  --coral-glow: rgba(255, 91, 101, 0.4);

  /* Supporting Accents */
  --accent-cyan: #00d2ff;
  --accent-gold: #ffb703;
  --accent-green: #10b981;

  /* Typography Colors */
  --text-main: #ffffff;
  --text-muted: #b7b2de;
  --text-light: #7b75a6;
  --text-dim: #555079;

  /* Borders & Shadows */
  --border: rgba(255, 255, 255, 0.08);
  --border-card: rgba(140, 82, 255, 0.15);
  --border-card-hover: rgba(167, 120, 255, 0.45);
  --header-bg: rgba(14, 9, 43, 0.94);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(7, 3, 25, 0.6);
  --shadow-purple: 0 10px 30px -4px rgba(112, 59, 247, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  background-color: #060216;
}

/* Body: Centered mobile viewport on all screen sizes including laptops */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: #060216;
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(112, 59, 247, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(255, 91, 101, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(0, 210, 255, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

/* Mobile App Wrapper: Fixed to max 480px on desktop/laptop, 100% on phones */
.mobile-app-wrapper {
  width: 100%;
  max-width: var(--app-width);
  min-height: 100vh;
  background-color: var(--bg-main);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(112, 59, 247, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 78px; /* space for fixed mobile bottom bar */
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 92%;
  margin: 0 auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #2b1c5e;
  border-radius: 3px;
}

/* ==========================================================================
   HEADER & MOBILE NAVIGATION (MOBILE UI ON ALL SCREENS)
   ========================================================================== */
.mobile-app-wrapper > header,
header.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-width);
  z-index: 1000;
  background: rgba(14, 9, 43, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-card);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  width: 100%;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(112, 59, 247, 0.4));
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  margin-right: 0.7rem;
}

.header-auth .btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  color: #ffffff;
  background: var(--coral-gradient);
  box-shadow: 0 4px 16px var(--coral-glow);
  transition: var(--transition);
  white-space: nowrap;
}

.header-auth .btn-signup svg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

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

/* Mobile Hamburger Toggle - ALWAYS VISIBLE */
.mobile-menu-toggle {
  display: flex;
  background: rgba(112, 59, 247, 0.18);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
  background: var(--accent-coral);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  background: var(--accent-coral);
}

/* Mobile Drawer Menu - ALWAYS A MOBILE DRAWER */
.nav-list {
  display: none;
  position: fixed;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-width);
  height: calc(100vh - 55px);
  background: rgba(10, 6, 34, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem 1.5rem 5rem;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  border-bottom: 1px solid var(--border-card);
}

.nav-list.active {
  display: block;
  opacity: 1;
}

.nav-list ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  padding: 0.9rem 1.2rem;
  background: rgba(24, 17, 62, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-list a::after {
  content: '→';
  color: var(--primary-light);
  font-size: 1.1rem;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--primary);
  border-color: var(--primary-light);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* ==========================================================================
   SECTION TITLE (MOBILE)
   ========================================================================== */
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.8rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   AD CONTAINER (MOBILE)
   ========================================================================== */
.ad-wrapper {
  margin: 1.5rem auto;
}

.ad-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   FOOTER (MOBILE STACKED)
   ========================================================================== */
footer {
  background: var(--bg-dark);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  margin: 0 auto 0.8rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-brand-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(112, 59, 247, 0.18);
  border: 1px solid rgba(142, 91, 249, 0.35);
  font-size: 0.74rem;
  color: #ffffff;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-badge-pill svg {
  filter: drop-shadow(0 1px 4px currentColor);
  color: var(--accent-cyan);
}

.footer-nav,
.footer-extra {
  background: rgba(24, 17, 62, 0.4);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.footer-nav h4,
.footer-extra h4 {
  color: #ffffff;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.footer-nav ul,
.footer-extra ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a,
.footer-extra a {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ==========================================================================
   MOBILE FIXED BOTTOM BAR (ALWAYS VISIBLE & PINNED TO MOBILE CONTAINER)
   ========================================================================== */
.mobile-fixed-btn {
  display: flex !important; /* Always display */
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-width);
  padding: 0.65rem 0.85rem 0.85rem;
  background: rgba(10, 6, 34, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-card);
  z-index: 1000;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.mobile-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.78rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-align: center;
  transition: var(--transition);
}

.mobile-btn svg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.mobile-btn--outline {
  background: rgba(112, 59, 247, 0.2);
  color: #ffffff;
  border: 1px solid var(--primary-light);
}

.mobile-btn--solid {
  background: var(--coral-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--coral-glow);
}
