@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;600;700;800;900&display=swap');

:root {
    --app-sidebar-width: 17rem;
    --app-border: #edf0f5;
    --app-bg: #f4f7fb;
    --app-text: #1f2937;
    --app-primary: #0d6efd;
    --app-primary-soft: #eef4ff;
    --app-primary-border: #d6e6ff;
    --app-success: #20c997;
    --app-warning: #f59f00;
    --app-danger: #dc3545;
    --app-muted: #6b7280;
    --app-panel-shadow: 0 16px 42px rgba(16, 24, 40, .06);
    --app-font: 'Roboto Condensed', Arial, sans-serif;
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
    font-family: var(--app-font);
    letter-spacing: 0;
}

body,
button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.card,
.table,
.dropdown-menu {
    font-family: var(--app-font);
}

/* keep the application typography consistent in generated bootstrap and ajax content. */
body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fat):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-light):not(.fa-thin):not(.fa-duotone) {
    font-family: var(--app-font);
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
}

.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa,
.fas,
.far,
.fal,
.fat,
.fad {
    font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.sidebar-brand a,
.offcanvas-title,
.nav-link,
.btn,
label,
th {
    font-weight: 900;
    text-transform: lowercase;
}

.app-topbar {
    min-height: 4.65rem;
    background: #fff;
    border-bottom: 1px solid var(--app-border);
}

.app-kicker {
    color: var(--app-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: lowercase;
    line-height: 1.1;
}

.app-brand {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: lowercase;
}

.app-content {
    padding-top: 1.35rem !important;
}

.app-icon-btn {
    position: relative;
    min-width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--app-primary-border);
    border-radius: 10px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    box-shadow: none !important;
}

.app-icon-btn:hover,
.app-icon-btn:focus {
    background: #dceaff;
    border-color: #9ec5fe;
    color: #0b5ed7;
}

.app-primary-btn {
    min-height: 2.6rem;
    border-radius: 10px;
    background: var(--app-primary-soft);
    border: 1px solid var(--app-primary-border);
    color: var(--app-primary);
    font-weight: 900;
    text-transform: lowercase;
    box-shadow: none !important;
}

.app-primary-btn:hover,
.app-primary-btn:focus {
    background: #dceaff;
    border-color: #9ec5fe;
    color: #0b5ed7;
}

.notification-counter {
    position: absolute;
    top: -.35rem;
    right: -.3rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 .25rem;
    border-radius: 999px;
    background: var(--app-danger);
    color: #fff;
    font-size: .7rem;
    font-weight: 900;
    line-height: 1.2rem;
}

.notification-menu {
    width: min(24rem, 92vw);
    border: 1px solid var(--app-border);
    border-radius: 16px;
    box-shadow: var(--app-panel-shadow);
    overflow: hidden;
}

.notification-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--app-border);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.notification-menu-head a,
.notification-item {
    text-decoration: none;
}

.notification-item,
.notification-empty {
    display: block;
    padding: .9rem 1rem;
    color: #111827;
    border-bottom: 1px solid #f1f3f7;
}

.notification-item.unread {
    background: #f8fbff;
}

.notification-item small,
.notification-empty {
    color: var(--app-muted);
    font-size: .82rem;
}

.app-sidebar {
    background: #fff;
    color: var(--app-text);
    border-right: 1px solid var(--app-border);
}

.sidebar-brand {
    align-items: center;
    min-height: 4.25rem;
    padding: 0 1.15rem;
    border-bottom: 1px solid var(--app-border);
}

.sidebar-brand a,
.offcanvas-title {
    color: #111827;
    font-weight: 900;
    text-transform: lowercase;
    text-decoration: none;
}

.sidebar-nav {
    padding: .9rem;
    gap: .35rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: #374151;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: .75rem .9rem;
}

.sidebar-nav .nav-link i {
    color: var(--app-primary);
    font-size: 1rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus,
.sidebar-nav .nav-link.active {
    background: var(--app-primary-soft);
    border-color: var(--app-primary-border);
    color: #111827;
}

.app-footer {
    color: var(--app-muted);
    font-weight: 800;
    text-transform: lowercase;
}

.card,
.table-responsive,
.search-map,
.saved-search-box,
.messenger-shell,
.ad-detail-panel {
    border-color: var(--app-border) !important;
    box-shadow: var(--app-panel-shadow);
}

.card {
    border-radius: 16px;
}

.card-header {
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%) !important;
    border-bottom: 1px solid var(--app-border) !important;
}

.form-control,
.form-select,
.btn {
    border-radius: 10px;
    font-weight: 900;
    text-transform: lowercase;
}

.form-control,
.form-select {
    min-height: 2.9rem;
    border-color: var(--app-primary-border);
    background: #f8fbff;
    color: #111827;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    border-color: #9ec5fe;
    box-shadow: 0 0 0 .18rem rgba(13, 110, 253, .12) !important;
}

.table thead th {
    background: #f7f8f9;
    color: #1f2937;
    font-size: .82rem;
    border-bottom-color: #dee2e6;
}

.table tbody td {
    color: #374151;
    border-bottom-color: #edf0f5;
    vertical-align: middle;
}

.badge {
    font-weight: 900;
    text-transform: lowercase;
}

.page-shell,
.module-page-shell {
    color: #1f2937;
}

.module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.module-title {
    margin: 0;
    color: #111827;
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: lowercase;
}

.module-subtitle {
    margin: .2rem 0 0;
    color: var(--app-muted);
    font-size: .88rem;
    font-weight: 800;
}

.metric-panel {
    height: 100%;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .05);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .9rem;
}

.metric-panel-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.metric-panel.success .metric-panel-icon {
    background: #e8f8ef;
    color: var(--app-success);
}

.metric-panel.warning .metric-panel-icon {
    background: #fff7df;
    color: var(--app-warning);
}

.metric-panel.danger .metric-panel-icon {
    background: #ffe3e7;
    color: var(--app-danger);
}

.metric-panel small {
    display: block;
    color: var(--app-muted);
    font-size: .82rem;
    font-weight: 800;
}

.metric-panel strong {
    display: block;
    color: #111827;
    font-size: 1.55rem;
    line-height: 1.1;
}

.public-page {
    background: #fbfaf7;
}

.public-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: .9rem 0;
    background: rgba(251, 250, 247, .92);
    border-bottom: 1px solid rgba(33, 37, 41, .08);
    backdrop-filter: blur(14px);
}

.public-brand {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.public-nav nav a {
    color: #495057;
    font-size: .95rem;
    text-decoration: none;
}

.public-nav nav a:hover {
    color: #111827;
}

.public-hero {
    position: relative;
    min-height: clamp(31rem, 68vh, 40rem);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.public-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, .18) 0%, rgba(17, 24, 39, .06) 42%, rgba(251, 250, 247, .95) 100%),
        rgba(251, 250, 247, .42);
}

.public-hero-content {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
}

.public-kicker {
    color: #0f766e;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: 0;
}

.public-hero h1 {
    max-width: 48rem;
    margin-inline: auto;
    color: #111827;
    font-size: clamp(2.45rem, 6vw, 5.3rem);
    line-height: 1;
    margin: 0 auto;
}

.public-lede {
    max-width: 38rem;
    color: #495057;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin: 1.5rem 0 2rem;
}

.public-search {
    max-width: 70rem;
    padding: .75rem;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(33, 37, 41, .1);
    border-radius: 1rem;
    box-shadow: 0 1.5rem 4rem rgba(17, 24, 39, .12);
}

.public-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.public-quick-links a {
    color: #111827;
    font-size: .95rem;
}

.public-section {
    padding: 4rem 0;
}

.public-overview {
    padding-top: 1.25rem;
    background: #fff;
}

.public-section h2 {
    color: #111827;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: 0;
}

.public-metric,
.public-empty,
.public-category,
.public-ad {
    background: #fff;
    border: 1px solid rgba(33, 37, 41, .08);
    border-radius: .75rem;
}

.public-metric {
    padding: 1.4rem;
}

.public-metric strong {
    display: block;
    color: #111827;
    font-size: 2rem;
    line-height: 1;
}

.public-metric span {
    color: #6c757d;
}

.public-categories-section {
    background: #fff;
}

.public-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .85rem;
}

.public-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 6.4rem;
    padding: .85rem .5rem;
    color: #111827;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.public-category:hover,
.public-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2.5rem rgba(17, 24, 39, .08);
}

.public-category span {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    background: #eef7f5;
    border-radius: .65rem;
    color: #24746b;
    font-size: .95rem;
}

.public-category strong {
    font-size: .86rem;
    line-height: 1.2;
    text-align: center;
}

.public-featured {
    background: #f4f7fb;
}

.public-ad {
    height: 100%;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.public-ad-image {
    display: grid;
    place-items: center;
    height: 13rem;
    background: #e9eef5;
    color: #6c757d;
}

.public-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-ad h3 {
    font-size: 1rem;
    margin-bottom: .75rem;
}

.public-ad h3 a {
    color: #111827;
    text-decoration: none;
}

.public-empty {
    padding: 1.25rem;
    color: #6c757d;
}

.public-footer {
    padding: 2rem 0;
    background: #111827;
    color: rgba(255, 255, 255, .78);
}

.bazaar-page {
    background: #f2f4f7;
}

.bazaar-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: .7rem 0;
    background: #fff;
    border-bottom: 1px solid #dfe4ea;
}

.bazaar-logo {
    color: #111827;
    font-size: 1.45rem;
    font-weight: 900;
    text-decoration: none;
}

.bazaar-city,
.bazaar-link {
    color: #374151;
    font-size: .95rem;
    text-decoration: none;
}

.bazaar-city {
    padding: .45rem .75rem;
    background: #f2f4f7;
    border-radius: .45rem;
}

.bazaar-post-btn {
    background: #8dc63f;
    border: 0;
    color: #fff;
    font-weight: 700;
}

.bazaar-post-btn:hover {
    background: #7ab331;
    color: #fff;
}

.bazaar-main {
    padding-bottom: 2rem;
}

.bazaar-search-band {
    padding: 1.25rem 0;
    background: #263238;
}

.bazaar-search {
    padding: .65rem;
    background: rgba(255, 255, 255, .1);
    border-radius: .65rem;
}

.bazaar-search .form-control,
.bazaar-search .form-select,
.bazaar-search .btn {
    min-height: 3.65rem;
    border-radius: .55rem;
    font-family: var(--app-font);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.bazaar-search .form-control,
.bazaar-search .form-select {
    border-color: #cfd8e3;
    background-color: #f8fbff;
    color: #263238;
    box-shadow: none;
}

.bazaar-search .form-select {
    padding-right: 3rem;
    background-position: right 1rem center;
}

.bazaar-search .form-control:focus,
.bazaar-search .form-select:focus {
    border-color: #7ba9e8;
    background-color: #fff;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.bazaar-section {
    padding: 1.35rem 0;
}

.bazaar-panel {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: .5rem;
    overflow: hidden;
}

.bazaar-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #edf0f3;
}

.bazaar-panel-head h1,
.bazaar-panel-head h2,
.bazaar-side h2 {
    margin: 0;
    color: #188754;
    font-size: 1.1rem;
    font-weight: 800;
}

.bazaar-panel-head span,
.bazaar-panel-head a {
    color: #6b7280;
    font-size: .9rem;
}

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

.bazaar-category-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-height: 5.2rem;
    padding: .9rem 1rem;
    color: #111827;
    text-decoration: none;
    border-right: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
}

.bazaar-category-card:hover {
    background: #f8fafc;
}

.bazaar-category-icon {
    display: grid;
    place-items: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    margin-top: .1rem;
    background: #eef7e9;
    border-radius: .45rem;
    color: #6da82f;
    font-size: .85rem;
}

.bazaar-category-body strong {
    display: block;
    margin-bottom: .25rem;
    font-size: .96rem;
}

.bazaar-category-body small {
    color: #6b7280;
    font-size: .8rem;
    line-height: 1.35;
}

.bazaar-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1.25rem;
}

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

.bazaar-ad-card {
    border-right: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
}

.bazaar-ad-card a {
    display: block;
    padding: .75rem;
    color: #111827;
    text-decoration: none;
}

.bazaar-ad-image {
    display: grid;
    place-items: center;
    height: 7.5rem;
    margin-bottom: .75rem;
    background: #f2f4f7;
    color: #6b7280;
    border-radius: .35rem;
    overflow: hidden;
}

.bazaar-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bazaar-ad-card strong,
.bazaar-latest-list span {
    display: block;
    font-size: .92rem;
}

.bazaar-ad-card small,
.bazaar-latest-list small {
    display: block;
    color: #6b7280;
    font-size: .8rem;
}

.bazaar-ad-card b,
.bazaar-latest-list strong {
    display: block;
    margin-top: .25rem;
    color: #111827;
    font-size: .9rem;
}

.bazaar-side {
    padding: 1rem;
}

.bazaar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0;
}

.bazaar-tags a {
    padding: .35rem .6rem;
    color: #374151;
    background: #f2f4f7;
    border-radius: 999px;
    font-size: .86rem;
    text-decoration: none;
}

.bazaar-mini-promo {
    display: grid;
    gap: .45rem;
    padding: 1rem;
    background: #f7fbf1;
    border: 1px solid #dceec7;
    border-radius: .5rem;
}

.bazaar-mini-promo a {
    color: #5f9825;
    font-weight: 800;
}

.bazaar-vip-panel {
    border-color: #d7ead9;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefb 100%);
}

.bazaar-vip-panel .bazaar-panel-head h2 {
    display: flex;
    align-items: center;
    color: #188754;
}

.bazaar-vip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 18px;
}

.bazaar-vip-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9eadf;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bazaar-vip-card:hover {
    border-color: #a8dcb2;
    box-shadow: 0 24px 56px rgba(16, 24, 40, .13);
    transform: translateY(-2px);
}

.bazaar-vip-slider {
    position: relative;
    background: #f8fafc;
}

.bazaar-vip-image {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #eef9f0 100%);
    color: #188754;
}

.bazaar-vip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}

.bazaar-vip-card:hover .bazaar-vip-image img {
    transform: scale(1.035);
}

.bazaar-vip-image.is-empty span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .09);
}

.bazaar-vip-slider .carousel-control-prev,
.bazaar-vip-slider .carousel-control-next {
    width: 42px;
    opacity: 0;
    transition: opacity .18s ease;
}

.bazaar-vip-card:hover .carousel-control-prev,
.bazaar-vip-card:hover .carousel-control-next {
    opacity: .9;
}

.bazaar-vip-slider .carousel-control-prev-icon,
.bazaar-vip-slider .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: 54%;
    background-color: rgba(17, 24, 39, .58);
}

.bazaar-vip-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(24, 135, 84, .94);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    text-transform: lowercase;
    box-shadow: 0 10px 24px rgba(24, 135, 84, .25);
}

.bazaar-vip-body {
    display: grid;
    gap: 8px;
    padding: 14px 15px 16px;
    color: #111827;
    text-decoration: none;
}

.bazaar-vip-body strong {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bazaar-vip-body span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    color: #667085;
    font-size: .86rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bazaar-vip-body span i {
    color: #188754;
}

.bazaar-vip-body b {
    color: #188754;
    font-size: 1.1rem;
    font-weight: 900;
}

.bazaar-premium-panel {
    border-color: #e5e7eb;
    background: #fff;
}

.bazaar-premium-panel .bazaar-panel-head h2 {
    display: flex;
    align-items: center;
    color: #188754;
}

.bazaar-premium-panel .bazaar-panel-head h2 i {
    color: #188754;
}

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

.bazaar-premium-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bazaar-premium-card:hover {
    border-color: #bde8c3;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .1);
    transform: translateY(-2px);
}

.bazaar-premium-slider {
    position: relative;
    background: #f8fafc;
}

.bazaar-premium-image {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f8f4 100%);
    color: #188754;
}

.bazaar-premium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.bazaar-premium-card:hover .bazaar-premium-image img {
    transform: scale(1.03);
}

.bazaar-premium-image.is-empty span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
}

.bazaar-premium-slider .carousel-control-prev,
.bazaar-premium-slider .carousel-control-next {
    width: 38px;
    opacity: 0;
    transition: opacity .18s ease;
}

.bazaar-premium-card:hover .carousel-control-prev,
.bazaar-premium-card:hover .carousel-control-next {
    opacity: .88;
}

.bazaar-premium-slider .carousel-control-prev-icon,
.bazaar-premium-slider .carousel-control-next-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: 54%;
    background-color: rgba(17, 24, 39, .56);
}

.bazaar-premium-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #188754;
    font-size: .76rem;
    font-weight: 900;
    text-transform: lowercase;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .12);
}

.bazaar-premium-body {
    display: grid;
    gap: 7px;
    padding: 13px 14px 15px;
    color: #111827;
    text-decoration: none;
}

.bazaar-premium-body strong {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.24;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bazaar-premium-body span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    color: #667085;
    font-size: .84rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bazaar-premium-body span i,
.bazaar-premium-body b {
    color: #188754;
}

.bazaar-premium-body b {
    font-size: 1.02rem;
    font-weight: 900;
}

.bazaar-featured-panel,
.bazaar-highlighted-panel {
    background: #fff;
}

.bazaar-featured-panel .bazaar-panel-head h2,
.bazaar-highlighted-panel .bazaar-panel-head h2 {
    display: flex;
    align-items: center;
    color: #188754;
}

.bazaar-featured-panel .bazaar-panel-head h2 i,
.bazaar-highlighted-panel .bazaar-panel-head h2 i {
    color: #188754;
}

.bazaar-featured-grid,
.bazaar-highlighted-grid {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.bazaar-featured-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bazaar-highlighted-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bazaar-promo-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bazaar-promo-card:hover {
    border-color: #bde8c3;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .095);
    transform: translateY(-2px);
}

.bazaar-promo-slider {
    position: relative;
    background: #f8fafc;
}

.bazaar-promo-image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f8f4 100%);
    color: #188754;
}

.bazaar-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.bazaar-promo-card:hover .bazaar-promo-image img {
    transform: scale(1.03);
}

.bazaar-promo-image.is-empty span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
}

.bazaar-promo-slider .carousel-control-prev,
.bazaar-promo-slider .carousel-control-next {
    width: 34px;
    opacity: 0;
    transition: opacity .18s ease;
}

.bazaar-promo-card:hover .carousel-control-prev,
.bazaar-promo-card:hover .carousel-control-next {
    opacity: .88;
}

.bazaar-promo-slider .carousel-control-prev-icon,
.bazaar-promo-slider .carousel-control-next-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-size: 54%;
    background-color: rgba(17, 24, 39, .56);
}

.bazaar-promo-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #188754;
    font-size: .72rem;
    font-weight: 900;
    text-transform: lowercase;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .1);
}

.bazaar-promo-body {
    display: grid;
    gap: 6px;
    padding: 11px 12px 13px;
    color: #111827;
    text-decoration: none;
}

.bazaar-promo-body strong {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    font-size: .93rem;
    font-weight: 900;
    line-height: 1.22;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bazaar-promo-body span {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    color: #667085;
    font-size: .78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bazaar-promo-body span i,
.bazaar-promo-body b {
    color: #188754;
}

.bazaar-promo-body b {
    font-size: .95rem;
    font-weight: 900;
}

.bazaar-latest-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12rem 8rem;
    gap: 1rem;
    padding: .85rem 1rem;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #edf0f3;
}

.bazaar-latest-list a:hover {
    background: #f8fafc;
}

.bazaar-latest-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
}

.bazaar-latest-card {
    min-width: 0;
}

.bazaar-latest-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 218px;
    overflow: hidden;
    color: #111827;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bazaar-latest-card a:hover,
.bazaar-latest-card a:focus {
    border-color: #bde8c3;
    box-shadow: 0 16px 34px rgba(16, 24, 40, .11);
    transform: translateY(-2px);
}

.bazaar-latest-image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
    color: #98a2b3;
    overflow: hidden;
}

.bazaar-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.bazaar-latest-card a:hover .bazaar-latest-image img,
.bazaar-latest-card a:focus .bazaar-latest-image img {
    transform: scale(1.04);
}

.bazaar-latest-image > span:not(.bazaar-looking-badge) {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #188754;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
}

.bazaar-latest-body {
    display: grid;
    gap: 6px;
    padding: 10px 11px 11px;
}

.bazaar-latest-body strong {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    color: #111827;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.22;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bazaar-latest-body small {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    color: #667085;
    font-size: .78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bazaar-latest-body small i {
    color: #188754;
    font-size: .72rem;
    flex: 0 0 auto;
}

.bazaar-latest-body b {
    color: #188754;
    font-size: .93rem;
    font-weight: 900;
    line-height: 1.1;
}

.bazaar-empty {
    padding: 1rem;
    color: #6b7280;
}

.bazaar-footer {
    padding: 1.5rem 0;
    background: #fff;
    border-top: 1px solid #dfe4ea;
    color: #6b7280;
}

@media (max-width: 1399.98px) {
    .bazaar-latest-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.ad-detail-page {
    color: #111827;
}

.ad-detail-main {
    padding-bottom: 2rem;
}

.ad-detail-panel {
    padding: 1rem;
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: .5rem;
}

.ad-gallery-main {
    background: #111827;
}

.ad-gallery-main,
.ad-gallery-button {
    min-height: min(68vh, 34rem);
}

.ad-gallery-button {
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    padding: 0;
    background: #111827;
}

.ad-gallery-button img {
    width: 100%;
    height: min(68vh, 34rem);
    object-fit: contain;
}

.ad-gallery-thumbs {
    padding: .75rem;
    background: #fff;
}

.ad-gallery-thumbs .swiper-slide {
    height: 4.5rem;
    opacity: .6;
    cursor: pointer;
    border-radius: .35rem;
    overflow: hidden;
}

.ad-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    outline: 2px solid #8dc63f;
}

.ad-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-detail-empty {
    display: grid;
    place-items: center;
    min-height: 22rem;
    color: #6b7280;
    background: #f2f4f7;
}

.ad-detail-title {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    line-height: 1.08;
}

.ad-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .6rem;
    color: #6b7280;
}

.ad-detail-price {
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    font-weight: 850;
}

.ad-detail-description {
    color: #374151;
    line-height: 1.7;
}

.ad-detail-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #edf0f3;
    border-left: 1px solid #edf0f3;
}

.ad-detail-specs div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem;
    border-right: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
}

.ad-detail-specs span,
.ad-seller-lines span,
.ad-stat-grid span {
    color: #6b7280;
}

.ad-detail-side {
    position: sticky;
    top: 5.25rem;
    display: grid;
    gap: 1rem;
}

.ad-seller-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f4f7;
}

.ad-rating span {
    display: block;
    font-weight: 800;
}

.ad-rating small {
    color: #6b7280;
}

.ad-seller-lines {
    display: grid;
    gap: .65rem;
}

.ad-seller-lines div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

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

.ad-stat-grid div {
    padding: .85rem;
    background: #f8fafc;
    border-radius: .45rem;
}

.ad-stat-grid strong {
    display: block;
    font-size: 1.35rem;
}

.ad-related-card {
    height: 100%;
    border: 1px solid #edf0f3;
    border-radius: .5rem;
    overflow: hidden;
}

.ad-related-card a {
    display: block;
    height: 100%;
    padding: .75rem;
    color: #111827;
    text-decoration: none;
}

.ad-related-image {
    display: grid;
    place-items: center;
    height: 9rem;
    margin-bottom: .75rem;
    color: #6b7280;
    background: #f2f4f7;
    border-radius: .35rem;
    overflow: hidden;
}

.ad-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-related-card small,
.ad-related-card b {
    display: block;
}

.ad-related-card small {
    color: #6b7280;
}

.ad-lightbox-image {
    display: block;
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.messenger-shell {
    display: grid;
    grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
    min-height: calc(100vh - 12rem);
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: .5rem;
    overflow: hidden;
}

.messenger-list {
    background: #f8fafc;
    border-right: 1px solid var(--app-border);
    overflow-y: auto;
}

.conversation-item {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    gap: .75rem;
    width: 100%;
    padding: .9rem;
    border: 0;
    border-bottom: 1px solid #e9eef5;
    background: transparent;
    text-align: left;
}

.conversation-item:hover,
.conversation-item.active {
    background: #eef6ff;
}

.conversation-item img,
.messenger-chat-head img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    background: #e9eef5;
}

.conversation-item span {
    min-width: 0;
}

.conversation-item strong,
.conversation-item small,
.conversation-item em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-item small,
.conversation-item em {
    color: #6b7280;
    font-size: .82rem;
    font-style: normal;
}

.conversation-item b {
    display: grid;
    place-items: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 .35rem;
    color: #fff;
    background: #2563eb;
    border-radius: 999px;
    font-size: .78rem;
}

.messenger-chat {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-width: 0;
}

.messenger-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--app-border);
}

.messenger-messages {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
    overflow-y: auto;
    background: #f6f7f9;
}

.chat-message {
    display: flex;
}

.chat-message.is-mine {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: min(78%, 36rem);
    padding: .75rem .85rem;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: .85rem;
    box-shadow: 0 .25rem 1rem rgba(17, 24, 39, .04);
}

.chat-message.is-mine .chat-bubble {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
}

.chat-bubble p {
    margin: 0;
    line-height: 1.5;
}

.chat-bubble small {
    display: block;
    margin-top: .35rem;
    color: #6b7280;
    font-size: .75rem;
}

.chat-message.is-mine .chat-bubble small {
    color: rgba(255, 255, 255, .75);
}

.chat-bubble img {
    display: block;
    max-width: 16rem;
    max-height: 16rem;
    margin-bottom: .5rem;
    border-radius: .5rem;
    object-fit: cover;
}

.typing-indicator {
    padding: .4rem 1rem;
    color: #6b7280;
    background: #fff;
    border-top: 1px solid #edf0f3;
}

.messenger-compose {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    padding: 1rem;
    background: #fff;
    border-top: 1px solid var(--app-border);
}

.messenger-empty {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 28rem;
    padding: 2rem;
    color: #6b7280;
    text-align: center;
}

.saved-search-box {
    padding: .9rem;
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: .5rem;
}

.favorite-card-image {
    display: grid;
    place-items: center;
    height: 10rem;
    color: #6b7280;
    background: #f2f4f7;
    border-bottom: 1px solid #edf0f3;
    overflow: hidden;
}

.favorite-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-form-page,
.ad-form-page *,
.create-ad-page,
.create-ad-page * {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    letter-spacing: 0;
}

.ad-form-page .fa-solid,
.ad-form-page .fa-regular,
.ad-form-page .fa-brands,
.ad-form-page [class^="fa-"],
.ad-form-page [class*=" fa-"] {
    font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
}

.ad-form-page {
    color: #111827;
}

.ad-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.ad-form-breadcrumb {
    font-size: 13px;
    font-weight: 800;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: lowercase;
}

.ad-form-head h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    color: #111827;
    text-transform: lowercase;
}

.ad-plan-panel {
    flex: 1 1 520px;
    max-width: 680px;
    border: 1px solid #bde8c3;
    border-radius: 14px;
    background: #f6fcf7;
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(25, 135, 84, .06);
}

.ad-plan-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ad-plan-panel-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #188754;
    font-weight: 900;
    text-transform: lowercase;
}

.ad-plan-panel-head a {
    color: #188754;
    font-size: 13px;
    font-weight: 900;
    text-transform: lowercase;
}

.ad-plan-usage-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.ad-plan-usage-item {
    display: grid;
    gap: 1px;
    min-width: 0;
    border: 1px solid rgba(25, 135, 84, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
    padding: 7px 8px;
}

.ad-plan-usage-item i {
    color: #188754;
    font-size: 13px;
}

.ad-plan-usage-item span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: lowercase;
}

.ad-plan-usage-item strong {
    color: #1d2939;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.ad-form-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ad-form-cancel-top,
.ad-form-cancel {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 15px;
    font-weight: 900;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
}

.ad-form-cancel-top:hover,
.ad-form-cancel-top:focus,
.ad-form-cancel:hover,
.ad-form-cancel:focus {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.ad-form-save {
    min-height: 42px;
    border-radius: 10px;
    background: #0d6efd;
    border: 1px solid #0d6efd;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-transform: lowercase;
    padding: 9px 20px;
    box-shadow: 0 10px 24px rgba(13, 110, 253, .25);
}

.ad-form-save:hover,
.ad-form-save:focus {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff;
}

.ad-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.ad-form-main,
.ad-form-side {
    display: grid;
    gap: 18px;
}

/* Keep category-driven panels directly below the core listing details. */
.ad-form-main > .ad-form-card {
    order: 3;
}

.ad-form-card {
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .06);
    padding: 22px;
}

.ad-form-main > .ad-form-card.ad-category-card {
    order: 1;
}

.ad-form-main > .ad-form-card.ad-details-card {
    order: 2;
}

.ad-form-main > .ad-form-card.ad-custom-fields-card {
    order: 100;
}

.ad-form-main > .ad-form-card.ad-location-card {
    order: 101;
}

.ad-form-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf0f5;
}

.ad-form-card-head > span {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef4ff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}

.ad-form-card-head h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    text-transform: lowercase;
}

.ad-form-card-head p {
    margin: 3px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    text-transform: lowercase;
}

.ad-form-page .form-label {
    color: #374151;
    font-size: 14px;
    font-weight: 900;
    text-transform: lowercase;
    margin-bottom: 7px;
}

.ad-form-page .form-label b {
    color: #dc3545;
}

.ad-form-page .form-control,
.ad-form-page .form-select,
.ad-form-page textarea.form-control {
    min-height: 46px;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb;
    color: #111827;
    background: #fff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: none !important;
}

.ad-form-page textarea.form-control {
    min-height: 140px;
    padding-top: 12px;
}

.ad-form-page .form-control:focus,
.ad-form-page .form-select:focus,
.ad-form-page textarea.form-control:focus {
    border-color: #9ec5fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12) !important;
}

.ad-characteristic-control.is-filled .form-control,
.ad-characteristic-control.is-filled .form-select {
    border-color: rgba(25, 135, 84, .45);
    background-color: #f2fbf5;
    box-shadow: 0 12px 24px rgba(25, 135, 84, .08) !important;
}

.ad-characteristic-control.is-filled .ad-custom-select-btn {
    border-color: rgba(25, 135, 84, .45);
    background-color: #f2fbf5;
    box-shadow: 0 12px 24px rgba(25, 135, 84, .08) !important;
}

.ad-characteristic-control.is-filled > i {
    color: #198754;
}

.ad-characteristic-control .flatpickr-calendar {
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: auto !important;
    z-index: 1085;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .16);
}

.ad-characteristic-control .flatpickr-calendar::before,
.ad-characteristic-control .flatpickr-calendar::after {
    display: none;
}

.ad-development-unit-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(16, 24, 40, .05);
    padding: 1rem;
    margin-bottom: 1rem;
}

.ad-development-unit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: .85rem;
    margin-bottom: 1rem;
}

.ad-development-unit-title {
    min-width: 9rem;
    display: flex;
    align-items: flex-start;
    align-self: flex-start;
    padding-top: 0;
}

.ad-development-unit-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .45rem .7rem;
    font-size: .82rem;
    font-weight: 900;
    text-transform: lowercase;
    margin-top: 0;
}

.ad-development-unit-head h3 {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 950;
    text-transform: lowercase;
}

.ad-development-unit-controls {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto auto;
    align-items: start;
    gap: .65rem;
    flex: 1;
}

.ad-development-unit-price-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .4rem;
}

.ad-development-unit-price-row .ad-input-icon {
    width: min(220px, 100%);
}

.ad-development-unit-price-row .ad-check {
    min-height: 46px;
}

.ad-unit-availability-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.ad-unit-availability-option {
    min-height: 38px;
    border-radius: 10px;
    color: #667085;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .7rem;
    font-size: .86rem;
    font-weight: 950;
    white-space: nowrap;
}

.ad-unit-availability-option:hover {
    background: #fff;
    color: #198754;
}

.btn-check:checked + .ad-unit-availability-option {
    background: #e8f8ef;
    color: #198754;
    box-shadow: inset 0 0 0 1px rgba(25, 135, 84, .2);
}

.btn-check[value="not_available"]:checked + .ad-unit-availability-option {
    background: #fff1f2;
    color: #dc3545;
    box-shadow: inset 0 0 0 1px rgba(220, 53, 69, .18);
}

.ad-development-copy-check {
    background: #f8fbff;
    border-color: #dbeafe;
}

.ad-development-subsection {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: 1rem;
}

.ad-development-subsection:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.ad-development-subsection h4 {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #198754;
    font-size: .95rem;
    font-weight: 950;
    margin: 0 0 .8rem;
    text-transform: lowercase;
}

@media (max-width: 991.98px) {
    .ad-development-unit-head {
        flex-direction: column;
    }

    .ad-development-unit-controls {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .ad-development-unit-price-row {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ad-development-unit-price-row .ad-input-icon {
        width: 100%;
    }

    .ad-unit-availability-toggle {
        width: 100%;
        justify-content: stretch;
    }

    .ad-unit-availability-option {
        flex: 1;
        justify-content: center;
    }
}

.ad-form-page .form-control.is-invalid,
.ad-form-page .form-select.is-invalid,
.ad-form-page textarea.form-control.is-invalid,
.ad-form-page.was-validated .form-control:invalid,
.ad-form-page.was-validated .form-select:invalid,
.ad-form-page.was-validated textarea.form-control:invalid {
    border-color: #ef4444 !important;
    background-color: #fff7f7 !important;
    background-image: none !important;
    box-shadow: 0 0 0 .18rem rgba(239, 68, 68, .12) !important;
}

.ad-form-page.was-validated .ad-input-icon .form-control:invalid,
.ad-form-page.was-validated .ad-input-icon .form-select:invalid,
.ad-input-icon .form-control.is-invalid,
.ad-input-icon .form-select.is-invalid {
    padding-left: 42px !important;
    padding-right: 48px !important;
}

.ad-form-page.was-validated .ad-input-icon:has(.form-control:invalid)::after,
.ad-form-page.was-validated .ad-input-icon:has(.form-select:invalid)::after,
.ad-input-icon:has(.form-control.is-invalid)::after,
.ad-input-icon:has(.form-select.is-invalid)::after {
    content: "\f057";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 23px;
    transform: translateY(-50%);
    color: #ef4444;
    font-size: 18px;
    z-index: 4;
    pointer-events: none;
}

.ad-form-page.was-validated .ad-input-icon:has(.form-control:invalid) > i,
.ad-form-page.was-validated .ad-input-icon:has(.form-select:invalid) > i,
.ad-input-icon:has(.form-control.is-invalid) > i,
.ad-input-icon:has(.form-select.is-invalid) > i {
    color: #ef4444;
}

.ad-form-page .invalid-feedback {
    color: #ef4444;
    font-size: 13px;
    font-weight: 800;
    margin-top: 6px;
    padding-left: 4px;
    text-transform: lowercase;
}

.ad-input-icon {
    position: relative;
}

.ad-input-icon > i {
    position: absolute;
    left: 14px;
    top: 23px;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 2;
    font-size: 16px;
}

.ad-input-icon .form-control,
.ad-input-icon .form-select {
    padding-left: 42px;
}

.ad-select-icon .form-select {
    padding-right: 42px;
}

.ad-select-native {
    position: absolute !important;
    inset: auto auto 0 42px;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ad-custom-select {
    position: relative;
    width: 100%;
}

.ad-custom-select-btn {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    text-align: left;
    padding: 10px 42px;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-custom-select-btn:focus {
    border-color: #9ec5fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
    outline: 0;
}

.ad-custom-select.is-disabled .ad-custom-select-btn {
    opacity: .68;
    cursor: not-allowed;
    background: #f8fafc;
}

.ad-custom-select-menu {
    display: none;
    position: absolute;
    z-index: 3000;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #d6e6ff;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
    padding: 6px;
}

.ad-custom-select.open .ad-custom-select-menu {
    display: block;
}

.ad-custom-option {
    width: 100%;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #344054;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    text-align: left;
    font-size: 14px;
    font-weight: 800;
}

.ad-custom-option:hover,
.ad-custom-option.is-selected {
    background: #eef4ff;
    color: #0d6efd;
}

.ad-custom-option.is-main {
    font-weight: 950;
    color: #0d6efd;
    background: #eef4ff;
}

.ad-custom-option.is-main.is-disabled {
    cursor: not-allowed;
    opacity: .78;
}

.ad-custom-option.is-main.is-disabled:hover {
    color: #0d6efd;
    background: #eef4ff;
}

.ad-select-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef4ff, #ffffff);
    border: 1px solid #d6e6ff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .02em;
}

.ad-select-logo-mark img {
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
    display: block;
}

.ad-select-logo-mark:not(.is-fallback) span {
    display: none;
}

.ad-select-logo-mark.is-fallback span {
    display: inline;
}

.ad-select-logo-image {
    background: #fff;
}

.ad-settings-select .ad-custom-select-btn {
    min-height: 50px;
    border-radius: 12px;
    border-color: #dfe5ef;
    padding-left: 52px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .04);
}

.ad-category-condition-row {
    align-items: end;
    padding: 14px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.ad-settings-select {
    border-radius: 12px;
}

.ad-settings-select .form-select {
    min-height: 50px;
    border-radius: 12px !important;
    border-color: #dfe5ef;
    background-color: #fff;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .04) !important;
}

.ad-settings-select > i {
    width: 28px;
    height: 28px;
    left: 12px;
    border-radius: 9px;
    background: #eef4ff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.ad-settings-select .form-select {
    padding-left: 52px;
}

.ad-settings-select .form-select:hover {
    border-color: #c7d2fe;
}

.ad-settings-select .form-select:focus {
    border-color: #86b7fe;
    background-color: #fff;
    box-shadow: 0 0 0 .18rem rgba(13, 110, 253, .11), 0 10px 24px rgba(16, 24, 40, .06) !important;
}

.ad-form-page .ad-category-main-option {
    font-weight: 900;
    color: #0d6efd;
    background-color: #eef4ff;
}

.ad-form-page .ad-category-child-option {
    font-weight: 700;
    color: #4b5563;
}

.ad-check {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px 0 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    position: relative;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ad-check .form-check-input {
    margin-top: 0;
    margin-left: 0;
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    box-shadow: none;
    cursor: pointer;
}

.ad-check .form-check-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .18rem rgba(13, 110, 253, .14);
}

.ad-check .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.ad-check .form-check-label {
    margin-bottom: 0;
    font-weight: 900;
    color: #374151;
    text-transform: lowercase;
    cursor: pointer;
}

.ad-check:hover {
    border-color: rgba(25, 135, 84, .35);
    background: #fbfffc;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .05);
}

.ad-check:has(.form-check-input:checked) {
    border-color: rgba(25, 135, 84, .45);
    background: #f2fbf5;
    box-shadow: 0 12px 24px rgba(25, 135, 84, .08);
}

.ad-type-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.ad-clothing-gender-toggle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.ad-type-option {
    position: relative;
    min-height: 54px;
    border: 1px solid #dbe7f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    color: #344054;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .75rem .9rem;
    font-weight: 900;
    text-transform: lowercase;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ad-type-option::after {
    content: "\f00c";
    font-family: "font awesome 6 free";
    font-weight: 900;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    position: absolute;
    top: .55rem;
    right: .55rem;
    opacity: 0;
    transform: scale(.72);
    transition: opacity .18s ease, transform .18s ease;
}

.ad-type-option i {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #0d6efd;
}

.btn-check:checked + .ad-type-option {
    background: #eef9f3;
    border-color: #198754;
    color: #147a3f;
    box-shadow: 0 0 0 .18rem rgba(25, 135, 84, .11), 0 12px 26px rgba(32, 201, 151, .14);
}

.btn-check:checked + .ad-type-option i {
    background: #dff6e9;
    color: #16884a;
}

.btn-check:checked + .ad-type-option::after {
    opacity: 1;
    transform: scale(1);
}

.ad-type-option:hover {
    transform: translateY(-1px);
    border-color: #9ec5fe;
    box-shadow: 0 12px 24px rgba(16, 24, 40, .06);
}

.ad-feature-check {
    width: 100%;
    min-height: 54px;
    border-radius: 12px;
}

.ad-feature-check .form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.15;
}

.ad-feature-check .form-check-label i {
    width: 20px;
    color: #0d6efd;
    text-align: center;
    font-size: 15px;
}

.ad-feature-check:has(.form-check-input:checked) .form-check-label i {
    color: #198754;
}

.ad-size-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .65rem;
}

.ad-size-option {
    min-height: 46px;
    border: 1px solid #dbe7f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    color: #344054;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .58rem .65rem;
    font-weight: 900;
    text-transform: lowercase;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn-check:checked + .ad-size-option {
    background: #eef9f3;
    border-color: #198754;
    color: #147a3f;
    box-shadow: 0 0 0 .16rem rgba(25, 135, 84, .11), 0 10px 22px rgba(32, 201, 151, .12);
}

.ad-size-option:hover {
    transform: translateY(-1px);
    border-color: #9ec5fe;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .06);
}

.ad-color-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .85rem;
}

.ad-color-option {
    min-height: 76px;
    border: 1px solid #dbe7f7;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    display: grid;
    place-items: center;
    gap: .38rem;
    padding: .65rem .5rem;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ad-color-option span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: block;
    border: 2px solid rgba(255, 255, 255, .96);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .12), 0 9px 18px rgba(15, 23, 42, .12);
}

.ad-color-option small {
    color: #475467;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    text-transform: lowercase;
}

.btn-check:checked + .ad-color-option {
    background: #eef9f3;
    border-color: #198754;
    box-shadow: 0 0 0 .16rem rgba(25, 135, 84, .11), 0 12px 24px rgba(32, 201, 151, .12);
}

.btn-check:checked + .ad-color-option span {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(25, 135, 84, .42), 0 10px 22px rgba(15, 23, 42, .14);
}

.ad-color-option:hover {
    transform: translateY(-1px);
    border-color: #9ec5fe;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .06);
}

.ad-form-actions {
    display: grid;
    gap: 10px;
}

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

.ad-upgrade-item {
    border: 1px solid #edf0f5;
    border-radius: 12px;
    background: #fbfcff;
    padding: 12px;
    display: grid;
    gap: 12px;
}

.ad-upgrade-item.is-active {
    border-color: #b7e4c7;
    background: #f0fdf4;
    box-shadow: 0 10px 28px rgba(22, 163, 74, .08);
}

.ad-upgrade-item.is-active .ad-upgrade-icon {
    background: #dcfce7;
    color: #15803d;
}

.ad-upgrade-item.is-disabled {
    border-color: #f5c2c7;
    background: #fff5f5;
    box-shadow: 0 10px 26px rgba(220, 53, 69, .05);
}

.ad-upgrade-item.is-disabled .ad-upgrade-icon {
    background: #fde2e4;
    color: #b02a37;
}

.ad-upgrade-item.is-disabled .ad-upgrade-title,
.ad-upgrade-item.is-disabled .ad-upgrade-meta {
    color: #9f1239;
}

.ad-upgrade-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.ad-upgrade-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef4ff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ad-upgrade-title {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.ad-upgrade-meta {
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.ad-upgrade-form {
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px;
    align-items: center;
}

.ad-upgrade-coupon {
    grid-column: 1 / -1;
}

.ad-upgrade-coupon .input-group .form-control {
    min-height: 2.25rem;
}

.ad-upgrade-coupon .input-group .btn {
    min-height: 2.25rem;
}

.ad-upgrade-pay-btn {
    border-color: #b7e4c7;
    background: #eaf8ef;
    color: #18794e;
    font-weight: 900;
}

.ad-upgrade-pay-btn:hover,
.ad-upgrade-pay-btn:focus {
    border-color: #8fd19e;
    background: #dff3e6;
    color: #146c43;
}

.ad-map-box {
    width: 100%;
    height: 340px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #f9fafb;
}

@media (max-width: 1199.98px) {
    .ad-form-head {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .ad-plan-panel {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .ad-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ad-form-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ad-plan-panel {
        order: 0;
        width: 100%;
    }

    .ad-plan-usage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ad-form-head-actions {
        width: 100%;
    }

    .ad-form-card {
        padding: 18px;
    }

    .ad-form-cancel-top,
    .ad-form-cancel,
    .ad-form-save {
        width: 100%;
    }
}

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

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

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

    .bazaar-featured-grid,
    .bazaar-highlighted-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .bazaar-latest-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ad-detail-side {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .bazaar-category-grid {
        grid-template-columns: 1fr;
    }

    .bazaar-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .bazaar-vip-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .bazaar-premium-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .bazaar-featured-grid,
    .bazaar-highlighted-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .bazaar-latest-list a {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .ad-gallery-main,
    .ad-gallery-button {
        min-height: 18rem;
    }

    .ad-gallery-button img {
        height: 18rem;
    }

    .ad-detail-specs,
    .ad-stat-grid {
        grid-template-columns: 1fr;
    }

    .messenger-shell {
        grid-template-columns: 1fr;
    }

    .messenger-list {
        max-height: 16rem;
        border-right: 0;
        border-bottom: 1px solid var(--app-border);
    }

    .messenger-chat-head,
    .messenger-compose {
        grid-template-columns: 1fr;
    }

    .messenger-chat-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .messenger-compose {
        display: flex;
        flex-direction: column;
    }

    .chat-bubble {
        max-width: 92%;
    }
}

@media (max-width: 479.98px) {
    .bazaar-featured-grid,
    .bazaar-highlighted-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .public-hero {
        min-height: auto;
    }

    .public-hero-shade {
        background: rgba(251, 250, 247, .9);
    }

    .public-hero-content {
        padding: 4rem 0 3rem;
    }
}

@media (max-width: 1199.98px) {
    .public-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .public-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e9eef5 100%);
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.auth-card {
    width: min(100%, 28rem);
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: .75rem;
    box-shadow: 0 1rem 3rem rgba(17, 24, 39, .08);
    padding: clamp(1.25rem, 4vw, 2rem);
}

.auth-card-wide {
    width: min(100%, 36rem);
}

.auth-brand {
    color: var(--app-text);
    font-weight: 800;
    text-decoration: none;
}

.stat-card {
    min-height: 8rem;
}

.avatar-preview {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    border: .25rem solid #eef2f7;
    background: #f8fafc;
}

.user-section-tabs {
    gap: 8px;
    border: 1px solid #d6e6ff;
    border-radius: 14px;
    background: #f8fbff;
    padding: 6px;
    margin-bottom: 16px !important;
}

.user-section-tabs .nav-item {
    margin: 0;
}

.user-section-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    color: #0d6efd;
    background: transparent;
    font-size: 14px;
    font-weight: 900;
    text-transform: lowercase;
    padding: .5rem .85rem;
    white-space: nowrap;
}

.user-section-tabs .nav-link i {
    font-size: 16px;
    line-height: 1;
}

.user-section-tabs .nav-link:hover,
.user-section-tabs .nav-link:focus {
    background: #eef4ff;
    color: #0b5ed7;
}

.user-section-tabs .nav-link.active {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 110, 253, .18);
}

@media (max-width: 767.98px) {
    .user-section-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
    }
}

.ad-uploader {
    border: 2px dashed #cbd5e1;
    border-radius: .75rem;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color .2s ease, background .2s ease;
}

.ad-uploader.is-dragging,
.ad-uploader:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.ad-uploader.is-uploading {
    pointer-events: none;
    opacity: .76;
}

.ad-upload-loader {
    margin-top: .85rem;
    min-height: 42px;
    border: 1px solid #bde8c3;
    border-radius: 14px;
    background: #eef9f0;
    color: #188754;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-weight: 900;
    text-transform: lowercase;
    box-shadow: 0 10px 22px rgba(25, 135, 84, .08);
}

.ad-upload-loader .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: .16rem;
}

.ad-image-item {
    cursor: grab;
}

.ad-preview-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ad-preview-empty {
    min-height: 20rem;
    background: #f8fafc;
}

.search-card {
    overflow: hidden;
}

.search-card-image {
    height: 12rem;
    background: #f8fafc;
}

.search-card-image img,
.search-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-card-placeholder {
    display: grid;
    place-items: center;
    color: #6c757d;
}

.search-card-list {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) 1fr;
}

.search-map {
    min-height: 26rem;
    border-radius: .75rem;
    border: 1px solid var(--app-border);
    overflow: hidden;
}

.search-form-card {
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .06);
    overflow: hidden;
}

.search-form-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid #edf0f5;
}

.search-form-card-head span {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef4ff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}

.search-form-card-head h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    text-transform: lowercase;
}

.search-form-card-head p {
    margin: 3px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    text-transform: lowercase;
}

.search-form-card-body {
    padding: 22px;
}

.search-input-icon {
    position: relative;
}

.search-input-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 2;
    font-size: 16px;
}

.search-input-icon .form-control,
.search-input-icon .form-select {
    min-height: 46px;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb;
    color: #111827;
    background: #fff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: none !important;
    padding-left: 42px;
}

.search-input-icon .form-control:focus,
.search-input-icon .form-select:focus {
    border-color: #9ec5fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12) !important;
}

.search-select-icon .form-select {
    padding-right: 42px;
}

.search-check {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.search-check .form-check-input {
    margin-top: 0;
}

.search-check .form-check-label {
    margin-bottom: 0;
    color: #374151;
    font-size: 14px;
    font-weight: 900;
    text-transform: lowercase;
}

.search-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.search-view-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d6e6ff;
    border-radius: 12px;
    background: #f8fbff;
    padding: 6px;
}

.search-view-group .btn {
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #0d6efd;
    font-size: 14px;
    font-weight: 900;
    text-transform: lowercase;
    box-shadow: none !important;
}

.search-view-group .btn:hover,
.search-view-group .btn:focus {
    background: #eef4ff;
    color: #0b5ed7;
}

.search-view-group .btn.active {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 110, 253, .18) !important;
}

.search-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-submit-btn {
    min-height: 42px;
    border-radius: 10px;
    background: #0d6efd;
    border: 1px solid #0d6efd;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-transform: lowercase;
    padding: 9px 20px;
    box-shadow: 0 10px 24px rgba(13, 110, 253, .25);
}

.search-submit-btn:hover,
.search-submit-btn:focus {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff;
}

.search-outline-btn {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #d6e6ff;
    background: #eef4ff;
    color: #0d6efd;
    font-size: 14px;
    font-weight: 900;
    text-transform: lowercase;
}

.search-outline-btn:hover,
.search-outline-btn:focus {
    background: #dceaff;
    border-color: #9ec5fe;
    color: #0b5ed7;
}

.search-saved-box {
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #fbfcff;
    padding: 16px;
}

@media (max-width: 575.98px) {
    .search-card-list {
        display: block;
    }

    .search-form-card-head,
    .search-form-card-body {
        padding: 18px;
    }
}

@media (max-width: 767.98px) {
    .search-form-actions,
    .search-actions-right {
        align-items: stretch;
        flex-direction: column;
    }

    .search-view-group {
        width: 100%;
        justify-content: space-between;
    }

    .search-view-group .btn,
    .search-submit-btn,
    .search-outline-btn {
        width: 100%;
        justify-content: center;
    }
}

.app-shell {
    min-height: 100vh;
}

.app-main {
    min-height: 100vh;
}

.app-sidebar {
    width: var(--app-sidebar-width);
    background: #111827;
    color: #f8f9fa;
}

.sidebar-brand {
    align-items: center;
    min-height: 3.5rem;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-brand a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-nav {
    padding: .75rem;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, .78);
    border-radius: .5rem;
    padding: .65rem .8rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus,
.sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.card {
    border-radius: .5rem;
}

.language-selector .dropdown-menu {
    min-width: 9rem;
}

.translation-table th,
.translation-table td {
    min-width: 14rem;
}

.translation-table th:first-child {
    min-width: 12rem;
}

.form-control,
.form-select,
.btn {
    border-radius: .45rem;
}

@media (min-width: 992px) {
    .app-shell {
        display: flex;
    }

    .app-sidebar {
        position: sticky;
        top: 0;
        min-height: 100vh;
        border-right: 1px solid var(--app-border);
    }

    .app-main {
        flex: 1;
        min-width: 0;
    }
}

.mobile-bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--app-border);
    backdrop-filter: blur(10px);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-height: 4rem;
    color: var(--app-text-muted);
    text-decoration: none;
    font-size: .76rem;
    font-weight: 700;
}

.mobile-bottom-nav i {
    font-size: 1.15rem;
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav a:focus {
    color: var(--app-primary);
}

@media (max-width: 991.98px) {
    .app-content {
        padding-bottom: 5.5rem !important;
    }
}

.um-shell {
    display: grid;
    gap: 1.25rem;
    font-family: var(--app-font);
}

.um-card {
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.um-hero {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 56%, #eef9f0 100%);
    border-color: #dce8ff;
}

.um-hero:after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -48px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(13, 110, 253, .08);
}

.um-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
    gap: 1rem;
    align-items: stretch;
}

.um-kicker {
    color: #188754;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.um-hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.05;
}

.um-hero p {
    max-width: 640px;
    margin: .6rem 0 0;
    color: #667085;
    font-weight: 800;
}

.um-hero-side {
    display: grid;
    gap: .65rem;
    align-content: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .07);
    backdrop-filter: blur(10px);
}

.um-hero-actions,
.um-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.um-hero-actions {
    margin-top: 1rem;
}

.um-soft-btn {
    min-height: 42px;
    border-radius: 999px !important;
    padding: .52rem .95rem;
    font-weight: 900;
}

.um-green-btn {
    border: 1px solid #bde8c3;
    background: #eef9f0;
    color: #188754;
}

.um-green-btn:hover {
    background: #dff4e2;
    color: #11683e;
}

.um-blue-btn {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.um-blue-btn:hover {
    background: #dbeafe;
    color: #1e40af;
}

.um-red-btn {
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.um-red-btn:hover {
    background: #ffe4e6;
    color: #9f1239;
}

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

.um-stat-grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.um-stat {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 108px;
    padding: 1rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.um-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .09);
}

.um-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.um-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.55rem;
    line-height: 1;
    text-align: center;
}

.um-tone-blue .um-icon,
.um-icon.blue {
    background: #eef4ff;
    color: #0d6efd;
}

.um-tone-green .um-icon,
.um-icon.green {
    background: #ecfdf3;
    color: #16a34a;
}

.um-tone-amber .um-icon,
.um-icon.amber {
    background: #fffbeb;
    color: #d97706;
}

.um-tone-violet .um-icon,
.um-icon.violet {
    background: #f4f3ff;
    color: #7c3aed;
}

.um-tone-pink .um-icon,
.um-icon.pink {
    background: #fdf2f8;
    color: #db2777;
}

.um-stat span,
.um-muted {
    display: block;
    color: #667085;
    font-size: .82rem;
    font-weight: 800;
}

.um-stat strong {
    display: block;
    color: #111827;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.1;
}

.um-panel {
    overflow: hidden;
}

.um-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.um-panel-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
}

.um-panel-title .um-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
}

.um-panel-title .um-icon i {
    font-size: 1.22rem;
}

.um-panel-body {
    padding: 1.1rem;
}

.um-list {
    display: grid;
    gap: .85rem;
}

.um-list-card {
    border: 1px solid #edf2f7;
    border-radius: 16px;
    background: #fff;
    padding: 1rem;
}

.um-list-card:hover {
    border-color: #bfdbfe;
    background: #fbfdff;
}

.um-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: .34rem .62rem;
    font-size: .82rem;
    font-weight: 900;
    white-space: nowrap;
}

.um-badge.green {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #16a34a;
}

.um-badge.amber {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.um-badge.red {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.um-badge.violet {
    border-color: #ddd6fe;
    background: #f4f3ff;
    color: #6d28d9;
}

.um-form-label {
    margin-bottom: .4rem;
    color: #344054;
    font-weight: 900;
}

.um-control-wrap {
    position: relative;
}

.um-control-icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    pointer-events: none;
}

.um-control-icon.textarea {
    top: 1.05rem;
    transform: none;
}

.um-form-control {
    min-height: 46px;
    border: 1px solid #d8e0ec;
    border-radius: 14px !important;
    background: #fff;
    padding-left: 2.45rem;
    font-weight: 800;
}

.um-form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 .22rem rgba(13, 110, 253, .1) !important;
}

textarea.um-form-control {
    min-height: 120px;
    padding-top: .85rem;
}

.um-table {
    margin: 0;
}

.um-table thead th {
    padding: .85rem 1rem;
    border-bottom: 1px solid #edf2f7;
    background: #f8fbff;
    color: #667085;
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}

.um-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f0f3f7;
    vertical-align: middle;
}

.um-table tbody tr:hover {
    background: #fbfdff;
}

.um-empty {
    padding: 2.25rem 1rem;
    text-align: center;
    color: #667085;
    font-weight: 800;
}

.um-empty-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    border-radius: 17px;
    background: #eef4ff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.um-empty-icon i {
    font-size: 1.55rem;
}

.um-ad-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
    background: #f8fafc;
}

.preserve-case {
    text-transform: none !important;
}

.js-region-select,
.js-location-select,
.js-region-select option,
.js-location-select option,
.js-region-select + .ad-custom-select,
.js-location-select + .ad-custom-select,
.js-region-select + .ad-custom-select *,
.js-location-select + .ad-custom-select * {
    text-transform: none !important;
}

@media (max-width: 1399.98px) {
    .um-stat-grid,
    .um-stat-grid.five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .ad-size-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ad-color-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .um-hero-grid,
    .um-stat-grid,
    .um-stat-grid.five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .um-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .ad-type-toggle,
    .ad-clothing-gender-toggle {
        grid-template-columns: 1fr;
    }

    .ad-size-grid,
    .ad-color-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .um-hero,
    .um-panel-body {
        padding: 1rem;
    }

    .um-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .um-stat-grid,
    .um-stat-grid.five {
        grid-template-columns: 1fr;
    }
}
