/* ==========================================================================
   INDONESIA CASINO PORTAL — MODERN LIGHT DESIGN SYSTEM
   Inspired by Top Tier Casino & Slot Review Portals
   Colors: Royal Sapphire Blue · Vegas Amber Gold · Emerald Green · Crisp White
   ========================================================================== */

:root {
  /* Core Base Colors */
  --bg-main: #f4f6fa;
  --bg-body: #f4f6fa;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0b132b;
  --bg-navy: #0f172a;
  --bg-navy-light: #1e293b;

  /* Royal Blues (Primary Trust) */
  --blue-primary: #1e40af;
  --blue-vibrant: #2563eb;
  --blue-bright: #3b82f6;
  --blue-dark: #1e3a8a;
  --blue-deep: #172554;
  --blue-light: #eff6ff;
  --blue-border: #bfdbfe;

  /* Vegas Gold / Amber (Jackpot & VIP Accents) */
  --gold-primary: #d97706;
  --gold-vibrant: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-light: #fef3c7;
  --gold-border: #fde68a;
  --gold-dark: #92400e;

  /* Functional Accents */
  --green-positive: #059669;
  --green-bright: #10b981;
  --green-light: #ecfdf5;
  --green-border: #a7f3d0;

  --red-negative: #dc2626;
  --red-bright: #ef4444;
  --red-light: #fef2f2;
  --red-border: #fecaca;

  --amber-warn: #f59e0b;

  /* Promotional Gradients (As seen in Reference Image) */
  --purple-promo: #7c3aed;
  --purple-light: #f5f3ff;
  --pink-promo: #db2777;
  --pink-light: #fdf2f8;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;
  --border-card: #e2e8f0;
  --glass-border: #e2e8f0;

  /* Surfaces & Glass (Light Mode) */
  --surface-1: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --glass-bg: rgba(255, 255, 255, 0.95);

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --text-light: #f8fafc;
  --text-white: #ffffff;
  --text-dark: #0f172a;

  /* Typography Families */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-blue: 0 8px 25px rgba(37, 99, 235, 0.25);
  --shadow-gold: 0 8px 25px rgba(245, 158, 11, 0.28);
  --shadow-glow-cyan: var(--shadow-blue);
  --shadow-glow-purple: 0 8px 25px rgba(124, 58, 237, 0.25);
  --shadow-glow-pink: 0 8px 25px rgba(219, 39, 119, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms ease;

  /* Layout */
  --header-height: 76px;
  --container-max: 1220px;
  --header-bg: rgba(255, 255, 255, 0.98);

  /* Compatibility Aliases */
  --cyan-primary: var(--blue-vibrant);
  --cyan-bright: var(--blue-bright);
  --purple-primary: var(--blue-primary);
  --purple-deep: var(--blue-dark);
  --pink-accent: var(--gold-vibrant);
  --violet-glow: var(--purple-promo);
  --indigo-mid: var(--blue-vibrant);
  --void-black: var(--bg-body);
  --deep-navy: #ffffff;
  --navy-mid: #f8fafc;
  --navy-surface: #ffffff;
  --navy-elevated: #ffffff;
  --clr-primary: var(--blue-vibrant);
  --clr-secondary: var(--gold-vibrant);
  --clr-bg: var(--bg-body);
  --clr-muted: var(--text-secondary);
  --clr-border: var(--border-subtle);
  --ui-bg: var(--bg-body);
  --ui-surface: #ffffff;
  --ui-surface-2: #f8fafc;
  --ui-border: var(--border-subtle);
  --ui-text: var(--text-primary);
  --ui-muted: var(--text-secondary);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(at 10% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 15%, rgba(245, 158, 11, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(30, 64, 175, 0.03) 0px, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-vibrant);
}

.container {
  width: min(92%, var(--container-max));
  margin: 0 auto;
}

/* Subtle clean ambient background */
.ambient-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: 
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(245, 158, 11, 0.03) 0%, transparent 45%);
}

.ambient-background .orb {
  display: none; /* remove dark glowing balls */
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header, #main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
  transition: all var(--transition-base);
}

header.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.logo a:hover img {
  transform: scale(1.02);
}

.nav-list ul {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0.2rem;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--blue-vibrant);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-list a:hover,
.nav-list li.active a {
  color: var(--blue-vibrant);
}

.nav-list a:hover::after,
.nav-list li.active a::after {
  width: 100%;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-vibrant);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--blue-vibrant);
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-login:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-signup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-vibrant) 0%, var(--blue-primary) 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

.mobile-menu-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.no-scroll {
  overflow: hidden;
}

/* ==========================================================================
   HEADINGS & TYPOGRAPHY
   ========================================================================== */
.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-sm);
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-prefix {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-vibrant);
  background: var(--blue-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  text-align: center;
  border: 1px solid var(--blue-border);
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-vibrant) 60%, var(--gold-vibrant) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Utility Classes */
.text-white { color: #ffffff !important; }
.text-dark { color: var(--text-primary) !important; }
.text-center { text-align: center !important; }
.d-flex { display: flex !important; }
.gap-3 { gap: 1rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.pt-3 { padding-top: 1rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.border-top-dark { border-top: 1px solid var(--border-subtle) !important; }
.text-muted-light { color: var(--text-secondary) !important; }

.glass-nav {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   FOOTER (High Authority Deep Navy Theme)
   ========================================================================== */
footer, #main-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  border-top: 4px solid var(--blue-vibrant);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: 0;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand img {
  filter: brightness(1.2);
}

.footer-brand p,
.footer-desc {
  color: #94a3b8;
  font-size: 0.92rem;
  margin-top: var(--space-sm);
  max-width: 360px;
  line-height: 1.75;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 8px;
}

.footer-nav h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--gold-vibrant);
  border-radius: var(--radius-full);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--gold-bright);
  padding-left: 6px;
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--gold-vibrant) !important;
  margin-right: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
  gap: var(--space-md);
}

.footer-bottom p {
  line-height: 1.6;
}

.footer-links a {
  color: var(--gold-bright) !important;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Mobile Bottom Bar (Sticky Footer for Conversion) */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 1024px) {
  .nav-list {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: min(320px, 85%);
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    border-left: 1px solid var(--border-subtle);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list ul {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
  }

  .nav-list a {
    font-size: 1.05rem;
    padding: 0.75rem 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .header-auth .btn-signup {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    padding: 10px 14px;
    gap: 10px;
    z-index: 1000;
  }

  .mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .mobile-bottom-bar .btn-login {
    background: #f8fafc;
    color: var(--blue-vibrant);
    border: 1.5px solid var(--blue-vibrant);
  }

  .mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--blue-vibrant) 0%, var(--blue-primary) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  }

  body {
    padding-bottom: 74px;
  }
}
