
:root {
    color-scheme: light;
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --ink: #142033;
    --muted: #5d6b82;
    --line: #d8e1ef;
    --line-strong: #c4d1e6;
    --primary: #1f6feb;
    --primary-dark: #1558bd;
    --danger: #b42318;
    --success-bg: #ecfdf3;
    --success-line: #abefc6;
    --success-ink: #067647;
    --error-bg: #fef3f2;
    --error-line: #fecdca;
    --error-ink: #b42318;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 12px;
    z-index: 10;
    margin-top: 12px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left {
    flex-wrap: wrap;
}

.topbar-right {
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(140deg, var(--primary), #5aa0ff);
}

.nav,
.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links {
    justify-content: flex-start;
}

.nav-actions {
    justify-content: flex-end;
}

.nav a,
.nav .link-button,
.nav-links a {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.nav-note {
    font-size: 12px;
    color: var(--muted);
    padding: 0 4px;
}

.nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 800;
}

.nav a:hover,
.nav .link-button:hover,
.nav-links a:hover {
    border-color: var(--line);
    color: var(--ink);
    background: var(--surface-soft);
}

.nav .link-button {
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.nav form {
    margin: 0;
}

.profile-menu {
    position: relative;
}

.profile-summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    padding: 0 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

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

.profile-summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-1px);
    margin-left: 2px;
}

.profile-summary-name {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.profile-menu[open] .profile-summary {
    border-color: #b9cced;
    background: var(--surface-soft);
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 230px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    padding: 10px;
    display: grid;
    gap: 4px;
}

.profile-dropdown a,
.profile-logout-button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.profile-dropdown a:hover,
.profile-logout-button:hover {
    background: var(--surface-soft);
}

.profile-dropdown form {
    margin: 0;
}

.settings-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.settings-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 24px;
}

.settings-nav {
    display: grid;
    gap: 8px;
    align-content: start;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--muted);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.settings-nav-link:hover {
    background: var(--surface-soft);
    border-color: #bfd1ee;
    color: var(--ink);
}

.settings-nav-link.is-active {
    background: #edf4ff;
    border-color: #b7cff7;
    color: var(--primary-dark);
}

main {
    padding: 28px 0 80px;
}

.hero,
.panel,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.hero,
.panel {
    padding: 28px;
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.auth-card {
    width: min(480px, 100%);
    margin: 18px auto 0;
    padding: 28px;
}

.hero-points {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.55;
}

.hero-actions {
    min-width: 0;
    margin-top: 18px;
    gap: 8px;
}

.marketplace-search {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.marketplace-search input[type="text"] {
    flex: 1;
    min-width: 220px;
    min-height: 50px;
    border-radius: 12px;
    font-size: 16px;
}

.marketplace-search-hero {
    max-width: 680px;
}

.marketing-hero-search {
    margin-top: 20px;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.marketing-hero-search input[type="text"] {
    min-height: 48px;
    border: 1px solid rgba(192, 207, 229, 0.96);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.marketing-hero-search .btn {
    min-width: 104px;
    min-height: 48px;
}

.marketing-hero {
    min-height: 388px;
    align-items: stretch;
    display: flex;
    background:
        radial-gradient(circle at top right, rgba(142, 197, 252, 0.3), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #eef6ff 54%, #dfefff 100%);
}

.marketing-hero.has-hero-image {
    background: linear-gradient(135deg, #f5faff 0%, #e6f1ff 100%);
}

.marketing-hero-content {
    position: relative;
    z-index: 3;
    width: min(520px, 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 28px 30px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(247, 251, 255, 0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
}

.marketing-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.marketing-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(90deg, rgba(246, 250, 255, 0.72) 0%, rgba(246, 250, 255, 0.54) 18%, rgba(246, 250, 255, 0.24) 38%, rgba(246, 250, 255, 0.06) 62%, rgba(246, 250, 255, 0) 100%);
}

.marketing-hero.has-hero-image::before,
.marketing-hero.has-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.marketing-hero.has-hero-image::before {
    background:
        linear-gradient(90deg, rgba(245, 250, 255, 0.54) 0%, rgba(245, 250, 255, 0.38) 20%, rgba(245, 250, 255, 0.16) 40%, rgba(245, 250, 255, 0.04) 62%, rgba(245, 250, 255, 0.01) 100%);
}

.marketing-hero.has-hero-image::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.marketing-hero-image,
.marketing-hero-fallback {
    width: 100%;
    height: 100%;
}

.marketing-hero-image {
    display: block;
    object-fit: cover;
    object-position: right center;
    background: #edf4ff;
    transform: scale(1.005);
}

.marketing-hero-fallback {
    position: relative;
    background:
        radial-gradient(circle at 72% 34%, rgba(91, 158, 255, 0.28), transparent 22%),
        radial-gradient(circle at 42% 70%, rgba(143, 196, 255, 0.38), transparent 26%),
        linear-gradient(150deg, #f8fbff 0%, #eaf3ff 55%, #d9eaff 100%);
}

.marketing-hero-fallback-glow {
    position: absolute;
    inset: 12% 10% 12% 46%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(229, 239, 255, 0.24) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-section + .home-section {
    margin-top: 20px;
}

.section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title {
    margin: 0;
    font-size: 24px;
}

.section-link {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.08;
}

h2 {
    margin: 0;
    font-size: 24px;
}

.lede {
    margin: 14px 0 0;
    max-width: 460px;
    color: #42556f;
    font-size: 16px;
    line-height: 1.6;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.actions form {
    margin: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 111, 235, 0.14);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border-color: #c6d7ee;
    color: #173765;
}

.btn-secondary:hover {
    background: #f7fbff;
    border-color: #a9c2e8;
}

.btn-outline {
    background: #eef5ff;
    border-color: #c1d7fb;
    color: #18407f;
}

.btn-outline:hover {
    background: #e4efff;
    border-color: #adc9f4;
}

.button.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.button.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.button.secondary {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--ink);
}

.button.secondary:hover {
    background: var(--surface-soft);
    border-color: #adbfdd;
}

.button:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.category-card:focus-visible,
.category-icon-link:focus-visible,
.seller-link:focus-visible,
.listing-title-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.2);
}

.link-button.danger {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 700;
}

.field {
    margin-top: 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

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

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

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

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 8px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid #bfd7ff;
    background: #eff6ff;
    color: var(--primary-dark);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.badge + .badge {
    margin-left: 6px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid #bfd7ff;
    background: #eff6ff;
    color: var(--primary-dark);
    padding: 5px 10px 5px 7px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.badge-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: currentColor;
    flex: 0 0 auto;
}

.badge-pill-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.badge-pill--gold {
    background: #fff7df;
    border-color: #f2d892;
    color: #8a5a00;
}

.badge-pill--blue {
    background: #edf5ff;
    border-color: #bad6ff;
    color: #175cd3;
}

.badge-pill--green {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.badge-pill--violet {
    background: #f4f0ff;
    border-color: #d8c9ff;
    color: #6941c6;
}

.badge-pill--sky {
    background: #ecfeff;
    border-color: #a5f0fc;
    color: #0e7090;
}

.badge-pill--neutral {
    background: #f8fafc;
    border-color: #d8e1ef;
    color: #475467;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #edf3ff;
    color: #1f3b6b;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.chip:hover {
    background: #e3edff;
    border-color: #abc3eb;
    color: #153868;
}

.badge.status-active {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.badge.status-pending_review {
    background: #fffaeb;
    border-color: #fedf89;
    color: #b54708;
}

.badge.status-rejected,
.badge.status-archived {
    background: #f9fafb;
    border-color: #d0d5dd;
    color: #475467;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.meta-list li {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    padding: 10px 12px;
}

.photo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.photo-list img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 10px;
    object-fit: cover;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    padding: 14px;
    margin-bottom: 20px;
}

.filter-bar .field {
    margin-top: 0;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
}

.saved-search-form {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}
.category-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 18px 14px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 14px;
    text-decoration: none;
    min-height: 94px;
    transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.category-card:hover {
    border-color: #a8c1eb;
    background: #f4f9ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(21, 44, 90, 0.08);
}

.category-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.category-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    text-align: center;
    padding: 8px 6px;
    border-radius: 12px;
    transition: background-color 120ms ease, transform 120ms ease;
}

.category-icon-link:hover {
    background: #f2f7ff;
    transform: translateY(-1px);
}

.category-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #d3e2fb;
    background: #f5f9ff;
    color: #1c4f9c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.subcategory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subcategory-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: #294160;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.subcategory-link:hover {
    border-color: #b7cae8;
    background: #f4f8ff;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

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

.promo-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
    min-height: 280px;
}

.promo-copy {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.promo-media {
    min-height: 220px;
    background: linear-gradient(180deg, #edf5ff 0%, #e1efff 100%);
}

.promo-media img,
.image-fallback-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-fallback-box {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background:
        linear-gradient(180deg, #f6faff 0%, #e8f2ff 100%);
}

.image-fallback-marketing {
    padding: 18px;
}

.listing-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.listing-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.listing-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.listing-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e9eef7;
    display: block;
}

.listing-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700;
}

.listing-thumb-placeholder {
    background: linear-gradient(180deg, #f6faff 0%, #e9f2ff 100%);
}

.listing-thumb-fallback {
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: linear-gradient(180deg, #f6faff 0%, #e9f2ff 100%);
}

.listing-thumb-fallback img {
    width: 100%;
    height: 100%;
    max-height: 170px;
    object-fit: contain;
    display: block;
}

.listing-thumb-fallback span {
    font-size: 13px;
}

.listing-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.listing-title-link {
    color: inherit;
    text-decoration: none;
}

.listing-title-link:hover {
    color: var(--primary-dark);
}

.price {
    font-size: 22px;
    font-weight: 800;
}

.listing-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}

.seller-line {
    margin-top: auto;
    color: var(--muted);
    font-size: 14px;
}

.seller-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.seller-link:hover {
    color: var(--primary-dark);
}

.listing-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
    gap: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.gallery-item {
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    cursor: zoom-in;
    overflow: hidden;
}

.gallery-item:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.gallery img,
.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.photo-lightbox[hidden] {
    display: none;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.82);
    cursor: zoom-out;
}

.photo-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-lightbox-dialog img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 14px;
    background: #0f172a;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.photo-lightbox-close,
.photo-lightbox-nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

.photo-lightbox-close {
    top: -16px;
    right: -16px;
    width: 42px;
    height: 42px;
    font-size: 28px;
    line-height: 1;
}

.photo-lightbox-nav {
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
}

.photo-lightbox-prev {
    left: -18px;
}

.photo-lightbox-next {
    right: -18px;
}

.photo-lightbox-close:hover,
.photo-lightbox-nav:hover {
    background: #ffffff;
}

.photo-lightbox-close:focus-visible,
.photo-lightbox-nav:focus-visible {
    outline: 3px solid rgba(147, 197, 253, 0.75);
    outline-offset: 3px;
}

body.lightbox-open {
    overflow: hidden;
}

.side-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    padding: 18px;
}

.side-panel + .side-panel {
    margin-top: 12px;
}

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

.message-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    text-decoration: none;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.message-row:hover {
    border-color: #b7cae8;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.message-row.is-unread {
    border-color: #9fc4ff;
    background: #f3f8ff;
}

.message-row-title {
    font-size: 16px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.message-snippet {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.message-row-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.message-thread {
    display: grid;
    gap: 12px;
}

.message-bubble {
    width: min(680px, 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.message-bubble.is-own {
    justify-self: end;
    border-color: #b7cff7;
    background: #f1f7ff;
}

.message-author {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-dark);
}

.message-body {
    margin-top: 8px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.message-time {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.message-form textarea {
    min-height: 120px;
}

.verified-state-card {
    border: 1px solid var(--success-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #f5fcf7 0%, #eefbf3 100%);
    padding: 22px;
}

.verified-state-card h2 {
    margin: 0;
    font-size: 28px;
}

.verified-phone-number {
    margin: 14px 0 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--success-ink);
}

.readonly-info-box {
    display: grid;
    gap: 10px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    padding: 14px;
}

.readonly-info-box .button,
.readonly-info-box .chip {
    width: fit-content;
}

.readonly-info-box .chip.status-active {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.readonly-info-box .chip.status-pending_review {
    background: #fffaeb;
    border-color: #fedf89;
    color: #b54708;
}

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

.safety-list {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.55;
}

.empty-state {
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    padding: 24px;
    background: #fff;
    text-align: center;
    color: var(--muted);
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.checkbox input {
    width: 16px;
    height: 16px;
    min-height: auto;
}

.form-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.errors,
.status {
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    margin: 0 0 14px;
}

.errors {
    border: 1px solid var(--error-line);
    background: var(--error-bg);
    color: var(--error-ink);
}

.status {
    border: 1px solid var(--success-line);
    background: var(--success-bg);
    color: var(--success-ink);
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

.stack-14 {
    margin-top: 14px;
}

.stack-18 {
    margin-top: 18px;
}

.stack-20 {
    margin-top: 20px;
}

.stack-24 {
    margin-top: 24px;
}

.stack-28 {
    margin-top: 28px;
}

.full-width {
    width: 100%;
}

@media (max-width: 920px) {
    .filter-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(1120px, calc(100% - 20px));
    }

    .topbar {
        top: 8px;
        margin-top: 8px;
        padding: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-left,
    .topbar-right,
    .nav-links,
    .nav-actions {
        width: 100%;
    }

    .topbar-right {
        margin-left: 0;
    }

    .topbar-right > .button,
    .topbar-right > .profile-menu,
    .nav-actions > .button {
        width: 100%;
    }

    .profile-dropdown {
        position: static;
        margin-top: 8px;
        min-width: 100%;
    }

    main {
        padding-top: 20px;
    }

    .hero,
    .section-header,
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .panel,
    .auth-card {
        padding: 20px;
    }

    h1 {
        font-size: 32px;
    }

    .form-grid,
    .filter-bar,
    .listing-detail-grid,
    .settings-shell,
    .promo-grid,
    .promo-card {
        grid-template-columns: 1fr;
    }

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

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

    .message-row-meta {
        align-items: flex-start;
    }

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

    .marketing-hero {
        min-height: auto;
        padding-bottom: 214px;
    }

    .promo-copy {
        padding-bottom: 12px;
    }

    .marketing-hero-content {
        width: 100%;
        padding: 20px 18px;
        border-radius: 18px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    }

    .marketing-hero-media {
        inset: auto 0 0 0;
        height: 54%;
    }

    .marketing-hero.has-hero-image::before {
        background:
            linear-gradient(180deg, rgba(245, 250, 255, 0.9) 0%, rgba(245, 250, 255, 0.8) 36%, rgba(245, 250, 255, 0.26) 74%, rgba(245, 250, 255, 0.08) 100%);
    }

    .marketing-hero.has-hero-image::after {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 100%);
    }

    .marketing-hero-image {
        object-position: 72% center;
    }

    .marketing-hero-overlay {
        background:
            linear-gradient(180deg, rgba(246, 250, 255, 0.66) 0%, rgba(246, 250, 255, 0.38) 34%, rgba(246, 250, 255, 0.1) 72%, rgba(246, 250, 255, 0) 100%);
    }

    .marketing-hero-search {
        gap: 8px;
    }

    .marketing-hero-search .btn,
    .marketing-hero-search input[type="text"] {
        width: 100%;
    }

    .marketing-hero-fallback-glow {
        inset: 10% 12% 12% 18%;
    }

    .photo-lightbox {
        padding: 14px;
    }

    .photo-lightbox-dialog {
        max-height: 82vh;
    }

    .photo-lightbox-dialog img {
        max-height: 82vh;
    }

    .photo-lightbox-close {
        top: 10px;
        right: 10px;
    }

    .photo-lightbox-prev {
        left: 8px;
    }

    .photo-lightbox-next {
        right: 8px;
    }
}
