:root {
    --bg1: #f3f0ff;
    --bg2: #e3f3ff;
    --tx: #1b1a2e;
    --mut: #5d5b78;
    --card: rgba(255, 255, 255, .72);
    --bd: rgba(255, 255, 255, .8);
    --ac: #6c5ce7;
    --ac2: #00b4d8;
    --sh: 0 8px 32px rgba(70, 60, 140, .15);
    --ff: #ffffff;
    --f3: rgba(255, 255, 255, .3)
}

html {
    background-color: var(--bg1);
    color-scheme: light;
    min-height: 100%
}

html[data-theme=dark] {
    --bg1: #0d0b1e;
    --bg2: #08192e;
    --tx: #f2f1ff;
    --mut: #a5a3c4;
    --card: rgba(22, 20, 42, .9);
    --bd: rgba(255, 255, 255, .16);
    --sh: 0 8px 32px rgba(0, 0, 0, .45);
    --ff: rgba(22, 20, 42, .9);
    --f3: rgba(0, 0, 0, .3)
    color-scheme: dark;
    background-color: var(--bg1)
}

* {
    box-sizing: border-box;
    margin: 0
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font: 16px/1.6 Inter, Vazirmatn, system-ui, sans-serif;
    color: var(--tx);
    background-color: var(--bg1);
    background-image: linear-gradient(165deg, var(--bg1), var(--bg2));
    background-repeat: no-repeat;
    background-attachment: scroll
}

html[lang=fa] body {
    font-family: Vazirmatn, Inter, system-ui, sans-serif
}

@supports (-webkit-touch-callout:none) {

    .glass,
    .btn,
    .nav {
        -webkit-backdrop-filter: none;
        backdrop-filter: none
    }
}

html[lang=fa] [data-l=en],
html[lang=en] [data-l=fa] {
    display: none
}

a {
    color: inherit;
    text-decoration: none
}

:focus-visible {
    outline: 3px solid var(--ac2);
    outline-offset: 2px
}

.wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 16px calc(28px + env(safe-area-inset-bottom))
}

body:has(.bar) .wrap {
    padding-bottom: 120px
}

.glass {
    background: var(--card);
    border: 1px solid var(--bd);
    box-shadow: var(--sh);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-radius: 22px
}

.pad {
    padding: 20px
}

.bar {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    box-sizing: border-box;
    width: fit-content;
    max-width: calc(100vw - 24px);
    gap: 4px;
    margin: 0;
    padding: 5px;
    border-radius: 999px;
    background: var(--f3);
    border: 1px solid var(--bd);
    box-shadow: var(--sh)
}

.bar .btn {
    border-radius: 999px;
    box-sizing: border-box;
    flex: 1 1 60px;
    width: 60px;
    max-width: 60px;
    min-width: 0;
    height: 42px;
    padding: 0
}

#back {
    background: #ff4f24;
    color: #fff;
    border-color: transparent
}

.bar .btn:hover {
    transform: none
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    color: inherit;
    cursor: pointer;
    min-width: 60px;
    width: 60px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--bd);
    background: var(--ff);
    transition: transform .2s
}

.btn:hover {
    transform: translateY(-2px)
}

.pri {
    background: linear-gradient(135deg, var(--ac), var(--ac2));
    color: #fff;
    border: 0
}

.slider {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 18px;
    touch-action: pan-y
}

.track {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform .6s cubic-bezier(.65, 0, .35, 1)
}

.slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    display: block
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.cap {
    position: absolute;
    inset: auto 0 0;
    padding: 34px 18px 34px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6))
}

.nav {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--bd);
    background: var(--card);
    color: var(--tx);
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px)
}

.prev {
    inset-inline-start: 10px
}

.next {
    inset-inline-end: 10px
}

[dir=rtl] .nav i {
    transform: scaleX(-1)
}

.dots {
    position: absolute;
    bottom: 12px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 7px
}

.dots b {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: width .3s, background .3s
}

.dots b.on {
    width: 24px;
    background: #fff
}

.me {
    position: relative;
    text-align: center;
    padding: 26px 20px;
    margin-bottom: 16px
}

.av {
    display: block;
    width: 104px;
    height: 104px;
    margin: 0 auto 12px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bd);
    box-shadow: var(--sh);
    background: linear-gradient(135deg, var(--ac), var(--ac2))
}

h1 {
    font-size: 1.5rem;
    line-height: 1.3
}

.me p,
.muted {
    color: var(--mut)
}

.links {
    display: grid;
    gap: 12px;
    margin-bottom: 28px
}

.lnk {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 15px 18px;
    font-weight: 600;
    transition: transform .25s, border-color .25s
}

.lnk span {
    min-width: 0;
    overflow-wrap: anywhere
}

.lnk i {
    font-size: 1.35rem;
    width: 28px;
    flex: none;
    text-align: center;
    color: var(--ac)
}

.lnk:hover,
a.tile:hover {
    transform: translateY(-3px);
    border-color: var(--ac)
}

h2 {
    font-size: 1.05rem;
    margin: 0 4px 12px;
    color: var(--mut)
}

.block {
    margin-bottom: 28px
}

.cv {
    display: grid;
    gap: 10px
}

.cv-item {
    display: block;
    padding: 14px 16px;
    color: inherit;
    transition: transform .25s, border-color .25s
}

.cv-item h3 {
    margin: 0 0 4px;
    font-size: 1rem
}

.cv-meta,
.cv-item p {
    margin: 0;
    color: var(--mut);
    font-size: .88rem
}

.cv-meta {
    margin-bottom: 6px
}

a.cv-item:hover {
    transform: translateY(-3px);
    border-color: var(--ac)
}

.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.tile {
    display: block;
    overflow: hidden;
    transition: transform .25s, border-color .25s
}

.tile img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block
}

.tile div {
    padding: 12px 14px
}

.tile h3 {
    font-size: .95rem
}

.tile p {
    font-size: .8rem;
    color: var(--mut)
}

@media(max-width:700px) {
    .links {
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .lnk {
        padding: 12px 10px;
        gap: 8px;
        font-size: .9rem
    }

    .lnk i {
        font-size: 1.05rem;
        width: 20px
    }
}

@media(max-width:380px) {
    .tiles {
        grid-template-columns: 1fr
    }
}

.text-btn {
    width: auto;
    min-width: 0;
    padding: 0 16px;
    gap: 8px
}

.donate-gate,
.accs {
    display: grid;
    gap: 12px
}

.donate-gate[hidden],
#wallets[hidden],
.acc-b[hidden] {
    display: none
}

.ask {
    display: grid;
    gap: 6px;
    font-weight: 600
}

.ask input,
.addr {
    width: 100%;
    font: inherit;
    color: inherit;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid var(--bd);
    background: var(--ff)
}

.ask input:focus {
    outline: 2px solid var(--ac);
    outline-offset: 1px
}

html:not([data-theme=dark]) .ask input,
html:not([data-theme=dark]) .addr {
    border-color: rgba(27, 26, 46, .16)
}

.acc {
    overflow: hidden
}

.acc-h {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: start;
    cursor: pointer
}

.acc-h > i:first-child {
    width: 28px;
    text-align: center;
    color: var(--ac);
    font-size: 1.2rem
}

.chev {
    margin-inline-start: auto;
    transition: transform .2s
}

.acc.open .chev {
    transform: rotate(180deg)
}

.acc-b {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px
}

.addr {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92rem;
    word-break: break-all;
    direction: ltr;
    text-align: left
}

.qr {
    display: flex;
    justify-content: center
}

.qr svg {
    width: 180px;
    height: auto;
    padding: 8px;
    border-radius: 12px;
    background: #fff
}

.acc .text-btn,
.donate-gate .text-btn {
    width: 100%
}

@media(prefers-reduced-motion:reduce) {

    *,
    ::before,
    ::after {
        animation: none !important;
        transition: none !important
    }
}