:root {
    --font: "Vazirmatn", "Vazirmatn FD", sans-serif;
    --brand: #1c63b3;
    --brand-2: #1578e3;
    --brand-hover: #1578e3;
    --brand-3: #3d8fef;
    --icon: #1578e3;
    --icon-bg: #e4f1ff;
    --bg-0: #f7fafd;
    --bg-1: #eef5fc;
    --bg-2: #e4f1ff;
    --ink: #112847;
    --ink-muted: #78859a;
    --accent: #1c63b3;
    --accent-soft: rgba(28, 99, 179, 0.12);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-strong: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(17, 40, 71, 0.1);
    --glass-shadow: 0 14px 40px rgba(17, 40, 71, 0.08);
    --card-border: rgba(17, 40, 71, 0.08);
    --chip-bg: rgba(228, 241, 255, 0.7);
    --chip-active: #1c63b3;
    --chip-active-ink: #fff;
    --input-bg: rgba(255, 255, 255, 0.95);
    --shell-width: min(1300px, calc(100% - 1.5rem));
    --header-height: 2.75rem;
}

[data-theme="dark"] {
    --brand: #5aa2f0;
    --brand-2: #6eb0f5;
    --brand-hover: #8cc0f7;
    --brand-3: #8cc0f7;
    --icon: #5aa2f0;
    --bg-0: #0b1524;
    --bg-1: #112033;
    --bg-2: #17304a;
    --ink: #eef4fb;
    --ink-muted: #9aadc2;
    --accent: #5aa2f0;
    --accent-soft: rgba(90, 162, 240, 0.16);
    --glass: rgba(17, 32, 51, 0.72);
    --glass-strong: rgba(17, 32, 51, 0.88);
    --glass-border: rgba(238, 244, 251, 0.1);
    --glass-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
    --card-border: rgba(238, 244, 251, 0.08);
    --chip-bg: rgba(228, 241, 255, 0.08);
    --chip-active: #5aa2f0;
    --chip-active-ink: #0b1524;
    --input-bg: #112033;
    --icon-bg: rgba(228, 241, 255, 0.12);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: var(--font) !important;
}

html { scroll-behavior: smooth; }

body.app-body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font) !important;
    color: var(--ink);
    background:
        radial-gradient(ellipse 65% 50% at 8% -5%, rgba(28, 99, 179, 0.08), transparent 50%),
        radial-gradient(ellipse 55% 45% at 100% 30%, rgba(21, 120, 227, 0.07), transparent 48%),
        linear-gradient(165deg, var(--bg-0), var(--bg-1));
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input,
select,
textarea,
option,
.btn,
.form-control,
.nav-link,
.drawer-link {
    font-family: var(--font) !important;
}

/* دراپ‌داون بومی: آیکن با فاصله از لبهٔ چپ + تم تاریک */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--input-bg);
    color: var(--ink);
    border: 1px solid var(--card-border);
    border-radius: 0.7rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378859a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.85rem center;
    background-size: 0.95rem;
    padding-block: 0.55rem;
    padding-inline-start: 0.85rem;
    padding-inline-end: 2.4rem;
    font: inherit;
    line-height: 1.4;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

[data-theme="dark"] select {
    background-color: var(--input-bg);
    color: var(--ink);
    border-color: rgba(238, 244, 251, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aadc2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

[data-theme="dark"] option,
[data-theme="dark"] optgroup {
    background-color: #112033;
    color: #eef4fb;
}

.glass-bar,
.glass-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    margin: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(17, 40, 71, 0.08);
}

[data-theme="dark"] .site-header {
    background: var(--bg-0);
    border-bottom-color: rgba(238, 244, 251, 0.08);
}

.header-shell {
    width: var(--shell-width);
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    min-height: var(--header-height);
    padding-block: 0.85rem;
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-height);
    padding-block: 0;
    padding-inline: 0.35rem;
    max-width: none;
    width: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 2.4rem;
    width: auto;
}

.logo-img-dark { display: none; }
[data-theme="dark"] .logo-img-light { display: none; }
[data-theme="dark"] .logo-img-dark { display: block; }

.auth-login {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-login:hover { color: var(--brand); }

.auth-cta {
    border-radius: 999px !important;
    padding: 0.5rem 1.15rem !important;
    font-size: 0.95rem !important;
    min-height: 0 !important;
}

.auth-hello {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-hello:hover { color: var(--brand); }

.note-wrap { position: relative; }
.header-tools .note-menu {
    inset-inline-start: 0;
    inset-inline-end: auto;
    left: 0;
    right: auto;
    direction: rtl;
    text-align: right;
}
.note-bell { position: relative; }
.note-badge {
    position: absolute;
    top: 0.15rem;
    inset-inline-end: 0.15rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    line-height: 1rem;
    font-weight: 800;
}
.note-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    inset-inline-end: 0;
    width: min(22rem, 80vw);
    max-height: 24rem;
    overflow: auto;
    padding: 0.4rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(17, 40, 71, 0.08);
    box-shadow: 0 16px 40px rgba(17, 40, 71, 0.12);
    z-index: 30;
}
.note-menu-head,
.note-item {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
}
.note-menu-head { padding: 0.45rem 0.55rem 0.35rem; }
.note-menu-head button {
    border: 0;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}
.note-item {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.45rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(17, 40, 71, 0.08);
    background: #f7fafd;
    text-decoration: none;
    text-align: right;
    color: var(--ink);
}
.note-item strong { font-size: 0.84rem; }
.note-item span { color: var(--ink-muted); font-size: 0.78rem; line-height: 1.6; white-space: pre-line; }
.note-item.is-unread { background: #eef5fc; }
.note-empty { margin: 0.4rem 0.6rem 0.7rem; color: var(--ink-muted); font-size: 0.84rem; }
[data-theme="dark"] .note-menu { background: #112033; border-color: rgba(238, 244, 251, 0.08); }
[data-theme="dark"] .note-item { background: #0b1524; border-color: rgba(238, 244, 251, 0.08); }
[data-theme="dark"] .note-item.is-unread { background: #1a3050; }

.header-start {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-self: start;
}

.header-shell > .logo {
    justify-self: start;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    margin-inline-start: 2.5rem;
    gap: 0.35rem 1.75rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.25rem 0.15rem 0.55rem;
    position: relative;
    transition: color 0.2s ease;
    line-height: 1.35;
}

.nav-link:hover,
.nav-link.is-active { color: var(--ink); }

.nav-link.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-self: end;
    flex-shrink: 0;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    direction: ltr;
}

.account-wrap { position: relative; }
.account-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    inset-inline-start: 0;
    inset-inline-end: auto;
    left: 0;
    right: auto;
    z-index: 60;
    width: min(13.5rem, 78vw);
    padding: 0.4rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(17, 40, 71, 0.08);
    box-shadow: 0 16px 36px rgba(17, 40, 71, 0.14);
    display: grid;
    gap: 0.2rem;
    direction: rtl;
    text-align: right;
}
.account-menu[hidden] { display: none; }
.account-menu-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.15rem 0.15rem 0.45rem;
    padding: 0.55rem 0.45rem 0.7rem;
    border-bottom: 1px solid rgba(28, 99, 179, 0.12);
}
.account-menu-mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(145deg, #1578e3, #3d8fef);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 0 0 3px rgba(28, 99, 179, 0.12);
}
.account-menu-head strong,
.account-menu-head small {
    display: block;
    text-align: start;
}
.account-menu-head strong {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.4;
}
.account-menu-head small {
    margin-top: 0.1rem;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 800;
}
.account-menu-links {
    display: grid;
    gap: 0.15rem;
}
.account-menu-foot {
    margin: 0.35rem 0.15rem 0.1rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(17, 40, 71, 0.08);
}
.account-menu-name {
    margin: 0;
    padding: 0.45rem 0.65rem 0.35rem;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 800;
}
.account-menu-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.75rem;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}
.account-menu-link svg,
.account-menu-link .theme-icon {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    color: var(--ink-muted);
}
.account-menu-link .theme-icon {
    display: none;
    place-items: center;
}
[data-theme="light"] .account-menu-link .theme-icon-moon,
[data-theme="dark"] .account-menu-link .theme-icon-sun {
    display: inline-grid;
}
.account-menu-link .theme-icon svg { width: 1rem; height: 1rem; }
.account-menu-link:hover svg,
.account-menu-link:hover .theme-icon { color: var(--brand); }
.account-menu-link.is-danger:hover svg { color: #991b1b; }
.account-menu-link:hover { background: #eef5fc; color: var(--brand); }
.account-menu-link.is-danger { color: #b42318; }
.account-menu-link.is-danger:hover { background: #fde8e8; color: #991b1b; }
.account-menu form { margin: 0; }
[data-theme="dark"] .account-menu {
    background: #112033;
    border-color: rgba(238, 244, 251, 0.08);
}
[data-theme="dark"] .account-menu-head,
[data-theme="dark"] .account-menu-foot {
    border-color: rgba(140, 192, 247, 0.16);
}
[data-theme="dark"] .account-menu-mark {
    box-shadow: 0 0 0 3px rgba(90, 162, 240, 0.16);
}
[data-theme="dark"] .account-menu-link:hover { background: #1a3050; color: #8ec2ff; }
[data-theme="dark"] .account-menu-link.is-danger:hover { background: #2a1620; color: #fca5a5; }

.header-mobile-only { display: none !important; }
.header-desktop-only,
.d-contents { display: inline-flex; }

.auth-link {
    color: var(--ink-muted);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover { color: var(--ink); }

.menu-toggle {
    display: none !important;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(8, 18, 32, 0.28);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.drawer-overlay[hidden] { display: none; }

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 130;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(19.5rem, 86vw);
    height: 100dvh;
    padding: 1.1rem 1rem 1.25rem;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(228, 241, 255, 0.5)),
        rgba(255, 255, 255, 0.42);
    border-inline-start: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        -18px 0 48px rgba(17, 40, 71, 0.16),
        inset 1px 0 0 rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(28px) saturate(1.45);
    -webkit-backdrop-filter: blur(28px) saturate(1.45);
    transform: translateX(110%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    overscroll-behavior: contain;
}
.mobile-drawer.is-open { transform: translateX(0); }

[data-theme="dark"] .drawer-overlay {
    background: rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .mobile-drawer {
    background:
        linear-gradient(165deg, rgba(28, 99, 179, 0.22), rgba(17, 32, 51, 0.72)),
        rgba(11, 21, 36, 0.55);
    border-inline-start-color: rgba(140, 192, 247, 0.18);
    box-shadow:
        -18px 0 48px rgba(0, 0, 0, 0.45),
        inset 1px 0 0 rgba(255, 255, 255, 0.06);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(17, 40, 71, 0.08);
}
[data-theme="dark"] .drawer-head { border-bottom-color: rgba(238, 244, 251, 0.1); }

.drawer-brand .logo-img { height: 2.15rem; width: auto; }

.drawer-close {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(17, 40, 71, 0.08);
}
[data-theme="dark"] .drawer-close {
    background: rgba(238, 244, 251, 0.08);
    border-color: rgba(238, 244, 251, 0.12);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.drawer-nav::-webkit-scrollbar { display: none; }

.drawer-link {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.drawer-link:hover,
.drawer-link.is-active {
    background: rgba(28, 99, 179, 0.12);
    border-color: rgba(28, 99, 179, 0.22);
    color: var(--brand);
    transform: translateX(-2px);
}
[data-theme="dark"] .drawer-link {
    background: rgba(238, 244, 251, 0.04);
}
[data-theme="dark"] .drawer-link:hover,
[data-theme="dark"] .drawer-link.is-active {
    background: rgba(90, 162, 240, 0.14);
    border-color: rgba(140, 192, 247, 0.22);
    color: #8cc0f7;
}

.nav-link.is-active::after {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.drawer-foot {
    display: grid;
    gap: 0.6rem;
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(17, 40, 71, 0.08);
}
.drawer-foot .btn-post-ad,
.drawer-foot .btn-ghost,
.drawer-foot .btn-cta {
    min-height: 3rem;
    font-size: 0.95rem;
    border-radius: 0.95rem;
    font-weight: 800;
}
.drawer-foot .btn-ghost {
    border: 1px solid rgba(153, 27, 27, 0.35);
    color: #b42318;
}
.drawer-foot form { margin: 0; }
.drawer-foot .w-100 { width: 100%; }
[data-theme="dark"] .drawer-foot { border-top-color: rgba(238, 244, 251, 0.1); }
[data-theme="dark"] .drawer-foot .btn-ghost { color: #fca5a5; border-color: rgba(252, 165, 165, 0.4); }

.drawer-install {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 3rem;
    border: 0;
    border-radius: 0.95rem;
    background: #1c63b3;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}
.drawer-install:hover { background: #164f90; }
@media (display-mode: standalone) {
    .drawer-install { display: none; }
}

body.install-sheet-open { overflow: hidden; }

.install-sheet-scrim {
    position: fixed;
    z-index: 150;
    inset: 0;
    border: 0;
    background: rgba(7, 18, 32, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s ease;
}
.install-sheet.is-open .install-sheet-scrim {
    opacity: 1;
    pointer-events: auto;
}
.install-sheet-panel {
    position: fixed;
    z-index: 151;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(32rem, 100%);
    margin-inline: auto;
    max-height: min(36rem, calc(100dvh - var(--header-height, 3.5rem)));
    overflow: hidden;
    border-radius: 1.35rem 1.35rem 0 0;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 -18px 48px rgba(17, 40, 71, 0.22);
    transform: translate3d(0, 110%, 0);
    transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}
.install-sheet.is-open .install-sheet-panel { transform: translate3d(0, 0, 0); }
.install-sheet-hero {
    position: relative;
    flex-shrink: 0;
    padding: 1.15rem 1.1rem 1.15rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(61, 143, 239, 0.45), transparent 46%),
        linear-gradient(145deg, #0d213c, #1c63b3 72%);
    color: #fff;
}
.install-sheet-grip {
    display: block;
    width: 2.6rem;
    height: 0.28rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}
.install-sheet-close {
    position: absolute;
    top: 0.85rem;
    inset-inline-end: 0.85rem;
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.install-sheet-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-inline-end: 2.4rem;
}
.install-sheet-brand img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.95rem;
    box-shadow: 0 8px 18px rgba(7, 18, 32, 0.22);
}
.install-sheet-brand h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}
.install-sheet-brand p {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    line-height: 1.6;
}
.install-sheet-body {
    display: grid;
    gap: 0.7rem;
    padding: 0.95rem 1rem max(1.15rem, env(safe-area-inset-bottom));
    overflow: auto;
    background: #f7fbff;
}
.install-sheet-done {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
    background: #fff;
    color: var(--ink);
    line-height: 1.7;
}
.install-steps[hidden] { display: none; }
.install-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}
.install-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.8rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(28, 99, 179, 0.1);
    box-shadow: 0 8px 18px rgba(17, 40, 71, 0.04);
}
.install-no {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(28, 99, 179, 0.1);
    color: #1c63b3;
    font-weight: 800;
    font-size: 0.86rem;
}
.install-steps strong {
    display: block;
    font-size: 0.95rem;
}
.install-steps li div > span,
.install-steps li div > span b {
    color: var(--ink-muted);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.65;
}
.install-native {
    min-height: 3rem;
    border: 0;
    border-radius: 0.95rem;
    background: #1c63b3;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.install-native:hover { background: #164f90; }
.pwa-desktop {
    position: fixed;
    z-index: 160;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: #f4f8fc;
}
.pwa-desktop p {
    max-width: 28rem;
    margin: 0;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.9;
    color: #112033;
}
[data-theme="dark"] .pwa-desktop { background: #0b1524; }
[data-theme="dark"] .pwa-desktop p { color: #eef4fb; }
[data-theme="dark"] .install-sheet-panel { background: #112033; }
[data-theme="dark"] .install-sheet-body { background: #0b1524; }
[data-theme="dark"] .install-sheet-done,
[data-theme="dark"] .install-steps li {
    background: #112033;
    border-color: rgba(140, 192, 247, 0.16);
    color: var(--ink);
}
[data-theme="dark"] .install-no { background: rgba(140, 192, 247, 0.14); color: #8cc0f7; }
@media (prefers-reduced-motion: reduce) {
    .install-sheet-panel,
    .install-sheet-scrim { transition: none; }
}

body.drawer-open { overflow: hidden; }

.feature-icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    background: var(--icon-bg);
    color: var(--icon);
    margin-bottom: 0.85rem;
}

.feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.page-path-wrap,
.page-shell,
body.app-body > main .container,
body.app-body .footer-shell {
    width: var(--shell-width);
    max-width: var(--shell-width);
    margin-inline: auto;
}

.page-path-wrap { padding-top: 0.9rem; }

.brief-path { margin: 0; }
.brief-path ol {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.brief-path ol::-webkit-scrollbar { display: none; width: 0; height: 0; }
.brief-path li {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
}
.brief-path li + li::before {
    content: "/";
    margin-inline: 0.3rem;
    color: rgba(28, 99, 179, 0.4);
    font-weight: 500;
}
.brief-path a,
.brief-path li span {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.brief-path a:hover { color: var(--brand); }
.brief-path svg {
    width: 0.78rem;
    height: 0.78rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.brief-path li[aria-current="page"] { color: var(--brand); }
[data-theme="dark"] .brief-path li + li::before { color: rgba(140, 192, 247, 0.35); }
[data-theme="dark"] .brief-path a:hover,
[data-theme="dark"] .brief-path li[aria-current="page"] { color: #8cc0f7; }

.page-shell {
    padding: 1.75rem 0 2.5rem;
}

.page-hero {
    border-radius: 1.35rem;
    padding: 1.5rem 1.35rem;
    margin-bottom: 1rem;
}

.page-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page-card,
.about-story {
    border-radius: 1.2rem;
    padding: 1.2rem;
}

.page-card h2,
.about-story h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.page-card p,
.about-story p {
    margin: 0;
    color: var(--ink-muted);
    line-height: 1.8;
}

.about-story { margin-top: 1rem; }

.icon-btn,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    border: 1px solid var(--glass-border);
    background: var(--chip-bg);
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
}

.icon-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    transition: transform 0.2s ease;
}

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

.btn-ghost {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.theme-icon { display: none; line-height: 0; }
[data-theme="light"] .theme-icon-moon,
[data-theme="dark"] .theme-icon-sun { display: block; }

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff !important;
    font-family: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 0.7rem 1.25rem;
    box-shadow: 0 10px 28px rgba(28, 99, 179, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.05); color: #fff !important; }

.btn-post-ad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 0;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #12824a, #1fa866);
    color: #fff !important;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    padding: 0.55rem 0.95rem;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(18, 130, 74, 0.24);
}
.btn-post-ad:hover { filter: brightness(1.06); color: #fff !important; }
.header-actions .btn-post-ad { flex: 0 0 auto; }

.btn-ghost-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--glass-border);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    background: var(--chip-bg);
}

.auth-cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.86rem;
}

.site-footer {
    position: relative;
    margin-top: 5.5rem;
    color: #c6d5e8;
    background:
        radial-gradient(55% 70% at 100% 0%, rgba(90, 162, 240, 0.2), transparent 60%),
        radial-gradient(45% 60% at 0% 100%, rgba(31, 168, 102, 0.1), transparent 60%),
        linear-gradient(180deg, #0f2744, #0a1a2f);
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.footer-shell {
    position: relative;
    width: var(--shell-width);
    margin-inline: auto;
    padding: 0 0 1.1rem;
    display: grid;
    gap: 2rem;
}

.footer-invite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: -2.6rem;
    padding: 1.35rem 1.6rem;
    border-radius: 1.4rem;
    background:
        radial-gradient(60% 120% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
        linear-gradient(135deg, #1c63b3, #2f86d8);
    box-shadow: 0 22px 48px rgba(10, 30, 60, 0.35);
    color: #fff;
}
.footer-invite-kicker {
    margin: 0 0 0.25rem;
    font-family: "Dastnevis", "Vazirmatn", sans-serif;
    font-size: 1.15rem;
    opacity: 0.9;
}
.footer-invite h2 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.7;
}
.footer-invite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    flex: 0 0 auto;
}
.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    padding: 0 1.15rem;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}
.footer-btn:hover { transform: translateY(-2px); }
.footer-btn.is-solid {
    background: #fff;
    color: #12824a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}
.footer-btn.is-solid:hover { color: #0e6b3c; }
.footer-btn.is-line {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}
.footer-btn.is-line:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.footer-main {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 1.5fr);
    gap: 1.5rem 3rem;
    align-items: start;
}
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { height: 2.8rem; width: auto; }
.footer-lead {
    margin: 0.85rem 0 0;
    max-width: 23rem;
    color: #a9bdd6;
    line-height: 1.95;
    font-size: 0.9rem;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.footer-nav h3 {
    position: relative;
    margin: 0 0 0.9rem;
    padding-bottom: 0.55rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
}
.footer-nav h3::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 1.6rem;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, #1fa866, #5aa2f0);
}
.footer-nav a {
    display: block;
    width: fit-content;
    margin: 0 0 0.55rem;
    color: #a9bdd6;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-nav a:last-child { margin-bottom: 0; }
.footer-nav a:hover { color: #fff; transform: translateX(-3px); }

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 1.1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-tags a {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c6d5e8;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-tags a:hover {
    background: rgba(90, 162, 240, 0.18);
    border-color: rgba(140, 192, 247, 0.45);
    color: #fff;
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bar p {
    margin: 0;
    color: #8ea5c2;
    font-size: 0.8rem;
    font-weight: 600;
}
.footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #c6d5e8;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.footer-top-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.footer-enamad {
    display: flex;
    justify-content: center;
    line-height: 0;
}
.footer-enamad a { display: inline-flex; }
.footer-enamad img {
    height: 5rem;
    width: auto;
    max-width: 7.5rem;
    object-fit: contain;
    border-radius: 0.7rem;
    background: #fff;
    padding: 0.3rem;
}

[data-theme="dark"] .site-footer {
    background:
        radial-gradient(55% 70% at 100% 0%, rgba(90, 162, 240, 0.14), transparent 60%),
        radial-gradient(45% 60% at 0% 100%, rgba(31, 168, 102, 0.08), transparent 60%),
        linear-gradient(180deg, #0c1a2c, #070f1b);
    border-top: 1px solid rgba(140, 192, 247, 0.1);
}
[data-theme="dark"] .footer-invite {
    background:
        radial-gradient(60% 120% at 0% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
        linear-gradient(135deg, #1a5aa3, #2a78c4);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

@media (max-width: 991.98px) {
    .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .site-footer { margin-top: 4.5rem; }
    .footer-shell { gap: 1.6rem; }
    .footer-invite {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.2rem 1.1rem;
    }
    .footer-invite h2 { font-size: 1rem; }
    .footer-invite-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .footer-btn { padding: 0 0.6rem; }
    .footer-brand { text-align: center; }
    .footer-lead { margin-inline: auto; }
    .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
    .footer-nav > div:first-child { grid-column: 1 / -1; }
    .footer-nav > div:first-child h3 { margin-bottom: 0.75rem; }
    .footer-nav > div:first-child a { display: inline-block; margin: 0 0 0.4rem; margin-inline-end: 1rem; }
    .footer-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 0.15rem;
    }
    .footer-tags::-webkit-scrollbar { display: none; }
    .footer-tags a { flex: 0 0 auto; }
    .footer-bar { flex-direction: column; text-align: center; }
}

.toast-stack {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { border-color: rgba(15, 118, 110, 0.35); }
.toast-error { border-color: rgba(194, 65, 12, 0.4); }
.toast-info { border-color: rgba(37, 99, 235, 0.3); }

.confirm-modal[hidden] { display: none; }

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 22, 0.72);
}
[data-theme="dark"] .confirm-modal-backdrop {
    background: rgba(0, 0, 0, 0.86);
}

.confirm-modal-card {
    position: relative;
    width: min(100%, 22rem);
    padding: 1.25rem 1.15rem 1.1rem;
    border-radius: 1.2rem;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(17, 40, 71, 0.18);
}

.confirm-modal-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.confirm-modal-card p {
    margin: 0;
    color: var(--ink-muted);
    line-height: 1.8;
    font-size: 0.92rem;
}

.hold-modal { z-index: 140; }

.hold-count {
    margin: 0.35rem 0 0.9rem;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    color: var(--brand);
}

.confirm-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.confirm-actions button {
    flex: 1;
    min-height: 2.6rem;
    border-radius: 0.8rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.confirm-cancel {
    border: 1px solid var(--glass-border);
    background: var(--chip-bg);
    color: var(--ink);
}

.confirm-ok {
    border: 0;
    background: var(--brand);
    color: #fff;
}

body.confirm-open { overflow: hidden; }

[data-theme="dark"] .confirm-modal-card {
    background: #112033;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
}

.field-label {
    display: block;
    margin: 0.85rem 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.field-input {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid var(--card-border);
    border-radius: 0.85rem;
    background: var(--input-bg);
    color: var(--ink);
    padding: 0.65rem 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.field-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-error { color: #c2410c; font-size: 0.85rem; margin-top: 0.35rem; }

.profession-picker { position: relative; display: grid; gap: 0.45rem; margin-top: 0.35rem; }
.profession-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.profession-chips:empty { display: none; }
.profession-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 0;
    border-radius: 999px;
    background: var(--icon-bg);
    color: var(--brand);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.28rem 0.55rem;
    cursor: pointer;
}
.profession-chip i { font-style: normal; font-weight: 800; color: var(--ink-muted); }
.profession-chip:hover { background: var(--brand); color: #fff; }
.profession-chip:hover i { color: #fff; }
.profession-field { position: relative; }
.profession-input {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid var(--card-border);
    border-radius: 0.85rem;
    background: var(--input-bg);
    color: var(--ink);
    padding: 0.65rem 0.9rem;
    font: inherit;
    font-size: 0.95rem;
    outline: none;
}
.profession-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.profession-menu {
    position: absolute;
    z-index: 30;
    inset-inline: 0;
    top: calc(100% + 0.3rem);
    margin: 0;
    padding: 0.3rem;
    list-style: none;
    border-radius: 0.9rem;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 28px rgba(17, 40, 71, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-height: 14rem;
    overflow: auto;
}
[data-theme="dark"] .profession-menu {
    background: #112033;
    border-color: rgba(238, 244, 251, 0.12);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.profession-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-align: start;
    padding: 0.55rem 0.7rem;
    border-radius: 0.65rem;
    cursor: pointer;
}
.profession-menu button:hover,
.profession-menu button:focus-visible { background: var(--accent-soft); }
.profession-menu .is-empty { padding: 0.55rem 0.7rem; color: var(--ink-muted); font-size: 0.82rem; }
.profession-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.15rem 0 0;
    padding: 0.7rem 0.8rem;
    border-radius: 0.95rem;
    background:
        linear-gradient(135deg, rgba(28, 99, 179, 0.12), rgba(28, 99, 179, 0.04));
    border: 1px solid rgba(28, 99, 179, 0.16);
    border-inline-start: 3px solid var(--brand);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.8;
}
.profession-note[hidden] { display: none; }
.profession-note-mark {
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    margin-top: 0.12rem;
    display: grid;
    place-items: center;
    border-radius: 0.5rem;
    background: var(--brand);
    color: #fff;
}
.profession-note-mark svg { width: 0.9rem; height: 0.9rem; }
[data-theme="dark"] .profession-note {
    background: linear-gradient(135deg, rgba(90, 162, 240, 0.16), rgba(90, 162, 240, 0.05));
    border-color: rgba(140, 192, 247, 0.22);
    border-inline-start-color: #5aa2f0;
}
.profession-hint {
    margin: 0.15rem 0 0;
    color: var(--ink-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}
[data-theme="dark"] .profession-chip { background: #1a2c44; color: #8ec2ff; }
[data-theme="dark"] .profession-menu { background: #112033; border-color: rgba(238, 244, 251, 0.12); }

.link-btn {
    color: var(--accent);
    background: none;
    border: 0;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.role-card {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.85rem;
    border-radius: 0.95rem;
    border: 1px solid var(--card-border);
    background: var(--input-bg);
    cursor: pointer;
}

.role-card strong { display: block; font-size: 0.9rem; }
.role-card small { color: var(--ink-muted); font-size: 0.78rem; line-height: 1.5; }
.role-card input { margin-top: 0.2rem; }

.section-title {
    margin: 0;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 700;
}

.section-meta {
    margin: 0.25rem 0 0;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.talent-card {
    border-radius: 1.2rem;
    padding: 1.15rem;
    transition: transform 0.2s ease;
}

.talent-top {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.avatar {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    background: var(--icon-bg);
    color: var(--icon);
    font-weight: 700;
    flex-shrink: 0;
}

.talent-name { margin: 0; font-size: 1.02rem; font-weight: 700; }
.talent-role { margin: 0.15rem 0 0; color: var(--ink-muted); font-size: 0.84rem; }
.talent-headline {
    margin: 0 0 0.85rem;
    color: var(--ink-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    min-height: 3.1rem;
}

.talent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}

.talent-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--card-border);
    padding-top: 0.75rem;
}

.badge-featured {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    color: var(--ink-muted);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .results-grid { grid-template-columns: 1fr 1fr; }
    .page-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .menu-toggle { display: inline-flex !important; }
    .header-nav { display: none !important; }
    .header-mobile-only { display: inline-flex !important; }
    .header-desktop-only { display: none !important; }
    .header-shell {
        width: var(--shell-width);
        margin-inline: auto;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        flex-wrap: nowrap;
    }
    /* RTL: راست همبرگر، وسط لوگو، چپ اعلان و کاربر */
    .menu-toggle {
        grid-column: 1;
        justify-self: start;
    }
    .header-shell > .logo {
        grid-column: 2;
        justify-self: center;
        max-width: 100%;
    }
    .header-shell > .logo .logo-img {
        max-width: 7.5rem;
        height: auto;
        max-height: 2rem;
    }
    .header-actions {
        grid-column: 3;
        justify-self: end;
        min-width: 0;
    }
    .header-tools {
        flex-wrap: nowrap;
        gap: 0.55rem;
    }
    .site-header .icon-btn {
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 0.8rem;
    }
    .site-header .icon-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    .site-header .note-badge {
        top: 0.2rem;
        inset-inline-end: 0.2rem;
        min-width: 1.05rem;
        height: 1.05rem;
        font-size: 0.68rem;
        line-height: 1.05rem;
    }
    .d-contents { display: none !important; }
    .header-actions .btn-post-ad {
        height: 2.45rem;
        padding: 0 0.75rem !important;
        border-radius: 0.8rem;
        font-size: 0.78rem !important;
        box-shadow: none;
        white-space: nowrap;
    }
    .header-actions .auth-cta {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.78rem !important;
        white-space: nowrap;
    }
    .header-tools .note-menu,
    .header-tools .account-menu {
        inset-inline-start: 0;
        inset-inline-end: auto;
        left: 0;
        right: auto;
        background:
            linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(228, 241, 255, 0.5)),
            rgba(255, 255, 255, 0.42);
        border: 1px solid rgba(255, 255, 255, 0.55);
        box-shadow:
            0 16px 40px rgba(17, 40, 71, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(28px) saturate(1.45);
        -webkit-backdrop-filter: blur(28px) saturate(1.45);
    }
    .header-tools .note-menu-head strong {
        font-size: 0.95rem;
    }
    .header-tools .note-menu-head button {
        font-size: 0.84rem;
    }
    .header-tools .note-item strong {
        font-size: 0.92rem;
    }
    .header-tools .note-item span {
        font-size: 0.84rem;
    }
    .header-tools .note-empty {
        font-size: 0.9rem;
    }
    .header-tools .account-menu-link {
        font-size: 0.95rem;
        padding: 0.78rem 0.8rem;
    }
    .header-tools .account-menu-link svg,
    .header-tools .account-menu-link .theme-icon {
        width: 1.1rem;
        height: 1.1rem;
    }
    .header-tools .account-menu-link .theme-icon svg {
        width: 1.1rem;
        height: 1.1rem;
    }
    .header-tools .note-item {
        background: rgba(255, 255, 255, 0.35);
        border-color: transparent;
    }
    .header-tools .note-item.is-unread {
        background: rgba(28, 99, 179, 0.12);
        border-color: rgba(28, 99, 179, 0.18);
    }
    .header-tools .account-menu-link:hover {
        background: rgba(28, 99, 179, 0.12);
    }
    [data-theme="dark"] .header-tools .note-menu,
    [data-theme="dark"] .header-tools .account-menu {
        background:
            linear-gradient(165deg, rgba(28, 99, 179, 0.22), rgba(17, 32, 51, 0.72)),
            rgba(11, 21, 36, 0.55);
        border-color: rgba(140, 192, 247, 0.18);
        box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
    [data-theme="dark"] .header-tools .note-item {
        background: rgba(238, 244, 251, 0.04);
        border-color: rgba(238, 244, 251, 0.08);
    }
    [data-theme="dark"] .header-tools .note-item.is-unread {
        background: rgba(90, 162, 240, 0.14);
        border-color: rgba(140, 192, 247, 0.2);
    }
    [data-theme="dark"] .header-tools .account-menu-link:hover {
        background: rgba(90, 162, 240, 0.14);
    }
}

@media (min-width: 992px) {
    .menu-toggle { display: none !important; }
    .mobile-drawer,
    .drawer-overlay { display: none !important; }
}

@media (max-width: 767.98px) {
    :root {
        --shell-width: calc(100% - 1.25rem);
        --header-height: 2.5rem;
    }

    .header-inner {
        grid-template-columns: auto auto;
    }
    .role-grid { grid-template-columns: 1fr; }
    .header-shell {
        padding-inline: 0.5rem;
        gap: 0.4rem;
    }
    .logo-img { height: 2rem; }
    .auth-hello {
        max-width: 9rem;
        font-size: 0.84rem;
    }
    .glass-header {
        width: var(--shell-width);
        padding-inline: 0.55rem;
    }
    .results-grid { grid-template-columns: 1fr; }
    .talent-headline { min-height: 0; }
}
