/* =========================================================
   CRESCADEMY
   CERTIFICATE VERIFICATION PAGE
   Page-specific styles only
========================================================= */


/* =========================================================
   PAGE HEADER
========================================================= */

.certificate-page {
    padding-top: 42px;
    padding-bottom: 60px;
}

.certificate-page-header {
    max-width: 760px;
    margin-bottom: 34px;
}

.certificate-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.certificate-page-header h1 {
    margin: 0 0 10px;

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.certificate-page-header p {
    margin: 0;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   MAIN GRID
========================================================= */

.certificate-verification-layout {
    display: grid;

    grid-template-columns:
        minmax(300px, 0.72fr)
        minmax(0, 1.28fr);

    align-items: start;

    gap: 34px;
}


/* =========================================================
   VERIFICATION CARD
========================================================= */

.certificate-verify-card {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--surface);

    box-shadow:
        0 18px 50px
        rgba(15, 23, 42, 0.08);
}

.certificate-card-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.14),
            rgba(124, 58, 237, 0.14)
        );

    color: var(--primary);

    font-size: 22px;
}

.certificate-card-heading h2 {
    margin: 0 0 8px;

    font-size: 25px;
}

.certificate-card-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   FORM
========================================================= */

.certificate-verify-form {
    display: grid;
    gap: 20px;

    margin-top: 28px;
}

.certificate-verify-form .form-group {
    display: grid;
    gap: 8px;
}

.certificate-verify-form label {
    font-size: 14px;
    font-weight: 700;
}

.certificate-input-wrapper {
    position: relative;
}

.certificate-input-wrapper > i {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--muted);

    pointer-events: none;
}

.certificate-input-wrapper input {
    width: 100%;

    min-height: 50px;

    padding:
        0 15px 0 44px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--background);
    color: var(--text);

    font: inherit;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.certificate-input-wrapper input::placeholder {
    color: var(--muted);
}

.certificate-input-wrapper input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );
}


/* =========================================================
   VERIFY BUTTON
========================================================= */

.certificate-verify-btn {
    width: 100%;

    min-height: 52px;

    margin-top: 4px;
}

.certificate-verify-btn:disabled {
    cursor: wait;

    opacity: 0.75;
}


/* =========================================================
   VERIFICATION RESULT
========================================================= */

.certificate-verification-result {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-top: 20px;

    padding: 16px;

    border-radius: 14px;

    font-size: 14px;
    line-height: 1.6;
}

.certificate-verification-result[hidden] {
    display: none;
}


/*
 * Success is intentionally hidden by the
 * updated JavaScript.
 *
 * It remains styled for compatibility
 * with any future success state.
 */

.certificate-verification-result.success {
    border:
        1px solid
        rgba(34, 197, 94, 0.25);

    background:
        rgba(34, 197, 94, 0.08);

    color: #15803d;
}

.verification-result-icon {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        rgba(34, 197, 94, 0.14);

    color: #16a34a;

    font-size: 14px;
}

.verification-result-content {
    min-width: 0;
}

.verification-success-heading {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.verification-success-heading strong {
    color: inherit;

    font-size: 16px;
    line-height: 1.35;
}

.verification-success-heading span {
    color: inherit;

    opacity: 0.82;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   ERROR RESULT
========================================================= */

.certificate-verification-result.error {
    border:
        1px solid
        rgba(239, 68, 68, 0.25);

    background:
        rgba(239, 68, 68, 0.08);

    color: #b91c1c;
}

.certificate-verification-result.error strong {
    display: block;

    margin-bottom: 4px;

    font-size: 15px;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.certificate-security-note {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 24px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.55;
}

.certificate-security-note i {
    flex-shrink: 0;

    margin-top: 2px;

    color: var(--primary);
}


/* =========================================================
   DEMO SECTION
========================================================= */

.certificate-demo-section {
    min-width: 0;
}

.certificate-demo-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.certificate-demo-label {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.certificate-demo-heading h2 {
    margin: 0;

    font-size: 28px;
    line-height: 1.2;
}

.certificate-demo-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    flex-shrink: 0;

    color: var(--primary);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.certificate-demo-link:hover {
    text-decoration: underline;
}


/* =========================================================
   CERTIFICATE PREVIEW
========================================================= */

.certificate-preview {
    width: 100%;

    overflow: hidden;

    border-radius: 22px;

    background:
        var(--surface);

    box-shadow:
        0 20px 60px
        rgba(15, 23, 42, 0.12);
}


/* =========================================================
   CERTIFICATE PREVIEW SCALE
========================================================= */

.certificate-preview-scale {
    position: relative;

    width: 100%;

    aspect-ratio: 1600 / 1100;

    overflow: hidden;
}


/*
 * Certificate remains at original
 * 1600 × 1100 dimensions.
 *
 * JavaScript applies scaling.
 */

.certificate-preview-scale > .cd-certificate {
    position: absolute;

    left: 0;
    top: 0;

    width: 1600px;
    height: 1100px;

    transform-origin: top left;
}


/* =========================================================
   VERIFICATION ANIMATION
========================================================= */

.certificate-verification-animation {
    position: relative;

    width: 100%;

    aspect-ratio: 1600 / 1100;

    min-height: 320px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 18px;

    padding: 35px;

    overflow: hidden;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(37, 99, 235, 0.12),
            transparent 42%
        ),
        var(--surface);

    color: var(--text);
}


/* =========================================================
   VERIFICATION DECORATIVE GLOW
========================================================= */

.certificate-verification-animation::before {
    content: '';

    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.10),
            transparent 70%
        );

    filter: blur(10px);

    animation:
        verification-glow
        2.4s ease-in-out infinite;
}


/* =========================================================
   VERIFICATION ICON
========================================================= */

.verification-animation-icon {
    position: relative;

    z-index: 1;

    width: 76px;
    height: 76px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(37, 99, 235, 0.18);

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.12),
            rgba(124, 58, 237, 0.12)
        );

    color: var(--primary);

    font-size: 30px;

    animation:
        verification-icon-pulse
        1.8s ease-in-out infinite;
}



/* =========================================================
   VERIFICATION CONTENT
========================================================= */

.verification-animation-content {
    position: relative;

    z-index: 1;

    display: flex;

    flex-direction: column;

    gap: 6px;

    max-width: 520px;
}

.verification-animation-content strong {
    font-size: 20px;

    line-height: 1.35;
}

.verification-animation-content span {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.55;
}


/* =========================================================
   VERIFICATION PROGRESS
========================================================= */

.verification-animation-progress {
    position: relative;

    z-index: 1;

    width:
        min(360px, 80%);

    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--primary) 10%,
            var(--border)
        );
}

.verification-animation-progress span {
    display: block;

    width: 35%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            #7c3aed
        );

    animation:
        verification-progress
        1.35s ease-in-out infinite;
}


/* =========================================================
   VERIFIED PREVIEW STATE
========================================================= */

.verification-animation-success {
    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(34, 197, 94, 0.12),
            transparent 44%
        ),
        var(--surface);
}


/*
 * Success icon.
 */

.verification-animation-success
.verification-animation-icon {
    width: 82px;
    height: 82px;

    border:
        1px solid
        rgba(34, 197, 94, 0.22);

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(34, 197, 94, 0.14),
            rgba(37, 99, 235, 0.08)
        );

    color: #16a34a;

    font-size: 34px;

    animation:
        verification-success-pulse
        1.8s ease-in-out infinite;
}


/*
 * Success heading.
 */

.verification-animation-success
.verification-animation-content strong {
    color: #15803d;

    font-size:
        clamp(20px, 3vw, 27px);

    font-weight: 900;
}


/*
 * Success subtitle.
 */

.verification-animation-success
.verification-animation-content span {
    color: var(--muted);

    font-size: 14px;
}


/*
 * Remove the decorative spinner
 * from the success state.
 */

.verification-animation-success
.verification-animation-spinner,

.verification-animation-success
.verification-animation-progress {
    display: none;
}


/* =========================================================
   VERIFICATION COMPLETE
========================================================= */

.certificate-verification-animation.verification-complete {
    animation:
        verification-complete-fade
        0.35s ease forwards;
}

.certificate-verification-animation.verification-complete
.verification-animation-icon {
    color: #16a34a;

    border-color:
        rgba(34, 197, 94, 0.20);

    background:
        rgba(34, 197, 94, 0.10);
}


/* =========================================================
   VERIFICATION ERROR PREVIEW
========================================================= */

.verification-animation-error
.verification-animation-icon {
    color: #dc2626;

    border-color:
        rgba(239, 68, 68, 0.20);

    background:
        rgba(239, 68, 68, 0.08);

    animation: none;
}


/* =========================================================
   PREVIEW ACTIONS
========================================================= */

.certificate-preview-actions {
    display: flex;

    justify-content: center;

    width: 100%;

    margin-top: 18px;

    opacity: 0;

    transform:
        translateY(10px);

    pointer-events: none;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.certificate-preview-actions.is-visible {
    opacity: 1;

    transform:
        translateY(0);

    pointer-events: auto;
}


/* =========================================================
   VIEW DETAILS BUTTON
========================================================= */

.certificate-preview-details-button {
    min-width: 260px;

    min-height: 50px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 13px;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 10px 26px
        rgba(37, 99, 235, 0.18);
}

.certificate-preview-details-button i {
    font-size: 16px;
}


/* =========================================================
   CAPTION
========================================================= */

.certificate-demo-caption {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin:
        14px 2px 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.55;
}

.certificate-demo-caption[hidden] {
    display: none;
}

.certificate-demo-caption i {
    flex-shrink: 0;

    margin-top: 2px;

    color: var(--primary);
}


/* =========================================================
   CERTIFICATE DETAILS MODAL
========================================================= */

.certificate-details-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.certificate-details-modal.is-visible {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   MODAL OVERLAY
========================================================= */

.certificate-details-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(15, 23, 42, 0.66);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


/* =========================================================
   MODAL DIALOG
========================================================= */

.certificate-details-dialog {
    position: relative;

    z-index: 1;

    width:
        min(
            860px,
            calc(100vw - 48px)
        );

    max-height:
        calc(100vh - 48px);

    display: flex;

    flex-direction: column;

    overflow: hidden;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.65);

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 250, 252, 0.98)
        );

    color: #0f172a;

    box-shadow:
        0 35px 100px
        rgba(15, 23, 42, 0.30);

    transform:
        translateY(18px)
        scale(0.97);

    transition:
        transform 0.28s ease;
}

.certificate-details-modal.is-visible
.certificate-details-dialog {
    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   MODAL SCROLL AREA
========================================================= */

.certificate-details-scroll {
    position: relative;

    min-height: 0;

    width: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 34px;

    scroll-behavior: smooth;

    overscroll-behavior:
        contain;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(100, 116, 139, 0.45)
        transparent;
}

.certificate-details-scroll::-webkit-scrollbar {
    width: 7px;
}

.certificate-details-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.certificate-details-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        rgba(100, 116, 139, 0.38);
}

.certificate-details-scroll::-webkit-scrollbar-thumb:hover {
    background:
        rgba(100, 116, 139, 0.58);
}


/* =========================================================
   MODAL CLOSE
========================================================= */

.certificate-details-close {
    position: absolute;

    z-index: 5;

    top: 18px;
    right: 18px;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(15, 23, 42, 0.10);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.90);

    color: #334155;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.certificate-details-close:hover {
    background:
        #f1f5f9;

    color:
        #0f172a;

    transform:
        rotate(4deg);
}


/* =========================================================
   MODAL SCROLL BUTTON
========================================================= */

.certificate-details-scroll-button {
    position: absolute;

    z-index: 6;

    right: 22px;
    bottom: 22px;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(15, 23, 42, 0.10);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.94);

    color:
        var(--primary);

    font-size: 15px;

    cursor: pointer;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.16);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.certificate-details-scroll-button:hover {
    transform:
        translateY(-2px);

    background:
        #ffffff;

    color:
        #1d4ed8;

    box-shadow:
        0 11px 28px
        rgba(15, 23, 42, 0.20);
}

.certificate-details-scroll-button:active {
    transform:
        translateY(0)
        scale(0.95);
}

.certificate-details-scroll-button[hidden] {
    display: none;
}


/* =========================================================
   MODAL HEADER
========================================================= */

.certificate-details-header {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding:
        4px 50px 0;
}

.certificate-details-icon {
    width: 78px;
    height: 78px;

    display: grid;
    place-items: center;

    margin-bottom: 16px;

    border:
        1px solid
        rgba(34, 197, 94, 0.18);

    border-radius: 23px;

    background:
        linear-gradient(
            135deg,
            rgba(34, 197, 94, 0.13),
            rgba(37, 99, 235, 0.10)
        );

    color: #16a34a;

    font-size: 31px;
}

.certificate-details-eyebrow {
    margin-bottom: 6px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.certificate-details-heading {
    margin: 0;

    color: #0f172a;

    font-size:
        clamp(28px, 4vw, 38px);

    line-height: 1.15;
}

.certificate-details-header p {
    max-width: 620px;

    margin:
        12px auto 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   AUTHENTIC STATUS
========================================================= */

.certificate-details-status {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: fit-content;

    margin:
        22px auto 24px;

    padding:
        9px 15px;

    border:
        1px solid
        rgba(34, 197, 94, 0.20);

    border-radius: 999px;

    background:
        rgba(34, 197, 94, 0.09);

    color: #15803d;

    font-size: 13px;
    font-weight: 800;
}

.certificate-details-status i {
    font-size: 14px;
}


/* =========================================================
   DETAILS GRID
========================================================= */

.certificate-details-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.certificate-detail-item {
    min-width: 0;

    padding:
        17px 18px;

    border:
        1px solid
        #e2e8f0;

    border-radius: 15px;

    background:
        rgba(248, 250, 252, 0.92);
}

.certificate-detail-item span {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 8px;

    color: #64748b;

    font-size: 12px;
    font-weight: 800;
}

.certificate-detail-item span i {
    width: 17px;

    flex-shrink: 0;

    text-align: center;

    color: var(--primary);

    font-size: 13px;
}

.certificate-detail-item strong {
    display: block;

    color: #0f172a;

    font-size: 15px;
    font-weight: 750;

    line-height: 1.45;

    overflow-wrap: anywhere;
}


/* =========================================================
   FULL WIDTH DETAIL
========================================================= */

.certificate-detail-full {
    grid-column:
        1 / -1;
}


/* =========================================================
   CERTIFICATE ID
========================================================= */

.certificate-detail-id strong {
    padding:
        10px 12px;

    border:
        1px solid
        rgba(37, 99, 235, 0.12);

    border-radius: 9px;

    background:
        rgba(37, 99, 235, 0.045);

    color:
        #1e3a8a;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 13px;

    letter-spacing: 0.02em;
}


/* =========================================================
   MODAL ACTIONS
========================================================= */

.certificate-details-actions {
    display: flex;

    justify-content: center;

    width: 100%;

    margin-top: 22px;
}

.certificate-view-button {
    width: 100%;

    min-height: 50px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 13px;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;
}

.certificate-view-button {
    border:
        1px solid
        var(--primary);

    background:
        var(--primary);

    color:
        #ffffff;

    box-shadow:
        0 10px 25px
        rgba(37, 99, 235, 0.20);
}

.certificate-view-button:hover {
    filter:
        brightness(0.96);
}


/* =========================================================
   MODAL FOOTER
========================================================= */

.certificate-details-footer {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 18px;

    padding-bottom: 2px;

    color: #94a3b8;

    font-size: 11px;

    text-align: center;

    line-height: 1.45;
}

.certificate-details-footer i {
    color: #64748b;
}


/* =========================================================
   DARK THEME
========================================================= */

[data-theme="dark"]
.certificate-verify-card {
    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.22);
}

[data-theme="dark"]
.certificate-preview {
    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.28);
}

[data-theme="dark"]
.certificate-verification-animation {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(59, 130, 246, 0.14),
            transparent 42%
        ),
        var(--surface);
}


/* =========================================================
   DARK SUCCESS PREVIEW
========================================================= */

[data-theme="dark"]
.verification-animation-success {
    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(34, 197, 94, 0.14),
            transparent 44%
        ),
        var(--surface);
}

[data-theme="dark"]
.verification-animation-success
.verification-animation-content strong {
    color:
        #4ade80;
}


/* =========================================================
   DARK MODAL
========================================================= */

[data-theme="dark"]
.certificate-details-dialog {
    border-color:
        rgba(255, 255, 255, 0.10);

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.98),
            rgba(30, 41, 59, 0.98)
        );

    color:
        #f8fafc;

    box-shadow:
        0 35px 100px
        rgba(0, 0, 0, 0.55);
}


/* Dark scroll */

[data-theme="dark"]
.certificate-details-scroll {
    scrollbar-color:
        rgba(148, 163, 184, 0.38)
        transparent;
}

[data-theme="dark"]
.certificate-details-scroll::-webkit-scrollbar-thumb {
    background:
        rgba(148, 163, 184, 0.30);
}

[data-theme="dark"]
.certificate-details-scroll::-webkit-scrollbar-thumb:hover {
    background:
        rgba(148, 163, 184, 0.48);
}


/* Dark close */

[data-theme="dark"]
.certificate-details-close {
    border-color:
        rgba(255, 255, 255, 0.10);

    background:
        rgba(255, 255, 255, 0.06);

    color:
        #cbd5e1;
}

[data-theme="dark"]
.certificate-details-close:hover {
    background:
        rgba(255, 255, 255, 0.11);

    color:
        #ffffff;
}


/* Dark scroll button */

[data-theme="dark"]
.certificate-details-scroll-button {
    border-color:
        rgba(255, 255, 255, 0.10);

    background:
        rgba(15, 23, 42, 0.88);

    color:
        #93c5fd;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.35);
}

[data-theme="dark"]
.certificate-details-scroll-button:hover {
    background:
        rgba(30, 41, 59, 0.96);

    color:
        #bfdbfe;
}


/* Dark heading */

[data-theme="dark"]
.certificate-details-heading {
    color:
        #f8fafc;
}

[data-theme="dark"]
.certificate-details-header p {
    color:
        #94a3b8;
}


/* Dark detail cards */

[data-theme="dark"]
.certificate-detail-item {
    border-color:
        rgba(255, 255, 255, 0.08);

    background:
        rgba(255, 255, 255, 0.035);
}

[data-theme="dark"]
.certificate-detail-item span {
    color:
        #94a3b8;
}

[data-theme="dark"]
.certificate-detail-item strong {
    color:
        #f1f5f9;
}


/* Dark certificate ID */

[data-theme="dark"]
.certificate-detail-id strong {
    border-color:
        rgba(96, 165, 250, 0.15);

    background:
        rgba(59, 130, 246, 0.08);

    color:
        #bfdbfe;
}


/* Dark footer */

[data-theme="dark"]
.certificate-details-footer {
    color:
        #64748b;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes verification-spin {

    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }
}


@keyframes verification-icon-pulse {

    0%,
    100% {
        transform:
            scale(1);
    }

    50% {
        transform:
            scale(1.06);
    }
}


@keyframes verification-success-pulse {

    0%,
    100% {
        transform:
            scale(1);
    }

    50% {
        transform:
            scale(1.07);
    }
}


@keyframes verification-glow {

    0%,
    100% {
        opacity:
            0.65;

        transform:
            scale(0.92);
    }

    50% {
        opacity:
            1;

        transform:
            scale(1.08);
    }
}


@keyframes verification-progress {

    0% {
        transform:
            translateX(-120%);
    }

    100% {
        transform:
            translateX(320%);
    }
}


@keyframes verification-complete-fade {

    from {
        opacity:
            1;
    }

    to {
        opacity:
            0;
    }
}


/* =========================================================
   ANIMATION MESSAGE CHANGE
========================================================= */

.verification-message-change {
    animation:
        verification-message-change
        0.45s ease;
}

@keyframes verification-message-change {

    0% {
        opacity:
            0;

        transform:
            translateY(7px);
    }

    100% {
        opacity:
            1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .certificate-verification-layout {
        grid-template-columns:
            1fr;
    }


    .certificate-verify-card {
        max-width:
            760px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .certificate-page {
        padding-top:
            28px;

        padding-bottom:
            40px;
    }


    .certificate-page-header {
        margin-bottom:
            25px;
    }


    .certificate-page-header h1 {
        font-size:
            30px;
    }


    .certificate-page-header p {
        font-size:
            14px;
    }


    .certificate-verify-card {
        padding:
            22px;

        border-radius:
            18px;
    }


    .certificate-card-heading h2 {
        font-size:
            22px;
    }


    .certificate-demo-heading {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            12px;
    }


    .certificate-demo-heading h2 {
        font-size:
            24px;
    }


    .certificate-demo-link {
        font-size:
            13px;
    }


    .certificate-preview {
        border-radius:
            16px;
    }


    /* -----------------------------------------
       Mobile verification animation
    ----------------------------------------- */

    .certificate-verification-animation {
        min-height:
            260px;

        aspect-ratio:
            1600 / 1100;

        padding:
            24px;
    }


    .verification-animation-icon {
        width:
            64px;

        height:
            64px;

        border-radius:
            19px;

        font-size:
            25px;
    }


    .verification-animation-spinner {
        width:
            90px;

        height:
            90px;
    }


    .verification-animation-content {
        max-width:
            290px;
    }


    .verification-animation-content strong {
        font-size:
            17px;
    }


    .verification-animation-content span {
        font-size:
            12px;
    }


    .verification-animation-progress {
        width:
            78%;
    }


    /* -----------------------------------------
       Mobile verified state
    ----------------------------------------- */

    .verification-animation-success
    .verification-animation-icon {
        width:
            68px;

        height:
            68px;

        font-size:
            27px;
    }


    .verification-animation-success
    .verification-animation-content strong {
        font-size:
            20px;
    }


    .verification-animation-success
    .verification-animation-content span {
        font-size:
            12px;
    }


    /* -----------------------------------------
       View details
    ----------------------------------------- */

    .certificate-preview-actions {
        margin-top:
            14px;
    }


    .certificate-preview-details-button {
        width:
            100%;

        min-width:
            0;
    }


    /* -----------------------------------------
       Modal
    ----------------------------------------- */

    .certificate-details-modal {
        align-items:
            center;

        padding:
            12px;
    }


    .certificate-details-dialog {
        width:
            100%;

        max-height:
            calc(100vh - 24px);

        border-radius:
            22px;
    }


    .certificate-details-scroll {
        padding:
            24px 18px 18px;
    }


    .certificate-details-close {
        top:
            12px;

        right:
            12px;

        width:
            40px;

        height:
            40px;
    }


    .certificate-details-scroll-button {
        right:
            16px;

        bottom:
            16px;

        width:
            42px;

        height:
            42px;
    }


    .certificate-details-header {
        padding:
            8px 38px 0;
    }


    .certificate-details-icon {
        width:
            62px;

        height:
            62px;

        margin-bottom:
            12px;

        border-radius:
            18px;

        font-size:
            25px;
    }


    .certificate-details-eyebrow {
        font-size:
            10px;
    }


    .certificate-details-heading {
        font-size:
            26px;
    }


    .certificate-details-header p {
        margin-top:
            9px;

        font-size:
            12px;
    }


    .certificate-details-status {
        margin:
            17px auto 17px;

        padding:
            8px 12px;

        font-size:
            12px;
    }


    .certificate-details-grid {
        grid-template-columns:
            1fr;

        gap:
            9px;
    }


    .certificate-detail-full {
        grid-column:
            auto;
    }


    .certificate-detail-item {
        padding:
            13px 14px;

        border-radius:
            13px;
    }


    .certificate-detail-item span {
        margin-bottom:
            6px;

        font-size:
            11px;
    }


    .certificate-detail-item strong {
        font-size:
            13px;
    }


    .certificate-detail-id strong {
        padding:
            8px 9px;

        font-size:
            11px;
    }


    .certificate-details-actions {
        margin-top:
            16px;
    }


    .certificate-view-button {
        width:
            100%;

        min-height:
            46px;
    }


    .certificate-details-footer {
        margin-top:
            13px;

        padding-bottom:
            2px;

        font-size:
            10px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .certificate-details-dialog {
        border-radius:
            19px;
    }


    .certificate-details-scroll {
        padding:
            21px 14px 14px;
    }


    .certificate-details-header {
        padding:
            8px 30px 0;
    }


    .certificate-details-heading {
        font-size:
            23px;
    }


    .certificate-detail-item {
        padding:
            11px 12px;
    }


    .certificate-preview-details-button {
        font-size:
            13px;
    }


    .certificate-details-scroll-button {
        right:
            13px;

        bottom:
            13px;

        width:
            40px;

        height:
            40px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .certificate-verification-animation *,
    .certificate-verification-animation::before {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }


    .certificate-details-modal,
    .certificate-details-dialog,
    .certificate-preview-actions,
    .certificate-details-scroll {
        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto;
    }

}