:root {
  --teal: #0e7490;
  --teal-d: #155e75;
  --ink: #1f2937;
  --mut: #6b7280;
  --bg: #f4f6f8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: #fff;
}
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* top bar */
.topbar { background: var(--teal-d); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; padding: 8px 20px; }
.topbar a { color: #fff; font-weight: 600; }

/* header / nav */
.header { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 800; font-size: 21px; color: var(--teal-d); white-space: nowrap; }
.logo-img { height: 30px; width: auto; vertical-align: middle; margin-right: 6px; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--mut); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--teal); }
.btn {
  background: var(--teal); color: #fff; font-weight: 700;
  padding: 10px 16px; border-radius: 8px; font-size: 14px; white-space: nowrap;
}
.btn:hover { background: var(--teal-d); }
.btn.primary { background: #fff; color: var(--teal-d); }
.btn.ghost { background: transparent; border: 2px solid #fff; }
.btn.big, .cta .btn { padding: 14px 26px; font-size: 17px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; margin-left: auto; color: var(--teal-d); }

/* hero */
.hero { background: linear-gradient(135deg, var(--teal-d), var(--teal)); color: #fff; padding: 72px 0; text-align: center; }
.hero h1 { font-size: 46px; margin: 0 0 8px; }
.hero .sub { font-size: 21px; margin: 0 0 12px; }
.hero .desc { max-width: 640px; margin: 0 auto 26px; opacity: .95; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* sections */
.section { padding: 58px 0; }
.section h2 { font-size: 30px; text-align: center; margin: 0 0 28px; color: var(--teal-d); }
.alt { background: var(--bg); }
.lede { max-width: 780px; margin: 0 auto 14px; text-align: center; color: var(--mut); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 16px; color: var(--teal-d); }
.card p { margin: 0; font-size: 13px; color: var(--mut); }

.mission blockquote {
  max-width: 720px; margin: 0 auto; text-align: center; font-size: 20px; font-style: italic;
  border-left: 4px solid var(--teal); padding: 12px 22px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.info { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 24px; }
.info h3 { margin: 0 0 10px; color: var(--teal-d); }
.info p { margin: 6px 0; color: var(--mut); }
.hours { list-style: none; padding: 0; margin: 10px 0 0; color: var(--mut); }
.hours li { padding: 6px 0; border-bottom: 1px dashed #e5e7eb; }
.link { color: var(--teal); font-weight: 700; }

.cta { background: var(--bg); text-align: center; }
.cta h2 { color: var(--ink); }
.center { text-align: center; }

/* footer */
.footer { background: #0f172a; color: #cbd5e1; padding: 40px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcol strong { color: #fff; font-size: 16px; }
.fcol h4 { margin: 0 0 8px; color: #fff; }
.fcol p { margin: 6px 0; color: #94a3b8; }
.copy { border-top: 1px solid #1e293b; margin-top: 26px; padding: 14px 20px; color: #64748b; font-size: 12px; }

/* responsive */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .header-inner .btn { display: none; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
  }
  .nav.open { display: flex; }
}
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }



        .intro.home-intro {
            background-image: url("https://img.mygambarin.com/1791440343719-5db7daf3.png");
        }

     
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
  padding: 10px;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}
.popup-container {
  position: relative;
  width: 92%;
  max-width: 420px;
  max-height: 94vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.96), rgba(26, 21, 16, 0.92));
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 175, 55, 0.2);
  padding-bottom: 15px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  animation: rotateScaleIn 0.4s ease-out;
}
@keyframes rotateScaleIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.popup-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: unset !important;
  display: block !important;
  border: none !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
}
.clk-btn-sgp {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 14px 10px;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}
.clk-btn-sgp a {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 8px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}
.clk-btn-sgp a.login {
  color: #fff !important;
  background: linear-gradient(135deg, #e60049, #ff3366);
  border: 1.5px solid #ff5252;
  box-shadow: 0 6px 15px rgba(230, 0, 73, 0.4);
}
.clk-btn-sgp a.register {
  color: #000 !important;
  background: linear-gradient(135deg, #ffd700, #ff9900);
  border: 1.5px solid #ffe066;
  box-shadow: 0 6px 15px rgba(255, 153, 0, 0.4);
}
.clk-btn-sgp a:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}
.popup-footer {
  font-size: 11px;
  color: #ccc;
  padding: 6px 14px 10px;
  line-height: 1.5;
  position: relative;
  z-index: 5;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
}
.close-btn::before, .close-btn::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: #ff5252;
}
.close-btn::before { transform: rotate(45deg); }
.close-btn::after { transform: rotate(-45deg); }
.close-btn:hover { background: #ff2244; transform: rotate(90deg); }
.close-btn:hover::before, .close-btn:hover::after { background: #fff; }
.gold-particle {
  position: absolute;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(212, 175, 55, 0.4) 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: floatGold 10s infinite ease-in-out;
}
@keyframes floatGold {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  50% { opacity: 0.8; }
}
.luxury-border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  pointer-events: none;
  z-index: 4;
}
@media (max-width: 480px) {
  .popup-container {
    width: 94% !important;
    max-width: 360px !important;
  }
  .clk-btn-sgp {
    padding: 12px 10px !important;
    gap: 10px !important;
  }
  .clk-btn-sgp a {
    padding: 12px 6px !important;
    font-size: 14px !important;
  }
}

 :root {
            --app-primary: #d6a100;
            --app-accent: #c9a227;
            --app-dark: #000000;
            --app-darker: #111111;
        }

        body {
            background: linear-gradient(135deg, #000000 0%, #111111 50%, #000000 100%);
            color: white;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            margin: 0;
            padding: 0;
        }

        /* Header */
        .rtp-header {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(17, 17, 17, 0.95) 100%);
            padding: 15px 20px;
            border-bottom: 2px solid var(--app-primary);
            position: sticky; /* Make header stick to top while scrolling */
            top: 0;
            z-index: 1100; /* Above content but below modals */
            backdrop-filter: blur(6px); /* Soft blur to separate from content */
            box-shadow: 0 6px 18px rgba(0,0,0,0.6);
            will-change: top;
        }

/* Banner Responsive - keep full banner visible (no cropping) */
        .app-hero {
            background-color: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .app-hero .carousel-item {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .app-hero .carousel-item img {
            width: 100%;
            height: auto;
            max-height: 800px; /* respect original banner height */
            object-fit: contain; /* ensure whole image fits without cropping */
            display: block;
            margin: 0 auto;
        }

        @media (max-width: 768px) {
            .app-hero .carousel-item img {
                max-height: 250px;
            }
        }

        @media (min-width: 769px) {
            .app-hero .carousel-item img {
                max-height: 400px;
            }
        }

        @media (min-width: 992px) {
            .app-hero .carousel-item img {
                max-height: 800px;
            }
        }

        .logo {
            height: 45px;
            filter: brightness(1.2);
        }

        .auth-buttons .btn {
            padding: 8px 20px;
            border-radius: 25px;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 0.5px;
            margin-left: 10px;
            min-width: 80px;
        }

        .btn-login {
            background: linear-gradient(135deg, #8B7355 0%, #A0845C 100%);
            border: none;
            color: white;
        }

        .btn-register {
            background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
            border: none;
            color: white;
        }

        /* Banner */
        .welcome-banner {
            background: linear-gradient(135deg, rgba(214, 161, 0, 0.2) 0%, rgba(201, 162, 39, 0.1) 100%);
            padding: 40px 20px;
            text-align: center;
            margin-bottom: 30px;
            border-radius: 15px;
            margin: 20px;
        }

        .welcome-title {
            font-size: 2.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 15px;
        }

        .welcome-subtitle {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 10px;
        }

        /* Provider Bar */
        .provider-bar {
            background: rgba(17, 17, 17, 0.8);
            padding: 20px 0;
            margin-bottom: 30px;
            border-top: 1px solid rgba(214, 161, 0, 0.3);
            border-bottom: 1px solid rgba(214, 161, 0, 0.3);
            overflow-x: auto;
            -ms-overflow-style: none; /* IE and Edge */
            scrollbar-width: none;    /* Firefox */
        }

        /* Hide scrollbar for Chrome, Safari and Opera */
        .provider-bar::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        .providers-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            padding: 0 20px;
            min-width: max-content;
        }

        .provider-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            min-width: 80px;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .provider-item:hover {
            transform: translateY(-5px);
        }
        
        .provider-item.active .provider-logo {
            background: rgba(214, 161, 0, 0.3);
            border: 2px solid var(--app-primary);
        }
        
        .provider-item.active .provider-name {
            color: var(--app-primary);
            font-weight: 700;
        }

        .provider-logo {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            padding: 8px;
            margin-bottom: 8px;
            transition: all 0.3s ease;
        }

        .provider-item:hover .provider-logo {
            background: rgba(214, 161, 0, 0.2);
        }

        .provider-name {
            font-size: 10px;
            color: var(--app-primary);
            font-weight: 600;
            text-transform: uppercase;
        }

        /* Game Grid */
        .games-container {
            padding: 0 20px 120px;
        }

        .games-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* 2 cards per row on mobile */
            gap: 15px;
        }

        .game-card {
            background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
            border-radius: 15px;
            overflow: hidden;
            border: 1px solid rgba(214, 161, 0, 0.2);
            transition: all 0.3s ease;
            position: relative;
        }

        .game-card:hover {
            transform: translateY(-5px);
            border-color: var(--app-primary);
            box-shadow: 0 10px 30px rgba(214, 161, 0, 0.3);
        }

        .game-image {
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: contain;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            position: relative;
        }

        .play-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .game-card:hover .play-overlay {
            opacity: 1;
        }

        .play-btn {
            background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-accent) 100%);
            border: none;
            padding: 12px 24px;
            border-radius: 25px;
            color: black;
            font-weight: 700;
            text-transform: uppercase;
        }

        .game-info {
            padding: 15px;
        }

        .game-title {
            font-size: 14px;
            font-weight: 600;
            color: white;
            margin-bottom: 10px;
        }

        .game-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 15px;
        }

        .stat-item {
            padding: 8px;
            border-radius: 8px;
            font-size: 11px;
            text-align: center;
        }

        .jam-panas {
            background: rgba(34, 197, 94, 0.2);
            color: #22C55E;
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .pola-gacor {
            background: rgba(59, 130, 246, 0.2);
            color: #3B82F6;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        .rtp-bar {
            background: rgba(55, 65, 81, 0.5);
            border-radius: 10px;
            height: 8px;
            overflow: hidden;
            margin-bottom: 8px;
        }

        .rtp-fill {
            height: 100%;
            transition: width 0.5s ease;
        }

        .rtp-green { background: #22C55E; }
        .rtp-yellow { background: #EAB308; }
        .rtp-red { background: #EF4444; }

        .rtp-text {
            font-size: 12px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 10px;
        }

        /* Bottom Bar */
        .rtp-bottom-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 70px;
            background: linear-gradient(135deg, #000000 0%, #111111 100%);
            border-top: 2px solid var(--app-primary);
            display: flex;
            align-items: center;
            justify-content: space-around;
            z-index: 1000;
        }

        .bottom-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: color 0.3s ease;
            padding: 8px;
        }

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

        .bottom-item i {
            font-size: 20px;
            margin-bottom: 4px;
        }

        .bottom-item span {
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
        }

        /* Floating RTP Button */
        .floating-rtp-btn {
            position: fixed;
            right: 20px;
            bottom: 100px; /* Move higher to avoid conflicting with lucky wheel */
            z-index: 1500; /* Lower z-index to not interfere with modals */
            width: 60px; /* Slightly smaller */
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #EAB308 0%, #F59E0B 100%);
            border: none;
            box-shadow: 0 8px 32px rgba(234, 179, 8, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            animation: float-bounce 3s ease-in-out infinite;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .floating-rtp-btn:hover {
            transform: scale(1.15) rotate(5deg);
            box-shadow: 0 12px 48px rgba(234, 179, 8, 0.6);
        }

        .floating-rtp-btn i {
            font-size: 24px;
            color: black;
            font-weight: 700;
        }

        @keyframes float-bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .welcome-title {
                font-size: 2rem;
            }

            .games-grid {
                grid-template-columns: repeat(2, 1fr); /* 2 cards per row on mobile */
                gap: 10px;
            }

            .providers-container {
                gap: 20px;
            }

            .provider-logo {
                width: 50px;
                height: 50px;
            }

            .game-card {
                max-width: 100%;
            }

            .floating-rtp-btn {
                right: 15px; /* Move to right side on mobile */
                bottom: 120px; /* Higher position to avoid conflicts */
                width: 50px; /* Smaller on mobile */
                height: 50px;
            }

            .floating-rtp-btn i {
                font-size: 18px; /* Smaller icon for mobile */
            }
        }

        /* Banner Responsive - keep full banner visible (no cropping) */
        .app-hero {
            background-color: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .app-hero .carousel-item {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .app-hero .carousel-item img {
            width: 100%;
            height: auto;
            max-height: 800px; /* respect original banner height */
            object-fit: contain; /* ensure whole image fits without cropping */
            display: block;
            margin: 0 auto;
        }

        @media (max-width: 768px) {
            .app-hero .carousel-item img {
                max-height: 250px;
            }
        }

        @media (min-width: 769px) {
            .app-hero .carousel-item img {
                max-height: 400px;
            }
        }

        @media (min-width: 992px) {
            .app-hero .carousel-item img {
                max-height: 800px;
            }
        }

        /* Show floating RTP button on this page */
        .floating-rtp-btn {
            display: flex !important;
        }

        /* Desktop Responsive */
        @media (min-width: 769px) {
            .games-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 20px;
            }

            .games-container {
                padding: 0 20px 120px;
            }
        }

        @media (min-width: 1200px) {
            .games-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        /* Special status colors */
        .status-jangan-main {
            background: rgba(239, 68, 68, 0.2) !important;
            color: #EF4444 !important;
            border: 1px solid rgba(239, 68, 68, 0.3) !important;
            font-weight: 700;
            animation: blink 1.5s infinite;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0.7; }
        }
   