@font-face {
    font-family: "IRANSans";
    src: url("../fonts/IRANSans-Light.woff2") format("woff2");
    font-weight: 300;
    font-display: swap
}

@font-face {
    font-family: "IRANSans";
    src: url("../fonts/IRANSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: "IRANSans";
    src: url("../fonts/IRANSans-Medium.woff2") format("woff2");
    font-weight: 500 600;
    font-display: swap
}

@font-face {
    font-family: "IRANSans";
    src: url("../fonts/IRANSans-Bold.woff2") format("woff2");
    font-weight: 700 900;
    font-display: swap
}

@font-face {
    font-family: "Samim";
    src: url("../fonts/Samim-Regular.woff2") format("woff2");
    font-weight: 300 400;
    font-display: swap
}

@font-face {
    font-family: "Samim";
    src: url("../fonts/Samim-Medium.woff2") format("woff2");
    font-weight: 500 600;
    font-display: swap
}

@font-face {
    font-family: "Samim";
    src: url("../fonts/Samim-Bold.woff2") format("woff2");
    font-weight: 700 900;
    font-display: swap
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --green: #0d5139;
    --green2: #176b4b;
    --green3: #21845d;
    --gold: #c9a65a;
    --cream: #f7f5ec;
    --paper: #fbfaf4;
    --ink: #19352b;
    --muted: #718078;
    --border: #dfe5dc;
    --shadow: 0 12px 35px rgba(20, 55, 42, .09);
    --footer: #102c25;
    --radius: 22px
}

html {
    scroll-behavior: smooth
}

body {
    font-family: "IRANSans", "Vazirmatn", Tahoma, sans-serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .22;
    pointer-events: none;
    background-image: radial-gradient(circle at 10% 20%, #d9d0b5 0 1px, transparent 1px), radial-gradient(circle at 80% 70%, #d9d0b5 0 1px, transparent 1px);
    background-size: 26px 26px
}

html[data-theme=dark] body {
    --paper: #101b17;
    --cream: #14231d;
    --ink: #edf5ef;
    --muted: #aab9b0;
    --border: #2b4037;
    --shadow: 0 14px 35px rgba(0, 0, 0, .28)
}

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

button,
input {
    font: inherit
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 50;
    padding: 0 18px
}

.nav-shell {
    max-width: 900px;
    margin: auto;
    background: linear-gradient(135deg, #0c4934, #126344);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(8, 54, 38, .24);
    padding: 8px 12px
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative
}

.main-nav>a,
.nav-control {
    border: 0;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: .25s
}

.main-nav>a:hover,
.nav-control:hover,
.main-nav>a.active {
    background: rgba(255, 255, 255, .12)
}

.main-nav i {
    font-size: 14px
}

.download-link {
    background: #d2ad60 !important;
    color: #153b2d !important;
    font-weight: 700
}

.brand-mobile,
.mobile-menu-btn {
    display: none
}

.nav-item {
    position: relative;
    display: flex
}

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    color: #17372b;
    min-width: 180px;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
    border: 1px solid #e7e7e0;
    z-index: 60
}

.dropdown.show {
    display: block
}

.dropdown button {
    display: flex;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    gap: 9px;
    align-items: center
}

.dropdown button:hover {
    background: #edf5ef
}

[dir=ltr] .dropdown {
    right: auto;
    left: 0
}

.hero {
    max-width: 1100px;
    margin: 34px auto 20px;
    text-align: center;
    padding: 26px 20px 24px
}

.hero-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px
}

.brand-mark {
    width: 78px;
    height: 78px;
    border-radius: 28px 28px 28px 8px;
    background: linear-gradient(145deg, #0d5139, #21845d);
    color: #e4c77d;
    display: grid;
    place-items: center;
    font-size: 34px;
    box-shadow: 0 12px 30px rgba(13, 81, 57, .18)
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--green)
}

.search-wrap {
    max-width: 650px;
    margin: 30px auto 14px;
    height: 58px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #dddccf;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    box-shadow: 0 10px 30px rgba(45, 62, 50, .08)
}

html[data-theme=dark] .search-wrap {
    background: #182a23;
    border-color: #30483d
}

.search-wrap>i {
    color: var(--green);
    font-size: 18px
}

.search-wrap input {
    border: 0;
    outline: 0;
    background: transparent;
    flex: 1;
    padding: 0 14px;
    color: var(--ink);
    text-align: right
}

.search-wrap button {
    border: 0;
    background: transparent;
    color: #87958d;
    cursor: pointer;
    display: none
}

.search-wrap button.show {
    display: block
}

.view-switcher {
    display: flex;
    justify-content: center;
    gap: 8px
}

.view-btn {
    border: 1px solid var(--green);
    color: var(--green);
    background: transparent;
    border-radius: 22px;
    padding: 9px 18px;
    cursor: pointer;
    transition: .2s
}

.view-btn.active,
.view-btn:hover {
    background: var(--green);
    color: #fff
}

.content-shell {
    max-width: 1200px;
    margin: auto;
    padding: 10px 22px 60px
}

.group-section {
    margin: 28px 0 38px
}

.section-heading {
    display: flex;
    align-items: end;
    gap: 18px;
    margin-bottom: 15px
}

.section-heading>div {
    min-width: max-content
}

.eyebrow {
    font-size: 11px;
    color: var(--green3);
    font-weight: 700
}

.section-heading h2 {
    font-size: 23px;
    margin-top: 3px
}

.heading-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d0d9d2);
    flex: 1;
    margin-bottom: 8px
}

.section-all {
    color: var(--green3);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px
}

.category-card {
    position: relative;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--border);
    border-radius: 20px;
    min-height: 245px;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: .28s;
    overflow: hidden
}

html[data-theme=dark] .category-card {
    background: #172821
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #c7d8cc;
    box-shadow: 0 18px 38px rgba(20, 70, 49, .13)
}

.category-image {
    width: 145px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px
}

.category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center
}

.category-content {
    text-align: center;
    width: 100%
}

.category-content h3 {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 700;
    margin: 4px 0 9px
}

.category-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px
}

.count-pill {
    background: #edf3ed;
    color: var(--green);
    border-radius: 20px;
    padding: 4px 11px
}

.category-arrow {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8f0e9;
    color: var(--green);
    display: grid;
    place-items: center
}

.bookmark {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 30px;
    height: 30px;
    border: 1px solid #d9e2da;
    background: #fff;
    border-radius: 9px;
    color: #547165;
    display: grid;
    place-items: center
}

.bookmark.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green)
}

.all-categories-section {
    margin-top: 20px
}

.search-results-section {
    padding: 15px 0 35px
}

.result-block {
    margin: 25px 0
}

.result-block h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 17px;
    margin-bottom: 14px
}

.zekr-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.zekr-result {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 18px;
    cursor: pointer;
    transition: .2s
}

.zekr-result:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow)
}

.zekr-result .arabic {
    font-family: Amiri, serif;
    font-size: 22px;
    line-height: 2;
    color: var(--ink);
    margin-bottom: 8px
}

.zekr-result .translation {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.zekr-result .source {
    font-size: 11px;
    color: var(--green3);
    margin-top: 10px
}

.empty-box {
    padding: 55px 20px;
    text-align: center;
    color: var(--muted)
}

.empty-box i {
    font-size: 32px;
    color: var(--green3);
    margin-bottom: 12px
}

.empty-box h3 {
    color: var(--ink);
    margin-bottom: 5px
}

.site-footer {
    background: var(--footer);
    color: #e8efe9;
    margin-top: 20px;
    border-radius: 42px 42px 0 0;
    padding: 45px 0 0;
    box-shadow: 0 -15px 35px rgba(0, 0, 0, .08)
}

.footer-shell {
    max-width: 1200px;
    margin: auto;
    padding: 0 28px 35px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 35px
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.footer-title {
    font-weight: 700;
    color: #dfc77f;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    margin-bottom: 8px
}

.footer-about p {
    color: #b8c8bf;
    font-size: 12px;
    line-height: 2.1;
    max-width: 320px
}

.footer-col>a {
    font-size: 12px;
    color: #c5d0ca;
    transition: .2s
}

.footer-col>a:hover {
    color: #e0c87d;
    transform: translateX(-3px)
}

.socials {
    display: flex;
    gap: 8px;
    margin-top: 8px
}

.socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #183b31;
    color: #e0c87d;
    display: grid;
    place-items: center
}

.store-list {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.store {
    height: 38px;
    border: 1px solid #466157;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #e7eee9;
    font-size: 12px
}

.store i {
    color: #dfc77f
}

.contact-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #bdcbc3;
    font-size: 12px;
    line-height: 1.8
}

.contact-row i {
    color: #dfc77f;
    width: 18px;
    margin-top: 3px
}

.footer-bottom {
    border-top: 0px solid #355047;
    max-width: 1140px;
    margin: auto;
    padding: 6px 100px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #91a69c;
    font-size: 11px
}

[dir=ltr] .main-nav {
    direction: ltr
}

[dir=ltr] .search-wrap input {
    text-align: left
}

[dir=ltr] .category-arrow {
    right: auto;
    left: 14px
}

[dir=ltr] .bookmark {
    left: auto;
    right: 13px
}

@media(max-width:1000px) {

    .main-nav>a,
    .nav-control {
        padding: 11px 8px;
        font-size: 12px
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .footer-shell {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:760px) {
    .site-header {
        top: 7px;
        padding: 0 10px
    }

    .nav-shell {
        padding: 8px
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-top: 8px
    }

    .main-nav.open {
        display: flex
    }

    .main-nav>a,
    .nav-control {
        justify-content: flex-start
    }

    .mobile-menu-btn {
        display: grid;
        place-items: center;
        position: absolute;
        left: 18px;
        top: 17px;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 19px;
        z-index: 2
    }

    .brand-mobile {
        display: block;
        color: #e0c77b;
        font-size: 20px;
        margin: 8px 8px
    }

    .nav-item {
        flex-direction: column
    }

    .dropdown {
        position: static;
        width: 100%;
        margin: 3px 0
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero {
        margin-top: 28px;
        padding-top: 20px
    }

    .hero h1 {
        font-size: 30px
    }

    .brand-mark {
        width: 62px;
        height: 62px;
        font-size: 27px
    }

    .zekr-results {
        grid-template-columns: 1fr
    }

    .footer-shell {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column
    }
}

@media(max-width:480px) {
    .content-shell {
        padding-inline: 13px
    }

    .category-grid {
        gap: 11px
    }

    .category-card {
        min-height: 215px;
        padding: 14px 10px
    }

    .category-image {
        width: 115px;
        height: 100px
    }

    .category-content h3 {
        font-size: 14px
    }

    .section-heading {
        gap: 8px
    }

    .section-heading h2 {
        font-size: 19px
    }

    .section-all {
        font-size: 11px
    }

    .search-wrap {
        height: 52px
    }
}

/* ===== Download button ===== */
.main-nav>a.download-link {
    margin-inline-start: auto;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e6c677, #c9a247) !important;
    color: #12372a !important;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(201, 162, 71, .38), inset 0 1px 0 rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .35);
    transition: transform .25s, box-shadow .25s
}

.main-nav>a.download-link i {
    font-size: 13px;
    transition: transform .25s
}

.main-nav>a.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(201, 162, 71, .5), inset 0 1px 0 rgba(255, 255, 255, .6)
}

.main-nav>a.download-link:hover i {
    transform: translateY(2px)
}

/* ===== Section headings ===== */
.group-section .eyebrow {
    display: none
}

.section-heading {
    align-items: center;
    gap: 16px;
    margin-bottom: 20px
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
    margin: 0;
    white-space: nowrap
}

.section-title:before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--gold);
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 0 0 4px rgba(201, 166, 90, .22);
    flex: none
}

.section-heading .heading-line {
    height: 2px;
    margin: 0;
    background: linear-gradient(90deg, transparent, rgba(201, 166, 90, .55), transparent);
    border-radius: 2px
}

.section-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(23, 107, 75, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: var(--green2);
    font-size: 13px;
    font-weight: 600;
    transition: .25s;
    white-space: nowrap
}

.section-all:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 8px 18px rgba(13, 81, 57, .2)
}

.section-all i {
    font-size: 11px;
    transition: transform .25s
}

.section-all:hover i {
    transform: translateX(-3px)
}

[dir=ltr] .section-all i {
    transform: scaleX(-1)
}

[dir=ltr] .section-all:hover i {
    transform: scaleX(-1) translateX(-3px)
}

html[data-theme=dark] .section-all {
    background: rgba(255, 255, 255, .06);
    color: #cfe5d8;
    border-color: rgba(255, 255, 255, .18)
}

html[data-theme=dark] .section-title {
    color: #e7f3ec
}

/* ===== Category cards ===== */
.category-card {
    min-height: 250px;
    padding: 24px 16px 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 250, 246, .92));
    border: 1px solid rgba(201, 166, 90, .28);
    box-shadow: 0 10px 28px rgba(20, 55, 42, .07);
    justify-content: flex-start;
    gap: 14px;
    cursor: pointer
}

.category-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green3), var(--gold));
    opacity: 0;
    transition: .28s
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 166, 90, .6);
    box-shadow: 0 20px 40px rgba(20, 70, 49, .15)
}

.category-card:hover:before {
    opacity: 1
}

html[data-theme=dark] .category-card {
    background: linear-gradient(180deg, #1a2d25, #15251e);
    border-color: rgba(201, 166, 90, .22)
}

.category-image {
    width: 118px;
    height: 118px;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    border: 4px solid #fff;
    outline: 2px solid rgba(201, 166, 90, .65);
    box-shadow: 0 10px 24px rgba(13, 81, 57, .22);
    background: #e9f1ea;
    flex: none;
    transition: transform .35s
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%
}

.category-card:hover .category-image {
    transform: scale(1.06) rotate(-2deg)
}

html[data-theme=dark] .category-image {
    border-color: #1a2d25
}

.category-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 10px
}

.category-content .category-meta {
    margin-top: auto
}

.category-content h3 {
    font-size: 16px;
    line-height: 1.9;
    font-weight: 700;
    margin: 0;
    color: var(--green)
}

html[data-theme=dark] .category-content h3 {
    color: #e7f3ec
}

.count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eaf3ec, #dfece3);
    color: var(--green2);
    font-weight: 600;
    padding: 5px 13px
}

.category-arrow {
    bottom: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    opacity: 0;
    transform: translateX(6px);
    transition: .28s
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: none
}

[dir=ltr] .category-arrow {
    right: auto;
    left: 12px
}

@media(max-width:760px) {
    .section-title {
        font-size: 19px;
        white-space: normal
    }

    .section-all {
        padding: 6px 12px;
        font-size: 12px
    }
}

@media(max-width:480px) {
    .category-card {
        min-height: 215px;
        padding: 18px 10px 14px
    }

    .category-image {
        width: 92px;
        height: 92px
    }

    .section-title {
        font-size: 17px
    }

    .section-title:before {
        width: 8px;
        height: 8px
    }

    .category-arrow {
        display: none
    }
}

@media(max-width:760px) {
    .main-nav>a.download-link {
        margin-inline-start: 0;
        justify-content: center
    }
}

/* hide the browser's built-in clear (x) so only our own button shows */
.search-wrap input[type=search] {
    -webkit-appearance: none;
    appearance: none
}

.search-wrap input[type=search]::-webkit-search-cancel-button,
.search-wrap input[type=search]::-webkit-search-decoration,
.search-wrap input[type=search]::-webkit-search-results-button,
.search-wrap input[type=search]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none
}

.search-wrap input[type=search]::-ms-clear {
    display: none;
    width: 0;
    height: 0
}


/* ===== Category actions & likes ===== */
.category-actions {
    position: absolute;
    top: 13px;
    left: 13px;
    right: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}

.category-action {
    width: 34px;
    height: 34px;
    border: 1px solid #d9e2da;
    background: rgba(255, 255, 255, .96);
    border-radius: 10px;
    color: #547165;
    display: grid;
    place-items: center;
    transition: .22s;
    box-shadow: 0 5px 14px rgba(20, 55, 42, .06);
}

html[data-theme=dark] .category-action {
    background: #1b3028;
    border-color: #385047;
    color: #a9bdb3;
}

.category-action.like-btn {
    cursor: pointer;
    pointer-events: auto;
}

.category-action.like-btn:hover {
    color: #c34d63;
    border-color: #e6b5bf;
    transform: translateY(-2px);
}

.category-action.like-btn.active {
    background: #c34d63;
    border-color: #c34d63;
    color: #fff;
    box-shadow: 0 7px 18px rgba(195, 77, 99, .25);
}

.category-bookmark {
    pointer-events: none;
}

.category-bookmark.inactive {
    opacity: .48;
}

.like-pill {
    background: #f8eef1;
    color: #a4495d;
    border-radius: 20px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

html[data-theme=dark] .like-pill {
    background: #352329;
    color: #e9a8b6;
}

/* ===== Category sorting ===== */
.category-sort-wrap {
    max-width: 1100px;
    margin: 14px auto 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.sort-btn {
    border: 1px solid rgba(23, 107, 75, .28);
    color: var(--green);
    background: rgba(255, 255, 255, .72);
    border-radius: 22px;
    padding: 9px 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    transition: .22s;
    white-space: nowrap;
}

.sort-btn:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    transform: translateY(-1px);
}

.sort-btn.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 7px 18px rgba(13, 81, 57, .16);
}

.sort-btn i {
    font-size: 11px;
}

html[data-theme=dark] .sort-btn {
    background: #172821;
    border-color: #365147;
    color: #a9c4b6;
}

html[data-theme=dark] .sort-btn:hover,
html[data-theme=dark] .sort-btn.active {
    background: var(--green2);
    color: #fff;
    border-color: var(--green2);
}

@media(max-width:760px) {
    .category-sort-wrap {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 2px 2px 8px;
        scrollbar-width: none;
    }

    .category-sort-wrap::-webkit-scrollbar {
        display: none
    }

    .sort-btn {
        flex: none
    }
}

/* ===== Account button ===== */
.account-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-inline-start: 10px
}

.account-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
    transition: .25s
}

.account-icon-btn:hover,
.account-icon-btn[aria-expanded="true"] {
    background: #e1c372;
    color: #12372a;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(225, 195, 114, .25)
}

.account-icon-btn i {
    font-size: 17px
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 330px;
    background: rgba(255, 255, 255, .98);
    color: #17372b;
    border: 1px solid #e2e8e3;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15, 52, 38, .2);
    padding: 12px;
    z-index: 100;
    backdrop-filter: blur(10px)
}

.account-dropdown.show {
    display: block
}

.account-menu-title,
.account-user-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 12px;
    border-bottom: 1px solid #e7ece8
}

.account-menu-title i {
    font-size: 24px;
    color: #1b7251
}

.account-menu-title span {
    font-weight: 800
}

.account-hint {
    font-size: 12px;
    line-height: 1.8;
    color: #718079;
    padding: 4px 8px 8px;
    margin: 0
}

.account-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #244a3a;
    padding: 11px 10px;
    border-radius: 11px;
    cursor: pointer;
    text-align: inherit;
    transition: .2s;
    font-family: inherit
}

.account-menu-item:hover {
    background: #edf5ef;
    color: #0d6b49
}

.account-menu-item i {
    width: 22px;
    text-align: center;
    color: #1d7955
}

.account-menu-item.danger {
    color: #a44d5a
}

.account-menu-item.danger i {
    color: #b45260
}

.account-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8f1ea;
    color: #176b4b
}

.account-user-head strong {
    display: block;
    font-size: 13px
}

.account-user-head small {
    display: block;
    color: #7b8a83;
    font-size: 10px;
    margin-top: 3px;
    direction: ltr;
    text-align: right
}

.account-form-host {
    margin-top: 8px
}

.account-form-card {
    background: #f8fbf8;
    border: 1px solid #e0e9e2;
    border-radius: 14px;
    padding: 12px
}

.account-form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px
}

.account-form-title strong {
    font-size: 14px;
    color: #155d42
}

.account-form-title button {
    border: 0;
    background: transparent;
    color: #728079;
    cursor: pointer;
    font-size: 16px
}

.account-form-card label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 9px
}

.account-form-card label span {
    font-size: 10px;
    color: #607169;
    font-weight: 600
}

.account-form-card input,
.account-form-card select {
    width: 100%;
    height: 38px;
    border: 1px solid #d8e2db;
    border-radius: 9px;
    background: #fff;
    padding: 0 9px;
    outline: 0;
    font-family: inherit;
    color: #1d3d31;
    box-sizing: border-box
}

.account-form-card input:focus,
.account-form-card select:focus {
    border-color: #4e9877;
    box-shadow: 0 0 0 3px rgba(78, 152, 119, .1)
}

.account-form-grid {
    display: grid;
    gap: 7px
}

.account-form-grid.two {
    grid-template-columns: 1fr 1fr
}

.account-form-grid.three {
    grid-template-columns: .7fr 1fr 1.3fr
}

.account-form-card small {
    font-size: 9px;
    color: #8a9891
}

.captcha-row {
    display: grid;
    grid-template-columns: 88px 36px 1fr;
    gap: 6px;
    align-items: center;
    margin: 8px 0
}

.captcha-box {
    height: 36px;
    border: 1px dashed #b9cbbf;
    border-radius: 8px;
    background: #eef5ef;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #176b4b;
    direction: ltr;
    letter-spacing: 1px
}

.captcha-refresh {
    height: 36px;
    border: 1px solid #d4e0d7;
    border-radius: 8px;
    background: #fff;
    color: #38725a;
    cursor: pointer
}

.account-submit {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #176b4b, #0e5139);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 7px
}

.account-message {
    font-size: 11px;
    line-height: 1.7;
    border-radius: 9px;
    padding: 7px 9px;
    margin-bottom: 8px
}

.account-message.error {
    background: #fff0f2;
    color: #a03f4d
}

.account-message.success {
    background: #edf8f0;
    color: #176b4b
}

.account-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 35, 25, .48);
    backdrop-filter: blur(5px);
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 22px
}

.account-modal {
    width: min(1100px, 96vw);
    max-height: 88vh;
    overflow: hidden;
    background: #f9fbf9;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column
}

.account-modal-head {
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e9e4;
    background: #fff
}

.account-modal-head span {
    display: block;
    font-weight: 800;
    color: #176b4b
}

.account-modal-head small {
    display: block;
    font-size: 10px;
    color: #829089;
    margin-top: 3px
}

.account-modal-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef4ef;
    color: #376451;
    cursor: pointer
}

.account-modal-body {
    overflow: auto;
    padding: 20px
}

.account-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.account-loading {
    text-align: center;
    padding: 50px;
    color: #176b4b
}

.account-empty {
    text-align: center;
    padding: 60px 20px;
    color: #78877f
}

.account-empty i {
    font-size: 35px;
    color: #9ab2a4;
    margin-bottom: 10px
}

.account-empty p {
    margin: 0;
    font-size: 13px
}

html[data-theme=dark] .account-dropdown,
html[data-theme=dark] .account-modal-head {
    background: #172821;
    color: #e6f0e9;
    border-color: #365047
}

html[data-theme=dark] .account-hint,
html[data-theme=dark] .account-form-card label span,
html[data-theme=dark] .account-user-head small {
    color: #9cafa6
}

html[data-theme=dark] .account-menu-item {
    color: #d8e7df
}

html[data-theme=dark] .account-menu-item:hover {
    background: #20392e
}

html[data-theme=dark] .account-form-card {
    background: #14231d;
    border-color: #30483d
}

html[data-theme=dark] .account-form-card input,
html[data-theme=dark] .account-form-card select {
    background: #1a2d25;
    border-color: #3b5549;
    color: #e4eee8
}

html[data-theme=dark] .captcha-box {
    background: #1e3429;
    border-color: #426252
}

html[data-theme=dark] .captcha-refresh {
    background: #1a2d25;
    border-color: #3b5549;
    color: #b8d0c2
}

html[data-theme=dark] .account-modal {
    background: #14231d
}

.account-modal .category-card {
    background: linear-gradient(180deg, #fff, #f7faf7)
}

@media(max-width:760px) {
    .account-nav-item {
        margin-inline-start: 6px
    }

    .account-dropdown {
        position: fixed;
        top: 72px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 90px);
        overflow: auto
    }

    .account-form-grid.three {
        grid-template-columns: 1fr 1fr
    }

    .account-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .account-modal {
        max-height: 92vh
    }

    .account-modal-body {
        padding: 13px
    }
}

@media(max-width:480px) {

    .account-form-grid.two,
    .account-form-grid.three {
        grid-template-columns: 1fr
    }

    .captcha-row {
        grid-template-columns: 82px 34px 1fr
    }

    .account-category-grid {
        grid-template-columns: 1fr 1fr
    }
}

.category-action.category-bookmark.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 7px 18px rgba(13, 81, 57, .18)
}

.category-action.category-bookmark.inactive {
    opacity: .48;
    cursor: pointer;
    pointer-events: auto
}

.category-action.category-bookmark:hover {
    opacity: 1;
    color: var(--green);
    transform: translateY(-2px)
}

/* =========================================================
   ZEKR DETAIL VIEW
   ========================================================= */
.zekr-view {
    max-width: 1050px;
    margin: 0 auto;
    padding: 24px 18px 70px
}

.zekr-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px
}

.detail-nav-btn,
.detail-category-btn,
.detail-action,
.nav-zekr-btn,
.repeat-btn,
.read-btn {
    border: 0;
    cursor: pointer;
    font: inherit
}

.detail-nav-btn,
.detail-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border-radius: 14px;
    background: var(--card-bg, #fff);
    color: var(--text, #222);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .07)
}

.detail-nav-btn:hover,
.detail-category-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1)
}

.zekr-category-switch {
    min-width: 0;
    flex: 1
}

.zekr-category-menu {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch
}

.zekr-category-menu::-webkit-scrollbar {
    height: 5px
}

.zekr-category-menu::-webkit-scrollbar-thumb {
    background: rgba(127, 127, 127, .28);
    border-radius: 20px
}

.zekr-category-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 5px 11px 5px 7px;
    border: 1px solid var(--border, #dfe5dc);
    border-radius: 14px;
    background: var(--card-bg, #fff);
    color: var(--text, #222);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .045);
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease
}

.zekr-category-chip img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 9px;
    background: rgba(127, 127, 127, .07);
    padding: 3px
}

.zekr-category-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(0, 0, 0, .08)
}

.zekr-category-chip.active {
    background: var(--green, #0d5139);
    color: #fff;
    border-color: var(--green, #0d5139);
    box-shadow: 0 7px 18px rgba(13, 81, 57, .22)
}

.zekr-category-chip.active img {
    background: rgba(255, 255, 255, .16)
}

.zekr-progress-wrap {
    margin: 0 auto 18px
}

.zekr-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: .88rem;
    opacity: .78;
    margin-bottom: 7px
}

.zekr-progress {
    height: 7px;
    border-radius: 20px;
    background: rgba(127, 127, 127, .16);
    overflow: hidden
}

.zekr-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 20px;
    background: currentColor;
    transition: width .25s ease
}

.zekr-card {
    position: relative;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e7e7e7);
    border-radius: 28px;
    padding: 55px 34px 34px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .08);
    overflow: hidden
}

.zekr-card:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0, rgba(40, 120, 85, .07), transparent 38%)
}

.zekr-card-actions {
    position: absolute;
    top: 16px;
    left: 18px;
    display: flex;
    gap: 7px;
    z-index: 2
}

.detail-action {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(127, 127, 127, .09);
    color: inherit;
    transition: .2s
}

.detail-action:hover {
    transform: translateY(-2px);
    background: rgba(127, 127, 127, .15)
}

.detail-action.active {
    background: rgba(210, 55, 85, .12);
    color: #d23755
}

.zekr-arabic {
    position: relative;
    z-index: 1;
    font-family: Amiri, serif;
    font-size: 2rem;
    line-height: 2.25;
    text-align: center;
    white-space: pre-line;
    margin: 10px auto 25px;
    max-width: 900px
}

.zekr-translation {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    line-height: 2;
    text-align: center;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(127, 127, 127, .055);
    white-space: pre-line
}

.zekr-source {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    text-align: center;
    font-size: .92rem;
    opacity: .72
}

.zekr-source i {
    margin-inline-end: 5px
}

.zekr-audio {
    position: relative;
    z-index: 1;
    margin: 25px auto 0;
    max-width: 900px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(127, 127, 127, .055);
    border: 1px solid rgba(127, 127, 127, .12)
}

.audio-player-row {
    display: grid;
    grid-template-columns: minmax(100px, 135px) minmax(240px, 1fr) minmax(100px, 135px);
    align-items: center;
    gap: 13px
}

.zekr-audio audio {
    width: 100%;
    min-width: 0;
    height: 48px
}

.repeat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 9px 13px;
    border-radius: 13px;
    background: rgba(127, 127, 127, .1);
    color: inherit;
    transition: .2s
}

.repeat-btn:hover {
    transform: translateY(-1px)
}

.repeat-btn.active {
    background: rgba(50, 130, 90, .15);
    box-shadow: inset 0 0 0 1px rgba(50, 130, 90, .18)
}

.speed-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 8px;
    border-radius: 13px;
    background: rgba(127, 127, 127, .08);
    white-space: nowrap
}

.speed-control select {
    border: 0;
    outline: 0;
    border-radius: 9px;
    padding: 7px;
    background: transparent;
    color: inherit;
    font-weight: 700
}

.read-counter {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 24px
}

.read-btn {
    padding: 13px 20px;
    border-radius: 15px;
    background: currentColor;
    color: var(--card-bg, #fff);
    font-weight: 700;
    transition: .2s
}

.read-btn:hover:not(:disabled) {
    transform: translateY(-2px)
}

.read-btn:disabled {
    opacity: .5;
    cursor: not-allowed
}

.read-counter #zekrReadNumber {
    font-variant-numeric: tabular-nums;
    opacity: .75;
    font-weight: 700
}

.zekr-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 0 5px
}

.nav-circle {
    width: 64px;
    height: 64px;
    min-width: 64px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .08)
}

.nav-circle.primary {
    background: var(--green, #0d5139);
    color: #fff;
    border: 1px solid var(--green, #0d5139)
}

.nav-circle.primary:hover:not(:disabled) {
    background: var(--green2, #176b4b);
    border-color: var(--green2, #176b4b)
}

.nav-circle:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12)
}

.nav-zekr-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    box-shadow: none
}

.next-progress-wrap {
    position: relative;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center
}

.next-progress-wrap:after {
    content: attr(data-progress);
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    opacity: .62;
    white-space: nowrap;
    font-variant-numeric: tabular-nums
}

.next-progress-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
    pointer-events: none
}

.next-ring-track,
.next-ring-value {
    fill: none;
    stroke-width: 5
}

.next-ring-track {
    stroke: rgba(127, 127, 127, .16)
}

.next-ring-value {
    stroke: currentColor;
    stroke-linecap: round;
    transition: stroke-dashoffset .25s ease
}

.next-progress-wrap.single-repeat .next-ring-value {
    opacity: .9
}

.next-progress-wrap.single-repeat:after {
    content: "✓"
}

.next-progress-wrap .nav-circle {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    min-width: 60px
}

.detail-loading {
    padding: 70px;
    text-align: center;
    font-size: 1.5rem
}

.zekr-view .empty-box {
    margin-top: 20px
}

@media(max-width:700px) {
    .zekr-view {
        padding: 14px 10px 55px
    }

    .zekr-topbar {
        align-items: center
    }

    .detail-nav-btn,
    .detail-category-btn {
        padding: 10px 11px;
        font-size: .88rem
    }

    .zekr-card {
        padding: 48px 15px 22px;
        border-radius: 20px
    }

    .zekr-arabic {
        font-size: 1.55rem;
        line-height: 2.15
    }

    .zekr-translation {
        font-size: .96rem;
        padding: 14px
    }

    .audio-player-row {
        grid-template-columns: 1fr 1fr;
        gap: 9px
    }

    .audio-player-row audio {
        grid-column: 1 / -1;
        grid-row: 1
    }

    .audio-player-row .repeat-btn {
        grid-column: 1;
        grid-row: 2
    }

    .audio-player-row .speed-control {
        grid-column: 2;
        grid-row: 2
    }

    .zekr-audio {
        padding: 11px
    }

    .zekr-navigation {
        margin-top: 28px;
        padding: 0 2px
    }

    .nav-circle {
        width: 58px;
        height: 58px;
        min-width: 58px
    }

    .next-progress-wrap {
        width: 72px;
        height: 72px
    }

    .next-progress-wrap .nav-circle {
        width: 54px;
        height: 54px;
        min-width: 54px
    }

    .zekr-category-menu {
        min-width: 220px;
        max-width: calc(100vw - 30px)
    }
}

.account-zekr-list {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.account-zekr-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    text-align: start;
    padding: 13px 15px;
    border: 1px solid var(--border, #ddd);
    border-radius: 13px;
    background: transparent;
    color: inherit;
    cursor: pointer
}

.account-zekr-item:hover {
    background: rgba(127, 127, 127, .08)
}

.account-zekr-item strong {
    font-size: .82rem;
    opacity: .7
}

.account-zekr-item span {
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

/* Zekr language-aware alignment */
.zekr-arabic {
    direction: rtl;
    text-align: right
}

.zekr-translation,
.zekr-source {
    direction: inherit;
    text-align: start
}

.zekr-result .arabic {
    direction: rtl;
    text-align: right
}

.zekr-result .translation,
.zekr-result .source {
    text-align: start
}

html[dir="rtl"] .zekr-translation,
html[dir="rtl"] .zekr-source,
html[dir="rtl"] .zekr-result .translation,
html[dir="rtl"] .zekr-result .source {
    text-align: right
}

html[dir="ltr"] .zekr-translation,
html[dir="ltr"] .zekr-source,
html[dir="ltr"] .zekr-result .translation,
html[dir="ltr"] .zekr-result .source {
    text-align: left
}

/* Language flags */
.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex: 0 0 24px;
    border: 1px solid rgba(0, 0, 0, .10);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12)
}

.language-flag-current {
    width: 22px;
    height: 22px;
    flex-basis: 22px
}

#currentLanguage {
    display: flex;
    align-items: center;
    gap: 7px
}

.language-dropdown button {
    align-items: center
}

.contact-row a {
    color: inherit
}

.contact-row a:hover {
    color: #e0c87d
}

.footer-bottom {
    flex-wrap: wrap;
    align-items: center
}

.footer-copyright,
.footer-slogan,
.footer-support {
    line-height: 2
}

.footer-copyright a {
    color: #dfc77f;
    font-weight: 700
}

.footer-copyright a:hover {
    color: #fff
}

.footer-support {
    width: 100%;
    text-align: center;
    padding: 11px 15px;
    margin-top: 2px;
    border: 1px solid #355047;
    border-radius: 12px;
    color: #c9d5cf;
    background: rgba(255, 255, 255, .025)
}

.footer-support i {
    color: #dfc77f;
    margin-left: 5px
}

.footer-support strong {
    color: #dfc77f;
    margin-right: 7px
}

@media(max-width:760px) {
    .footer-bottom {
        align-items: stretch
    }

    .footer-copyright,
    .footer-slogan,
    .footer-support {
        text-align: center
    }
}

/* =========================================
   Responsive Account / Register Form
   ========================================= */

.account-modal,
.account-dialog {
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

.account-form {
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Responsive grid */
.account-form-grid {
    display: grid;
    gap: 14px;
    width: 100%;
}

.account-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tablet */
@media (max-width: 768px) {

    .account-modal,
    .account-dialog {
        max-height: calc(100vh - 20px);
    }

    .account-form {
        max-height: calc(100vh - 65px);
    }

    .account-form-grid.two,
    .account-form-grid.three {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {

    .account-modal,
    .account-dialog {
        width: calc(100% - 20px);
        max-width: none;
        max-height: calc(100vh - 10px);
    }

    .account-form {
        max-height: calc(100vh - 50px);
        padding-right: 4px;
    }

    .account-form-grid {
        grid-template-columns: 1fr !important;
    }

}

.account-modal {
    max-height: calc(100vh - 20px);
    overflow: hidden;
}

.account-form {
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
/* =========================================================
   ACCOUNT FORM - RESPONSIVE SCROLL
   ========================================================= */

/* Dropdown حساب کاربری */
#accountDropdown {
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* وقتی فرم باز است */
body.account-form-open #accountDropdown {
    max-height: calc(100vh - 85px);
    overflow-y: auto;
}

/* میزبان فرم */
.account-form-host {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* خود کارت فرم */
.account-form-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* فرم */
.account-form-card form {
    width: 100%;
    box-sizing: border-box;
}

/* جلوگیری از بیرون‌زدگی inputها */
.account-form-card input,
.account-form-card select,
.account-form-card button {
    max-width: 100%;
    box-sizing: border-box;
}

/* گریدها در صفحه‌های کوچک */
@media (max-width: 700px) {
    #accountDropdown {
        width: min(100vw - 20px, 420px);
        max-height: calc(100vh - 70px);
    }

    .account-form-grid.two,
    .account-form-grid.three {
        grid-template-columns: 1fr;
    }

    .account-form-card {
        max-height: none;
    }
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 480px) {
    #accountDropdown {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 60px);
    }

    .account-form-card {
        padding: 14px;
    }
}

/* موبایل با ارتفاع کم */
@media (max-height: 650px) {
    #accountDropdown {
        max-height: calc(100vh - 50px);
    }
}

.footer-bottom-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.footer-ayah,
.footer-copyright {
    line-height: 1.8;
}

.footer-ayah {
    direction: rtl;
}

.footer-copyright {
    direction: rtl;
}

.footer-copyright a {
    color: inherit;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}
.footer-bottom-line {
    display: flex;
    font-size: 13px;
    align-items: center;
    justify-content: center;
    gap: 150px;
    width: 100%;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.footer-ayah,
.footer-copyright {
    white-space: nowrap;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .footer-bottom-line {
        flex-direction: column;
        gap: 8px;
    }

    .footer-ayah,
    .footer-copyright {
        white-space: normal;
        text-align: center;
    }
}

.footer-languages {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
        margin-right: 25px;
}

.footer-languages button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.footer-languages button:hover {
    transform: translateY(-2px) scale(1.08);
}

.footer-languages img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(128, 128, 128, 0.25);
}

.footer-languages button.active img {
    box-shadow:
        0 0 0 2px var(--primary-color),
        0 3px 10px rgba(0, 0, 0, 0.15);
}