.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 400;
    line-height: 1.2;
    color: #6267cf;
}

h6 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #6267cf;
}

a {
    color: #6267cf;
    text-decoration: underline;
}

a:hover {
    color: #6267cf;
    text-decoration: none;
}

.badge.bg-warning {
    color: #565771 !important;
    border-radius: 10px;
}

.badge.hero-badge {
    position: relative;
    z-index: 0;
    white-space: normal;
    word-break: break-word;
    border-radius: 10px;
    background-color: #ffc107 !important;
    background-image: none !important;
    overflow: hidden;
    animation: hero-badge-border-pulse 3s ease-in-out infinite;
}

.badge.hero-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 25%,
        rgba(255, 255, 255, 0.9) 50%,
        transparent 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: hero-badge-shimmer 3s ease-in-out infinite;
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes hero-badge-border-pulse {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.7);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        border-color: #fff;
        box-shadow: 0 0 24px 6px rgba(255, 255, 255, 0.45);
    }
}

@keyframes hero-badge-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 1200px) {
    .display-4 {
    font-size: calc(1.475rem + 1.7vw);
    font-weight: 300;
    line-height: 1.2;
}

.badge {
    white-space: unset;
}
}



.avatar-top {
    border: 2px solid #ffffff;
}

.bg-dark {
    --bs-bg-opacity: 1;
    background-color: rgb(74 73 95) !important;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgb(98 103 207) !important;
}


.btn:hover {
    color: var(--bs-btn-hover-color);
    background-color: #df6f22;
    border-color: #df6f22;;
}


.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #e9813c;
    --bs-btn-border-color: #e9813c;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ca763d;
    --bs-btn-hover-border-color: #ca763d;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ca763d;
    --bs-btn-active-border-color: #ca763d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #e9813c;
    --bs-btn-disabled-border-color: #e9813c;
}

.text-primary {
    --bs-text-opacity: 1;
    color: #6267cf !important;
}

.btn-outline-primary {
    background-color: #e9813c !important;
    color: #fff;
}

.btn-outline-primary:hover {
    background-color: #ca763d !important;
    color: #fff;
}

.btn-outline-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-outline-secondary:hover {
    background-color: #565c61;
    color: #fff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main, body {
    background-color: #f3f3f3;
}

main {
    min-height: calc(100vh - 62px);
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

a h5:hover {
    color: #2129cf !important;
}

.hero h1,
.hero p {
    color: white;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.9);
}

.card {
    border: none;
    box-shadow: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 15px;
}

a .card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn {
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-outline-primary {
    background-color: #0d6efd;
    color: #fff;
}

.btn-outline-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-outline-success {
    background-color: #198754;
    color: #fff;
}

.btn-outline-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-outline-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-outline-info {
    background-color: #0dcaf0;
    color: #000;
}

.btn-outline-light {
    background-color: #f8f9fa;
    color: #000;
}

.btn-outline-dark {
    background-color: #212529;
    color: #fff;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.list-group-item {
    border-radius: 15px !important;
    border: 0 !important;
}

#chatMessages {
    background-color: #f8f9fa;
}

@keyframes badge-attention {

    0%,
    83.33% {
        opacity: 1;
    }

    85.56% {
        opacity: 0;
    }

    88.89% {
        opacity: 1;
    }
}

.navbar .badge.bg-danger.animate-attention {
    animation: badge-attention 3.4s steps(1, end) infinite;
}

.card-header {
    padding: var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);
    margin-bottom: 0;
    color: var(--bs-card-cap-color);
    background-color: #ffffff;
    border-bottom: 0;
}

.card-header:first-child {
    border-radius: 15px 15px 0 0;
}

@media (min-width: 1200px) {

    .h1,
    h1 {
        font-size: 2.0rem;
    }
    .h2,
    h2 {
        font-size: 1.5rem;
    }
}

.list-group-item-primary {
    --bs-list-group-color: var(--bs-primary-text-emphasis);
    --bs-list-group-bg: #cbf5d4;
    --bs-list-group-border-color: #a6f5b7;
    --bs-list-group-action-hover-color: var(--bs-emphasis-color);
    --bs-list-group-action-hover-bg: #a6f5b7;
    --bs-list-group-action-active-color: var(--bs-emphasis-color);
    --bs-list-group-action-active-bg: var(--bs-primary-border-subtle);
    --bs-list-group-active-color: var(--bs-primary-bg-subtle);
    --bs-list-group-active-bg: var(--bs-primary-text-emphasis);
    --bs-list-group-active-border-color: var(--bs-primary-text-emphasis);
}

.category .badge.bg-primary {
    background-color: #ffffff !important;
    border: 1px solid #6267cf;
    color: #6064b1;
    font-size: 15px;
    font-weight: 400;
}

.category,
.category * {
    -webkit-tap-highlight-color: transparent;
}

.category a:focus:not(:focus-visible) {
    outline: none;
}

.category .card {
    position: relative;
}

.category .card-body {
    position: relative;
    z-index: 1;
    background-color: #fff;
    border-radius: 15px;
}

.category .category-card-icon {
    float: right;
    margin-left: 12px;
    margin-bottom: 8px;
    width: 56px;
    height: 56px;
    object-fit: contain;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.category .category-children {
    position: absolute;
    top: calc(100% - 30px);
    left: 0;
    right: 0;
    padding: 8px 16px 16px;
    background-color: #fff;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 14px 22px -6px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 100;
    pointer-events: none;
}

@media (hover: hover) {
    .category .card:hover {
        z-index: 100;
    }

    .category .card:hover .category-children {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.category .badge.bg-primary:hover {
    background-color: #6267cf !important;
    color: white;
}

.cat-info {
    font-size: 14px;
}

@media (max-width: 767.98px), (hover: none) {
    .category .category-children {
        position: static;
        margin-top: 8px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .category .card .badge.bg-primary {
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        left: auto !important;
        transform: none !important;
    }

    .category .category-card-icon {
        float: none !important;
        display: block !important;
        margin: 0 auto 12px !important;
    }
}

.tel-chat {
    color: #6267cf;
}

.tel-chat:hover {
    color: #6064b1;
}

.navbar .d-lg-none .nav-link {
    padding: 0.5rem 0.25rem;
    line-height: 1;
}

.navbar .d-lg-none .nav-link.chat-link {
    margin-left: 15px;
}

.navbar .navbar-toggler {
    padding: 0.3rem 0.5rem;
    font-size: 1.25rem;
    margin-left: 12px;
}

.navbar-brand {
    padding-top: 0;
    margin-right: 8px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.2s ease;
}

.navbar.navbar-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767.98px) {
    .navbar.navbar-scrolled {
        box-shadow: none;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card {
        border-radius: 12px;
    }

    .card-header {
        padding: 16px;
        font-size: 1.1rem;
    }

    .card-body {
        padding: 16px;
    }

    .form-control {
        font-size: 16px;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .form-label {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 6px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .btn-sm {
        padding: 8px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h5 {
        font-size: 1.05rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead th {
        font-size: 0.75rem;
        padding: 8px;
    }

    .table tbody td {
        padding: 10px 8px;
    }

    .two-factor-digit {
        font-size: 1.5rem !important;
        padding: 14px 0 !important;
        min-height: 56px;
    }

    .list-group-item {
        padding: 14px 16px;
    }

    .modal-dialog {
        margin: 16px;
    }

    .alert {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
}

.min-width-0 {
    min-width: 0;
}

.chat-list-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.chat-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.chat-list-item .chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-list-item .chat-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #212529;
}

.chat-list-item .chat-subtitle {
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.chat-list-item .chat-meta {
    font-size: 0.75rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-list-item .unread-badge {
    background: #dc3545;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.chat-list-item.has-unread {
    border-left: 3px solid #dc3545;
}

.chat-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 126px);
    padding: 0;
    max-width: 100%;
}

.chat-page .chat-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 15px 15px 0 0;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-page .chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 16px;
    background: url(/img/chat-bg.png);
}

.chat-page .chat-input-area {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 15px 15px;
    padding: 10px 16px;
    position: sticky;
    bottom: 0;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.chat-bubble.own {
    background: #6267cf;
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-bubble.other {
    background: #fff;
    color: #212529;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.chat-bubble .message-text {
    margin-bottom: 4px;
    line-height: 1.4;
}

.chat-bubble .message-meta {
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.chat-bubble.own .message-meta {
    color: rgba(255, 255, 255, 0.7);
}

.chat-bubble.other .message-meta {
    color: #adb5bd;
}

.unread-message .chat-bubble.other {
    border: 1px solid #ffc107;
}

.chat-page .chat-header .back-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    padding: 4px;
}

.chat-page .chat-header .back-link:hover {
    color: #212529;
}

@media (max-width: 767.98px) {
    .chat-list-item {
        padding: 12px 14px;
    }

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

    .chat-list-item .chat-title {
        font-size: 0.92rem;
    }

    .chat-list-item .chat-subtitle {
        font-size: 0.78rem;
    }
    .dropdown {
        margin-left: 15px;
    }

    .chats-search-form .input-group-text {
        display: none;
    }

    .chats-search-form .form-control {
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 10px 0 0 10px;
    }
}

.nav-item {
    margin-left: 12px;
}

.nav-item:first-child {
    margin-left: 0px;
}

.favorite-toggle {
    color: #6267cf;
    background: transparent;
    border: none;
    z-index: 2;
}

.favorite-toggle:hover {
    color: #e9813c;
}

.favorite-toggle.text-danger {
    color: #e9813c;
}

.favorite-toggle.text-danger:hover {
    color: #e9813c;
}

.active>.page-link, .page-link.active {
    background-color: #6267cf;
    border-color: #6267cf;
}

.page-link:focus {
    color: #6267cf;
}

.form-check {
    margin-bottom: 0;
}

.autocomplete {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-group {
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6267cf;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #212529;
}

.autocomplete-item:hover,
.autocomplete-item:focus {
    background: #f3f3f3;
    outline: none;
}

.search-form-card {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-form-card .input-group-text {
    background: #f8f9fa;
    border-right: 0;
    padding: 10px 16px;
    font-size: 1rem;
}

.search-form-card .input-group .form-control {
    border-left: 0;
    padding: 10px 16px;
    font-size: 1rem;
}

.search-form-card .input-group .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.form-control.search-input {
    border-radius: 0px !important;
}

.search-form-card .input-group .autocomplete {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: stretch;
}

.search-form-card .input-group .autocomplete .form-control {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.search-form-card .input-group .btn {
    align-self: stretch;
}

.category-seo-description {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
}

.category-seo-close {
    float: right;
    margin-left: 12px;
    margin-bottom: 8px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.category-seo-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #212529;
}

.category-seo-description.is-hidden {
    display: none;
}

.sidebar-promo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-promo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.sidebar-promo-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.sidebar-promo-text {
    font-size: 0.95rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.sidebar-promo-btn {
    background: white;
    border: none;
    color: #764ba2;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1rem;
}

.sidebar-promo-btn:hover {
    background: #f3f3f3;
    color: #5a3d7a;
}

.sidebar-right {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.site-footer {
    background-color: #1a1c2e;
    color: #b8b9c4;
    padding: 48px 0 24px;
    font-size: 0.95rem;
}

.site-footer .footer-brand {
    margin-bottom: 8px;
}

.site-footer .footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 12px;
}

.site-footer .footer-desc {
    color: #9a9bb0;
    line-height: 1.6;
    margin-bottom: 0;
}

.site-footer .footer-heading {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 10px;
}

.site-footer .footer-links a {
    color: #b8b9c4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
    color: #e9813c;
}

.site-footer .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer .footer-contact i {
    color: #6267cf;
    font-size: 1rem;
}

.site-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 28px 0 20px;
}

.site-footer .footer-copy {
    color: #9a9bb0;
    font-size: 0.875rem;
}

.site-footer .footer-policy-link {
    color: #9a9bb0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.profile-ads-table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.profile-ads-table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8d9b;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 12px;
    white-space: nowrap;
    background: transparent;
}

.profile-ads-table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
    background: #fff;
}

.profile-ads-table tbody td:last-child {
    white-space: nowrap;
}

.profile-ads-table tbody tr:last-child td {
    border-bottom: none;
}

.profile-ads-table tbody tr {
    transition: background 0.15s ease;
}

.profile-ads-table tbody tr:hover td {
    background: #fcfcff;
}

.profile-ads-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-ad-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.profile-ad-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.profile-ad-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #212529;
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-ad-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.88rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.profile-ad-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-ad-card-meta i {
    color: #6267cf;
    font-size: 0.9rem;
}

.profile-ad-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
}

.profile-ad-card-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-ad-card-buttons .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
}

.site-footer .footer-policy-link:hover {
    color: #e9813c;
}

.master-section-header {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.master-section-header .collapse-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    color: #6c757d;
}

.master-section-header[aria-expanded="true"] .collapse-arrow {
    transform: rotate(180deg);
}

.site-alert {
    border-radius: 15px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1c2e;
    color: #b8b9c4;
    padding: 16px 0;
    z-index: 1050;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

.cookie-consent.is-hidden {
    transform: translateY(100%);
}

.cookie-consent .cookie-text {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.cookie-consent .cookie-text a {
    color: #e9813c;
    text-decoration: underline;
}

.cookie-consent .cookie-btn {
    background-color: #e9813c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-consent .cookie-btn:hover {
    background-color: #d4732f;
}

@media (min-width: 768px) {
    .cookie-consent .cookie-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .cookie-consent .cookie-text {
        margin-bottom: 0;
        flex: 1;
    }
}

.site-alert-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.site-alert-wrapper.has-alerts {
    grid-template-rows: 1fr;
}

.site-alert-inner {
    overflow: hidden;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.4s ease, padding 0.4s ease;
}

.site-alert-wrapper.has-alerts .site-alert-inner {
    opacity: 1;
    padding-top: 16px;

}

.site-alert {
    border-radius: 15px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.security-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.security-header .shield-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.security-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.security-header h1 {
    color: white;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0px;
}

.security-header p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.favorites-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.favorites-header .heart-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.favorites-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.favorites-header h1 {
    color: white;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0;
}

.favorites-header p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.myads-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.myads-header .myads-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.myads-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.myads-header h1 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

.myads-header p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.myads-header-btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    align-self: center;
    flex-shrink: 0;
}

.myads-header-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.chats-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chats-header-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.chats-header .chat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.chats-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chats-header h3 {
    color: white;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0;
}

.chats-header .unread-badge-header {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.chats-search-form {
    flex-shrink: 0;
}

.chats-search-form .input-group-text {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 0;
    color: #495057;
    padding: 10px 16px;
    font-size: 1rem;
}

.chats-search-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 0;
    padding: 10px 16px;
    font-size: 1rem;
    color: #212529;
}

.chats-search-form .form-control::placeholder {
    color: #6c757d;
}

.chats-search-form .btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 10px;
}

.chats-search-form .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chats-search-form .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.security-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.security-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.security-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.security-card-body {
    flex: 1 1 auto;
}

.security-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f3f5;
}

.security-card-actions .security-btn {
    min-width: 140px;
    justify-content: center;
}

.security-card-actions .security-btn-sm {
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
    min-width: 120px;
}

.security-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.security-card-icon.bg-purple {
    background: #eef0ff;
    color: #6267cf;
}

.security-card-icon.bg-orange {
    background: #fff3ed;
    color: #e9813c;
}

.security-card-icon.bg-green {
    background: #eef7f0;
    color: #198754;
}

.security-card-icon.bg-blue {
    background: #e7f4ff;
    color: #0d6efd;
}

.security-card-icon.bg-red {
    background: #fef2f2;
    color: #dc3545;
}

.security-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.security-card-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

.security-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.security-status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.security-status-badge.status-on {
    background: #eef7f0;
    color: #198754;
}

.security-status-badge.status-on .status-dot {
    background: #198754;
}

.security-status-badge.status-off {
    background: #f1f3f5;
    color: #6c757d;
}

.security-status-badge.status-off .status-dot {
    background: #6c757d;
}

.security-form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 6px;
}

.security-form-control {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.security-form-control:focus {
    border-color: #6267cf;
    box-shadow: 0 0 0 4px rgba(98, 103, 207, 0.1);
}

.security-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-btn:active {
    transform: scale(0.98);
}

.security-btn-primary {
    background: #6267cf;
    color: #fff;
}

.security-btn-primary:hover {
    background: #5658b8;
    color: #fff;
}

.security-btn-outline-danger {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.security-btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
}

.security-btn-outline-secondary {
    background: #fff;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.security-btn-outline-secondary:hover {
    background: #f1f3f5;
    color: #495057;
}

.security-divider {
    border: 0;
    height: 1px;
    background: #eef0f4;
    margin: 20px 0;
}

.security-btn-sm {
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
    min-width: 120px;
}

.security-session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f3f5;
}

.security-session-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.security-session-item:first-child {
    padding-top: 0;
}

.security-session-info {
    min-width: 0;
    flex: 1;
}

.security-session-ip {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    margin-bottom: 2px;
}

.security-session-meta {
    font-size: 0.82rem;
    color: #6c757d;
    line-height: 1.4;
}

.security-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f3f5;
}

.security-history-item:last-child {
    border-bottom: none;
}

.security-history-item:first-child {
    padding-top: 0;
}

.security-history-date {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
}

.security-history-ip {
    font-weight: 500;
    font-size: 0.9rem;
    color: #212529;
}

.security-agreement-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #eef0f4;
}

.security-agreement-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef0ff;
    color: #6267cf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.security-agreement-content {
    flex: 1;
    min-width: 0;
}

.security-agreement-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    margin-bottom: 4px;
}

.security-agreement-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

.security-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.security-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #6c757d;
}

.security-empty-state i {
    font-size: 2rem;
    opacity: 0.4;
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 767.98px) {
    .security-header {
        padding: 20px;
        border-radius: 12px;
    }

    .security-header h1 {
        font-size: 1.4rem;
    }

    .security-header {
        display: block;
    }

    .security-header .shield-icon {
        margin-bottom: 12px;
    }

    .favorites-header {
        padding: 20px;
        border-radius: 12px;
    }

    .favorites-header h1 {
        font-size: 1.4rem;
    }

    .favorites-header {
        display: block;
    }

    .favorites-header .heart-icon {
        margin-bottom: 12px;
    }

    .myads-header {
        padding: 20px;
        border-radius: 12px;
    }

    .myads-header h1 {
        font-size: 1.4rem;
    }

    .myads-header {
        display: block;
    }

    .myads-header .myads-icon {
        margin-bottom: 12px;
    }

    .myads-header-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 12px;
    }

    .chats-header {
        padding: 20px;
        border-radius: 12px;
    }

    .chats-header h3 {
        font-size: 1.4rem;
    }

    .chats-header {
        flex-direction: column;
        align-items: stretch;
    }

    .chats-header-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .chats-header-left .chat-icon {

    }

    .chats-header-left .unread-badge-header {
        margin-top: 8px;
    }

    .security-card {
        padding: 16px;
        border-radius: 12px;
    }

    .security-card-header {
        flex-direction: column;
        gap: 12px;
    }

    .security-card-title {
        font-size: 1rem;
    }

    .security-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .security-card-actions .security-btn {
        width: 100%;
    }

    .security-session-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .security-session-item form {
        width: 100%;
    }

    .security-session-item .security-btn {
        width: 100%;
    }

    .security-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .security-agreement-box {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }

    .security-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form-card .input-group-text {
        display: none;
    }

    .search-form-card .input-group .form-control {
        border-left: 1px solid #ced4da;
        border-radius: 10px 0 0 10px !important;
    }
}

@media (min-width: 768px) {
    .security-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .security-grid .security-card.full-width {
        grid-column: 1 / -1;
    }

    .chats-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .chats-header-left {
        flex-direction: row;
        align-items: center;
    }

    .chats-search-form {
        flex: 1 1 auto;

        margin-top: 0;
    }
}
/* Settings page */
.settings-theme-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.settings-theme-option {
    position: relative;
}

.settings-theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-theme-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 2px solid var(--bs-border-color);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-theme-option label:hover {
    border-color: #6267cf;
}

.settings-theme-option input:focus-visible + label {
    outline: 2px solid #6267cf;
    outline-offset: 2px;
}

.settings-theme-option input:checked + label {
    border-color: #6267cf;
    box-shadow: 0 0 0 4px rgba(98, 103, 207, 0.12);
}

.settings-theme-option .theme-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 50%;
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

.settings-theme-option input:checked + label .theme-icon {
    background: #6267cf;
    color: #fff;
}

.settings-theme-option .theme-name {
    font-weight: 600;
}

.settings-theme-option .theme-desc {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    line-height: 1.35;
}

@media (max-width: 575.98px) {
    .settings-theme-options {
        grid-template-columns: 1fr;
    }
}

/* Dark theme overrides */
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] main {
    background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .navbar.navbar-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .card-header {
    background-color: var(--bs-card-cap-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .category .card-body,
[data-bs-theme="dark"] .category .category-children {
    background-color: var(--bs-card-bg);
}

[data-bs-theme="dark"] .category .badge.bg-primary {
    background-color: var(--bs-secondary-bg) !important;
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .autocomplete-dropdown {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .autocomplete-group {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .autocomplete-item {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .autocomplete-item:hover,
[data-bs-theme="dark"] .autocomplete-item:focus {
    background: var(--bs-tertiary-bg);
}

[data-bs-theme="dark"] .category-seo-description {
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .category-seo-close {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .category-seo-close:hover {
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .chat-list-item {
    background: var(--bs-card-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .chat-list-item .chat-avatar {
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .chat-list-item .chat-title {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .chat-list-item .chat-subtitle,
[data-bs-theme="dark"] .chat-page .chat-header .back-link {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .chat-page .chat-header .back-link:hover {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .chat-page .chat-header,
[data-bs-theme="dark"] .chat-page .chat-input-area {
    background: var(--bs-card-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .chat-page .chat-messages {
    background: var(--bs-body-bg);
}

[data-bs-theme="dark"] #chatMessages {
    background-color: var(--bs-body-bg);
    background-image: url(/img/chat-bg-dark.png);
    background-repeat: repeat;
}

[data-bs-theme="dark"] .chat-bubble.other {
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .unread-message .chat-bubble.other {
    border-color: #ffc107;
}

[data-bs-theme="dark"] .profile-ads-table thead th {
    color: var(--bs-secondary-color);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .profile-ads-table tbody td {
    background: transparent;
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .profile-ads-table tbody tr:hover td {
    background: var(--bs-tertiary-bg);
}

[data-bs-theme="dark"] .profile-ad-card {
    background: var(--bs-card-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .profile-ad-card-title {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .profile-ad-card-meta {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .profile-ad-card-actions,
[data-bs-theme="dark"] .security-card-actions,
[data-bs-theme="dark"] .security-session-item,
[data-bs-theme="dark"] .security-history-item {
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .security-card,
[data-bs-theme="dark"] .security-agreement-box {
    background: var(--bs-card-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .security-card-title,
[data-bs-theme="dark"] .security-form-label,
[data-bs-theme="dark"] .security-session-ip,
[data-bs-theme="dark"] .security-history-ip,
[data-bs-theme="dark"] .security-agreement-title {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .security-card-desc,
[data-bs-theme="dark"] .security-session-meta,
[data-bs-theme="dark"] .security-history-date,
[data-bs-theme="dark"] .security-agreement-text,
[data-bs-theme="dark"] .security-empty-state {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .security-card-icon.bg-purple,
[data-bs-theme="dark"] .security-agreement-icon {
    background: rgba(98, 103, 207, 0.18);
}

[data-bs-theme="dark"] .security-card-icon.bg-orange {
    background: rgba(233, 129, 60, 0.18);
}

[data-bs-theme="dark"] .security-card-icon.bg-green {
    background: rgba(25, 135, 84, 0.18);
}

[data-bs-theme="dark"] .security-card-icon.bg-blue {
    background: rgba(13, 110, 253, 0.18);
}

[data-bs-theme="dark"] .security-card-icon.bg-red {
    background: rgba(220, 53, 69, 0.18);
}

[data-bs-theme="dark"] .security-status-badge.status-off {
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .security-btn-outline-danger,
[data-bs-theme="dark"] .security-btn-outline-secondary {
    background: transparent;
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .security-btn-outline-secondary {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .security-divider {
    background: var(--bs-border-color);
}

[data-bs-theme="dark"] .chats-search-form .input-group-text,
[data-bs-theme="dark"] .chats-search-form .form-control {
    background: var(--bs-secondary-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .chats-search-form .form-control::placeholder {
    color: var(--bs-secondary-color);
}

/* Refined dark theme palette */
[data-bs-theme="dark"] {
    color-scheme: dark;
    --bs-body-bg: #191a20;
    --bs-body-bg-rgb: 25, 26, 32;
    --bs-body-color: #e8e6e1;
    --bs-body-color-rgb: 232, 230, 225;
    --bs-emphasis-color: #f2f0eb;
    --bs-emphasis-color-rgb: 242, 240, 235;
    --bs-heading-color: #c9ccfa;
    --bs-secondary-color: #a7a49d;
    --bs-secondary-color-rgb: 167, 164, 157;
    --bs-secondary-bg: #22242c;
    --bs-secondary-bg-rgb: 34, 36, 44;
    --bs-tertiary-bg: #2a2c35;
    --bs-tertiary-bg-rgb: 42, 44, 53;
    --bs-border-color: #353843;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.1);
    --bs-link-color: #a6aaf5;
    --bs-link-color-rgb: 166, 170, 245;
    --bs-link-hover-color: #c3c6ff;
    --bs-link-hover-color-rgb: 195, 198, 255;
    --bs-primary-text-emphasis: #c3c6ff;
    --bs-card-bg: #21232b;
    --bs-card-cap-bg: rgba(255, 255, 255, 0.02);
    --bs-card-border-color: #353843;
    --bs-dropdown-bg: #21232b;
    --bs-dropdown-border-color: #353843;
    --bs-dropdown-link-hover-bg: #2c2f3a;
    --bs-dropdown-link-active-bg: #3c3f6e;
    --bs-modal-bg: #21232b;
    --bs-modal-border-color: #353843;
    --bs-list-group-bg: #21232b;
    --bs-list-group-border-color: #353843;
    --bs-accordion-bg: #21232b;
    --bs-accordion-border-color: #353843;
    --bs-table-bg: transparent;
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
    --bs-table-hover-color: var(--bs-body-color);
    --dark-input-bg: #1c1d24;
    scrollbar-color: #3a3d49 #1a1b21;
}

[data-bs-theme="dark"] ::selection {
    background-color: rgba(124, 128, 224, 0.35);
    color: #fff;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .h1,
[data-bs-theme="dark"] .h2,
[data-bs-theme="dark"] .h3,
[data-bs-theme="dark"] .h4,
[data-bs-theme="dark"] .h5,
[data-bs-theme="dark"] .h6 {
    color: var(--bs-heading-color);
}

[data-bs-theme="dark"] a:not(.btn):not(.dropdown-item):not(.nav-link):not(.badge):not(.page-link) {
    color: var(--bs-link-color);
}

[data-bs-theme="dark"] a:not(.btn):not(.dropdown-item):not(.nav-link):not(.badge):not(.page-link):hover {
    color: var(--bs-link-hover-color);
}

[data-bs-theme="dark"] .bg-light {
    background-color: #1f2128 !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: var(--bs-card-bg) !important;
}

[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-black,
[data-bs-theme="dark"] .text-body {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .text-muted {
    color: var(--bs-secondary-color) !important;
}

[data-bs-theme="dark"] .text-primary {
    color: #a6aaf5 !important;
}

[data-bs-theme="dark"] .bg-warning.text-dark,
[data-bs-theme="dark"] .badge.text-dark {
    color: #3a3520 !important;
}

[data-bs-theme="dark"] .table-light {
    --bs-table-color: var(--bs-body-color);
    --bs-table-bg: var(--bs-secondary-bg);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-striped-bg: var(--bs-tertiary-bg);
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-active-bg: var(--bs-tertiary-bg);
    --bs-table-hover-bg: var(--bs-tertiary-bg);
    --bs-table-hover-color: var(--bs-body-color);
}

[data-bs-theme="dark"] .navbar.bg-primary {
    background-color: #2b2d55 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .hero {
    background-image: radial-gradient(1200px 520px at 15% 0%, #3d3f70 0%, #2a2643 48%, #1b1c24 100%);
    color: #f3f1ff;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .hero h1 {
    color: #f7f5ff;
}

[data-bs-theme="dark"] .hero p,
[data-bs-theme="dark"] .hero .lead {
    color: #c7c4e0;
}

[data-bs-theme="dark"] .search-form-card,
[data-bs-theme="dark"] .sidebar-promo-card,
[data-bs-theme="dark"] .security-header,
[data-bs-theme="dark"] .favorites-header,
[data-bs-theme="dark"] .myads-header,
[data-bs-theme="dark"] .chats-header {
    background: linear-gradient(135deg, #3b3e79 0%, #2c2547 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .card {
    background-color: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] a .card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .dropdown-menu {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: var(--dark-input-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .input-group-text {
    background-color: var(--dark-input-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #8f8c87;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: var(--dark-input-bg);
    border-color: #7c80e0;
    color: var(--bs-body-color);
    box-shadow: 0 0 0 0.25rem rgba(124, 128, 224, 0.18);
}

[data-bs-theme="dark"] .autocomplete-dropdown {
    background: var(--bs-card-bg);
}

[data-bs-theme="dark"] .site-footer {
    background-color: #14151b;
    color: #a8a6ae;
}

[data-bs-theme="dark"] .avatar-top {
    border-color: rgba(255, 255, 255, 0.22);
}

/* Dark theme polish */
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] main {
    background-image:
        radial-gradient(900px 480px at 88% -12%, rgba(98, 103, 207, 0.16), transparent 62%),
        radial-gradient(760px 420px at 0% 104%, rgba(233, 129, 60, 0.07), transparent 60%);
    background-attachment: fixed;
}

[data-bs-theme="dark"] .navbar.bg-primary {
    background-color: rgba(43, 45, 85, 0.92) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

[data-bs-theme="dark"] .btn-primary {
    box-shadow: 0 6px 18px rgba(233, 129, 60, 0.26);
}

[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:focus-visible {
    box-shadow: 0 9px 26px rgba(233, 129, 60, 0.38);
}

[data-bs-theme="dark"] .category .category-card-icon {
    filter: invert(1) hue-rotate(180deg) saturate(1.2) brightness(1.35);
}

[data-bs-theme="dark"] .category .badge.bg-primary {
    background-color: #2b2e44 !important;
    border: 1px solid #3b3e5c;
    color: #c9ccfa !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

[data-bs-theme="dark"] .category .badge.bg-primary:hover {
    background-color: #6267cf !important;
    border-color: #7c80e0;
    color: #fff !important;
}

[data-bs-theme="dark"] .profile-ads-table-wrap {
    background: var(--bs-card-bg);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    overflow: auto;
}

[data-bs-theme="dark"] .profile-ads-table thead th {
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .profile-ads-table tbody td {
    background: transparent;
    border-color: var(--bs-border-color-translucent);
}

[data-bs-theme="dark"] .profile-ads-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.045);
}

/* Dark theme cards and ad details */
[data-bs-theme="dark"] .card {
    background:
        radial-gradient(560px 150px at 0% 0%, rgba(98, 103, 207, 0.14), transparent 72%),
        linear-gradient(180deg, #2b2f3c 0%, #23262f 100%);
    border: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .card-body {
    background: transparent;
}

[data-bs-theme="dark"] .card-header {
    background-color: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

[data-bs-theme="dark"] a .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .category .card-body {
    background-color: transparent;
}

[data-bs-theme="dark"] .category .category-children {
    background: linear-gradient(180deg, #2b2f3c 0%, #23262f 100%);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .favorite-toggle {
    color: #b9bdf7;
    background: rgba(25, 26, 32, 0.38);
    border-radius: 50%;
}

[data-bs-theme="dark"] .favorite-toggle:hover {
    color: #ffa45c;
    background: rgba(25, 26, 32, 0.6);
}

[data-bs-theme="dark"] .master-section .list-group-item {
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color-translucent) !important;
    margin-bottom: 10px;
}

[data-bs-theme="dark"] .navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
}

[data-bs-theme="dark"] .navbar .nav-link:hover,
[data-bs-theme="dark"] .navbar .nav-link:focus {
    color: #fff;
}

[data-bs-theme="dark"] .search-form-card .input-group-text,
[data-bs-theme="dark"] .search-form-card .input-group .form-control {
    background: var(--dark-input-bg);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f0eee9;
}

[data-bs-theme="dark"] .search-form-card .input-group-text {
    color: #d8d6f5;
}

[data-bs-theme="dark"] .search-form-card .input-group .form-control::placeholder {
    color: #a7a4c0;
}

[data-bs-theme="dark"] .search-form-card .input-group .form-control:focus {
    background: var(--dark-input-bg);
    border-color: #7c80e0;
    color: #fff;
}

[data-bs-theme="dark"] .search-form-card .form-label,
[data-bs-theme="dark"] .search-form-card .form-check-label {
    color: #d8d6f5;
}

[data-bs-theme="dark"] .profile-ad-card,
[data-bs-theme="dark"] .security-card {
    border: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .category .category-children {
    border: 0;
}

[data-bs-theme="dark"] .category .card,
[data-bs-theme="dark"] .category .category-children {
    background: #272b36;
}

/* Master landing */
.master-landing {
    --landing-ink: #232746;
    --landing-muted: #6f748c;
    --landing-accent: #6267cf;
    --landing-soft: #eef0ff;
    --landing-surface: #ffffff;
    --landing-line: rgba(98, 103, 207, 0.12);
    background: #f6f7fb;
    color: var(--landing-ink);
}

[data-bs-theme="dark"] .master-landing {
    --landing-ink: #e8e6e1;
    --landing-muted: #a7a49d;
    --landing-accent: #b9bdf7;
    --landing-soft: rgba(98, 103, 207, 0.18);
    --landing-surface: #23262f;
    --landing-line: rgba(255, 255, 255, 0.08);
    background: #191a20;
}

.master-landing .landing-eyebrow {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: #6267cf;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

[data-bs-theme="dark"] .master-landing .landing-eyebrow {
    color: #b9bdf7;
}

.master-landing-steps {
    padding: 4.25rem 0;
    background:
        radial-gradient(640px 260px at 12% 0%, rgba(98, 103, 207, 0.07), transparent 65%),
        radial-gradient(520px 240px at 92% 100%, rgba(233, 129, 60, 0.05), transparent 65%),
        #ffffff;
}

[data-bs-theme="dark"] .master-landing-steps {
    background:
        radial-gradient(640px 260px at 12% 0%, rgba(98, 103, 207, 0.14), transparent 65%),
        radial-gradient(520px 240px at 92% 100%, rgba(233, 129, 60, 0.06), transparent 65%),
        #1d1f27;
}

.landing-section-head {
    max-width: 740px;
    margin: 0 auto 2.4rem;
}

.landing-section-head p {
    color: var(--landing-muted);
}

.landing-step-card {
    position: relative;
    height: 100%;
    padding: 1.6rem;
    overflow: hidden;
    background: #f8f9fd;
    border: 1px solid var(--landing-line);
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-bs-theme="dark"] .landing-step-card {
    background: #23262f;
}

.landing-step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(98, 103, 207, 0.28);
    box-shadow: 0 18px 40px rgba(44, 48, 90, 0.12);
}

[data-bs-theme="dark"] .landing-step-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.landing-step-number {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: rgba(98, 103, 207, 0.14);
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1;
}

[data-bs-theme="dark"] .landing-step-number {
    color: rgba(185, 189, 247, 0.14);
}

.landing-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: #6267cf;
    font-size: 1.35rem;
    background: var(--landing-soft);
    border-radius: 16px;
}

[data-bs-theme="dark"] .landing-step-icon {
    color: #c9ccfa;
}

.landing-step-card h3 {
    margin-bottom: 0.45rem;
    font-size: 1.1rem;
}

.landing-step-card p {
    margin: 0;
    color: var(--landing-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.master-landing-free {
    padding: 2.5rem 0 4.5rem;
    background: #f6f7fb;
}

[data-bs-theme="dark"] .master-landing-free {
    background: #191a20;
}

.landing-free-card {
    position: relative;
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(620px 280px at 8% 0%, rgba(126, 131, 235, 0.65), transparent 62%),
        linear-gradient(135deg, #30336a 0%, #24264c 100%);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(38, 42, 86, 0.28);
}

.landing-free-card::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -170px;
    width: 340px;
    height: 340px;
    background: rgba(233, 129, 60, 0.2);
    border-radius: 50%;
    filter: blur(14px);
    pointer-events: none;
}

.landing-free-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    color: #3a3520;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #ffc107;
    border-radius: 999px;
}

.landing-price {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0.85rem 0 0.35rem;
}

.landing-price span {
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.landing-price small {
    color: #c9cbe8;
    font-size: 0.95rem;
}

.landing-free-card h2,
.landing-free-card h3 {
    color: #fff;
}

.landing-free-card p {
    color: #cfd1eb;
}

.landing-free-list {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.landing-free-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
}

.landing-free-list i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #ffb36b;
}

.landing-free-note {
    margin: 0.9rem 0 0;
    color: #b9bce0;
    font-size: 0.8rem;
}

.master-landing-audience {
    padding: 4.25rem 0;
    background: linear-gradient(180deg, #f3f4fb 0%, #fbfbfd 100%);
}

[data-bs-theme="dark"] .master-landing-audience {
    background: linear-gradient(180deg, #1d1f27 0%, #191a20 100%);
}

.master-landing-audience p {
    color: var(--landing-muted);
}

.landing-category-card {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    height: 100%;
    padding: 1.15rem;
    background: #fff;
    border: 1px solid var(--landing-line);
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-bs-theme="dark"] .landing-category-card {
    background: #23262f;
}

.landing-category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 103, 207, 0.3);
    box-shadow: 0 14px 30px rgba(44, 48, 90, 0.1);
}

[data-bs-theme="dark"] .landing-category-card:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.landing-category-icon {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #6267cf;
    font-size: 1.2rem;
    background: var(--landing-soft);
    border-radius: 14px;
}

[data-bs-theme="dark"] .landing-category-icon {
    color: #c9ccfa;
}

.landing-category-card h3 {
    margin-bottom: 0.15rem;
    font-size: 1rem;
}

.landing-category-card p {
    margin: 0;
    color: var(--landing-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.master-landing-faq {
    padding: 4.25rem 0 5rem;
    background: #fff;
}

[data-bs-theme="dark"] .master-landing-faq {
    background: #1d1f27;
}

.landing-faq-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #f8f9fd;
    border: 1px solid var(--landing-line);
    border-radius: 24px;
}

[data-bs-theme="dark"] .landing-faq-card {
    background: #23262f;
}

.landing-accordion .accordion-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--landing-line);
}

.landing-accordion .accordion-item:last-child {
    border-bottom: 0;
}

.landing-accordion .accordion-button {
    padding: 1rem 0;
    color: var(--landing-ink);
    font-weight: 600;
    background: transparent;
    box-shadow: none;
}

.landing-accordion .accordion-button:not(.collapsed) {
    color: #6267cf;
}

[data-bs-theme="dark"] .landing-accordion .accordion-button:not(.collapsed) {
    color: #c9ccfa;
}

.landing-accordion .accordion-button:focus {
    box-shadow: none;
}

.landing-accordion .accordion-body {
    padding: 0 0 1rem;
    color: var(--landing-muted);
    font-size: 0.92rem;
}

.landing-cta-card {
    position: relative;
    padding: 2rem;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(126, 131, 235, 0.45), transparent 65%),
        linear-gradient(145deg, #3a3d7a 0%, #272a52 100%);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(38, 42, 86, 0.25);
}

.landing-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #ffb36b;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.landing-cta-card h2 {
    color: #fff;
}

.landing-cta-card p {
    color: #cfd1eb;
}

.landing-cta-card .small a {
    color: #ffd2a6;
}

@media (max-width: 767.98px) {
    .master-landing-steps,
    .master-landing-audience,
    .master-landing-faq {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .master-landing-free {
        padding: 2rem 0 3rem;
    }

    .landing-step-number {
        font-size: 2.2rem;
    }
}

/* City onboarding coach mark */
.city-onboarding {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.city-onboarding-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 24, 0.58);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.city-onboarding-tip {
    position: fixed;
    z-index: 2002;
    width: min(330px, calc(100vw - 24px));
    padding: 1.1rem 1.2rem 1.15rem;
    color: #232746;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(8, 10, 25, 0.35);
    animation: cityOnboardingIn 0.22s ease-out;
}

.city-onboarding-tip h2 {
    margin: 0 0 0.35rem;
    color: #232746;
    font-size: 1.05rem;
}

.city-onboarding-tip p {
    margin: 0 0 0.9rem;
    color: #6f748c;
    font-size: 0.86rem;
    line-height: 1.45;
}

.city-onboarding-eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: #6267cf;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.city-onboarding-arrow {
    position: absolute;
    top: -7px;
    left: var(--arrow-left, 24px);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 3px;
    transform: rotate(45deg);
}

.city-onboarding-tip.is-above .city-onboarding-arrow {
    top: auto;
    bottom: -7px;
}

[data-bs-theme="dark"] .city-onboarding-tip {
    color: #e8e6e1;
    background: #23262f;
}

[data-bs-theme="dark"] .city-onboarding-tip h2 {
    color: #f2f0eb;
}

[data-bs-theme="dark"] .city-onboarding-tip p {
    color: #a7a49d;
}

[data-bs-theme="dark"] .city-onboarding-eyebrow {
    color: #b9bdf7;
}

[data-bs-theme="dark"] .city-onboarding-arrow {
    background: #23262f;
}

body.city-onboarding-active .navbar {
    z-index: 2001 !important;
}

body.city-onboarding-active .city-select-trigger {
    position: relative;
    z-index: 2002;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 0 0 9px rgba(255, 193, 7, 0.32);
}

@keyframes cityOnboardingIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .city-onboarding-tip {
        width: calc(100vw - 20px);
        padding: 1rem;
    }
}

.landing-breadcrumb {
    margin-bottom: 2.5rem;
}

.master-landing-steps--with-breadcrumb {
    padding-top: 1.5rem;
}

.landing-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider-color: var(--bs-secondary-color);
    margin-bottom: 0;
    font-size: 0.8125rem;
}

.landing-breadcrumb .breadcrumb-item a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.landing-breadcrumb .breadcrumb-item a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.landing-breadcrumb .breadcrumb-item.active {
    color: var(--bs-body-color);
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .landing-breadcrumb {
        margin-bottom: 1.75rem;
    }

    .master-landing-steps--with-breadcrumb {
        padding-top: 1rem;
    }
}
