:root {
    --sidebar-bg: #123a6f;
    --sidebar-bg-soft: #1d4f91;
    --content-bg: #f4f7fb;
    --card-border: #dbe4f0;
}

body {
    background: var(--content-bg);
    color: #213547;
    font-family: "Poppins", sans-serif;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, #0f2d57 100%);
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #7cc6ff;
    box-shadow: 0 0 0 5px rgba(124, 198, 255, 0.2);
}

.app-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.84);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
}

.app-sidebar .nav-link.active,
.app-sidebar .nav-link:hover,
.logout-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.app-content {
    flex: 1;
}

.stat-card,
.panel-card,
.table-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(17, 50, 86, 0.06);
}

.stat-card {
    padding: 24px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.panel-card {
    padding: 22px;
}

.table-card {
    padding: 18px;
}

.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.editor-preview-panel {
    position: sticky;
    top: 24px;
}

.editor-settings-panel {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.editor-settings-panel::-webkit-scrollbar {
    width: 10px;
}

.editor-settings-panel::-webkit-scrollbar-thumb {
    background: #c7d5e7;
    border: 3px solid #fff;
    border-radius: 999px;
}

.editor-settings-panel::-webkit-scrollbar-track {
    background: transparent;
}

.editor-guide-toolbar {
    display: flex;
    justify-content: flex-end;
}

.editor-guide-toolbar .btn.active {
    color: #fff;
    background: #123a6f;
    border-color: #123a6f;
}

.canvas-wrapper {
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef5ff, #f8fafc);
    border: 1px solid var(--card-border);
    padding: 18px;
}

.canvas-stage {
    display: inline-block;
    position: relative;
    line-height: 0;
}

canvas {
    display: block;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.18);
    background: #fff;
}

.canvas-guide-overlay {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.canvas-guide-overlay.show-grid {
    background-image:
        linear-gradient(to right, rgba(108, 117, 125, 0.24) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(108, 117, 125, 0.24) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: calc(50% - 20px) calc(50% - 20px);
}

.canvas-guide-overlay.show-center::before,
.canvas-guide-overlay.show-center::after {
    content: "";
    position: absolute;
    background: rgba(73, 80, 87, 0.78);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.canvas-guide-overlay.show-center::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-1px);
}

.canvas-guide-overlay.show-center::after {
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-1px);
}

.element-item {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fff;
}

.element-item.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.18), transparent 30%),
        linear-gradient(135deg, #eff5ff 0%, #f8fbff 48%, #eef2f7 100%);
}

.login-card {
    width: min(460px, 92vw);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(18, 58, 111, 0.15);
}

.admin-login-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(8, 18, 40, 0.96), rgba(13, 43, 84, 0.92)),
        radial-gradient(circle at 12% 18%, rgba(255, 184, 77, 0.28), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(53, 194, 255, 0.22), transparent 30%),
        #081228;
    color: #f8fbff;
    font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
    position: relative;
}

.admin-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.admin-login-orb {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(10px);
}

.admin-login-orb-one {
    width: 360px;
    height: 360px;
    left: -120px;
    bottom: 8%;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.38), transparent 68%);
}

.admin-login-orb-two {
    width: 420px;
    height: 420px;
    right: -150px;
    top: -90px;
    background: radial-gradient(circle, rgba(60, 196, 255, 0.26), transparent 68%);
}

.admin-login-shell {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.7fr);
    gap: 58px;
    align-items: center;
    padding: 54px 0;
}

.admin-login-copy h1 {
    max-width: 640px;
    margin: 16px 0 20px;
    font-family: "DM Serif Display", serif;
    font-size: clamp(3rem, 5.6vw, 5.7rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
}

.admin-login-copy p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.04rem;
    line-height: 1.8;
}

.admin-login-card {
    padding: 34px;
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94));
    color: #15243b;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}

.admin-login-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f9c66a, #ff8b3d);
    color: #15243b;
    font-size: 1.55rem;
    box-shadow: 0 18px 38px rgba(255, 139, 61, 0.22);
}

.admin-login-card .form-label {
    color: #26364f;
    font-weight: 800;
}

.admin-login-card .form-control {
    min-height: 54px;
    border-radius: 16px;
    border-color: #d8e1ef;
    background: #f8fbff;
    font-weight: 700;
}

.admin-login-card .form-control:focus {
    border-color: #f1ad43;
    box-shadow: 0 0 0 0.25rem rgba(249, 182, 77, 0.2);
}

.admin-login-card .btn-primary {
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f9b64d, #ff7a3d);
    color: #141827;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(255, 132, 61, 0.24);
}

.verification-card {
    max-width: 760px;
    margin: 50px auto;
}

.public-home {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(14, 27, 57, 0.92), rgba(7, 15, 34, 0.96)),
        radial-gradient(circle at 18% 18%, rgba(255, 184, 77, 0.28), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(61, 178, 255, 0.22), transparent 30%),
        #071022;
    color: #f8fbff;
    font-family: "Plus Jakarta Sans", sans-serif;
    position: relative;
}

.public-home::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
    pointer-events: none;
}

.public-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.72;
    pointer-events: none;
}

.public-orb-one {
    width: 360px;
    height: 360px;
    left: -120px;
    top: 130px;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.45), transparent 68%);
}

.public-orb-two {
    width: 420px;
    height: 420px;
    right: -160px;
    top: -80px;
    background: radial-gradient(circle, rgba(60, 196, 255, 0.34), transparent 68%);
}

.public-nav,
.public-hero {
    position: relative;
    z-index: 1;
}

.public-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.public-brand {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.public-brand:hover {
    color: #fff;
}

.public-brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #161b2c;
    font-family: "DM Serif Display", serif;
    font-size: 1.6rem;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.public-brand-mark img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.public-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
}

.public-nav-actions {
    display: flex;
    gap: 10px;
}

.public-nav-actions .btn {
    border-radius: 999px;
    padding-inline: 18px;
}

.btn-light-subtle {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-light-subtle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.public-hero {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 96px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 56px;
    padding: 22px 0 72px;
}

.public-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffd58a;
    font-weight: 700;
    margin-bottom: 18px;
}

.public-school-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(249, 198, 106, 0.22), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(249, 198, 106, 0.28);
    color: #ffe0a1;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.public-hero h1 {
    font-family: "DM Serif Display", serif;
    max-width: 720px;
    font-size: clamp(2.8rem, 4.7vw, 5.15rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}

.public-hero-copy > p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 620px;
}

.public-search-card {
    max-width: 620px;
    margin-top: 28px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.public-search-card .form-label {
    color: #fff;
    font-weight: 800;
    margin-left: 6px;
}

.public-search-row {
    display: flex;
    gap: 12px;
}

.public-search-row .form-control {
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.public-search-row .btn {
    border-radius: 18px;
    padding-inline: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #f9b64d, #ff7a3d);
    border: 0;
    color: #141827;
    box-shadow: 0 16px 34px rgba(255, 132, 61, 0.25);
}

.public-search-help {
    margin: 12px 6px 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.public-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.public-stats div {
    min-width: 130px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.public-stats strong {
    display: block;
    font-size: 1.55rem;
}

.public-stats span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
}

.public-preview {
    perspective: 1400px;
}

.public-certificate-card {
    position: relative;
    min-height: 470px;
    padding: 38px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 15%, rgba(255, 190, 89, 0.22), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.92));
    color: #15243b;
    box-shadow: 0 44px 110px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    transform: rotateY(-7deg) rotateX(3deg);
}

.public-certificate-card::before,
.public-certificate-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.public-certificate-card::before {
    width: 260px;
    height: 260px;
    right: -82px;
    top: -82px;
    border: 32px solid rgba(17, 118, 200, 0.14);
}

.public-certificate-card::after {
    width: 210px;
    height: 210px;
    left: -74px;
    bottom: -74px;
    background: linear-gradient(135deg, #19376d, #1fb4d9);
}

.public-certificate-ribbon {
    position: absolute;
    inset: auto -30px 36px auto;
    width: 210px;
    height: 32px;
    background: linear-gradient(90deg, #f9b64d, #ff7a3d);
    transform: rotate(-38deg);
}

.public-certificate-top,
.public-certificate-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-certificate-top span {
    color: #6f7b90;
    font-weight: 800;
    font-size: 0.78rem;
}

.public-certificate-top i {
    color: #f2a51f;
    font-size: 1.8rem;
}

.public-certificate-card h2 {
    position: relative;
    z-index: 1;
    margin: 60px 0 16px;
    text-align: center;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    letter-spacing: 0.08em;
    font-weight: 900;
    color: #14386e;
}

.public-certificate-card p {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #667085;
    font-weight: 700;
}

.public-certificate-card h3 {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 20px 0;
    font-size: 2.3rem;
    font-weight: 900;
    color: #0d5ca6;
}

.public-certificate-line {
    position: relative;
    z-index: 1;
    width: 64%;
    height: 2px;
    margin: 0 auto 22px;
    background: linear-gradient(90deg, transparent, #f3b64f, transparent);
}

.public-certificate-desc {
    max-width: 430px;
    margin: 0 auto 74px;
}

.public-certificate-footer {
    margin-top: 44px;
}

.public-certificate-footer span {
    display: block;
    color: #7b8797;
    font-size: 0.8rem;
    font-weight: 800;
}

.public-certificate-footer strong {
    display: block;
    margin-top: 8px;
    color: #14386e;
}

.public-qr {
    width: 58px;
    height: 58px;
    margin-top: 8px;
    background:
        linear-gradient(90deg, #15243b 50%, transparent 0) 0 0 / 12px 12px,
        linear-gradient(#15243b 50%, transparent 0) 0 0 / 12px 12px;
    border: 6px solid #fff;
    box-shadow: 0 0 0 1px rgba(20, 56, 110, 0.18);
}

.public-download {
    position: relative;
    z-index: 1;
    width: min(1060px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.public-download-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.68fr);
    gap: 34px;
    align-items: end;
    margin-bottom: 28px;
}

.public-download-hero h1 {
    font-family: "DM Serif Display", serif;
    font-size: clamp(2.8rem, 5.2vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
}

.public-download-hero p {
    max-width: 570px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-bottom: 0;
}

.public-download-card {
    margin-top: 0;
}

.public-download-card .public-search-row .btn {
    min-width: 116px;
}

.public-result-panel {
    padding: 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.public-result-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.public-result-header span {
    display: block;
    color: #ffd58a;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.public-result-header h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
}

.public-result-count {
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 800;
}

.public-empty-state {
    padding: 44px 22px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.public-empty-state i {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: rgba(255, 213, 138, 0.15);
    color: #ffd58a;
    font-size: 1.7rem;
}

.public-empty-state h3 {
    color: #fff;
    font-weight: 900;
}

.public-empty-state p {
    max-width: 460px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.66);
}

.public-result-list {
    display: grid;
    gap: 12px;
}

.public-result-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    color: #15243b;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.public-result-preview {
    width: 132px;
    aspect-ratio: 1.42 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(249, 198, 106, 0.28), rgba(255, 139, 61, 0.16)),
        #f8fbff;
    color: #15243b;
    font-size: 1.65rem;
    border: 1px solid #d8e1ef;
}

.public-result-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-result-name {
    font-size: 1.05rem;
    font-weight: 900;
}

.public-result-meta,
.public-result-date {
    color: #667085;
    font-size: 0.84rem;
}

.public-result-activity {
    margin-top: 6px;
    font-weight: 800;
    color: #123a6f;
}

.public-result-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.public-result-actions .btn {
    border-radius: 999px;
    font-weight: 900;
    padding: 9px 14px;
}

.public-result-actions .btn-outline-light {
    color: #123a6f;
    border-color: #c8d5e8;
    background: #fff;
}

.public-result-actions .btn-outline-light:hover {
    color: #fff;
    background: #123a6f;
    border-color: #123a6f;
}

@media (max-width: 992px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-preview-panel {
        position: static;
    }

    .editor-settings-panel {
        max-height: none;
        overflow: visible;
    }

    .public-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto;
        padding-top: 18px;
    }

    .public-certificate-card {
        transform: none;
        max-width: 620px;
        margin-inline: auto;
    }

    .public-download-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .admin-login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .public-home {
        background:
            linear-gradient(135deg, rgba(14, 27, 57, 0.94), rgba(7, 15, 34, 0.98)),
            radial-gradient(circle at 12% 8%, rgba(255, 184, 77, 0.22), transparent 36%),
            #071022;
    }

    .public-nav {
        width: min(100% - 28px, 1180px);
        padding: 18px 0 10px;
        gap: 14px;
    }

    .public-brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 1.35rem;
    }

    .public-brand strong {
        font-size: 0.94rem;
    }

    .public-brand small {
        font-size: 0.72rem;
    }

    .public-nav-actions,
    .public-search-row {
        width: 100%;
        flex-direction: column;
    }

    .public-nav-actions {
        width: auto;
        display: flex;
        flex-direction: row;
    }

    .public-nav-actions .btn,
    .public-search-row .btn {
        width: 100%;
    }

    .public-nav-actions .btn {
        width: auto;
        min-width: 132px;
        padding-inline: 18px;
    }

    .public-nav-actions .btn-dark {
        display: none;
    }

    .public-hero {
        width: min(100% - 28px, 1180px);
        padding: 24px 0 46px;
    }

    .public-school-badge,
    .public-eyebrow {
        font-size: 0.72rem;
    }

    .public-hero h1 {
        font-size: clamp(2.55rem, 13vw, 3.35rem);
        line-height: 1.02;
        letter-spacing: -0.025em;
        margin-bottom: 18px;
    }

    .public-hero-copy > p {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .public-search-card {
        margin-top: 22px;
        padding: 14px;
        border-radius: 22px;
    }

    .public-search-row .form-control,
    .public-search-row .btn {
        min-height: 54px;
        border-radius: 16px;
    }

    .public-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .public-stats div {
        min-width: 0;
        padding: 12px 10px;
        border-radius: 18px;
    }

    .public-stats strong {
        font-size: 1.12rem;
    }

    .public-stats span {
        font-size: 0.7rem;
    }

    .public-certificate-card {
        min-height: auto;
        padding: 28px 22px;
        border-radius: 26px;
    }

    .public-certificate-card h2 {
        margin-top: 42px;
        font-size: clamp(2rem, 13vw, 3rem);
    }

    .public-certificate-card h3 {
        font-size: 1.75rem;
    }

    .public-certificate-desc {
        margin-bottom: 42px;
    }

    .public-certificate-footer {
        margin-top: 26px;
    }

    .public-download {
        width: min(100% - 28px, 1060px);
        padding: 26px 0 46px;
    }

    .public-download-hero {
        gap: 20px;
    }

    .public-download-hero h1 {
        font-size: clamp(2.45rem, 13vw, 3.25rem);
    }

    .public-download-hero p {
        font-size: 0.94rem;
    }

    .public-result-panel {
        padding: 14px;
        border-radius: 24px;
    }

    .public-result-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .public-result-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .public-result-preview {
        width: 100%;
        aspect-ratio: 1.42 / 1;
    }

    .public-result-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .admin-login-shell {
        width: min(100% - 28px, 1080px);
        padding: 24px 0 42px;
    }

    .admin-login-copy h1 {
        font-size: clamp(2.45rem, 13vw, 3.25rem);
    }

    .admin-login-copy p {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .admin-login-card {
        padding: 24px;
        border-radius: 26px;
    }
}
