/* ----- violet-dark.css (tema abu tua + ungu muda) ----- */

body {
    /* Background gambar tetap, hanya warna fallback yang diubah */
    background: var(--bg-color);
    color: var(--text-first);
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position-x: center !important;
    background-position-y: center !important;
}

:root {
    /* Tema: Dark + Merah */
    --bg-color: #140b0b;                 /* Dark maroon */
    --text-first: #fff1f1;               /* Putih hangat */
    --text-second: #d6a3a3;              /* Abu kemerahan */
    --accent-color: #ff3b3b;             /* MERAH UTAMA */
    --accent-dark: #c91f1f;              /* MERAH GELAP */
    --card-bg: #1f1212;                  /* Card dark merah */
    --card-border: rgba(255,59,59,0.18); /* Border merah */
    --running-text-bg: #1a0d0d;
    --btn-danger-bg: var(--accent-color);
    --btn-danger-hover: var(--accent-dark);
}


body {
    background-color: var(--bg-color);
    color: var(--text-first);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

/* Penyesuaian: Memusatkan konten utama di desktop */
.container {
    max-width: 1200px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Logo --- */
.logo {
    text-align: center;
    padding: 10px 0;
}
.logo img {
    max-width: 150px;
    height: auto;
}

/* =========================================================================
   UX/ANIMATION MODIFICATIONS (Violet Dark Theme)
   ========================================================================= */

/* --- Slider & Running Text Container --- */
.slider-wrapper {
    margin-top: 5px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    /* Shadow lebih tebal */
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    /* Memberi sedikit transisi untuk hover/active state jika diperlukan */
    transition: all 0.3s ease;
}

/* --- Running Text (Marquee) --- */
.running-text {
    background-color: var(--running-text-bg);
    color: var(--accent-color);
    padding: 5px 0;
    font-weight: bold;
    border-bottom: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

/* Animasi border bawah/atas untuk Running Text (animated-border) */
.running-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: 2px solid transparent;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(187,134,252,0.5);
    opacity: 0.7;
    animation: pulseBorder 4s infinite alternate ease-in-out;
}

@keyframes pulseBorder {
    0% { transform: scaleX(0.98); opacity: 0.6; }
    100% { transform: scaleX(1); opacity: 0.85; }
}

.running-text marquee {
    display: block;
    white-space: nowrap;
}
.running-text .marquee-content {
    padding-left: 20px; /* Jarak agar teks tidak menempel */
}

/* --- Slider Images --- */
.slider-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    /* Memberi efek masuk yang lembut */
    transition: transform 0.4s ease-out, filter 0.4s ease-out;
    border-radius: 0; /* Border radius sudah di wrapper */
}

/* Hover effect pada slider image (meskipun biasanya dikontrol Swiper) */
.swiper-slide:hover .slider-img {
    filter: brightness(1.05) contrast(1.03);
}

/* --- Swiper Navigation (Tombol Next/Prev) --- */
.swiper-button-next,
.swiper-button-prev {
    /* Mengganti default style swiper */
    color: var(--accent-color) !important;
    background: rgba(40, 40, 69, 0.6); /* var(--card-bg) semi-transparan */
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-color) !important;
    color: var(--bg-color) !important;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

/* --- Swiper Pagination (Dots) --- */
.swiper-pagination-bullet {
    background-color: var(--text-second) !important;
    opacity: 0.7 !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-color) !important;
    opacity: 1 !important;
    width: 25px !important;
    border-radius: 10px;
    box-shadow: 0 0 8px var(--accent-color);
}

/* --- CTA Button Bawah Slider (LINK ALTERNATIF) - GLOW BUTTON --- */
.glow-btn {
    /* Menggunakan kelas btn-credit dan di-override */
    font-size: 1.05rem !important;
    padding: 12px 30px !important;
    width: 100%;
    max-width: 400px;
    background: var(--accent-color);
    color: var(--bg-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.4s ease-in-out;
    border: 2px solid var(--accent-color);
}

.glow-btn::before {
    content: '';
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(187,134,252,0.6) 50%, rgba(187,134,252,0) 100%);
    display: block;
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}

.glow-btn:hover::before {
    opacity: 1;
}

.glow-btn:hover {
    box-shadow: 0 0 20px rgba(187,134,252,0.8), 0 0 40px rgba(187,134,252,0.5);
    transform: translateY(-3px) scale(1.01);
}


/* --- Filter Chips (Tabs) --- */
.filter-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: var(--card-bg);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.filter-chips .chip {
    padding: 8px 18px;
    border-radius: 999px; /* Pill shape */
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-second);
    background-color: var(--bg-color); /* Latar belakang chip normal */
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(.22,.9,.35,1);
    text-decoration: none;
    cursor: pointer;
}

.filter-chips .chip:hover:not(.active) {
    color: var(--text-first);
    background-color: rgba(187,134,252,0.08); /* Ungu muda transparan saat hover */
    border-color: rgba(187,134,252,0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.filter-chips .chip.active {
    color: var(--bg-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(187,134,252,0.7);
    transform: scale(1.05);
}

/* Glow on hover untuk chip non-aktif */
.glow-on-hover:hover:not(.active) {
    box-shadow: 0 0 10px rgba(187,134,252,0.4), 0 0 20px rgba(187,134,252,0.2);
}

@media (max-width: 575.98px) {
    .filter-chips {
        justify-content: space-around;
        gap: 8px;
        padding: 8px;
    }
    .filter-chips .chip {
        flex: 1 1 30%; /* Membuat chip responsif */
        text-align: center;
    }
}
/* --- Login & Daftar Buttons (PERUBAHAN UTAMA: Dibuat 1 baris) --- */
.row.g-0 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    gap: 10px;
}

.row.g-0 > div {
    flex: 1;
    max-width: 50%;
}

.btn-credit {
    padding: 13px 15px;
    font-size: 1.1rem;
    border-radius: 12px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: bold;
    border: none;
    transition: background-color 0.25s, transform 0.1s, box-shadow 0.25s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 0 12px rgba(187,134,252,0.08);
}

.btn-credit:hover {
    background-color: var(--accent-dark);
    color: var(--text-first);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 18px rgba(187,134,252,0.12);
}

/* ---------- Tombol: satu baris ---------- */
.btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn-row .btn-col {
  flex: 1 1 0;
  min-width: 120px;
}

.btn-row .btn-credit {
  width: 100%;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .btn-row {
    flex-direction: column;
  }
}

/* ============================
    FORCE HORIZONTAL SWIPE FOR PROVIDERS
    ============================ */

.icon-prov {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    gap: 10px !important;
    padding: 6px 6px !important;
    align-items: center !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.icon-prov::-webkit-scrollbar { display: none; }

.item-prov {
    flex: 0 0 auto !important;
    width: 160px !important;
    min-width: 120px !important;
    max-width: 180px !important;
    scroll-snap-align: start;
    margin-bottom: 0 !important;
}

.icon-prov { cursor: grab; }
.icon-prov.dragging { cursor: grabbing; }

@media (min-width: 768px) {
    .icon-prov {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
    }
    .item-prov {
        width: 140px !important;
        min-width: 120px !important;
        max-width: 180px !important;
    }
}

.item-prov .icon-card-bg {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.item-prov p {
    margin-bottom: 0;
}

/* Media Query untuk Desktop/Tablet */
@media (min-width: 768px) {
    .icon-prov {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: hidden;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .item-prov {
        width: calc(33.33% - 10px);
        max-width: unset;
        min-width: unset;
        margin-bottom: 10px;
    }
}

.icon-card-bg {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 18px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}

.icon-card-bg:hover,
.icon-card-bg.active {
    background: linear-gradient(180deg, rgba(187,134,252,0.06), rgba(187,134,252,0.03));
    border-color: rgba(187,134,252,0.35);
    color: var(--bg-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.7), 0 0 26px rgba(187,134,252,0.08);
    backdrop-filter: saturate(110%);
}

.icon-card-bg p {
    font-size: 11px;
    margin-top: 5px;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-second);
}

.icon-card-bg:hover p,
.icon-card-bg.active p {
    color: var(--text-first);
}

.img-prov {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 6px auto 2px;
}

/* --- Game Section --- */
.bg-theme {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 70px;
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.title-game {
    color: var(--accent-color);
    font-weight: bold;
    border-bottom: 2px solid rgba(187,134,252,0.08);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.lni {
    color: var(--accent-color);
}

/* --- RTP Card (hover zoom + btn-play muncul) --- */
.rtp-card {
    background-color: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 0 12px rgba(187,134,252,0.03);
}

.place-img-rtp {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.rtp-card-img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(.22,.9,.35,1), filter 0.4s;
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.rtp-card:hover .place-img-rtp .rtp-card-img,
.place-img-rtp:hover .rtp-card-img {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.03);
}

.place-img-rtp::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: rgba(0,0,0,0);
    transition: background-color 0.35s;
}
.rtp-card:hover .place-img-rtp::after,
.place-img-rtp:hover::after {
    background-color: rgba(0,0,0,0.06);
}

.btn-play {
    z-index: 9999;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 8px 15px;
    border-radius: 999px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(.22,.9,.35,1);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 18px rgba(187,134,252,0.08);
}

.rtp-card:hover .btn-play,
.place-img-rtp:hover + .btn-play,
.place-img-rtp:hover .btn-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.btn-play {
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

@media (hover: none) {
  .btn-play { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
}

/* --- Pola Wrapper --- */
.pola-wrapper {
    background-color: var(--card-bg);
    padding: 10px;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.55);
}

.icon-providers img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

.pola-wrapper h4 {
    font-size: 1rem;
    color: var(--text-first);
    margin-bottom: 5px;
}

.pola-wrapper hr {
    border-top: 1px solid var(--card-border);
    margin: 5px 0;
}

.table-pola {
    width: 100%;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-second);
}

.table-pola tbody tr td {
    padding: 3px 2px;
    border: none;
}

.pola-title {
    font-weight: 600;
    color: var(--accent-color);
}

.cell-pola i.lni {
    font-size: 1.2rem;
}

.warn-cell {
    color: var(--accent-color);
    font-weight: bold;
    padding: 10px 0 !important;
}

/* --- Jam Gacor --- */
.horizontal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

.horizontal-container h5 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-second);
}

/* --- Percent Bar (RTP) --- */
.percent {
    position: relative;
    height: 30px;
    background-color: #33334f; /* Darker than card-bg for contrast */
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.percent p {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    font-size: 1rem;
    margin: 0;
    color: #fff; /* Teks di atas bar */
}

.percent-bar {
    position: relative;
    height: 100%;
    transition: width 0.6s ease;
    overflow: hidden;
    border-radius: 8px;
}

/* shimmer */
.percent-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255,255,255,0.45) 50%,
        transparent 100%
    );
    opacity: 0.5;
    transform: skewX(-20deg);
    pointer-events: none;
    filter: blur(6px);
    animation: barShimmer 2.6s ease-in-out infinite;
}
@keyframes barShimmer {
    0%   { left: -100%; }
    50%  { left: 20%; }
    100% { left: 120%; }
}

/* ---------------------------
    WARNA PERCENT: MERAH / KUNING / UNGU
    --------------------------- */

/* LOW (Merah) */
.percent-red {
    background: linear-gradient(90deg, #ff6b6b 0%, #e63946 100%);
    animation: barGlowRed 3s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(230,57,70, .7);
    color: #fff;
}
@keyframes barGlowRed {
    0% { box-shadow: 0 0 6px rgba(230,57,70,.35); }
    50% { box-shadow: 0 0 18px rgba(230,57,70,.75); }
    100% { box-shadow: 0 0 6px rgba(230,57,70,.35); }
}

/* MEDIUM (Kuning) */
.percent-yellow {
    background: linear-gradient(90deg, #f5bc05 0%, #cf9c00 100%);
    animation: barGlowYellow 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255,205,64, .6);
    color: #1a1203; /* teks lebih gelap agar kontras di kuning */
}
@keyframes barGlowYellow {
    0% { box-shadow: 0 0 6px rgba(255,205,64,.35); }
    50% { box-shadow: 0 0 20px rgba(255,205,64,.75); }
    100% { box-shadow: 0 0 6px rgba(255,205,64,.35); }
}

/* HIGH (Ungu) - Menggantikan Hijau */
.percent-purple {
    background: linear-gradient(90deg, #e0aaff 0%, #03ff3d 100%);
    animation: barGlowPurple 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(187,134,252, .5);
    color: #1a1a2e; /* Teks gelap agar kontras di warna ungu muda */
}

/* Mendefinisikan class yang diminta user (percent-green) agar mengacu ke ungu */
.percent-green { /* Ini adalah pengganti untuk permintaan warna hijau menjadi ungu */
    background: linear-gradient(90deg, #8cffa3 0%, #00e81f 100%);
    animation: barGlowPurple 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(187,134,252, .5);
    color: #1a1a2e;
}


@keyframes barGlowPurple {
    0% { box-shadow: 0 0 6px rgba(187,134,252,.28); }
    50% { box-shadow: 0 0 22px rgba(187,134,252,.6); }
    100% { box-shadow: 0 0 6px rgba(187,134,252,.28); }
}


/* --- Footer (Content Home) --- */
.content-home {
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid var(--card-border);
}

.content-home h2, .content-home h3, .content-home h4 {
    color: var(--accent-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.content-home p, .content-home li {
    color: var(--text-second);
    line-height: 1.6;
    margin-bottom: 10px;
}

.content-home li {
    list-style: none;
    padding: 3px 0;
}

/* --- Scroll Up Button --- */
.btn-up {
    position: fixed;
    bottom: 80px;
    right: 15px;
    z-index: 999;
    background-color: var(--btn-danger-bg) !important;
    border: none !important;
    color: var(--bg-color);
    padding: 10px 12px;
    border-radius: 50%;
    transition: background-color 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.btn-up:hover {
    background-color: var(--btn-danger-hover) !important;
}
.btn-up i.lni {
    color: var(--bg-color);
}

/* --- Bottom Nav (Fixed) --- */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-top: 2px solid rgba(187,134,252,0.12);
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    z-index: 1000;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.6);
}

.item-nav-bottom {
    text-align: center;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.2s;
}

.item-nav-bottom i.lni {
    font-size: 1.4rem;
    margin-bottom: 2px;
    color: var(--text-second);
    transition: color 0.2s;
}

.item-nav-bottom p {
    font-size: 0.7rem;
    margin: 0;
    color: var(--text-second);
}

.item-nav-bottom:hover i.lni,
.item-nav-bottom:hover p {
    color: var(--accent-color);
}

/* --- Modal Styling --- */
.modal-content {
    background-color: var(--card-bg);
}

.modal-header {
    border-bottom: 1px solid var(--card-border);
}

.modal-title, .modal-body p, .modal-body a {
    color: var(--text-first) !important;
}

.modal-body a {
    color: var(--accent-color) !important;
    font-weight: bold;
}

.btn-close {
    filter: invert(1);
}

/* Gaya untuk tampilan horizontal yang dapat di-swipe (Mobile-first) */
.icon-prov {
    display: flex;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 5px 0;
    gap: 5px;
    margin-bottom: 0;
}

.icon-prov::-webkit-scrollbar {
    display: none;
}
.icon-prov {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.item-prov {
    flex-shrink: 0;
    width: 25%;
    min-width: 100px;
    max-width: 120px;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .icon-prov {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: hidden;
        gap: 8px;
        padding: 5px 0;
        margin-bottom: 0;
    }

    .item-prov {
        width: calc(33.33% - 8px);
        min-width: unset;
        max-width: unset;
        margin-bottom: 10px;
    }
}

/* CSS Swiper Slide */
.swiper-slide {
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.swiper.slider {
    width: 100%;
    height: auto;
    padding-bottom: 25px;
}

/* --- Running Text (Marquee) MODIFIED --- */
.running-text {
    background-color: var(--running-text-bg);
    color: var(--accent-color);
    padding: 5px 0;
    font-weight: bold;
    border-bottom: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    /* Tambahkan box-shadow untuk efek kedipan glow di sekitar area marquee */
    box-shadow: 0 0 10px rgba(187,134,252,0.15);
    animation: textGlowPulse 5s infinite ease-in-out;
}

/* Animasi border bawah/atas untuk Running Text (animated-border) */
.running-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: 2px solid transparent;
    border-bottom: 2px solid var(--accent-color);
    /* Ganti box-shadow agar tidak bertabrakan dengan animasi glow di parent */
    box-shadow: 0 0 5px rgba(187,134,252,0.5);
    opacity: 0.7;
    animation: pulseBorder 4s infinite alternate ease-in-out;
}

@keyframes pulseBorder {
    0% { transform: scaleX(0.98); opacity: 0.6; }
    100% { transform: scaleX(1); opacity: 0.85; }
}

.running-text marquee {
    display: block;
    white-space: nowrap;
}

.running-text .marquee-content {
    padding-left: 20px;
    position: relative;
    display: inline-block;
    /* Efek teks glow/kedipan */
    text-shadow: 0 0 2px var(--accent-color), 0 0 6px var(--accent-color);
    animation: textFlicker 3s infinite alternate;
}

/* Animasi: Glow Pulse untuk area Marquee */
@keyframes textGlowPulse {
    0% { box-shadow: 0 0 8px rgba(187,134,252,0.1); }
    50% { box-shadow: 0 0 15px rgba(187,134,252,0.35); }
    100% { box-shadow: 0 0 8px rgba(187,134,252,0.1); }
}

/* Animasi: Kedipan (Flicker) pada Teks */
@keyframes textFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 4px var(--accent-color), 0 0 10px var(--accent-color);
        color: var(--accent-color);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        color: var(--text-second);
        opacity: 0.8;
    }
}
/* ---------- Provider arrows ---------- */
.prov-wrapper { position: relative; }

.prov-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.03);
    color: var(--text-first);
    z-index: 30;
    cursor: pointer;
    transition: transform .12s, opacity .18s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.prov-arrow i { font-size: 18px; line-height: 1; }

.prov-arrow:hover { transform: translateY(-50%) scale(1.05); }

.prov-arrow-left  { left: 6px; }
.prov-arrow-right { right: 6px; }

.prov-arrow.hidden { opacity: 0; pointer-events: none; }
.prov-arrow.at-start { opacity: 0.35; pointer-events: none; }
.prov-arrow.at-end   { opacity: 0.35; pointer-events: none; }

@media (min-width: 768px) {
}

/* --- Login & Daftar: satu baris (desktop) --- */
.login-daftar-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.login-daftar-row .btn-credit {
    flex: 1 1 0;
    min-width: 140px;
    max-width: 260px;
    white-space: nowrap;
}

.login-daftar-row .login-btn { }
.login-daftar-row .daftar-btn { }

@media (max-width: 575.98px) {
    .login-daftar-row {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0 10px;
    }

    .login-daftar-row .btn-credit {
        max-width: 100%;
        width: 100%;
    }
}

/* === Perbaikan: tombol LOGIN + DAFTAR sejajar & sama ukuran === */
.btn-row.d-flex{
    display: flex !important;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.btn-row.d-flex .btn-col{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.btn-row.d-flex .btn-credit,
.btn-row.d-flex .btn-credit.w-100 {
    width: 260px !important;
    min-width: 180px;
    max-width: 320px;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .btn-row.d-flex {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px 10px;
    }

    .btn-row.d-flex .btn-col {
        width: 100%;
        justify-content: center;
    }

    .btn-row.d-flex .btn-credit,
    .btn-row.d-flex .btn-credit.w-100 {
        width: 100% !important;
        max-width: none;
    }
}

/* ===== Mobile: hide btn-play kecuali saat di-tap (mobile-active) ===== */
@media (hover: none) {
    .place-img-rtp .btn-play {
        opacity: 0 !important;
        transform: translate(-50%, -50%) scale(0.85) !important;
        transition: opacity 0.28s ease, transform 0.28s cubic-bezier(.22,.9,.35,1);
    }

    .place-img-rtp .rtp-card-img {
        transition: transform 0.6s cubic-bezier(.22,.9,.35,1), filter 0.4s;
        transform: none !important;
        will-change: transform;
    }

    .place-img-rtp.mobile-active .rtp-card-img {
        transform: scale(1.12) !important;
        filter: saturate(1.05) contrast(1.03);
    }

    .place-img-rtp.mobile-active .btn-play {
        opacity: 1 !important;
        transform: translate(-50%, -50%) scale(1) !important;
        pointer-events: auto !important;
        z-index: 20;
        box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    }

    .place-img-rtp::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-color: rgba(0,0,0,0);
        transition: background-color 0.25s;
    }
    .place-img-rtp.mobile-active::after {
        background-color: rgba(0,0,0,0.06);
    }
}

@media (hover:none) {
    .place-img-rtp .rtp-card-img {
        pointer-events: auto !important;
    }
}

/* RIBBON HOT BADGE (warna diubah ke ungu muda) */
.hot-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 22px;
    font-size: 12px;
    font-weight: 800;
    color: #1a1a2e; /* Warna teks diubah ke warna background utama */
    letter-spacing: .55px;
    text-transform: uppercase;
    clip-path: polygon(
        0 0,
        88% 0,
        100% 50%,
        88% 100%,
        0 100%
    );
    background: linear-gradient(90deg, #00ff73 0%, #00d126 100%);
    box-shadow:
        0 0 10px rgba(187,134,252, .45),
        0 0 22px rgba(187,134,252, .25),
        inset 0 0 6px rgba(255,255,255,.12);
    overflow: hidden;
    animation:
        rbIn 380ms cubic-bezier(.22,1,.36,1) both,
        rbGlow 3.2s ease-in-out infinite,
        rbFloat 4s ease-in-out infinite;
}

.hot-badge .hot-icon {
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,.8);
}

.hot-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255,255,255,.6) 50%,
        transparent 100%
    );
    filter: blur(6px);
    opacity: .6;
    transform: skewX(-25deg);
    animation: rbShimmer 2.2s ease-in-out infinite;
}

@keyframes rbIn {
    0%   { opacity: 0; transform: translateY(-6px) scale(.96); filter: blur(1px); }
    60%  { opacity: 1; transform: translateY(0) scale(1.03); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rbGlow {
    0% {
        box-shadow:
            0 0 8px rgba(187,134,252, .35),
            0 0 20px rgba(187,134,252, .18),
            inset 0 0 6px rgba(255,255,255,.12);
    }
    50% {
        box-shadow:
            0 0 16px rgba(187,134,252, .6),
            0 0 35px rgba(187,134,252, .28),
            inset 0 0 8px rgba(255,255,255,.18);
    }
    100% {
        box-shadow:
            0 0 8px rgba(187,134,252, .35),
            0 0 20px rgba(187,134,252, .18),
            inset 0 0 6px rgba(255,255,255,.12);
    }
}

@keyframes rbShimmer {
    0%   { left: -130%; opacity: 0.35; }
    50%  { left: 20%; opacity: .9; }
    100% { left: 150%; opacity: 0.35; }
}

@keyframes rbFloat {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-4px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

.text-white {
    color: #ffffff;
}

a {
    color: #f0f0ff; /* Sesuai dengan text-first baru */
    text-decoration: none;
}

a:hover {
    color: #f0f0ff;
    text-decoration: none;
}

/* End of file */