* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
    --jalgo-primary: #2c7be5;
    --jalgo-accent: #06d6a0;
    --body-bg: #e6f0ec;
    --jalgo-text: #0f172a;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0,0,0,.06);
    --box-bg-blured: rgba(255, 255, 255, .84);
    --icon-verified: url('data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%20width%3D%2226%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m6%206h12v12h-12z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20clip-rule%3D%22evenodd%22%20d%3D%22m14.38%201.51%201.82%201.82c.37.37.86.57%201.38.57h2.57c1.01%200%201.85.77%201.94%201.76l.01.19v2.57c0%20.52.21%201.01.57%201.38l1.82%201.82c.71.71.76%201.84.13%202.61l-.13.15-1.82%201.82c-.37.37-.57.86-.57%201.38v2.57c0%201.01-.77%201.85-1.76%201.94l-.19.01h-2.57c-.52%200-1.01.21-1.38.57l-1.82%201.82c-.71.71-1.84.76-2.61.13l-.15-.13-1.82-1.82c-.37-.37-.86-.57-1.38-.57h-2.57c-1.01%200-1.85-.77-1.94-1.76l-.01-.19v-2.57c0-.52-.21-1.01-.57-1.38l-1.82-1.82c-.71-.71-.76-1.84-.13-2.61l.13-.15%201.82-1.82c.37-.37.57-.86.57-1.38v-2.57c0-1.08.87-1.95%201.95-1.95h2.57c.52%200%201.01-.21%201.38-.57l1.82-1.82c.76-.76%202-.76%202.76%200zm3.2%208.05c-.43-.34-1.03-.31-1.42.06l-.1.11-4.45%205.56-1.75-1.75-.11-.1c-.42-.32-1.03-.29-1.42.1s-.42.99-.1%201.42l.1.11%202.6%202.6.11.1c.42.32%201.02.29%201.4-.08l.1-.11%205.2-6.5.08-.12c.27-.46.17-1.05-.25-1.4z%22%20fill%3D%22%231c93e3%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
    --dl-link-icon: url('data:image/svg+xml,%3Csvg%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20width%3D%2214%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m4.4%2010.3%203.3-3.5c0%200%200%200%200%200l-3.3-3.5%22%20fill%3D%22none%22%20stroke%3D%22%231482d1%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%221.05%22%2F%3E%3C%2Fsvg%3E');
}

.theme_dark {
    --jalgo-primary: #1c93e3;
    --jalgo-accent: #555;
    --jalgo-text: #e5e7eb;
    --box-bg-blured: rgba(34, 34, 34, .84);
    --body-bg: #000;
}

html, body {
    /*background: var(--jalgo-bg);*/
    color: var(--jalgo-text);
    padding: 0;
    margin: 0;
}

html, body, pre {
    font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/*a, a:hover {
    color: #0088cc;
}*/

a {
    color: #2e87ca;
    text-decoration: none;
}

a {
    background: transparent;
}

.no_transition * {
    transition: none !important;
}

.container {
    max-width: 440px;
    margin: 0 auto;
    /*padding: 16px;*/
    padding: 70px 16px 40px;
}

.wallpaper img {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*opacity: .12;*/
    z-index: -1;
    pointer-events: none;
}

.card {
    position: relative;
    margin: 16px auto;
    padding: 32px 0;
    border-radius: var(--radius);
    background: var(--box-bg-blured);
    box-shadow: var(--shadow);
    backdrop-filter: blur(7px) saturate(1.4);
    display: flex;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo {
    padding-bottom: 16px;
}
/*
    .photo img {
        width: 128px;
        height: 128px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: var(--shadow)
    }*/

.title {
    font-size: 26px;
    line-height: 32px;
    font-weight: bold;
    text-align: center;
    max-width: 340px;
    padding: 0 10px;
    margin: 0 auto;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
}

.extra {
    font-size: 15px;
    line-height: 18px;
    text-align: center;
    padding: 6px 16px 0;
}

    .extra.support {
        color: var(--jalgo-primary);
    }

.description {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 125px;
    word-break: break-word;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    margin: 10px 16px 0;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    background: var(--jalgo-primary);
    color: #fff;
}

    .btn.secondary {
        background: var(--jalgo-accent);
        color: #fff;
    }

.context {
    margin-top: 14px
}

.context-link {
    color: var(--jalgo-primary);
    text-decoration: none
}

.footnote {
    margin-top: 14px;
    opacity: .9
}

/* Shine animation */
.shine {
    position: relative;
    overflow: hidden
}

    .shine::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40%;
        transform: skewX(-20deg);
        left: -60%;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 100%);
        animation: shine 3.5s infinite;
    }

@keyframes shine {
    0% {
        left: -60%
    }

    100% {
        left: 120%
    }
}

.fallback {
    margin: 20px auto;
    padding: 16px;
    border: 1px dashed rgba(0,0,0,.15);
    border-radius: 12px;
}

.hidden {
    display: none
}

.head_wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 54px;
    padding: 10px 16px;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: var(--box-bg-blured);
    -webkit-backdrop-filter: blur(25px) saturate(1.8);
    backdrop-filter: blur(25px) saturate(1.4);
    z-index: 1;
}

.head {
    display: flex;
    justify-content: space-between;
}

    .head .left_btn {
        display: inline-block;
        font-size: 14px;
        line-height: 17px;
        font-weight: bold;
        -webkit-font-smoothing: antialiased;
        text-transform: uppercase;
        color: #fff;
        background: var(--jalgo-primary);
        padding: 9px 16px;
        height: 34px;
        border-radius: 17px;
        text-align: center;
        transition: all .15s ease .15s;
    }

    .head .brand {
        display: inline-block;
        vertical-align: top;
    }

        .head .brand img {
            height: 34px;
        }

.jalgo_background_wrap {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: var(--body-bg);
}

.jalgo_background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.jalgo_background_pattern.default {
    opacity: 0.3;
    background-image: url('/img/pattern.svg');
}

.jalgo_background_pattern {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: overlay;
    background: center repeat;
    background-image: none;
    background-size: auto;
    background-size: 420px auto;
    background-image: var(--pattern-url, none);
    opacity: var(--pattern-intensity, 1);
}

html.theme_dark .jalgo_background.default, body.bg_dark .jalgo_background.default {
    opacity: 0.3;
    -webkit-mask-image: url('/img/pattern.svg');
}

html.theme_dark .jalgo_background, body.bg_dark .jalgo_background {
    -webkit-mask: center repeat;
    mask-size: auto;
    mask-image: none;
    -webkit-mask-size: 420px auto;
    -webkit-mask-image: var(--pattern-url, none);
    opacity: var(--pattern-intensity, 1);
}

html.theme_dark .jalgo_background_pattern, body.bg_dark .jalgo_background_pattern {
    display: none;
}

.avatar_container {
    width: 122px;
    height: 122px;
    border-radius: 61px;
    display: block;
    background-size: cover;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.avatar_image {
    width: 122px;
    height: 122px;
    border-radius: 61px;
    display: block;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.avatar_image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

    .avatar_image.loaded {
        opacity: 1;
    }

.dark_logo {
    display: none;
}

html.theme_dark .dark_logo {
    display: inline-block !important;
}

.light_logo {
    display: inline-block;
}

html.theme_dark .light_logo {
    display: none !important;
}

.verified-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    padding: 1px;
    text-indent: -10em;
    overflow: hidden;
    background: var(--icon-verified) no-repeat 0 0;
    background-size: 100%;
    vertical-align: -4px;
    margin-left: 8px;
}
