/* ============================================================
   RTP Live Slot — Standalone Frontend
   Palette: Gold + Dark (selaras dengan brand portal Laravel)
   ============================================================ */
:root {
    --rtp-bg:            #0b0903;
    --rtp-bg-elev:       #14100a;
    --rtp-surface:       #1a1408;
    --rtp-surface-2:     #221a0a;
    --rtp-border:        rgba(214, 167, 58, 0.28);
    --rtp-border-soft:   rgba(214, 167, 58, 0.14);
    --rtp-text:          #fff8dc;
    --rtp-text-muted:    #c8b36b;
    --rtp-text-dim:      #8a7a4a;
    --rtp-gold:          #f4d26a;
    --rtp-gold-deep:     #d6a73a;
    --rtp-red:           #e73e4f;
    --rtp-yellow:        #f8cd4d;
    --rtp-green:         #3adf60;
    --rtp-shadow:        0 4px 14px rgba(0, 0, 0, 0.4);
    --rtp-shadow-card:   0 6px 18px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(244, 210, 106, 0.05) inset;
    --rtp-radius:        10px;
    --rtp-radius-sm:     6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.rtp-body {
    font-family: 'Ancizar Sans', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(1200px 600px at 50% -200px, rgba(244, 210, 106, 0.08), transparent 60%),
        var(--rtp-bg);
    color: var(--rtp-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.rtp-main { min-height: 100vh; position: relative; }
.rtp-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px 80px;
}

/* ============ Header ============ */
.rtp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    border-bottom: 1px solid var(--rtp-border-soft);
    margin-bottom: 18px;
}
.rtp-brand { display: flex; align-items: center; gap: 10px; }
.rtp-brand-icon { color: var(--rtp-gold); font-size: 32px !important; }
.rtp-brand-logo { height: 40px; width: auto; object-fit: contain; }
.rtp-brand-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--rtp-gold), var(--rtp-gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rtp-header-actions { display: flex; gap: 8px; }

.rtp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--rtp-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--rtp-border);
    background: transparent;
    color: var(--rtp-text);
    text-decoration: none;
    transition: background .2s, transform .15s, color .2s;
}
.rtp-btn .material-icons { font-size: 18px !important; }
.rtp-btn:hover { background: rgba(244, 210, 106, 0.1); }
.rtp-btn-ghost { background: var(--rtp-surface); }
.rtp-btn-primary {
    background: linear-gradient(135deg, var(--rtp-gold), var(--rtp-gold-deep));
    color: #1a1203;
    border-color: transparent;
}
.rtp-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ============ Provider slider ============ */
.rtp-provider-section { margin: 0; padding: 10px 6px; background: linear-gradient(180deg, rgba(244, 210, 106, 0.04), transparent 60%); }
.rtp-provider-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 4px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--rtp-gold-deep) transparent;
    justify-content: flex-start;
}
.rtp-provider-slider::-webkit-scrollbar { height: 6px; }
.rtp-provider-slider::-webkit-scrollbar-thumb {
    background: var(--rtp-gold-deep);
    border-radius: 3px;
}

.rtp-provider-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 86px;
    cursor: pointer;
    padding: 8px 6px;
    border-radius: var(--rtp-radius-sm);
    transition: background .2s, transform .15s, border-color .2s;
    background: rgba(26, 20, 8, 0.88);
    border: 1px solid var(--rtp-border-soft);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.rtp-provider-item:hover {
    background: rgba(244, 210, 106, 0.18);
    border-color: var(--rtp-gold-deep);
    transform: translateY(-2px);
}
.rtp-provider-item.active {
    background: rgba(244, 210, 106, 0.22);
    border-color: var(--rtp-gold);
    box-shadow: 0 0 0 2px var(--rtp-gold-deep) inset, 0 4px 12px rgba(244, 210, 106, 0.25);
}
.rtp-provider-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform .2s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.rtp-provider-item:hover img { transform: scale(1.08); }
.rtp-provider-item .rtp-prov-name {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--rtp-gold);
    text-align: center;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.rtp-provider-item.active .rtp-prov-name { color: #fff8dc; }

@media (min-width: 640px) {
    .rtp-provider-slider { justify-content: center; gap: 24px; }
}

/* skeleton */
.rtp-skeleton-row { display: flex; gap: 20px; }
.rtp-skel-prov {
    width: 72px; height: 72px;
    border-radius: var(--rtp-radius-sm);
    background: linear-gradient(90deg, var(--rtp-surface) 0%, var(--rtp-surface-2) 50%, var(--rtp-surface) 100%);
    background-size: 200% 100%;
    animation: rtpShimmer 1.4s infinite;
}
@keyframes rtpShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============ Info card ============ */
.rtp-info-card {
    background: var(--rtp-surface);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius);
    box-shadow: var(--rtp-shadow);
    padding: 14px 16px;
    margin: 12px 0 18px;
}
.rtp-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
}
@media (min-width: 640px) {
    .rtp-info-grid { grid-template-columns: 2fr 1fr; }
}
.rtp-info { padding: 4px; display: flex; flex-direction: column; gap: 8px; }
.rtp-info-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.rtp-info-ic { color: var(--rtp-gold) !important; font-size: 20px !important; }
.rtp-info-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rtp-text);
}
.rtp-stars { display: inline-flex; gap: 2px; }
.rtp-star { color: var(--rtp-gold) !important; font-size: 16px !important; }

.rtp-search {
    position: relative;
    width: 100%;
}
.rtp-search-ic {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rtp-text-dim) !important;
    font-size: 18px !important;
    pointer-events: none;
}
.rtp-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: var(--rtp-bg-elev);
    border: 1px solid var(--rtp-border);
    border-radius: var(--rtp-radius-sm);
    color: var(--rtp-text);
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.rtp-search input::placeholder { color: var(--rtp-text-dim); }
.rtp-search input:focus {
    border-color: var(--rtp-gold);
    box-shadow: 0 0 0 2px rgba(244, 210, 106, 0.25);
}

/* ============ Game grid ============ */
.rtp-grid-wrapper { margin-top: 6px; }
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 0;
}
@media (min-width: 900px) {
    .rtp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rtp-card {
    position: relative;
    background: var(--rtp-surface);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius);
    padding: 14px;
    box-shadow: var(--rtp-shadow-card);
    overflow: hidden;
}
.rtp-card-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 600px) {
    .rtp-card-inner { flex-direction: row; }
}
.rtp-card-img-wrap { width: 100%; }
@media (min-width: 600px) { .rtp-card-img-wrap { width: 48%; } }
.rtp-card-img {
    position: relative;
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius-sm);
    overflow: hidden;
    background: var(--rtp-bg-elev);
}
.rtp-card-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.rtp-noimg {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4 / 3; color: var(--rtp-text-dim); font-size: 11px;
}
.rtp-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(11, 9, 3, 0.7);
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 5;
    pointer-events: none;
}
.rtp-card-img:hover .rtp-card-play,
.rtp-card-img-wrap:hover .rtp-card-play,
.rtp-card:hover .rtp-card-play {
    opacity: 1;
    pointer-events: auto;
}
.rtp-card-play .rtp-btn {
    font-size: 12px;
    padding: 8px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    position: relative;
    z-index: 6;
}
.rtp-card-play .rtp-btn-primary {
    background: linear-gradient(135deg, var(--rtp-gold), var(--rtp-gold-deep)) !important;
    color: #1a1203 !important;
    border-color: transparent !important;
}

.rtp-card-name {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--rtp-text);
}

/* Simulasi button on card */
.rtp-card-sim-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 7px 10px;
    background: rgba(244, 210, 106, 0.08);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius-sm);
    color: var(--rtp-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
}
.rtp-card-sim-btn:hover {
    background: linear-gradient(135deg, var(--rtp-gold), var(--rtp-gold-deep));
    color: #1a1203;
    border-color: transparent;
    transform: translateY(-1px);
}
.rtp-card-sim-btn .material-icons {
    font-size: 16px !important;
}

.rtp-card-pola-wrap { width: 100%; }
@media (min-width: 600px) { .rtp-card-pola-wrap { width: 52%; } }

.rtp-pola {
    background: #000;
    border-radius: var(--rtp-radius-sm);
    padding: 10px 12px;
    box-shadow: inset 0 1px 0 rgba(244, 210, 106, 0.05);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.rtp-pola-head {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: #fff;
}
.rtp-pola-head .material-icons { color: var(--rtp-gold) !important; font-size: 14px !important; }
.rtp-pola-head img { width: 22px; height: 22px; object-fit: contain; }
.rtp-pola-sep { border: none; border-top: 1px solid #2a2a2a; margin: 6px 0; }

.rtp-pola-content { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 60px; }
.rtp-pola-table { width: 100%; font-size: 10px; color: #fff; border-collapse: collapse; }
.rtp-pola-table tr {
    display: flex; justify-content: space-between; align-items: center; padding: 1px 2px;
}
.rtp-pola-table td.rtp-checks { display: inline-flex; gap: 3px; align-items: center; }
.rtp-check-ok { color: #00ff66; font-weight: bold; }
.rtp-check-no { color: #ff4d4d; font-weight: bold; }
.rtp-pola-na { font-size: 12px; text-align: center; }
.rtp-pola-na .red { color: var(--rtp-red); font-weight: 700; }

.rtp-pola-gacor {
    margin-top: 10px;
    font-size: 11px; font-weight: 700; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.rtp-pola-gacor .material-icons { color: var(--rtp-gold) !important; font-size: 14px !important; }

.rtp-percent {
    margin-top: 10px;
    position: relative;
    height: 22px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--rtp-border-soft);
}
.rtp-percent-fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(155,155,155,.3) 25%, transparent 25%, transparent 50%, rgba(155,155,155,.3) 50%, rgba(155,155,155,.3) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    animation: rtpStripes 1.2s linear infinite;
}
@keyframes rtpStripes { from { background-position: 0 0; } to { background-position: 20px 0; } }
.rtp-percent-label {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #000;
}

/* Badge */
.rtp-badge {
    position: absolute;
    top: 0; left: 14px;
    width: 44px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 10px; font-weight: 700;
    z-index: 2;
    clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 50% 100%, 0% 70%);
    overflow: hidden;
}
.rtp-badge.hot { background: #e53935; }
.rtp-badge.top { background: #43a047; }
.rtp-badge.viral { background: #fb8c00; }
.rtp-badge.low { background: #b71c1c; }
.rtp-badge::before {
    content: ""; position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
    animation: rtpShine 2.5s infinite;
}
@keyframes rtpShine { 0% { left: -100%; } 50%, 100% { left: 200%; } }

/* skeleton card */
.rtp-skel-card { min-height: 240px; display: flex; flex-direction: column; gap: 8px; }
.rtp-skel-img { width: 100%; aspect-ratio: 1.5/1; border-radius: var(--rtp-radius-sm);
    background: linear-gradient(90deg, var(--rtp-surface-2) 0%, var(--rtp-bg-elev) 50%, var(--rtp-surface-2) 100%);
    background-size: 200% 100%; animation: rtpShimmer 1.4s infinite; }
.rtp-skel-line { height: 12px; border-radius: 4px;
    background: linear-gradient(90deg, var(--rtp-surface-2) 0%, var(--rtp-bg-elev) 50%, var(--rtp-surface-2) 100%);
    background-size: 200% 100%; animation: rtpShimmer 1.4s infinite; }
.rtp-skel-line.short { width: 60%; }

.rtp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    color: var(--rtp-text-muted);
    font-size: 15px;
}

.rtp-loadmore-wrap { display: flex; justify-content: center; margin: 18px 0; }

/* ============ Modal ============ */
.rtp-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.rtp-modal[hidden] { display: none; }
.rtp-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}
.rtp-modal-dialog {
    position: relative;
    background: var(--rtp-surface);
    border: 1px solid var(--rtp-border);
    border-radius: var(--rtp-radius);
    box-shadow: var(--rtp-shadow-card);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}
.rtp-modal-close {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.5); border: none; cursor: pointer;
    color: #fff; padding: 6px; border-radius: 50%;
    z-index: 10;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}
.rtp-modal-close:hover { background: rgba(244, 210, 106, 0.5); }

/* ============ Detail Modal — New Design ============ */
.rtp-d-hero {
    position: relative;
    height: 110px;
    overflow: hidden;
    border-radius: var(--rtp-radius) var(--rtp-radius) 0 0;
}
.rtp-d-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4) saturate(0.6);
    transform: scale(1.2);
}
.rtp-d-hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(11,9,3,0.85) 0%, rgba(26,18,3,0.7) 50%, rgba(11,9,3,0.95) 100%),
        radial-gradient(ellipse at top left, rgba(244,210,106,0.18), transparent 60%);
}
.rtp-d-hero-inner {
    position: relative;
    height: 100%;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px;
}
.rtp-d-hero-img {
    width: 80px; height: 80px;
    border-radius: var(--rtp-radius-sm);
    border: 2px solid var(--rtp-gold);
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.55), 0 0 0 4px rgba(244,210,106,0.15);
}
.rtp-d-hero-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
}
.rtp-d-hero-prov {
    display: flex; align-items: center; gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--rtp-gold);
    font-weight: 600;
}
.rtp-d-hero-prov img { width: 18px; height: 18px; object-fit: contain; }

/* Ring */
.rtp-d-ring-wrap {
    position: relative;
    width: 160px; height: 160px;
    margin: 20px auto 0;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}
.rtp-d-ring { display: block; }
.rtp-d-ring-progress {
    transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.rtp-d-ring-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    pointer-events: none;
}
.rtp-d-ring-pct {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.rtp-d-ring-pct small { font-size: 14px; opacity: 0.85; font-weight: 700; }
.rtp-d-ring-status {
    margin-top: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(0,0,0,0.4);
}

/* Info chips */
.rtp-d-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 20px 4px;
}
.rtp-d-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 10px;
    background: rgba(244, 210, 106, 0.06);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius-sm);
}
.rtp-d-chip .material-icons {
    font-size: 22px !important;
    color: var(--rtp-gold);
    background: rgba(244, 210, 106, 0.12);
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rtp-d-chip .lbl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rtp-text-dim);
    line-height: 1;
    margin-bottom: 3px;
}
.rtp-d-chip .val {
    font-size: 12px;
    font-weight: 700;
    color: var(--rtp-text);
    line-height: 1.1;
}

/* Section heading */
.rtp-d-section-head {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rtp-gold);
    font-weight: 700;
    margin-bottom: 8px;
}
.rtp-d-section-head .material-icons {
    font-size: 16px !important;
}

/* Sparkline */
.rtp-d-spark-wrap {
    padding: 14px 20px 4px;
}
.rtp-d-spark {
    height: 110px;
    background: linear-gradient(180deg, rgba(244,210,106,0.04), transparent);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius-sm);
    padding: 8px;
}
.rtp-d-spark canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Pattern grid */
.rtp-d-pat-wrap {
    padding: 14px 20px 4px;
}
.rtp-pat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.rtp-pat-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px;
    background: rgba(244, 210, 106, 0.05);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius-sm);
}
.rtp-pat-spin {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px;
}
.rtp-pat-mode {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.rtp-mode-auto { background: rgba(58, 223, 96, 0.18); color: #3adf60; }
.rtp-mode-manual { background: rgba(255, 91, 91, 0.18); color: #ff5b5b; }
.rtp-pat-count {
    font-weight: 700;
    color: var(--rtp-text);
}
.rtp-pat-dots {
    display: flex; gap: 4px;
}
.rtp-pat-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px;
    font-weight: 800;
}
.rtp-pat-dot.on { background: rgba(58, 223, 96, 0.22); color: #3adf60; border: 1px solid #3adf60; }
.rtp-pat-dot.off { background: rgba(255, 91, 91, 0.18); color: #ff5b5b; border: 1px solid rgba(255,91,91,0.6); }

/* CTA */
.rtp-d-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 16px 20px 20px;
    padding: 14px;
    background: linear-gradient(135deg, var(--rtp-gold), var(--rtp-gold-deep));
    color: #1a1203 !important;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: var(--rtp-radius-sm);
    box-shadow: 0 6px 16px rgba(244,210,106,0.35);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.rtp-d-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(244,210,106,0.5);
    filter: brightness(1.08);
}
.rtp-d-cta .material-icons {
    font-size: 22px !important;
    color: #1a1203;
}

/* ============ Simulasi Modal ============ */
.rtp-sim-dialog {
    max-width: 440px;
    padding: 20px;
}
.rtp-sim-head {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--rtp-border-soft);
}
.rtp-sim-head .material-icons {
    font-size: 28px !important;
    color: var(--rtp-gold);
    background: rgba(244, 210, 106, 0.12);
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.rtp-sim-head h2 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 800;
}
.rtp-sim-head .sub {
    font-size: 12px;
    color: var(--rtp-text-muted);
    margin-top: 2px;
}
.rtp-sim-rtp {
    margin-left: 6px;
    font-weight: 700;
}

.rtp-sim-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rtp-sim-field .lbl {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rtp-text-dim);
    margin-bottom: 4px;
}
.rtp-sim-input {
    display: flex;
    align-items: center;
    background: var(--rtp-bg-elev);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius-sm);
    overflow: hidden;
    transition: border-color .2s;
}
.rtp-sim-input:focus-within { border-color: var(--rtp-gold); }
.rtp-sim-input.has-error {
    border-color: #ff5b5b;
    box-shadow: 0 0 0 3px rgba(255, 91, 91, 0.15);
    animation: rtpSimShake 0.4s ease;
}
@keyframes rtpSimShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.rtp-sim-error {
    display: flex; align-items: center; gap: 8px;
    margin-top: -4px;
    padding: 8px 12px;
    background: rgba(255, 91, 91, 0.1);
    border: 1px solid rgba(255, 91, 91, 0.35);
    border-radius: var(--rtp-radius-sm);
    color: #ff8a8a;
    font-size: 11px;
    font-weight: 600;
}
.rtp-sim-error .material-icons {
    color: #ff5b5b;
    font-size: 16px !important;
}
.rtp-sim-prefix {
    padding: 0 10px;
    color: var(--rtp-gold);
    font-weight: 700;
    font-size: 13px;
    background: rgba(244, 210, 106, 0.08);
    align-self: stretch;
    display: flex; align-items: center;
}
.rtp-sim-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 12px;
    color: var(--rtp-text);
    font-size: 14px;
    font-weight: 600;
}

.rtp-sim-submit {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 4px;
    padding: 12px;
    background: linear-gradient(135deg, var(--rtp-gold), var(--rtp-gold-deep));
    color: #1a1203;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--rtp-radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(244,210,106,0.3);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.rtp-sim-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 8px 18px rgba(244,210,106,0.45);
}
.rtp-sim-submit .material-icons { color: #1a1203; }

/* Result */
.rtp-sim-result {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--rtp-border-soft);
}
.rtp-sim-chart-wrap {
    position: relative;
    width: 160px; height: 160px;
    margin: 0 auto;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}
.rtp-sim-donut-arc {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.rtp-sim-donut-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.rtp-sim-donut-pct {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.rtp-sim-donut-pct small { font-size: 14px; opacity: 0.85; }
.rtp-sim-donut-lbl {
    margin-top: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rtp-text-muted);
}

.rtp-sim-legend {
    display: flex; justify-content: center; gap: 18px;
    margin: 14px 0 10px;
    font-size: 12px;
    color: var(--rtp-text);
}
.rtp-sim-legend .dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.rtp-sim-legend strong { color: var(--rtp-gold); margin-left: 4px; }

.rtp-sim-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}
.rtp-sim-stat {
    background: rgba(244, 210, 106, 0.05);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius-sm);
    padding: 8px 10px;
}
.rtp-sim-stat .lbl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rtp-text-dim);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.rtp-sim-stat .lbl .material-icons {
    font-size: 12px !important;
    color: var(--rtp-gold);
}
.rtp-sim-stat .val {
    font-size: 13px;
    font-weight: 700;
    color: var(--rtp-text);
}
.rtp-sim-stat.highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(58,223,96,0.12), rgba(58,223,96,0.04));
    border-color: rgba(58,223,96,0.35);
}
.rtp-sim-stat.highlight .val { font-size: 16px; }

/* Jackpot Potensi Menang — center, big, shake */
.rtp-sim-jackpot {
    margin-top: 14px;
    padding: 18px 16px;
    text-align: center;
    background: linear-gradient(135deg, rgba(58,223,96,0.18), rgba(58,223,96,0.04));
    border: 1px solid rgba(58,223,96,0.45);
    border-radius: var(--rtp-radius);
    box-shadow: 0 0 0 1px rgba(58,223,96,0.08), 0 8px 24px rgba(58,223,96,0.18);
    position: relative;
    overflow: hidden;
}
.rtp-sim-jackpot::before {
    content: '';
    position: absolute;
    inset: -50% -10%;
    background: radial-gradient(ellipse at center, rgba(58,223,96,0.22), transparent 60%);
    animation: rtpSimGlow 2.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes rtpSimGlow {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%      { opacity: 0.9;  transform: scale(1.05); }
}
.rtp-sim-jackpot-lbl {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #3adf60;
    margin-bottom: 6px;
}
.rtp-sim-jackpot-lbl .material-icons {
    font-size: 18px !important;
    color: #3adf60;
}
.rtp-sim-jackpot-val {
    position: relative;
    font-size: 30px;
    font-weight: 900;
    color: #3adf60;
    letter-spacing: -0.5px;
    text-shadow:
        0 0 10px rgba(58,223,96,0.55),
        0 2px 6px rgba(0,0,0,0.45);
    display: inline-block;
    animation: rtpSimJackpotShake 0.85s ease-in-out infinite;
    transform-origin: center;
}
@keyframes rtpSimJackpotShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    15%      { transform: translate(-1.5px, 1px) rotate(-1.2deg) scale(1.02); }
    30%      { transform: translate(1.5px, -1px) rotate(1.2deg) scale(1.04); }
    45%      { transform: translate(-1px, 1px) rotate(-0.8deg) scale(1.02); }
    60%      { transform: translate(1px, -0.5px) rotate(0.8deg) scale(1.03); }
    75%      { transform: translate(-0.5px, 0.5px) rotate(-0.4deg) scale(1.01); }
}

.rtp-sim-warn {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 91, 91, 0.1);
    border: 1px solid rgba(255, 91, 91, 0.35);
    border-radius: var(--rtp-radius-sm);
    color: #ff8a8a;
    font-size: 11px;
    font-weight: 600;
}
.rtp-sim-warn .material-icons {
    color: #ff5b5b;
    font-size: 18px !important;
}
.rtp-sim-note {
    margin-top: 10px;
    font-size: 10px;
    color: var(--rtp-text-dim);
    text-align: center;
    font-style: italic;
}

/* Modal body sections */
.rtp-d-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.rtp-d-head img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--rtp-radius-sm); border: 1px solid var(--rtp-border-soft); }
.rtp-d-head h2 { margin: 0; font-size: 18px; }
.rtp-d-head .sub { color: var(--rtp-text-muted); font-size: 12px; }

.rtp-d-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.rtp-d-stat {
    background: var(--rtp-bg-elev);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius-sm);
    padding: 10px 12px;
}
.rtp-d-stat .lbl { font-size: 11px; color: var(--rtp-text-dim); text-transform: uppercase; }
.rtp-d-stat .val { font-size: 15px; font-weight: 700; color: var(--rtp-gold); }

.rtp-d-chart-wrap {
    background: var(--rtp-bg-elev);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius-sm);
    padding: 12px;
    margin-top: 8px;
}
.rtp-d-chart-wrap h4 { margin: 0 0 8px; font-size: 13px; color: var(--rtp-text-muted); text-transform: uppercase; }
.rtp-d-chart-wrap canvas {
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    display: block;
}

/* Scroll-top */
.rtp-scroll-top {
    position: fixed; right: 18px; bottom: 92px;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rtp-gold), var(--rtp-gold-deep));
    color: #1a1203;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rtp-shadow);
    z-index: 50;
    transition: transform .15s;
}
.rtp-scroll-top:hover { transform: translateY(-2px); }
.rtp-scroll-top.show { display: flex; }


/* ============================================================
   NextJS-style sections (Logo, Marquee+Slider flip, Login buttons)
   ============================================================ */
.rtp-logo-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 8px 0 16px;
}
.rtp-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
@media (min-width: 640px) {
    .rtp-logo-img { height: 80px; }
}

/* MarqueeBanner: text strip + flip slider in card */
.rtp-marquee-wrap {
    background: var(--rtp-surface);
    border: 1px solid var(--rtp-border-soft);
    border-radius: var(--rtp-radius) var(--rtp-radius) 0 0;
    box-shadow: var(--rtp-shadow);
    margin-bottom: 8px;
    overflow: hidden;
}
.rtp-marquee-bar {
    background: var(--rtp-bg);
    height: 36px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    border-bottom: 1px solid var(--rtp-border-soft);
}
.rtp-marquee-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 100%;
    background: linear-gradient(135deg, var(--rtp-gold), var(--rtp-gold-deep));
    color: #1a1203;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.rtp-marquee-label .material-icons {
    font-size: 18px !important;
    color: #1a1203;
    animation: rtpToaShake 1.6s ease-in-out infinite;
    transform-origin: 50% 50%;
}
@keyframes rtpToaShake {
    0%, 100% { transform: rotate(0); }
    20%      { transform: rotate(-12deg); }
    40%      { transform: rotate(10deg); }
    60%      { transform: rotate(-6deg); }
    80%      { transform: rotate(4deg); }
}
.rtp-marquee-track {
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: var(--rtp-gold);
    font-size: 13px;
    font-weight: 500;
    animation: rtpMarquee 20s linear infinite;
}
.rtp-marquee-track span { padding-left: 100%; }
@keyframes rtpMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.rtp-marquee-slider-wrap {
    padding: 12px 8px;
    background: var(--rtp-surface);
}
.rtp-slider-flip {
    max-width: 90%;
    margin: 0 auto;
    border-radius: var(--rtp-radius-sm);
    overflow: hidden;
}
@media (min-width: 640px) {
    .rtp-slider-flip { max-width: 60%; }
}
.rtp-slider-img {
    width: 100%;
    aspect-ratio: 7 / 4;
    object-fit: cover;
    border-radius: var(--rtp-radius-sm);
    display: block;
}
.rtp-slider-empty {
    max-width: 90%;
    margin: 0 auto;
    aspect-ratio: 7 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rtp-text-dim);
    border: 1px dashed var(--rtp-border-soft);
    border-radius: var(--rtp-radius-sm);
}

/* Action card: Login/Daftar + Provider slider digabung satu card */
.rtp-action-card {
    background: rgba(11, 9, 3, 0.85);
    border: 1px solid var(--rtp-border);
    border-radius: var(--rtp-radius);
    box-shadow: var(--rtp-shadow);
    overflow: hidden;
    margin-bottom: 12px;
}

/* LoginRegisterButtons: 2-column buttons */
.rtp-login-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #0b0903;
    border-bottom: 1px solid var(--rtp-border-soft);
}
.rtp-lr-btn {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    padding: 12px 8px;
    position: relative;
    transition: filter .2s, transform .15s, box-shadow .2s;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--rtp-gold), var(--rtp-gold-deep));
    color: #1a1203;
}
.rtp-lr-btn:first-child {
    border-right: 2px solid #0b0903;
}
.rtp-lr-btn:hover {
    filter: brightness(1.12) saturate(1.1);
    box-shadow: 0 4px 14px rgba(244, 210, 106, 0.35);
}
.rtp-lr-btn:active {
    transform: translateY(1px);
}

/* Footer copyright */
.rtp-footer {
    margin-top: 24px;
    padding: 16px 12px 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(244, 210, 106, 0.75);
    border-top: 1px solid var(--rtp-border-soft);
    background: rgba(0, 0, 0, 0.35);
    letter-spacing: 0.3px;
}
.rtp-footer strong {
    color: var(--rtp-gold);
    font-weight: 800;
}

/* ============================================================
   Winner RTP ticker (vertical scrolling)
   ============================================================ */
.rtp-winner-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 9, 3, 0.85);
    border: 1px solid var(--rtp-border);
    border-radius: var(--rtp-radius);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--rtp-shadow);
    height: 36px;
}
.rtp-winner-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: linear-gradient(135deg, var(--rtp-gold), var(--rtp-gold-deep));
    color: #1a1203;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.rtp-winner-label .material-icons {
    font-size: 18px !important;
    color: #1a1203;
}
.rtp-winner-marquee {
    flex: 1 1 auto;
    height: 36px;
    overflow: hidden;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}
.rtp-winner-track {
    display: flex;
    width: max-content;
    animation: rtpWinnerScroll 220s linear infinite;
    will-change: transform;
}
.rtp-winner-wrap:hover .rtp-winner-track {
    animation-play-state: paused;
}
.rtp-winner-line {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    color: var(--rtp-text);
    white-space: nowrap;
}
.rtp-winner-entry {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rtp-winner-sep {
    color: var(--rtp-gold);
    margin: 0 14px;
    opacity: 0.7;
}
.rtp-winner-prov {
    color: var(--rtp-gold);
    font-weight: 700;
    margin: 0 4px;
}
.rtp-winner-amount {
    color: #3adf60;
    font-weight: 800;
    margin-left: 4px;
    display: inline-block;
    text-shadow: 0 0 6px rgba(58, 223, 96, 0.45);
    animation: rtpWinnerShake 0.9s ease-in-out infinite;
    transform-origin: center;
}
@keyframes rtpWinnerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes rtpWinnerShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    15%      { transform: translate(-1px, 0.5px) rotate(-1.2deg); }
    30%      { transform: translate(1px, -0.5px) rotate(1.2deg); }
    45%      { transform: translate(-1px, 0.5px) rotate(-0.8deg); }
    60%      { transform: translate(1px, -0.5px) rotate(0.8deg); }
    75%      { transform: translate(-0.5px, 0.5px) rotate(-0.4deg); }
}

/* =========================== Bottom Nav (semi-floating) =========================== */
.rtp-body { padding-bottom: 92px; }
.rtp-footer { margin-bottom: 12px; }
.rtp-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 520px;
    z-index: 90;
    pointer-events: none;
}
.rtp-bottom-nav-inner {
    pointer-events: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(20,14,4,0.92), rgba(11,9,3,0.96));
    border: 1px solid rgba(244, 210, 106, 0.25);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4) inset, 0 0 24px rgba(244,210,106,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.rtp-bnav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    color: var(--rtp-gold);
    text-decoration: none;
    border-radius: 12px;
    transition: background .2s, color .2s, transform .15s;
}
.rtp-bnav-item:hover {
    background: rgba(244, 210, 106, 0.12);
    color: #fff8dc;
    transform: translateY(-1px);
}
.rtp-bnav-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 18px;
}
.rtp-bnav-lbl {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
}
.rtp-bnav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    background: linear-gradient(135deg, #ff5b5b, #d62b2b);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(255,91,91,0.45);
}
@media (max-width: 360px) {
    .rtp-bnav-lbl { font-size: 9.5px; }
    .rtp-bnav-ic { font-size: 16px; width: 22px; height: 22px; }
}

