/* Variabel Warna - Dark Theme */
:root {
    --bg-main: #191d21;
    --bg-navbar: #151618;
    --bg-card: #1c2128;
    --cyan: #14b8d4;
    --gold: #d4ae5c;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --text-light: #ffffff;
    --border: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

.text-cyan {
    color: var(--cyan);
}

.text-gold {
    color: var(--gold);
}

/* Typography & Titles */
.section-subtitle {
    display: block;
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

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

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 15px;
}

.package-category-title {
    text-align: center;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--cyan);
    color: #000;
}

.btn-primary:hover {
    background: #11a2bc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 184, 212, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-navbar);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--cyan);
}

.btn-nav {
    background: var(--gold);
    color: #000 !important;
    padding: 8px 18px;
    border-radius: 6px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 20px 60px;
}

.hero-content {
    max-width: 800px;
}

.hero-center-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto 30px auto;
    display: block;
}

.tagline {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

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

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

/* Layout Grid Sections */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Statistik Layout (Yang Tadi Berantakan) */
.stats-section {
    padding: 40px 20px;
    background: var(--bg-navbar);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    margin-bottom: 40px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-item:nth-child(2) .stat-number {
    color: #6366f1;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Keunggulan */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 184, 212, 0.3);
}

.icon-box {
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Langkah Berlangganan */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.step-item {
    position: relative;
}

.step-circle {
    background: var(--bg-card);
    border: 2px solid var(--border);
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #6366f1;
    z-index: 2;
    position: relative;
}

.step-success {
    color: #10b981;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.step-item h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Paket Harga */
.pricing-grid-monthly {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1050px;
    margin: 0 auto;
}

.pricing-grid-hotspot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.pricing-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.popular {
    border-color: var(--cyan);
}

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

.pricing-card h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0;
    color: var(--text-light);
}

.price span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.speed {
    display: inline-block;
    background: rgba(20, 184, 212, 0.1);
    color: var(--cyan);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.features-list {
    list-style: none;
    margin-bottom: 25px;
    color: var(--text-muted);
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.info-box {
    background: rgba(212, 174, 92, 0.1);
    border-left: 4px solid var(--gold);
    padding: 15px 20px;
    margin: 0 auto 30px;
    max-width: 800px;
    border-radius: 0 8px 8px 0;
}

.info-box p {
    color: var(--text-main);
    font-size: 0.95rem;
}

.info-box a {
    color: var(--cyan);
    font-weight: 600;
}

/* Testimoni */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testi-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stars {
    color: #facc15;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testi-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
}

.testi-user h4 {
    color: var(--text-light);
    font-size: 1rem;
}

.testi-user span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Hubungi Kami / Kontak */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

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

.info-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.info-card h4 {
    color: var(--text-light);
    font-size: 1.1rem;
}

.op-hours {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.op-hours h4 {
    color: #6366f1;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

/* Form Kontak & Pendaftaran */
.contact-form-box {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
}

textarea.form-control {
    resize: vertical;
}

/* Portals & App Banner */
.portal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.portal-card {
    flex: 1;
    min-width: 280px;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s;
}

.portal-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.portal-icon {
    font-size: 2rem;
}

.app-banner {
    background: rgba(20, 184, 212, 0.05);
    border: 1px solid var(--cyan);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.app-banner-text {
    flex: 1;
    min-width: 250px;
}

.app-banner-text h3 {
    color: var(--cyan);
    margin-bottom: 5px;
}

.app-banner-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--cyan);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-app:hover {
    background: var(--cyan);
    color: #000;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
    border: none;
}

.cta-icon {
    background: rgba(99, 102, 241, 0.1);
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 2rem;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Extended Footer */
.extended-footer {
    background: var(--bg-navbar);
    border-top: 1px solid var(--border);
    padding: 60px 20px 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-links h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Logic */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-navbar);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 999;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* =========================================================
   TAMBAHAN FITUR CHECKOUT & INTEGRASI SANDBOX DUITKU
   ========================================================= */

.package-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 10px 0 15px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 9px 15px;
    font-size: 0.88rem;
}

.btn-nav-checkout {
    background: linear-gradient(135deg, #14b8d4, #0284c7);
    color: #000 !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-nav-checkout:hover {
    box-shadow: 0 4px 15px rgba(20, 184, 212, 0.4);
    transform: translateY(-2px);
}

.badge-sandbox {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(20, 184, 212, 0.15);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: var(--text-light);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

/* Order Summary Box */
.order-summary-box {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-total {
    border-top: 1px dashed var(--border);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-light);
}

.summary-total .price-highlight {
    color: var(--cyan);
    font-size: 1.25rem;
    font-weight: 800;
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.payment-method-item {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s;
}

.payment-method-item input[type="radio"] {
    position: absolute;
    top: 8px;
    right: 8px;
    accent-color: var(--cyan);
}

.payment-method-item:hover {
    border-color: var(--cyan);
    background: rgba(20, 184, 212, 0.05);
}

.payment-method-item.active {
    border-color: var(--cyan);
    background: rgba(20, 184, 212, 0.12);
    box-shadow: 0 0 10px rgba(20, 184, 212, 0.2);
}

.payment-method-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.payment-method-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
}

.payment-method-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Security Guarantee Banner */
.duitku-security-notice {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #6ee7b7;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

/* Simulator / Result Modal */
.simulator-box {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.qr-code-placeholder {
    width: 180px;
    height: 180px;
    margin: 15px auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.va-box {
    background: rgba(20, 184, 212, 0.08);
    border: 1px dashed var(--cyan);
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
}

.va-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cyan);
    letter-spacing: 1.5px;
    margin: 5px 0;
}

.timer-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid #ef4444;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.copy-btn {
    background: var(--border);
    color: var(--text-light);
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #475569;
}

/* =========================================================
   MODAL PENGATURAN API & SISTEM
   ========================================================= */
.settings-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cyan);
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section-title:first-of-type {
    margin-top: 5px;
}

.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

.btn-test {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid #6366f1;
    color: #a5b4fc;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-test:hover {
    background: #6366f1;
    color: #fff;
}

.btn-nav-settings {
    color: var(--text-muted) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-nav-settings:hover {
    color: var(--cyan) !important;
    border-color: var(--cyan);
    background: rgba(20, 184, 212, 0.08);
}

.alert-box {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.85rem;
    margin-top: 15px;
    display: none;
    line-height: 1.4;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

/* =========================================================
   ADMIN AUTHENTICATION & LOGIN SYSTEM
   ========================================================= */

.admin-login-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #a5b4fc;
    line-height: 1.5;
}

.admin-login-info span:first-child {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Admin Floating Action Button */
.admin-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.admin-fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    background: linear-gradient(135deg, rgba(20, 184, 212, 0.2), rgba(99, 102, 241, 0.2));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(20, 184, 212, 0.25);
    animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(20, 184, 212, 0.25); }
    50% { box-shadow: 0 4px 30px rgba(20, 184, 212, 0.45); }
}

.admin-fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: linear-gradient(135deg, rgba(20, 184, 212, 0.35), rgba(99, 102, 241, 0.35));
    box-shadow: 0 6px 30px rgba(20, 184, 212, 0.4);
}

.admin-fab-menu {
    position: absolute;
    bottom: 68px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.admin-fab-menu button {
    display: block;
    width: 100%;
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-fab-menu button:hover {
    background: rgba(20, 184, 212, 0.1);
    color: var(--cyan);
    padding-left: 22px;
}

/* Admin Top Bar */
.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: linear-gradient(90deg, #1a1a2e, #16213e);
    border-bottom: 2px solid var(--cyan);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 20px;
    font-size: 0.82rem;
    box-shadow: 0 2px 15px rgba(20, 184, 212, 0.2);
}

.admin-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-bar button {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 4px 14px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-bar button:hover {
    background: #ef4444;
    color: #fff;
}

/* Adjust navbar when admin bar is visible */
body.admin-logged-in .navbar {
    top: 36px;
}

body.admin-logged-in {
    padding-top: 36px;
}

@media (max-width: 768px) {
    .admin-fab {
        bottom: 20px;
        right: 20px;
    }

    .admin-fab-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .admin-fab-menu {
        right: -5px;
        min-width: 220px;
    }

    .admin-bar {
        font-size: 0.75rem;
        padding: 6px 12px;
        gap: 10px;
    }
}

/* Shake animation for login failure */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}
/* ===== Checkout: persetujuan S&K ===== */
.checkout-agree {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}
.checkout-agree input { margin-top: 3px; }
.checkout-agree a { color: var(--cyan); }

/* ===== Halaman sederhana: status, kebijakan, admin ===== */
.page-simple { min-height: 100vh; }
.status-page, .policy-page, .admin-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 16px 60px;
}
.policy-page { max-width: 820px; line-height: 1.7; }
.admin-page { max-width: 1400px; }
.status-brand {
    display: inline-block;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 24px;
}
.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}
.status-card h1 { font-size: 1.5rem; color: var(--text-light); margin-bottom: 8px; }
.status-msg { color: var(--text-muted); margin-bottom: 20px; }
.status-icon {
    width: 72px; height: 72px; margin: 0 auto 16px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800; border: 2px solid;
}
.status-ok   { color: #10b981; background: rgba(16,185,129,.12); }
.status-wait { color: var(--gold); background: rgba(212,174,92,.12); }
.status-fail { color: #ef4444; background: rgba(239,68,68,.12); }
.status-details { text-align: left; border-top: 1px solid var(--border); margin: 0 0 16px; }
.status-details div {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.status-details dt { color: var(--text-muted); }
.status-details dd { color: var(--text-light); margin: 0; word-break: break-all; }
.status-next { color: #6ee7b7; font-size: 0.9rem; margin-bottom: 16px; }
.status-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.status-help { margin-top: 24px; font-size: 0.82rem; color: var(--text-muted); }
.status-help a, .policy-page a { color: var(--cyan); }

.policy-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 30px; font-size: 0.9rem; }
.policy-page section { margin-bottom: 40px; scroll-margin-top: 20px; }
.policy-page h1 { font-size: 1.6rem; color: var(--text-light); margin-bottom: 12px; }
.policy-page h3 { color: var(--text-light); margin: 18px 0 6px; }
.policy-page p, .policy-page li { color: var(--text-main); }
.policy-page ul { padding-left: 20px; }
.policy-page li { margin-bottom: 6px; }

.admin-page h1 { color: var(--text-light); margin-bottom: 6px; }
.admin-page h1 small { font-size: 0.9rem; color: var(--gold); }
.admin-summary { color: var(--text-muted); margin-bottom: 14px; }
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-filter a {
    padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px;
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
}
.admin-filter a.on { border-color: var(--cyan); color: var(--cyan); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table th, .admin-table td {
    padding: 10px; border-bottom: 1px solid var(--border);
    text-align: left; vertical-align: top; color: var(--text-main);
}
.admin-table th { background: var(--bg-card); color: var(--text-muted); white-space: nowrap; }
.pill { padding: 2px 10px; border-radius: 12px; font-weight: 700; font-size: 0.75rem; }
.pill-paid    { background: rgba(16,185,129,.15); color: #10b981; }
.pill-pending { background: rgba(212,174,92,.15); color: var(--gold); }
.pill-failed  { background: rgba(239,68,68,.15); color: #ef4444; }

/* ===== Cara Beli & Bayar ===== */
.buy-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.buy-flow-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.buy-flow-card h3 { color: var(--text-light); }
.buy-flow-card ol { padding-left: 20px; color: var(--text-main); line-height: 1.7; flex: 1; }
.buy-flow-card li { margin-bottom: 4px; }
.pricing-grid-single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.pricing-grid-two { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; }
