/* Global Reset and Body */
* {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    /* Background Image setup */
    background: 
        linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)),
        url('static/background.webp') no-repeat center center / cover,
        url('https://dpogo.com/download/05qkHY') no-repeat center center / cover;
    background-attachment: fixed; /* NEW: Membuat latar belakang statik */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
}
.container {
    max-width: 450px;
    width: 98%;
    background: rgba(0, 0, 0, 0.80);
    padding: 10px 10px; 
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    animation: fadeIn 0.6s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
h3 {
    text-align: center;
    color: #ffeb3b; 
    margin-top: 20px;
    margin-bottom: 15px;
    border: 2px solid #00b4db; 
    border-radius: 6px;
    padding: 6px 10px;
    display: block; 
    width: 100%; 
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    box-sizing: border-box; 
}
h4 {
    text-align: center;
    color: #00e5ff;
    margin-top: 15px;
    margin-bottom: 10px;
}
p {
    font-size: 0.95em;
    line-height: 1.5em;
    margin: 5px 0;
    color: #ddd; /* Tambah semula warna teks untuk kontena */
}
.highlight {
    color: #ffeb3b;
    font-weight: bold;
}
.highlight-blue {
    color: #00e5ff;
    font-weight: bold;
}
.highlight-orange {
    color: #ffa200;
    font-weight: bold;
}
.highlight-red {
    color: #ff1500;
    font-weight: bold;
}
.product-info, .description {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    font-size: 0.9em;
}
.description hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 10px 0;
}
label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
    color: #ddd;
}
.input-group {
    position: relative;
    width: 100%;
}
.input-group input, .input-group select {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid #666;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
    color: #333;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.input-group input:focus, .input-group select:focus {
    border: 1px solid #00e5ff;
    box-shadow: 0 0 6px rgba(0,229,255,0.5);
    outline: none;
}
.input-group.select-wrapper::before {
    content: "📦";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.7;
    pointer-events: none;
}
.input-group select {
    padding-left: 40px;
}
/* Menetapkan ikon 'email' hanya untuk input email, bukan select */
.input-group:not(.select-wrapper):before {
    content: "📧";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.7;
    pointer-events: none;
}

/* Container select */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 35px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 0.9em; /* set font size */
}

/* Text dalam selected item */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000;
    line-height: normal;
    font-size: 0.9em; /* set font size */
}

/* Arrow dropdown */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #000 transparent transparent transparent;
}

/* Option dropdown */
.select2-container--default .select2-results__option {
    color: #000;
    background-color: #fff;
    font-size: 0.9em; /* set font size */
}

/* Hover / focus */
.select2-container--default .select2-results__option--highlighted {
    background-color: #e2e2e2;
    color: #000;
    font-size: 0.9em; /* set font size */
}
/* *** PEMBETULAN BUTANG/LINK *** */
button, .btn-primary { /* Tambah .btn-primary untuk konsistensi */
    padding: 14px;
    background: linear-gradient(to right, #007bff, #00b4db);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease;
    margin-top: 10px;
    text-decoration: none; /* Penting untuk link a.btn-primary */
    display: inline-block; /* Penting untuk link a.btn-primary */
}
button:hover, .btn-primary:hover {
    transform: scale(1.03);
    text-decoration: none;
}
.footer {
    text-align: center;
    font-size: 0.9em;
    color: #aaa;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    padding-bottom: 10px;
}
/* *** PEMBETULAN FOOTER PEMBAYARAN *** */
.footer-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 14px;
    color: #ccc;
    padding: 5px 0;
}
.secure-logo {
    width: 25px; /* Dikekalkan 25px seperti yang anda berikan sebelum ini */
    height: 25px;
    margin-right: -2px;
    color: #28a745; 
    vertical-align: middle;
}
.stripe-logo {
    width: 25px; /* Dikekalkan 25px seperti yang anda berikan sebelum ini */
    height: 25px;
    border-radius: 4px;
    vertical-align: middle;
}
/* ------------------------------------- */
/* TAB STYLES */
/* ------------------------------------- */
.tabs {
    display: flex;
    flex-wrap: nowrap;        /* ❗️Force 1 row only */
    width: 100%;
    margin-top: 15px;
}

.tab {
    flex: 1;                  /* ❗️Each tab share equal width */
    text-align: center;
    font-size: 0.9em;
}

.tab a {
    display: block;
    width: 100%;
    padding: 12px 5px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    border-radius: 6px 6px 0 0;
    background: rgba(0,0,0,0.5);
    border-bottom: 3px solid transparent;
    transition: background 0.3s, border-bottom 0.3s;
}

.tab.active a {
    background: #00b4db;
    border-bottom: 3px solid #00b4db;
    color: #fff;
}

.tab-content {
    display: none;
    padding: 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    min-height: 400px;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* Tutorial Specific Styles */
.step-list { padding-left: 10px; margin-top: 10px; font-size: 0.9em; }
.step-list p::before { content: "➡ "; color: #ffeb3b; }
#licenseKey {
    color: #eadf11; 
    cursor: pointer; 
    user-select: all; 
    background: #111; 
    border: 1px solid #ff1500;
    border-radius: 8px; 
    font-size: 1.2em; 
    font-family: 'Courier New', Courier, monospace; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    white-space: pre-wrap;
    word-break: break-all;
    text-align: left;
    max-width: 100%;
    font-weight: bold;
    padding: 20px 65px 0px 65px; 
    margin: 0;
}
/* Carousel Styles */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 1; 
}
.carousel img {
    display: none;
    width: 100%;
    border-radius: 8px;
}
.carousel img.active { display: block; }
.carousel .prev, .carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffeb3b;
    color: #000;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 22px;
    z-index: 10; 
    transition: background 0.3s ease, color 0.3s ease;
    opacity: 0.85; 
    /* *** PEMBETULAN UTAMA WIDTH *** */
    width: auto; /* Membatalkan width: 100% dari selector 'button' */
}
.carousel .prev:hover, .carousel .next:hover {
    background: #000;
    color: #ffeb3b;
    opacity: 1;
}
.carousel .prev { left: 5px; } 
.carousel .next { right: 5px; } 
.carousel .counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #ffeb3b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    z-index: 10;
}

/* ------------------------------------- */
/* FEATURES TAB STYLES (Modified) */
/* ------------------------------------- */
.feature-content {
    padding: 5px;
}
.feature-section-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffeb3b;
    padding: 0px 0;
    margin-top: 0px;
    border-bottom: 2px solid #00b4db;
}

/* MODIFIED: Feature Block Style match safe-use-section */
.feature-item {
    background: rgba(255, 255, 255, 0.05); /* Latar belakang gelap */
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #00b4db; /* Border Biru (Membezakan dari Safe Use Tips) */
    border-bottom: none; 
}

/* MODIFIED: Feature Title Style -> All Yellow */
.feature-title-inner {
    font-size: 0.95em;
    font-weight: 700;
    color: #ffeb3b; /* Kuning */
    margin-top: 0;
    margin-bottom: 5px;
}

.feature-item ul {
    padding-left: 20px;
    margin: 5px 0;
    font-size: 0.9em;
    color: #ddd;
}
.feature-item strong { color: #00e5ff; }

/* Image and Text alignment for features */
.feature-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.feature-row p {
    font-size: 0.9em;
    line-height: 1.4em;
}
.feature-row .image-column {
    flex-shrink: 0;
    max-width: 100%;
    text-align: center;
}
.feature-row .image-column img {
    max-width: 80%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(rgba(0,0,0,0.8));
    display: block;
    margin: 5px auto;
}
.map-image {
    max-width: 100% !important;
    height: auto;
    margin-top: 15px;
}

/* MODIFIED: TOC Links */
.toc-columns {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05); 
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}
.toc-column {
    width: 33.333%;
    box-sizing: border-box;
    padding: 0 5px;
}

/* NEW LINK COLOR RULE: Normal Yellow, Hover Blue */
.toc-column a, 
#features .feature-item a { /* Apply to TOC and internal links in Features tab */
    text-decoration: none;
    cursor: pointer; 
    color: #ffeb3b; /* Kuning */
    font-size: 0.9em;
}
.toc-column p {
    margin: 2px 0;
}
.toc-column a:hover,
#features .feature-item a:hover {
    color: #00e5ff; /* Biru/Cyan */
}

@media (max-width: 480px) {
    .toc-column {
        width: 100%;
    }
}


/* ------------------------------------- */
/* SAFE USE TIPS TAB SPECIFIC STYLES */
/* ------------------------------------- */
.safe-use-content {
    padding: 5px;
}
.safe-use-section-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffeb3b;
    padding: 0px 0;
    margin-top: 0px;
    margin-bottom: 20px;
    border-bottom: 2px solid #00b4db;
}
.safe-use-section {
    background: rgba(255, 255, 255, 0.05); 
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #00b4db; 
}
.safe-use-title {
    font-size: 0.95em;
    font-weight: bold;
    color: #ffeb3b; 
    margin-top: 0;
    margin-bottom: 8px;
}
.safe-use-list {
    padding-left: 18px;
    margin: 8px 0;
}
.safe-use-list li {
    margin-bottom: 4px;
    font-size: 0.9em;
    color: #ccc;
}
.safe-warning {
    font-size: 0.90em;
    color: #00e5ff; 
    font-weight: bold;
}
.safe-warning-red {
    color: #ff1500; 
    font-weight: bold;
}

.policy-content {
    padding: 5px;
}
.policy-section-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffeb3b;
    padding: 0px 0;
    margin-top: 0px;
    margin-bottom: 20px;
    border-bottom: 2px solid #00b4db;
}
.policy-section {
    background: rgba(255, 255, 255, 0.05); 
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #00b4db; 
}
.policy-title {
    font-size: 0.95em;
    font-weight: bold;
    color: #ffeb3b; 
    margin-top: 0;
    margin-bottom: 8px;
}
.policy-list {
    padding-left: 18px;
    margin: 8px 0;
}
.policy-list li {
    margin-bottom: 4px;
    font-size: 0.9em;
    color: #ccc;
}
.policy-warning {
    font-size: 0.90em;
    color: #00e5ff; 
    font-weight: bold;
}
.policy-warning-red {
    color: #ff1500; 
    font-weight: bold;
}

/* ------------------------------------- */
/* OTHER STYLES (VIDEO) */
/* ------------------------------------- */
#videoThumb {
    position: fixed;
    top: 50%;
    right: 10px;
    width: 200px;
    max-width: 25vw; 
    cursor: grab;
    z-index: 999999; 
    transform: translateY(-50%);
    touch-action: none; 
}
#videoThumb video {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}
#videoModal {
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); 
    justify-content: center; 
    align-items: center; 
    z-index: 9999;
    padding: 10px;
    box-sizing: border-box;
}
#videoModal video { 
    max-width: 100%;   
    max-height: 100%;  
    border-radius: 10px; 
}
#videoModal .closeBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 72, 72, 0.8);
    color: #FFFFFF;
    padding: 6px 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
    transition: 0.2s;
}

#videoModal .closeBtn:hover {
    background: rgb(113, 6, 6);
}

a[href^="mailto:"] {
    color: #00e5ff;
    text-decoration: none;
    position: relative;
    padding-left: 22px;          /* Ruang untuk icon */
}

a[href^="mailto:"]::before {
    content: "📧";               /* Icon email */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.9;
}

a[href^="mailto:"]:hover {
    color: #ffeb3b;              /* Biru/Cyan bila hover */
    text-decoration: underline;
}

/* ------------------------------------- */
/* Mobile Compatibility */
/* ------------------------------------- */
/* Override container untuk mobile – width & height jangan full */
@media (max-width: 480px) {
    .container {
        width: 100% !important;
        max-width: 420px !important;

        min-height: auto !important;
        height: auto !important;

        margin: 2px auto !important; /* UPDATE: margin-top 5px */
        padding: 5px !important;
        border-radius: 12px !important;

        background: rgba(0, 0, 0, 0.80) !important;
    }

     .carousel .prev, .carousel .next {
            padding: 8px 10px;
            font-size: 18px;
            width: auto; /* KUNCI PEMBETULAN MOBILE */
        }

    h3 {
        font-size: 18px;
        padding: 8px;
    }

    #licenseKey {
        padding: 15px 30px 0px 30px !important; 
        font-size: 1.1em;
    }
    .tab-content {
        min-height: 60vh;
        max-height: 80vh; 
    }
    #videoThumb {
        width: 120px;
        max-width: 20vw;
    }
}