* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f3f0fc;
    color: #333;
}

.navbar {
    background-color: #0b111e;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.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: #ffffff; 
    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: #cbd5e1;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-links a.nav-item.active {
    color: #fff !important;
    background-color: #28303f; 
    border: 1px solid #384256;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    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;
}

.contact-buttons-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: auto;
    min-height: 49px; 
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
    font-size: 18px;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    user-select: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, transform 0.2s ease, filter 0.2s ease;
}

/* Enhanced Contact Button Hover/Active States */
.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-ws {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.btn-tlg {
    background-color: #29b6f6;
}

.btn-tlg, .btn-ws {
    border-radius: 9px;
    margin: 2px;
    color: #fff;
}

.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 .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);
}

.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);
}

.android-icon { color: #a4c639; }
.ios-icon { color: #000000; }

.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; /* Smooth transition added */
    margin-top: 12px;
}

/* Download Button Animations */
.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; }

/* Pulse Animation for Cyan Button */
@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); }
}

/* Reka Bentuk Jadual Selamat (Buat Ini / Elakkan Ini) */
.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;
}

/* Responsif Jadual untuk Mobile */
@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;
    }
}

/* Reka Bentuk Kad Maklumat Test ID */
.test-id-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.test-id-label {
    color: #64748b; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    font-weight: bold;
    margin: 0 !important;
}

.test-id-value {
    font-size: 1.4rem !important; 
    color: #0891b2 !important; 
    margin-top: 5px !important;
    margin-bottom: 0 !important;
}

.btn-cyan {
    background-color: #ff9600;
    color: #fff;
    animation: pulse-cyan 1.4s infinite;
    font-size:19px;
    font-weight: 800;
}

.btn-cyan:hover {
    animation: none;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 150, 0, 0.5);
}

.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-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;
}
/* Gaya Senarai Langkah Login (ol.content-list) */
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; /* Menghilangkan simbol bullet tunggal jika mewarisi daripada ul */
}

.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; 
}

/* Scroll To Top Base and Bounce Animation */
@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; 
}

/* Reka Bentuk Kad Aliran Pengguna Baru */
.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-icon {
    background-color: #0891b2; 
    color: #ffffff; 
    font-weight: bold; 
    font-size: 1.1rem;
}

.flow-icon-final {
    background-color: #06b6d4;
}

.flow-text {
    font-weight: bold; 
    margin: 0 !important;
}

/* Gaya Ikon Anak Panah */
.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0891b2;
    font-size: 1.2rem;
    padding: 5px;
}

/* Responsif untuk Telefon (Skrin Kecil) */
@media (max-width: 768px) {
    .flow-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .flow-card {
        width: 100%;
    }
    
    /* Tukar anak panah ke kanan menjadi anak panah ke bawah pada mobile */
    .flow-arrow i {
        transform: rotate(90deg);
    }
}

/* Media Queries for Responsive Design */
@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: #0d1527; 
        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 rgba(255, 255, 255, 0.08);
        margin-bottom: 15px;
    }
    
    .sidebar-header span {
        color: #ffffff;
        font-weight: 700;
        font-size: 1.1rem;
    }
    
    /* Animated Sidebar Close Button */
    .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;
        transition: background-color 0.2s;
    }

    .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, .contact-buttons-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .download-grid .download-card:last-child:not(.flow-card) {
        order: -1;
    }

    .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;
    }
}