* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
html {
    scroll-behavior: smooth;
}
 
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #172033;
    line-height: 1.6;
}
 
.container {
    width: min(1120px, 92%);
    margin: auto;
}
 
 
/* HEADER */
 
.header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
}
 
.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
 
.logo {
    font-size: 25px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    letter-spacing: -1px;
}
 
.logo span {
    color: #2563eb;
}
 
nav {
    display: flex;
    gap: 32px;
}
 
nav a {
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}
 
nav a:hover {
    color: #2563eb;
}
 
.login-btn {
    border: 1px solid #d9dee7;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
 
 
/* HERO */
 
.hero {
    padding: 90px 0;
    background: #ffffff;
}
 
.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: center;
}
 
.badge {
    display: inline-block;
    padding: 7px 14px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
}
 
.hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 25px;
}
 
.hero h1 span {
    color: #2563eb;
}
 
.hero p {
    color: #64748b;
    font-size: 18px;
    max-width: 650px;
    margin-bottom: 32px;
}
 
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
 
 
/* BUTTONS */
 
.primary-btn {
    display: inline-block;
    border: none;
    background: #2563eb;
    color: white;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
 
.primary-btn:hover {
    background: #1d4ed8;
}
 
.secondary-btn {
    display: inline-block;
    border: 1px solid #d9dee7;
    color: #172033;
    background: #ffffff;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}
 
 
/* HERO CARD */
 
.hero-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
 
.card-top {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 14px;
}
 
.live-dot {
    color: #22c55e;
}
 
.hero-card h3 {
    font-size: 27px;
    margin: 25px 0;
}
 
.progress {
    height: 8px;
    background: #eef2f7;
    border-radius: 10px;
}
 
.progress-bar {
    width: 45%;
    height: 100%;
    background: #2563eb;
    border-radius: 10px;
}
 
.stats {
    display: flex;
    gap: 45px;
    margin: 25px 0;
}
 
.stats div {
    display: flex;
    flex-direction: column;
}
 
.stats strong {
    font-size: 22px;
}
 
.stats small {
    color: #64748b;
}
 
.card-btn {
    width: 100%;
    padding: 13px;
    background: #172033;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
 
 
/* SECTIONS */
 
.section {
    padding: 90px 0;
    background: #ffffff;
}
 
.section-heading {
    max-width: 680px;
    margin-bottom: 45px;
}
 
.section-heading > span,
.quiz-header span,
.premium-label {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
 
.section-heading h2 {
    font-size: 38px;
    line-height: 1.15;
    margin: 12px 0;
}
 
.section-heading p {
    color: #64748b;
}
 
 
/* CERTIFICATION CARDS */
 
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
 
.cert-card {
    border: 1px solid #e5e7eb;
    padding: 25px;
    border-radius: 14px;
    background: #ffffff;
    transition: 0.2s;
}
 
.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}
 
.cert-card.featured {
    border-color: #2563eb;
}
 
.cert-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 20px;
}
 
.cert-card h3 {
    margin-bottom: 8px;
}
 
.cert-card p {
    color: #64748b;
    font-size: 14px;
    min-height: 48px;
}
 
.cert-info {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    font-size: 12px;
    color: #64748b;
}
 
.cert-card button {
    width: 100%;
    padding: 11px;
    border: none;
    background: #172033;
    color: white;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
}
 
.cert-card .disabled {
    background: #f1f3f5;
    color: #9ca3af;
    cursor: not-allowed;
}
 
 
/* QUIZ */
 
.quiz-section {
    padding: 90px 0;
    background: #f8fafc;
}
 
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}
 
.quiz-header h2 {
    font-size: 38px;
    margin-top: 8px;
}
 
.question-count {
    color: #64748b;
}
 
.quiz-card {
    max-width: 850px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 35px;
    margin: auto;
}
 
.question-topic {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}
 
.quiz-card h3 {
    font-size: 23px;
    line-height: 1.45;
    margin-bottom: 25px;
}
 
.options {
    display: grid;
    gap: 12px;
}
 
.option {
    padding: 16px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
}
 
.option:hover {
    border-color: #2563eb;
    background: #f8fbff;
}
 
.option.selected {
    border-color: #2563eb;
    background: #eff6ff;
}
 
.option.correct {
    border-color: #16a34a;
    background: #f0fdf4;
}
 
.option.wrong {
    border-color: #dc2626;
    background: #fef2f2;
}
 
.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}
 
#feedback {
    font-weight: 700;
}
 
 
/* PREMIUM */
 
.premium-section {
    padding: 90px 0;
    background: #ffffff;
}
 
.premium-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 70px;
    align-items: center;
}
 
.premium-container h2 {
    font-size: 40px;
    margin: 12px 0;
}
 
.premium-container p {
    color: #64748b;
    max-width: 600px;
}
 
.premium-container ul {
    list-style: none;
    margin-top: 25px;
}
 
.premium-container li {
    margin: 12px 0;
}
 
.premium-container li::before {
    content: "✓";
    color: #16a34a;
    font-weight: bold;
    margin-right: 10px;
}
 
.price-card {
    border: 1px solid #e5e7eb;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}
 
.price-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}
 
.price {
    font-size: 60px;
    font-weight: 800;
    margin: 15px 0 0;
}
 
.price-card p {
    margin-bottom: 25px;
}
 
.price-card .primary-btn {
    width: 100%;
}
 
.price-card small {
    display: block;
    color: #9ca3af;
    margin-top: 15px;
}
 
 
/* FOOTER */
 
footer {
    border-top: 1px solid #eeeeee;
    background: #ffffff;
    padding: 30px 0;
}
 
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.footer-content p {
    color: #94a3b8;
    font-size: 13px;
}
 
 
/* MOBILE */
 
@media (max-width: 850px) {
 
    nav {
        display: none;
    }
 
    .hero-content {
        grid-template-columns: 1fr;
    }
 
    .cert-grid {
        grid-template-columns: 1fr 1fr;
    }
 
    .premium-container {
        grid-template-columns: 1fr;
    }
 
}
 
@media (max-width: 600px) {
 
    .hero {
        padding: 60px 0;
    }
 
    .hero h1 {
        font-size: 43px;
    }
 
    .cert-grid {
        grid-template-columns: 1fr;
    }
 
    .quiz-header {
        align-items: start;
        flex-direction: column;
        gap: 15px;
    }
 
    .quiz-card {
        padding: 22px;
    }
 
    .quiz-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
 
    .quiz-footer .primary-btn {
        width: 100%;
    }
 
    .footer-content {
        flex-direction: column;
        gap: 12px;
    }
 
}
/* =========================
   LOGIN MODAL
========================= */
 
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 5000;
}
 
.modal-overlay.active {
    display: flex;
}
 
.login-modal,
.download-modal {
    width: min(430px, 100%);
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}
 
.close-modal {
    position: absolute;
    right: 18px;
    top: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
}
 
.login-logo {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 25px;
}
 
.login-logo span {
    color: #2563eb;
}
 
.login-modal h2,
.download-modal h2 {
    font-size: 28px;
    margin-bottom: 8px;
}
 
.login-modal > p,
.download-modal > p {
    color: #64748b;
    margin-bottom: 25px;
}
 
.input-group {
    margin-bottom: 18px;
}
 
.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}
 
.input-group input {
    width: 100%;
    padding: 13px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
}
 
.input-group input:focus {
    border-color: #2563eb;
}
 
.auth-submit {
    width: 100%;
    border: none;
    background: #2563eb;
    color: white;
    padding: 13px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
 
.auth-error {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
}
 
.switch-auth {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}
 
.switch-auth button {
    border: none;
    background: transparent;
    color: #2563eb;
    font-weight: 700;
    cursor: pointer;
}
 
.hidden {
    display: none;
}
 
 
/* =========================
   DOWNLOAD
========================= */
 
.download-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}
 
.download-options {
    display: grid;
    gap: 12px;
    margin: 25px 0;
}
 
.download-options button {
    padding: 14px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    font-weight: 700;
    text-align: left;
}
 
.download-options button:hover {
    border-color: #2563eb;
    background: #f8fbff;
}
 
.download-modal small {
    color: #94a3b8;
}
 
 
/* DOWNLOAD BUTTON */
 
.download-btn {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border: 1px solid #dce1e8;
    background: white;
    color: #172033;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
}
 
.download-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}
 
 
/* QUIZ RESULT */
 
.result-screen {
    text-align: center;
    padding: 30px;
}
 
.result-screen h2 {
    font-size: 60px;
    margin: 15px 0;
}
 
.result-screen p {
    color: #64748b;
    margin-bottom: 25px;
}
 
#nextBtn {
    position: relative;
    z-index: 9999;
    pointer-events: auto !important;
    cursor: pointer !important;
}
 
#paymentModal {
    display: none;
}
 
#paymentModal.active {
    display: flex;
}
 
.payment-modal {
    background: #ffffff;
    width: 90%;
    max-width: 430px;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    position: relative;
}
 
.payment-price {
    font-size: 42px;
    font-weight: 800;
    margin: 20px;
}
 
.payment-features {
    text-align: left;
    padding: 15px;
    margin-bottom: 20px;
    line-height: 2;
}
 
.pay-button {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
 
/* ==========================================
   TEST RESULT
========================================== */
 
.question-progress {
    margin: 20px 0;
    padding: 12px 18px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 16px;
}
 
 
.premium-message {
    color: #64748b;
    line-height: 1.6;
}
 
 
.result-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}
 
 
.premium-result-btn {
    padding: 13px 22px;
    border: none;
    border-radius: 8px;
    background: #111827;
    color: white;
    font-weight: 700;
    cursor: pointer;
}
 
 
.premium-result-btn:hover {
    opacity: 0.9;
}
 
 
.download-result-btn {
    margin-top: 15px;
    padding: 11px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
}
 
 
.download-result-btn:hover {
    background: #f8fafc;
}
 
 /* =====================================================
   PROFILE
===================================================== */
 
.profile-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    margin-right: 10px;
    border: 1px solid #d8dde7;
    border-radius: 10px;
    background: #ffffff;
    color: #182235;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
 
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
 
 
/* Profile overlay */
 
#profileModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    padding: 20px;
}
 
 
/* Profile box */
 
.profile-box {
    position: relative;
    width: min(430px, 100%);
    background: #ffffff;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}
 
.profile-box h2 {
    margin: 0 0 28px;
    font-size: 30px;
    color: #182235;
}
 
 
/* Close button */
 
.profile-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 32px;
    cursor: pointer;
}
 
 
/* Profile information */
 
.profile-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}
 
.profile-item span {
    font-size: 14px;
    color: #64748b;
}
 
.profile-item strong {
    font-size: 17px;
    color: #182235;
    word-break: break-word;
}
 
 
/* Logout inside profile */
 
.profile-logout {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
 