* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    background-color: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.brand h1 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.menu-btn {
    background: transparent;
    border: none;
    color: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.menu-btn span {
    font-size: 28px;
}
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: #1e293b;
    z-index: 999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-left: 1px solid #334155;
}
.mobile-menu.active {
    right: 0;
}
.mobile-menu a {
    color: #f8fafc;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 5%;
    gap: 3rem;
    width: 100%;
}
.hero {
    text-align: center;
    max-width: 800px;
}
.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}
.hero p {
    color: #94a3b8;
    font-size: 1.1rem;
}
.input-container {
    display: flex;
    width: 100%;
    max-width: 700px;
    background: #1e293b;
    border-radius: 12px;
    padding: 8px;
    gap: 8px;
}
.input-container input {
    flex: 1;
    background: #0f172a;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #f8fafc;
    padding: 0 1.5rem;
    font-size: 1rem;
    outline: none;
}
.input-container input:focus {
    border-color: #60a5fa;
}
.btn-group {
    display: flex;
    gap: 8px;
}
.paste-btn, .download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: none;
    color: #fff;
    transition: opacity 0.2s;
}
.paste-btn {
    background: #334155;
}
.download-btn {
    background: linear-gradient(90deg, #ec4899, #a855f7);
}
.paste-btn:active, .download-btn:active {
    opacity: 0.8;
}
.platforms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}
.platforms p {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.platform-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.platform-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}
.platform-card img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.card-fb { background: #1877F2; color: #fff; }
.card-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.card-tt {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}
.card-pt { background: #E60023; color: #fff; }
.result-area {
    display: none;
    width: 100%;
    max-width: 700px;
    background: #1e293b;
    border-radius: 16px;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
}
.result-area.active {
    display: flex;
}
.video-player {
    width: 100%;
    border-radius: 12px;
    background: #000;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #475569;
}
.text-info {
    flex: 1;
}
.text-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.text-info p {
    font-size: 0.9rem;
    color: #94a3b8;
}
.action-buttons {
    display: flex;
    gap: 1rem;
}
.action-buttons button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: none;
}
.btn-primary { background: #3b82f6; color: #fff; }
.btn-secondary { background: #475569; color: #fff; }
@media (max-width: 1024px) {
    .hero h2 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    main { padding: 2rem 3%; }
    .hero h2 { font-size: 2rem; }
    .input-container { flex-direction: column; background: transparent; padding: 0; max-width: 100%; gap: 12px; }
    .input-container input { padding: 1.2rem; background: #1e293b; border-radius: 12px; width: 100%; }
    .btn-group { display: flex; width: 100%; gap: 8px; }
    .paste-btn, .download-btn { flex: 1; padding: 1.2rem; justify-content: center; border-radius: 12px; }
    .mobile-menu { width: 100%; }
}
@media (max-width: 480px) {
    .hero h2 { font-size: 1.6rem; }
    .hero p { font-size: 0.95rem; }
    .platform-card { padding: 8px 12px; font-size: 0.8rem; }
    .platform-card img { width: 20px; height: 20px; }
    .author-info { flex-direction: column; text-align: center; }
    .action-buttons { flex-direction: column; }
}

.how-to-section, .article-section {
    width: 100%;
    max-width: 900px;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #f8fafc;
}
.section-title span {
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.how-to-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    width: 100%;
}
.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: #1e293b;
    border-radius: 16px;
    transition: transform 0.3s;
}
.step-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
}
.step-number {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}
.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}
.step-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}
.article-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.article-intro {
    background: #1e293b;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.article-intro h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}
.article-intro p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}
.feature-box {
    background: #1e293b;
    padding: 2rem;
    border-radius: 16px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feature-box:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
}
.feature-box .material-icons {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.feature-box h4 {
    font-size: 1.2rem;
    color: #f8fafc;
}
.feature-box p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

    .how-to-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .section-title { font-size: 1.6rem; margin-bottom: 1.5rem; }
    .step-card, .article-content { padding: 1.5rem; }
.how-to-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem;
    width: 100%;
}
@media (max-width: 768px) {
    .how-to-grid { 
        grid-template-columns: 1fr !important; 
        gap: 1.5rem; 
        }
    .features-grid { grid-template-columns: 1fr; }
    .article-intro { padding: 1.5rem; text-align: left; }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }

    }
}

.plain-article-section {
    width: 100%;
    max-width: 850px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}
.plain-article-section .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}
.plain-article-content p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.faq-section {
    width: 100%;
    max-width: 800px;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
}
.faq-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
}
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.3s;
}
.faq-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f8fafc;
}
.faq-header .icon-arrow {
    color: #ec4899;
    transition: transform 0.3s ease;
}
.faq-body {
    max-height: 0;
    padding: 0 1.5rem;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-body {
    max-height: 300px;
    padding: 0 1.5rem 1.2rem 1.5rem;
}
.faq-item.active .faq-header .icon-arrow {
    transform: rotate(180deg);
}
footer {
    width: 100%;
    background: #0b1120;
    padding: 2.5rem 5%;
    border-top: 1px solid #1e293b;
    margin-top: 4rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-brand h2 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.footer-brand p {
    color: #64748b;
    font-size: 0.9rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #60a5fa;
}


/* CSS untuk Popup Notifikasi (Toast) */
.toast-box {
    position: fixed;
    top: 20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}
.toast {
    padding: 12px 20px;
    background: #1e293b;
    color: #f8fafc;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s forwards, fadeOut 0.3s forwards 2.7s;
}
.toast.error {
    border-left: 4px solid #ef4444;
}
.toast.success {
    border-left: 4px solid #10b981;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

/* CSS untuk Efek Proses / Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    display: none; /* Disembunyikan secara default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    gap: 15px;
}
.loading-overlay.active {
    display: flex;
}
.loading-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
.loading-overlay p {
    color: #f8fafc;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}


.result-area {
    display: none;
    width: 100%;
    max-width: 650px;
    background: #1e293b;
    border-radius: 16px;
    padding: 1.2rem;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.result-area.active {
    display: flex;
}
.video-player {
    width: 100%;
    border-radius: 12px;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    max-height: 500px; /* Membatasi tinggi agar tidak terlalu panjang */
}

.video-player video {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain; /* PENTING: Memastikan seluruh isi video & kontrol bawaan muat sempurna tanpa terpotong */
    display: block;
}

.author-info-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.badge-platform {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #334155;
}
.author-info-centered h3 {
    font-size: 1.15rem;
    color: #f8fafc;
    margin: 0;
}
.author-info-centered p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
    word-break: break-word;
}
#btn-download-video {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    background: #3b82f6;
    color: #fff;
    transition: background 0.3s;
}
#btn-download-video:active {
    background: #2563eb;
}
/* CSS untuk Popup Notifikasi (Toast) */
.toast-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px; /* Membatasi lebar maksimal */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}
.toast {
    padding: 16px;
    background: #1e293b;
    color: #f8fafc;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-start; /* Sejajarkan ke atas jika teks panjang */
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s forwards, fadeOut 0.3s forwards 4.7s; /* Waktu tampil diperlama jadi 5 detik */
}
.toast.error {
    border-left: 4px solid #ef4444;
}
.toast.success {
    border-left: 4px solid #10b981;
}
.toast-icon {
    flex-shrink: 0; /* Mencegah ikon mengecil */
    font-size: 24px;
}
.toast-message {
    flex: 1; /* Teks akan mengambil sisa ruang */
    line-height: 1.5;
    word-break: break-word; /* Mencegah teks keluar dari kotak */
}

.ads-slot {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    text-align: center;
}

.ads-slot iframe,
.ads-slot img,
.ads-slot ins,
.ads-slot div {
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
}

.ads-desktop {
    display: flex;
}

.ads-mobile {
    display: none;
}

@media (max-width: 768px) {
    .ads-desktop {
        display: none !important;
    }
    .ads-mobile {
        display: flex !important;
    }
    .ads-slot {
        margin: 1rem auto;
        padding: 0 5px;
    }
}


/* --- CSS KHUSUS HALAMAN SYARAT & KETENTUAN --- */

.legal-wrapper {
    width: 100%;
    max-width: 800px; /* Lebar maksimal agar teks nyaman dibaca */
    margin: 4rem auto; /* Jarak atas dan bawah */
    padding: 0 5%;
    font-family: 'Poppins', sans-serif;
    background: transparent; /* Tanpa Box */
    border: none; /* Tanpa Border */
}

.legal-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.legal-date {
    color: #64748b;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.legal-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f8fafc;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: left;
    margin: 0;
}

/* Kustomisasi List (ul & li) agar rapi dan unik */
.legal-list {
    list-style: none; /* Menghilangkan bullet bawaan browser */
    padding-left: 0;
    margin: 0.5rem 0 1.5rem 0;
}

.legal-list li {
    position: relative;
    padding-left: 1.8rem;
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

/* Membuat bullet custom (titik biru) agar rapi */
.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px; /* Penyesuaian posisi agar sejajar dengan teks */
    width: 8px;
    height: 8px;
    background-color: #3b82f6; /* Warna biru senada dengan tema */
    border-radius: 50%; /* Ini hanya untuk icon bullet, bukan box/container */
}

/* Responsif untuk layar HP */
@media (max-width: 768px) {
    .legal-wrapper {
        margin: 2rem auto;
    }
    .legal-title {
        font-size: 2rem;
    }
    .legal-heading {
        font-size: 1.2rem;
    }
    .legal-content p, .legal-list li {
        font-size: 0.95rem;
    }
}


/* --- CSS KHUSUS HALAMAN 404 ERROR --- */

.error-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 65vh; /* Memastikan posisinya berada di tengah layar */
    padding: 2rem 5%;
}

.error-anim {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    /* Panggilan animasi melayang */
    animation: floatUpDown 3.5s ease-in-out infinite;
}

.svg-error {
    width: 130px;
    height: 130px;
    margin-bottom: -15px; /* Mendekatkan jarak SVG dengan teks 404 */
    filter: drop-shadow(0 8px 15px rgba(96, 165, 250, 0.2));
}

.error-code {
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    text-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.error-title {
    font-size: 1.8rem;
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 1rem;
}

.error-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.btn-back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.05rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-back-home:hover {
    transform: translateY(-4px); /* Efek terangkat saat disentuh */
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
}

/* Keyframes untuk Animasi Melayang */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsif untuk Layar Ponsel */
@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }
    .svg-error {
        width: 100px;
        height: 100px;
    }
    .error-title {
        font-size: 1.4rem;
    }
    .error-desc {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    .btn-back-home {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}
