/* bundle site-base: generated by tools/build/bundle-css.py from fa/css/style.css, fa/css/farada-base.css, css/toast.css. Do not edit. */

/* ── fa/css/style.css ── */
/* ═══════════════════════════════════════
   Farada — Global Styles
   ═══════════════════════════════════════ */

* {
    font-family: 'Lahzeh', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

/* ── Theme Variables ── */
[data-theme="light"] {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface2: #f1f5f9;
    --heading: #0f172a;
    --body: #475569;
    --muted: #56627a; /* 4.74:1 or better on every light surface (was #94a3b8, 2.45:1) */
    --border: #e2e8f0;
    --border-soft: #f1f5f9;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, .03), 0 2px 8px rgba(0, 0, 0, .03);
    --card-hover: 0 4px 20px rgba(99, 102, 241, .08);
    --nav-bg: rgba(255, 255, 255, .75);
    --mob-bg: rgba(248, 250, 252, .9);
    --hero-mesh1: rgba(99, 102, 241, .08);
    --hero-mesh2: rgba(16, 185, 129, .06);
    --code-bg: #1e293b;
}

[data-theme="midnight"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface2: #162032;
    --heading: #f1f5f9;
    --body: #cbd5e1;
    --muted: #94a3b8; /* 5.71:1 or better on the dark surfaces (was #64748b, 3.75:1) */
    --border: #1e3a5f;
    --border-soft: #1e293b;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    --card-hover: 0 4px 24px rgba(99, 102, 241, .15);
    --nav-bg: rgba(15, 23, 42, .75);
    --mob-bg: rgba(15, 23, 42, .92);
    --hero-mesh1: rgba(99, 102, 241, .12);
    --hero-mesh2: rgba(16, 185, 129, .08);
    --code-bg: #0c1322;
}

body {
    background: var(--bg);
    color: var(--body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased
}

::selection {
    background: rgba(99, 102, 241, .2)
}

::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, .25);
    border-radius: 10px
}

html {
    scroll-behavior: smooth
}

/* ── Utilities ── */
.t {
    transition: all .35s cubic-bezier(.4, 0, .2, 1)
}

/* ── Progress ── */
#prog {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    z-index: 9999;
    background: linear-gradient(90deg, #6366f1, #10b981);
    border-radius: 0 3px 3px 0
}

/* ── Nav ── */
.nav-glass {
    background: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-soft);
}

/* ── Logo ── */
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .2);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.logo-wrap:hover .logo-img {
    transform: rotate(6deg) scale(1.05)
}

/* ── Reveal (نرم‌تر) ── */
.r {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1)
}

.r.v {
    opacity: 1;
    transform: none
}

.d1 {
    transition-delay: .05s
}

.d2 {
    transition-delay: .1s
}

.d3 {
    transition-delay: .15s
}

.d4 {
    transition-delay: .2s
}

.d5 {
    transition-delay: .25s
}

.d6 {
    transition-delay: .3s
}

/* ── Gradient Text ── */
.gt {
    background: linear-gradient(135deg, #6366f1, #a855f7, #6366f1);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center
    }

    100% {
        background-position: 200% center
    }
}

/* ── Buttons ── */
.btn-brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s cubic-bezier(.4, 0, .2, 1);
}

.btn-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    opacity: 0;
    transition: opacity .4s ease;
}

.btn-brand:hover::before {
    opacity: 1
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, .3)
}

.btn-brand span,
.btn-brand i {
    position: relative;
    z-index: 1
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--heading);
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.btn-ghost:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, .04);
    transform: translateY(-2px)
}

/* ── Cards ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1),
        box-shadow .4s cubic-bezier(.4, 0, .2, 1),
        border-color .4s cubic-bezier(.4, 0, .2, 1);
}

.card:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, .12);
}

.bento {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1),
        box-shadow .4s cubic-bezier(.4, 0, .2, 1),
        border-color .4s cubic-bezier(.4, 0, .2, 1);
}

.bento:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, .15);
}

/* ── Glass ── */
.glass-subtle {
    background: rgba(99, 102, 241, .04);
    border: 1px solid rgba(99, 102, 241, .08)
}

[data-theme="midnight"] .glass-subtle {
    background: rgba(99, 102, 241, .06);
    border-color: rgba(99, 102, 241, .12)
}

/* ── Tags ── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.tag-tech {
    background: var(--surface2);
    color: var(--muted);
    border: 1px solid var(--border)
}

.tag-cat {
    background: rgba(99, 102, 241, .08);
    color: #6366f1
}

.tag-new {
    background: #f59e0b;
    color: #fff
}

.tag-hot {
    background: #ef4444;
    color: #fff
}

/* ── Section Label ── */
.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(99, 102, 241, .06);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, .12);
}

/* ── Typing ── */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #6366f1;
    margin-right: 5px;
    vertical-align: middle;
    animation: blink .8s step-end infinite;
    border-radius: 2px;
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

/* ── Code Editor ── */
.code-editor {
    background: var(--code-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    direction: ltr;
}

.code-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, .25);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    direction: ltr;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%
}

.code-editor pre {
    text-align: left;
    direction: ltr
}

/* ── Mesh ── */
.mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none
}

/* ── Portfolio Image ── */
.img-box {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--surface2);
}

.img-box .img-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.bento:hover .img-inner {
    transform: scale(1.06)
}

.icon-box {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.bento:hover .icon-box {
    transform: scale(1.08)
}

/* ── Feature List ── */
.feat-list li {
    display: flex;
    align-items: start;
    gap: 8px;
    font-size: 13px;
    color: var(--body);
    line-height: 1.7;
}

.feat-list li i {
    color: #6366f1;
    font-size: 9px;
    margin-top: 6px;
    flex-shrink: 0
}

/* ── Stats ── */
.stats-bg {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 40%, #10b981 100%)
}

/* ── Telegram Float ── */
.tg-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #0088cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 136, 204, .35);
    text-decoration: none;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.tg-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, .5)
}

/* ── Back to Top ── */
#btt {
    position: fixed;
    bottom: 80px;
    left: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--heading);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: var(--card-shadow);
}

#btt.show {
    opacity: 1;
    transform: none;
    pointer-events: auto
}

#btt:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1
}

/* ── Hamburger ── */
.hm {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
}

.hm:hover {
    background: var(--surface2)
}

.hm span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2.5px 0;
    background: var(--heading);
    border-radius: 2px;
    transition: all .3s ease;
}

.hm.on span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px)
}

.hm.on span:nth-child(2) {
    opacity: 0
}

.hm.on span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px)
}

/* ── Mobile Menu ── */
.mob-menu {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: var(--mob-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mob-menu.open {
    transform: none
}

.mob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
    background: var(--surface);
}

.mob-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
}

.mob-close:hover {
    background: var(--border)
}

.mob-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mob-scroll::-webkit-scrollbar {
    width: 4px
}

.mob-scroll::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, .2)
}

.mob-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--heading);
    font-size: 14px;
    font-weight: 600;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.mob-link:hover {
    background: var(--surface2);
    border-color: rgba(99, 102, 241, .15);
    transform: translateX(-4px);
}

.mob-link i {
    color: #6366f1;
    font-size: 14px;
    width: 20px
}

/* ── Social Buttons ── */
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    color: var(--muted);
    border: 1px solid var(--border);
    font-size: 14px;
    text-decoration: none;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.social-btn:hover {
    background: var(--hc);
    color: #fff;
    border-color: var(--hc);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ── Process List Items ── */
.proc-item {
    display: flex;
    gap: 16px;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1),
        border-color .4s cubic-bezier(.4, 0, .2, 1),
        box-shadow .4s cubic-bezier(.4, 0, .2, 1);
}

.proc-item:hover {
    border-color: rgba(99, 102, 241, .2);
    box-shadow: var(--card-hover);
    transform: translateX(-3px);
}

.proc-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--surface2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 800;
    color: var(--muted);
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.proc-item.active .proc-num {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .3);
}

/* ═══════════════════════════════════
   PROCESS VISUAL
   ═══════════════════════════════════ */
.proc-visual {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.proc-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 180deg,
            #10b981 0deg,
            #6366f1 90deg,
            #a855f7 180deg,
            #6366f1 270deg,
            #10b981 360deg);
    animation: proc-spin 30s linear infinite;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes proc-spin {
    to {
        transform: rotate(360deg)
    }
}

.proc-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42%;
    height: 42%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(79, 70, 229, .35);
    z-index: 2;
}

.proc-node {
    position: absolute;
    width: 78px;
    height: 78px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1),
        border-color .4s cubic-bezier(.4, 0, .2, 1),
        box-shadow .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 3;
    cursor: default;
}

[data-theme="midnight"] .proc-node {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.proc-node:hover {
    border-color: rgba(99, 102, 241, .35);
    box-shadow: 0 8px 20px rgba(99, 102, 241, .15);
}

.proc-node i {
    font-size: 16px;
    color: #6366f1;
    margin-bottom: 4px;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.proc-node:hover i {
    transform: scale(1.15)
}

.proc-node span {
    font-size: 11px;
    font-weight: 700;
    color: var(--heading);
}

.proc-n1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%)
}

.proc-n2 {
    top: 25%;
    right: 0;
    transform: translate(50%, -50%)
}

.proc-n3 {
    bottom: 25%;
    right: 0;
    transform: translate(50%, 50%)
}

.proc-n4 {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%)
}

.proc-n5 {
    bottom: 25%;
    left: 0;
    transform: translate(-50%, 50%)
}

.proc-n6 {
    top: 25%;
    left: 0;
    transform: translate(-50%, -50%)
}

.proc-n1:hover {
    transform: translate(-50%, calc(-50% - 3px))
}

.proc-n2:hover {
    transform: translate(50%, calc(-50% - 3px))
}

.proc-n3:hover {
    transform: translate(50%, calc(50% - 3px))
}

.proc-n4:hover {
    transform: translate(-50%, calc(50% - 3px))
}

.proc-n5:hover {
    transform: translate(-50%, calc(50% - 3px))
}

.proc-n6:hover {
    transform: translate(-50%, calc(-50% - 3px))
}

/* ── Tech Card ── */
.tech-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1),
        box-shadow .4s cubic-bezier(.4, 0, .2, 1),
        border-color .4s cubic-bezier(.4, 0, .2, 1);
    opacity: 0;
    transform: translateY(16px);
}

.tech-card.in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .55s cubic-bezier(.4, 0, .2, 1),
        transform .55s cubic-bezier(.4, 0, .2, 1);
}

.tech-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, .2);
    box-shadow: var(--card-hover);
}

.tech-card i {
    font-size: 26px;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1)
}

.tech-card:hover i {
    transform: scale(1.1)
}

.tech-card span {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted)
}

/* ── Trust Card ── */
.trust-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    position: relative;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.trust-card:hover {
    border-color: rgba(99, 102, 241, .15);
    box-shadow: var(--card-hover);
    transform: translateY(-3px);
}

.trust-num {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .05em;
}

.trust-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.trust-card:hover .trust-icon {
    transform: scale(1.05)
}

/* ── Quote ── */
.quote-icon {
    font-size: 44px;
    line-height: 1;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .15;
}

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, #4f46e5, #6366f1, #7c3aed);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -25%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -15%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
}

/* ── Footer ── */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media(min-width:640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr)
    }

    .footer-brand {
        grid-column: span 1
    }
}

.footer-brand {
    grid-column: span 1
}

@media(min-width:640px) and (max-width:1023px) {
    .footer-brand {
        grid-column: span 2
    }
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: center;
}

@media(min-width:640px) {
    .footer-bottom {
        flex-direction: row;
        text-align: right
    }
}

/* ── Mobile footer (phase 3.10): right-aligned, two link columns side by side, no centred stack ── */
@media(max-width:639px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
    .footer-brand, .footer-contact-col { grid-column: 1 / -1; }
    .footer-brand { padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-soft); }
    .footer-contact-col { padding-top: 1.25rem; border-top: 1px solid var(--border-soft); }
    .footer-cta { width: 100%; justify-content: center; }
    .footer-bottom { align-items: flex-start; text-align: right; }
}








/* ── fa/css/farada-base.css ── */
/* ═══════════════════════════════════════
   Farada — site-wide additions (loaded on every public page)
   ═══════════════════════════════════════ */

/* Anti-spam honeypot: invisible to people, still filled in by naive bots */
.f-hp {
    position: absolute !important;
    inset-inline-start: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Persian labels: the original Latin letter-spacing breaks Persian letter joining */
.fbg-article-cat,
.fbg-author-bio-label,
.fbg-badge-cat,
.fpc-plan-label {
    letter-spacing: 0;
}

/* Header account button (sign in / user panel) */
.fa-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--heading);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.fa-account-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* Save (favorite) button on project and article pages */
.fa-save-form {
    display: inline;
    margin: 0;
}

.fa-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--heading);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.fa-save-btn:hover,
.fa-save-btn.is-saved {
    border-color: #ec4899;
    color: #ec4899;
}

/* ── Page-content blocks ── */
.stat-tile { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
ul.fab-who-features, ol.space-y-4 { list-style: none; margin: 0; padding: 0; }

/* ── css/toast.css ── */
/* ══════════════════════════════════════════════════════
   Farada toasts — one notification style for the whole site
   (public pages, sign-in pages, user panel and admin panel).
   Based on the «Default» toast of the FaradaAsset admin kit.
   ══════════════════════════════════════════════════════ */

:root {
    --t-primary: #6366f1;
    --t-primary-soft: rgba(99, 102, 241, .1);
    --t-success: #10b981;
    --t-success-soft: rgba(16, 185, 129, .1);
    --t-error: #ef4444;
    --t-error-soft: rgba(239, 68, 68, .1);
    --t-warning: #f59e0b;
    --t-warning-soft: rgba(245, 158, 11, .12);
    --t-info: #06b6d4;
    --t-info-soft: rgba(6, 182, 212, .1);
    --t-surface: var(--surface, #ffffff);
    --t-surface2: var(--surface2, #f1f5f9);
    --t-border: var(--border, #e2e8f0);
    --t-heading: var(--heading, #0f172a);
    --t-body: var(--body, #475569);
    --t-muted: var(--muted, #94a3b8);
    --t-radius: 14px;
    --t-shadow: 0 12px 48px rgba(15, 23, 42, .12), 0 4px 16px rgba(15, 23, 42, .06);
    --t-ease: cubic-bezier(.22, 1, .36, 1);
    --t-max-width: 400px;
}

[data-theme="midnight"],
[data-theme="dark"] {
    --t-primary: #818cf8;
    --t-primary-soft: rgba(129, 140, 248, .14);
    --t-success: #34d399;
    --t-success-soft: rgba(52, 211, 153, .12);
    --t-error: #f87171;
    --t-error-soft: rgba(248, 113, 113, .12);
    --t-warning: #fbbf24;
    --t-warning-soft: rgba(251, 191, 36, .12);
    --t-info: #22d3ee;
    --t-info-soft: rgba(34, 211, 238, .12);
    --t-surface: var(--surface, #111827);
    --t-surface2: var(--surface2, #1f2937);
    --t-border: var(--border, #1f2937);
    --t-heading: var(--heading, #f8fafc);
    --t-body: var(--body, #cbd5e1);
    --t-muted: var(--muted, #64748b);
    --t-shadow: 0 12px 48px rgba(0, 0, 0, .35), 0 4px 16px rgba(0, 0, 0, .2);
}

/* ── Container: top-left in RTL (clear of the logo and menu), full width on phones ── */
.ft-container {
    position: fixed;
    z-index: 2147483000;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(var(--t-max-width), calc(100% - 32px));
    pointer-events: none;
    font-family: "Lahzeh", system-ui, sans-serif;
    direction: rtl;
}

@media (max-width: 520px) {
    .ft-container {
        top: 12px;
        left: 12px;
        right: 12px;
        width: auto;
    }
}

/* ── Toast ── */
.ft {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 16px;
    border-radius: var(--t-radius);
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    box-shadow: var(--t-shadow);
    overflow: hidden;
    pointer-events: auto;
    animation: ft-in .42s var(--t-ease);
    transition: transform .25s var(--t-ease), box-shadow .25s var(--t-ease), opacity .25s ease;
    touch-action: pan-y;
}

.ft:hover {
    box-shadow: 0 16px 52px rgba(15, 23, 42, .16), 0 6px 18px rgba(15, 23, 42, .08);
}

.ft::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    background: var(--ft-c, var(--t-primary));
}

.ft-success { --ft-c: var(--t-success); --ft-soft: var(--t-success-soft); }
.ft-error   { --ft-c: var(--t-error);   --ft-soft: var(--t-error-soft); }
.ft-warning { --ft-c: var(--t-warning); --ft-soft: var(--t-warning-soft); }
.ft-info    { --ft-c: var(--t-info);    --ft-soft: var(--t-info-soft); }
.ft-primary { --ft-c: var(--t-primary); --ft-soft: var(--t-primary-soft); }

.ft-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 16px;
    color: var(--ft-c, var(--t-primary));
    background: var(--ft-soft, var(--t-primary-soft));
}

.ft-body { flex: 1; min-width: 0; padding-top: 1px; }

.ft-title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--t-heading);
}

.ft-msg {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--t-body);
    overflow-wrap: anywhere;
}

.ft-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: -2px 0 0 -4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--t-muted);
    font-size: 12px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.ft-close:hover,
.ft-close:focus-visible {
    background: var(--t-error-soft);
    color: var(--t-error);
    outline: none;
}

.ft-progress {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: transparent;
}

.ft-progress-fill {
    height: 100%;
    background: var(--ft-c, var(--t-primary));
    opacity: .85;
    transform-origin: right center;
    animation: ft-shrink linear forwards;
}

.ft:hover .ft-progress-fill { animation-play-state: paused; }

.ft-leaving {
    pointer-events: none;
    animation: ft-out .3s var(--t-ease) forwards;
}

@keyframes ft-in {
    from { opacity: 0; transform: translateY(-12px) scale(.97); }
    to { opacity: 1; transform: none; }
}

@keyframes ft-out {
    to { opacity: 0; transform: translateX(-28px) scale(.96); }
}

@keyframes ft-shrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ft, .ft-leaving { animation-duration: .01ms; }
    .ft-progress-fill { animation: none; }
}

/* ── Phase 3.9: closer to the admin kit (ui-toasts): time line, action, soft close, filled error, collapse ── */
.ft { padding: 16px 18px 18px; background: color-mix(in srgb, var(--t-surface) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ft-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 17px; }
.ft-subtitle { display: flex; align-items: center; gap: 5px; margin: 4px 0 0; font-size: 11px; color: var(--t-muted); }
.ft-subtitle i { font-size: 10px; }
.ft-action {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; padding: 5px 14px; border-radius: 7px;
    font-size: 12px; font-weight: 700; text-decoration: none; color: var(--ft-c, var(--t-primary)); background: var(--ft-soft, var(--t-primary-soft));
    transition: background-color .2s ease, color .2s ease;
}
.ft-action:hover { background: var(--ft-c, var(--t-primary)); color: #fff; }
.ft-close { width: 26px; height: 26px; border-radius: 7px; background: var(--t-surface2); font-size: 11px; }
.ft-error { background: linear-gradient(0deg, var(--t-error-soft), var(--t-error-soft)), var(--t-surface); border-color: color-mix(in srgb, var(--t-error) 28%, var(--t-border)); }
.ft-collapsing { overflow: hidden; transition: max-height .25s ease, margin .25s ease, padding .25s ease, opacity .25s ease; opacity: 0; }
