@font-face {
    font-family: "Yekan";
    src: url("../fonts/Yekan.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
:root {
    --background: #fafafa;
    --foreground: #09090b;
    --card: #ffffff;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --border: #e4e4e7;
    --primary: #18181b;

    --success: #15803d;
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;

    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;

    --warning: #a16207;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;

    --radius: 14px;
}


* {
    box-sizing: border-box;
}


html {
    min-height: 100%;
}


body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at 50% -10%,
            #ffffff 0,
            #fafafa 42%,
            #f4f4f5 100%
        );
    color: var(--foreground);
    font-family:
        "Yekan",
        Tahoma,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}


button,
input {
    font: inherit;
}


button,
input,
a {
    outline: none;
}


button:focus-visible,
input:focus-visible,
a:focus-visible {
    box-shadow:
        0 0 0 3px rgba(24, 24, 27, 0.11);
}


a {
    color: inherit;
    text-decoration: none;
}


.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.site-header {
    width: min(1180px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}


.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #18181b;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}


.brand-content {
    display: grid;
    gap: 2px;
}


.brand-content strong {
    font-size: 13px;
}


.brand-content small {
    color: var(--muted-foreground);
    font-size: 9px;
    letter-spacing: 0.04em;
}


.security-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #52525b;
    font-size: 10px;
    font-weight: 700;
}


.security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 0 3px #dcfce7;
}


.container {
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto;
    flex: 1;
    padding:
        62px
        0
        70px;
}


.verify-hero {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}


.hero-badge {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #52525b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
}


.hero-badge svg {
    width: 14px;
    height: 14px;
}


.verify-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(
        30px,
        6vw,
        46px
    );
    line-height: 1.2;
    letter-spacing: -0.035em;
}


.verify-hero > p {
    margin: 0 auto;
    max-width: 520px;
    color: var(--muted-foreground);
    line-height: 1.9;
    font-size: 13px;
}


.verify-form {
    margin-top: 32px;
}


.search-box {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid #d4d4d8;
    border-radius: 13px;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 12px 45px rgba(0, 0, 0, 0.035);
}


.search-box > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin-right: 7px;
    color: #a1a1aa;
}


.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 8px 4px;
    color: var(--foreground);
    font-size: 15px;
    direction: ltr;
    text-align: left;
}


.search-box input::placeholder {
    color: #a1a1aa;
    direction: rtl;
    text-align: right;
}


.verify-button {
    min-width: 108px;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}


.verify-button:hover {
    background: #27272a;
}


.helper-text {
    margin-top: 12px;
    color: #a1a1aa;
    font-size: 10px;
}


.helper-text code {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 5px;
    background: #e4e4e7;
    color: #52525b;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    direction: ltr;
}


.result-card {
    margin-top: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 18px 55px rgba(0, 0, 0, 0.025);
}


.result-valid {
    border-top:
        3px solid #22c55e;
}


.result-error {
    border-top:
        3px solid #ef4444;
}


.result-warning {
    border-top:
        3px solid #eab308;
}


.result-status {
    min-height: 100px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}


.status-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
}


.status-icon svg {
    width: 22px;
    height: 22px;
}


.status-icon.success {
    background: var(--success-bg);
    color: var(--success);
}


.status-icon.danger {
    background: var(--danger-bg);
    color: var(--danger);
}


.status-icon.warning {
    background: var(--warning-bg);
    color: var(--warning);
}


.result-status > div:nth-child(2) {
    flex: 1;
}


.result-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--success);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    direction: ltr;
    text-align: right;
}


.danger-text {
    color: var(--danger);
}


.warning-text {
    color: var(--warning);
}


.result-status h2,
.center-result h2 {
    margin: 0 0 4px;
    font-size: 18px;
}


.result-status p,
.center-result p {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.8;
    font-size: 11px;
}


.valid-badge {
    padding: 5px 9px;
    border: 1px solid var(--success-border);
    border-radius: 999px;
    background: var(--success-bg);
    color: #166534;
    font-size: 9px;
    font-weight: 900;
}


.certificate-code-row {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}


.certificate-code-row > div {
    display: grid;
    gap: 3px;
}


.certificate-code-row span {
    color: var(--muted-foreground);
    font-size: 9px;
}


.certificate-code-row code {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 12px;
    font-weight: 800;
    direction: ltr;
}


.copy-button {
    min-height: 34px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    color: #3f3f46;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}


.copy-button svg {
    width: 14px;
    height: 14px;
}


.certificate-frame {
    margin: 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #f4f4f5;
}


.certificate-toolbar {
    min-height: 55px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}


.certificate-toolbar > div {
    display: grid;
    gap: 2px;
}


.certificate-toolbar strong {
    font-size: 11px;
}


.certificate-toolbar span {
    color: var(--muted-foreground);
    font-size: 9px;
}


.certificate-toolbar a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #52525b;
    font-size: 10px;
    font-weight: 700;
}


.certificate-toolbar svg {
    width: 14px;
    height: 14px;
}


.certificate-image-area {
    min-height: 280px;
    padding: 14px;
    display: grid;
    place-items: center;
}


.certificate-image-area img {
    display: block;
    max-width: 100%;
    max-height: 720px;
    width: auto;
    height: auto;
    border-radius: 3px;
    background: #fff;
}


.permanent-url {
    margin:
        0
        24px
        24px;
    padding: 13px;
    display: grid;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fafafa;
}


.permanent-url span {
    color: var(--muted-foreground);
    font-size: 9px;
}


.permanent-url code {
    color: #3f3f46;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 10px;
    overflow-wrap: anywhere;
}


.center-result {
    min-height: 260px;
    padding: 45px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.center-result .status-icon {
    margin-bottom: 15px;
}


.center-result p {
    max-width: 440px;
}


.result-code {
    margin-top: 15px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #f4f4f5;
    color: #52525b;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 11px;
    direction: ltr;
}


.trust-grid {
    margin-top: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}


.trust-grid article {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}


.trust-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: #52525b;
}


.trust-icon svg {
    width: 18px;
    height: 18px;
}


.trust-grid strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
}


.trust-grid p {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.9;
    font-size: 10px;
}


.footer {
    width: min(1180px, calc(100% - 40px));
    min-height: 70px;
    margin: auto auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--border);
    color: #a1a1aa;
    font-size: 9px;
}


.toast {
    position: fixed;
    z-index: 100;
    left: 22px;
    bottom: 22px;
    padding: 9px 13px;
    border-radius: 8px;
    background: #18181b;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    font-size: 10px;
    transition:
        opacity 150ms ease,
        transform 150ms ease;
}


.toast.show {
    opacity: 1;
    transform: translateY(0);
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


@media (max-width: 720px) {

    .site-header {
        width: calc(100% - 28px);
    }


    .security-label {
        display: none;
    }


    .container {
        width: calc(100% - 24px);
        padding-top: 42px;
    }


    .verify-hero h1 {
        font-size: 30px;
    }


    .search-box {
        padding: 6px;
    }


    .search-box > svg {
        display: none;
    }


    .search-box input {
        padding-right: 8px;
    }


    .verify-button {
        min-width: 86px;
        padding: 0 13px;
    }


    .result-status {
        align-items: flex-start;
        padding: 17px;
    }


    .valid-badge {
        display: none;
    }


    .certificate-code-row {
        padding: 13px 17px;
    }


    .certificate-frame {
        margin: 17px;
    }


    .certificate-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }


    .permanent-url {
        margin:
            0
            17px
            17px;
    }


    .trust-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }


    .footer {
        width: calc(100% - 28px);
    }

}


@media (max-width: 430px) {

    .brand-content small {
        display: none;
    }


    .search-box {
        display: grid;
        grid-template-columns: 1fr;
    }


    .verify-button {
        width: 100%;
    }


    .certificate-code-row {
        align-items: flex-start;
        flex-direction: column;
    }


    .copy-button {
        width: 100%;
        justify-content: center;
    }

}


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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

}