* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(90deg, #dff2f7 0%, #ffffff 100%);
    color: #333;
}

.navbar {
    background-color: #ffffff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px;
}

.nav-bar-logo-img {
    height: 43px; 
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; 
    flex-grow: 1; 
}

.sidebar-header {
    display: none;
}

.nav-placeholder {
    width: 32px; 
    flex-shrink: 0;
}

.nav-links a.nav-item {
    color: #0b111e;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background-color 0.2s, color 0.2s;
}

.nav-links a.nav-item:hover {
    color: #0891b2;
    background-color: rgba(8, 145, 178, 0.06);
}

.nav-links a.nav-item.active {
    color: #0891b2 !important;
    background-color: #e0f4f8;
    border: 1px solid #bfe7ef;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #0b111e;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle.active .icon-bars {
    display: none;
}
.nav-toggle.active .icon-close {
    display: block;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.container {
    max-width: 1172px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-height: calc(100vh - 200px); 
}

.top-card, .content-card, .faq-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(160, 140, 210, 0.1);
    border: 1px solid #eae6f6;
}

.test-id-section {
    display: flex;
    gap: 20px;
    background: #fbfaff;
    border: 1px solid #ede9fe;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.logo-img {
    width: 162px;
    height: 131px;
    object-fit: contain;
    border-radius: 16px;
}

.test-id-details {
    flex-grow: 1;
}

.test-id-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1e1b4b;
    text-align: right;
}

.test-id-subtitle {
    font-size: 0.85rem;
    color: #6366f1;
    text-align: right;
    margin-bottom: 15px;
}

/* Structural Placement Styles for Top PlayNow Image Banner */
.playnow-img-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 10px;
}

.playnow-image-link {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    animation: pulse-cyan 1.4s infinite; 
    border-radius: 8px;
    overflow: hidden;
}

.playnow-image-link:hover {
    animation: none;
    transform: scale(1.04) translateY(-2px);
    filter: brightness(1.08);
}

.playnow-landing-img {
    max-width: 760px;
    height: auto;
    object-fit: contain;
    display: block;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.download-card {
    border: 1px solid #f1f0f7;
    background: #faf9fe;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.download-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.download-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (max-width:425px){
    .download-card .icon {
        width: 19px;
        height: 8px;
    }
}

.download-card-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Dynamic Brand Icons Mapping */
.telegram-card-icon { color: #29b6f6; }
.whatsapp-card-icon { color: #25d366; }

.btn-download {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease; 
    margin-top: 12px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-download:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-dark { background-color: #0f172a; color: #fff; }
.btn-light { background-color: #ffffff; color: #0f172a; border: 1px solid #e2e8f0; }

/* Injected Brand Context Card Themes */
.btn-tlg-card { background-color: #29b6f6; color: #fff; }
.btn-ws-card { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); color: #fff; }

/* Make Telegram/WhatsApp buttons taller and centered so they stand out more than the download button */
.download-grid .download-card:not(.combined-download-card) {
    justify-content: center;
    gap: 2px;
}

.btn-tlg-card, .btn-ws-card {
    padding: 18px 15px;
    font-size: 1rem;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    animation: fizzy-bounce 2.4s ease-in-out infinite;
}

@media (max-width:425px){
    .btn-tlg-card, .btn-ws-card{
        padding: 9px 15px;
    }
    .test-id-section{
        margin-bottom: 15px;
    }
    .vertical-button-container .btn-download{
        font-size:1.2rem !important;
    }
}

.btn-tlg-card::after, .btn-ws-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle 3px at 12% 100%, rgba(255, 255, 255, 0.9), transparent 60%),
        radial-gradient(circle 2px at 30% 100%, rgba(255, 255, 255, 0.8), transparent 60%),
        radial-gradient(circle 2.5px at 50% 100%, rgba(255, 255, 255, 0.85), transparent 60%),
        radial-gradient(circle 2px at 70% 100%, rgba(255, 255, 255, 0.75), transparent 60%),
        radial-gradient(circle 3px at 88% 100%, rgba(255, 255, 255, 0.8), transparent 60%);
    background-repeat: no-repeat;
    animation: fizzy-bubbles 1.8s linear infinite;
}

/* Custom Two-In-One Container for Stacked UI Nodes */
.vertical-button-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-top: 12px;
}

.vertical-button-container .btn-download {
    margin-top: 0;
    padding: 12px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@keyframes fizzy-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes fizzy-bubbles {
    0% {
        background-position: 12% 100%, 30% 108%, 50% 96%, 70% 104%, 88% 100%;
        opacity: 0;
    }
    15% { opacity: 1; }
    85% { opacity: 0.6; }
    100% {
        background-position: 12% -20%, 30% -30%, 50% -15%, 70% -25%, 88% -18%;
        opacity: 0;
    }
}

@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(255, 150, 0, 0.85); transform: scale(1); }
    70% { box-shadow: 0 0 0 18px rgba(255, 150, 0, 0); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(255, 150, 0, 0); transform: scale(1); }
}

.flow-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.flow-table th {
    background-color: #0891b2;
    color: #ffffff;
    padding: 12px 15px;
    font-weight: 700;
}

.flow-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.flow-table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

.flow-table tbody tr:last-of-type td {
    border-bottom: none;
}

@media (max-width: 600px) {
    .flow-table {
        display: block;
        border: none;
    }
    .flow-table thead { display: none; }
    .flow-table tbody { display: block; }
    .flow-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background-color: #ffffff;
    }
    .flow-table td {
        display: block;
        text-align: left;
        padding: 10px 15px;
        border-bottom: 1px solid #f1f5f9;
    }
    .flow-table td:first-child::before {
        content: "Buat Ini: ";
        font-weight: bold;
        color: #0891b2;
    }
    .flow-table td:last-child::before {
        content: "Elakkan Ini: ";
        font-weight: bold;
        color: #ef4444;
    }
    .flow-table td:last-child { border-bottom: none; }

    .flow-table.custom-labels td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: #0891b2;
    }
}

.info-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0 25px;
}

.info-stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
}

.info-stat-item .info-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0891b2;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.info-stat-item .info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

@media (max-width: 600px) {
    .info-stat-grid { grid-template-columns: 1fr; }
}

.content-card h1 {
    color: #0891b2;
    font-size: 1.7rem;
    border-bottom: 2px solid #0891b2;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.content-card h2 {
    color: #0891b2;
    font-size: 1.4rem;
    border-bottom: 2px solid #0891b2;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.content-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 25px;
}

.content-card a,
.content-list a,
.flow-table a,
.faq-answer a {
    color: #0891b2;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(8, 145, 178, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.content-card a:hover,
.content-list a:hover,
.flow-table a:hover,
.faq-answer a:hover {
    color: #0e7490;
    border-bottom-color: #0e7490;
}

.content-list { list-style: none; }
.content-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}
.content-list li::before {
    content: "•";
    color: #333;
    font-weight: bold;
    position: absolute;
    left: 0;
}

ol.content-list {
    list-style-type: decimal;
    margin-left: 20px;
    margin-bottom: 25px;
}
ol.content-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 10px;
    padding-left: 5px;
}
ol.content-list li::before { content: none; }

.faq-main-title {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 700;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item.active {
    border-color: #eab308; 
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.08);
}

.faq-question {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #ffffff;
    user-select: none;
}

.faq-question span:first-child {
    font-size: 1.05rem;
    font-weight: 700; 
    color: #0f172a;
}

.faq-icon {
    color: #475569;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: #ffffff;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p {
    padding: 0 24px 20px 24px; 
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155; 
}

.footer {
    background-color: #0b111e;
    padding: 30px 0 25px 0;
    margin-top: 50px;
    width: 100%;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.footer-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 12px;
}

.footer-menu a {
    color: #94a3b8; 
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-menu a:hover { color: #ffffff; }
.menu-separator {
    color: #334155; 
    font-size: 0.85rem;
    user-select: none;
}

.footer-copyright {
    color: #64748b; 
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
}

.footer-link {
    color: #dcb33c; 
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.footer-link:hover { color: #f5c742; }

@keyframes bounce-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: #0076e4; 
    color: #ffffff;
    border: none;
    border-radius: 4px; 
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 118, 228, 0.3);
    z-index: 998; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background-color: #0062c0; 
    animation: bounce-up 1s ease-in-out infinite; 
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.security-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #e0f4f8;
    border: 1px solid #bfe7ef;
    border-radius: 12px;
    padding: 20px 22px;
}

.security-notice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0891b2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.security-notice h3 {
    color: #0891b2;
    margin-bottom: 6px;
}

.security-notice p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 0;
}

.flow-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 10px;
}

.flow-card {
    flex: 1;
    min-width: 160px;
    padding: 15px;
    margin-top: 0 !important;
}

.flow-text { font-weight: bold; margin: 0 !important; }
.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0891b2;
    font-size: 1.2rem;
    padding: 5px;
}

@media (max-width: 768px) {
    .flow-grid { flex-direction: column; align-items: center; }
    .flow-card { width: 100%; }
    .flow-arrow i { transform: rotate(90deg); }
}

@media (max-width: 768px) {
    .container {
        margin: 15px auto;
        padding: 0 15px;
        gap: 15px;
    }

    .top-card, .content-card, .faq-section {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .nav-container {
        justify-content: space-between;
        padding: 0 15px;
    }

    .nav-placeholder { display: none; }
    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        left: -280px;  
        right: auto;   
        width: 280px;  
        height: 100vh; 
        background-color: #ffffff; 
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 20px;
        gap: 10px;
        z-index: 1000;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.show { left: 0; }

    .sidebar-header {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgb(0 0 0);
        margin-bottom: 15px;
    }
    
    .sidebar-header span {
        color: #000000;
        font-weight: 700;
        font-size: 1.1rem;
    }
    
    .sidebar-close {
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 1.3rem;
        cursor: pointer;
        transition: transform 0.3s ease, color 0.3s ease;
    }
    .sidebar-close:hover {
        transform: rotate(90deg);
        color: #ffffff;
    }

    .nav-links a.nav-item {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        border-radius: 6px;
        border: none;
        font-size: 1rem;
    }

    .nav-links a.nav-item:hover { background-color: rgba(255, 255, 255, 0.05); }
    .nav-links a.nav-item.active {
        background-color: #28303f !important;
        color: #fff !important;
        border: 1px solid #384256;
    }

    .download-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .security-notice {
        flex-direction: column;
        align-items: flex-start;
    }

    .playnow-img-wrapper {
        justify-content: center;
    }
    .playnow-landing-img {
        max-width: 100%;
        width: 287px;
    }

    .test-id-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .test-id-title, .test-id-subtitle { text-align: center; }
    .download-card { padding: 20px 15px; }
    .content-card h2, .faq-main-title { font-size: 1.25rem; }
    .content-card h3 { font-size: 1.05rem; }
    .faq-question { padding: 15px 20px; }
    .faq-question span:first-child { font-size: 0.95rem; padding-right: 10px; }
    .faq-answer p { padding: 0 20px 15px 20px; font-size: 0.9rem; }
    .footer { margin-top: 30px; padding: 25px 0 20px 0; }
    .footer-menu { flex-direction: column; gap: 12px; text-align: center; }
    .menu-separator { display: none; }
    
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}