* {
    font-family: "Inter", sans-serif;
}
body {
    background: #f0f7ff;
}

/* Header wave */
.wave-bg {
    background: linear-gradient(
        135deg,
        #0d2f6e 0%,
        #1565c0 45%,
        #1e88e5 75%,
        #42a5f5 100%
    );
    position: relative;
    overflow: hidden;
}

/* Card menu animations */
.menu-card {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.menu-card:active {
    transform: scale(0.96);
}

/* Icon circle glow */
.icon-glow {
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.12);
}

.header-bg {
    background: linear-gradient(
        135deg,
        #0d2f6e 0%,
        #1565c0 45%,
        #1e88e5 75%,
        #42a5f5 100%
    );
}

/* Timeline connector line */
.timeline-line::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -12px;
    width: 2px;
    background: linear-gradient(to bottom, #1e88e5, #e3f2fd);
}

/* Card fade-up animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-up {
    animation: fadeUp 0.45s ease both;
}
.fade-up:nth-child(1) {
    animation-delay: 0.05s;
}
.fade-up:nth-child(2) {
    animation-delay: 0.13s;
}
.fade-up:nth-child(3) {
    animation-delay: 0.21s;
}
.fade-up:nth-child(4) {
    animation-delay: 0.29s;
}

/* Pulse badge */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
.pulse::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: inherit;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

/* Bottom nav */
.bottom-nav {
    box-shadow: 0 -4px 24px rgba(21, 101, 192, 0.1);
}

/* Filter pills scroll */
.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}
.filter-scroll::-webkit-scrollbar {
    display: none;
}
.filter-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.filter-pill.active {
    background: #1565c0;
    color: white;
    border-color: #1565c0;
}
.filter-pill:not(.active) {
    background: white;
    color: #1565c0;
    border-color: #bfdbfe;
}
.filter-pill:not(.active):active {
    background: #eff6ff;
}

/* Featured video */
.featured-thumb {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}
.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.2s;
}
.featured-thumb:active .play-circle {
    transform: scale(0.92);
}
@keyframes play-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
.play-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: play-ring 2s ease-out infinite;
}

/* Content cards */
.edu-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e8f0fe;
    transition:
        transform 0.18s,
        box-shadow 0.18s;
    cursor: pointer;
}
.edu-card:active {
    transform: scale(0.97);
}

/* Video card thumbnail */
.card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.mini-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Tag badge */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Progress bar */
.prog-bar {
    height: 3px;
    background: #e8f0fe;
    border-radius: 99px;
    overflow: hidden;
}
.prog-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #1565c0, #42a5f5);
}

/* Stats strip */
.stat-strip {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-around;
}

/* Bottom nav */
.bottom-nav {
    box-shadow: 0 -4px 24px rgba(21, 101, 192, 0.1);
}

/* Modal overlay */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.modal-bg.open {
    opacity: 1;
    pointer-events: all;
}
.modal-box {
    background: #0d2f6e;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s;
}
.modal-bg.open .modal-box {
    transform: scale(1);
}

.modal-sheet {
    background: white;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 430px;
    padding: 20px 24px 36px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-bg.open .modal-sheet {
    transform: translateY(0);
}

.video-player {
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Shimmer on thumb hover */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}
.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.smooth-transition {
    transition: all 0.3s ease;
}

.radio-button input[type="radio"] {
    appearance: none;
    width: 0;
    height: 0;
}

.radio-label {
    padding: 0.625rem 0.5rem;
    border-radius: 0.5rem;
    border: 2px solid;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    font-size: 0.875rem;
}

.radio-label:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.radio-button input[type="radio"]:checked + .radio-label {
    font-weight: bold;
    transform: scale(1.05);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 0 0 3px white,
        0 0 0 5px rgb(168, 85, 247);
}

.radio-label .text-sm {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.radio-label .font-bold {
    font-size: 1rem;
    line-height: 1;
}

.scale-label {
    font-size: 0.75rem;
    font-weight: 600;
}

.progress-bar {
    transition: width 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 640px) {
    .radio-label {
        padding: 0.5rem 0.375rem;
        min-height: 56px;
        font-size: 0.8rem;
    }

    .radio-label .font-bold {
        font-size: 0.9rem;
    }

    .radio-label .text-xs {
        font-size: 0.65rem;
        margin-top: 0.125rem;
    }
}

/* Grid layout untuk pilihan jawaban */
.radio-options-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .radio-options-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.375rem;
    }
}

/* Utama container responsive */
@media (max-width: 768px) {
    .max-w-4xl {
        max-width: 100%;
        padding: 0 1rem;
    }

    .p-8 {
        padding: 1.5rem;
    }

    .ml-0.sm\:ml-12 {
        margin-left: 0;
    }
}

/* Floating bubbles animation */
@keyframes float-up {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-12px) scale(1.04);
        opacity: 1;
    }
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
}
@keyframes float-up2 {
    0% {
        transform: translateY(0px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0px);
        opacity: 0.5;
    }
}
@keyframes pulse-wa {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

.float-1 {
    animation: float-up 4s ease-in-out infinite;
}
.float-2 {
    animation: float-up2 5s ease-in-out infinite 0.8s;
}
.float-3 {
    animation: float-up 3.5s ease-in-out infinite 1.5s;
}

.fade-1 {
    animation: fadeUp 0.6s ease both 0.1s;
}
.fade-2 {
    animation: fadeUp 0.6s ease both 0.2s;
}
.fade-3 {
    animation: fadeUp 0.6s ease both 0.3s;
}
.fade-4 {
    animation: fadeUp 0.6s ease both 0.4s;
}
.fade-5 {
    animation: fadeUp 0.6s ease both 0.5s;
}
.fade-6 {
    animation: fadeUp 0.6s ease both 0.6s;
}

.slide-1 {
    animation: slideIn 0.5s ease both 0.2s;
}
.slide-2 {
    animation: slideIn 0.5s ease both 0.35s;
}
.slide-3 {
    animation: slideIn 0.5s ease both 0.5s;
}

/* WhatsApp button */
/* WhatsApp button */
.wa-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 18px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    border: none;
    width: 100%;
    animation: pulse-wa 2.5s ease-in-out infinite;
    transition:
        transform 0.18s,
        opacity 0.18s;
}
.wa-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Shimmer pakai ::after agar tidak konflik dengan background & pulse-wa */
.wa-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.28) 50%,
        transparent 100%
    );
    animation: shimmer-slide 2.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer-slide {
    0% {
        left: -80%;
    }
    100% {
        left: 130%;
    }
}

/* Info cards */
.info-card {
    background: white;
    border-radius: 18px;
    border: 1px solid #e8f0fe;
    overflow: hidden;
}

/* Step items */
.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

/* Teacher card */
.teacher-card {
    background: white;
    border-radius: 20px;
    border: 1.5px solid #e8f0fe;
    padding: 16px;
    cursor: pointer;
    transition:
        transform 0.18s,
        box-shadow 0.18s;
}
.teacher-card:active {
    transform: scale(0.97);
}

.online-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #25d366;
    border: 2px solid white;
    position: absolute;
    bottom: 2px;
    right: 2px;
}

/* Guarantee badge */
.guarantee {
    background: linear-gradient(135deg, #e8f5e9, #f0fff4);
    border: 1px solid #a7d7a9;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
