﻿:root {
            --primary: #1dbf73;
            --primary-dark: #16a159;
            --dark: #111827;
            --light: #f9fafb;
            --gray: #6b7280;
            --border: #e5e7eb;
            --danger-bg: #fef2f2;
            --danger-border: #fecaca;
            --danger-text: #b91c1c;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
            background: radial-gradient(circle at top left, #ecfdf3 0, #f9fafb 35%, #eef2ff 100%);
            color: var(--dark);
        }

        a {
            color: inherit;
        }


/* ---------- NAVBAR ---------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* BRAND */
.navbar-brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.navbar-logo {
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
    color: #f9fafb;
    white-space: nowrap;
}

.navbar-logo span {
    color: var(--primary);
}

.navbar-tagline {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RIGHT */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* MENU */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.navbar-links a {
    font-size: 0.9rem;
    text-decoration: none;
    color: #e5e7eb;
    white-space: nowrap;
}

.navbar-links a:hover {
    color: #ffffff;
}

/* AUTH */
.navbar-auth {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-username {
    color: #9ca3af;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

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

.btn-ghost {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(156, 163, 175, 0.4);
}

.btn-ghost:hover {
    border-color: #e5e7eb;
}

/* TOGGLE BUTTON */
.navbar-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(156, 163, 175, 0.4);
    border-radius: 999px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.navbar-toggle span {
    display: block;
    width: 1rem;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 1rem;
}

/* ---------- FOOTER ---------- */
footer {
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

footer a {
    color: #9ca3af;
}

footer a:hover {
    color: #ffffff;
}

/* ---------- MOBILE FIX ---------- */
@media (max-width: 768px) {

    .navbar-inner {
        flex-wrap: wrap;
    }

    .navbar-tagline {
        display: none;
    }

    .navbar-toggle {
        display: inline-flex;
    }

    .navbar-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(55, 65, 81, 0.7);
        margin-top: 0.6rem;
    }

    .navbar-menu.open {
        display: flex;
    }

    .navbar-links {
        flex-direction: column;
        width: 100%;
    }

    .navbar-links a {
        display: block;
        width: 100%;
        padding: 0.65rem 0.8rem;
        border-radius: 0.65rem;
        background: rgba(255, 255, 255, 0.03);
    }

    .navbar-auth {
        flex-direction: column;
        width: 100%;
    }

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


        /* ---------- LAYOUT ---------- */

        .container {
            max-width: 1100px;
            margin: 1.8rem auto 3rem;
            padding: 0 1rem;
        }

        main {
            min-height: 70vh;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            align-items: flex-start;
            margin-bottom: 1.5rem;
        }

        .page-title {
            margin: 0;
            font-size: 1.75rem;
            letter-spacing: -0.02em;
        }

        .page-subtitle {
            margin-top: 0.4rem;
            margin-bottom: 0;
            color: var(--gray);
            font-size: 0.95rem;
        }

        .page-header-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            padding: 0.15rem 0.6rem;
            border-radius: 999px;
            font-size: 0.75rem;
        }

        .badge-soft {
            background: rgba(15, 23, 42, 0.06);
            color: #374151;
        }

        /* ---------- CARDS / SECTIONS ---------- */

        .section-card {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 0.9rem;
            padding: 1.25rem 1.4rem;
            border: 1px solid rgba(209, 213, 219, 0.8);
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
            margin-bottom: 1.25rem;
        }

        .section-header {
            margin-bottom: 0.75rem;
        }

        .section-title {
            margin: 0;
            font-size: 1.1rem;
        }

        .section-caption {
            margin: 0.3rem 0 0;
            font-size: 0.9rem;
            color: var(--gray);
        }

        .section-text {
            margin: 0.3rem 0;
            font-size: 0.95rem;
        }

        .notice {
            font-size: 0.86rem;
            background: var(--danger-bg);
            border: 1px solid var(--danger-border);
            color: var(--danger-text);
            border-radius: 0.75rem;
            padding: 0.7rem 0.9rem;
            margin-bottom: 1rem;
        }

        /* ---------- HERO / SEARCH ---------- */

        .hero {
            margin-bottom: 1.5rem;
        }

        .hero h2 {
            margin: 0;
            font-size: 1.3rem;
        }

        .hero-search {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 0.9rem 0;
        }

        .search-input {
            flex: 1 1 220px;
            border-radius: 999px;
            border: 1px solid var(--border);
            padding: 0.5rem 0.85rem;
            font-size: 0.9rem;
        }

        .search-select {
            flex: 0 0 150px;
            border-radius: 999px;
            border: 1px solid var(--border);
            padding: 0.5rem 0.85rem;
            font-size: 0.9rem;
            background: #ffffff;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 0;
        }

        /* ---------- GRID / LISTINGS ---------- */

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1rem;
        }

        .card {
            background: #ffffff;
            border-radius: 0.9rem;
            padding: 0.9rem 1rem;
            border: 1px solid rgba(209, 213, 219, 0.9);
            box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
        }

        .listing-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 0.5rem;
            margin-bottom: 0.35rem;
        }

        .listing-pair {
            font-weight: 600;
            font-size: 0.98rem;
        }

        .listing-location {
            font-size: 0.85rem;
            color: var(--gray);
        }

        .listing-meta {
            margin: 0.25rem 0;
            font-size: 0.82rem;
            color: var(--gray);
        }

        .listing-btn {
            font-size: 0.85rem;
            padding-inline: 0.8rem;
        }

        /* Thumbnail in cards / My listings */
        .listing-thumb {
            width: 64px;
            height: 64px;
            border-radius: 0.6rem;
            object-fit: cover;
            border: 1px solid var(--border);
        }

        .category-chips {
            list-style: none;
            padding: 0;
            margin: 0.25rem 0 0;
            display: flex;
            flex-wrap: wrap;
            gap: 0.25rem;
        }

        .category-chips li {
            background: rgba(15, 23, 42, 0.04);
            border-radius: 999px;
            padding: 0.15rem 0.5rem;
            font-size: 0.75rem;
            color: #374151;
        }

        .type-pill {
            display: inline-flex;
            align-items: center;
            padding: 0.1rem 0.55rem;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .type-pill-service {
            background: #ecfdf3;
            color: #166534;
        }

        .type-pill-job {
            background: #eff6ff;
            color: #1d4ed8;
        }

        .type-pill-news {
            background: #fefce8;
            color: #854d0e;
        }

        /* ---------- DETAIL LAYOUT ---------- */

        .detail-layout {
            display: grid;
            grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
            gap: 1.2rem;
        }

        .detail-img {
            max-width: 100%;
            border-radius: 0.75rem;
            border: 1px solid var(--border);
            margin-bottom: 0.75rem;
        }

        .detail-title {
            margin-top: 0;
            margin-bottom: 0.35rem;
            font-size: 1.3rem;
        }

        .detail-subtitle {
            margin-top: 1rem;
            margin-bottom: 0.35rem;
            font-size: 1rem;
        }

        .detail-sidebar {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .sidebar-card {
            background: #f9fafb;
            border-radius: 0.75rem;
            padding: 0.75rem 0.9rem;
            border: 1px solid var(--border);
        }

        .sidebar-title {
            margin: 0 0 0.35rem;
            font-size: 0.95rem;
        }

        .text-muted {
            color: var(--gray);
        }

        .small {
            font-size: 0.83rem;
        }

        .contact-list {
            list-style: none;
            padding: 0;
            margin: 0.2rem 0 0;
            font-size: 0.85rem;
        }

        .contact-list li {
            margin-bottom: 0.25rem;
        }

        .contact-label {
            display: inline-block;
            min-width: 3.5rem;
            font-weight: 600;
        }

        .sidebar-hint {
            background: #ecfdf3;
            border-color: #bbf7d0;
        }

        .hint-list {
            margin: 0.25rem 0 0;
            padding-left: 1.1rem;
            font-size: 0.82rem;
        }

        /* ---------- FORM UTILS ---------- */

        .form-card {
            background: #ffffff;
            border-radius: 0.9rem;
            padding: 1.25rem 1.4rem;
            border: 1px solid rgba(209, 213, 219, 0.9);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        }

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

        .field-group {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .field-label {
            font-size: 0.85rem;
            font-weight: 600;
        }

        .required {
            color: #dc2626;
        }

        .form-card input[type="text"],
        .form-card input[type="email"],
        .form-card input[type="number"],
        .form-card textarea,
        .form-card select {
            border-radius: 0.6rem;
            border: 1px solid var(--border);
            padding: 0.45rem 0.7rem;
            font-size: 0.9rem;
        }

        .form-actions {
            margin-top: 1rem;
        }

        .checkbox-label {
            display: flex;
            align-items: flex-start;
            gap: 0.45rem;
            font-size: 0.85rem;
        }

        .checkbox-label input[type="checkbox"] {
            margin-top: 0.2rem;
        }

        .form-errors {
            background: var(--danger-bg);
            border: 1px solid var(--danger-border);
            color: var(--danger-text);
            padding: 0.6rem 0.8rem;
            border-radius: 0.6rem;
            margin-bottom: 0.9rem;
            font-size: 0.85rem;
        }

        /* ---------- FOOTER ---------- */

        footer {
            padding: 1.6rem 1rem 2rem;
            border-top: 1px solid rgba(209, 213, 219, 0.7);
            background: rgba(249, 250, 251, 0.96);
            font-size: 0.85rem;
            color: var(--gray);
            text-align: center;
        }

        footer a {
            color: var(--primary-dark);
            text-decoration: none;
        }

        footer a:hover {
            text-decoration: underline;
        }

        /* ---------- UTIL ---------- */

        .mt-1 { margin-top: 0.5rem; }
        .mt-2 { margin-top: 0.75rem; }
        .mt-3 { margin-top: 1.2rem; }

        /* ---------- RESPONSIVE ---------- */

        @media (max-width: 900px) {
            .detail-layout {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        @media (max-width: 768px) {
            .navbar-inner {
                flex-wrap: wrap;
                align-items: center;
            }

            .navbar-menu {
                display: none;
                width: 100%;
                flex-direction: column;
                align-items: flex-start;
                padding-top: 0.6rem;
                border-top: 1px solid rgba(55, 65, 81, 0.7);
                margin-top: 0.4rem;
            }

            .navbar-menu.open {
                display: flex;
            }

            .navbar-links {
                flex-wrap: wrap;
            }

            .navbar-right {
                width: 100%;
                justify-content: space-between;
            }

            .navbar-toggle {
                display: inline-flex;
            }

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

            .page-header {
                flex-direction: column;
            }
        }
		.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.field-col {
    display: flex;
    flex-direction: column;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding: 1.4rem 0 2rem;
}

.auth-page::before,
.auth-page::after {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    background: rgba(18, 183, 106, 0.1);
    content: "";
}

.auth-page::before {
    left: 6vw;
    top: 30vh;
    width: 42px;
    height: 42px;
}

.auth-page::after {
    right: 7vw;
    bottom: 22vh;
    width: 58px;
    height: 58px;
}

.auth-card {
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.auth-card-wide {
    max-width: 900px;
}

.auth-register-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 2rem;
    max-width: 1180px;
    padding: 2.6rem;
    border-radius: 1.25rem;
}

.auth-main-panel h1,
.auth-login-form-panel h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3rem);
}

.heading-underline {
    display: block;
    width: 28px;
    height: 3px;
    margin: 0.75rem 0 0;
    border-radius: 999px;
    background: var(--primary);
}

.auth-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 1.4rem;
    align-items: center;
    margin-bottom: 1.4rem;
}

.auth-illustration {
    position: relative;
    height: 112px;
    overflow: hidden;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 70% 38%, rgba(18, 183, 106, 0.14) 0 3rem, transparent 3.1rem),
        linear-gradient(135deg, #f0fbf6, #ffffff);
}

.auth-illustration span {
    position: absolute;
    left: 48px;
    top: 26px;
    width: 138px;
    height: 70px;
    border-radius: 0.8rem;
    background: #dff4eb;
    box-shadow: inset 0 12px 0 rgba(18, 183, 106, 0.22);
}

.auth-illustration span::before {
    position: absolute;
    left: 22px;
    top: 25px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #6cc99a;
    content: "";
}

.auth-illustration i {
    position: absolute;
    right: 35px;
    bottom: 18px;
    width: 44px;
    height: 52px;
    border-radius: 0 0 18px 18px;
    background: var(--primary);
    transform: rotate(-8deg);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    min-height: 50px;
    border-radius: 0.65rem;
    border: 1px solid #cfd8e3;
    padding: 0.65rem 0.9rem;
    color: var(--ink);
    font-size: 0.95rem;
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
    outline: none;
}

.auth-benefits-panel {
    align-self: start;
    padding: 1.8rem 1.55rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.auth-benefits-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.35rem;
}

.auth-benefit-list {
    display: grid;
    margin-top: 1.4rem;
}

.auth-benefit {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.auth-benefit span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #e6f8ef;
    color: var(--primary-dark);
    font-weight: 950;
}

.auth-benefit strong,
.auth-benefit p {
    display: block;
    margin: 0;
}

.auth-benefit strong {
    color: var(--ink);
}

.auth-benefit p {
    margin-top: 0.25rem;
    color: var(--muted);
    line-height: 1.35;
}

.auth-trust-box {
    margin-top: 1.6rem;
    padding: 1.1rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #e8f8ef, #f5fbff);
}

.auth-trust-box strong {
    color: var(--primary-dark);
}

.auth-trust-box p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.auth-login-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(320px, 1.15fr);
    max-width: 960px;
    padding: 0;
    overflow: hidden;
}

.auth-login-form-panel {
    padding: 2rem;
}

.auth-login-visual {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    background: linear-gradient(180deg, #dff8ec, #e9f6ff);
}

.visual-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.9) 0 5rem, transparent 5.1rem),
        radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.8) 0 3rem, transparent 3.1rem);
}

.visual-water {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32%;
    background: linear-gradient(90deg, #3bd3df, #b8f3ff);
}

.visual-city {
    position: absolute;
    left: 12%;
    right: 10%;
    bottom: 28%;
    height: 38%;
    border-radius: 24px 24px 4px 4px;
    background:
        linear-gradient(90deg, #e6c38b 0 15%, #f1d9a6 15% 32%, #cfa36d 32% 47%, #f6e0b1 47% 72%, #d2a875 72%),
        linear-gradient(#f6e0b1, #d0a16b);
    box-shadow: -42px 54px 0 -28px #27b57a, 58px -42px 0 -22px #d0a16b;
}

.remember-line {
    margin-top: 0.85rem;
    color: var(--muted);
}

.auth-subtitle,
.section-caption small {
    color: var(--gray);
}

.w-100 {
    width: 100%;
}

.form-card small {
    color: var(--gray);
    font-size: 0.82rem;
}

.form-card ul.errorlist {
    margin: 0.3rem 0 0;
    padding-left: 1rem;
    color: #b91c1c;
    font-size: 0.82rem;
}

.terms-checkbox {
    align-items: flex-start;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #f8fbfd;
    color: #344054;
    line-height: 1.5;
}

.terms-checkbox a,
.auth-form .small a {
    color: var(--primary-dark);
    font-weight: 800;
}

.signup-terms-block {
    margin-top: 1.25rem;
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.terms-intro h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.45rem;
}

.terms-intro p {
    margin: 0.45rem 0 0.9rem;
    color: var(--muted);
}

.terms-scroll-box {
    max-height: 340px;
    overflow-y: auto;
    padding: 1.2rem 1.35rem;
    border: 1px solid #cfd8e3;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #344054;
    line-height: 1.62;
}

.terms-scroll-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
    outline: none;
}

.terms-scroll-box h3 {
    margin: 1.1rem 0 0.45rem;
    color: var(--ink);
    font-size: 1.1rem;
}

.terms-scroll-box h3:first-of-type {
    margin-top: 0.4rem;
}

.terms-scroll-box p {
    margin: 0 0 0.75rem;
}

.terms-lead {
    color: var(--muted);
    font-weight: 700;
}

.signup-terms-block .terms-checkbox {
    margin-top: 0.9rem;
}

.terms-accept-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.9rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #f8fbfd;
    color: #344054;
    line-height: 1.5;
}

.terms-accept-line .terms-checkbox {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.terms-popup-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #f8fbfd;
}

.terms-popup-prompt p {
    margin: 0;
    color: var(--muted);
}

.terms-open-button,
.terms-inline-button {
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.terms-open-button {
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--primary);
    border-radius: 0.7rem;
    background: #e6f8ef;
    text-decoration: none;
    white-space: nowrap;
}

.terms-modal {
    width: min(920px, calc(100vw - 2rem));
    max-height: min(760px, calc(100vh - 2rem));
    padding: 0;
    border: 0;
    border-radius: 1rem;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 28px 80px rgba(7, 17, 35, 0.35);
}

.terms-modal::backdrop {
    background: rgba(7, 17, 35, 0.62);
    backdrop-filter: blur(3px);
}

.terms-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.65rem 1rem;
    border-bottom: 1px solid var(--line);
}

.terms-modal-header h2 {
    margin: 0;
    font-size: 1.65rem;
}

.terms-modal-header p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.terms-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.terms-scroll-box-modal {
    max-height: min(430px, calc(100vh - 260px));
    margin: 1rem 1.65rem;
    border-radius: 0.6rem;
}

.terms-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0 1.65rem 1.4rem;
}

@media (max-width: 680px) {
    .terms-popup-prompt {
        align-items: stretch;
        flex-direction: column;
    }

    .terms-open-button {
        width: 100%;
    }

    .terms-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 980px) {
    .auth-register-card,
    .auth-login-card,
    .auth-heading-row {
        grid-template-columns: 1fr;
    }

    .auth-benefits-panel {
        order: 2;
    }

    .auth-illustration {
        min-height: 120px;
    }
}

@media (max-width: 620px) {
    .auth-register-card,
    .auth-login-form-panel {
        padding: 1.35rem;
    }

    .auth-card {
        border-radius: 1rem;
    }

    .auth-main-panel h1,
    .auth-login-form-panel h1 {
        font-size: 2rem;
    }

    .auth-login-visual {
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.chip-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip-group li {
    margin: 0;
}

.chip-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.chip-group label:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

.chip-group input[type="checkbox"] {
    margin: 0;
}

.chip-group input[type="checkbox"]:checked + span,
.chip-group label:has(input[type="checkbox"]:checked) {
    border-color: var(--primary);
    background: #ecfdf3;
    color: #166534;
    font-weight: 600;
}

.chip-group.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    color: var(--dark);
    transition: all 0.2s ease;
}

.chip:hover {
    border-color: var(--primary);
    background: #ecfdf3;
    color: #166534;
}

.active-chip {
    border-color: var(--primary);
    background: #ecfdf3;
    color: #166534;
    font-weight: 600;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.listing-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: rgba(29, 191, 115, 0.35);
}

.card-media {
    width: 100%;
    height: 180px;
    background: #f3f4f6;
    overflow: hidden;
}

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

.image-fallback-placeholder {
    display: none;
}

.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf3, #eef2ff);
    color: #374151;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 1rem;
}

.card-body {
    padding: 1rem;
}

.card-body h2 {
    margin: 0.55rem 0 0.45rem;
    font-size: 1.02rem;
    line-height: 1.35;
}

.card-body p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.45;
}

.meta {
    margin-top: 0.7rem;
    font-size: 0.82rem;
    color: var(--gray);
}

.chip-small {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-size: 0.72rem;
    margin-right: 0.35rem;
    margin-top: 0.35rem;
    color: #374151;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.8);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.empty-state h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0;
    color: var(--gray);
}

.detail-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.detail-page-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.detail-meta-line {
    margin-top: 0.55rem;
    font-size: 0.92rem;
    color: var(--gray);
}

.detail-hero-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    display: block;
}

.detail-placeholder {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #ecfdf3, #eef2ff);
    color: #374151;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 1rem;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.detail-gallery img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    display: block;
}

.detail-copy {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #1f2937;
}

.detail-copy p {
    margin-top: 0;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    font-size: 0.92rem;
}

.detail-info-grid div {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
}

@media (max-width: 768px) {
    .detail-page-title {
        font-size: 1.55rem;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
    }

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

.dashboard-grid {
    display: grid;
    gap: 1rem;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dashboard-card-top {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.dashboard-card-media {
    width: 100%;
    height: 140px;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid var(--border);
}

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

.dashboard-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf3, #eef2ff);
    color: #374151;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    letter-spacing: 0.04em;
}

.dashboard-card-body {
    min-width: 0;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
}

.dashboard-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.dashboard-meta {
    margin-top: 0.25rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: #ecfdf3;
    color: #166534;
}

.status-expired {
    background: #fff7ed;
    color: #c2410c;
}

.status-inactive {
    background: #f3f4f6;
    color: #374151;
}

.dashboard-description {
    margin: 0.75rem 0 0;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.5;
}

.dashboard-category-row {
    margin-top: 0.65rem;
}

.dashboard-extra {
    margin-top: 0.65rem;
    font-size: 0.85rem;
    color: #374151;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 1rem 1rem;
}

@media (max-width: 768px) {
    .dashboard-card-top {
        grid-template-columns: 1fr;
    }

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

    .dashboard-card-header {
        flex-direction: column;
    }

    .dashboard-badges {
        justify-content: flex-start;
    }
}

.field-has-error input,
.field-has-error select,
.field-has-error textarea {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-error-text {
    color: #b91c1c;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.report-card {
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: #fffafa;
}

.report-card .sidebar-title {
    color: #991b1b;
}

.report-card .btn {
    margin-top: 0.35rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: #ecfdf3;
    color: #166534;
}

.status-expired {
    background: #fff7ed;
    color: #c2410c;
}

.status-inactive {
    background: #f3f4f6;
    color: #374151;
}

.status-flagged {
    background: #fef2f2;
    color: #b91c1c;
}

.status-rejected {
    background: #fdf2f8;
    color: #be185d;
}

.status-removed {
    background: #111827;
    color: #ffffff;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.detail-page-title {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.2;
}

.detail-meta-line {
    margin-top: 0.45rem;
    color: var(--gray);
    font-size: 0.92rem;
}

.detail-hero-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    display: block;
}

.detail-placeholder {
    width: 100%;
    min-height: 260px;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf3, #eef2ff);
    color: #374151;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 1rem;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.detail-gallery img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    display: block;
}

.detail-copy {
    color: #374151;
    line-height: 1.7;
    font-size: 0.95rem;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 0.85rem;
    font-size: 0.92rem;
    color: #374151;
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dashboard-card-top {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.dashboard-card-media {
    width: 100%;
    height: 140px;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid var(--border);
}

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

.dashboard-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf3, #eef2ff);
    color: #374151;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    letter-spacing: 0.04em;
}

.dashboard-card-body {
    min-width: 0;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
}

.dashboard-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.dashboard-meta {
    margin-top: 0.25rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.dashboard-description {
    margin: 0.75rem 0 0;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.5;
}

.dashboard-category-row {
    margin-top: 0.65rem;
}

.dashboard-extra {
    margin-top: 0.65rem;
    font-size: 0.85rem;
    color: #374151;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 1rem 1rem;
}

@media (max-width: 768px) {
    .dashboard-card-top {
        grid-template-columns: 1fr;
    }

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

    .dashboard-card-header {
        flex-direction: column;
    }

    .dashboard-badges {
        justify-content: flex-start;
    }
}

.admin-note-box {
    background: #fffbeb;
    border: 1px solid #facc15;
    color: #92400e;
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
    margin-top: 0.65rem;
}

.flag-warning {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
    margin-top: 0.65rem;
}

.removed-warning {
    background: #111827;
    border: 1px solid #111827;
    color: #ffffff;
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
    margin-top: 0.65rem;
}

.report-card {
    border: 1px solid rgba(220, 38, 38, 0.22);
    background: #fff5f5;
}

.report-card .sidebar-title {
    color: #b91c1c;
}

.report-card .btn-ghost {
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
}

.report-card .btn-ghost:hover {
    background: #b91c1c;
    color: #ffffff;
    border-color: #b91c1c;
}

.site-message {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

/* ERROR (suspension, etc) */
.site-message-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* SUCCESS */
.site-message-success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

/* WARNING */
.site-message-warning {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

/* INFO */
.site-message-info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* Template utility classes */
.city-search-input {
    flex: 0 0 180px;
}

.inline-form {
    display: inline;
}

.listing-summary-row {
    display: flex;
    gap: 0.75rem;
}

.listing-summary-body {
    flex: 1;
}

.messages-container {
    margin-top: 1rem;
}

.flash-message {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
}

/* Professional marketplace refresh */
:root {
    --primary: #12b76a;
    --primary-dark: #079455;
    --ink: #071123;
    --muted: #667085;
    --line: #d9e2ec;
    --panel: #ffffff;
    --soft: #f6faf8;
    --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.07);
    --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.11);
}

body {
    background:
        radial-gradient(circle at 9% 12%, rgba(18, 183, 106, 0.13), transparent 22rem),
        radial-gradient(circle at 88% 17%, rgba(84, 168, 255, 0.13), transparent 24rem),
        #f8fbfd;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
    max-width: 1390px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 60;
    margin-top: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

.navbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.05rem 1.35rem;
    border-radius: 0 0 1.6rem 1.6rem;
    background: linear-gradient(135deg, #071123 0%, #0d1a2e 100%);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: grid;
    grid-template-columns: 38px auto;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    align-items: center;
}

.brand-mark {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background:
        linear-gradient(90deg, transparent 33%, #12b76a 33% 66%, transparent 66%),
        linear-gradient(0deg, #36bffa 33%, transparent 33% 66%, #22c55e 66%);
    box-shadow: inset 0 0 0 7px rgba(7, 17, 35, 0.12);
}

.navbar-logo {
    font-size: 1.28rem;
    line-height: 1;
}

.navbar-tagline {
    color: #b7c3d7;
    font-size: 0.78rem;
}

.navbar-links a {
    position: relative;
    color: #f8fafc;
    font-weight: 700;
    padding: 0.45rem 0.25rem;
}

.navbar-links a:hover::after {
    transform: scaleX(1);
}

.navbar-links a::after {
    position: absolute;
    left: 0.2rem;
    right: 0.2rem;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
    content: "";
    transform: scaleX(0);
    transition: transform 0.18s ease;
}

.btn {
    min-height: 42px;
    padding: 0.58rem 1.05rem;
    border-radius: 0.8rem;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #16c784, #06a75d);
    box-shadow: 0 12px 24px rgba(18, 183, 106, 0.28);
    color: #ffffff;
}

.btn-light {
    background: #ffffff;
    border-color: var(--line);
    color: var(--ink);
}

.btn-light:hover {
    border-color: rgba(18, 183, 106, 0.45);
    color: var(--primary-dark);
}

.navbar-auth .btn-ghost {
    color: #ffffff;
    border-color: rgba(226, 232, 240, 0.42);
    background: rgba(255, 255, 255, 0.03);
}

.container {
    max-width: 1220px;
    margin: 1.35rem auto 3rem;
    padding: 0 1rem;
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    align-items: center;
    gap: 2rem;
    min-height: 390px;
    padding: 1.25rem 0 1.6rem;
}

.home-hero::before,
.browse-header::after {
    position: absolute;
    width: 84px;
    height: 84px;
    background-image: radial-gradient(rgba(18, 183, 106, 0.34) 1.7px, transparent 1.7px);
    background-size: 14px 14px;
    content: "";
}

.home-hero::before {
    left: -2rem;
    top: 0.4rem;
}

.home-hero-copy h1 {
    margin: 0;
    max-width: 470px;
    color: var(--ink);
    font-size: clamp(3.4rem, 7vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.home-hero-copy h1 span {
    color: var(--primary);
}

.home-hero-copy p {
    max-width: 420px;
    margin: 1.4rem 0 0;
    color: #53627a;
    font-size: 1.25rem;
    line-height: 1.55;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.8rem;
    max-width: 620px;
}

.hero-highlights div {
    display: grid;
    grid-template-columns: 44px auto;
    column-gap: 0.7rem;
    align-items: center;
}

.mini-icon,
.post-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #dff8ec;
    color: var(--primary-dark);
    font-weight: 900;
}

.hero-highlights strong,
.hero-highlights small {
    display: block;
}

.hero-highlights small,
.post-type-card small {
    color: var(--muted);
}

.popular-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.2rem 0 1.5rem;
}

.popular-panel {
    height: 100%;
}

.popular-list {
    display: grid;
    gap: 0.65rem;
}

.popular-row {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    text-decoration: none;
}

.popular-row:hover {
    border-color: rgba(18, 183, 106, 0.45);
    background: #f0fdf4;
}

.popular-rank {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 0.86rem;
    font-weight: 900;
}

.popular-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

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

.popular-copy strong {
    color: #0f172a;
    font-size: 0.94rem;
}

.popular-copy small,
.popular-count {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
}

.popular-count {
    white-space: nowrap;
}

.hero-actions {
    margin-top: 1.9rem;
}

.btn-large {
    min-height: 56px;
    padding-inline: 1.55rem;
    border-radius: 1rem;
}

.home-hero-visual {
    min-height: 360px;
}

.island-scene {
    position: relative;
    height: 390px;
    overflow: hidden;
    border-radius: 2rem;
    background:
        radial-gradient(circle at 50% 22%, rgba(151, 218, 255, 0.95) 0 23%, transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.9));
}

.sun {
    position: absolute;
    right: 28%;
    top: 82px;
    width: 70px;
    height: 28px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: -300px 10px 0 -12px #ffffff, -215px 58px 0 -8px #ffffff;
}

.water {
    position: absolute;
    left: 8%;
    right: 12%;
    bottom: 76px;
    height: 86px;
    border-radius: 60% 40% 48% 52%;
    background: linear-gradient(90deg, #3dd6e4, #a7f3ff);
    opacity: 0.9;
}

.buildings {
    position: absolute;
    left: 25%;
    bottom: 135px;
    width: 260px;
    height: 118px;
    border-radius: 18px 18px 6px 6px;
    background:
        linear-gradient(90deg, #d8b681 0 16%, #edd7a2 16% 32%, #cba16d 32% 46%, #f3dcaa 46% 70%, #d3aa76 70%),
        linear-gradient(#f9e7bd, #c99b67);
    box-shadow: 36px -42px 0 -12px #d1a16f, -55px 30px 0 -22px #2bbf82;
}

.laptop {
    position: absolute;
    right: 8%;
    bottom: 58px;
    width: 290px;
    height: 188px;
    transform: rotate(7deg);
    border-radius: 16px;
    background: #1d2939;
    box-shadow: 0 30px 48px rgba(15, 23, 42, 0.2);
}

.laptop::after {
    position: absolute;
    left: -24px;
    right: -24px;
    bottom: -18px;
    height: 24px;
    border-radius: 4px 4px 22px 22px;
    background: #d9e2ec;
    content: "";
}

.screen {
    position: absolute;
    inset: 13px;
    border-radius: 9px;
    background: #f8fbfd;
    padding: 22px;
}

.screen span {
    display: block;
    height: 26px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #dff8ec, #ffffff);
    border: 1px solid #dbe7e1;
}

.post-picker {
    border-radius: 1.25rem;
    padding: 1.6rem 1.7rem;
}

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

.post-type-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    min-height: 86px;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.post-type-card.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.post-type-card strong,
.post-type-card small {
    display: block;
}

.post-type-card em {
    color: var(--primary-dark);
    font-style: normal;
    font-weight: 900;
}

.section-heading-row,
.browse-header,
.results-toolbar,
.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.browse-header {
    position: relative;
    justify-content: flex-start;
    margin: 1.5rem 0 1.2rem;
}

.browse-header::after {
    right: 0;
    top: 0;
}

.browse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #e5f8ef;
    color: var(--primary-dark);
    font-size: 1.65rem;
    font-weight: 900;
}

.search-panel {
    padding: 1.35rem;
    border-radius: 1rem;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 0.9fr) minmax(160px, 1fr) minmax(130px, 0.75fr) auto;
    gap: 0.9rem;
    margin: 0;
}

.search-input,
.search-select,
.filter-control {
    min-height: 48px;
    border-radius: 0.6rem;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #344054;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

.search-button {
    min-width: 116px;
}

.category-filter {
    margin: 1rem 0 0;
}

.chip {
    min-height: 34px;
    padding: 0.42rem 1.05rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.active-chip {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.browse-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.filter-panel,
.results-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.filter-panel {
    position: sticky;
    top: 96px;
    padding: 1.2rem;
}

.filter-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.filter-head a {
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.filter-panel label {
    display: block;
    margin: 1.1rem 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 900;
}

.filter-control {
    width: 100%;
    padding: 0 0.8rem;
}

.check-stack {
    display: grid;
    gap: 0.65rem;
    color: #344054;
    font-size: 0.88rem;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
}

.check-option input {
    accent-color: var(--primary);
}

.check-stack > span::before {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 0.55rem;
    border: 1px solid #98a2b3;
    border-radius: 3px;
    vertical-align: -2px;
    content: "";
}

.filter-results {
    width: 100%;
    margin-top: 4.5rem;
    color: var(--primary-dark);
    border-color: var(--primary);
}

.results-panel {
    padding: 1rem;
}

.results-toolbar {
    margin-bottom: 0.9rem;
}

.results-toolbar strong {
    font-size: 1.08rem;
}

.view-toggle {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
}

.view-toggle a {
    padding: 0.42rem 0.8rem;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
}

.view-toggle .active {
    background: var(--primary);
    color: #ffffff;
}

.listing-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
}

.listing-grid.listing-list-view {
    grid-template-columns: 1fr;
}

.listing-list-view .listing-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}

.listing-list-view .card-media {
    height: 100%;
    min-height: 170px;
}

.listing-list-view .card-body {
    min-height: 0;
}

.listing-card {
    border-radius: 0.7rem;
    border-color: #dce4ee;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.card-media {
    position: relative;
    height: 154px;
}

.card-media::after {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(7, 17, 35, 0.32), transparent);
    content: "";
    pointer-events: none;
}

.save-dot {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.save-dot::before {
    position: absolute;
    inset: 8px;
    border: 2px solid #8aa0bd;
    border-radius: 999px;
    content: "";
}

.placeholder {
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.92), transparent 4.5rem),
        linear-gradient(135deg, #dff8ec, #dceeff);
}

.placeholder-job {
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.92), transparent 4.5rem),
        linear-gradient(135deg, #e9f7ff, #d7e7ff);
}

.placeholder-news {
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.92), transparent 4.5rem),
        linear-gradient(135deg, #fff7dc, #e6f5ff);
}

.placeholder-card {
    width: 70%;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.placeholder-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.6rem;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-size: 1.25rem;
}

.placeholder-card strong {
    display: block;
    color: var(--ink);
    letter-spacing: 0;
}

.card-body {
    min-height: 190px;
    padding: 0.85rem 0.95rem 0.95rem;
}

.badge {
    border-radius: 0.45rem;
    background: #dff8ec;
    color: var(--primary-dark);
    font-weight: 900;
}

.badge-job {
    background: #e7f0ff;
    color: #175cd3;
}

.badge-news {
    background: #fff1c2;
    color: #a15c07;
}

.card-body h2 {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}

.card-body p {
    min-height: 42px;
    color: #475467;
    font-size: 0.86rem;
}

.chip-small {
    background: #eef2f6;
    color: #475467;
}

.meta {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.85rem;
    color: #667085;
}

footer {
    background: rgba(255, 255, 255, 0.9);
    color: #667085;
}

@media (max-width: 1020px) {
    .home-hero,
    .browse-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .navbar-inner {
        border-radius: 0 0 1rem 1rem;
    }

    .home-hero {
        gap: 1rem;
    }

    .home-hero-copy h1 {
        font-size: 3rem;
    }

    .hero-highlights,
    .post-type-grid,
    .hero-search {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        min-height: 260px;
    }

    .island-scene {
        height: 280px;
    }

    .laptop {
        right: 5%;
        width: 220px;
        height: 144px;
    }

    .browse-header {
        align-items: flex-start;
    }

    .browse-icon {
        width: 58px;
        height: 58px;
    }

    .listing-list-view .listing-card {
        grid-template-columns: 1fr;
    }

    .listing-list-view .card-media {
        height: 154px;
    }
}

/* My listings dashboard */
.dashboard-page-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0 1.3rem;
}

.dashboard-page-header::after {
    position: absolute;
    right: 0;
    top: -0.5rem;
    width: 130px;
    height: 130px;
    background-image: radial-gradient(rgba(15, 23, 42, 0.08) 2px, transparent 2px);
    background-size: 13px 13px;
    content: "";
    pointer-events: none;
}

.dashboard-page-header .page-title {
    font-size: clamp(2.2rem, 5vw, 3.35rem);
}

.stats-panel,
.dashboard-tabs,
.dashboard-empty,
.tips-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
    padding: 1.35rem 1.45rem;
}

.stat-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0.3rem 1.5rem;
    border-right: 1px solid var(--line);
}

.stat-card:last-child {
    border-right: 0;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 1rem;
    font-weight: 950;
    font-size: 1.35rem;
}

.stat-list,
.stat-live {
    background: #e6f8ef;
    color: var(--primary-dark);
}

.stat-draft {
    background: #fff4d8;
    color: #b76e00;
}

.stat-archived {
    background: #eef2f6;
    color: #58708f;
}

.stat-card p,
.stat-card strong,
.stat-card small {
    display: block;
    margin: 0;
}

.stat-card p {
    color: #53627a;
    font-weight: 700;
}

.stat-card strong {
    margin-top: 0.15rem;
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1;
}

.stat-card small {
    margin-top: 0.45rem;
    color: var(--muted);
}

.dashboard-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
}

.tab-group,
.tab-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.dash-tab,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.52rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    color: #344054;
    font-weight: 800;
    text-decoration: none;
}

.dash-tab.active {
    background: #e6f8ef;
    color: var(--primary-dark);
}

.filter-chip {
    border-color: var(--line);
    background: #ffffff;
    color: #53627a;
}

.filter-chip:first-child,
.filter-chip.active {
    background: #eaf8f1;
    color: var(--primary-dark);
}

.dot-live::before,
.dot-draft::before {
    width: 9px;
    height: 9px;
    margin-right: 0.55rem;
    border-radius: 999px;
    content: "";
}

.dot-live::before {
    background: var(--primary);
}

.dot-draft::before {
    background: #f5a623;
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: start;
}

.dashboard-empty {
    min-height: 330px;
    padding: 2.4rem 2rem;
    text-align: center;
}

.empty-illustration {
    position: relative;
    width: min(420px, 100%);
    height: 150px;
    margin: 0 auto 1.35rem;
    opacity: 0.85;
}

.empty-window {
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 160px;
    height: 98px;
    transform: translateX(-50%);
    border-radius: 1rem;
    background: rgba(230, 248, 239, 0.9);
    box-shadow: inset 0 14px 0 rgba(18, 183, 106, 0.28);
}

.empty-window span {
    position: absolute;
    left: 50%;
    top: 48%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(18, 183, 106, 0.5);
    border-radius: 0.7rem;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
}

.empty-illustration i,
.empty-illustration b {
    position: absolute;
    bottom: 18px;
    width: 76px;
    height: 96px;
    border-radius: 50% 50% 10px 10px;
    background: linear-gradient(180deg, #d9f5e8, #edf9f3);
    content: "";
}

.empty-illustration i {
    left: 16%;
}

.empty-illustration b {
    right: 16%;
}

.dashboard-empty h2 {
    margin: 0;
    font-size: 1.55rem;
}

.dashboard-empty p {
    margin: 0.7rem auto 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 1rem;
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.tips-card {
    padding: 1.55rem;
}

.tips-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tips-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #e6f8ef;
    color: var(--primary-dark);
    font-weight: 900;
}

.tips-title h2 {
    margin: 0;
    font-size: 1.05rem;
}

.tips-card ul {
    display: grid;
    gap: 1rem;
    margin: 1.35rem 0;
    padding: 0;
    list-style: none;
}

.tips-card li {
    position: relative;
    padding-left: 2rem;
}

.tips-card li::before {
    position: absolute;
    left: 0;
    top: 0.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.72rem;
    content: "✓";
}

.tips-card strong,
.tips-card small {
    display: block;
}

.tips-card strong {
    color: var(--ink);
}

.tips-card small {
    margin-top: 0.2rem;
    color: var(--muted);
}

.tips-note {
    border-top: 1px solid var(--line);
    padding: 1rem;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #e8f8ef, #f5fbff);
    color: #344054;
    font-weight: 700;
}

.dashboard-card {
    border-radius: 1rem;
}

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

.dashboard-placeholder {
    flex-direction: column;
    gap: 0.55rem;
    background: linear-gradient(135deg, #dff8ec, #dceeff);
}

.dashboard-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.8rem;
    background: var(--primary);
    color: #ffffff;
    font-size: 1.25rem;
}

.dashboard-placeholder strong {
    color: var(--ink);
}

.danger-action {
    color: #b42318;
}

@media (max-width: 1080px) {
    .stats-panel,
    .dashboard-content-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-content-grid section {
        grid-column: 1 / -1;
    }

    .tips-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .dashboard-page-header,
    .dashboard-tabs {
        align-items: stretch;
        flex-direction: column;
    }

    .stats-panel {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 1rem 0;
    }

    .stat-card:last-child {
        border-bottom: 0;
    }

    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Legal and safety pages */
.legal-hero {
    margin: 2rem 0 1.4rem;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 92% 12%, rgba(18, 183, 106, 0.16), transparent 12rem),
        linear-gradient(135deg, #ffffff, #f3faf7);
    box-shadow: var(--shadow-sm);
}

.legal-kicker {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #e6f8ef;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.legal-hero h1 {
    max-width: 860px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.05;
}

.legal-hero p {
    max-width: 780px;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.legal-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.legal-summary,
.legal-card,
.how-steps article {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.legal-summary {
    position: sticky;
    top: 96px;
    padding: 1.35rem;
}

.legal-summary h2,
.legal-card h2,
.how-steps h2 {
    margin: 0;
    color: var(--ink);
}

.legal-summary ul,
.legal-card ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: #344054;
    line-height: 1.65;
}

.legal-sections {
    display: grid;
    gap: 1rem;
}

.legal-card {
    padding: 1.4rem;
}

.legal-card p {
    margin: 0.75rem 0 0;
    color: #475467;
    line-height: 1.7;
}

.legal-card p + p {
    margin-top: 0.85rem;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.how-steps article {
    padding: 1.25rem;
}

.how-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 0.8rem;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
}

.how-steps h2 {
    font-size: 1.05rem;
}

.how-steps p {
    margin: 0.65rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 980px) {
    .legal-layout,
    .how-steps {
        grid-template-columns: 1fr;
    }

    .legal-summary {
        position: static;
    }
}

/* Listing detail refresh */
.listing-detail-page {
    display: grid;
    gap: 1rem;
}

.listing-detail-hero,
.detail-panel,
.listing-detail-sidebar .sidebar-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.listing-detail-hero {
    padding: 1.35rem 1.45rem;
}

.listing-detail-hero .detail-page-title {
    margin-top: 0.72rem;
    max-width: 900px;
    font-size: clamp(1.6rem, 2.5vw, 2.35rem);
    line-height: 1.12;
}

.listing-detail-hero .detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin-top: 0.55rem;
    color: #64748b;
}

.detail-owner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.detail-owner-actions .btn,
.detail-owner-actions .inline-form {
    min-width: 0;
}

.btn-danger-soft {
    background: #fff7f7;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-danger-soft:hover {
    background: #dc2626;
    color: #ffffff;
}

.detail-admin-note {
    margin-top: 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.92rem;
}

.listing-detail-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.85fr);
    gap: 1rem;
}

.listing-detail-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.detail-panel {
    padding: 1rem;
}

.detail-panel-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 800;
}

.detail-panel-title::before,
.sidebar-title::before {
    content: "";
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: #16c784;
    box-shadow: 0 0 0 4px #dcfce7;
}

.detail-media-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #edf2f7, #cbd5e1);
    aspect-ratio: 16 / 6;
    min-height: 220px;
}

.detail-media-frame .detail-hero-image,
.detail-media-frame .detail-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 0;
}

.detail-media-frame .detail-hero-image {
    display: block;
    object-fit: cover;
}

.detail-media-frame .detail-placeholder {
    place-items: center;
    background: linear-gradient(135deg, #e0f2fe, #dcfce7);
    color: #0f172a;
    font-weight: 900;
}

.detail-media-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #64748b;
    font-size: 1.35rem;
    font-weight: 800;
}

.detail-media-arrow-left {
    left: 1rem;
}

.detail-media-arrow-right {
    right: 1rem;
}

.detail-media-dots {
    position: absolute;
    right: 0;
    bottom: 0.8rem;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.detail-media-dots button {
    width: 0.42rem;
    height: 0.42rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.detail-media-dots button.is-active {
    background: #16c784;
}

.listing-detail-main .detail-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.8rem;
}

.listing-detail-main .detail-gallery img {
    height: 92px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
    cursor: pointer;
}

.listing-detail-main .detail-gallery img.is-active {
    border-color: #16c784;
    box-shadow: 0 0 0 3px #dcfce7;
}

.listing-detail-main .detail-copy {
    color: #334155;
    font-size: 0.96rem;
    line-height: 1.7;
}

.detail-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.detail-feature-row span {
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 700;
}

.listing-detail-main .detail-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.listing-detail-main .detail-info-grid div {
    display: grid;
    gap: 0.25rem;
    padding: 0.82rem;
    border-radius: 8px;
    background: #f8fafc;
}

.listing-detail-main .detail-info-grid span,
.detail-stat-list span,
.detail-contact-list span,
.detail-metric-grid span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.listing-detail-main .detail-info-grid strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.listing-detail-sidebar {
    gap: 0.85rem;
}

.listing-detail-sidebar .sidebar-card {
    padding: 1rem;
}

.listing-detail-sidebar .sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

.detail-contact-list,
.detail-stat-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-contact-list li,
.detail-stat-list li {
    display: grid;
    grid-template-columns: minmax(84px, 0.8fr) minmax(0, 1.4fr);
    gap: 0.8rem;
    padding: 0.68rem 0;
    border-top: 1px solid #e2e8f0;
    align-items: center;
}

.detail-contact-list li:first-child,
.detail-stat-list li:first-child {
    border-top: 0;
}

.detail-contact-list a,
.detail-contact-list strong,
.detail-stat-list strong {
    min-width: 0;
    color: #0f172a;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

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

.detail-metric-grid div {
    display: grid;
    gap: 0.18rem;
    min-height: 72px;
    place-items: center;
    padding: 0.65rem;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    background: #f0fdf4;
    text-align: center;
}

.detail-metric-grid strong {
    max-width: 100%;
    color: #047857;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.seller-rating-summary {
    display: grid;
    gap: 0.18rem;
    padding: 0.85rem;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    background: #f0fdf4;
}

.seller-rating-summary strong {
    color: #047857;
    font-size: 1.2rem;
}

.seller-rating-summary span,
.seller-review-card span,
.seller-review-card small {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.seller-review-form {
    display: grid;
    gap: 0.75rem;
}

.rating-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
}

.rating-options label {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
}

.seller-review-form textarea {
    width: 100%;
    resize: vertical;
}

.seller-reviews-panel {
    margin-top: 1rem;
}

.seller-review-list {
    display: grid;
    gap: 0.75rem;
}

.seller-review-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.seller-review-card div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
}

.seller-review-card strong {
    color: #047857;
}

.seller-review-card p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .listing-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-media-frame {
        aspect-ratio: 16 / 8;
    }

    .popular-dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .listing-detail-hero,
    .detail-panel,
    .listing-detail-sidebar .sidebar-card {
        padding: 0.9rem;
    }

    .detail-owner-actions .btn,
    .detail-owner-actions .inline-form,
    .detail-owner-actions .inline-form .btn {
        width: 100%;
        justify-content: center;
    }

    .detail-media-frame {
        aspect-ratio: 4 / 3;
        min-height: 210px;
    }

    .listing-detail-main .detail-gallery,
    .detail-metric-grid {
        grid-template-columns: 1fr;
    }

    .detail-contact-list li,
    .detail-stat-list li {
        grid-template-columns: 1fr;
        gap: 0.22rem;
    }

    .popular-row {
        grid-template-columns: 2.1rem minmax(0, 1fr);
    }

    .popular-count {
        grid-column: 2;
    }

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

