/* =========================================
   1. GLOBAL & VARIABLES
   ========================================= */
:root {
    --bg-dark: #0f0f13;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #c5a059;
    /* Emas Mewah */
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --gradient-1: #4a3b2a;
    --gradient-2: #1e3c72;
}

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

body {
    background-color: var(--bg-dark);
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* =========================================
   BACKGROUND ANIMASI (BLOB LEBIH HIDUP)
   ========================================= */

.bg-shape {
    position: fixed;
    border-radius: 50%;
    /* BLUR DIKURANGI: Dari 100px jadi 80px agar bentuk lebih tegas */
    filter: blur(80px);
    z-index: -1;
    /* Campuran warna agar lebih menyatu (opsional, modern effect) */
    mix-blend-mode: screen;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    /* Warna Cokelat/Emas */
    /* OPACITY DINAIKKAN: Agar warna lebih keluar */
    opacity: 0.6;
    /* Animasi: Bergerak selama 20 detik, bebas */
    animation: move-1 20s infinite alternate linear;
}

.shape-2 {
    bottom: 10%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: var(--gradient-2);
    /* Warna Biru */
    opacity: 0.5;
    /* Animasi: Bergerak beda waktu (25s) agar tidak barengan */
    animation: move-2 25s infinite alternate-reverse linear;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 350px;
    height: 350px;
    background: #800000;
    /* Merah Maroon */
    opacity: 0.4;
    /* Animasi: Bergerak paling cepat (18s) */
    animation: move-3 18s infinite alternate linear;
}

/* =========================================
   ANIMASI GERAKAN LIAR & AKTIF (FULL SCREEN)
   ========================================= */

/* Shape 1: Dari Kiri Atas -> Jalan-jalan ke Kanan Bawah -> Muter */
@keyframes move-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        /* Pindah jauh ke kanan (80% layar) & agak turun */
        transform: translate(80vw, 20vh) scale(1.2) rotate(45deg);
    }

    50% {
        /* Pindah ke bawah tengah */
        transform: translate(40vw, 80vh) scale(0.8) rotate(90deg);
    }

    75% {
        /* Pindah ke kiri bawah */
        transform: translate(-10vw, 50vh) scale(1.1) rotate(135deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

/* Shape 2: Dari Kanan Bawah -> Nyebrang ke Kiri Atas */
@keyframes move-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        /* Nyebrang jauh ke kiri (70% layar) & naik */
        transform: translate(-70vw, -30vh) scale(1.3);
    }

    66% {
        /* Geser ke tengah atas */
        transform: translate(-30vw, -80vh) scale(0.7);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Shape 3: Si "Liar" (Zig-zag Tengah Layar) */
@keyframes move-3 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    20% {
        /* Ke Kanan Atas */
        transform: translate(60vw, -40vh) rotate(60deg);
    }

    40% {
        /* Ke Kiri Bawah */
        transform: translate(-50vw, 30vh) rotate(120deg);
    }

    60% {
        /* Ke Kanan Bawah */
        transform: translate(40vw, 60vh) rotate(180deg);
    }

    80% {
        /* Ke Kiri Atas */
        transform: translate(-30vw, -20vh) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* =========================================
   2. NAVBAR GLASS & LOGO
   ========================================= */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 19, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO CUSTOM WHYMPRN (TEKNIK JUSTIFY) */
.brand-logo {
    display: flex;
    flex-direction: column;
    width: fit-content;
    color: var(--text);
}

.brand-main {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    line-height: 1;
}

.brand-sub {
    display: flex;
    justify-content: space-evenly;
    /* KUNCINYA DISINI */
    width: 100%;
    font-size: 0.5rem;
    font-weight: 400;
    color: var(--primary);
    margin-top: 2px;
}

/* Menu Desktop */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
}

/* Tombol CTA di Navbar */
.btn-cta {
    background: var(--primary);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600 !important;
}

.btn-cta:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Hamburger Menu (HP) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: 0.3s;
    background-color: white;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    margin-right: 50px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
}

.badge-glass {
    background: var(--glass-bg);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Mockup Glass Effect */
.glass-mockup {
    position: relative;
}

.glass-mockup img {
    max-width: 300px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.floating-card {
    position: absolute;
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 6s infinite alternate;
}

.c1 {
    top: 20%;
    left: -30px;
}

.c2 {
    bottom: 20%;
    right: -30px;
    animation-delay: 1s;
}

/* =========================================
   4. GLASS CARD (KATALOG & PRICING)
   ========================================= */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

/* Katalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.modern-bg {
    background: linear-gradient(45deg, #111, #333);
}

.jawa-bg {
    background: linear-gradient(45deg, #2c241b, #4a3b2a);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    height: 60px;
}

.card-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.card-features span {
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(197, 160, 89, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.btn-outline {
    display: block;
    text-align: center;
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Update di style.css bagian Pricing */

.pricing-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Supaya turun ke bawah kalau di HP */
    align-items: stretch;
    /* Agar tinggi kartu sama rata */
}

.pricing-card {
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    /* Agar lebar kartu seimbang */
    min-width: 300px;
    max-width: 380px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Deskripsi kecil di bawah harga */
.price-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

/* List Fitur */
.features-list {
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
    /* Mendorong tombol ke paling bawah agar sejajar */
}

.features-list li {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Icon Ceklis Emas */
.features-list i.fa-check,
.features-list i.fa-star,
.features-list i.fa-crown,
.features-list i.fa-paint-brush,
.features-list i.fa-globe,
.features-list i.fa-headset {
    color: var(--primary);
    margin-top: 4px;
    /* Biar pas sama teks */
}

/* Item yang tidak tersedia (Silang) */
.features-list li.disabled {
    color: #666;
    /* Warna abu gelap */
    text-decoration: line-through;
    /* Coret */
}

.features-list i.fa-times {
    color: #555;
}

/* Tombol di Card */
.pricing-card a {
    margin-top: auto;
    /* Memaksa tombol selalu di dasar kartu */
}

.pricing-card.featured {
    border-color: var(--primary);
    background: rgba(197, 160, 89, 0.05);
}

.badge-best {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: #000;
    padding: 5px 15px;
    border-bottom-left-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
}

.price {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 1px 0;
    color: var(--primary);
}

.price-mulai {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1px 0;
    color: var(--primary);
}

.features-list {
    text-align: left;
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.features-list i {
    margin-right: 10px;
    color: var(--primary);
}

.features-list i.fa-times {
    color: #555;
}

.full-width {
    display: block;
    width: 100%;
    text-align: center;
}

/* =========================================
   5. FOOTER & RESPONSIVE
   ========================================= */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    padding: 50px 0;
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    transform: scale(0.8);
    transform-origin: left;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-left: 15px;
}

.socials a:hover {
    color: var(--primary);
}

/* =========================================
   RESPONSIVE MEDIA QUERIES (FULL UPDATE)
   ========================================= */
@media (max-width: 768px) {

    /* --- 1. NAVBAR HP (Hamburger) --- */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: rgba(15, 15, 19, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    /* --- 2. HERO SECTION HP (Perbaikan Posisi) --- */
    .hero-text {
        margin-right: 0;
        text-align: center;
        margin-bottom: 50px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* INI PERBAIKANNYA: Container Gambar */
    .hero-image {
        order: -1;
        margin-bottom: 40px;
        padding: 0 40px;
        /* Memberi ruang kiri-kanan agar kartu tidak kepotong */
        display: flex;
        justify-content: center;
        overflow: visible;
        /* Pastikan elemen yang keluar tetap terlihat */
    }

    /* Perkecil Gambar HP agar proporsional */
    .glass-mockup img {
        display: block;
        /* Wajib agar margin auto berfungsi */
        margin: 0 auto;
        /* Rumus ajaib untuk rata tengah kiri-kanan */

        width: 90%;
        /* Lebar gambar 90% dari layar
        max-width: 320px;     /* Batas maksimal biar gambar tidak pecah/kegedean */

        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* Styling Kartu Melayang di HP */
    .floating-card {
        padding: 8px 15px;
        /* Lebih kecil */
        font-size: 0.75rem;
        /* Font lebih kecil */
        white-space: nowrap;
        /* Teks sebaris */
        z-index: 10;
    }

    /* Posisi Kartu Anti-Spam (Kiri) */
    .c1 {
        top: 15%;
        left: -10px;
        /* Aman karena ada padding parent */
    }

    /* Posisi Kartu Fast Load (Kanan) */
    .c2 {
        bottom: 15%;
        right: -30px;
        /* Aman karena ada padding parent */
    }

    /* --- 3. FOOTER HP --- */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        transform-origin: center;
        margin-bottom: 10px;
    }

    .socials a {
        margin: 0 10px;
    }
}

/* =========================================
   6. FAQ SECTION (AUTO SCROLL)
   ========================================= */

.faq-container {
    max-width: 700px;
    margin: 0 auto;
    /* Tinggi total kotak FAQ */
    height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Sembunyikan scrollbar bawaan */
    position: relative;
    border-color: var(--primary);
    /* Border Emas */
}

.faq-header {
    background: rgba(197, 160, 89, 0.2);
    /* Emas Transparan */
    padding: 15px 25px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
    border-bottom: 1px solid var(--glass-border);
    z-index: 2;
}

.faq-scroll-box {
    flex: 1;
    overflow-y: auto;
    /* Izinkan scroll manual */
    position: relative;
    cursor: grab;
    /* Ubah kursor jadi tangan agar terlihat bisa digeser */

    /* Sembunyikan Scrollbar (Chrome/Safari/Opera) */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Sembunyikan Scrollbar (Chrome/Safari/Opera) */
.faq-scroll-box::-webkit-scrollbar {
    display: none;
}

.faq-item:active {
    cursor: grabbing;
    /* Efek mencengkeram saat diklik */
}

.faq-content {
    /* Animasi CSS Native (Cadangan jika JS mati) */
    /* animation: scrollUp 20s linear infinite; */
}

.faq-item {
    padding: 20px 25px;
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    /* Highlight saat disentuh */
}

.faq-item h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon Q (Tanya) sebelum judul */
.faq-item h4::before {
    content: 'Q.';
    color: var(--primary);
    font-weight: 800;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-left: 25px;
    /* Indentasi jawaban */
}

.copyright {
    font-size: 12px;
}

/* =========================================
   7. POPUP KOLABORASI (REVISI POSISI)
   ========================================= */

/* Container Utama */
.popup-overlay {
    position: fixed;
    z-index: 9990;
    /* Z-Index di bawah Chatbot (10000) tapi di atas konten lain */
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Style Kotak Glass */
.popup-box {
    background: rgba(15, 15, 19, 0.336);
    /* Dibuat agak gelap biar teks jelas */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    position: relative;
    color: white;
}

/* --- SETTING POSISI (DESKTOP VS HP) --- */

/* 1. TAMPILAN LAPTOP (Pojok Kanan ATAS) */
@media (min-width: 769px) {
    .popup-overlay {
        top: 100px;
        /* Jarak dari atas (agar tidak menutupi Navbar) */
        bottom: auto;
        /* Reset posisi bawah */
        right: 30px;
        width: 320px;
        transform: translateX(100px);
        /* Animasi masuk dari kanan */
    }

    .popup-overlay.show {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }
}

/* 2. TAMPILAN HP (TENGAH LAYAR / CENTER) */
@media (max-width: 768px) {
    .popup-overlay {
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        /* Teknik centering + animasi zoom out sedikit */
        transform: translate(-50%, -50%) scale(0.8);
        width: 85%;
        max-width: 350px;
    }

    .popup-overlay.show {
        visibility: visible;
        opacity: 1;
        /* Posisi tengah + Zoom normal */
        transform: translate(-50%, -50%) scale(1);
    }

    /* Perkecil elemen dalam agar ringkas di HP */
    .popup-box {
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .popup-icon {
        font-size: 2rem !important;
        margin-bottom: 5px !important;
    }

    .popup-box h3 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }

    .popup-box p {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
        line-height: 1.3;
    }

    .small-note {
        display: none;
        /* Hide teks kecil di HP */
    }

    .btn-popup {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
        width: 100%;
    }
}

/* --- ELEMEN PENDUKUNG (TETAP SAMA) --- */
.btn-close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-close-popup:hover {
    background: var(--primary);
    color: black;
}

.popup-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.popup-box h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.popup-box p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.small-note {
    font-size: 0.7rem !important;
    color: #888;
    margin-bottom: 15px !important;
    font-style: italic;
}

.btn-popup {
    display: block;
    background: var(--primary);
    color: #000;
    padding: 10px 0;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.btn-popup:hover {
    background: white;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   8. CHATBOT WIDGET (REVISI POSISI POJOK)
   ========================================= */
.chat-widget {
    position: fixed;
    bottom: 30px;
    /* DITURUNKAN: Dari 100px jadi 30px */
    right: 30px;
    /* Sedikit digeser ke kiri biar tidak mepet layar */
    z-index: 10000;
}

.chat-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.chat-btn:hover {
    transform: scale(1.05);
    background: #fff;
}

.chat-box {
    position: absolute;
    bottom: 70px;
    /* Jarak kotak chat dari tombol saat dibuka */
    right: 0;
    width: 320px;
    height: 450px;
    background: rgba(15, 15, 19, 0.333);
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary);
    border-radius: 15px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 0 !important;
}

.chat-box.active {
    display: flex;
    animation: slideInChat 0.3s ease;
}

@keyframes slideInChat {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: var(--primary);
    padding: 15px;
    color: #000;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-chat {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #000;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border-radius: 50px;
    border: 1px solid #444;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.chat-input-area button {
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Bubbles */
.bot-msg {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    align-self: flex-start;
    color: #eee;
    line-height: 1.4;
    max-width: 85%;
}

.user-msg {
    background: var(--primary);
    color: #000;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    align-self: flex-end;
    font-weight: 500;
    max-width: 85%;
}

/* POSISI KHUSUS HP (MEDIA QUERY) */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 20px;
        /* HP: Lebih mepet bawah (20px) */
        right: 20px;
    }

    .chat-box {
        width: 300px;
        height: 400px;
        right: 0;
        bottom: 60px;
        /* Agar tidak ketutup keyboard saat ngetik */
    }
}