:root {
    --orange: #f58220;
    --orange-dark: #df6d0d;
    --orange-light: #fff3e8;
    --orange-soft: #fff8f1;
    --black: #151515;
    --text: #222222;
    --muted: #737373;
    --muted-light: #9b9b9b;
    --white: #ffffff;
    --surface: #f8f8f8;
    --border: #e9e9e9;
    --danger: #dc3545;
    --shadow-sm: 0 5px 18px rgba(20, 20, 20, .06);
    --shadow: 0 15px 45px rgba(20, 20, 20, .10);
    --radius: 18px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
   
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 48%, #e3efff 100%) fixed;
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select {
    font-family: inherit;
}

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

button,
select,
input {
    border: 0;
    outline: 0;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

.container {
    width: min(var(--max-width), calc(100% - 48px));
    margin-inline: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(239, 246, 255, .94);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1380px, calc(100% - 40px));
    min-height: 76px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 35px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.logo-image {
    width: 38px;
    height: 38px;
    border-radius: 15%;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.8px;
    color: var(--black);
}

.brand-name span {
    color: var(--orange);
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-item {
    position: relative;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #606060;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.nav-item svg,
.mobile-nav-item svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item:hover,
.nav-item.active {
    color: var(--orange);
    background: var(--orange-soft);
}

.create-nav {
    color: white !important;
    background: var(--orange) !important;
    box-shadow: 0 8px 20px rgba(245, 130, 32, .25);
    margin-inline: 5px;
}

.create-nav:hover {
    transform: translateY(-2px);
    background: var(--orange-dark) !important;
}

.create-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--orange);
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    font-size: 19px;
    line-height: 1;
}

.header-profile {
    position: relative;
    display: grid;
    place-items: center;
}

.avatar-small,
.profile-avatar {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(145deg, #f8fbff, #e8f2ff);
    border: 1px solid var(--border);
    color: var(--orange);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.avatar-small img,
.profile-avatar img,
.dashboard-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.avatar-small {
    width: 42px;
    height: 42px;
}

.unread-message-badge {
    position: absolute;
    top: 2px;
    right: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid white;
    border-radius: 999px;
    background: #e53935;
    color: white;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    z-index: 1;
}

.header-profile .unread-message-badge {
    top: -3px;
    right: -5px;
}

.settings-item .unread-message-badge {
    top: 50%;
    right: 36px;
    transform: translateY(-50%);
}

.unread-message-badge[hidden] {
    display: none;
}

/* =========================
   HERO
========================= */

.hero-section {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 30%, rgba(245, 130, 32, .10), transparent 27%),
        linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-block: 80px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.hero-glow-one {
    width: 400px;
    height: 400px;
    right: -120px;
    top: 70px;
    border: 70px solid rgba(245, 130, 32, .04);
}

.hero-glow-two {
    width: 180px;
    height: 180px;
    right: 24%;
    bottom: -80px;
    background: rgba(245, 130, 32, .05);
}

.eyebrow,
.section-kicker,
.profile-label {
    color: var(--orange);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.8px;
}

.hero-section h1 {
    max-width: 750px;
    margin: 13px 0 15px;
    font-size: clamp(44px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -4px;
    color: var(--black);
    animation: heroIn .7s ease both;
}

.hero-section h1 strong {
    color: var(--orange);
    font-weight: 850;
}

.hero-text {
    max-width: 610px;
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 17px;
}

.search-box {
    max-width: 1000px;
    min-height: 76px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: var(--shadow);
    animation: searchIn .75s .08s ease both;
}

.search-field,
.country-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
}

.search-field {
    flex: 1.3;
}

.country-field {
    flex: .8;
}

.search-field svg,
.country-field svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: #929292;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-field input,
.country-field select {
    width: 100%;
    min-width: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.search-field input::placeholder {
    color: #999;
}

.country-field select {
    cursor: pointer;
}

.search-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.search-button,
.primary-button {
    min-height: 58px;
    padding: 0 25px;
    border-radius: 13px;
    background: var(--orange);
    color: white;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .2s ease;
}

.search-button {
    flex: 0 0 auto;
}

.search-button:hover,
.primary-button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(245, 130, 32, .22);
}

.search-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.hero-stats {
    margin-top: 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #858585;
    font-size: 12px;
}

.hero-stats strong {
    color: var(--black);
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d2d2d2;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding-block: 78px;
}

.categories-section {
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
}

.recent-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
}

.section-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.05;
    letter-spacing: -1.7px;
}

.text-link {
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.text-link:hover {
    transform: translateX(3px);
}

.text-link span {
    font-size: 18px;
}

/* =========================
   CATEGORIES
========================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 13px;
}

.category-card {
    min-height: 145px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 130, 32, .25);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    border-radius: 12px;
    background: var(--orange-soft);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.category-card strong {
    font-size: 14px;
}

.category-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

/* =========================
   LISTING CARDS
========================= */

.listing-scroller {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 3px 2px 18px;
    scrollbar-width: thin;
    scrollbar-color: #d5d5d5 transparent;
}

.listing-scroller::-webkit-scrollbar {
    height: 7px;
}

.listing-scroller::-webkit-scrollbar-track {
    background: transparent;
}

.listing-scroller::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 99px;
}

.listing-card {
    flex: 0 0 285px;
    min-width: 285px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: 0 3px 13px rgba(0, 0, 0, .035);
    scroll-snap-align: start;
    transition: .25s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.listing-media {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #f0f0f0;
}

.listing-image {
    width: 100%;
    height: 100%;
}

.listing-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.placeholder-image {
    display: grid;
    place-items: center;
    color: #a4a4a4;
    background:
        linear-gradient(135deg, #eeeeee, #fafafa);
    font-size: 11px;
    letter-spacing: .5px;
}

.image-count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(0, 0, 0, .54);
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.save-button {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: rgba(239, 246, 255, .96);
    display: grid;
    place-items: center;
    transition: .2s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .09);
}

.save-button:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
}

.save-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #555;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.listing-condition {
    position: absolute;
    left: 11px;
    top: 11px;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--orange);
    color: white;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.listing-body {
    padding: 17px;
}

.listing-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.listing-price {
    font-size: 18px;
    color: var(--black);
}

.listing-views {
    color: #999;
    font-size: 10px;
}

.listing-body h3 {
    min-height: 43px;
    margin: 8px 0 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.5;
}

.listing-meta {
    display: flex;
    gap: 6px;
    color: #777;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.listing-meta span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-date {
    margin-top: 8px;
    color: #aaa;
    font-size: 10px;
}

/* =========================
   CTA
========================= */

.cta-section {
    padding: 70px 0;
    background: var(--orange-soft);
}

.cta-box {
    min-height: 230px;
    padding: 45px 50px;
    border-radius: 24px;
    background: var(--black);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    position: relative;
}

.cta-box::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    top: -130px;
    border: 60px solid rgba(245, 130, 32, .14);
    border-radius: 50%;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    max-width: 650px;
    margin: 7px 0 8px;
    font-size: clamp(25px, 4vw, 39px);
    line-height: 1.05;
    letter-spacing: -1.4px;
}

.cta-box p {
    margin: 0;
    color: #aaa;
    font-size: 13px;
}

.primary-button {
    white-space: nowrap;
    text-decoration: none;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    padding-top: 60px;
    background: #111;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 55px;
    padding-bottom: 45px;
}

.footer-brand p {
    max-width: 300px;
    margin: 15px 0 0;
    color: #858585;
    font-size: 12px;
}

.footer-logo .brand-name {
    color: white;
}

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

.footer-column h3 {
    margin: 0 0 7px;
    font-size: 12px;
    color: white;
}

.footer-column a {
    color: #858585;
    font-size: 11px;
    transition: .2s ease;
}

.footer-column a:hover {
    color: var(--orange);
}

.footer-bottom {
    min-height: 65px;
    border-top: 1px solid #292929;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #676767;
    font-size: 10px;
}

.faq-page {
    min-height: 100vh;
}

.faq-hero {
    padding: 56px 0 38px;
    text-align: center;
}

.faq-hero h1 {
    margin: 10px 0;
    color: var(--black);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.faq-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
}

.faq-content {
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 70px;
}

.faq-group {
    margin-bottom: 32px;
}

.faq-group h2 {
    margin: 0 0 12px;
    color: var(--black);
    font-size: 20px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-sm);
}

.faq-list summary {
    position: relative;
    padding: 17px 48px 17px 18px;
    color: var(--black);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--orange);
    content: "+";
    font-size: 21px;
    font-weight: 500;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 18px 17px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

.faq-answer a {
    color: var(--orange-dark);
    font-weight: 700;
}

.faq-contact {
    margin-top: 34px;
    padding: 24px;
    border: 1px solid rgba(245, 130, 32, .2);
    border-radius: 18px;
    background: var(--orange-soft);
    text-align: center;
}

.faq-contact h2 {
    margin: 0 0 6px;
    color: var(--black);
    font-size: 20px;
}

.faq-contact p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.faq-contact a {
    color: var(--orange-dark);
    font-weight: 750;
}

/* =========================
   MODALS
   CSS :target = no JS needed
========================= */

.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 22px;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.modal-layer:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .52);
    backdrop-filter: blur(7px);
}

.modal-panel {
    position: relative;
    width: min(100%, 450px);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 25px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: 0 35px 90px rgba(0, 0, 0, .22);
    animation: modalIn .3s cubic-bezier(.2, .8, .2, 1) both;
}

.settings-modal {
    padding: 28px;
}

.signin-modal {
    padding: 38px 32px 30px;
    text-align: center;
}

.cookie-policy-modal {
    padding: 32px;
}

.cookie-policy-modal h2 {
    margin: 8px 40px 10px 0;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -1px;
}

.cookie-policy-intro,
.cookie-policy-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.cookie-policy-intro {
    margin: 0 0 18px;
}

.cookie-policy-list {
    display: grid;
    gap: 10px;
}

.cookie-policy-list section {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, .62);
}

.cookie-policy-list h3 {
    margin: 0 0 4px;
    font-size: 13px;
}

.cookie-policy-list p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.cookie-policy-note {
    margin: 16px 0 0;
}

.cookie-policy-note a {
    color: var(--orange);
    font-weight: 700;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 37px;
    height: 37px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    color: #777;
    display: grid;
    place-items: center;
    transition: .2s ease;
    z-index: 2;
}

.modal-close:hover {
    color: var(--orange);
    transform: rotate(90deg);
    border-color: rgba(245, 130, 32, .3);
}

.modal-close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.profile-card {
    padding: 9px 36px 22px 3px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 67px;
    height: 67px;
    flex: 0 0 auto;
    font-size: 23px;
    border: 2px solid var(--orange-light);
    background: var(--orange-soft);
}

.profile-card h2 {
    margin: 4px 0 1px;
    font-size: 22px;
    letter-spacing: -.7px;
}

.profile-card p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.settings-list {
    border-top: 1px solid var(--border);
    padding-top: 8px;
}

.settings-item {
    position: relative;
    min-height: 68px;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: .2s ease;
}

.settings-item[hidden],
.danger-actions [hidden] {
    display: none;
}

.settings-item:hover {
    padding-left: 8px;
    color: var(--orange);
}

.settings-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex: 0 0 auto;
    background: #f5f5f5;
    color: #656565;
    display: grid;
    place-items: center;
}

.settings-item-icon.orange {
    color: var(--orange);
    background: var(--orange-soft);
}

.settings-item-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-item > span:nth-child(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.settings-item strong {
    color: var(--black);
    font-size: 13px;
}

.settings-item small {
    color: #999;
    font-size: 10px;
}

.settings-item b {
    color: #aaa;
    font-size: 21px;
    font-weight: 400;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    padding: 20px 0;
}

.social-links a {
    padding: 11px 7px;
    border: 1px solid var(--border);
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: .2s ease;
}

.social-links a:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

.social-links span {
    font-size: 19px;
    line-height: 1;
    font-weight: 800;
}

.social-links small {
    color: #999;
    font-size: 9px;
}

.danger-actions {
    padding-top: 5px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.logout-link,
.delete-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
}

.auth-action-error {
    margin: 10px 0 0;
    color: #b42318;
    font-size: 12px;
}

.auth-action-error[hidden] {
    display: none;
}

.logout-link {
    color: #777;
}

.delete-link {
    color: var(--danger);
}

.logout-link svg,
.delete-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.signin-icon {
    width: 62px;
    height: 62px;
    margin: 3px auto 22px;
    border-radius: 19px;
    background: var(--orange-soft);
    color: var(--orange);
    display: grid;
    place-items: center;
    animation: floatIcon 2.5s ease-in-out infinite;
}

.signin-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.signin-modal h2 {
    margin: 8px 0 9px;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -1px;
}

.signin-description {
    max-width: 330px;
    margin: 0 auto 25px;
    color: var(--muted);
    font-size: 12px;
}

.google-button {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid #dedede;
    border-radius: 13px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    color: #202020;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 750;
    transition: .2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .03);
}

.google-button:hover {
    border-color: #bdbdbd;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.google-logo {
    font-size: 19px;
    font-weight: 900;
}

.signin-divider {
    position: relative;
    margin: 22px 0;
    border-top: 1px solid var(--border);
}

.signin-divider span {
    position: relative;
    top: -9px;
    padding: 0 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    color: #aaa;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signin-note {
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
    display: flex;
    align-items: flex-start;
    gap: 9px;
    text-align: left;
    color: #888;
    font-size: 10px;
}

.signin-note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--orange);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal-secondary-link {
    display: inline-block;
    margin-top: 19px;
    color: #888;
    font-size: 10px;
    font-weight: 700;
}

.modal-secondary-link:hover {
    color: var(--orange);
}

/* =========================
   MOBILE NAV
========================= */

.mobile-nav {
    display: none;
}

/* =========================
   ANIMATIONS
========================= */

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

@keyframes searchIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {
    .desktop-nav {
        gap: 0;
    }

    .nav-item {
        padding-inline: 10px;
    }

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

    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 72px;
    }

    .container {
        width: min(100% - 30px, var(--max-width));
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        width: calc(100% - 30px);
        min-height: 64px;
        justify-content: space-between;
    }

    .desktop-nav {
        display: none;
    }

    .header-profile {
        display: none;
    }

    .brand-name {
        font-size: 20px;
    }

    .mobile-nav {
        position: fixed;
        left: 9px;
        right: 9px;
        bottom: 9px;
        z-index: 90;
        height: 62px;
        padding: 5px;
        border: 1px solid rgba(0, 0, 0, .08);
        border-radius: 18px;
        background: rgba(239, 246, 255, .96);
        box-shadow: 0 12px 35px rgba(0, 0, 0, .15);
        backdrop-filter: blur(20px);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
    }

    .mobile-nav-item {
        position: relative;
        min-width: 0;
        height: 52px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #888;
        border-radius: 13px;
        font-size: 8px;
        font-weight: 750;
        transition: .2s ease;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        color: var(--orange);
        background: var(--orange-soft);
    }

    .mobile-create {
        width: 52px;
        height: 52px;
        margin: -19px auto 0;
        border: 4px solid white;
        border-radius: 50%;
        background: var(--orange);
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(245, 130, 32, .30);
    }

    .mobile-create span {
        font-size: 25px;
        line-height: 20px;
        font-weight: 300;
    }

    .mobile-create small {
        font-size: 7px;
        font-weight: 800;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-content {
        padding-block: 58px 55px;
    }

    .hero-section h1 {
        font-size: clamp(42px, 14vw, 62px);
        letter-spacing: -3px;
    }

    .hero-text {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .search-box {
        padding: 9px;
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-radius: 16px;
    }

    .search-field,
    .country-field {
        min-height: 50px;
        padding: 0 10px;
    }

    .search-field {
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--border);
    }

    .search-divider {
        display: none;
    }

    .search-button {
        grid-column: 1 / -1;
        min-height: 52px;
    }

    .hero-stats {
        gap: 7px;
        line-height: 1.3;
    }

    .section {
        padding-block: 56px;
    }

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

    .section-heading h2 {
        font-size: 29px;
    }

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

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

    .category-icon {
        width: 37px;
        height: 37px;
        margin-bottom: 10px;
    }

    .listing-card {
        flex-basis: 275px;
        min-width: 275px;
    }

    .listing-media {
        height: 195px;
    }

    .cta-section {
        padding: 45px 0;
    }

    .cta-box {
        padding: 32px 25px;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 20px;
    }

    .primary-button {
        min-height: 51px;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        min-height: 80px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .modal-layer {
        padding: 12px;
    }

    .modal-panel {
        border-radius: 21px;
    }

    .settings-modal {
        padding: 24px 20px;
    }

    .signin-modal {
        padding: 32px 22px 25px;
    }

    .cookie-policy-modal {
        padding: 26px 20px;
    }
}

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

    .category-card small {
        font-size: 9px;
    }

    .hero-section h1 {
        font-size: 40px;
    }

    .country-field {
        font-size: 12px;
    }

    .country-field select {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================
   SEARCH RESULTS
========================= */

.search-hero {
    padding: 46px 0 42px;
    background: linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
}

.search-hero-content h1 {
    margin: 9px 0;
    color: var(--black);
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -2px;
}

.search-hero-content h1 span {
    color: var(--orange);
}

.search-hero-content p {
    margin: 0;
    color: var(--muted);
}

.search-results-section {
    min-height: 60vh;
    padding: 0 0 72px;
}

.filters-panel {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: var(--shadow-sm);
}

.filters-heading,
.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.filters-heading {
    margin-bottom: 18px;
}

.filters-heading h2,
.results-heading h2 {
    margin: 3px 0 0;
    color: var(--black);
    font-size: 22px;
    letter-spacing: -.5px;
}

.filters-reset {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.filters-reset:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
}

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

.filter-control {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-control > span {
    color: #555;
    font-size: 11px;
    font-weight: 750;
}

.filter-control input,
.filter-control select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    color: var(--text);
    font-size: 13px;
}

.filter-control input:focus,
.filter-control select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, .12);
}

.filter-search {
    grid-column: span 2;
}

.category-filters {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.category-filters[hidden] {
    display: none;
}

.category-filters h3 {
    margin: 0 0 12px;
    color: var(--black);
    font-size: 14px;
}

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

.results-heading {
    margin: 37px 0 19px;
}

.results-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.search-listings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.search-listing {
    min-width: 0;
    width: 100%;
}

.search-listing[hidden] {
    display: none;
}

.listing-description {
    min-height: 40px;
    margin: -5px 0 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.no-results {
    margin: 24px 0;
    padding: 25px;
    border: 1px dashed #d7d7d7;
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
}

.no-results[hidden] {
    display: none;
}

.search-pagination {
    margin: 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.search-pagination[hidden] {
    display: none;
}

.pagination-button {
    min-width: 92px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.pagination-button:not(:disabled):hover {
    border-color: var(--orange);
    color: var(--orange-dark);
}

.pagination-button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.pagination-status {
    min-width: 58px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1050px) {
    .search-listings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .search-hero {
        padding: 34px 0 28px;
    }

    .search-hero-content h1 {
        font-size: 38px;
    }

    .search-results-section {
        padding-bottom: 40px;
    }

    .filters-panel {
        padding: 18px;
    }

    .filter-grid,
    .filter-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .search-listings {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .search-listing .listing-media {
        height: 220px;
    }
}

@media (max-width: 390px) {
    .filters-panel {
        padding: 14px;
    }

    .filters-heading h2,
    .results-heading h2 {
        font-size: 19px;
    }

    .filter-control input,
    .filter-control select {
        padding-inline: 8px;
        font-size: 12px;
    }
}

/* =========================
   CREATE LISTING
========================= */

.create-hero {
    padding-block: 42px 38px;
}

.create-listing-section {
    padding: 32px 0 70px;
    background: linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
}

.create-listing-content {
    width: min(900px, calc(100% - 48px));
}

.create-listing-form {
    display: grid;
    gap: 18px;
}

.create-form-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: var(--shadow-sm);
}

.create-form-card[hidden],
.create-category-fields[hidden] {
    display: none;
}

.create-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.create-card-heading h2 {
    margin: 3px 0 0;
    color: var(--black);
    font-size: 21px;
    letter-spacing: -.5px;
}

.create-card-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 850;
}

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

.create-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.create-field > span {
    color: #555;
    font-size: 12px;
    font-weight: 750;
}

.required-mark {
    color: var(--orange-dark);
}

.create-control {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    color: var(--text);
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.create-control::placeholder {
    color: var(--muted-light);
}

.create-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, .12);
}

.create-textarea {
    min-height: 120px;
    resize: vertical;
}

.create-field-wide {
    grid-column: 1 / -1;
}

.price-input-wrap {
    position: relative;
}

.price-input-wrap > span {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    color: var(--muted);
    transform: translateY(-50%);
}

.price-input-wrap .create-control {
    padding-left: 30px;
}

.create-card-description {
    margin: -8px 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.phone-visibility-toggle {
    width: fit-content;
    max-width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.phone-toggle-control {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
}

.phone-toggle-control input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    opacity: 0;
}

.phone-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: #d9d9d9;
    transition: background .2s ease;
}

.phone-toggle-track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    content: "";
    transition: transform .2s ease;
}

.phone-toggle-control input:checked + .phone-toggle-track {
    background: var(--orange);
}

.phone-toggle-control input:checked + .phone-toggle-track::after {
    transform: translateX(20px);
}

.phone-toggle-control input:focus-visible + .phone-toggle-track {
    outline: 3px solid rgba(245, 130, 32, .25);
    outline-offset: 2px;
}

.phone-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-toggle-copy strong {
    color: var(--text);
    font-size: 13px;
}

.phone-toggle-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.photo-upload-button {
    min-height: 46px;
    padding: 0 17px;
    border-radius: 11px;
    background: var(--orange);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.photo-upload-button:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.photo-upload-button > span {
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden:focus + .photo-count {
    outline: 2px solid var(--orange);
}

.photo-count {
    margin-left: 12px;
    color: var(--muted);
    font-size: 12px;
}

.photo-previews {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.photo-preview {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(21, 21, 21, .72);
    color: white;
    font-size: 19px;
    line-height: 1;
}

.form-message {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.create-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.create-cancel-button,
.create-submit-button {
    min-height: 49px;
    padding: 0 22px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.create-cancel-button {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    color: var(--text);
}

.create-cancel-button:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
}

.create-submit-button {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(245, 130, 32, .22);
}

.create-submit-button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.create-submit-message {
    margin: -8px 0 0;
    text-align: right;
}

@media (max-width: 760px) {
    .create-hero {
        padding-block: 34px 28px;
    }

    .create-listing-section {
        padding: 20px 0 40px;
    }

    .create-listing-content {
        width: min(100% - 30px, 900px);
    }

    .create-form-card {
        padding: 19px;
    }

    .create-fields-grid {
        gap: 13px;
    }

    .photo-previews {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .create-fields-grid {
        grid-template-columns: 1fr;
    }

    .create-field-wide {
        grid-column: auto;
    }

    .create-card-heading h2 {
        font-size: 19px;
    }

    .photo-count {
        display: block;
        margin: 10px 0 0;
    }

    .create-form-actions > * {
        flex: 1;
    }
}

/* =========================
   USER DASHBOARD
========================= */

.dashboard-hero {
    padding: 42px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
}

.dashboard-hero-inner,
.dashboard-user {
    display: flex;
    align-items: center;
}

.dashboard-hero-inner {
    justify-content: space-between;
    gap: 24px;
}

.dashboard-user {
    min-width: 0;
    gap: 17px;
}

.dashboard-avatar {
    position: relative;
    overflow: hidden;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 130, 32, .16);
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-size: 23px;
    font-weight: 850;
}

.dashboard-user h1 {
    margin: 3px 0 4px;
    color: var(--black);
    font-size: clamp(25px, 4vw, 35px);
    letter-spacing: -1.2px;
}

.dashboard-user h1 span {
    color: var(--orange);
}

.dashboard-user p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-new-listing {
    min-height: 47px;
    padding: 0 17px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    background: var(--orange);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(245, 130, 32, .22);
    transition: .2s ease;
}

.dashboard-new-listing:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.dashboard-new-listing > span {
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.dashboard-content {
    min-height: 55vh;
    padding: 0 0 75px;
}

.dashboard-tabs {
    min-height: 58px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: var(--shadow-sm);
}

.dashboard-tab {
    min-height: 44px;
    padding: 0 17px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #686868;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: .2s ease;
}

.dashboard-tab:hover,
.dashboard-tab.active {
    background: var(--orange-soft);
    color: var(--orange-dark);
}

.dashboard-tab-count {
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 99px;
    background: rgba(0, 0, 0, .06);
    display: inline-grid;
    place-items: center;
    font-size: 10px;
    line-height: 1;
}

.dashboard-tab.active .dashboard-tab-count {
    background: rgba(245, 130, 32, .13);
}

.dashboard-tab-new {
    margin-left: auto;
    color: var(--orange-dark);
}

.dashboard-tab-new > span {
    font-size: 19px;
    line-height: 1;
}

.dashboard-section-heading {
    margin: 31px 0 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
}

.dashboard-section-heading h2 {
    margin: 3px 0 0;
    color: var(--black);
    font-size: 23px;
    letter-spacing: -.6px;
}

.dashboard-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.dashboard-listing-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: 0 3px 13px rgba(0, 0, 0, .035);
    transition: transform .25s ease, box-shadow .25s ease;
}

.dashboard-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.dashboard-listing-card[hidden] {
    display: none;
}

.dashboard-card-media {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: #f3f0ed;
}

.dashboard-card-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f4f8ff, #e4efff);
    color: #a18b78;
}

.dashboard-card-image > span {
    font-size: 45px;
    line-height: 1;
}

.dashboard-card-image > small {
    font-size: 10px;
    letter-spacing: .3px;
}

.dashboard-status-badge {
    position: absolute;
    top: 11px;
    right: 11px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 99px;
    background: rgba(239, 246, 255, .96);
    font-size: 10px;
    font-weight: 800;
}

.dashboard-status-badge.is-active {
    color: #267348;
}

.dashboard-image-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 39px;
    padding: 8px 12px;
    background: rgba(21, 21, 21, .58);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
}

.dashboard-image-overlay strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-card-body {
    padding: 15px;
}

.dashboard-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dashboard-tag {
    padding: 4px 8px;
    border-radius: 7px;
    background: #f3f3f3;
    color: #666;
    font-size: 9px;
    font-weight: 750;
}

.dashboard-tag-sale {
    background: #edf7f0;
    color: #267348;
}

.dashboard-card-body h3 {
    min-height: 42px;
    margin: 9px 0 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: var(--black);
    font-size: 14px;
    line-height: 1.5;
}

.dashboard-card-description {
    min-height: 36px;
    margin: 0 0 11px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.dashboard-card-meta {
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 9px;
}

.dashboard-card-meta > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-card-meta time {
    flex: 0 0 auto;
    color: var(--muted-light);
}

.dashboard-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.dashboard-action-edit,
.dashboard-action-view,
.dashboard-action-delete,
.dashboard-action-unfavorite {
    min-width: 0;
    min-height: 36px;
    padding: 0 10px;
    flex: 1;
    border: 1px solid transparent;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
}

.dashboard-action-edit,
.dashboard-action-view {
    background: var(--orange-soft);
    color: var(--orange-dark);
}

.dashboard-action-edit:hover,
.dashboard-action-view:hover {
    background: #ffe7d2;
}

.dashboard-action-delete,
.dashboard-action-unfavorite {
    border-color: #f0dddd;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    color: #b44949;
}

.dashboard-action-delete:hover,
.dashboard-action-unfavorite:hover {
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
}

.dashboard-phone-toggle {
    min-height: 51px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(245, 130, 32, .14);
    border-radius: 10px;
    background: var(--orange-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
}

.dashboard-toggle-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-toggle-copy strong {
    color: var(--text);
    font-size: 10px;
}

.dashboard-toggle-copy small {
    color: var(--muted);
    font-size: 8px;
}

.dashboard-toggle {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 auto;
}

.dashboard-toggle input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    opacity: 0;
}

.dashboard-toggle > span {
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: #d4d4d4;
    transition: background .2s ease;
}

.dashboard-toggle > span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    content: "";
    transition: transform .2s ease;
}

.dashboard-toggle input:checked + span {
    background: var(--orange);
}

.dashboard-toggle input:checked + span::after {
    transform: translateX(16px);
}

.dashboard-toggle input:focus-visible + span {
    outline: 3px solid rgba(245, 130, 32, .25);
    outline-offset: 2px;
}

.dashboard-empty-state {
    padding: 55px 20px;
    border: 1px dashed #dedede;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    text-align: center;
}

.dashboard-empty-state[hidden] {
    display: none;
}

.dashboard-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 15px;
    background: var(--orange-soft);
    color: var(--orange);
    display: grid;
    place-items: center;
    font-size: 28px;
}

.dashboard-empty-state h3 {
    margin: 0 0 6px;
    color: var(--black);
    font-size: 18px;
}

.dashboard-empty-state p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 12px;
}

.dashboard-empty-state a {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--orange);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-empty-state a[hidden] {
    display: none;
}

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

@media (max-width: 760px) {
    .dashboard-hero {
        padding: 30px 0;
    }

    .dashboard-hero-inner {
        align-items: flex-start;
    }

    .dashboard-avatar {
        width: 52px;
        height: 52px;
    }

    .dashboard-new-listing {
        display: none;
    }

    .dashboard-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .dashboard-tabs::-webkit-scrollbar {
        display: none;
    }

    .dashboard-tab {
        padding-inline: 11px;
        flex: 0 0 auto;
        font-size: 11px;
    }

    .dashboard-tab-new {
        margin-left: 0;
    }

    .dashboard-section-heading {
        margin-top: 26px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-card-media {
        height: 220px;
    }
}

@media (max-width: 390px) {
    .dashboard-user {
        gap: 11px;
    }

    .dashboard-user h1 {
        font-size: 24px;
    }

    .dashboard-user p {
        font-size: 11px;
    }

    .dashboard-section-heading h2 {
        font-size: 20px;
    }
}

/* =========================
   LISTING DETAILS
========================= */

.listing-detail-main {
    padding: 28px 0 60px;
}

.listing-detail-container {
    width: min(800px, calc(100% - 40px));
}

.image-carousel {
    position: relative;
    height: 400px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(144, 171, 207, .35);
    border-radius: 18px;
    background: linear-gradient(135deg, #f4f8ff 0%, #dceaff 100%);
    box-shadow: var(--shadow-sm);
}

.listing-carousel-placeholder {
    position: absolute;
    inset: 0;
    color: rgba(64, 113, 176, .45);
    display: grid;
    place-items: center;
}

.listing-carousel-placeholder svg {
    width: 74px;
    height: 74px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.listing-carousel-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

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

.firebase-signin-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    padding: 22px;
    display: grid;
    place-items: center;
}

.firebase-signin-overlay[hidden] {
    display: none;
}

.firebase-signin-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .58);
    backdrop-filter: blur(7px);
}

.firebase-signin-panel {
    z-index: 1;
}

.firebase-auth-error {
    margin: 18px 0 0;
    padding: 11px 13px;
    border: 1px solid #e6b9b9;
    border-radius: 9px;
    background: #fff1f1;
    color: #ad2424;
    font-size: 13px;
    line-height: 1.5;
}

.firebase-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 210;
    max-width: min(440px, calc(100vw - 40px));
    padding: 13px 18px;
    border: 1px solid rgba(55, 112, 182, .2);
    border-radius: 13px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: 0 12px 35px rgba(26, 57, 92, .18);
    color: var(--black);
    font-size: 13px;
}

.firebase-notice.is-error {
    border-color: rgba(173, 36, 36, .25);
    color: #ad2424;
}

.firebase-notice[hidden] {
    display: none;
}

.listing-load-message {
    padding: 20px 0;
    color: var(--muted);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(20, 38, 65, .48);
    color: white;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    transition: background .2s ease, transform .2s ease;
}

.carousel-btn:hover {
    background: var(--orange);
    transform: translateY(-50%) scale(1.06);
}

.carousel-btn.prev {
    left: 14px;
}

.carousel-btn.next {
    right: 14px;
}

.carousel-btn svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.image-counter {
    position: absolute;
    bottom: 13px;
    left: 50%;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 99px;
    background: rgba(20, 38, 65, .6);
    color: white;
    font-size: 11px;
    font-weight: 700;
    transform: translateX(-50%);
}

.listing-detail-card {
    margin-bottom: 15px;
    padding: 20px;
    border: 1px solid rgba(144, 171, 207, .35);
    border-radius: 17px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: var(--shadow-sm);
}

.price-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 11px;
}

.price-value,
.badge-value {
    min-width: 0;
    min-height: 52px;
    padding: 11px 14px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 850;
    text-align: center;
}

.price-value {
    background: linear-gradient(135deg, #238454, #2c9d65);
}

.badge-value {
    min-width: 100px;
    background: linear-gradient(135deg, #367bc4, #5598df);
    font-size: 15px;
}

.badge-value[hidden] {
    display: none;
}

.btn-save,
.btn-contact,
.btn-send-msg,
.btn-admin {
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.btn-save {
    background: var(--orange);
    color: white;
}

.btn-save:hover,
.btn-save[aria-pressed="true"] {
    background: var(--orange-dark);
}

.btn-save svg,
.btn-contact svg,
.btn-send-msg svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.title-section {
    text-align: center;
}

.seller-card[hidden] {
    display: none;
}

.main-title {
    margin: 12px 0 0;
    color: var(--black);
    font-size: clamp(21px, 4vw, 29px);
    font-weight: 850;
    letter-spacing: -.8px;
    overflow-wrap: anywhere;
}

.real-type-tag {
    width: fit-content;
    max-width: 100%;
    margin: 12px auto 0;
    padding: 7px 17px;
    border-radius: 9px;
    background: linear-gradient(135deg, #238454, #2c9d65);
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.specs-card {
    padding: 19px;
}

.spec-row {
    min-height: 42px;
    padding: 8px 2px;
    border-bottom: 1px solid rgba(93, 129, 175, .16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.spec-row:last-child {
    border-bottom: 0;
}

.spec-label,
.spec-value {
    min-width: 0;
    flex: 1;
    font-size: 12px;
}

.spec-label {
    color: #4f5e72;
    font-weight: 750;
}

.spec-value {
    color: var(--text);
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.spec-section {
    margin-top: 3px;
}

.spec-section.hidden {
    display: none;
}

.description-box {
    margin-top: 16px;
    padding-top: 17px;
    border-top: 1px solid rgba(93, 129, 175, .2);
}

.description-box h2 {
    margin: 0 0 8px;
    color: var(--black);
    font-size: 16px;
    font-weight: 850;
}

.description-box p {
    margin: 0;
    color: #4f5e72;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.btn-contact {
    margin-top: 16px;
    border-color: rgba(245, 130, 32, .55);
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    color: var(--text);
}

.btn-contact:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-1px);
}

.seller-card {
    text-align: center;
}

.seller-card h2 {
    margin: 0 0 13px;
    color: var(--black);
    font-size: 16px;
    font-weight: 850;
}

.seller-info-item {
    min-height: 34px;
    color: #4f5e72;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.btn-send-msg {
    margin-top: 12px;
    background: linear-gradient(135deg, #238454, #2c9d65);
    color: white;
}

.btn-send-msg:hover {
    background: linear-gradient(135deg, #1c7047, #238454);
    transform: translateY(-1px);
}

.admin-row {
    display: none;
    gap: 10px;
    margin-top: 12px;
}

.admin-row.active {
    display: flex;
}

.btn-admin {
    background: var(--orange);
    color: white;
}

.btn-admin:hover {
    background: var(--orange-dark);
}

@media (max-width: 760px) {
    .listing-detail-main {
        padding: 18px 0 40px;
    }

    .listing-detail-container {
        width: min(100% - 30px, 800px);
    }

    .image-carousel {
        height: 270px;
        border-radius: 15px;
    }

    .listing-detail-card {
        padding: 17px;
    }
}

@media (max-width: 480px) {
    .image-carousel {
        height: 220px;
    }

    .listing-carousel-placeholder svg {
        width: 60px;
        height: 60px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .price-row {
        grid-template-columns: 1fr;
    }

    .badge-value {
        min-height: 40px;
    }

    .spec-label,
    .spec-value {
        font-size: 11px;
    }
}

/* =========================
   MESSAGES
========================= */

.messages-hero {
    padding: 35px 0 30px;
    background: linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
}

.messages-hero-content h1 {
    margin: 5px 0;
    color: var(--black);
    font-size: clamp(31px, 4.5vw, 42px);
    letter-spacing: -1.5px;
}

.messages-hero-content h1 span {
    color: var(--orange);
}

.messages-hero-content p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.messages-section {
    min-height: 60vh;
    padding: 0 0 65px;
}

.messages-container {
    width: min(1160px, calc(100% - 48px));
}

.messages-layout {
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(275px, 340px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(144, 171, 207, .38);
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3ff 100%);
    box-shadow: var(--shadow-sm);
}

.conversation-panel {
    min-width: 0;
    border-right: 1px solid rgba(144, 171, 207, .32);
    background: linear-gradient(180deg, #f6faff 0%, #eaf3ff 100%);
}

.conversation-panel-heading {
    min-height: 76px;
    padding: 16px 17px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.conversation-panel-heading h2 {
    margin: 2px 0 0;
    color: var(--black);
    font-size: 18px;
    letter-spacing: -.4px;
}

.conversation-total {
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border-radius: 99px;
    background: rgba(245, 130, 32, .13);
    color: var(--orange-dark);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
}

.conversation-search {
    height: 40px;
    margin: 0 13px 10px;
    padding: 0 11px;
    border: 1px solid rgba(144, 171, 207, .35);
    border-radius: 10px;
    background: linear-gradient(135deg, #fbfdff, #edf5ff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.conversation-search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: #8291a6;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.conversation-search input {
    width: 100%;
    min-width: 0;
    background: transparent;
    color: var(--text);
    font-size: 11px;
}

.conversation-search input::placeholder {
    color: var(--muted-light);
}

.conversation-list {
    display: flex;
    flex-direction: column;
}

.conversation-item {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 79px;
    padding: 12px 13px;
    border: 0;
    border-top: 1px solid rgba(144, 171, 207, .2);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background .2s ease;
}

.conversation-item:hover,
.conversation-item.active {
    background: linear-gradient(110deg, rgba(255, 255, 255, .86), rgba(221, 235, 255, .85));
}

.conversation-item.active {
    box-shadow: inset 3px 0 var(--orange);
}

.conversation-item[hidden],
.conversation-list[hidden] {
    display: none;
}

.conversation-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(67, 102, 148, .12);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #42536a;
    font-size: 14px;
    font-weight: 850;
}

.avatar-peach {
    background: linear-gradient(145deg, #fff1e5, #fbd9c5);
    color: #9b5429;
}

.avatar-blue {
    background: linear-gradient(145deg, #edf5ff, #cfdef4);
    color: #42638f;
}

.avatar-lilac {
    background: linear-gradient(145deg, #f6f0ff, #e2d8fa);
    color: #69518e;
}

.conversation-preview {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.conversation-name-row {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.conversation-name-row strong {
    overflow: hidden;
    color: var(--black);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-name-row time {
    flex: 0 0 auto;
    color: var(--muted-light);
    font-size: 8px;
}

.conversation-listing,
.conversation-last-message {
    overflow: hidden;
    color: #68788e;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-listing {
    color: var(--orange-dark);
    font-weight: 750;
}

.conversation-unread {
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--orange);
    color: white;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
}

.conversation-no-results {
    padding: 22px 16px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.conversation-no-results[hidden] {
    display: none;
}

.chat-panel {
    min-width: 0;
    min-height: 590px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    min-height: 72px;
    padding: 12px 17px;
    border-bottom: 1px solid rgba(144, 171, 207, .27);
    background: linear-gradient(110deg, rgba(249, 252, 255, .94), rgba(232, 241, 255, .88));
    display: flex;
    align-items: center;
    gap: 11px;
}

.chat-back-button {
    display: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(144, 171, 207, .3);
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff, #eaf3ff);
    color: #51657f;
    place-items: center;
}

.chat-back-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-contact {
    min-width: 0;
    flex: 1;
}

.chat-contact h2 {
    margin: 0;
    overflow: hidden;
    color: var(--black);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-contact > span {
    margin-top: 3px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
}

.chat-contact > span i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #46a56e;
}

.chat-listing-link {
    max-width: 38%;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid rgba(144, 171, 207, .28);
    border-radius: 9px;
    background: linear-gradient(135deg, #f8fbff, #e6f0ff);
    color: #526a8b;
    font-size: 9px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-messages {
    min-height: 0;
    padding: 18px;
    flex: 1;
    overflow-y: auto;
    background:
        radial-gradient(circle at 85% 20%, rgba(151, 189, 239, .13), transparent 32%),
        linear-gradient(180deg, #f4f8ff 0%, #eaf2ff 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-date-divider {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chat-date-divider::before,
.chat-date-divider::after {
    width: 45px;
    height: 1px;
    background: rgba(107, 132, 165, .23);
    content: "";
}

.chat-date-divider span {
    color: #7a899c;
    font-size: 9px;
    font-weight: 750;
}

.message-bubble {
    width: fit-content;
    max-width: min(78%, 430px);
    padding: 10px 12px 7px;
    border: 1px solid rgba(144, 171, 207, .28);
    border-radius: 13px;
    box-shadow: 0 2px 7px rgba(41, 68, 105, .04);
}

.message-bubble p {
    margin: 0;
    color: #36465b;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.message-bubble time {
    margin-top: 4px;
    color: #8290a2;
    display: block;
    font-size: 8px;
    text-align: right;
}

.message-incoming {
    align-self: flex-start;
    border-top-left-radius: 4px;
    background: linear-gradient(135deg, #fbfdff, #edf5ff);
}

.message-outgoing {
    align-self: flex-end;
    border-color: rgba(126, 168, 221, .28);
    border-top-right-radius: 4px;
    background: linear-gradient(135deg, #e7f1ff, #dceaff);
}

.message-outgoing time span {
    color: #4e83c1;
    font-weight: 800;
}

.message-composer {
    padding: 12px 15px 10px;
    border-top: 1px solid rgba(144, 171, 207, .28);
    background: linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%);
}

.message-editor-label {
    margin: 0 0 6px 2px;
    color: #65758a;
    display: block;
    font-size: 9px;
    font-weight: 750;
}

.message-composer-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.message-composer textarea {
    width: 100%;
    min-height: 42px;
    max-height: 140px;
    padding: 11px 12px;
    resize: none;
    overflow-y: auto;
    border: 1px solid rgba(144, 171, 207, .4);
    border-radius: 11px;
    outline: 0;
    background: linear-gradient(135deg, #fbfdff, #edf5ff);
    color: var(--text);
    font: inherit;
    font-size: 11px;
    line-height: 1.5;
}

.message-composer textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, .12);
}

.message-composer textarea::placeholder {
    color: var(--muted-light);
}

.message-send-button {
    min-height: 42px;
    padding: 0 14px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    background: var(--orange);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.message-send-button:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.message-send-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.message-composer-footer {
    margin: 6px 2px 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #8290a2;
    font-size: 8px;
}

@media (max-width: 760px) {
    .messages-hero {
        padding: 28px 0 24px;
    }

    .messages-section {
        padding-bottom: 35px;
    }

    .messages-container {
        width: min(100% - 24px, 600px);
    }

    .messages-layout {
        min-height: 620px;
        grid-template-columns: 1fr;
        border-radius: 15px;
    }

    .conversation-panel {
        border-right: 0;
    }

    .chat-panel {
        display: none;
        min-height: 620px;
    }

    .messages-layout.conversation-open .conversation-panel {
        display: none;
    }

    .messages-layout.conversation-open .chat-panel {
        display: flex;
    }

    .chat-back-button {
        display: grid;
        flex: 0 0 auto;
    }

    .conversation-panel-heading {
        min-height: 68px;
    }
}

@media (max-width: 390px) {
    .messages-container {
        width: calc(100% - 18px);
    }

    .chat-header {
        gap: 8px;
        padding-inline: 10px;
    }

    .chat-listing-link {
        max-width: 32%;
        padding-inline: 7px;
        font-size: 8px;
    }

    .chat-messages {
        padding: 13px 10px;
    }

    .message-bubble {
        max-width: 86%;
    }

    .message-composer {
        padding-inline: 10px;
    }

    .message-send-button {
        padding-inline: 11px;
    }
}
