:root {
    /* Neutrals */
    --ink: #10151c;
    --ink-soft: #29323c;
    --text: #10151c;
    --muted: #626d79;
    --muted-soft: #93a0ac;
    --line: #e2e8ee;
    --line-soft: #edf1f5;
    --paper: #f2f5f8;
    --surface: #ffffff;
    --surface-alt: #f6f8fa;
    --white: #ffffff;

    /* Brand */
    --brand: #0e8f7f;
    --brand-dark: #0a6d60;
    --brand-light: #17b39f;
    --brand-soft: #e2f6f1;
    --brand-softer: #f2fbf9;

    /* Semantic accents */
    --accent: #f5a623;
    --accent-dark: #c97f0a;
    --accent-soft: #fdf1dc;
    --danger: #d63c30;
    --danger-soft: #fceceb;
    --success: #1f9d6c;
    --success-soft: #e7f8f0;
    --info: #2f6fed;
    --info-soft: #eaf1ff;
    --blue: #2f6fed;

    /* Shape */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(16, 21, 28, .05);
    --shadow-soft: 0 6px 18px rgba(16, 21, 28, .07);
    --shadow: 0 18px 38px rgba(16, 21, 28, .10);
    --shadow-lg: 0 28px 60px rgba(16, 21, 28, .16);
    --shadow-brand: 0 14px 30px rgba(14, 143, 127, .22);

    /* Type */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* Dark theme: overrides the same tokens used throughout the file, so most
   components adapt automatically. --white is deliberately NOT redefined
   here — it's used as literal text-on-color (e.g. white text on a teal
   button), which must stay true white in both themes; `--surface` is the
   token used for card/panel backgrounds instead (see button/card rules
   above). --brand-dark/--accent-dark keep their "readable accent text on a
   soft background" role here (now a light tint instead of a dark one) — the
   handful of places that use them as one stop of a SOLID saturated button/
   badge gradient are individually pinned back to their original dark hex
   value further down, so those buttons/badges don't wash out.  */
:root[data-theme="dark"] {
    --ink: #eef2f6;
    --ink-soft: #c7cfd8;
    --text: #eef2f6;
    --muted: #a3aebb;
    --muted-soft: #78838f;
    --line: #2b333d;
    --line-soft: #212831;
    --paper: #0c1015;
    --surface: #161c23;
    --surface-alt: #1d242c;

    --brand-dark: #5fe3cb;
    --brand-soft: #12312c;
    --brand-softer: #0e2622;

    --accent-dark: #ffcf87;
    --accent-soft: #3a2a12;
    --danger-soft: #3a1613;
    --success-soft: #0f3626;
    --info-soft: #182642;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, .5);
    --shadow: 0 18px 38px rgba(0, 0, 0, .55);
    --shadow-lg: 0 28px 60px rgba(0, 0, 0, .6);
    --shadow-brand: 0 14px 30px rgba(23, 179, 159, .3);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1200px 520px at 10% -12%, rgba(14, 143, 127, .10), transparent 60%),
        radial-gradient(950px 460px at 102% -4%, rgba(245, 166, 35, .09), transparent 55%),
        radial-gradient(900px 480px at 50% 112%, rgba(47, 111, 237, .05), transparent 60%),
        radial-gradient(rgba(16, 21, 28, .035) 1px, transparent 1px) 0 0 / 24px 24px,
        var(--paper);
    background-attachment: fixed;
    font-family: var(--font);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
main {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 48px;
    padding: 32px clamp(20px, 4vw, 48px) 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
    box-shadow: var(--shadow-lg);
}
main:focus { outline: none; }
::selection { background: var(--brand-soft); color: var(--brand-dark); }
.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 100;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--white);
    font-weight: 800;
    box-shadow: var(--shadow);
    transition: transform .18s var(--ease);
}
.skip-link:focus {
    transform: translateY(0);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px max(16px, calc((100vw - 1180px) / 2));
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--line-soft);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow-xs);
}
.brand, .nav { display: flex; align-items: center; gap: 14px; }
.brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    transition: opacity .15s var(--ease);
}
.brand:hover { opacity: .82; }
.brand img {
    display: block;
}
.brand-logo {
    height: 42px;
    width: auto;
}
.brand-copy {
    display: grid;
    gap: 2px;
}
.brand-copy strong {
    font-size: 18px;
    background: linear-gradient(120deg, var(--ink) 40%, var(--brand-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: linear-gradient(155deg, var(--brand-light), var(--brand-dark));
}
.nav { flex-wrap: wrap; justify-content: flex-end; color: var(--muted); font-size: 14px; }
.nav > a:not(.button), .link-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav > a:not(.button):hover, .link-button:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.nav > a[aria-current="page"]:not(.button) {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.link-button {
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
}
.user-menu {
    position: relative;
}
.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 4px 10px 4px 4px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.user-menu-trigger:hover, .user-menu-trigger[aria-expanded="true"] {
    background: var(--surface);
    border-color: var(--line);
}
.user-menu-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(155deg, var(--brand-light), var(--brand-dark));
    color: var(--white);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
}
.user-menu-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-menu-avatar .unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid var(--paper);
}
.user-menu-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.user-menu-name-text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu-trigger > .fa-chevron-down {
    font-size: 11px;
    color: var(--muted);
}
.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    z-index: 60;
}
.user-menu-dropdown.is-open {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.user-menu-dropdown a, .user-menu-dropdown .link-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-weight: 600;
    width: 100%;
    text-align: left;
}
.user-menu-dropdown a:hover, .user-menu-dropdown .link-button:hover {
    background: var(--brand-softer);
}
.user-menu-dropdown i {
    width: 18px;
    color: var(--muted);
    text-align: center;
}
.user-menu-dropdown .unread-badge {
    margin-left: auto;
}
.user-menu-divider {
    height: 1px;
    margin: 6px 4px;
    background: var(--line);
}
.header-banner {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto 0;
}
.header-banner-inner {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    border: 1px solid rgba(14, 143, 127, .22);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    box-shadow: var(--shadow);
}
.header-banner img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.header-banner-copy {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 3px;
    max-width: 430px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}
.header-banner-copy strong {
    font-size: 17px;
}
.header-banner-copy span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 700;
    letter-spacing: -.005em;
    cursor: pointer;
    transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); border-color: var(--muted-soft); }
.button:active { transform: translateY(0); }
.button.primary {
    border-color: var(--brand-dark);
    background: linear-gradient(155deg, var(--brand-light), var(--brand));
    color: var(--white);
    box-shadow: var(--shadow-brand);
}
.button.primary:hover {
    background: linear-gradient(155deg, var(--brand), var(--brand-dark));
    border-color: var(--brand-dark);
    box-shadow: 0 18px 34px rgba(14, 143, 127, .3);
}
.button.ghost { background: var(--surface); }
.listing-quota-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 14px;
}
.listing-quota-line.is-full {
    border-color: rgba(214, 60, 48, .35);
    background: var(--danger-soft);
    color: var(--danger);
}
.pro-badge-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-dark);
}
.verified-badge {
    display: inline-block;
    color: #18a558;
    background: linear-gradient(150deg, #6ee7a8 0%, #22c368 45%, #0f8a45 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.05em;
    margin-left: 6px;
    filter: drop-shadow(0 1px 1px rgba(15, 138, 69, .5)) drop-shadow(0 0 7px rgba(34, 195, 104, .45));
    transform: translateY(-1px) scale(1.05);
    transition: transform .15s ease, filter .15s ease;
}
.verified-badge:hover {
    transform: translateY(-1px) scale(1.18);
    filter: drop-shadow(0 1px 2px rgba(15, 138, 69, .55)) drop-shadow(0 0 10px rgba(34, 195, 104, .6));
}
.phone-verify-status.is-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--brand-dark, var(--brand));
}
.phone-verify-status.is-verified .verified-badge {
    margin-left: 0;
    font-size: 1.2em;
}
.button.danger {
    border-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
}
.button.danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
    box-shadow: 0 18px 34px rgba(214, 60, 48, .25);
}
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 15px;
    transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease), transform .15s var(--ease);
}
.theme-toggle:hover { color: var(--brand-dark); border-color: var(--muted-soft); transform: translateY(-1px); }
.theme-toggle .theme-icon-light { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-light { display: inline; }
.muted-line {
    color: var(--muted);
}
.expiry-warning {
    color: var(--accent-dark);
    font-weight: 800;
}
.version-row p {
    color: var(--muted);
    line-height: 1.55;
}
.admin-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.admin-filter input[name="q"] {
    flex: 1 1 280px;
}
.bulk-actions {
    margin-bottom: 8px;
}
.row-check {
    display: flex;
    align-items: center;
}
.row-check input {
    width: 18px;
    min-height: 18px;
}
.spam-check {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: center;
    padding: 48px 0 28px;
}
.market-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    padding: 34px 0 20px;
}
.market-header h1 {
    font-size: 42px;
    margin-bottom: 0;
}
.home-category-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.home-category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.home-category-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--brand);
}
.home-category-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 18px;
}
.home-category-tile-name {
    font-weight: 700;
    font-size: 14px;
}
@media (max-width: 720px) {
    .home-category-tiles { grid-template-columns: repeat(2, 1fr); }
}
.market-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
}
.market-sidebar {
    align-self: start;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 84px;
}
.market-sidebar h2 {
    margin: 0 0 8px;
    font-size: 17px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand);
}
.category-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 6px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.category-line span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.category-title {
    min-width: 0;
}
.category-title a {
    color: inherit;
    min-width: 0;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.category-title a:hover {
    color: var(--brand);
    text-decoration: underline;
}
.category-line i {
    width: 18px;
    color: var(--brand);
    text-align: center;
}
.category-line:hover {
    background: var(--surface-alt);
    color: var(--brand-dark);
}
.category-line.active {
    background: var(--brand-soft);
    color: var(--brand-dark);
    box-shadow: inset 3px 0 0 var(--brand);
}
.category-line.active .category-meta a {
    color: var(--brand-dark);
}
.category-line:last-child { border-bottom: 0; }
.category-line strong { color: var(--brand); }
.category-line.parent {
    font-weight: 800;
    color: var(--ink);
    padding: 10px 6px;
}
.category-line.child {
    padding-left: 12px;
    font-size: 13px;
}
.category-node {
    display: grid;
}
.category-node summary {
    list-style: none;
}
.category-node summary::-webkit-details-marker { display: none; }
.category-node[open] > summary .fa-chevron-down {
    transform: rotate(180deg);
}
.category-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.category-meta a {
    min-width: 24px;
    text-align: center;
    color: var(--brand);
    font-weight: 800;
}
.category-meta .fa-chevron-down {
    width: 12px;
    color: var(--muted);
    transition: transform .15s var(--ease);
}
.category-children {
    display: grid;
    padding: 2px 0 6px 8px;
    border-left: 2px solid var(--brand-soft);
    margin-left: 14px;
}
.category-node.level-2 .category-line.child { padding-left: 16px; }
.category-node.level-3 .category-line.child { padding-left: 28px; }
.category-group {
    display: grid;
    border-bottom: 1px solid var(--line-soft);
}
.category-group:last-child { border-bottom: 0; }
.category-group .category-line { border-bottom: 0; }
.market-main { display: grid; gap: 12px; }
.quick-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.quick-filter-row a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.quick-filter-row a:hover,
.quick-filter-row a.active {
    border-color: rgba(14, 143, 127, .4);
    background: var(--brand-softer);
    color: var(--brand-dark);
    transform: translateY(-1px);
}
.quick-filter-row i {
    color: var(--brand);
}
.recent-strip {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
}
.recent-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}
.recent-strip-head a {
    color: var(--brand);
    font-weight: 900;
}
.recent-strip-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.recent-strip-list a {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.recent-strip-list a:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-xs);
}
.recent-strip-list img,
.recent-strip-list span {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    object-fit: cover;
}
.recent-strip-list span {
    display: grid;
    place-items: center;
    color: var(--muted);
}
.recent-strip-list b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.market-search {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.search-main {
    min-height: 50px;
    font-size: 18px;
    font-weight: 700;
    border-color: var(--line);
    background: var(--surface-alt);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.toggle-strip, .list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.toggle-strip label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition: border-color .15s var(--ease), color .15s var(--ease);
}
.toggle-strip label:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}
.toggle-strip input { width: auto; min-height: 0; }
.list-toolbar { justify-content: flex-end; }
.list-toolbar select { width: auto; min-width: 160px; }
.save-search-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 2px;
}
.save-search-form input[name="name"] {
    width: 220px;
    min-height: 38px;
}
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 700;
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.filter-chip:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.saved-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}
.saved-search-chips span {
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}
.result-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.ad-list { display: grid; gap: 10px; }
.empty-search {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 40px 24px;
    text-align: center;
}
.empty-search strong {
    color: var(--text);
    font-size: 1.05rem;
}
.empty-search p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}
.listing-row {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) 150px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: border-color .18s var(--ease), box-shadow .22s var(--ease), transform .18s var(--ease);
}
.listing-row:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-brand);
    transform: translateY(-2px);
}
.listing-row.is-featured { border-color: var(--accent); background: var(--accent-soft); }
.listing-row.is-featured:hover { box-shadow: 0 16px 32px rgba(245, 166, 35, .22); }
.listing-row.is-frozen {
    border-color: var(--line);
    background: var(--surface-alt);
}
.listing-thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 94px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s var(--ease);
}
.listing-row:hover .listing-thumb img { transform: scale(1.08); }
.thumb-badges {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
}
.thumb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .01em;
    text-transform: uppercase;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(2px);
}
.thumb-badge i { font-size: 9px; }
.thumb-badge.featured {
    background: linear-gradient(120deg, var(--accent), var(--accent-dark));
    color: var(--white);
}
.thumb-badge.is-new {
    background: linear-gradient(120deg, var(--brand-light), var(--brand-dark));
    color: var(--white);
}
.listing-content h2 {
    font-size: 18px;
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.listing-content h2 a { display: block; }
.listing-content h2 a:hover { color: var(--brand-dark); }
.listing-content p {
    margin: 3px 0;
    color: var(--muted);
    font-size: 14px;
}
.seller-inline-link {
    color: var(--brand-dark);
    font-weight: 900;
}
.seller-inline-link:hover {
    color: var(--brand);
}
.seller-stat-link {
    display: grid;
    gap: 3px;
    color: inherit;
    text-decoration: none;
}
.seller-stat-link:hover,
.seller-stat-link:hover strong {
    color: var(--brand);
}
.listing-content .listing-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    color: var(--muted-soft);
    font-size: 12px;
}
.listing-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.listing-tags span {
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}
.listing-tags span:first-child {
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.listing-tags .featured-tag {
    border: 1px solid rgba(245, 166, 35, .5);
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.listing-tags span.frozen-tag,
.status-badge.frozen {
    border: 1px solid var(--line);
    background: var(--surface-alt);
    color: var(--ink-soft);
}
.listing-tags span.frozen-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.listing-tags span.frozen-tag i {
    font-size: 11px;
}
/* Round 71: "Aukción eladva" jelzés - vizuálisan megkülönbözteti egy
   nyertes aukcióval lezárt (jegelt) hirdetést attól, amit az eladó saját
   maga szüneteltetett. Ugyanazt a "sikeres/pozitív" brand-zöld tónust
   használja, mint a .status-badge.good (pl. account.featured), hiszen ez
   egy jó kimenetel (eladva), nem egy semleges szünet. */
.listing-tags span.frozen-tag.auction-sold,
.status-badge.frozen.auction-sold {
    border-color: var(--brand-soft);
    background: var(--brand-softer);
    color: var(--brand-dark);
}
.is-frozen-title {
    color: var(--muted-soft);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--muted-soft);
}
.ad-list.view-compact {
    gap: 6px;
}
.ad-list.view-compact .listing-row {
    grid-template-columns: 70px minmax(0, 1fr) 120px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
}
.ad-list.view-compact .listing-thumb {
    width: 70px;
    border-radius: var(--radius-sm);
}
.ad-list.view-compact .thumb-badges {
    top: 3px;
    left: 3px;
    gap: 2px;
}
.ad-list.view-compact .thumb-badge {
    padding: 2px 5px;
    font-size: 8px;
}
.ad-list.view-compact .thumb-badge i {
    font-size: 7px;
}
.ad-list.view-compact .listing-tags,
.ad-list.view-compact .listing-meta-row {
    display: none;
}
.ad-list.view-compact .listing-content h2 {
    margin: 0 0 2px;
    font-size: 15px;
}
.ad-list.view-compact .listing-content p {
    margin: 1px 0;
    font-size: 12px;
}
.ad-list.view-compact .listing-price {
    padding: 0;
    background: none;
    font-size: 15px;
}
.ad-list.view-large {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.ad-list.view-large .listing-row {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
}
.ad-list.view-large .listing-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
}
.ad-list.view-large .listing-content h2 {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ad-list.view-large .listing-price {
    justify-self: start;
    font-size: 20px;
}
.listing-price {
    justify-self: end;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--brand-softer);
    color: var(--brand-dark);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}
.eyebrow { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
h1 { font-family: var(--font-display); font-size: 34px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -.01em; }
.hero h1 { font-size: 56px; line-height: 1.02; max-width: 760px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.55; max-width: 680px; }

.search-panel, .form {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--brand-soft);
    border-color: var(--brand);
}
textarea { resize: vertical; }
label { display: grid; gap: 7px; font-weight: 700; }
.location-combo { position: relative; }
.location-combo-input-wrap { position: relative; display: flex; }
.location-combo-input { padding-right: 34px; }
.location-combo-clear {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--muted);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}
.location-combo-clear:hover { background: var(--surface-alt); color: var(--ink); }
.location-combo-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    z-index: 70;
}
.location-combo-list[hidden] { display: none; }
.location-combo-list li {
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}
.location-combo-list li.is-active,
.location-combo-list li:hover {
    background: var(--brand-softer);
    color: var(--brand-dark);
}
.location-combo-list li.location-combo-empty,
.location-combo-list li.location-combo-hint {
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
    cursor: default;
}
.location-combo-list li.location-combo-empty:hover,
.location-combo-list li.location-combo-hint:hover {
    background: none;
    color: var(--muted);
}
.setting-help {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--muted);
}
.check-label input { width: auto; min-height: 0; }
.captcha-field { display: grid; gap: 6px; }
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row input { max-width: 140px; }
.captcha-image {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    display: block;
}
.remember-me-details {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
}
.remember-me-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
}
.remember-me-details ul {
    margin: 8px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
}
.remember-me-options {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}
.remember-me-options li { margin: 0; }
.check-label.small {
    min-height: 0;
    padding: 6px 10px;
    font-size: 12px;
    align-items: flex-start;
    line-height: 1.4;
}
.check-label.small input { margin-top: 2px; }
.resend-form { margin-top: 12px; }
.terms-lightbox .terms-card {
    grid-column: 2;
    justify-self: center;
    max-width: min(640px, 90vw);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}
.terms-lightbox .terms-card h2 {
    margin-top: 0;
}
.terms-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    white-space: normal;
}
.terms-body ul {
    margin: 8px 0;
    padding-left: 22px;
}
.terms-body li {
    margin: 2px 0;
}
.terms-body a {
    color: var(--brand-dark, var(--brand));
    text-decoration: underline;
}
.terms-version {
    margin: -6px 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.legal-inline-body {
    max-height: 340px;
    overflow-y: auto;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
}
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 0 32px;
}
.legal-page .terms-body {
    font-size: 15px;
}
.auth-register-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.register-privacy-hint {
    margin-top: -8px;
}
.footer-legal-links {
    display: flex;
    gap: 14px;
}
.mini-form-stack {
    display: grid;
    gap: 10px;
}
.mini-form-stack textarea {
    min-height: 220px;
    resize: vertical;
}
.bbcode-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bbcode-toolbar .button {
    min-height: 36px;
    padding: 0 14px;
}
.category-fields[hidden],
.listing-type-fields[hidden],
.auto-order-locker-point[hidden] {
    display: none !important;
}
.category-fields,
.listing-type-fields {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
}
.category-fields h2,
.listing-type-fields .section-title h2 {
    margin: 0;
    font-size: 18px;
}
.category-picker {
    display: grid;
    gap: 8px;
}
.category-picker-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}
.category-picker-levels label {
    min-width: 0;
}
.create-ad-page .page-head {
    align-items: end;
}
.create-ad-form {
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.form-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    position: sticky;
    top: 74px;
    z-index: 4;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}
.form-steps a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.form-steps a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.form-steps span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--white);
    font-size: 12px;
}
.form-section {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 136px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}
.section-title > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 18px;
}
.section-title h2 {
    margin: 0;
    font-size: 21px;
}
.section-title p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.shipping-toggle {
    min-height: 44px;
    margin-top: 25px;
}
.shipping-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.shipping-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}
.shipping-options[hidden] {
    display: none;
}
.shipping-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 12px;
}
.shipping-option input {
    width: auto;
    min-height: 0;
}
.ship-logo-wrap {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 22px;
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface);
    flex: none;
}
.ship-logo-wrap img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ship-logo-wrap.foxpost { background: #c90000; }
.ship-logo-wrap.mpl { background: #fff; }
.ship-logo-wrap.gls { background: #fffdf1; }
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin: 16px 0 20px;
}
.avatar-option {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 2px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.avatar-option:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}
.avatar-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.avatar-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-softer);
    box-shadow: var(--shadow-brand);
}
.avatar-option-thumb {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-alt);
}
.avatar-option-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-option-none {
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    border: 2px dashed var(--muted-soft);
}
.avatar-option-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--ink-soft);
}
.payment-options {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.payment-brand {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    color: #fff;
    background: var(--brand);
}
.payment-brand.cod,
.payment-badge.cod { border-color: rgba(245, 166, 35, .4); background: var(--accent-soft); }
.payment-brand.cod { background: var(--accent); }
.payment-brand.prepaid,
.payment-badge.prepaid { border-color: rgba(14, 143, 127, .35); background: var(--brand-softer); }
.payment-brand.prepaid { background: var(--brand); }
.upload-box {
    min-height: 150px;
    place-items: center;
    padding: 22px;
    border: 2px dashed var(--muted-soft);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.upload-box:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.upload-box input {
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
}
.upload-box span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-size: 18px;
    font-weight: 900;
}
.upload-box small {
    color: var(--muted);
    font-weight: 700;
}
.upload-summary {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--muted);
    font-weight: 800;
}
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.image-preview {
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.image-preview:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-soft);
}
.image-preview.is-primary {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.image-preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--paper);
}
.image-preview span {
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
}
.image-preview-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
}
.image-preview-actions button {
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--brand);
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.image-preview-actions .remove-image {
    color: var(--danger);
}
.image-preview-actions button:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-xs);
}
.image-preview small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}
.existing-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.existing-image.is-deleted {
    opacity: .52;
    border-style: dashed;
}
.radio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}
.delete-image-toggle {
    min-height: 34px;
    justify-content: center;
}
.submit-review {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
}
.submit-review strong,
.submit-review span {
    display: block;
}
.submit-review span {
    margin-top: 3px;
    color: var(--muted);
}

.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0 26px;
}
.categories a, .tag {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    transition: border-color .15s var(--ease), color .15s var(--ease);
}
.categories a:hover { border-color: var(--brand); color: var(--brand-dark); }

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 18px;
}
.ad-card, .admin-row {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.ad-card:hover {
    box-shadow: var(--shadow-brand);
    transform: translateY(-2px);
    border-color: var(--brand-light);
}
.ad-image, .detail-media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
    color: var(--brand);
    font-weight: 800;
}
.ad-image { position: relative; overflow: hidden; }
.ad-image img { width: 100%; height: 100%; object-fit: cover; }
.ad-image img { transition: transform .35s var(--ease); }
.ad-card:hover .ad-image img { transform: scale(1.08); }
.ad-image .thumb-badges { top: 8px; left: 8px; }
.ad-body { padding: 16px; }
.ad-body h2 {
    font-size: 18px;
    margin: 10px 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ad-body p { color: var(--muted); margin: 0 0 12px; }
.ad-body strong, .price { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--brand-dark); }
.ad-body strong {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--brand-softer);
}

.ad-detail-page {
    display: grid;
    gap: 16px;
    padding-top: 24px;
}
.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.detail-breadcrumb a:hover { color: var(--brand-dark); }
.detail-breadcrumb i { font-size: 10px; color: var(--muted-soft); }
.detail-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(214, 60, 48, .3);
    border-radius: var(--radius);
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 800;
}
.detail-alert.frozen-alert {
    border-color: var(--line);
    background: var(--surface-alt);
    color: var(--ink-soft);
}
.detail-alert.frozen-alert.auction-sold {
    border-color: var(--brand-soft);
    background: var(--brand-softer);
    color: var(--brand-dark);
}
.detail-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.detail-titlebar h1 {
    margin: 10px 0 8px;
    font-size: 31px;
}
.detail-titlebar p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    padding-top: 0;
}
.detail-gallery, .detail-sidebar {
    display: grid;
    gap: 12px;
    align-self: start;
}
.detail-sidebar {
    position: sticky;
    top: 84px;
}
.detail-media {
    aspect-ratio: 4 / 3;
    max-height: 480px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.media-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    color: var(--brand);
    font-size: 16px;
}
.media-empty i { font-size: 42px; }
.detail-media-open {
    display: grid;
    place-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}
.detail-media-open img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.detail-media-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: rgba(16, 21, 28, .55);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 15px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), background-color .18s var(--ease);
}
.detail-media-open:hover .detail-media-zoom,
.detail-media-open:focus-visible .detail-media-zoom {
    opacity: 1;
    transform: translateY(0);
}
.detail-media-open:hover {
    background: none;
}
.detail-media-open:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 24px;
    background: rgba(12, 16, 22, .92);
    backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, .2);
    transform: scale(1.05);
}
.lightbox-nav {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, .2);
    transform: scale(1.06);
}
.lightbox-figure {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin: 0;
    min-width: 0;
    max-height: calc(100vh - 48px);
}
.lightbox-figure img {
    max-width: 100%;
    max-height: calc(100vh - 110px);
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}
.lightbox-counter {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}
.detail-panel, .detail-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.detail-panel h2, .detail-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.panel-head h2 { margin: 0; }
.panel-head a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}
.detail-suggestions {
    display: grid;
    gap: 12px;
}
.mini-ad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.mini-ad {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.mini-ad.is-frozen {
    background: var(--surface-alt);
}
.mini-ad:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}
.mini-ad-image {
    position: relative;
    display: grid;
    place-items: center;
    width: 78px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
    color: var(--brand);
}
.mini-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s var(--ease);
}
.mini-ad:hover .mini-ad-image img { transform: scale(1.08); }
.mini-ad-image .thumb-badges {
    top: 3px;
    left: 3px;
    gap: 2px;
}
.mini-ad-image .thumb-badge {
    padding: 2px 5px;
    font-size: 8px;
}
.mini-ad-image .thumb-badge i {
    font-size: 7px;
}
.mini-ad-body {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 4px;
}
.mini-ad-body strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}
.mini-ad-body small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
}
.mini-ad-body .frozen-mini-label {
    color: var(--ink-soft);
    font-weight: 900;
}
.mini-ad-body .frozen-mini-label.auction-sold {
    color: var(--brand-dark);
}
.mini-ad-body b {
    color: var(--brand-dark);
    font-size: 15px;
}
.description-copy {
    color: var(--ink-soft);
    line-height: 1.65;
}
.price-card {
    display: grid;
    gap: 14px;
    border-top: 4px solid var(--brand);
}
.price-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.quick-facts {
    display: grid;
    gap: 8px;
}
.quick-facts span {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--muted);
    font-weight: 700;
}
.quick-facts i { width: 18px; color: var(--brand); text-align: center; }
.auction-panel {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}
.auction-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.auction-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.auction-meta i { color: var(--brand); }
.auction-bid-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
    margin-top: 0;
}
.auction-bid-form label { margin: 0; }
.auction-buy-now-form { margin-top: 0; }
.auction-buy-now-form .button { width: 100%; }
.auction-ended-note {
    margin: 0;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--muted);
    font-weight: 700;
}
.swap-for-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}
.swap-for-line i { color: var(--brand); }
.auction-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-dark);
    font-weight: 800;
}
.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
}
.detail-actions form { display: grid; }
.detail-actions .button { width: 100%; gap: 8px; }
.share-link-button {
    width: 100%;
    gap: 8px;
}
.seller-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.seller-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    background: linear-gradient(155deg, var(--brand-light), var(--brand-dark));
    color: var(--white);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
    overflow: hidden;
}
.seller-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.seller-line strong, .seller-line small { display: block; }
.seller-line small { color: var(--muted); margin-top: 3px; }
.seller-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0 14px;
}
.seller-mini-stats span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}
.seller-mini-stats strong {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
    font-size: 13px;
}
.seller-card dl {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 8px 10px;
    margin: 0;
}
.seller-card dt { color: var(--muted); }
.seller-card dd { margin: 0; font-weight: 800; }
.auction-readonly-summary {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 10px;
    margin: 0;
}
.auction-readonly-summary dt { color: var(--muted); }
.auction-readonly-summary dd { margin: 0; font-weight: 800; }
.safety-card {
    border-color: rgba(245, 166, 35, .4);
    background: var(--accent-soft);
}
.safety-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.safety-card i { color: var(--accent-dark); }
.safety-card p {
    margin: 0;
    color: var(--accent-dark);
    line-height: 1.5;
}
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.thumb-grid button {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.thumb-grid button.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.thumb-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0;
}
.spec-list span {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
}
.compact-form, .report-form { margin-top: 18px; }
.report-form {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 10px;
    align-items: center;
}

/* Page-level padding-top and Fiókom's own bordered card were folded into
   the site-wide `main` frame (see body/main rules above) so every page now
   sits inside one consistent frame instead of stacking a page-specific box
   inside it. account-frame now only narrows the column for easier reading. */
.admin-page.account-frame {
    max-width: 820px;
    margin: 0 auto;
}
.narrow { max-width: 520px; margin-inline: auto; }
.not-found-page {
    display: grid;
    gap: 12px;
}
.not-found-page p { margin: 0; color: var(--muted); }
.not-found-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 6px;
}
.not-found-search input { min-height: 40px; }
.not-found-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.not-found-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.not-found-links a:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-xs);
}
.not-found-links i {
    width: 16px;
    color: var(--brand);
    text-align: center;
}
.flash, .empty {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.maintenance-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(245, 166, 35, .4);
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
}
.flash.success { border-color: var(--brand); background: var(--brand-softer); color: var(--brand-dark); }
.flash.error { border-color: rgba(214, 60, 48, .35); background: var(--danger-soft); color: var(--danger); }

.admin-list { display: grid; gap: 12px; }
.account-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.account-shortcuts a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.account-shortcuts a:hover {
    border-color: rgba(14, 143, 127, .4);
    background: var(--brand-softer);
    color: var(--brand-dark);
}
.account-shortcuts i {
    color: var(--brand);
}
.account-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.account-subnav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
    transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.account-subnav a:hover {
    border-color: rgba(14, 143, 127, .4);
    color: var(--brand-dark);
}
.account-subnav a.is-active {
    border-color: var(--brand);
    background: var(--brand-softer);
    color: var(--brand-dark);
}
.account-subnav i {
    color: inherit;
}
.push-settings-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.push-settings-card h2 {
    margin: 0 0 4px;
    font-size: 16px;
}
.push-settings-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.push-settings-card .button {
    flex: 0 0 auto;
    white-space: nowrap;
}
.push-settings-card .button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}
.admin-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.admin-stat-strip span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.admin-stat-strip strong {
    color: var(--ink);
}
.admin-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
}
.admin-row form { display: flex; gap: 8px; align-items: center; }
.action-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
.action-cluster form { display: flex; gap: 8px; flex-wrap: wrap; }
.freeze-form {
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
}
.freeze-form label {
    display: grid;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.freeze-form input[type="datetime-local"] {
    width: 165px;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
    font-size: 12px;
}
.frozen-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft) !important;
    font-weight: 800;
}
.frozen-meta.auction-sold {
    color: var(--brand-dark) !important;
}
.account-edit-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: var(--shadow-brand);
}
.account-edit-button i {
    font-size: 13px;
}
.admin-row p { margin: 6px 0 0; color: var(--muted); }
.coupon-redemption-list {
    margin: 6px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 11px;
}
.coupon-redemption-list li { margin: 2px 0; }
.price-insight-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    color: var(--muted);
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.price-insight-bar strong {
    color: var(--text);
    white-space: nowrap;
}
.price-insight-bar strong i { color: var(--accent-dark); }
.price-insight-hint {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}
.conversation-preview {
    max-width: 760px;
    color: var(--ink);
}
.conversation-user span {
    color: var(--ink);
    font-weight: 800;
}
.conversation-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}
.conversation-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}
.conversation-side span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.admin-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.admin-row.has-unread {
    border-color: rgba(214, 60, 48, .35);
    background: var(--danger-soft);
}
.unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 .42rem;
    border-radius: var(--radius-pill);
    background: var(--danger);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1;
}
.deal-pending-badge {
    display: inline-flex;
    align-items: center;
    height: 1.45rem;
    padding: 0 .55rem;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 700;
    transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.page-link:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.page-link.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pagination [aria-disabled="true"] {
    pointer-events: none;
    opacity: .45;
}
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
    transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.tabs a:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}
.tabs a.active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.admin-alert-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}
.admin-alert {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid rgba(245, 166, 35, .4);
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.admin-alert i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(245, 166, 35, .22);
    color: var(--accent-dark);
}
.admin-alert strong {
    color: var(--accent-dark);
}
.admin-alert p {
    margin: 3px 0 6px;
}
.admin-alert a {
    color: var(--accent-dark);
    font-weight: 900;
    text-decoration: underline;
}
.stat-grid div {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.stat-grid strong { font-family: var(--font-display); font-size: 26px; color: var(--brand-dark); }
.stat-grid span, .message-bubble span { color: var(--muted); font-size: 13px; }
.offers-subnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 22px;
}
.offers-subnav a {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.offers-subnav a:hover {
    border-color: var(--brand);
    background: var(--brand-soft, var(--surface));
}
.offers-section-title {
    margin: 36px 0 14px;
    scroll-margin-top: 90px;
}
.offers-section-title:first-of-type {
    margin-top: 8px;
}
.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.plan-card {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.plan-card > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}
.plan-card strong {
    color: var(--ink);
    font-size: 18px;
}
.plan-card span {
    color: var(--brand-dark);
    font-weight: 900;
    white-space: nowrap;
}
.plan-subline {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
}
.plan-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}
/* Meghívólinkes regisztráció jutalma (round 61) - ugyanaz a "figyelmet
   érdemlő panel" felépítés, mint .settings-panel.deal-panel-pending
   (round 53), csak márka-zöld árnyalatban ("jó hír" jelleg, nem "teendő"). */
.settings-panel.plan-free-featured-panel {
    position: relative;
    padding-left: 22px;
    border: 1px solid rgba(10, 109, 96, .35);
    background: linear-gradient(160deg, var(--brand-softer), var(--surface) 65%);
    box-shadow: 0 4px 16px rgba(10, 109, 96, .12);
    margin-bottom: 18px;
}
.settings-panel.plan-free-featured-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}
.business-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--info-soft);
    color: var(--info);
    font-size: 12px;
    font-weight: 900;
}
.subscription-status-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.subscription-status-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 4px;
    font-size: 19px;
}
.subscription-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.subscription-compare {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
}
.subscription-compare th, .subscription-compare td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
}
.subscription-compare thead th {
    text-align: center;
    vertical-align: bottom;
    background: var(--surface-alt);
}
.subscription-compare th.feature-col, .subscription-compare th[scope="row"] {
    text-align: left;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}
.subscription-compare thead th strong {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--ink);
}
.subscription-compare th.is-recommended, .subscription-compare td.is-recommended {
    background: var(--brand-softer);
}
.subscription-compare .plan-badge {
    margin: 0 auto 6px;
}
.subscription-compare i.fa-check { color: var(--success); }
.subscription-compare i.fa-xmark { color: var(--muted-soft); }
.subscription-compare tbody tr:last-child td { border-bottom: none; }
.subscription-note { margin-top: 14px; }
.table-list {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}
.table-row {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr .7fr;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
}
.table-row:last-child { border-bottom: 0; }
.table-head { font-weight: 800; background: var(--brand-softer); }
.user-edit-row {
    grid-template-columns: 1.1fr 1.35fr .9fr 1.1fr .72fr .78fr auto;
}
.user-edit-row input,
.user-edit-row select {
    min-height: 38px;
}
.user-name-cell {
    display: grid;
    gap: 5px;
}
.user-name-cell small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.user-activity-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-content: center;
}
.user-activity-cell span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}
.message-list { display: grid; gap: 12px; margin: 18px 0; }
.message-start-panel {
    margin-bottom: 14px;
}
.direct-message-row {
    display: grid;
    grid-template-columns: minmax(160px, .8fr) minmax(220px, 1.6fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.direct-message-row small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}
.direct-message-row textarea {
    min-height: 46px;
    resize: vertical;
}
.message-bubble {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.message-bubble.is-unread {
    border-color: rgba(47, 111, 237, .35);
    background: var(--info-soft);
}
.unread-flag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-left: 6px;
    border-radius: var(--radius-pill);
    background: var(--info);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.message-bubble p { margin: 8px 0; }
.message-context {
    display: grid;
    gap: 4px;
    margin: 10px 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 12px;
}
.message-context span {
    overflow-wrap: anywhere;
}
.message-context b {
    color: var(--text);
}
.message-context a {
    color: var(--brand);
    font-weight: 700;
}
.review-panel {
    margin: 14px 0 18px;
}
.deal-panel {
    margin: 14px 0 18px;
}
.settings-panel.deal-panel-pending {
    position: relative;
    padding-left: 22px;
    border: 1px solid rgba(201, 127, 10, .35);
    background: linear-gradient(160deg, var(--accent-soft), var(--surface) 65%);
    box-shadow: 0 4px 16px rgba(201, 127, 10, .14);
}
.settings-panel.deal-panel-pending::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}
.settings-panel.review-panel {
    position: relative;
    padding-left: 22px;
    border: 1px solid rgba(14, 143, 127, .3);
    background: linear-gradient(160deg, var(--brand-softer), var(--surface) 65%);
    box-shadow: 0 4px 16px rgba(14, 143, 127, .14);
}
.settings-panel.review-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background: linear-gradient(180deg, var(--brand-light), var(--brand-dark));
}
.settings-panel.review-panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
}
.settings-panel.review-panel h2 i {
    color: var(--accent-dark);
}
.review-list {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}
.review-item {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
}
.review-item span {
    width: max-content;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 900;
}
.review-item.positive span { background: var(--success-soft); color: var(--success); }
.review-item.negative span { background: var(--danger-soft); color: var(--danger); }
.review-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.review-filters a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.review-filters a span {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    background: var(--line-soft);
    color: var(--muted);
    text-align: center;
}
.review-filters a.is-active {
    border-color: rgba(14, 143, 127, .3);
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.review-filters a.positive.is-active { background: var(--success-soft); color: var(--success); }
.review-filters a.negative.is-active { background: var(--danger-soft); color: var(--danger); }
.review-form {
    box-shadow: none;
    border: 0;
    padding: 0;
}
.profile-page {
    display: grid;
    gap: 18px;
}
.profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 26px;
}
.profile-head h1 {
    margin: 2px 0 4px;
}
.profile-head p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.profile-actions .button {
    gap: 8px;
}
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.profile-stats div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.profile-stats strong {
    display: block;
    font-family: var(--font-display);
    color: var(--brand-dark);
    font-size: 24px;
}
.profile-stats span {
    color: var(--muted);
    font-weight: 800;
}
.rating-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.rating-summary span,
.rating-summary a {
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 900;
}
.rating-summary .positive { background: var(--success-soft); color: var(--success); }
.rating-summary .negative { background: var(--danger-soft); color: var(--danger); }
.rating-summary a {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.rating-summary.compact {
    margin: 12px 0;
}
.listing-rating-summary {
    display: inline-flex;
    gap: 3px;
    margin-left: 6px;
    vertical-align: middle;
    text-decoration: none;
}
.listing-rating-summary span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}
.listing-rating-summary .positive { background: var(--success-soft); color: var(--success); }
.listing-rating-summary .negative { background: var(--danger-soft); color: var(--danger); }
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--line-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.trust-badge.good {
    border-color: rgba(14, 143, 127, .28);
    background: var(--brand-softer);
    color: var(--brand-dark);
}
.trust-badge.excellent {
    border-color: rgba(245, 166, 35, .4);
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.trust-badge.mixed {
    border-color: rgba(214, 60, 48, .25);
    background: var(--danger-soft);
    color: var(--danger);
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: var(--line-soft);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    vertical-align: middle;
}
.status-badge.good {
    background: var(--brand-softer);
    color: var(--brand-dark);
}
.status-badge.mixed {
    background: var(--danger-soft);
    color: var(--danger);
}
.profile-ad-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.shipping-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 11px;
    color: var(--text);
}
.settings-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.settings-group {
    display: grid;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}
.settings-group:last-of-type { border-bottom: 0; }
.settings-group h2, .settings-panel h2 { margin: 0; font-size: 20px; }
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.smtp-status-panel {
    border-left: 4px solid var(--line);
}
.smtp-status-panel.ok {
    border-left-color: var(--brand);
    background: var(--brand-softer);
}
.smtp-status-panel.warn {
    border-left-color: var(--danger);
    background: var(--danger-soft);
}
.smtp-status-panel.muted {
    border-left-color: var(--muted-soft);
    background: var(--surface-alt);
}
.smtp-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.smtp-status-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .8);
    font-size: 12px;
    font-weight: 800;
}
.smtp-status-row i {
    color: var(--accent);
}
.smtp-status-message {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}
ul.smtp-status-message {
    display: grid;
    gap: 4px;
    padding-left: 18px;
}
.health-list {
    display: grid;
    gap: 8px;
}
.system-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin: -8px 0 18px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.system-summary strong {
    font-size: 14px;
}
.system-summary span {
    color: var(--muted);
    font-weight: 800;
}
.system-summary.ok {
    border-color: rgba(14, 143, 127, .28);
    background: var(--brand-softer);
}
.system-summary.warn {
    border-color: rgba(214, 60, 48, .28);
    background: var(--danger-soft);
}
.system-log-list {
    display: grid;
    gap: 8px;
}
.system-log-item {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
}
.system-log-item div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}
.system-log-item strong {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.system-log-item span {
    color: var(--muted);
    font-weight: 800;
}
.system-log-item.recent {
    border-color: rgba(214, 60, 48, .28);
    background: var(--danger-soft);
}
.system-log-item.recent strong {
    color: var(--danger);
}
.system-log-list code {
    display: block;
    overflow-wrap: anywhere;
    white-space: normal;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.45;
}
.textarea-counter {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}
.textarea-counter.is-near-limit {
    color: var(--danger);
}
.form-grid input:disabled,
.form-grid select:disabled {
    background: var(--surface-alt);
    color: var(--muted);
    cursor: not-allowed;
    border-color: var(--line);
}
.city-locked-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.direct-message-input {
    display: grid;
    gap: 0;
    min-width: min(100%, 320px);
}
.version-row {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.version-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.version-tools label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 280px;
}
.version-tools input {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}
.version-tools span {
    color: var(--muted);
    font-weight: 900;
}
.version-row summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
}
.version-row summary strong {
    font-size: 14px;
}
.version-row summary small {
    color: var(--muted);
    font-weight: 800;
}
.version-row p {
    margin: 0;
    padding: 0 14px 14px;
    color: var(--muted);
}
.health-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 76px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
}
.health-row strong {
    color: var(--text);
}
.health-row span {
    color: var(--muted);
    font-size: 13px;
}
.health-row b {
    justify-self: end;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
}
.health-row.error {
    border-color: rgba(214, 60, 48, .28);
    background: var(--danger-soft);
}
.health-row.error b {
    background: rgba(214, 60, 48, .15);
    color: var(--danger);
}
.settings-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}
.mini-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}
.catalog-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(100px, 1fr)) auto auto;
    gap: 8px;
    align-items: center;
}
.catalog-row.plan-row {
    grid-template-columns: repeat(7, minmax(90px, 1fr)) auto auto;
}
.attribute-field-form {
    grid-template-columns: minmax(160px, 1.2fr) repeat(5, minmax(110px, 1fr)) minmax(90px, .6fr) auto auto auto;
}
.catalog-row.attribute-field-row {
    grid-template-columns: minmax(150px, 1.3fr) repeat(5, minmax(100px, 1fr)) minmax(80px, .5fr) auto auto auto auto;
}
.attribute-field-row textarea,
.attribute-field-form textarea {
    min-height: 42px;
    resize: vertical;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

/* Compact typography: Hasznaltapro uses a denser, smaller marketplace scale. */
.brand { font-size: 16px; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { font-size: 10px; }
.nav { font-size: 12px; }
.nav > a:not(.button), .link-button {
    min-height: 32px;
    padding: 0 8px;
}
.button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
}
h1 { font-size: 28px; }
.hero h1 { font-size: 42px; }
.market-header h1 { font-size: 30px; }
.lead { font-size: 15px; }
.eyebrow { font-size: 11px; }
.market-sidebar h2 { font-size: 14px; }
.category-line { font-size: 12px; }
.category-line.parent { padding: 8px 6px; }
.category-line.child { font-size: 11px; }
.search-main {
    min-height: 42px;
    font-size: 14px;
}
input, select, textarea {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
}
label { font-size: 12px; }
.toggle-strip label {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
}
.result-head { font-size: 12px; }
.listing-content h2 { font-size: 15px; }
.listing-content p { font-size: 12px; }
.listing-tags span { font-size: 10px; }
.listing-price { font-size: 16px; }
.listing-thumb { font-size: 10px; }
.ad-body h2 { font-size: 15px; }
.ad-body p { font-size: 12px; }
.ad-body strong, .price { font-size: 19px; }
.form-steps a { font-size: 11px; }
.form-steps span {
    width: 21px;
    height: 21px;
    font-size: 10px;
}
.section-title h2 { font-size: 17px; }
.section-title p { font-size: 12px; }
.category-fields h2 { font-size: 15px; }
.upload-box span { font-size: 15px; }
.upload-box small,
.upload-summary,
.submit-review span,
.image-preview span,
.image-preview small { font-size: 11px; }
.detail-titlebar h1 { font-size: 24px; }
.detail-titlebar p,
.detail-breadcrumb { font-size: 11px; }
.detail-panel h2, .detail-card h2 { font-size: 16px; }
.description-copy,
.detail-card p,
.quick-facts span,
.seller-card dl,
.spec-list span,
.report-form { font-size: 12px; }
.price-label,
.panel-head a { font-size: 11px; }
.phone-link {
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
}
.phone-link:hover {
    text-decoration: underline;
}
.mini-ad-body strong { font-size: 12px; }
.mini-ad-body small { font-size: 10px; }
.mini-ad-body b { font-size: 13px; }
.seller-avatar {
    width: 40px;
    height: 40px;
    font-size: 17px;
}
.tabs a,
.admin-row,
.table-row,
.message-bubble,
.settings-panel,
.settings-group,
.mini-form,
.catalog-row { font-size: 12px; }
.stat-grid strong { font-size: 21px; }
.settings-group h2, .settings-panel h2 { font-size: 16px; }
.site-footer { font-size: 11px; }

/* Dark theme: body backdrop + the handful of translucent-white "glass"
   panels and solid brand-color gradients that don't adapt automatically
   just by redefining the tokens above (see the :root[data-theme="dark"]
   comment near the top of this file for why). */
[data-theme="dark"] body {
    background:
        radial-gradient(1200px 520px at 10% -12%, rgba(23, 179, 159, .14), transparent 60%),
        radial-gradient(950px 460px at 102% -4%, rgba(245, 166, 35, .08), transparent 55%),
        radial-gradient(900px 480px at 50% 112%, rgba(79, 140, 255, .07), transparent 60%),
        radial-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 24px 24px,
        var(--paper);
}
[data-theme="dark"] .topbar {
    background: rgba(12, 16, 21, .82);
    border-bottom-color: var(--line);
}
[data-theme="dark"] .brand-logo {
    background: rgba(255, 255, 255, .94);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
}
[data-theme="dark"] .header-banner-copy {
    background: rgba(12, 16, 21, .88);
    border-color: rgba(255, 255, 255, .14);
}
[data-theme="dark"] .result-head { background: rgba(255, 255, 255, .04); }
[data-theme="dark"] .form-steps { background: rgba(20, 25, 31, .92); }
[data-theme="dark"] .smtp-status-row span { background: rgba(255, 255, 255, .06); }
/* Solid brand/accent gradients — pinned back to their original dark hex so
   buttons and badges stay saturated instead of washing out now that
   --brand-dark/--accent-dark mean "light accent text" in dark mode. */
[data-theme="dark"] .button.primary {
    background: linear-gradient(155deg, var(--brand-light), #0a6d60);
    border-color: #0a6d60;
}
[data-theme="dark"] .button.primary:hover {
    background: linear-gradient(155deg, var(--brand), #0a6d60);
    border-color: #0a6d60;
}
[data-theme="dark"] .brand-mark { background: linear-gradient(155deg, var(--brand-light), #0a6d60); }
[data-theme="dark"] .header-banner-inner { background: linear-gradient(135deg, #0a6d60, var(--brand)); }
[data-theme="dark"] .thumb-badge.featured { background: linear-gradient(120deg, var(--accent), #c97f0a); }
[data-theme="dark"] .thumb-badge.is-new { background: linear-gradient(120deg, var(--brand-light), #0a6d60); }
[data-theme="dark"] .seller-avatar { background: linear-gradient(155deg, var(--brand-light), #0a6d60); }
[data-theme="dark"] .settings-panel.review-panel::before { background: linear-gradient(180deg, var(--brand-light), #0a6d60); }

@media (max-width: 820px) {
    main { margin: 16px auto 32px; padding: 20px 16px 28px; border-radius: var(--radius-lg); }
    .topbar, .hero, .detail, .admin-row { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; }
    .brand { align-items: start; }
    .brand-logo { height: 34px; }
    .user-menu-name-text { max-width: 70px; }
    .user-menu-dropdown { right: -8px; min-width: 220px; }
    .brand-copy small { font-size: 10px; }
    .nav { justify-content: flex-start; }
    .header-banner { margin-top: 12px; }
    .header-banner img { height: 150px; }
    .header-banner-copy {
        position: static;
        max-width: none;
        border-radius: 0;
        border-width: 1px 0 0;
    }
    .hero { display: grid; padding-top: 28px; }
    .market-header h1 { font-size: 25px; }
    .hero h1 { font-size: 30px; }
    .detail-info dl { grid-template-columns: 1fr; }
    .admin-row, .topbar { display: grid; }
    .form-grid, .spec-list, .report-form, .table-row, .filter-row, .form-steps, .not-found-search, .not-found-links { grid-template-columns: 1fr; }
    .account-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-header, .market-layout, .filter-grid, .listing-row, .settings-columns, .catalog-row, .catalog-row.plan-row, .mini-ad-grid, .direct-message-row, .recent-strip-list, .plan-cards { grid-template-columns: 1fr; display: grid; }
    .form-steps { position: static; }
    .section-title, .submit-review { align-items: start; }
    .submit-review { display: grid; }
    .market-sidebar { position: static; }
    .listing-price { justify-self: start; }
    .list-toolbar { justify-content: stretch; }
    .list-toolbar select { width: 100%; }
    .toggle-strip label {
        flex: 1 1 140px;
    }
    .save-search-form,
    .result-head {
        display: grid;
        justify-content: stretch;
    }
    .save-search-form input[name="name"],
    .save-search-form .button,
    .result-head > * {
        width: 100%;
    }
    .page-head { display: grid; }
    .site-footer { display: grid; }
    .push-settings-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .lightbox {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        padding: 16px;
    }
    .lightbox-nav {
        width: 44px;
        height: 44px;
        justify-self: center;
    }
    .lightbox-prev { order: 2; }
    .lightbox-figure { order: 1; }
    .lightbox-next { order: 3; }
    .lightbox-close {
        top: 12px;
        right: 12px;
    }
    .detail-media-zoom {
        opacity: 1;
        transform: none;
    }
}
