* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --primary-blue: #6B9FFF;
    --soft-blue: #A8C9FF;
    --light-blue: #E3F0FF;
    --purple: #B8A4FF;
    --white: #FFFFFF;
    --dark-text: #2D3748;
    --light-text: #718096;
    --shadow: rgba(107, 159, 255, 0.2);
    --shadow-hover: rgba(107, 159, 255, 0.35);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #E3F0FF 0%, #F0E8FF 100%);
    color: var(--dark-text);
    overflow-x: hidden;
    font-size: clamp(14px, 1vw, 16px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 20px var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo-text {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--purple));
    border-radius: 10px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.nav-buttons a {
    display: flex;
    align-items: stretch;
    text-decoration: none;
}

.nav-buttons a button {
    width: 100%;
}

/* Mobile Menu Toggle — Animated Hamburger */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(107, 159, 255, 0.1);
    border: none;
    border-radius: 10px;
    padding: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    z-index: 1002;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(107, 159, 255, 0.2);
}

.burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform-origin: center;
}

.mobile-nav-toggle.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-nav-toggle.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.btn-secondary,
.btn-primary {
    padding: clamp(0.625rem, 1.2vw, 0.75rem) clamp(1.25rem, 2.5vw, 1.875rem);
    font-size: clamp(0.875rem, 1.1vw, 0.9375rem);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: white;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.hero-section {
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(168, 201, 255, 0.3), rgba(184, 164, 255, 0.3));
    border-radius: 40px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 164, 255, 0.3), transparent);
    border-radius: 50%;
    filter: blur(80px);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--light-text);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.btn-explore {
    padding: clamp(0.875rem, 1.8vw, 1.125rem) clamp(2rem, 4vw, 3.125rem);
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px var(--shadow);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px var(--shadow-hover);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-placeholder {
    width: 400px;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 50px var(--shadow);
    animation: float 3s ease-in-out infinite;
}

.character-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(107, 159, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 40px;
    border-radius: 10px;
    background: var(--primary-blue);
}

.content-section {
    margin-top: 80px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.section-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 25px;
}

.featured-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0 8px 30px var(--shadow);
    min-width: 0;
    overflow: hidden;
}

.artwork-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.artwork-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    background: white;
}

.artwork-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px var(--shadow-hover);
}

.artwork-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.artwork-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.artwork-card:hover .card-overlay {
    transform: translateY(0);
}

.card-title {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.search-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0 8px 30px var(--shadow);
    min-width: 0;
    overflow: hidden;
}

.search-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag {
    background: linear-gradient(135deg, rgba(168, 201, 255, 0.4), rgba(184, 164, 255, 0.4));
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: white;
    transform: translateX(5px);
}

.categories-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 35px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 8px 30px var(--shadow);
    min-width: 0;
}

.category-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-card {
    background: linear-gradient(135deg, rgba(168, 201, 255, 0.3), rgba(184, 164, 255, 0.3));
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.category-card.fantasy {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
}

.category-card.scifi {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(138, 43, 226, 0.2));
}

.category-card.romance {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(255, 105, 180, 0.3));
}

.category-icon {
    font-size: 32px;
}

.category-name {
    font-weight: 600;
    font-size: 16px;
}

.coming-soon-section {
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 232, 255, 0.8));
    backdrop-filter: blur(10px);
    padding: 80px 60px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow);
}

.coming-soon-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.coming-soon-text {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--light-text);
    margin-bottom: 50px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.time-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 40px;
    border-radius: 25px;
    box-shadow: 0 8px 25px var(--shadow);
    min-width: 120px;
    transition: all 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-hover);
}

.time-value {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.time-label {
    display: block;
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    color: var(--light-text);
    margin-top: 10px;
    font-weight: 500;
}

.notify-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 18px 30px;
    border: 2px solid var(--soft-blue);
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.email-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 20px var(--shadow);
}

.btn-notify {
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px var(--shadow);
}

.btn-notify:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px var(--shadow-hover);
}

.footer {
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    color: var(--light-text);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-section {
        padding: 60px 40px;
        margin-top: 40px;
    }
    
    .character-placeholder {
        margin-top: 30px;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .featured-section,
    .search-section,
    .categories-section {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-content {
        padding: 0 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-buttons {
        gap: 10px;
    }
    
    .nav-buttons a {
        text-decoration: none;
    }
    
    .hero-section {
        padding: 40px 25px;
        margin-top: 30px;
        border-radius: 30px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .character-placeholder {
        margin-top: 25px;
        max-width: 280px;
        height: auto;
    }
    
    .slider-indicators {
        margin-top: 25px;
    }
    
    .content-section {
        margin-top: 50px;
    }
    
    .artwork-cards {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .artwork-cards::-webkit-scrollbar {
        display: none;
    }

    .artwork-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }
    
    .artwork-card img {
        aspect-ratio: 2 / 3;
        height: auto;
    }
    
    .featured-section,
    .search-section,
    .categories-section {
        padding: 20px;
        border-radius: 25px;
    }
    
    .coming-soon-section {
        margin-top: 50px;
        padding: 50px 25px;
        border-radius: 30px;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .time-box {
        min-width: 90px;
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .notify-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .email-input,
    .btn-notify {
        width: 100%;
    }
    
    .footer {
        margin-top: 40px;
        padding: 25px 0;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        right: 16px;
        width: 220px;
        height: auto;
        max-height: calc(100vh - 90px);
        background: white;
        display: flex !important;
        flex-direction: column;
        padding: 8px 0;
        gap: 0;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(107, 159, 255, 0.1);
        transform: translateY(-8px) scale(0.96);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    visibility 0.25s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        color: var(--dark-text) !important;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        font-weight: 500;
        display: block;
        border-radius: 8px;
        margin: 2px 8px;
        white-space: normal;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-blue) !important;
        background: rgba(107, 159, 255, 0.08);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-content {
        justify-content: space-between;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .nav-content {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 15px 0;
        border-radius: 0 0 25px 25px;
    }
    
    .nav-buttons {
        gap: 8px;
    }
    
    .btn-secondary,
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .hero-section {
        padding: 30px 20px;
        margin-top: 25px;
        border-radius: 25px;
    }
    
    .character-placeholder {
        max-width: 240px;
        margin-top: 20px;
    }
    
    .slider-indicators {
        margin-top: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 30px;
    }
    
    .content-section {
        margin-top: 40px;
    }
    
    .content-grid {
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .featured-section,
    .search-section,
    .categories-section {
        padding: 18px;
        border-radius: 20px;
    }
    
    .artwork-card img {
        aspect-ratio: 2 / 3;
        height: auto;
    }
    
    .card-title {
        font-size: 0.875rem;
    }
    
    .tag {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
    
    .category-card {
        padding: 16px;
        border-radius: 18px;
    }
    
    .category-icon {
        font-size: 28px;
    }
    
    .category-name {
        font-size: 0.875rem;
    }
    
    .coming-soon-section {
        margin-top: 40px;
        padding: 40px 20px;
        border-radius: 25px;
    }
    
    .countdown-timer {
        gap: 10px;
        margin-bottom: 35px;
    }
    
    .time-box {
        min-width: 75px;
        padding: 16px 12px;
        border-radius: 18px;
    }
    
    .time-value {
        font-size: 1.75rem;
    }
    
    .time-label {
        font-size: 0.6875rem;
        margin-top: 8px;
    }
    
    .email-input {
        padding: 14px 20px;
        font-size: 0.875rem;
    }
    
    .btn-notify {
        padding: 14px 30px;
        font-size: 0.875rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-content {
        padding: 0 12px;
    }
    
    .logo-text {
        font-size: 1.375rem;
    }
    
    .btn-secondary,
    .btn-primary {
        padding: 0.45rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .hero-section {
        padding: 25px 15px;
        margin-top: 20px;
    }
    
    .character-placeholder {
        max-width: 200px;
    }
    
    .featured-section,
    .search-section,
    .categories-section {
        padding: 15px;
    }
    
    .artwork-card img {
        aspect-ratio: 2 / 3;
        height: auto;
    }
    
    .time-box {
        min-width: 70px;
        padding: 14px 10px;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
    
    .coming-soon-section {
        padding: 35px 15px;
    }
}

/* ==============================================
   Contact Info Box (featured-section)
   ============================================== */
.contact-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(107, 159, 255, 0.08), rgba(150, 100, 255, 0.08));
    border: 1.5px solid rgba(107, 159, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    background: linear-gradient(135deg, rgba(107, 159, 255, 0.13), rgba(150, 100, 255, 0.13));
    border-color: rgba(107, 159, 255, 0.4);
}

.contact-info-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-info-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.contact-info-desc {
    font-size: 0.75rem;
    color: var(--light-text);
    line-height: 1.55;
    margin: 0;
}

.contact-info-email {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(107, 159, 255, 0.1);
    border-radius: 20px;
    transition: all 0.25s ease;
    align-self: flex-start;
    margin-top: 2px;
}

.contact-info-email:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Fix emoji di dalam section-title agar tidak kena gradient text */
.title-emoji {
    -webkit-text-fill-color: initial;
    background: none;
    display: inline;
    font-style: normal;
}

/* ==============================================
   Statistik Platform Section
   ============================================== */
.stats-section {
    display: flex !important;
    flex-direction: column;
}

.stats-subtitle {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 3px 14px var(--shadow);
    transition: all 0.3s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 22px var(--shadow-hover);
    background: rgba(255, 255, 255, 0.95);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--light-text);
    letter-spacing: 0.3px;
}

/* Live indicator di footer stats */
.stats-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(107, 159, 255, 0.15);
}

.stats-live-dot {
    width: 8px;
    height: 8px;
    background: #43e97b;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseLive 1.8s infinite;
    box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.5);
}

@keyframes pulseLive {
    0%   { box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(67, 233, 123, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 233, 123, 0); }
}

.stats-live-text {
    font-size: 0.72rem;
    color: var(--light-text);
    font-style: italic;
}

/* ==============================================
   Quick Search Box (kept for reference, unused)
   ============================================== */
.quick-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.quick-search-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid rgba(107, 159, 255, 0.25);
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: all 0.3s ease;
}

.quick-search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(107, 159, 255, 0.15);
}

.quick-search-btn {
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px var(--shadow);
    white-space: nowrap;
}

.quick-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

/* Genre Tags (di bawah search box) */
.genre-tags-home {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.genre-tag-home {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(107, 159, 255, 0.12);
    color: var(--primary-blue);
    border: 1.5px solid rgba(107, 159, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.genre-tag-home:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Skeleton loaders */
.genre-tag-skeleton {
    display: inline-block;
    width: 70px;
    height: 30px;
    background: rgba(107, 159, 255, 0.12);
    border-radius: 20px;
    animation: shimmer 1.2s infinite;
}

.category-card-skeleton {
    height: 90px;
    background: rgba(107, 159, 255, 0.1);
    border-radius: 18px;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

/* ==============================================
   Dynamic Category Cards (Jelajahi Genre)
   ============================================== */

/* Override layout khusus untuk genreCardsHome agar tidak pakai flex column */
#genreCardsHome {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    flex-direction: unset !important;
    gap: 10px !important;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom scrollbar */
#genreCardsHome::-webkit-scrollbar {
    width: 5px;
}
#genreCardsHome::-webkit-scrollbar-track {
    background: rgba(107, 159, 255, 0.1);
    border-radius: 10px;
}
#genreCardsHome::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-blue), var(--purple));
    border-radius: 10px;
}

.category-card-dyn {
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    min-height: 75px;
}

.category-card-dyn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.category-icon-dyn {
    font-size: 1.6rem;
    line-height: 1;
}

.category-name-dyn {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Responsive quick search */
@media (max-width: 768px) {
    .quick-search-box {
        flex-direction: column;
    }

    .quick-search-btn {
        width: 100%;
    }
}

/* ==============================================
   Popular Comics Badge
   ============================================== */
.popular-card {
    position: relative;
}

.popular-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.45);
    letter-spacing: 0.3px;
}

.card-meta {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 5px;
}

/* ==============================================
   Tombol Lihat Semua
   ============================================== */
.btn-view-all {
    display: inline-block;
    padding: 9px 22px;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    white-space: nowrap;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--shadow-hover);
}

/* ==============================================
   Why Velvixie Section
   ============================================== */
.why-section {
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 232, 255, 0.85));
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px var(--shadow);
    text-align: center;
}

.why-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.why-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: var(--light-text);
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1000px;
    margin: 0 auto;
}

.why-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    padding: 30px 18px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 35px var(--shadow-hover);
}

.why-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: block;
}

.why-card h3 {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.why-card p {
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    color: var(--light-text);
    line-height: 1.6;
}

/* ==============================================
   Update Terbaru Section
   ============================================== */
.recent-section {
    margin-top: 50px;
    margin-bottom: 60px;
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 4px;
}

.recent-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--dark-text);
}

.recent-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.recent-grid::-webkit-scrollbar {
    display: none;
}
.recent-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.recent-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 0;
}

.recent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px var(--shadow-hover);
}

.recent-cover {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.recent-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.recent-title-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.recent-card:hover .recent-title-text.marquee-active {
    animation: marqueeTitleScroll 5s ease-in-out infinite alternate;
    overflow: visible;
    text-overflow: clip;
}

@keyframes marqueeTitleScroll {
    0%, 20%   { transform: translateX(0); }
    80%, 100% { transform: translateX(var(--marquee-offset, -100px)); }
}

.recent-chapter {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.recent-time {
    font-size: 0.75rem;
    color: var(--light-text);
}

/* ==============================================
   Responsive: Why & Recent (tablet)
   ============================================== */
@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-grid {
        flex: initial;
    }

    .why-section {
        padding: 45px 28px;
        margin-top: 50px;
    }
}

/* ==============================================
   Responsive: Why & Recent (mobile)
   ============================================== */
@media (max-width: 480px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .recent-grid {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 8px;
    }

    .recent-card {
        flex: 0 0 80vw;
        max-width: 300px;
        min-width: 0;
    }

    .why-section {
        padding: 35px 18px;
        border-radius: 28px;
    }

    .why-card {
        padding: 22px 14px;
    }

    .recent-section {
        margin-bottom: 40px;
    }
}

/* ══════════════════════════════════════════════════════════════
   User Nav — logged-in state dropdown
   ══════════════════════════════════════════════════════════════ */
.user-nav-wrap {
    position: relative;
}

.user-nav-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(107,159,255,.1);
    border: 1.5px solid rgba(107,159,255,.25);
    border-radius: 50px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    color: var(--dark-text);
    transition: all .2s;
}
.user-nav-trigger:hover,
.user-nav-trigger.open {
    background: rgba(107,159,255,.18);
    border-color: var(--primary-blue);
}

.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-nav-name {
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-nav-arrow {
    font-size: .65rem;
    color: var(--light-text);
    transition: transform .2s;
}
.user-nav-trigger.open .user-nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.user-nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
    display: none;
    animation: dropIn .2s ease;
}
.user-nav-dropdown.open { display: block; }

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.user-nav-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(107,159,255,.08), rgba(184,164,255,.08));
}
.user-nav-full  { font-weight: 700; font-size: .9rem; color: var(--dark-text); }
.user-nav-email { font-size: .75rem; color: var(--light-text); margin-top: 2px;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.user-nav-divider { height: 1px; background: #f0f0f0; }

.user-nav-item {
    display: block;
    padding: 11px 16px;
    font-size: .875rem;
    color: var(--dark-text);
    text-decoration: none;
    transition: background .15s;
}
.user-nav-item:hover { background: #f7f8ff; }
.user-nav-item:last-child { color: #e53e3e; }
.user-nav-item:last-child:hover { background: #fff5f5; }
