/* =========================================================
   HOME BANNER
========================================================= */

.home-banner-section {
    padding: 14px 0 8px;
}

.home-banner-carousel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: #07134d;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.home-banner-link {
    display: block;
}

.home-banner-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3.2 / 1;
    min-height: 300px;
    isolation: isolate;
}

.home-banner-media picture {
    position: absolute;
    z-index: 3;
    inset: 0;
}

.home-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-fallback-one {
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(141, 163, 255, 0.44),
            transparent 28%
        ),
        linear-gradient(
            125deg,
            #07134d 0%,
            #102769 48%,
            #2948a5 100%
        );
}

.banner-fallback-two {
    background:
        radial-gradient(
            circle at 20% 75%,
            rgba(119, 147, 255, 0.32),
            transparent 30%
        ),
        linear-gradient(
            125deg,
            #0d1c5a 0%,
            #152e78 48%,
            #07134d 100%
        );
}

.banner-fallback-three {
    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(180, 193, 255, 0.34),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #07134d 0%,
            #1d347f 50%,
            #4c64ca 100%
        );
}

.home-banner-fallback-content {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: clamp(34px, 6vw, 100px);
    display: flex;
    flex-direction: column;
    transform: translateY(-50%);
}

.home-banner-fallback-content span {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.home-banner-fallback-content strong {
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.home-banner-fallback-content small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.76rem;
}

.home-banner-control {
    width: 58px;
    opacity: 0;
    transition: opacity 160ms ease;
}

.home-banner-carousel:hover .home-banner-control,
.home-banner-control:focus {
    opacity: 0.78;
}

.home-banner-indicators {
    z-index: 8;
    gap: 6px;
    margin-bottom: 14px;
}

.home-banner-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.home-banner-indicators .active {
    width: 30px;
    background: #ffffff;
}

/* =========================================================
   COMMON SECTION HEADING
========================================================= */

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.activity-main-heading {
    margin-bottom: 18px;
}

.section-label-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 5px;
}

.section-eyebrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.demo-data-badge {
    display: inline-flex;
    padding: 3px 7px;
    border: 1px solid rgba(158, 175, 255, 0.3);
    border-radius: 999px;
    color: #bec9ff;
    background: rgba(107, 132, 245, 0.11);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.home-section-heading h1,
.home-section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 850;
}

.home-section-heading p {
    max-width: 760px;
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.85rem;
    line-height: 1.65;
}

.home-section-link {
    flex: 0 0 auto;
    color: #b9c5ff;
    font-size: 0.82rem;
    font-weight: 750;
}

.home-section-link:hover,
.home-section-link:focus {
    color: #ffffff;
}

/* =========================================================
   LATEST RESULTS
========================================================= */

.latest-result-section {
    padding: 28px 0 24px;
}

.togel-result-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.togel-result-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(107, 134, 255, 0.14),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(13, 28, 90, 0.94),
            rgba(7, 19, 77, 0.97)
        );
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.17);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.togel-result-card:hover {
    border-color: rgba(162, 180, 255, 0.35);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.result-card-header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 15px;
}

.result-market-name {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.7em;
    margin: 0;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.01em;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.result-status-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 0.52rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.result-status-badge::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    content: "";
}

.result-status-open {
    color: #b9c7ff;
    background: rgba(92, 122, 244, 0.12);
}

.result-status-open::before {
    background: #90a8ff;
    box-shadow: 0 0 8px rgba(144, 168, 255, 0.9);
}

.result-status-closed {
    color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.07);
}

.result-status-closed::before {
    background: rgba(255, 255, 255, 0.45);
}

.result-status-off {
    color: #d7ddff;
    background: rgba(84, 99, 168, 0.2);
}

.result-status-off::before {
    background: #8d9bd9;
}


.result-number {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 14px;
}

.result-digit {
    display: flex;
    min-width: 0;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #07134d;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #c7d1ff
        );
    font-size: clamp(1rem, 1.45vw, 1.42rem);
    font-weight: 900;
    box-shadow:
        inset 0 -5px 10px rgba(68, 91, 194, 0.14),
        0 7px 14px rgba(0, 0, 0, 0.15);
}

.result-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
}

.result-date-group {
    width:100%;
    min-width: 0;
}

.result-date {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
}

.result-time {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.59rem;
}

.result-publish-time {
    color: rgba(183, 197, 255, 0.8);
    font-weight: 750;
}

.result-loading-state,
.result-empty-state {
    grid-column: 1 / -1;
    display: flex;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.58);
    background: rgba(7, 19, 77, 0.55);
    font-size: 0.82rem;
}

.result-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: result-spinner 700ms linear infinite;
}

@keyframes result-spinner {
    to {
        transform: rotate(360deg);
    }
}

.result-remark {
    display: inline-flex;
    max-width: 100%;
    margin-top: 7px;
    padding: 4px 7px;
    overflow: hidden;
    border: 1px solid rgba(158, 175, 255, 0.2);
    border-radius: 7px;
    color: #bdc8ff;
    background: rgba(97, 120, 225, 0.1);
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   PLAYER ACTIVITIES
========================================================= */

.latest-activity-section {
    padding: 20px 0 70px;
}

.activity-slider-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.activity-slider-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(13, 28, 90, 0.94),
            rgba(7, 19, 77, 0.97)
        );
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.2);
}

.activity-slider-header {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.activity-heading-group {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.activity-heading-group > div > span {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.activity-heading-group h3 {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 850;
}

.activity-heading-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 13px;
    color: #ffffff;
}

.activity-heading-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.deposit-heading-icon {
    background:
        linear-gradient(
            135deg,
            #4667ea,
            #7e94fb
        );
}

.withdrawal-heading-icon {
    background:
        linear-gradient(
            135deg,
            #293f9c,
            #5d77e7
        );
}

.activity-live-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(139, 160, 255, 0.25);
    border-radius: 999px;
    color: #bdc8ff;
    background: rgba(90, 117, 237, 0.1);
    font-size: 0.62rem;
    font-weight: 800;
}

.activity-live-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #91a7ff;
    box-shadow: 0 0 9px rgba(145, 167, 255, 0.9);
    content: "";
}

.activity-slider-viewport {
    position: relative;
    overflow: hidden;
    height: 212px;
}

.activity-slider-viewport::before,
.activity-slider-viewport::after {
    position: absolute;
    z-index: 3;
    right: 0;
    left: 0;
    height: 18px;
    content: "";
    pointer-events: none;
}

.activity-slider-viewport::before {
    top: 0;
    background:
        linear-gradient(
            180deg,
            rgba(7, 19, 77, 0.95),
            transparent
        );
}

.activity-slider-viewport::after {
    bottom: 0;
    background:
        linear-gradient(
            0deg,
            rgba(7, 19, 77, 0.95),
            transparent
        );
}

.activity-slider-track {
    width: 100%;
    will-change: transform;
}

.activity-slider-row {
    display: grid;
    min-height: 53px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.activity-user {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.activity-user-avatar {
    display: inline-flex;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
    font-weight: 850;
}

.activity-user-details {
    min-width: 0;
}

.activity-username {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.77rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-time {
    display: block;
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.56rem;
}

.activity-amount {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1399.98px) {
    .togel-result-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .togel-result-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .home-banner-media {
        aspect-ratio: 2.4 / 1;
        min-height: 270px;
    }

    .togel-result-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-banner-section {
        padding-top: 9px;
    }

    .home-banner-carousel {
        border-radius: 16px;
    }

    .home-banner-media {
        aspect-ratio: 16 / 7;
        min-height: 245px;
    }

    .home-banner-control {
        display: none;
    }

    .activity-slider-grid {
        grid-template-columns: 1fr;
    }

    .activity-slider-viewport {
        height: 212px;
    }
}

@media (max-width: 575.98px) {
    .home-banner-media {
        min-height: 210px;
    }

    .home-banner-fallback-content {
        left: 24px;
    }

    .home-banner-fallback-content strong {
        font-size: 2.15rem;
    }

    .latest-result-section {
        padding-top: 22px;
    }

    .home-section-heading {
        align-items: flex-start;
    }

    .home-section-heading p {
        font-size: 0.77rem;
    }

    .home-section-link {
        margin-top: 21px;
        font-size: 0.72rem;
    }

    .togel-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .togel-result-card {
        padding: 13px;
        border-radius: 14px;
    }

    .result-market-name {
        font-size: 0.69rem;
    }

    .result-status-badge {
        display: none;
    }

    .result-number {
        gap: 4px;
        margin-bottom: 11px;
    }

    .result-digit {
        border-radius: 8px;
        font-size: 1rem;
    }

    .result-date {
        font-size: 0.55rem;
    }

    .result-time {
        font-size: 0.52rem;
    }

    .activity-slider-header {
        padding-right: 16px;
        padding-left: 16px;
    }

    .activity-slider-row {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .result-loading-spinner {
        animation: none;
    }
}