.home-view .section-title {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--section-title-color, var(--primary-text-color));
    margin-bottom: 10px;
}

.home-view .section-title i {
    color: var(--accent-color);
}

.home-view .home-section {
    margin-bottom: 10px;
}

.home-view > .home-section:first-child {
    margin-top: 0;
}

.home-view .game-scroll-outer {
    position: relative;
}

.home-view .game-scroll-wrap {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding-top: 10px;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.home-view .game-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.home-view .game-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateY(-3px);
    z-index: 5;
    width: 28px;
    height: 52px;
    background: var(--primary-background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--primary-text-color);
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1;
    opacity: 0.25;
    transition: opacity 0.2s;
}

.home-view .game-scroll-btn:hover { opacity: 1; }

.home-view .game-scroll-btn-l { left:  0; }
.home-view .game-scroll-btn-r { right: 0; }

.home-view .togel-grid-wrap {
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.home-view .togel-grid-wrap::-webkit-scrollbar {
    display: none;
}

.home-view .togel-grid-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 10px;
}


/* ── Shared game card — used by both home.php and game.php ── */
.game-card {
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s;
}

.game-card:active {
    transform: scale(0.97);
}

.game-card:hover {
    transform: translateY(-8px);
}

.game-card-img-box {
    width: 100%;
    aspect-ratio: 6 / 9;
    overflow: hidden;
    position: relative;
}

.game-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Badge NEW (kiri atas) / HOT (kanan atas) di card game — dipakai game.php & home.php ── */
.game-flag-badge {
    position: absolute;
    top: 3px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    color: #fff;
    pointer-events: none;
    z-index: 2;
}
.game-flag-badge--new {
    left: 3px;
    background: #2ecc71;
}
.game-flag-badge--hot {
    right: 3px;
    background: #e74c3c;
}

/* ── Debug overlay (?dev=1) — counter + rank/sid_all/sid, dipakai game.php & home.php ── */
.game-dev-debug {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 2px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted-text-color, #888);
}
.game-dev-debug .dev-counter {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.game-dev-debug .dev-counter i {
    font-size: 13px;
    flex-shrink: 0;
}
.game-dev-debug .dev-badge {
    min-width: 20px;
    height: 18px;
    padding: 0 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.game-dev-debug .dev-badge--rank   { background: #e74c3c; }
.game-dev-debug .dev-badge--sidall { background: #2ecc71; }
.game-dev-debug .dev-badge--sid    { background: #3498db; }

/* ── Copy link game (?dev=1) — dipakai game.php (slot/cat/provider) & home.php ── */
.game-copy-link-btn {
    position: absolute;
    right: 4px;
    bottom: 4px;
    z-index: 3;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}
.game-card:hover .game-copy-link-btn,
.game-copy-link-btn:focus {
    opacity: 1;
}
@media (hover: none) {
    .game-copy-link-btn { opacity: 1; }
}

/* ── home.php scroll-specific sizing ── */
.home-view .game-scroll-wrap .game-card {
    flex: 0 0 auto;
    width: calc((100vw - 32px) / 3.25);
}

.home-view .game-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--placeholder-bg);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--muted-text-color);
    font-size: 28px;
    position: absolute;
    top: 0;
    left: 0;
}

.home-view .game-card-img-box.is-broken img {
    display: none;
}

.home-view .game-card-img-box.is-broken .game-img-placeholder {
    display: flex;
}

.home-view .game-card-name {
    background: var(--ternary-background-color);
    font-size: var(--fs-xs);
    text-align: center;
    padding: 0 4px;
    color: var(--primary-text-color);
    line-height: 1.3;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-view .togel-card {
    flex: 0 0 auto;
    width: calc((100% - 2.3 * 10px) / 3.3);
    background: var(--secondary-background-color);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-lg);
    padding: 10px 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s;
    overflow: hidden;
}

.home-view .togel-card:active {
    transform: scale(0.97);
}

.home-view .togel-card .market-name {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--togel-market-name-color, var(--primary-text-color));
    text-transform: uppercase;
    line-height: 1.3;
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-view .togel-card .market-code {
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-text-color);
    /* letter-spacing: 2px; */
    line-height: 40px;
}

.home-view .togel-card .market-info {
    background: var(--accent-color);
    color: var(--btn-deposit-text, #000);
    font-size: var(--fs-md);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    line-height: 1.5;
}

@media (max-width: 360px) {
    .home-view .togel-grid-wrap {
        gap: 5px;
    }

    .home-view .togel-card {
        width: calc((100vw - 28px) / 3.3);
        padding: 9px 5px 9px;
        gap: 4px;
    }

    .home-view .togel-card .market-name,
    .home-view .togel-card .market-info {
        font-size: var(--fs-xs);
    }

    .home-view .togel-card .market-code {
        font-size: 24px;
    }
}

/* ── Togel Result Cards ── */

.home-view .togel-result-wrap {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.home-view .togel-result-wrap::-webkit-scrollbar {
    display: none;
}

.home-view .togel-result-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 6px;
}

.home-view .togel-result-row:last-child {
    margin-bottom: 0;
}

.home-view .togel-result-card {
    flex: 0 0 auto;
    width: calc((100vw - 40px) / 4.6);
    background: var(--ternary-background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 7px 5px 6px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s;
}

.home-view .togel-result-card:active {
    transform: scale(0.96);
}

.home-view .togel-result-card .result-market-name {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-text-color);
    line-height: 1.2;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-view .togel-result-card .result-number {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 1px;
    line-height: 1.1;
}

.home-view .togel-result-card .result-date {
    font-size: 8px;
    color: var(--muted-text-color);
    margin-top: 3px;
}

/* ── SBO Sport Widget ── */

.home-view .match-slider-wrap {
    margin: 0 auto;
    margin-bottom: 44px;
}

.home-view .match-card-home {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-bg-subtle), transparent),
                linear-gradient(180deg, #232323 0%, #161616 100%);
    color: #fff;
    /* box-shadow: 0 10px 24px rgba(0,0,0,.35); */
    padding: 14px 14px 16px;
}
.home-view .match-card-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-35deg, rgba(255,255,255,.04), rgba(255,255,255,.04) 8px, transparent 8px, transparent 18px);
    pointer-events: none;
    opacity: .35;
}
.home-view .match-card-home > * { position: relative; z-index: 1; }

.home-view .league-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2px;
    color: #fff;
}
.home-view .kickoff-time {
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    color: #ffd23c;
    margin-bottom: 12px;
}
.home-view .match-main-row,
.home-view .match-odds-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
}
.home-view .match-odds-row { align-items: center; margin-top: 12px; }

.home-view .team-col {
    width: 30%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.home-view .score-col {
    width: 40%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.home-view .team-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    margin-bottom: 6px;
}
.home-view .team-name {
    font-size: 14px;
    line-height: 1.15;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.home-view .score-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}
.home-view .bet-btn {
    display: inline-block;
    min-width: 95px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffcf21 0%, #f0ab00 100%);
    color: #1d1d1d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    padding: 10px 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
    cursor: pointer;
}
.home-view .bet-btn:hover { filter: brightness(1.03); color: #1d1d1d; }

.home-view .odds-col {
    width: 30%;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffd23c;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
}
.home-view .odds-col small {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    opacity: .95;
}
.home-view .odds-spacer { width: 40%; }

/* Splide overrides */
.home-view .match-slider-wrap .splide__arrow {
    background: rgba(255,255,255,.15);
    opacity: 1;
}
.home-view .match-slider-wrap .splide__arrow svg { fill: #fff; }
.home-view .match-slider-wrap .splide__arrow:hover { background: rgba(255,255,255,.28); }
.home-view .match-slider-wrap .splide__pagination__page {
    background: var(--accent-color);
}
.home-view .match-slider-wrap .splide__pagination__page.is-active {
    background: var(--accent-color);
    transform: scale(1.2);
}
.home-view .match-slider-wrap .splide__pagination {
    bottom: -22px;
}

@media (max-width: 767px) {
    .home-view .match-card-home { min-height: 170px; }
    .home-view .league-name { font-size: 13px; }
    .home-view .kickoff-time { font-size: 13px; margin-bottom: 10px; }
    .home-view .team-logo { width: 42px; height: 42px; margin-bottom: 4px; }
    .home-view .team-name { font-size: 12px; min-height: 30px; }
    .home-view .score-value { font-size: 22px; margin-bottom: 8px; }
    .home-view .bet-btn { min-width: 88px; font-size: 13px; padding: 8px 14px; }
    .home-view .match-odds-row { margin-top: 10px; }
    .home-view .odds-col,
    .home-view .odds-col small { font-size: 11px; }
}

/* ── Kupon Widget ── */

.home-view .widget-kupon {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (max-width: 767px) {
    .home-view .widget-kupon {
        margin-bottom: -10px;
    }
}

.home-view .iframe-kupon {
    display: block;
    width: 100%;
    height: 200px;
    border: none;
    overflow: hidden;
    transition: height 0.2s;
}

/* ── Footer ── */

.site-footer {
    background: color-mix(in srgb, var(--accent-color) 10%, var(--primary-background-color));
    border-top: 1px solid var(--border-color);
    padding: 20px 16px 80px;
    margin-top: 32px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-bottom: 16px;
}

.footer-nav a {
    color: var(--accent-text-color);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 0.75;
    color: var(--accent-color);
}

.footer-nav-sep {
    color: var(--secondary-text-color);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.footer-guidelines-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.footer-guidelines-img {
    max-width: 100%;
    height: auto;
}

.footer-providers {
    text-align: center;
    padding-top: 4px;
}

.footer-providers img {
    max-width: 100%;
    height: auto;
    opacity: 0.75;
}

.footer-guidelines {
    margin-top: 14px;
    text-align: center;
}

.footer-meta {
    margin-top: 14px;
    font-size: var(--fs-md);
    color: var(--muted-text-color);
    line-height: 1.6;
    text-align: center;
}

.footer-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    font-size: var(--fs-sm);
    color: var(--muted-text-color);
    line-height: 1.5;
    text-align: center;
    width: 100%;
}

.btn-aduan {
    background: transparent;
    border: 2px solid #b08432;
    color: #b08432;
    font-size: var(--fs-md);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}

.btn-aduan:hover {
    background: rgba(176, 132, 50, 0.12);
    color: #b08432;
}

/* ── Media Queries ── */

@media (max-width: 360px) {
    .home-view .togel-result-wrap {
        gap: 5px;
        max-height: 130px;
    }

    .home-view .togel-result-card {
        width: calc((100vw - 36px) / 4.5);
        padding: 6px 4px 5px;
    }

    .home-view .togel-result-card .result-number {
        font-size: var(--fs-2xl);
    }
}

/* ── Guest list view ── */
.home-view .togel-list-wrap {
    padding: 0 16px;
}

.home-view .togel-list-guest {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.home-view .togel-list-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: filter 0.15s;
}

.home-view .togel-list-row:nth-child(odd)  { background: var(--secondary-background-color); }
.home-view .togel-list-row:nth-child(even) { background: var(--ternary-background-color); }
.home-view .togel-list-row:first-child     { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.home-view .togel-list-row:last-child      { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.home-view .togel-list-row:active          { filter: brightness(1.15); }

.home-view .tl-market {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--primary-text-color);
    text-transform: uppercase;
    line-height: 1.3;
}

.home-view .tl-date {
    flex: 1;
    font-size: var(--fs-xl);
    color: var(--primary-text-color);
    white-space: nowrap;
    text-transform: uppercase;
    text-align: center;
}

.home-view .tl-result {
    flex: 1;
    font-weight: 700;
    font-size: var(--fs-xl);
    color: var(--accent-color);
    letter-spacing: 1px;
    text-align: right;
}

.home-view .togel-list-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px 4px;
}

.home-view .tlp-dot {
    width: 6px;
    height: 6px;
    border-radius: 10px;
    background: var(--muted-text-color);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.home-view .tlp-dot.active {
    width: 14px;
    background: var(--accent-color);
}

/* Mobile: sembunyikan grid dt, tampilkan list mb */
@media (max-width: 767px) {
    .home-view .togel-panel-dt { display: none !important; }
}
@media (min-width: 768px) {
    .home-view .togel-panel-mb { display: none !important; }
}

.home-view .tc-guest-detail { display: none; }

/* ── Togel card grid: CSS Grid + clip + arrow reveal ── */
.home-view .togel-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow: hidden;
    max-height: 120px;
    margin-bottom: 0;
    position: relative;
    transition: max-height 0.4s ease;
}

/* Make row wrappers transparent so cards are direct grid children */
.home-view .togel-panel .togel-grid-row {
    display: contents;
}

/* Cards fill grid cells */
.home-view .togel-panel .togel-card {
    width: auto;
    flex: none;
}

/* Arrow button */
.home-view .togel-panel-more {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-text-color);
    font-size: 25px;
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.3s ease;
    animation: tgm-bounce 1.8s ease infinite;
}

/* Desktop: 10 per row, hover to expand */
@media (min-width: 768px) {
    .home-view .togel-panel {
        grid-template-columns: repeat(10, 1fr);
        max-height: 120px;
    }
    .home-view .togel-panel:hover {
        max-height: 500px;
    }
    .home-view .togel-panel:hover .togel-panel-more {
        opacity: 0;
        pointer-events: none;
        animation: none;
    }
}

/* Expanded state (JS toggle for mobile click) */
.home-view .togel-panel.togel-panel--open {
    max-height: 1000px !important;
}
.home-view .togel-panel.togel-panel--open .togel-panel-more {
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: none !important;
    bottom: 4px;
}
.home-view .togel-panel.togel-panel--open .togel-panel-more i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}
.home-view .togel-panel-more i {
    transition: transform 0.3s ease;
}

@keyframes tgm-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(5px); }
}


@media (min-width: 768px) {
    .home-view {
        padding: 0;
    }

    .home-view .game-scroll-wrap .game-card {
        width: 140px;
    }

    .home-view .togel-card {
        width: 120px;
        height: 120px;
    }

    .home-view .togel-card .market-code {
        font-size: 40px;
    }

    .home-view .iframe-kupon {
        height: 100px;
    }

    .site-footer {
        padding: 24px 80px 24px;
        margin-top: 0;
    }

    .footer-guidelines-img {
        max-width: 640px;
    }

    .footer-nav {
        gap: 4px 14px;
    }

    .footer-nav a {
        font-size: var(--fs-md);
    }
}

@media (min-width: 992px) {
    .home-view {
        padding: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   Pasaran result popup (guest — klik card togel sebelum login)
   ══════════════════════════════════════════════════════════════ */

.pasaran-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .65);
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

@media (max-width: 767.98px) {
    .pasaran-popup-overlay {
        align-items: flex-start;
        padding-top: 125px;
        padding-bottom: 28px;
    }
}

.pasaran-popup {
    flex: 0 0 auto;
    width: 100%;
    max-width: 480px;
    max-height: 86vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pasaran-popup-body table {
    table-layout: fixed;
    width: 100%;
}

.pasaran-popup-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
    padding: 16px;
    gap: 12px;
}

.pasaran-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
}

.pasaran-popup-select {
    position: relative;
}

.pasaran-popup-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: auto;
    background: var(--input-bg, var(--secondary-background-color));
    border: 1px solid var(--border-color);
    border-radius: 50px;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 12px 6px 16px;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--primary-text-color);
    cursor: pointer;
}

.pasaran-popup-select-btn:focus,
.pasaran-popup-select-btn:focus-visible,
.pasaran-popup-select-btn:active {
    outline: none;
    box-shadow: none;
}

.pasaran-popup-select-btn i {
    font-size: var(--fs-sm);
    color: var(--accent-color);
    transition: transform .15s;
}

.pasaran-popup-select.open .pasaran-popup-select-btn i {
    transform: rotate(180deg);
}

.pasaran-popup-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 10;
    min-width: 320px;
    max-height: 260px;
    overflow-y: auto;
    background: var(--secondary-background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    padding: 6px;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.pasaran-popup-dropdown.open {
    display: grid;
}

.pasaran-popup-dd-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-size: var(--fs-sm);
    color: var(--secondary-text-color);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pasaran-popup-dd-item:hover {
    background: var(--accent-bg-subtle);
}

.pasaran-popup-dd-item.active {
    color: var(--accent-text-color);
    font-weight: 700;
}

.pasaran-popup-header .tx-btn-close {
    margin-bottom: 0;
}

.pasaran-popup-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 12px;
    font-size: var(--fs-sm);
    color: var(--secondary-text-color);
    border-bottom: 1px solid var(--border-color);
    flex: 0 0 auto;
}

.pasaran-popup-meta-row {
    display: flex;
    gap: 6px;
}

.pp-meta-label {
    min-width: 88px;
    color: var(--secondary-text-color);
}

.pp-meta-value {
    color: var(--secondary-text-color);
    font-weight: 600;
}

.pasaran-popup-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 400px;
    padding: 0 2px;
}

.pasaran-popup-body .pp-loading-cell,
.pasaran-popup-body .pp-empty-cell {
    height: 362px;
    vertical-align: top;
}

.pasaran-popup-body .pp-loading-cell {
    padding-top: 36px;
}

.pasaran-popup-body .pp-empty-cell {
    vertical-align: middle;
}

.pasaran-popup-body .pp-loading-cell .content-loader-wrap {
    display: flex;
    justify-content: center;
    margin: 0;
}

.pasaran-popup thead th {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color) !important;
}

.pasaran-popup tbody td {
    padding: 9px 14px;
}

.pp-col-tanggal { color: #8bc34a; white-space: nowrap; }
.pp-col-hari    { color: #4fc3f7; white-space: nowrap; }
.pp-col-result  { color: #ffca28; }

.pasaran-popup-paging {
    justify-content: flex-start;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

.pasaran-popup .h-pages li button {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.pasaran-popup .h-pages li .h-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 3px 2px;
    font-size: var(--fs-md);
    color: var(--muted-text-color);
}

.pasaran-popup-dd-item {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
