/* ============================================
   KUATOKE - Entertainment Digital Platform
   Dark Premium Design System
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #171b1f;
    --bg-header: #111519;
    --bg-card: #202832;
    --bg-card-hover: #2a3441;
    --bg-section: #1a1f26;
    --border-color: #30363d;
    --accent-red: #e63946;
    --accent-red-dark: #c1121f;
    --accent-orange: #ff6b35;
    --accent-gold: #ffd700;
    --accent-yellow: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --gradient-red: linear-gradient(135deg, #e63946, #ff6b35);
    --gradient-dark: linear-gradient(180deg, #1a1f26, #111519);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(230, 57, 70, 0.3);
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
    --max-width: 1200px;
    --header-height: 60px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    display: none;
    padding: 8px;
    color: white;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.header-download {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.header-download:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent-red);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-btn {
    padding: 8px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}

.header-icon-btn:hover {
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent-red);
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 13px;
    width: 140px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.btn-masuk {
    padding: 8px 20px;
    background: var(--accent-red);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.btn-masuk:hover {
    background: var(--accent-red-dark);
    box-shadow: var(--shadow-glow);
}

.btn-daftar {
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.btn-daftar:hover {
    background: rgba(255,255,255,0.2);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    color: white;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.lang-btn:hover {
    background: rgba(255,255,255,0.1);
}

.flag-icon {
    font-size: 16px;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-header);
    z-index: 1002;
    transition: left var(--transition-slow);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.close-menu {
    font-size: 24px;
    color: white;
    padding: 4px 8px;
}

.mobile-menu-list {
    padding: 16px 0;
}

.mobile-menu-list li a {
    display: block;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mobile-menu-list li a:hover {
    color: white;
    background: rgba(255,255,255,0.05);
    padding-left: 28px;
}

/* ============================================
   HERO BANNER CAROUSEL
   ============================================ */
.hero-section {
    margin-top: var(--header-height);
    padding: 20px 16px;
}

.hero-carousel {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 1;
    background: var(--bg-card);
}

.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.hero-slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    text-align: center;
    padding: 20px;
}

.hero-label {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-gold);
    font-style: italic;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    color: var(--accent-yellow);
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-cta {
    padding: 12px 32px;
    background: var(--accent-red);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    letter-spacing: 1px;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.hero-cta:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.2);
}

.carousel-btn:hover {
    background: rgba(230, 57, 70, 0.8);
}

.prev-btn { left: 12px; }
.next-btn { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-dot.active {
    background: var(--accent-red);
    width: 24px;
    border-radius: 5px;
}

/* ============================================
   CATEGORY NAVIGATION
   ============================================ */
.category-section {
    padding: 16px 0;
}

.category-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: linear-gradient(180deg, #2a1520, #1a0f15);
    border: 1px solid var(--border-color);
    border-bottom: 3px solid var(--accent-red);
    border-radius: var(--radius-md);
    color: white;
    transition: all var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(180deg, #3a1a28, #251218);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 24px;
}

.category-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ============================================
   LIVE NUMBER / DATA SECTION
   ============================================ */
.live-section {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(230, 57, 70, 0.03) 40px,
            rgba(230, 57, 70, 0.03) 41px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(230, 57, 70, 0.03) 40px,
            rgba(230, 57, 70, 0.03) 41px
        );
    pointer-events: none;
}

.glow-left, .glow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    pointer-events: none;
}

.glow-left {
    left: 0;
    background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.15), transparent 70%);
}

.glow-right {
    right: 0;
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.1), transparent 70%);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    font-size: 18px;
}

.section-link {
    color: var(--text-secondary);
    font-size: 13px;
    transition: color var(--transition);
}

.section-link:hover {
    color: var(--accent-red);
}

.sub-nav {
    display: flex;
    gap: 8px;
    max-width: var(--max-width);
    margin: 0 auto 20px;
    padding: 0 16px;
    flex-wrap: wrap;
}

.sub-nav-btn {
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition);
}

.sub-nav-btn:hover,
.sub-nav-btn.active {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.data-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.data-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 6px;
    background: rgba(0,0,0,0.2);
}

.data-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.data-card-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

.badge-live {
    background: var(--accent-red);
    color: white;
}

.badge-hot {
    background: var(--accent-orange);
    color: white;
}

.badge-new {
    background: #22c55e;
    color: white;
}

.data-card-date {
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.data-card-numbers {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    justify-content: center;
}

.number-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-yellow);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
}

.data-card-footer {
    padding: 6px 12px 10px;
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   GAME SECTIONS (Trending & New)
   ============================================ */
.games-section {
    padding: 40px 0;
}

.game-carousel-wrapper {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.game-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
}

.game-carousel::-webkit-scrollbar {
    display: none;
}

.game-card {
    min-width: calc((100% - 72px) / 7);
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-lg);
}

.game-card:hover .game-card-img {
    transform: scale(1.05);
}

.game-card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.game-card-number {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.game-card-name {
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.carousel-arrow:hover {
    background: var(--accent-red);
}

.left-arrow { left: -18px; }
.right-arrow { right: -18px; }

/* ============================================
   PROVIDERS
   ============================================ */
.providers-section {
    padding: 20px 0 40px;
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    cursor: pointer;
    min-height: 50px;
}

.provider-card:hover {
    border-color: var(--accent-red);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.provider-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-align: center;
}

.provider-view-all {
    text-align: center;
    margin-top: 20px;
}

.view-all-btn {
    padding: 10px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}

.view-all-btn:hover {
    border-color: var(--accent-red);
    color: white;
}

/* ============================================
   PROMOTION SECTION
   ============================================ */
.promo-section {
    padding: 40px 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.promo-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition);
}

.promo-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-lg);
}

.promo-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* ============================================
   DOWNLOAD APPLICATION BANNER
   ============================================ */
.download-section {
    padding: 20px 0 40px;
}

.download-banner {
    max-width: var(--max-width);
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition);
}

.download-banner:hover {
    border-color: var(--accent-red);
    box-shadow: var(--shadow-lg);
}

.download-banner-img {
    width: 100%;
    aspect-ratio: 1200 / 260;
    object-fit: cover;
    display: block;
}

/* ============================================
   PAYMENT SECTION
   ============================================ */
.payment-section {
    padding: 30px 0 40px;
    border-top: 1px solid var(--border-color);
}

.payment-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.payment-item:hover {
    border-color: var(--accent-red);
}

.payment-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon svg {
    width: 28px;
    height: 28px;
}

.payment-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.payment-status {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.status-online {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-offline {
    background: rgba(139, 148, 158, 0.15);
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0d1117;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-red);
}

.footer-divider {
    max-width: var(--max-width);
    margin: 24px auto;
    padding: 0 16px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    opacity: 0.6;
    transition: opacity var(--transition);
}

.social-icons a:hover {
    opacity: 1;
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   LIVE CHAT WIDGET
   ============================================ */
.livechat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

.livechat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform var(--transition);
}

.livechat-btn:hover {
    transform: scale(1.05);
}

.livechat-mascot {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
    object-fit: cover;
    background: var(--accent-red);
}

.livechat-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

/* Live Chat Modal */
.livechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.livechat-modal.active {
    display: flex;
}

.livechat-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 360px;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.livechat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-header);
}

.livechat-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.close-modal {
    font-size: 22px;
    color: var(--text-secondary);
    padding: 4px 8px;
    transition: color var(--transition);
}

.close-modal:hover {
    color: white;
}

.livechat-modal-body {
    padding: 24px 20px;
    text-align: center;
}

.livechat-modal-body p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.livechat-modal-body p:first-child {
    font-size: 18px;
    color: white;
    font-weight: 600;
}

.livechat-modal-footer {
    padding: 12px 20px 16px;
    text-align: center;
}

.close-modal-btn {
    padding: 10px 32px;
    background: var(--accent-red);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.close-modal-btn:hover {
    background: var(--accent-red-dark);
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    z-index: 998;
}

.sticky-cta-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-red);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 1px;
    transition: all var(--transition);
}

.sticky-cta-btn:hover {
    box-shadow: var(--shadow-glow);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .data-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .game-card {
        min-width: calc((100% - 36px) / 4);
    }

    .provider-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-grid .promo-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .payment-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 52px;
    }

    .menu-btn {
        display: flex;
    }

    .header-download {
        display: none;
    }

    .search-box {
        display: none;
    }

    .btn-masuk {
        padding: 6px 12px;
        font-size: 12px;
    }

    .btn-daftar {
        padding: 6px 12px;
        font-size: 12px;
    }

    .category-nav {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .category-nav::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        padding: 12px 8px;
        min-width: 70px;
    }

    .category-icon {
        font-size: 20px;
    }

    .category-label {
        font-size: 10px;
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .data-grid::-webkit-scrollbar {
        display: none;
    }

    .game-card {
        min-width: calc((100% - 24px) / 3);
    }

    .provider-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .promo-grid .promo-card:last-child {
        max-width: 100%;
    }

    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .livechat-mascot {
        width: 56px;
        height: 56px;
    }

    .livechat-label {
        font-size: 10px;
    }

    .mobile-sticky-cta {
        display: block;
    }

    .livechat-widget {
        bottom: 80px;
        right: 12px;
    }

    .hero-carousel {
        aspect-ratio: 16 / 9;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .section-title {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .game-card {
        min-width: calc((100% - 16px) / 2.5);
    }

    .provider-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .number-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 24px;
    }

    .carousel-arrow {
        display: none;
    }
}

/* ============================================
   UTILITY & ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* WRAPPER ISOLATED SCOPE */
.kuat-scope {
    width: 100%;
    max-width: 1100px;
    margin: 35px auto;
    padding: 24px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #e5e7eb;
}

/* 1. GIMMICK RATING & DASHBOARD BADGE (ANIMASI FLOATING BORDER GLOW) */
.kuat-rating-box {
    background: linear-gradient(135deg, rgba(20, 24, 40, 0.95), rgba(10, 12, 24, 0.9));
    border-radius: 20px;
    padding: 22px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: floatGlow 5s infinite ease-in-out alternate;
}

@keyframes floatGlow {
    0% {
        transform: translateY(0px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 205, 5, 0.15);
    }
    100% {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 205, 5, 0.4);
    }
}

.kuat-stars {
    font-size: 26px;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
    letter-spacing: 3px;
}

.kuat-badge-status {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kuat-pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: radarPulse 1.5s infinite ease-out;
}

@keyframes radarPulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* 2. KONTEN & GRADIENT TEXT ANIMATED */
.kuat-content-body {
    margin-top: 35px;
    line-height: 1.85;
    color: #cbd5e1;
    font-size: 15px;
}

.kuat-content-body h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 18px;
    background: linear-gradient(270deg, #ffd700, #ffffff, #f59e0b, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s ease infinite;
    font-weight: 800;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 10px;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.kuat-content-body p {
    margin-bottom: 18px;
    text-align: justify;
}

/* 3. TESTIMONI GRID 3D ROTATION ON HOVER */
.kuat-section-title {
    text-align: center;
    font-size: 24px;
    color: #ffd700;
    margin: 50px 0 25px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.kuat-testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    perspective: 1000px;
}

.kuat-testi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.kuat-testi-card:hover {
    transform: rotateY(-8deg) rotateX(4deg) translateY(-6px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.05);
}

.kuat-testi-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.kuat-user-id {
    font-weight: 700;
    color: #ffd700;
    font-size: 14px;
}

.kuat-user-tag {
    font-size: 11px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.kuat-testi-msg {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
    line-height: 1.5;
}

/* 4. INTERACTIVE FAQ TOGGLE ACCORDION */
.kuat-faq-container {
    margin-top: 45px;
}

.kuat-faq-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.kuat-faq-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
}

.kuat-faq-checkbox {
    display: none;
}

.kuat-faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.04), transparent);
    transition: background 0.3s ease, color 0.3s ease;
}

.kuat-faq-header:hover {
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
}

.kuat-faq-icon {
    width: 14px;
    height: 14px;
    border-right: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.kuat-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease;
    padding: 0 22px;
    background: rgba(2, 6, 23, 0.5);
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
}

/* TOGGLE EXPAND STATE */
.kuat-faq-checkbox:checked + .kuat-faq-header .kuat-faq-icon {
    transform: rotate(-135deg);
}

.kuat-faq-checkbox:checked ~ .kuat-faq-body {
    max-height: 300px;
    padding: 16px 22px 22px 22px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 640px) {
    .kuat-rating-box { flex-direction: column; text-align: center; }
    .kuat-testi-grid { grid-template-columns: 1fr; }
    .kuat-content-body h2 { font-size: 21px; }
}