/* ============================================
   100KIT.IR
   Main Stylesheet - v3
   ============================================ */


/* ============================================
   RESET
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f0f4ff;
    --bg2: #ffffff;
    --bg3: #f5f7ff;

    --text: #0b1f5c;
    --text2: #334155;
    --text3: #64748b;

    --primary: #1e40ff;
    --primary-d: #0b1f5c;
    --primary-l: #e8edff;

    --accent: #10b981;
    --accent-d: #059669;
    --accent-l: #ecfdf5;

    --border: #e2e8f0;

    --shadow-sm:
        0 2px 4px rgba(15, 23, 42, .04),
        0 1px 2px rgba(15, 23, 42, .03);

    --shadow:
        0 6px 20px rgba(15, 23, 42, .06);

    --shadow-lg:
        0 18px 45px rgba(15, 23, 42, .10);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 20px;

    --safe-b: env(safe-area-inset-bottom, 0px);
}


[data-theme="dark"] {
    --bg: #0a0f1f;
    --bg2: #111936;
    --bg3: #1a2344;

    --text: #e8edff;
    --text2: #b0bee0;
    --text3: #8899bb;

    --primary: #4b6eff;
    --primary-d: #8097ff;
    --primary-l: #151d3d;

    --accent: #34d399;
    --accent-d: #6ee7b7;
    --accent-l: #0a2e1f;

    --border: #1e2d5c;

    --shadow-sm:
        0 2px 6px rgba(0, 0, 0, .18);

    --shadow:
        0 8px 24px rgba(0, 0, 0, .22);

    --shadow-lg:
        0 20px 50px rgba(0, 0, 0, .32);
}


html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}


body {
    min-height: 100vh;
    padding-bottom: calc(100px + var(--safe-b));

    background: var(--bg);
    color: var(--text);

    font-family:
        'IranYekan',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    transition:
        background .25s,
        color .25s;
}


@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
    height: auto;
}


button,
input {
    font: inherit;
}


button {
    border: 0;
}


button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}


/* ============================================
   FONT
   ============================================ */

@font-face {
    font-family: 'IranYekan';
    src:
        url('/assets/fonts/iranyekan/iranyekanwebregular.woff2')
        format('woff2');
    font-weight: 400;
    font-display: swap;
}


@font-face {
    font-family: 'IranYekan';
    src:
        url('/assets/fonts/iranyekan/iranyekanwebmedium.woff2')
        format('woff2');
    font-weight: 500;
    font-display: swap;
}


@font-face {
    font-family: 'IranYekan';
    src:
        url('/assets/fonts/iranyekan/iranyekanwebbold.woff2')
        format('woff2');
    font-weight: 700 900;
    font-display: swap;
}


/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
    position: absolute;
    top: -100px;
    right: 16px;
    z-index: 9999;

    padding: 9px 16px;

    background: var(--primary);
    border-radius: 10px;

    color: #fff;
    font-size: .82rem;
    font-weight: 700;

    transition: top .2s;
}


.skip-link:focus {
    top: 16px;
}


/* ============================================
   HEADER
   ============================================ */

.hdr {
    position: sticky;
    top: 0;
    z-index: 110;

    background: rgba(255, 255, 255, .90);
    border-bottom: 1px solid transparent;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;
}


[data-theme="dark"] .hdr {
    background: rgba(17, 25, 54, .92);
}


.hdr.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}


.hdr-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 16px;

    transition: padding .2s;
}


.hdr.scrolled .hdr-in {
    padding-top: 7px;
    padding-bottom: 7px;
}


@media (min-width: 768px) {

    .hdr-in {
        padding: 14px 24px;
    }

    .hdr.scrolled .hdr-in {
        padding: 10px 24px;
    }
}


.logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}


.logo img {
    width: auto;
    height: 38px;
    border-radius: 10px;
}


.hdr-nav {
    display: none;
    align-items: center;
    gap: 4px;
}


@media (min-width: 1024px) {

    .hdr-nav {
        display: flex;
    }
}


.hdr-nav a {
    padding: 8px 13px;

    border-radius: 10px;

    color: var(--text2);

    font-size: .86rem;
    font-weight: 600;

    transition:
        color .18s,
        background .18s;
}


.hdr-nav a:hover {
    background: var(--primary-l);
    color: var(--primary);
}


.hdr-btns {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}


.ibtn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;

    color: var(--text2);

    cursor: pointer;

    transition:
        background .18s,
        color .18s,
        border-color .18s,
        transform .12s;
}


.ibtn:hover {
    background: var(--primary-l);
    border-color: var(--primary);
    color: var(--primary);
}


.ibtn:active {
    transform: scale(.94);
}


[data-theme="dark"] .ibtn {
    background: rgba(255, 255, 255, .04);
}


.donate-desktop-btn {
    display: inline-flex !important;
}


/* ============================================
   SEARCH
   ============================================ */

.s-over {
    position: fixed;
    inset: 0;
    z-index: 200;

    background: rgba(2, 6, 23, .46);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .2s,
        visibility .2s;
}


.s-over.on {
    opacity: 1;
    visibility: visible;
}


.s-panel {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    max-height: 80vh;
    overflow-y: auto;

    padding: 16px;

    background: var(--bg2);
    border-radius: 0 0 var(--radius) var(--radius);

    box-shadow: var(--shadow-lg);

    transform: translateY(-100%);

    transition: transform .3s cubic-bezier(.32, .72, 0, 1);
}


.s-over.on .s-panel {
    transform: translateY(0);
}


.s-bar {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 14px;

    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;

    transition: border-color .2s;
}


.s-bar:focus-within {
    border-color: var(--primary);
}


.s-bar i {
    flex-shrink: 0;
    color: var(--text3);
}


.s-bar input {
    flex: 1;

    min-width: 0;

    background: transparent;
    border: 0;
    outline: 0;

    color: var(--text);

    font-size: .88rem;
}


.s-bar input::placeholder {
    color: var(--text3);
}


.s-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 14px;
}


.s-chip {
    padding: 6px 13px;

    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text2);

    font-size: .73rem;
    font-weight: 500;

    cursor: pointer;

    transition:
        color .15s,
        background .15s,
        border-color .15s;
}


.s-chip:hover {
    background: var(--accent-l);
    border-color: var(--accent);
    color: var(--accent-d);
}


.s-res {
    margin-top: 10px;
}


.s-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 10px;

    border-radius: 10px;

    transition: background .15s;
}


.s-item:hover {
    background: var(--bg3);
}


.s-item .si {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    background: var(--primary-l);
    border-radius: 10px;

    color: var(--primary);
}


.s-item h4 {
    margin-bottom: 2px;

    font-size: .84rem;
    font-weight: 700;
}


.s-item p {
    color: var(--text3);

    font-size: .7rem;
    line-height: 1.5;
}


.s-empty {
    padding: 26px;

    color: var(--text3);

    text-align: center;
    font-size: .8rem;
}


/* ============================================
   HERO
   ============================================ */

.hero {
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 16px 12px;
}


.hero h1 {
    margin-bottom: 6px;

    color: var(--text);

    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.5;
}


.hero-sub {
    margin-bottom: 16px;

    color: var(--text2);

    font-size: .84rem;
    line-height: 1.8;
}


.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 16px;

    overflow: hidden;

    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: var(--shadow-sm);

    cursor: pointer;

    transition:
        border-color .18s,
        box-shadow .18s;
}


.hero-search:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}


.hero-search i {
    color: var(--primary);

    font-size: 1.05rem;
}


.hero-search span {
    display: inline-block;

    width: 220px;

    overflow: hidden;

    color: var(--text3);

    font-size: .82rem;

    white-space: nowrap;
}


@media (min-width: 768px) {

    .hero {
        padding: 40px 24px 24px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }
}


/* ============================================
   POPULAR TOOLS
   ============================================ */

.popular-banner {
    max-width: 1320px;
    min-height: 250px;

    margin: 8px auto 0;
    padding: 0 16px;
}


@media (min-width: 768px) {

    .popular-banner {
        min-height: 180px;

        margin-top: 12px;
        padding: 0 24px;
    }
}


.popular-wrap {
    position: relative;

    min-height: 200px;

    padding: 22px 18px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0f1f4a 0%,
            #16285c 45%,
            #1a2e62 100%
        );

    border-radius: var(--radius);
}


.popular-head {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}


.popular-head h2 {
    color: rgba(255, 255, 255, .88);

    font-size: .92rem;
    font-weight: 800;
}


.popular-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}


@media (min-width: 640px) {

    .popular-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }
}


.popular-card {
    position: relative;

    overflow: hidden;

    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;

    text-align: center;

    transition:
        background .18s,
        border-color .18s,
        transform .18s;
}


.popular-card:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}


.popular-card-link {
    display: block;

    width: 100%;
    height: 100%;

    padding: 14px 10px;

    border-radius: inherit;
}


.popular-card .p-ic {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin: 0 auto 8px;

    background: rgba(255, 255, 255, .10);
    border-radius: 11px;

    color: rgba(255, 255, 255, .9);
}


.popular-card .tool-title {
    display: block;

    margin-bottom: 3px;

    color: #fff;

    font-size: .86rem;
    font-weight: 800;
    line-height: 1.5;
}


.popular-card p {
    color: rgba(255, 255, 255, .7);

    font-size: .64rem;
    line-height: 1.5;
}


.popular-card .tc-fav {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    padding: 0;

    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;

    color: rgba(255, 255, 255, .68);

    font-size: .7rem;

    cursor: pointer;

    transition:
        background .15s,
        color .15s,
        transform .15s;
}


.popular-card .tc-fav:hover,
.popular-card .tc-fav.on {
    background: rgba(244, 63, 94, .18);
    color: #fb7185;
}


.popular-card .tc-fav:active {
    transform: scale(.92);
}


/* ============================================
   FILTER
   ============================================ */

.filter-bar {
    display: flex;
    gap: 6px;

    max-width: 1320px;

    margin: 0 auto;
    padding: 18px 16px 14px;

    overflow-x: auto;

    scrollbar-width: none;

    scroll-behavior: smooth;
}


.filter-bar::-webkit-scrollbar {
    display: none;
}


.filter-btn {
    flex-shrink: 0;

    padding: 8px 16px;

    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 999px;

    box-shadow: var(--shadow-sm);

    color: var(--text2);

    font-size: .78rem;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background .18s,
        border-color .18s,
        color .18s;
}


.filter-btn:hover {
    background: var(--primary-l);
    border-color: var(--primary);
    color: var(--primary);
}


.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}


#filterBar {
    scroll-margin-top: 80px;
}


/* ============================================
   TOOL SECTIONS
   ============================================ */

.sec {
    max-width: 1320px;

    margin: 0 auto;
    padding: 0 16px;
}


@media (min-width: 768px) {

    .sec {
        padding: 0 24px;
    }
}


.sec-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 24px;
    margin-bottom: 10px;
}


.sec-title h2 {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--text);

    font-size: .92rem;
    font-weight: 800;
}


.sec-title h2 .dot {
    flex-shrink: 0;

    width: 8px;
    height: 8px;

    border-radius: 50%;
}


.tg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}


@media (min-width: 640px) {

    .tg {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}


@media (min-width: 768px) {

    .tg {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


@media (min-width: 1024px) {

    .tg {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}


@media (min-width: 1280px) {

    .tg {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}


/* ============================================
   TOOL CARD
   ============================================ */

.tc {
    position: relative;

    min-width: 0;

    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        border-color .18s,
        box-shadow .18s,
        transform .18s;
}


.tc:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}


.tc-link {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    height: 100%;

    padding: 18px 10px 14px;

    border-radius: inherit;

    text-align: center;
}


.tc .ic {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin: 0 auto 10px;

    background: var(--primary-l);
    border-radius: 14px;

    color: var(--primary);
}


.tc .ic i {
    font-size: 1.18rem;
}


.tc .tool-title {
    display: block;

    margin-bottom: 3px;

    color: var(--text);

    font-size: .79rem;
    font-weight: 700;
    line-height: 1.5;
}


.tc p {
    display: -webkit-box;

    overflow: hidden;

    color: var(--text3);

    font-size: .67rem;
    line-height: 1.5;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


.tc .tc-fav {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    background: var(--bg3);
    border: 1px solid transparent;
    border-radius: 50%;

    color: var(--text3);

    font-size: .82rem;

    cursor: pointer;

    transition:
        color .15s,
        background .15s,
        transform .15s;
}


.tc .tc-fav:hover {
    color: #f43f5e;
}


.tc .tc-fav.on {
    background: #fff1f2;
    color: #f43f5e;
}


[data-theme="dark"] .tc .tc-fav.on {
    background: #4c0519;
}


.tc .tc-fav:active {
    transform: scale(.92);
}


/* ============================================
   FAVORITES
   ============================================ */

.fav-scroll {
    display: flex;
    gap: 10px;

    overflow-x: auto;

    padding-bottom: 6px;

    scrollbar-width: none;
}


.fav-scroll::-webkit-scrollbar {
    display: none;
}


.fav-card {
    flex-shrink: 0;

    width: 130px;

    padding: 14px 10px;

    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: var(--shadow-sm);

    text-align: center;

    transition:
        border-color .18s,
        transform .18s;
}


.fav-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}


.fav-card .f-ic {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0 auto 8px;

    background: var(--primary-l);
    border-radius: 12px;

    color: var(--primary);
}


.fav-card .tool-title {
    display: block;

    font-size: .74rem;
    font-weight: 700;
    line-height: 1.4;
}


/* ============================================
   SEO CONTENT
   ============================================ */

.seo-content-section {
    margin-top: 28px;
    padding: 32px 20px;

    background: var(--bg2);
    border-top: 1px solid var(--border);
}


.seo-content {
    max-width: 1200px;
    margin: 0 auto;

    color: var(--text2);

    direction: rtl;
    text-align: right;

    line-height: 2;
}


.seo-content h2 {
    margin-top: .8em;
    margin-bottom: 12px;

    color: var(--text);

    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.6;
}


.seo-content h3 {
    margin: .9em 0 .35em;

    color: var(--text);

    font-size: 1.08rem;
    font-weight: 700;
}


.seo-content p {
    margin-bottom: 10px;

    color: var(--text2);

    font-size: .9rem;
    line-height: 2;
}


.seo-content .faq-item {
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 14px 16px;

    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}


@media (min-width: 768px) {

    .seo-content-section {
        padding: 40px 24px;
    }

    .seo-content h2 {
        font-size: 1.55rem;
    }
}


/* ============================================
   FOOTER
   ============================================ */

.ft-wrapper {
    max-width: 1320px;

    margin: 0 auto;
    padding: 34px 16px 20px;
}


@media (min-width: 768px) {

    .ft-wrapper {
        padding: 42px 24px 30px;
    }
}


@media (max-width: 767px) {

    .ft-wrapper {
        padding-bottom: 110px;
    }
}


.ft {
    position: relative;

    overflow: hidden;

    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}


.ft::before {
    content: '';

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--accent)
        );
}


.ft-in {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;

    padding: 26px 22px 20px;
}


@media (min-width: 768px) {

    .ft-in {
        grid-template-columns:
            minmax(0, 1.6fr)
            minmax(150px, .8fr)
            minmax(150px, .8fr);

        gap: 36px;

        padding: 30px 32px 22px;
    }
}


.ft-about {
    min-width: 0;
}


.ft-brand {
    display: inline-flex;
    align-items: center;

    margin-bottom: 10px;

    border-radius: 10px;
}


.ft-brand img {
    width: 128px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.ft-desc {
    max-width: 390px;

    color: var(--text2);

    font-size: .75rem;
    line-height: 1.9;
}


.ft-title {
    position: relative;

    margin: 0 0 10px;
    padding-right: 12px;

    color: var(--text);

    font-size: .95rem;
    font-weight: 700;
    line-height: 1.5;
}


.ft-title::before {
    content: '';

    position: absolute;
    top: 50%;
    right: 0;

    width: 3px;
    height: 13px;

    background: var(--accent);
    border-radius: 3px;

    transform: translateY(-50%);
}


.ft-links {
    display: grid;
    gap: 0;
}


.ft-col a {
    display: inline-flex;
    align-items: center;

    width: fit-content;
    min-height: 28px;

    margin-right: -6px;
    padding: 4px 6px;

    border-radius: 7px;

    color: var(--text2);

    font-size: .72rem;
    line-height: 1.5;

    transition:
        color .15s,
        background .15s,
        transform .15s;
}


.ft-col a:hover {
    background: var(--primary-l);
    color: var(--primary);

    transform: translateX(-2px);
}


/* ============================================
   FOOTER BADGES
   ============================================ */

.ft-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 14px !important;

    width: 100% !important;

    padding: 18px 22px !important;

    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .ft-badges {
        padding: 18px 32px !important;
    }
}


/* خود ظرف هر نماد هیچ کادر اضافه‌ای ندارد */
.ft-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: auto !important;

    min-width: 0 !important;
    min-height: 0 !important;

    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
}


/* اینماد: همان ظاهر فعلی با کادر */
.ft-badge a[href*="trustseal.enamad.ir"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 88px !important;
    height: 82px !important;

    padding: 8px !important;

    background: var(--bg3) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
}

.ft-badge a[href*="trustseal.enamad.ir"] img {
    width: auto !important;
    max-width: 70px !important;
    max-height: 68px !important;

    object-fit: contain !important;
}


/* زیبال: بدون کادر و کمی بزرگ‌تر */
.ft-badge a[href*="gateway.zibal.ir"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
}

.ft-badge a[href*="gateway.zibal.ir"] img {
    width: auto !important;
    max-width: 80px !important;
    max-height: 74px !important;

    object-fit: contain !important;
}


/* ============================================
   FOOTER BOTTOM
   ============================================ */

.ft-bot {
    padding: 12px 20px;

    background: var(--bg3);
    border-top: 1px solid var(--border);

    color: var(--text2);

    text-align: center;

    font-size: .68rem;
    line-height: 1.8;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */

.bnav {
    position: fixed;
    bottom: calc(16px + var(--safe-b));
    left: 50%;
    z-index: 100;

    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;

    width: calc(100% - 32px);
    max-width: 390px;

    padding: 5px 6px;

    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--border);
    border-radius: 24px;

    box-shadow:
        0 8px 32px
        rgba(15, 23, 42, .12);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transform: translateX(-50%);
}


[data-theme="dark"] .bnav {
    background: rgba(17, 25, 54, .95);

    box-shadow:
        0 8px 32px
        rgba(0, 0, 0, .45);
}


.bn {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    min-width: 52px;
    min-height: 48px;

    padding: 6px 8px;

    background: transparent;
    border-radius: 16px;

    color: var(--text3);

    font-size: .57rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .15s,
        color .15s,
        transform .12s;
}


.bn:hover {
    background: var(--bg3);
    color: var(--text2);
}


.bn.on,
.bn[aria-current="page"] {
    background: var(--primary-l);
    color: var(--primary);
}


.bn:active {
    transform: scale(.96);
}


.bn i {
    margin-bottom: 1px;

    font-size: 1.05rem;
}


@media (min-width: 768px) {

    .bnav {
        display: none;
    }
}


/* ============================================
   BACK TO TOP
   ============================================ */

.btt {
    position: fixed;
    right: 16px;
    bottom: calc(104px + var(--safe-b));
    z-index: 80;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    background: var(--primary);
    border-radius: 50%;

    box-shadow:
        0 5px 18px
        rgba(30, 64, 255, .3);

    color: #fff;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity .2s,
        visibility .2s,
        transform .2s,
        background .15s;
}


.btt.vis {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


.btt:hover {
    background: var(--primary-d);
}


@media (min-width: 768px) {

    .btt {
        right: 24px;
        bottom: 24px;
    }
}


/* ============================================
   KEYBOARD FOCUS
   ============================================ */

.tc-link:focus-visible,
.popular-card-link:focus-visible,
.fav-card:focus-visible {
    border-radius: inherit;

    outline: 2px solid var(--primary);
    outline-offset: 3px;
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}