:root {
    --bg: #efe5d4;
    --bg-deep: #d8c0a2;
    --surface: rgba(252, 247, 240, 0.88);
    --surface-strong: rgba(255, 250, 244, 0.96);
    --surface-dark: #18212d;
    --text: #18212d;
    --muted: #6c7280;
    --line: rgba(24, 33, 45, 0.08);
    --primary: #0b5d5b;
    --primary-strong: #083f3f;
    --accent: #c6924b;
    --accent-soft: rgba(198, 146, 75, 0.18);
    --success: #2f7d62;
    --shadow: 0 18px 56px rgba(18, 31, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 15px;
    --nav-height: 84px;
}

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

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

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

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Vazirmatn", sans-serif;
    font-size: 15px;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(198, 146, 75, 0.26), transparent 26%),
        radial-gradient(circle at top right, rgba(11, 93, 91, 0.18), transparent 22%),
        linear-gradient(180deg, #f9f3ea 0%, var(--bg) 38%, #e8dcc8 100%);
}

body.cropper-open {
    overflow: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

button {
    font: inherit;
}

.app-shell {
    position: relative;
    width: min(1220px, calc(100% - 24px));
    margin: 0 auto;
    padding: 14px 0 calc(var(--nav-height) + 22px);
}

body.page-lawyer-finder .app-shell {
    padding-bottom: 0;
}

.app-backdrop {
    position: fixed;
    inset: -120px 0 auto;
    height: 320px;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(198, 146, 75, 0.24), transparent 24%),
        radial-gradient(circle at 78% 18%, rgba(11, 93, 91, 0.18), transparent 18%);
    filter: blur(8px);
}

.topbar {
    padding: 8px 6px 4px;
}

.topbar__surface {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    direction: ltr;
    overflow: hidden;
    padding: 12px 16px;
    min-height: 78px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 249, 240, 0.9), rgba(247, 242, 233, 0.74)),
        radial-gradient(circle at top left, rgba(198, 146, 75, 0.22), transparent 24%),
        radial-gradient(circle at top right, rgba(11, 93, 91, 0.18), transparent 18%);
    box-shadow: 0 24px 70px rgba(17, 28, 39, 0.1);
    backdrop-filter: blur(18px);
}

.topbar__contact-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(24, 33, 45, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-strong);
    box-shadow: 0 12px 26px rgba(18, 31, 42, 0.08);
    backdrop-filter: blur(10px);
    justify-self: start;
}

.topbar__contact-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.topbar__surface::before {
    content: "";
    position: absolute;
    inset: auto auto -68px -44px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 146, 75, 0.18), transparent 68%);
}

.topbar__surface::after {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 240px;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 93, 91, 0.08), transparent 60%);
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
}

.topbar__brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    min-width: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

.topbar__actions {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    direction: ltr;
}

.topbar__menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid rgba(24, 33, 45, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(18, 31, 42, 0.08);
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
}

.topbar__menu-button--floating {
    position: relative;
    z-index: 2;
    inset: auto;
    justify-self: auto;
    order: 2;
}

.topbar__menu-button span {
    display: block;
    width: 100%;
    height: 2.6px;
    border-radius: 999px;
    background: currentColor;
}

.topbar__headline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-align: right;
}

.topbar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 11px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(8, 63, 63, 0.98), rgba(11, 93, 91, 0.94)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
    color: #fff;
    box-shadow: 0 20px 40px rgba(11, 93, 91, 0.26);
    font-weight: 800;
    font-size: 0.94rem;
    letter-spacing: 0.02em;
    overflow: hidden;
    flex: 0 0 auto;
    order: 1;
}

.topbar__badge-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topbar__eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: #8a5b1c;
    font-size: 0.82rem;
    font-weight: 700;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    justify-content: flex-end;
    text-align: right;
}

.topbar__divider {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    flex: 0 0 auto;
}

.topbar__title {
    margin: 0;
    font-size: clamp(0.96rem, 1.7vw, 1.28rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    transform: translateY(-2px);
    text-align: right;
}

.topbar__title-marquee {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    mask-image: linear-gradient(to left, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}

.topbar__title-marquee .topbar__title {
    max-width: 100%;
}

.topbar__title-marquee.is-marquee .topbar__title {
    max-width: none;
    padding-inline: 18px;
    animation-name: topbar-title-marquee;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: var(--marquee-duration, 12s);
    will-change: transform;
}

.topbar__title-marquee.is-marquee:hover .topbar__title {
    animation-play-state: paused;
}

@keyframes topbar-title-marquee {
    0%,
    12% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(var(--marquee-shift, 0));
    }

    62%,
    100% {
        transform: translateX(var(--marquee-shift, 0));
    }
}

.account-drawer[hidden] {
    display: none;
}

.account-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.account-drawer__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(12, 18, 28, 0.42);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.account-drawer__panel {
    position: absolute;
    top: 12px;
    right: 12px;
    width: min(340px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 249, 241, 0.98), rgba(244, 237, 226, 0.96)),
        radial-gradient(circle at top right, rgba(11, 93, 91, 0.12), transparent 28%);
    box-shadow: 0 28px 70px rgba(14, 21, 30, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.account-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-drawer__user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    flex: 1 1 auto;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.account-drawer__user:hover {
    background: rgba(255, 255, 255, 0.42);
}

.account-drawer__user:active {
    transform: scale(0.99);
}

.account-drawer__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-weight: 800;
    overflow: hidden;
    flex: 0 0 auto;
}

.account-drawer__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-drawer__identity {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.account-drawer__identity strong,
.account-drawer__identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(217, 72, 95, 0.12);
    color: #b4233d;
    cursor: pointer;
}

.account-drawer__close svg,
.account-drawer__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.account-drawer__role {
    color: #8a5b1c;
    font-weight: 800;
}

.account-drawer__nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 93, 91, 0.45) rgba(255, 255, 255, 0.22);
}

.account-drawer__logout {
    margin: 12px 0 0;
    flex: 0 0 auto;
}

.account-drawer__nav::-webkit-scrollbar {
    width: 8px;
}

.account-drawer__nav::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.account-drawer__nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(11, 93, 91, 0.72), rgba(11, 93, 91, 0.44));
}

.account-drawer__nav::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(11, 93, 91, 0.84), rgba(11, 93, 91, 0.58));
}

.account-drawer .lawyer-status-widget {
    width: 100%;
    margin: 10px 0 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}

.account-drawer .lawyer-status-widget__items {
    grid-template-columns: 1fr;
    gap: 7px;
}

.account-drawer .lawyer-switch {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "meta track";
    align-items: center;
    justify-items: stretch;
    min-height: 62px;
    padding: 8px 10px;
    gap: 10px;
    border-radius: 16px;
}

.account-drawer .lawyer-switch__meta {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
}

.account-drawer .lawyer-switch__icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
}

.account-drawer .lawyer-switch__icon svg {
    width: 18px;
    height: 18px;
}

.account-drawer .lawyer-switch__text strong {
    font-size: 0.82rem;
}

.account-drawer .lawyer-switch__text small {
    font-size: 0.7rem;
}

.account-drawer .lawyer-switch__track {
    justify-self: end;
    align-self: center;
    width: 44px;
    height: 24px;
}

.account-drawer .lawyer-switch__thumb {
    width: 18px;
    height: 18px;
}

.account-drawer__link--logout {
    width: 100%;
    border: 1px solid rgba(180, 35, 61, 0.16);
    background: rgba(180, 35, 61, 0.08);
    color: #b4233d;
}

.account-drawer__link--logout .account-drawer__icon {
    background: rgba(180, 35, 61, 0.12);
    color: #b4233d;
}

.admin-users-page {
    display: grid;
}

.admin-users-card {
    display: grid;
    gap: 18px;
}

.admin-users-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-users-head h2 {
    margin: 8px 0 6px;
}

.admin-users-head p {
    margin: 0;
    color: var(--muted);
}

.admin-users-head--actions {
    justify-content: flex-end;
}

.admin-users-search {
    width: min(420px, 100%);
}

.admin-users-search .field__input {
    min-height: 52px;
}

.page-users .admin-users-head > div:first-child,
.page-lawyer-finder .card-heading--map,
.page-contact .hero-inline > h2,
.page-consultants .hero-inline > h2,
.page-ai-lawyer .hero-inline > h2 {
    display: none;
}

.admin-users-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(24, 33, 45, 0.08);
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-users-table-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}

.admin-users-table {
    display: grid;
    gap: 10px;
    min-width: 980px;
}

.admin-users-table__head,
.admin-users-row {
    display: grid;
    grid-template-columns: minmax(210px, 1.4fr) minmax(130px, 1fr) minmax(130px, 1fr) 110px minmax(250px, 1.2fr);
    align-items: center;
    gap: 12px;
}

.admin-users-table__head {
    padding: 0 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-users-table__col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.admin-users-table__col--user {
    justify-content: flex-start;
    text-align: right;
}

.admin-users-table__col--actions {
    justify-content: center;
}

.admin-users-row {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.admin-table--posts {
    border-collapse: separate;
    border-spacing: 0 12px;
}

.admin-table--posts tbody tr td {
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(246, 240, 231, 0.96));
    border-top: 1px solid rgba(16, 33, 49, 0.11);
    border-bottom: 1px solid rgba(16, 33, 49, 0.11);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 12px 28px rgba(18, 31, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-table--posts tbody tr td:first-child {
    border-right: 1px solid rgba(16, 33, 49, 0.11);
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.admin-table--posts tbody tr td:last-child {
    border-left: 1px solid rgba(16, 33, 49, 0.11);
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.admin-table--posts tbody tr:hover td {
    border-color: rgba(198, 146, 75, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 18px 36px rgba(18, 31, 42, 0.11),
        0 0 0 4px rgba(198, 146, 75, 0.08);
}

.admin-users-row__user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-users-row__user strong,
.admin-users-row__user small,
.admin-users-row__cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-users-row__user small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.admin-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(11, 93, 91, 0.92), rgba(8, 63, 63, 0.92));
    color: #fff;
    font-weight: 800;
    overflow: hidden;
    flex: 0 0 auto;
}

.admin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(24, 33, 45, 0.08);
}

.role-pill--admin,
.role-pill--approved {
    background: rgba(47, 125, 98, 0.14);
    color: #175846;
}

.role-pill--advisor {
    background: rgba(198, 146, 75, 0.18);
    color: #8a5b1c;
}

.role-pill--rejected {
    background: rgba(180, 35, 61, 0.14);
    color: #b4233d;
}

.role-pill--pending,
.role-pill--user {
    background: rgba(24, 33, 45, 0.08);
    color: var(--text);
}

.admin-users-row__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.admin-inline-form {
    display: inline-flex;
    margin: 0;
}

.button--small {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.84rem;
}

.button--icon-only {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    padding: 0;
    justify-content: center;
    flex: 0 0 42px;
}

.button--icon-only .button__icon {
    margin: 0;
}

.button--icon-only > span:not(.button__icon) {
    display: none;
}

.button--secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border: 1px solid rgba(24, 33, 45, 0.1);
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 236, 0.94));
    border: 1px solid rgba(24, 33, 45, 0.08);
    box-shadow: 0 16px 40px rgba(23, 44, 76, 0.08);
}

.admin-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(24, 33, 45, 0.1);
    font-weight: 800;
    color: var(--text);
    box-shadow: 0 8px 18px rgba(24, 33, 45, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.admin-pagination__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(24, 33, 45, 0.1);
    border-color: rgba(15, 104, 99, 0.18);
}

.admin-pagination__link--nav {
    min-width: 96px;
    padding-inline: 16px;
}

.admin-pagination__arrow {
    font-size: 18px;
    line-height: 1;
}

.admin-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 46px;
    color: rgba(24, 33, 45, 0.5);
    font-weight: 900;
}

.admin-pagination__link.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(15, 104, 99, 0.28);
}

.admin-pagination__link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

@media (max-width: 640px) {
    .admin-pagination {
        gap: 8px;
        padding: 14px 12px;
        border-radius: 22px;
    }

    .admin-pagination__link {
        min-width: 42px;
        height: 42px;
        padding: 0 12px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    .admin-pagination__link--nav {
        min-width: 84px;
    }

    .admin-pagination__ellipsis {
        height: 42px;
    }
}

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

.admin-modal {
    position: fixed;
    inset: 0 !important;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    overflow: hidden;
    isolation: isolate;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(12, 18, 28, 0.52);
    backdrop-filter: blur(8px);
}

.admin-modal__dialog {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(1080px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 249, 241, 0.98), rgba(244, 237, 226, 0.96));
    box-shadow: 0 28px 70px rgba(14, 21, 30, 0.22);
}

.admin-modal__dialog--compact {
    width: min(560px, calc(100% - 24px));
}

.advisor-call-modal__dialog {
    width: min(560px, calc(100% - 20px));
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 14px;
}

.advisor-call-modal__summary {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.advisor-call-modal__line,
.advisor-call-modal__calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.advisor-call-modal__line strong,
.advisor-call-modal__calc-row span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.advisor-call-modal__line span,
.advisor-call-modal__calc-row strong {
    font-weight: 800;
    color: var(--text);
    text-align: left;
}

.advisor-call-modal__calc {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(198, 146, 75, 0.08);
    border: 1px solid rgba(198, 146, 75, 0.16);
}

.advisor-call-modal__calc-row strong.is-success {
    color: var(--success);
}

.advisor-call-modal__calc-row strong.is-danger,
.advisor-call-modal__calc-row.is-warning strong {
    color: #b4233d;
}

.advisor-call-modal__hint {
    margin: 0;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(11, 93, 91, 0.08);
    color: var(--text);
    line-height: 1.7;
    font-size: 0.84rem;
}

.admin-modal__dialog--wide {
    position: fixed;
    inset: 0 !important;
    transform: none;
    width: 100vw;
    width: 100dvw;
    max-width: none;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    padding: max(16px, env(safe-area-inset-top)) 20px max(14px, env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.admin-modal__dialog--settings {
    width: min(860px, calc(100vw - 32px));
    max-width: 100%;
    max-height: min(88vh, 860px);
    overflow-y: auto;
}

.admin-modal__dialog--fullscreen {
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
}

.admin-modal__header,
.admin-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-modal__header h3 {
    margin: 0;
}

.admin-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: rgba(180, 35, 61, 0.12);
    color: #b4233d;
    border: 1px solid rgba(180, 35, 61, 0.16);
    cursor: pointer;
}

.admin-modal__close:hover,
.button--close-only:hover {
    background: rgba(180, 35, 61, 0.2);
    color: #961f32;
}

.admin-modal__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.admin-modal__text {
    margin: 18px 0;
    color: var(--muted);
}

.admin-form-stack {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.admin-edit-form {
    display: grid;
    gap: 20px;
    margin-top: 16px;
}

.admin-modal__dialog--wide .admin-edit-form {
    min-height: 0;
    margin-top: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-inline: 2px 10px;
    padding-bottom: 18px;
    align-content: start;
    overscroll-behavior: contain;
}

.admin-modal__dialog--wide .admin-modal__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-top: 14px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 250, 244, 0), rgba(255, 250, 244, 0.98) 28%);
}

.admin-edit-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.button--close-only {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(180, 35, 61, 0.18);
    background: rgba(180, 35, 61, 0.12);
    color: #b4233d;
    box-shadow: none;
}

.button--close-only .button__icon {
    margin: 0;
}

.button--close-only svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

.admin-edit-section__head {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.admin-edit-section__head--full {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.admin-edit-section__head--full:first-child {
    margin-top: 0;
}

.admin-edit-lawyer {
    display: grid;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(24, 33, 45, 0.08);
}

.admin-edit-lawyer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-edit-lawyer__head h4 {
    margin: 0;
}

.account-drawer__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(24, 33, 45, 0.08);
    color: var(--text);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.account-drawer__badge {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #c81e1e);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(200, 30, 30, 0.24);
    flex: 0 0 auto;
}

.account-drawer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--primary);
    flex: 0 0 auto;
}

.account-drawer__icon svg {
    width: 28px;
    height: 28px;
}

.account-drawer__link-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.account-drawer__link-text strong,
.account-drawer__link-text small {
    display: block;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-drawer__link-text small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.wallet-page {
    width: min(100%, 920px);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.wallet-hero {
    display: grid;
    gap: 14px;
}

.wallet-balance-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(11, 93, 91, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 237, 223, 0.92));
}

.wallet-balance-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wallet-balance-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b5d5b, #136f6d);
    color: #fff;
    box-shadow: 0 16px 28px rgba(11, 93, 91, 0.22);
}

.wallet-balance-card__badge svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.wallet-balance-card__label {
    color: #8a5b1c;
    font-weight: 800;
    font-size: 0.8rem;
}

.wallet-balance-card__amount {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

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

.wallet-fact {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.wallet-fact strong {
    font-size: 1rem;
}

.wallet-fact small {
    color: var(--muted);
    line-height: 1.8;
}

.wallet-page--expanded {
    width: min(100%, 1180px);
}

.wallet-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.wallet-section {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.wallet-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wallet-section__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.wallet-section__head h3 {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.wallet-section__eyebrow {
    color: #8a5b1c;
    font-size: 0.78rem;
    font-weight: 900;
}

.wallet-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
}

.wallet-table {
    min-width: 860px;
    width: 100%;
}

.wallet-table--requests {
    min-width: 980px;
}

.wallet-table--transactions {
    min-width: 860px;
}

.wallet-table--admin-withdrawals {
    min-width: 1320px;
}

.wallet-table .admin-users-table__head,
.wallet-table .admin-users-row {
    width: 100%;
    box-sizing: border-box;
}

.wallet-table--requests .admin-users-table__head,
.wallet-table--requests .admin-users-row {
    grid-template-columns: minmax(190px, 1.2fr) minmax(280px, 1.8fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(160px, 1fr);
}

.wallet-table--transactions .admin-users-table__head,
.wallet-table--transactions .admin-users-row {
    grid-template-columns: minmax(190px, 1.2fr) 120px minmax(140px, 1fr) minmax(190px, 1.3fr) minmax(280px, 1.8fr);
}

.wallet-table--admin-withdrawals .admin-users-table__head,
.wallet-table--admin-withdrawals .admin-users-row {
    grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.95fr) minmax(150px, 0.95fr) minmax(320px, 1.8fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(140px, 0.9fr);
}

.wallet-table .admin-users-table__col,
.wallet-table .admin-users-row__cell,
.wallet-table .role-pill,
.wallet-table .wallet-status-inline {
    white-space: nowrap;
}

.wallet-table .admin-users-table__col {
    flex-wrap: nowrap;
}

.wallet-table .admin-users-table__head {
    padding: 0;
}

.wallet-table .admin-users-row {
    padding-inline: 0;
}

.wallet-table .admin-users-row__cell,
.wallet-table .admin-users-table__col {
    justify-content: center;
    text-align: center;
}

.wallet-table--admin-withdrawals .admin-users-table__col--actions,
.wallet-table--admin-withdrawals .admin-users-row__actions,
.wallet-table--admin-withdrawals .role-pill {
    white-space: nowrap;
}

.wallet-table--admin-withdrawals .admin-users-table__col:nth-child(6),
.wallet-table--admin-withdrawals .admin-users-table__col:nth-child(7) {
    justify-content: center;
    text-align: center;
}

.wallet-table--admin-withdrawals .admin-users-row__actions {
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: center;
    padding-bottom: 2px;
    flex-wrap: nowrap;
}

.wallet-table--admin-withdrawals .admin-users-row__user {
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.wallet-table--admin-withdrawals .admin-users-row__user > div {
    display: grid;
    gap: 2px;
    min-width: 0;
    justify-items: center;
    text-align: center;
}

.wallet-table--admin-withdrawals .admin-users-row__user strong {
    font-size: 0.98rem;
    line-height: 1.3;
}

.wallet-table--admin-withdrawals .admin-users-row__user small {
    margin-top: 0;
    font-size: 0.8rem;
    line-height: 1.2;
}

.wallet-table--admin-withdrawals .admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 0.88rem;
}

.wallet-table--admin-withdrawals .button--icon-only {
    flex: 0 0 auto;
}

.wallet-table__description {
    min-width: 220px;
}

.wallet-table__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    direction: ltr;
    text-align: left;
}

.wallet-table__mono--full {
    overflow: visible;
    text-overflow: clip;
}

.shaba-field {
    display: flex;
    align-items: stretch;
    direction: ltr;
}

.shaba-field__prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0 14px;
    border: 1px solid rgba(24, 33, 45, 0.12);
    border-left: 0;
    border-radius: 18px 0 0 18px;
    background: rgba(198, 146, 75, 0.12);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.shaba-field__input {
    border-radius: 0 18px 18px 0;
    text-align: left;
    letter-spacing: 0.08em;
}

.wallet-table__empty-action {
    color: var(--muted);
    font-weight: 700;
}

.wallet-section__panel {
    display: grid;
    gap: 14px;
}

.wallet-section__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(11, 93, 91, 0.1);
    color: #0b5d5b;
    transition: transform 0.2s ease;
}

.wallet-section__chevron svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.wallet-section__toggle[aria-expanded="true"] .wallet-section__chevron {
    transform: rotate(180deg);
}

.wallet-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .wallet-facts--three {
        grid-template-columns: 1fr;
    }

    .wallet-section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .wallet-hero__actions {
        flex-direction: column;
    }
}

.posts-feed-page,
.post-manager-page,
.post-detail-page {
    gap: 16px;
}

.posts-feed-hero h2,
.post-detail-card__header h2 {
    margin: 8px 0 0;
    font-size: clamp(1.5rem, 2.5vw, 2.35rem);
    line-height: 1.25;
}

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

.posts-grid--manager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-feed-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: 0;
    border-radius: 26px;
    border: 1px solid rgba(16, 33, 49, 0.15);
    box-shadow:
        0 18px 36px rgba(16, 33, 49, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.54) inset,
        0 0 0 4px rgba(198, 146, 75, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-feed-card:hover {
    transform: translateY(-2px);
    border-color: rgba(198, 146, 75, 0.34);
    box-shadow:
        0 22px 44px rgba(16, 33, 49, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.68) inset,
        0 0 0 6px rgba(198, 146, 75, 0.12);
}

.post-feed-card__cover {
    display: block;
    aspect-ratio: 16 / 6.5;
    overflow: hidden;
    background: rgba(24, 33, 45, 0.06);
}

.post-feed-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.post-feed-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 10px;
    padding: 14px 14px 16px;
}

.post-feed-card__body h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
}

.post-feed-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.76rem;
}

.post-feed-card__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.post-feed-card__author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-weight: 800;
    flex: 0 0 auto;
}

.post-feed-card__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-feed-card__excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    white-space: pre-line;
    overflow: hidden;
    min-height: calc(1.8em * 3);
    max-height: calc(1.8em * 3);
    font-size: 0.9rem;
}

.post-feed-card__cta {
    margin-top: auto;
    width: fit-content;
}

.post-feed-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.post-editor-shell {
    display: grid;
    gap: 18px;
}

.post-editor-form {
    display: grid;
    gap: 16px;
}

.post-editor-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.post-editor-layout__cover,
.post-editor-layout__content {
    display: grid;
    gap: 12px;
}

.rich-editor {
    display: grid;
    gap: 10px;
}

.rich-editor__toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(24, 33, 45, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.rich-editor__toolbar .button {
    width: auto;
}

.rich-editor__select,
.rich-editor__color {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(24, 33, 45, 0.12);
    border-radius: 14px;
    background: #fffdfa;
}

.rich-editor__color {
    width: 48px;
    padding: 4px;
}

.rich-editor__surface {
    min-height: 460px;
    padding: 18px;
    border: 1px solid rgba(24, 33, 45, 0.12);
    border-radius: 24px;
    background: #fffdfa;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    line-height: 2;
    outline: none;
}

.rich-editor__surface:focus {
    border-color: rgba(11, 93, 91, 0.34);
    box-shadow: 0 0 0 4px rgba(11, 93, 91, 0.08);
}

.editor-content p,
.rich-editor__surface p,
.editor-content ul,
.editor-content ol,
.rich-editor__surface ul,
.rich-editor__surface ol,
.editor-content blockquote,
.rich-editor__surface blockquote {
    margin: 0 0 16px;
}

.editor-content h2,
.editor-content h3,
.editor-content h4,
.rich-editor__surface h2,
.rich-editor__surface h3,
.rich-editor__surface h4 {
    margin: 0 0 16px;
    line-height: 1.45;
}

.editor-image-block {
    position: relative;
    margin: 18px auto 24px;
    text-align: center;
}

.editor-content__image,
.editor-image-block img {
    display: block;
    width: min(100%, 860px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 20px;
    object-fit: contain;
    background: rgba(24, 33, 45, 0.04);
}

.rich-editor__surface .editor-image-block img {
    width: min(100%, 420px);
    max-height: 320px;
}

.editor-image-block__remove {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 14px;
    background: rgba(180, 35, 61, 0.92);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 22px rgba(180, 35, 61, 0.24);
}

.editor-image-block__remove svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.editor-content .editor-image-block__remove {
    display: none !important;
}

.editor-image-block.is-selected img {
    outline: 3px solid rgba(198, 146, 75, 0.7);
}

.post-editor-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-detail-card {
    display: grid;
    gap: 20px;
    overflow: hidden;
}

.post-detail-card__hero {
    position: relative;
    margin: -20px -20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    height: min(47dvh, 380px);
    overflow: hidden;
    background: rgba(24, 33, 45, 0.05);
}

.post-detail-card__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.post-detail-card__hero-zoom {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-strong);
    box-shadow: 0 16px 32px rgba(16, 33, 49, 0.14);
}

.post-detail-card__hero-zoom svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.post-detail-card__header {
    display: grid;
    gap: 14px;
}

.post-detail-card__bismillah {
    margin: 0 0 14px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 900;
    color: #8a5b1c;
}

.post-detail-card__author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.post-detail-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-weight: 800;
}

.post-detail-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-detail-card__author small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.post-detail-card__content {
    font-size: 1rem;
    line-height: 2.05;
}

.post-detail-related {
    display: grid;
    gap: 16px;
}

.author-posts-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 240px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.author-posts-strip__item {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.author-posts-strip__item strong {
    line-height: 1.7;
}

.author-posts-strip__cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(24, 33, 45, 0.06);
}

.author-posts-strip__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recent-advisors-strip {
    display: grid;
    gap: 8px;
    padding-block: 6px;
}

.recent-advisors-strip__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 800;
}

.recent-advisors-strip__head a {
    color: var(--accent);
    font-size: 0.9rem;
}

.recent-advisors-strip__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
    justify-content: stretch;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.recent-advisors-strip__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
}

.recent-advisors-strip__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(11, 93, 91, 0.1);
}

.recent-advisors-strip__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consultants-page,
.advisor-profile-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.consultants-filter-card,
.consultants-summary-card {
    display: grid;
    gap: 12px;
}

.consultants-filter-form {
    display: grid;
    gap: 10px;
}

.consultants-filter-form__main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(150px, 0.72fr)) auto;
    gap: 10px;
    align-items: center;
}

.consultants-filter-form__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.consultants-summary-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

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

.consultants-list {
    display: grid;
    gap: 12px;
}

.consultant-row {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 13px 15px;
    position: relative;
    min-height: 182px;
    padding-left: 132px;
}

.consultant-row__media {
    display: grid;
    gap: 10px;
    align-content: start;
    justify-items: end;
}

.consultant-row__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 124px;
    height: 124px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 249, 241, 0.98), rgba(240, 247, 246, 0.94));
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.consultant-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consultant-row__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
}

.consultant-row__main {
    display: grid;
    gap: 6px;
    min-width: 0;
    direction: rtl;
    justify-items: end;
    text-align: right;
}

.consultant-row__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.consultant-row__title h3 {
    margin: 0 0 4px;
    font-size: 0.98rem;
}

.consultant-row__headline {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    justify-content: flex-start;
    width: 100%;
}

.consultant-row__headline h3 {
    margin: 0;
}

.consultant-row__identity-line {
    display: flex;
    align-items: center;
    gap: 6px 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.77rem;
    justify-content: flex-start;
    width: 100%;
}

.consultant-row__specialties {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 4px;
    justify-content: flex-start;
    width: 100%;
}

.consultant-row__specialty-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 33, 49, 0.08);
    border: 1px solid rgba(16, 33, 49, 0.1);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.consultant-inline-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.consultant-inline-meta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--primary-strong);
    flex: 0 0 auto;
}

.consultant-inline-meta__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.consultant-row__stats {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
    justify-content: flex-start;
    width: 100%;
}

.consultant-row__stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}

.consultant-row__stat--consultations {
    background: linear-gradient(135deg, #1e75d8, #1250a8);
    box-shadow: 0 12px 24px rgba(18, 80, 168, 0.2);
}

.consultant-row__stat--score {
    background: linear-gradient(135deg, #f3a42f, #d67b09);
    box-shadow: 0 12px 24px rgba(214, 123, 9, 0.18);
}

.consultant-row__stat--fee {
    background: linear-gradient(135deg, #232d39, #10161d);
    box-shadow: 0 12px 24px rgba(16, 22, 29, 0.18);
}

.consultant-row__cta {
    direction: rtl;
    display: inline-flex !important;
    width: fit-content !important;
    min-width: 0;
    max-width: none;
    min-height: 36px;
    padding-inline: 10px;
    font-size: 0.74rem;
    position: absolute;
    left: 15px;
    right: auto;
    top: 18px;
    transform: none;
    white-space: nowrap;
    z-index: 2;
}

.consultant-card {
    display: grid;
    grid-template-rows: 220px minmax(0, 1fr);
    overflow: hidden;
    padding: 0;
}

.consultant-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(198, 146, 75, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(237, 244, 243, 0.96));
}

.consultant-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consultant-card__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.consultant-card__body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.consultant-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.consultant-card__head h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.consultant-card__head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.consultant-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #bf3d4d;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.consultant-status.is-on {
    color: var(--primary-strong);
}

.consultant-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d83c4c;
    flex: 0 0 auto;
}

.consultant-status.is-on .consultant-status__dot {
    background: #1d9c62;
}

.consultant-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.consultant-card__excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    min-height: calc(1.9em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.consultant-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.consultant-card__fee {
    color: #8a5b1c;
    font-weight: 900;
    font-size: 0.88rem;
}

.consultant-card__cta {
    width: fit-content;
}

.advisor-hero-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.advisor-hero-card__media {
    min-height: 360px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(198, 146, 75, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 249, 241, 0.98), rgba(240, 247, 246, 0.94));
    display: flex;
    align-items: center;
    justify-content: center;
}

.advisor-hero-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advisor-hero-card__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 34px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
}

.advisor-hero-card__content {
    display: grid;
    gap: 16px;
    align-content: start;
}

.advisor-hero-card__status-row,
.advisor-hero-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.advisor-hero-card__stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.advisor-hero-card__stats strong {
    color: var(--text);
}

.consultant-metric-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.consultant-metric-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 16px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 14px 26px rgba(24, 33, 45, 0.14);
}

.consultant-metric-badge--consultations {
    background: linear-gradient(135deg, #2d6cdf, #1747a7);
}

.consultant-metric-badge--score {
    background: linear-gradient(135deg, #2f9e5b, #1f7d45);
}

.consultant-metric-badge--fee {
    background: linear-gradient(135deg, #2a2f38, #11151b);
}

.advisor-rating-form {
    display: grid;
    gap: 14px;
}

.advisor-rating-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.advisor-rating-summary__score {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
    color: #8a5b1c;
}

.advisor-rating-summary__meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.advisor-rating-summary__stars {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d0b48a;
    font-size: 1.2rem;
}

.advisor-rating-summary__stars .is-active {
    color: #d08d2c;
}

.advisor-rating-locked {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.9);
    border: 1px solid rgba(198, 146, 75, 0.18);
}

.advisor-rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.advisor-rating-stars__item input {
    display: none;
}

.advisor-rating-stars__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(198, 146, 75, 0.22);
    background: rgba(255, 251, 243, 0.94);
    color: #d0b48a;
    font-size: 1.45rem;
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.advisor-rating-stars__item:hover span,
.advisor-rating-stars__item:hover ~ .advisor-rating-stars__item span,
.advisor-rating-stars__item:has(input:checked) span,
.advisor-rating-stars__item:has(input:checked) ~ .advisor-rating-stars__item span {
    color: #d08d2c;
    background: rgba(255, 239, 209, 0.96);
}

.advisor-hero-card__content h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    line-height: 1.2;
}

.advisor-hero-card__lead {
    margin: 0;
    color: var(--muted);
    line-height: 2;
}

.advisor-hero-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.advisor-hero-card__city,
.advisor-hero-card__fee {
    color: #8a5b1c;
    font-weight: 900;
}

.advisor-profile-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 16px;
}

.advisor-profile-panel {
    display: grid;
    align-content: start;
    gap: 14px;
}

.advisor-profile-panel__content--about {
    line-height: 2;
    white-space: pre-line;
}

.advisor-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}

.advisor-fact {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.advisor-fact strong {
    font-size: 0.88rem;
}

.advisor-fact span {
    color: var(--muted);
    line-height: 1.85;
}

.advisor-fact--wide {
    grid-column: 1 / -1;
}

.flash {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: 50%;
    z-index: 13000;
    width: min(520px, calc(100vw - 28px));
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 45px rgba(18, 31, 42, 0.14);
    backdrop-filter: blur(18px);
    transform: translateX(50%) translateY(-16px) scale(0.98);
    opacity: 0;
    pointer-events: auto;
    animation: flashToastIn 0.34s ease forwards;
}

.flash.is-hiding {
    animation: flashToastOut 0.28s ease forwards;
}

@keyframes flashToastIn {
    to {
        transform: translateX(50%) translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes flashToastOut {
    to {
        transform: translateX(50%) translateY(-12px) scale(0.97);
        opacity: 0;
    }
}

.flash--success {
    color: #145f4c;
    border-color: rgba(47, 125, 98, 0.18);
    background:
        linear-gradient(180deg, rgba(240, 255, 248, 0.96), rgba(229, 248, 239, 0.96)),
        radial-gradient(circle at top right, rgba(47, 125, 98, 0.12), transparent 30%);
}

.flash--error {
    color: #8f2435;
    border-color: rgba(180, 35, 61, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 245, 246, 0.97), rgba(252, 232, 236, 0.97)),
        radial-gradient(circle at top right, rgba(180, 35, 61, 0.12), transparent 30%);
}

.flash--info {
    color: #0f5260;
    border-color: rgba(15, 82, 96, 0.14);
    background:
        linear-gradient(180deg, rgba(243, 251, 255, 0.97), rgba(231, 244, 250, 0.97)),
        radial-gradient(circle at top right, rgba(15, 82, 96, 0.1), transparent 30%);
}

.flash__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.flash__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.flash__content {
    display: grid;
    gap: 2px;
}

.flash__title {
    font-size: 0.9rem;
    font-weight: 800;
}

.flash__message {
    margin: 0;
    line-height: 1.75;
    font-size: 0.9rem;
}

.flash__close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.66);
    color: currentColor;
    cursor: pointer;
    opacity: 0.78;
}

.flash__close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
}

.flash__close svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.page-frame {
    display: grid;
    gap: 14px;
}

.hero-card,
.glass-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 14px;
    padding: 22px;
}

.hero-card::after,
.glass-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(198, 146, 75, 0.18), transparent 68%);
    pointer-events: none;
}

.hero-card__content h2,
.hero-inline h2 {
    margin: 10px 0 8px;
    font-size: clamp(1.45rem, 3vw, 2.4rem);
    line-height: 1.35;
}

.hero-card__content p,
.muted-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
    font-size: 0.95rem;
}

.hero-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: 0.94rem;
    font-weight: 700;
}

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

.button.is-loading,
.button:disabled {
    cursor: wait;
    transform: none;
    opacity: 0.88;
}

.button__icon--spinner svg,
.button.is-loading .button__icon svg {
    animation: button-spinner 0.8s linear infinite;
}

.button--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    box-shadow: 0 14px 28px rgba(11, 93, 91, 0.22);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.button--accent {
    background: linear-gradient(135deg, #e5a84d, #c9852e);
    color: #fff;
    box-shadow: 0 14px 28px rgba(201, 133, 46, 0.24);
}

.button--danger {
    background: linear-gradient(135deg, #d9485f, #b4233d);
    color: #fff;
    box-shadow: 0 14px 28px rgba(180, 35, 61, 0.22);
}

.button--mini {
    min-height: 38px;
    padding: 0 13px;
    background: rgba(11, 93, 91, 0.1);
    color: var(--primary-strong);
}

@keyframes button-spinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.section-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #8a5b1c;
    font-size: 0.78rem;
    font-weight: 700;
}

.score-card {
    height: 100%;
    padding: 24px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(24, 33, 45, 0.96), rgba(18, 26, 36, 0.92)),
        linear-gradient(135deg, rgba(198, 146, 75, 0.24), transparent 40%);
    color: #f4eee6;
}

.score-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.score-card__header strong {
    font-size: 2.4rem;
}

.score-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d5a765, #f5d091);
}

.metric-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 14px;
}

.metric-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
    gap: 14px;
}

.content-grid--balanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-page {
    width: min(100%, 620px);
    margin: 0 auto;
}

.auth-card--solo {
    padding: 26px 22px;
}

.auth-card__body {
    width: min(100%, 420px);
    margin: 0 auto;
}

.auth-card__header h3 {
    margin: 10px 0 4px;
    font-size: 1.35rem;
}

.auth-card__subtext {
    margin-top: 0;
    line-height: 1.75;
    font-size: 0.92rem;
}

.auth-form,
.resend-form,
.logout-form {
    display: grid;
    gap: 13px;
    margin-top: 16px;
}

.field {
    display: grid;
    width: 100%;
}

.field--full {
    grid-column: 1 / -1;
}

.field__input {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(24, 33, 45, 0.14);
    border-radius: 16px;
    background: #fffdfa;
    color: var(--text);
    font-size: 0.94rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.field__select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #8a5b1c 50%),
        linear-gradient(135deg, #8a5b1c 50%, transparent 50%);
    background-position:
        calc(16px) calc(50% - 2px),
        calc(22px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-left: 36px;
}

.field__textarea {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.9;
}

.advisor-call-modal__status {
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(16, 33, 49, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font-weight: 700;
    line-height: 1.65;
    font-size: 0.9rem;
}

.advisor-call-modal .admin-form-stack {
    gap: 12px;
}

.advisor-call-modal .admin-modal__header {
    margin-bottom: 10px;
}

.advisor-call-modal .admin-modal__footer {
    margin-top: 12px;
}

.advisor-call-modal.is-call-live .advisor-call-modal__dialog {
    width: min(420px, calc(100% - 20px));
}

.advisor-call-modal.is-call-live [data-advisor-call-submit] {
    display: none;
}

.advisor-call-modal.is-call-live .advisor-call-modal__status {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.9;
}

@media (max-width: 640px) {
    .advisor-call-modal__dialog {
        width: min(100%, calc(100% - 12px));
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
        padding: 12px;
        border-radius: 20px;
    }

    .advisor-call-modal__summary,
    .advisor-call-modal__calc {
        padding: 10px;
    }

    .advisor-call-modal__line,
    .advisor-call-modal__calc-row {
        gap: 8px;
    }

    .advisor-call-modal__line strong,
    .advisor-call-modal__calc-row span,
    .advisor-call-modal__line span,
    .advisor-call-modal__calc-row strong {
        font-size: 0.82rem;
    }

    .advisor-call-modal__hint,
    .advisor-call-modal__status {
        font-size: 0.82rem;
    }
}

.advisor-call-modal__status.is-waiting {
    border-color: rgba(198, 146, 75, 0.28);
    background: rgba(198, 146, 75, 0.12);
}

.advisor-call-modal__status.is-success {
    border-color: rgba(29, 156, 98, 0.24);
    background: rgba(29, 156, 98, 0.12);
    color: #116844;
}

.advisor-call-modal__status.is-error {
    border-color: rgba(180, 35, 61, 0.24);
    background: rgba(180, 35, 61, 0.1);
    color: #9d2539;
}

.call-report-table-card {
    padding: 0;
    overflow: hidden;
}

.call-report-table-wrap {
    overflow-x: auto;
}

.call-report-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.call-report-table th,
.call-report-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(24, 33, 45, 0.08);
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.call-report-table thead th {
    background: rgba(198, 146, 75, 0.12);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 800;
}

.call-report-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.32);
}

.call-report-table tbody tr:hover {
    background: rgba(198, 146, 75, 0.08);
}

.call-report-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(24, 33, 45, 0.08);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
}

.call-report-badge.is-success {
    background: rgba(29, 156, 98, 0.12);
    color: #116844;
}

.call-report-badge.is-danger {
    background: rgba(180, 35, 61, 0.12);
    color: #9d2539;
}

.call-report-badge.is-warning {
    background: rgba(198, 146, 75, 0.14);
    color: #8a6225;
}

.call-report-note {
    color: var(--muted);
    font-size: 0.82rem;
}

.field__input::placeholder {
    color: #9aa1ab;
}

.field__input--readonly {
    background: #f6f2ea;
    color: #6b7280;
    cursor: not-allowed;
}

.field__input--emphasis {
    color: #233140;
    font-weight: 700;
}

.field__input:focus,
.otp-box:focus {
    border-color: rgba(11, 93, 91, 0.42);
    box-shadow: 0 0 0 4px rgba(11, 93, 91, 0.08);
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field .field__input {
    padding-left: 56px;
}

.password-toggle {
    position: absolute;
    left: 8px;
    top: 50%;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(11, 93, 91, 0.1);
    color: var(--primary-strong);
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.password-toggle.is-active {
    background: rgba(198, 146, 75, 0.2);
}

.otp-form {
    gap: 18px;
}

.otp-boxes {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    direction: ltr;
}

.otp-box {
    width: 100%;
    min-height: 60px;
    border: 1px solid rgba(24, 33, 45, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    outline: none;
}

.otp-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
}

.otp-meta small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
}

.otp-meta strong {
    font-size: 1rem;
}

.auth-form .button,
.resend-form .button {
    width: 100%;
}

.resend-form--link {
    margin-top: 12px;
    justify-items: center;
}

.resend-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
}

.resend-link[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.resend-link--danger {
    color: #b4233d;
}

.resend-form .button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.logout-button {
    width: fit-content;
}

.button__icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-left: 7px;
}

.button__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.profile-page {
    width: min(100%, 980px);
    margin: 0 auto;
}

.profile-card {
    padding: 22px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    margin-top: 16px;
    align-items: start;
}

.profile-media,
.profile-fields {
    display: grid;
    gap: 16px;
}

.advisor-profile-fields {
    display: grid;
    gap: 14px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.advisor-upgrade-shell {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(24, 33, 45, 0.08);
    display: grid;
    gap: 18px;
}

.advisor-upgrade-shell__head {
    margin-bottom: -2px;
}

.advisor-profile-fields__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.advisor-about-field {
    min-height: 132px;
    white-space: pre-line;
}

.specialty-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.specialty-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 14px;
    margin-top: 10px;
}

.specialty-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(11, 93, 91, 0.16);
    background: rgba(229, 246, 241, 0.82);
    color: #0b5d5b;
    font-weight: 800;
    cursor: pointer;
}

.specialty-chip svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.specialty-list--readonly {
    margin-top: 0;
}

.specialty-chip--readonly {
    cursor: default;
    pointer-events: none;
}

.lawyer-status-widget {
    display: grid;
    gap: 8px;
    margin: 0 auto 12px;
    padding: 10px 12px;
    border: 1px solid rgba(24, 33, 45, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 14px 34px rgba(18, 31, 42, 0.08);
}

.lawyer-status-widget__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.lawyer-status-widget__head small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.lawyer-status-widget__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lawyer-status-widget__item {
    margin: 0;
}

.lawyer-switch {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid rgba(24, 33, 45, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    cursor: pointer;
}

.lawyer-switch.is-loading {
    pointer-events: none;
    opacity: 0.72;
}

.lawyer-switch.is-loading .lawyer-switch__track::after {
    content: "";
    position: absolute;
    inset: 6px;
    width: 16px;
    height: 16px;
    margin: auto;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.74);
    border-top-color: var(--primary-strong);
    animation: spin 0.75s linear infinite;
}

.lawyer-switch.is-loading .lawyer-switch__icon {
    animation: pulseSoft 0.9s ease-in-out infinite alternate;
}

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

@keyframes pulseSoft {
    from {
        transform: scale(1);
        opacity: 0.68;
    }

    to {
        transform: scale(1.08);
        opacity: 1;
    }
}

.lawyer-switch__meta {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.lawyer-switch__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(11, 93, 91, 0.1);
    color: var(--primary-strong);
}

.lawyer-switch__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.lawyer-switch__text {
    display: grid;
    gap: 2px;
    text-align: right;
    min-width: 0;
}

.lawyer-switch__text strong,
.lawyer-switch__text small {
    margin: 0;
}

.lawyer-switch__text strong {
    font-size: 0.86rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lawyer-switch__text small {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lawyer-switch__track {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(24, 33, 45, 0.14);
    transition: background 0.2s ease;
    justify-self: start;
}

.lawyer-switch__thumb {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(18, 31, 42, 0.16);
    transition: transform 0.2s ease;
}

.lawyer-switch.is-on .lawyer-switch__track {
    background: rgba(11, 93, 91, 0.88);
}

.lawyer-switch--call.is-on .lawyer-switch__track,
.lawyer-switch--gps.is-on .lawyer-switch__track {
    background: rgba(11, 93, 91, 0.88);
}

.lawyer-switch.is-on .lawyer-switch__thumb {
    transform: translateX(-20px);
}

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

.geo-permission-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.geo-permission-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.66);
    backdrop-filter: blur(10px);
}

.geo-permission-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(247, 238, 224, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 28px 80px rgba(10, 16, 24, 0.34);
}

.geo-permission-modal__close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 13px;
    background: rgba(216, 60, 76, 0.12);
    color: #c73548;
    cursor: pointer;
}

.geo-permission-modal__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.geo-permission-modal__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(11, 93, 91, 0.12);
    color: var(--primary-strong);
}

.geo-permission-modal__icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.geo-permission-modal__content {
    display: grid;
    gap: 8px;
    padding-left: 34px;
}

.geo-permission-modal__content strong {
    color: var(--text);
    font-size: 1rem;
}

.geo-permission-modal__content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 0.92rem;
}

.profile-fields--extended {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-fields--identity {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-media {
    justify-items: center;
    align-content: start;
    align-self: start;
}

.avatar-uploader {
    position: relative;
    display: grid;
    gap: 10px;
    align-self: start;
    justify-items: center;
    width: 156px;
    max-width: 100%;
}

.avatar-uploader--document {
    width: 100%;
}

.avatar-dropzone {
    position: relative;
    display: block;
    width: 156px;
    height: 156px;
    padding: 0;
    border: 2px dashed rgba(11, 93, 91, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-dropzone--document {
    width: 100%;
    border-radius: 22px;
}

.avatar-dropzone:hover,
.avatar-dropzone.is-dragover {
    border-color: rgba(11, 93, 91, 0.46);
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(11, 93, 91, 0.12);
}

.avatar-preview {
    width: 156px;
    height: 156px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.avatar-preview--document {
    width: 100%;
    height: 168px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 240, 232, 0.92)),
        radial-gradient(circle at top right, rgba(11, 93, 91, 0.08), transparent 30%);
}

.avatar-preview img,
.avatar-placeholder {
    width: 100%;
    height: 100%;
}

.avatar-preview img[hidden],
.avatar-preview__document-image[hidden],
.avatar-placeholder[hidden] {
    display: none !important;
}

.avatar-preview img {
    display: block;
    object-fit: cover;
}

.advisor-profile-fields--merged {
    margin-top: 10px;
}

.field__hint {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.currency-field {
    position: relative;
}

.currency-field .field__input {
    padding-left: 82px;
}

.currency-field__suffix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a5b1c;
    font-size: 0.8rem;
    font-weight: 800;
    pointer-events: none;
}

.avatar-preview__document-image {
    object-fit: contain !important;
    padding: 10px;
}

.avatar-placeholder {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 18px 14px 70px;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.avatar-placeholder strong {
    color: var(--text);
}

.avatar-placeholder span {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.7;
}

.avatar-placeholder__icon,
.avatar-overlay__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
}

.avatar-placeholder__icon svg,
.avatar-overlay__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.avatar-overlay {
    position: absolute;
    inset: auto 12px 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 16px;
    background: rgba(24, 33, 45, 0.78);
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.avatar-dropzone:not(.avatar-dropzone--document) .avatar-placeholder {
    gap: 6px;
    padding: 14px 10px 86px;
}

.avatar-dropzone:not(.avatar-dropzone--document) .avatar-placeholder strong {
    font-size: 0.95rem;
    line-height: 1.25;
}

.avatar-dropzone:not(.avatar-dropzone--document) .avatar-placeholder span {
    font-size: 0.82rem;
    line-height: 1.45;
}

.avatar-dropzone:not(.avatar-dropzone--document) .avatar-overlay {
    inset: auto 10px 10px 10px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.88rem;
}

.avatar-dropzone:not(.avatar-dropzone--document) .avatar-overlay__icon {
    width: 22px;
    height: 22px;
}

.media-preview-button {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 248, 240, 0.98);
    color: #c97a1f;
    border: 1px solid rgba(201, 122, 31, 0.34);
    box-shadow: 0 14px 28px rgba(201, 122, 31, 0.14);
    backdrop-filter: blur(10px);
}

.media-preview-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.media-preview-button:hover {
    color: #a95f0e;
    border-color: rgba(201, 122, 31, 0.5);
    box-shadow: 0 16px 30px rgba(201, 122, 31, 0.2);
}

.media-preview-button.is-hidden {
    display: none;
}

.media-preview-button--document {
    top: 12px;
    left: 12px;
}

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

.image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: grid;
    place-items: center;
    padding: 16px;
}

.image-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.88);
    backdrop-filter: blur(10px);
}

.image-preview-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: calc(100vh - 32px);
    padding: 18px;
    border-radius: 24px;
    background: #fffaf4;
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 28px 80px rgba(10, 16, 24, 0.42);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
}

.image-preview-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.image-preview-modal__header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.image-preview-modal__close {
    border: none;
    background: rgba(192, 57, 75, 0.12);
    color: #c0394b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.image-preview-modal__close svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.image-preview-modal__body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: auto;
    border-radius: 18px;
    background: #f3ede5;
    border: 1px solid rgba(24, 33, 45, 0.08);
    padding: 12px;
}

.image-preview-modal__body img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
}

.profile-submit {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.cooperation-cta {
    margin-top: 16px;
}

.cooperation-cta .button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
}

.logout-form--footer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(24, 33, 45, 0.08);
}

.lawyer-request-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(24, 33, 45, 0.08);
    display: grid;
    gap: 16px;
}

.lawyer-request-section[hidden] {
    display: none !important;
}

.lawyer-request-section--merged {
    margin-top: 0;
    padding-top: 18px;
}

.lawyer-request-head--nested {
    padding-top: 2px;
}

.lawyer-request-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lawyer-request-head h3 {
    margin: 8px 0 0;
    font-size: 1.04rem;
}

.lawyer-request-approved-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(21, 128, 91, 0.12);
    color: #127453;
    border: 1px solid rgba(21, 128, 91, 0.18);
    font-weight: 900;
    white-space: nowrap;
}

.lawyer-request-approved-inline svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.button--lawyer-cta {
    min-width: 180px;
    min-height: 52px;
    background: linear-gradient(135deg, #135b8f, #0b3f63);
    color: #fff;
    box-shadow: 0 16px 34px rgba(11, 63, 99, 0.24);
    font-size: 1rem;
    font-weight: 800;
}

.button--pending {
    background: linear-gradient(135deg, #c6924b, #a06f2d);
    color: #fff;
    box-shadow: 0 14px 28px rgba(160, 111, 45, 0.22);
    opacity: 0.92;
}

.status-bubble {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.status-bubble--info {
    background: linear-gradient(180deg, rgba(247, 243, 234, 0.98), rgba(241, 233, 219, 0.98));
    color: #7a4c18;
}

.status-bubble--success {
    background: linear-gradient(180deg, rgba(238, 252, 245, 0.98), rgba(227, 246, 237, 0.98));
    color: #165642;
}

.status-bubble--danger {
    background: linear-gradient(180deg, rgba(255, 243, 244, 0.98), rgba(250, 228, 232, 0.98));
    color: #92273a;
}

.status-bubble__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
}

.status-bubble__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.status-bubble__content {
    display: grid;
    gap: 4px;
}

.status-bubble__content strong {
    font-size: 0.94rem;
}

.status-bubble__content p {
    margin: 0;
    line-height: 1.8;
    font-size: 0.88rem;
}

.profile-lock-bubble {
    margin-bottom: 16px;
}

.lawyer-request-form,
.lawyer-request-view {
    display: grid;
    gap: 16px;
}

.lawyer-request-note {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(24, 33, 45, 0.08);
    color: var(--muted);
    line-height: 1.85;
    font-size: 0.9rem;
}

.lawyer-request-profile-fields {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

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

.lawyer-request-grid--compact {
    grid-template-columns: 1fr;
}

.lawyer-documents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lawyer-documents-grid--profile-upload {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 6px;
}

.lawyer-documents-grid--single-document {
    grid-template-columns: minmax(220px, 280px);
    justify-content: start;
}

.lawyer-documents-grid--compact-row .document-preview-card img,
.lawyer-documents-grid--compact-row .avatar-preview__document-image {
    height: 112px;
}

.document-uploader-card {
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.document-uploader-card--profile-upload {
    width: min(100%, 260px);
    justify-self: center;
}

.document-uploader-card--profile-upload .avatar-dropzone--document,
.document-uploader-card--profile-upload .avatar-preview--document {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 220px;
}

.document-uploader-card--profile-upload .avatar-placeholder {
    padding: 18px;
}

.document-preview-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.document-preview-card--square {
    width: min(100%, 280px);
    justify-self: start;
}

.document-preview-card__eye {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    border: 1px solid rgba(208, 128, 45, 0.32);
    background: rgba(255, 247, 235, 0.92);
    color: #c06d1f;
    box-shadow: 0 12px 28px rgba(120, 75, 28, 0.16);
}

.document-preview-card__eye svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.document-preview-card__label {
    color: var(--text);
    font-weight: 800;
    font-size: 0.92rem;
}

.document-preview-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 16px;
    background: #fffdfa;
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.document-preview-card--square img {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 220px;
}

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

.crop-file-input {
    position: fixed;
    inset-inline-start: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.editor-file-input {
    position: fixed;
    inset-inline-start: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.image-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    isolation: isolate;
    display: grid;
    place-items: center;
    padding: 12px;
    pointer-events: auto;
}

.image-crop-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.88);
    backdrop-filter: blur(12px);
}

.image-crop-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: 0;
    padding: 18px;
    border-radius: 24px;
    background: #fffaf4;
    box-shadow: 0 28px 80px rgba(10, 16, 24, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.82);
    opacity: 1;
    pointer-events: auto;
}

.image-crop-modal__header,
.image-crop-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.image-crop-modal__header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.image-crop-modal__button {
    min-width: 132px;
}

.image-crop-modal__button--cancel {
    background: linear-gradient(135deg, #eba94d, #ca7e26) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(202, 126, 38, 0.24) !important;
}

.image-crop-modal__button--save {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong)) !important;
    color: #fff !important;
}

.image-crop-modal__close {
    border: none;
    background: transparent;
    color: #c0394b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.image-crop-modal__close:hover {
    background: rgba(192, 57, 75, 0.1);
    color: #a61e34;
}

.image-crop-modal__close svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.datepicker-plot-area {
    font-family: "Vazirmatn", sans-serif !important;
    border-radius: 20px !important;
    border: 1px solid rgba(24, 33, 45, 0.08) !important;
    box-shadow: 0 24px 60px rgba(15, 22, 31, 0.18) !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td.selected span,
.datepicker-plot-area .datepicker-month-view .month-item.selected,
.datepicker-plot-area .datepicker-year-view .year-item.selected {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong)) !important;
    color: #fff !important;
    border-radius: 12px !important;
}

.datepicker-plot-area .toolbox {
    border-top: 1px solid rgba(24, 33, 45, 0.08) !important;
}

.image-crop-modal__body {
    display: grid;
    margin: 14px 0;
}

.cropper-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(62vh, 520px);
    border-radius: 18px;
    overflow: hidden;
    background: #eef2f6;
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.cropper-stage img {
    display: block;
    max-width: 100%;
    max-height: min(62vh, 520px);
}

.cropper-stage__canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: min(62vh, 520px);
    border-radius: 18px;
    touch-action: none;
    cursor: grab;
}

.cropper-stage__canvas.is-dragging {
    cursor: grabbing;
}

.cropper-container {
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
}

.cropper-view-box,
.cropper-face {
    border-radius: 16px;
}

.image-crop-modal__hint {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(198, 146, 75, 0.12);
    border: 1px solid rgba(198, 146, 75, 0.2);
    color: var(--text);
    line-height: 1.8;
    font-size: 0.9rem;
}

.image-crop-modal.is-document-mode [data-crop-image] {
    display: none !important;
}

.image-crop-modal.is-document-mode .cropper-stage {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)),
        #dfe7ef;
}

.stack {
    display: grid;
    gap: 18px;
}

.glass-card {
    padding: 20px;
}

.compact-card h3,
.post-card h3,
.card-heading h3 {
    margin: 10px 0 6px;
    font-size: 1.08rem;
}

.hero-inline {
    padding: 22px;
}

.single-column {
    display: grid;
    gap: 18px;
}

.single-column--map {
    gap: 0;
    min-height: calc(100vh - 168px);
    min-height: calc(100dvh - 168px);
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.map-status {
    display: grid;
    gap: 8px;
    padding: 13px 15px;
    margin: 16px 0 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid var(--line);
}

.map-status small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
}

.map-coords {
    color: var(--muted);
    line-height: 1.9;
}

.map-canvas {
    min-height: 380px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.live-map-card {
    padding: 14px;
}

.live-map-card--fullbleed {
    width: 100%;
    margin: 0;
    min-height: calc(100vh - 168px);
    min-height: calc(100dvh - 168px);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.card-heading--map {
    align-items: center;
    margin-bottom: 10px;
}

.card-heading--map h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2.3rem);
    line-height: 1.25;
}

.map-frame {
    position: relative;
    height: 100%;
    min-height: calc(100vh - 238px);
    min-height: calc(100dvh - 238px);
    min-height: calc(100svh - 238px);
    overflow: hidden;
    overscroll-behavior: none;
}

.map-canvas--finder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 238px);
    min-height: calc(100dvh - 238px);
    min-height: calc(100svh - 238px);
    border-radius: 18px;
    background: #dfe6df;
    touch-action: none;
    overscroll-behavior: none;
}

.page-lawyer-finder,
.page-lawyer-finder .single-column--map,
.page-lawyer-finder .live-map-card,
.page-lawyer-finder .map-frame,
.page-lawyer-finder .map-canvas--finder,
.page-lawyer-finder .leaflet-container {
    overscroll-behavior: none;
}

.page-lawyer-finder .leaflet-container {
    touch-action: none;
}

.admin-table-shell--posts {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.admin-table--posts {
    min-width: 920px;
}

.post-manager-list {
    overflow: hidden;
}

.admin-post-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-post-row__cover {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(16, 33, 49, 0.06);
}

.admin-post-row__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.admin-post-row__content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-post-row__content strong,
.admin-post-row__content strong a {
    color: var(--text);
}

.admin-post-row__content small {
    color: var(--muted);
    line-height: 1.6;
    white-space: pre-line;
    max-height: calc(1.6em * 2);
    overflow: hidden;
}

.post-feed-card__actions--table {
    justify-content: center;
    margin-top: 0;
    flex-wrap: nowrap;
}

.admin-post-actions {
    gap: 6px;
}

.admin-table--posts td[data-label="\u0639\u0645\u0644\u06cc\u0627\u062a"] .post-feed-card__actions,
.admin-table--posts td:last-child .post-feed-card__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.admin-table--posts td[data-label="\u0639\u0645\u0644\u06cc\u0627\u062a"] .button,
.admin-table--posts td:last-child .button {
    min-width: 84px;
    width: auto;
    max-width: none;
    min-height: 40px;
    padding: 0 14px;
    justify-content: center;
    flex: 0 0 auto;
}

.admin-table--posts td[data-label="\u0639\u0645\u0644\u06cc\u0627\u062a"] .button__icon,
.admin-table--posts td:last-child .button__icon {
    margin: 0;
}

.admin-table--posts td[data-label="\u0639\u0645\u0644\u06cc\u0627\u062a"] .button > span:not(.button__icon),
.admin-table--posts td:last-child .button > span:not(.button__icon) {
    display: none;
}

.admin-table--posts th:last-child,
.admin-table--posts td:last-child {
    width: 148px;
    min-width: 148px;
}

.admin-table--posts th:nth-child(2),
.admin-table--posts td:nth-child(2) {
    width: 170px;
    min-width: 170px;
}

.admin-table--posts td[data-label="\u062a\u0627\u0631\u06cc\u062e"] {
    white-space: nowrap;
    font-size: 0.94rem;
}

.admin-table-shell--posts .admin-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
}

@media (max-width: 920px) {
    .admin-table--posts {
        min-width: 100%;
    }

    .admin-table--posts thead {
        display: none;
    }

    .admin-table--posts,
    .admin-table--posts tbody,
    .admin-table--posts tr,
    .admin-table--posts td {
        display: block;
        width: 100%;
    }

    .admin-table--posts tbody {
        display: grid;
        gap: 10px;
    }

    .admin-table--posts tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid rgba(16, 33, 49, 0.11);
        background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(246, 240, 231, 0.96));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.72),
            0 10px 22px rgba(18, 31, 42, 0.07);
    }

    .admin-table--posts tbody tr td,
    .admin-table--posts tbody tr td:first-child,
    .admin-table--posts tbody tr td:last-child {
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        min-width: 0;
        width: 100%;
    }

    .admin-table--posts tbody tr td {
        padding: 9px 12px;
    }

    .admin-table--posts tbody tr td:first-child {
        grid-column: 1 / -1;
    }

    .admin-table--posts tbody tr td:nth-child(2),
    .admin-table--posts tbody tr td:nth-child(3) {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .admin-table--posts tbody tr td:last-child {
        grid-column: auto;
    }

    .admin-table--posts tbody tr td + td {
        border-top: 1px dashed rgba(16, 33, 49, 0.1);
    }

    .admin-table--posts tbody tr td:nth-child(3) {
        border-top: none;
        border-right: 1px dashed rgba(16, 33, 49, 0.1);
    }

    .admin-table--posts tbody tr td[data-label]::before {
        display: none;
        content: none;
    }

    .admin-post-row {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 8px;
    }

    .admin-post-row__content strong a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .admin-post-row__content small {
        max-height: none;
    }

    .post-feed-card__actions--table {
        justify-content: flex-start;
    }

    .admin-table--posts td[data-label="\u0639\u0645\u0644\u06cc\u0627\u062a"] .post-feed-card__actions,
    .admin-table--posts td:last-child .post-feed-card__actions {
        justify-content: flex-start;
        margin-right: auto;
    }
}

@media (max-width: 560px) {
    .post-manager-list {
        padding: 12px;
    }

    .admin-post-row {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 7px;
    }

    .admin-post-actions {
        gap: 5px;
    }

    .admin-table--posts tbody tr td {
        padding: 8px 10px;
    }

    .admin-table--posts td[data-label="\u0639\u0645\u0644\u06cc\u0627\u062a"] .button,
    .admin-table--posts td:last-child .button {
        min-width: 36px;
        width: 36px;
        max-width: 36px;
        min-height: 36px;
        flex-basis: 36px;
    }

    .admin-table--posts tbody tr td[data-label="\u062a\u0627\u0631\u06cc\u062e"],
    .admin-table--posts tbody tr td[data-label="\u0639\u0645\u0644\u06cc\u0627\u062a"] {
        gap: 8px;
    }

    .admin-table--posts tbody tr td[data-label="\u062a\u0627\u0631\u06cc\u062e"] {
        font-size: 0.88rem;
    }
}
.page-lawyer-finder .leaflet-bottom.leaflet-left {
    bottom: calc(var(--nav-height) + 18px);
}

.gps-fab {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 14px 30px rgba(24, 33, 45, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gps-fab:hover {
    transform: translateY(-1px);
}

.gps-fab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.gps-fab.is-active {
    background: linear-gradient(135deg, #2f7d62, #1f6a51);
}

.gps-fab.is-inactive {
    background: linear-gradient(135deg, #a3a8b1, #7c8591);
}

.gps-fab.is-pending {
    background: linear-gradient(135deg, #c6924b, #a06f2d);
}

.user-location-marker {
    background: transparent;
    border: none;
}

.user-location-marker__pin {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 44px;
    height: 52px;
}

.user-location-marker__head {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b5d5b, #083f3f);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(11, 93, 91, 0.28);
    overflow: hidden;
}

.user-location-marker__head svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.user-location-marker__head--image {
    background: #ffffff;
}

.user-location-marker__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-location-marker__torso {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 14px;
    margin-top: 2px;
    border-radius: 12px 12px 8px 8px;
    background: linear-gradient(135deg, #0b5d5b, #083f3f);
    box-shadow: 0 8px 16px rgba(11, 93, 91, 0.18);
}

.user-location-marker__tail {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #083f3f;
    filter: drop-shadow(0 5px 10px rgba(11, 93, 91, 0.22));
}

.user-location-marker__pulse {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(47, 125, 98, 0.18);
    transform: translate(-50%, -50%);
    animation: mapPulse 1.9s ease-out infinite;
}

@keyframes mapPulse {
    0% {
        transform: scale(0.65);
        opacity: 0.9;
    }

    70% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.advisor-map-marker {
    background: transparent;
    border: none;
}

.advisor-map-marker__body {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.94);
    background: linear-gradient(135deg, #c6924b, #8a5b1c);
    color: #fff;
    box-shadow: 0 10px 20px rgba(24, 33, 45, 0.16);
}

.advisor-map-marker__body--text {
    font-size: 0.76rem;
    font-weight: 800;
}

.advisor-map-marker__body--image {
    background: #fff;
}

.advisor-map-marker__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-popup-card {
    display: grid;
    gap: 6px;
    min-width: 154px;
}

.map-popup-card strong {
    color: var(--text);
    font-size: 0.9rem;
}

.map-popup-card small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.map-popup-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.page-lawyer-finder .leaflet-container a.map-popup-card__action,
.page-lawyer-finder .leaflet-container a.map-popup-card__action:visited,
.page-lawyer-finder .leaflet-container a.map-popup-card__action:hover,
.page-lawyer-finder .leaflet-container a.map-popup-card__action:focus {
    color: #fff;
}

.map-popup-card__action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.map-office-tools__lead {
    margin: 6px 0 0;
}

.map-overlay-tools {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 410;
    display: grid;
    justify-items: end;
    gap: 6px;
    max-width: min(320px, calc(100% - 28px));
}

.map-office-tools__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(11, 93, 91, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-strong);
    font-size: 0.84rem;
    font-weight: 800;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.map-office-tools__button:hover {
    transform: translateY(-1px);
}

.map-office-tools__button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.map-office-tools__button.is-active {
    border-color: rgba(11, 93, 91, 0.4);
    background: rgba(11, 93, 91, 0.08);
    color: var(--primary-strong);
}

.map-office-tools__button.is-loading {
    pointer-events: none;
    opacity: 0.72;
}

.map-overlay-tools__hint {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(18, 31, 42, 0.12);
    text-align: right;
}

.advisor-map-marker--office .advisor-map-marker__body--office-image {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(18, 31, 42, 0.18);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.info-pill {
    display: grid;
    gap: 4px;
    padding: 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
}

.info-pill strong {
    font-size: 1rem;
}

.post-card__meta {
    color: #8a5b1c;
    font-size: 0.9rem;
    font-weight: 700;
}

.bottom-nav {
    position: fixed;
    right: 50%;
    bottom: 12px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: min(780px, calc(100% - 18px));
    padding: 7px;
    transform: translateX(50%);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 24px;
    background: rgba(24, 33, 45, 0.9);
    box-shadow: 0 22px 60px rgba(14, 21, 30, 0.34);
    backdrop-filter: blur(16px);
}

.bottom-nav__item {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.72);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bottom-nav__item:hover {
    transform: translateY(-1px);
    color: #fff;
}

.bottom-nav__item.is-active {
    background: linear-gradient(180deg, rgba(11, 93, 91, 0.92), rgba(8, 63, 63, 0.92));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.bottom-nav__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.bottom-nav__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.bottom-nav__label {
    font-size: 0.64rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .hero-card,
    .content-grid,
    .content-grid--balanced {
        grid-template-columns: 1fr;
    }

    .topbar__brand {
        align-items: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .map-overlay-tools {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        justify-items: stretch;
    }

    .map-office-tools__button {
        width: 100%;
    }

    .profile-layout,
    .cropper-modal__body,
    .post-editor-layout,
    .posts-grid,
    .posts-grid--manager,
    .wallet-facts,
    .consultants-grid,
    .advisor-hero-card,
    .advisor-profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-fields--identity {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advisor-profile-fields__meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lawyer-request-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lawyer-documents-grid {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .lawyer-documents-grid--profile-upload {
        grid-template-columns: minmax(0, 1fr);
        overflow-x: visible;
    }

    .lawyer-documents-grid--single-document {
        grid-template-columns: minmax(220px, 280px);
        overflow-x: visible;
    }

    .consultants-filter-form__main {
        grid-template-columns: 1fr;
    }

    .consultant-row {
        grid-template-columns: 112px minmax(0, 1fr);
        padding: 14px;
        min-height: 168px;
        padding-left: 124px;
    }

    .consultant-row__media {
        gap: 8px;
    }

    .consultant-row__avatar {
        width: 112px;
        height: 112px;
        border-radius: 22px;
    }

    .specialty-builder {
        grid-template-columns: 1fr;
    }

    .avatar-preview {
        width: min(100%, 176px);
        height: 176px;
    }

    .avatar-preview--document {
        width: 100%;
        height: 168px;
    }

    .avatar-uploader {
        width: min(100%, 176px);
    }

    .avatar-dropzone {
        width: min(100%, 176px);
        height: 176px;
    }

    .avatar-dropzone--document {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 720px) {
    :root {
        --nav-height: 88px;
        --radius-xl: 24px;
        --radius-lg: 20px;
        --radius-md: 16px;
    }

    .app-shell {
        width: min(100%, calc(100% - 12px));
        padding-top: 10px;
        padding-bottom: calc(var(--nav-height) + 20px);
    }

    .topbar {
        padding: 12px 6px 8px;
    }

    .topbar__surface {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        padding: 12px 14px;
        min-height: 74px;
        border-radius: 20px;
        column-gap: 14px;
    }

    .topbar__contact-link {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .topbar__menu-button--floating {
        justify-self: end;
    }

    .topbar__brand {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 4px 0 0;
        min-height: 40px;
    }

    .consultant-row {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        align-items: start;
        min-height: 152px;
        padding-left: 108px;
    }

    .consultant-row__media {
        gap: 6px;
    }

    .consultant-row__avatar {
        width: 88px;
        height: 88px;
        border-radius: 18px;
    }

    .consultant-row__initials {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .consultant-row__main {
        gap: 5px;
    }

    .consultant-row__title {
        gap: 6px;
    }

    .consultant-row__title h3 {
        margin-bottom: 2px;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .consultant-row__headline {
        align-items: flex-start;
        gap: 4px 8px;
    }

    .consultant-row__specialties {
        gap: 4px;
        margin-bottom: 2px;
    }

    .consultant-row__specialty-chip {
        min-height: 22px;
        padding: 3px 8px;
        font-size: 0.68rem;
    }

    .consultant-row__identity-line {
        display: flex;
        gap: 4px 8px;
        flex-wrap: wrap;
        font-size: 0.74rem;
    }

    .consultant-row__stats {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .consultant-row__stat {
        min-height: 30px;
        padding: 6px 10px;
        font-size: 0.68rem;
    }

    .consultant-row__cta {
        min-height: 32px;
        padding-inline: 8px;
        font-size: 0.68rem;
        width: fit-content !important;
        max-width: none;
        left: 12px;
    }

    .topbar__headline {
        gap: 5px;
        align-items: center;
        min-height: 40px;
    }

    .topbar__actions {
        gap: 8px;
    }

    .topbar__menu-button {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        padding: 0 11px;
    }

    .topbar__headline {
        gap: 5px;
        min-width: 0;
    }

    .topbar__title-marquee {
        display: flex;
        align-items: center;
        min-height: 40px;
    }

    .topbar__badge {
        min-width: 46px;
        height: 46px;
        padding: 0 9px;
        border-radius: 14px;
        font-size: 0.84rem;
    }

    .topbar__title {
        font-size: 0.92rem;
        line-height: 1;
        min-height: 40px;
        transform: translateY(-3px);
    }

    .topbar__eyebrow {
        font-size: 0.72rem;
        max-width: none;
    }

    .lawyer-status-widget__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .advisor-profile-fields__meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .lawyer-switch {
        grid-template-columns: minmax(0, 1fr);
        min-height: 72px;
        padding: 9px 9px;
        gap: 7px;
    }

    .lawyer-switch__icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .lawyer-switch__text strong {
        font-size: 0.8rem;
    }

    .lawyer-switch__text small {
        font-size: 0.68rem;
    }

    .hero-card,
    .glass-card,
    .hero-inline {
        padding: 20px;
    }

    .profile-fields--identity {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lawyer-request-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recent-advisors-strip__items {
        grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
        justify-content: stretch;
    }

    .consultant-card {
        grid-template-rows: 190px minmax(0, 1fr);
    }

    .advisor-facts {
        grid-template-columns: 1fr;
    }

    .post-feed-card__body {
        padding: 16px;
    }

    .post-detail-card__hero {
        min-height: 150px;
        height: min(36dvh, 250px);
    }

    .rich-editor__toolbar {
        padding: 10px;
    }

    .rich-editor__surface {
        min-height: 360px;
        padding: 14px;
    }

    .auth-card--solo {
        padding: 22px 18px;
    }

    .auth-card__body {
        width: 100%;
    }

    .profile-card {
        padding: 20px;
    }

    .lawyer-request-head {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-submit .button,
    .logout-button {
        width: 100%;
    }

    .image-crop-modal__dialog {
        padding: 14px;
        border-radius: 18px;
    }

    .media-preview-button,
    .media-preview-button--document {
        top: 10px;
        left: 10px;
    }

    .cropper-stage {
        min-height: min(48vh, 360px);
    }

    .hero-card__content h2,
    .hero-inline h2 {
        font-size: 1.55rem;
    }

    .button {
        width: 100%;
    }

    .admin-users-row__actions .button--icon-only {
        width: 42px;
        min-width: 42px;
        max-width: 42px;
        flex: 0 0 42px;
    }

    .hero-card__actions,
    .card-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .otp-boxes {
        gap: 8px;
    }

    .otp-box {
        min-height: 60px;
    }

    .map-canvas {
        min-height: 340px;
    }

    .single-column--map {
        min-height: calc(100vh - 144px);
        min-height: calc(100dvh - 144px);
        min-height: calc(100svh - 144px);
    }

    .live-map-card--fullbleed {
        min-height: calc(100vh - 144px);
        min-height: calc(100dvh - 144px);
        min-height: calc(100svh - 144px);
        border-radius: 22px;
    }

    .card-heading--map h2 {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .map-canvas--finder {
        min-height: calc(100vh - 208px);
        min-height: calc(100dvh - 208px);
        min-height: calc(100svh - 208px);
        border-radius: 16px;
        width: 100%;
    }

    .page-lawyer-finder .leaflet-bottom.leaflet-left {
        bottom: calc(var(--nav-height) + 24px);
    }

    .admin-users-head,
    .admin-users-summary,
    .admin-modal__header,
    .admin-modal__footer,
    .admin-edit-lawyer__head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-users-search {
        width: 100%;
    }

    .admin-edit-layout,
    .admin-edit-fields {
        grid-template-columns: 1fr;
    }

    .admin-modal__dialog--wide {
        inset: 0;
        width: 100vw;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        padding: 14px 14px 10px;
    }

    .admin-modal__dialog--wide .admin-edit-form {
        padding-inline: 0 2px;
    }

    .admin-modal__dialog--settings {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 24px);
    }

    .admin-users-table-wrap {
        margin-inline: -4px;
        padding-inline: 4px;
    }

    .author-posts-strip {
        grid-auto-columns: minmax(210px, 80vw);
    }

    .bottom-nav {
        gap: 2px;
        padding: 7px 5px;
        width: calc(100% - 10px);
        border-radius: 24px;
    }

.bottom-nav__label {
        font-size: 0.6rem;
    }
}

.about-page,
.about-settings-page,
.admin-collection-page,
.admin-editor-page {
    gap: 18px;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: 24px;
    align-items: center;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(243, 232, 214, 0.92)),
        radial-gradient(circle at top right, rgba(11, 93, 91, 0.16), transparent 26%);
}

.about-hero::after {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 146, 75, 0.28), transparent 68%);
}

.about-hero__content,
.about-hero__visual {
    position: relative;
    z-index: 1;
}

.about-hero__lead {
    margin: 14px 0 18px;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--muted);
}

.about-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-hero__meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.about-hero__visual {
    display: flex;
    justify-content: center;
}

.about-hero__visual img,
.about-hero__placeholder {
    width: min(100%, 320px);
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 28px 60px rgba(17, 28, 39, 0.16);
}

.about-hero__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(11, 93, 91, 0.88), rgba(198, 146, 75, 0.82));
    color: #fff;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
}

.about-contact-grid {
    align-items: stretch;
}

.about-info-card,
.about-map-card,
.about-strip,
.admin-collection-card,
.admin-editor-card,
.about-settings-card {
    display: grid;
    gap: 18px;
}

.about-section-head {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.about-section-head h3 {
    margin: 0;
}

.about-section-head .section-chip {
    display: inline-flex;
    align-self: start;
    width: auto;
    max-width: fit-content;
    white-space: nowrap;
}

.about-hero__text {
    margin: -2px 0 18px;
    color: var(--muted);
    line-height: 2;
}

.about-hero__text p {
    margin: 0 0 10px;
}

.about-hero__text p:last-child {
    margin-bottom: 0;
}

.about-info-list {
    display: grid;
    gap: 14px;
}

.about-info-row {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.about-info-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.about-info-row strong {
    font-size: 0.92rem;
}

.about-info-row span,
.about-info-row div {
    color: var(--muted);
    line-height: 1.9;
}

.about-info-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.about-info-link:hover {
    color: var(--primary-strong);
}

.about-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-socials__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 33, 45, 0.08);
    color: var(--primary-strong);
    box-shadow: 0 12px 24px rgba(17, 28, 39, 0.08);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.about-socials__item:hover {
    transform: translateY(-2px);
    background: rgba(11, 93, 91, 0.1);
    color: var(--primary);
}

.about-socials__icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
}

.about-socials__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.about-map-frame {
    overflow: hidden;
    border-radius: 24px;
    min-height: 260px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(24, 33, 45, 0.08);
}

.about-map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
}

.about-scroll-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
}

.about-scroll-list--partners {
    grid-auto-columns: minmax(180px, 220px);
}

.about-person-card,
.about-partner-card,
.admin-collection-item,
.admin-setting-item {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(24, 33, 45, 0.08);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 38px rgba(17, 28, 39, 0.08);
}

.about-person-card,
.about-partner-card {
    scroll-snap-align: start;
}

.about-person-card__image,
.about-partner-card__image,
.admin-collection-item__media,
.admin-setting-item__image {
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(11, 93, 91, 0.18), rgba(198, 146, 75, 0.26));
}

.about-person-card__image,
.admin-collection-item__media {
    aspect-ratio: 1;
}

.about-partner-card__image {
    aspect-ratio: 1;
    padding: 18px;
    display: grid;
    place-items: center;
}

.admin-setting-item__image {
    aspect-ratio: 16 / 9;
}

.about-person-card__image img,
.about-partner-card__image img,
.admin-collection-item__media img,
.admin-setting-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-partner-card__image img {
    object-fit: contain;
}

.about-person-card__image span,
.about-partner-card__image span,
.admin-collection-item__media span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-strong);
}

.about-person-card__body,
.admin-collection-item__body {
    display: grid;
    gap: 6px;
}

.about-person-card__body span,
.about-partner-card strong,
.admin-collection-item__body span,
.admin-collection-item__body small,
.admin-setting-item__summary {
    color: var(--muted);
    line-height: 1.8;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.admin-card-grid--settings {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-collection-item__actions,
.admin-setting-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.settings-group {
    display: grid;
    gap: 14px;
}

.settings-group__head h4 {
    margin: 0;
    font-size: 1rem;
}

.admin-setting-item--button {
    appearance: none;
    width: 100%;
    min-height: 88px;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-setting-item--button:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 93, 91, 0.22);
    box-shadow: 0 20px 40px rgba(17, 28, 39, 0.11);
}

.admin-setting-item--button strong {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.8;
}

.admin-editor-card .admin-edit-layout {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
}

.avatar-uploader--settings {
    gap: 12px;
}

.rich-editor--modal {
    min-height: 0;
}

.rich-editor__surface--modal {
    min-height: 240px;
}

@media (max-width: 900px) {
    .about-hero,
    .admin-editor-card .admin-edit-layout {
        grid-template-columns: 1fr;
    }

    .about-hero__visual {
        order: -1;
    }
}

@media (max-width: 640px) {
    .about-scroll-list {
        grid-auto-columns: minmax(200px, 78vw);
    }

    .about-map-frame,
    .about-map-frame iframe {
        min-height: 220px;
    }

    .admin-card-grid,
    .admin-card-grid--settings {
        grid-template-columns: 1fr;
    }
}
