.certificate-hero {
    background: linear-gradient(135deg, #064e3b, #1e293b);
    color: #fff;
    border-radius: 24px;
    padding: 34px;
    margin-bottom: 26px;
    border-bottom: 5px solid #d6a84f;
}

.certificate-hero h1 {
    margin-top: 0;
    font-size: 31px;
}

.certificate-hero p {
    color: #ecfdf5;
    line-height: 2.1;
}

.report-page,
.certificate-page {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 50px rgba(0,0,0,.05);
}

.report-page h1,
.certificate-page h1 {
    color: #0f3d2e;
    font-size: 31px;
    margin-top: 0;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.report-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-right: 5px solid #0f766e;
    border-radius: 18px;
    padding: 18px;
}

.report-box h2 {
    color: #0f3d2e;
    margin-top: 0;
    font-size: 20px;
}

.report-box p,
.report-box li {
    color: #374151;
    line-height: 2.05;
}

.policy-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-right: 5px solid #d97706;
    border-radius: 18px;
    padding: 18px;
    margin-top: 24px;
    line-height: 2.1;
}

.certificate-form {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 22px;
    margin: 24px 0;
}

.certificate-form label {
    display: block;
    font-weight: bold;
    color: #0f3d2e;
    margin-bottom: 8px;
}

.certificate-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 16px;
    box-sizing: border-box;
}

.certificate-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.certificate-actions button,
.certificate-actions a {
    background: #0f766e;
    color: #fff;
    border: 0;
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    text-decoration: none;
}

.certificate-actions .secondary {
    background: #1e293b;
}

.certificate-shell {
    margin-top: 30px;
    background: #fffdf7;
    border: 8px double #b45309;
    border-radius: 22px;
    padding: 38px;
    position: relative;
    overflow: hidden;
}

.certificate-shell:before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(180, 83, 9, .35);
    border-radius: 14px;
    pointer-events: none;
}

.certificate-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cert-ministry {
    color: #064e3b;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
}

.cert-title {
    color: #92400e;
    font-size: 34px;
    margin: 18px 0 8px;
    font-weight: bold;
}

.cert-subtitle {
    color: #374151;
    font-size: 18px;
    margin-bottom: 28px;
}

.cert-student-name {
    color: #0f3d2e;
    font-size: 30px;
    font-weight: bold;
    border-bottom: 2px solid #d6a84f;
    display: inline-block;
    min-width: 320px;
    padding: 8px 18px;
    margin: 12px 0 24px;
}

.cert-body {
    color: #374151;
    line-height: 2.4;
    font-size: 17px;
    max-width: 850px;
    margin: 0 auto;
}

.cert-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.cert-meta div {
    background: rgba(255, 251, 235, .75);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 12px;
    color: #374151;
}

.cert-signatures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 42px;
}

.cert-sign {
    border-top: 1px solid #92400e;
    padding-top: 10px;
    color: #374151;
}

.cert-code {
    margin-top: 26px;
    color: #6b7280;
    font-size: 13px;
}

.certificate-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-right: 5px solid #dc2626;
    border-radius: 18px;
    padding: 18px;
    margin-top: 24px;
    line-height: 2.1;
}

@media (max-width: 900px) {
    .report-grid,
    .cert-meta,
    .cert-signatures {
        grid-template-columns: 1fr;
    }

    .report-page,
    .certificate-page,
    .certificate-shell {
        padding: 24px;
    }

    .cert-title {
        font-size: 27px;
    }

    .cert-student-name {
        min-width: auto;
        width: 100%;
        box-sizing: border-box;
    }
}

@media print {
    body {
        background: #fff !important;
    }

    header,
    footer,
    nav,
    .certificate-hero,
    .certificate-form,
    .certificate-warning,
    .no-print {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .certificate-page {
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
    }

    .certificate-shell {
        margin: 0 !important;
        min-height: 92vh;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}
.verify-hero {
    background: linear-gradient(135deg, #1e293b, #0f766e);
    color: #fff;
    border-radius: 24px;
    padding: 34px;
    margin-bottom: 26px;
    border-bottom: 5px solid #d6a84f;
}

.verify-hero h1 {
    margin-top: 0;
    font-size: 31px;
}

.verify-hero p {
    color: #ecfdf5;
    line-height: 2.1;
}

.verify-page {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 50px rgba(0,0,0,.05);
}

.verify-page h1 {
    color: #0f3d2e;
    font-size: 31px;
    margin-top: 0;
}

.verify-form {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 22px;
    margin: 24px 0;
}

.verify-form label {
    display: block;
    font-weight: bold;
    color: #0f3d2e;
    margin-bottom: 8px;
}

.verify-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 16px;
    box-sizing: border-box;
    direction: ltr;
    text-align: left;
}

.verify-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.verify-actions button,
.verify-actions a {
    background: #0f766e;
    color: #fff;
    border: 0;
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    text-decoration: none;
}

.verify-actions .secondary {
    background: #1e293b;
}

.verify-result {
    border-radius: 20px;
    padding: 22px;
    margin-top: 24px;
    line-height: 2.1;
    display: none;
}

.verify-result.show {
    display: block;
}

.verify-result.valid {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-right: 6px solid #16a34a;
}

.verify-result.demo {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-right: 6px solid #d97706;
}

.verify-result.review {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-right: 6px solid #2563eb;
}

.verify-result.not-found {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-right: 6px solid #dc2626;
}

.verify-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 14px;
}

.verify-table th,
.verify-table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: right;
    line-height: 2;
}

.verify-table th {
    background: #f1f5f9;
    color: #0f3d2e;
    width: 220px;
}

.qr-box {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 18px;
    margin-top: 22px;
    text-align: center;
}

.qr-box img {
    max-width: 180px;
    width: 180px;
    height: 180px;
}

.verify-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-right: 5px solid #dc2626;
    border-radius: 18px;
    padding: 18px;
    margin-top: 24px;
    line-height: 2.1;
}

@media (max-width: 900px) {
    .verify-page {
        padding: 24px;
    }

    .verify-table th,
    .verify-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}