﻿/* fiShop â€” komponente (layout preko Tailwind u header.php) */

:root {
    --blue-dark: #0b3d5c;
    --blue: #1774b3;
    --blue-light: #e8f2fa;
    --teal: #16a394;
    --orange: #e8813a;
    --text: #1e2a32;
    --text-muted: #64798a;
    --border: #dde5eb;
    --bg: #f6f9fb;
    --white: #ffffff;
    --danger: #d64545;
    --radius: 10px;
    --header-bg: #e8f2fa;
}

* { box-sizing: border-box; }

body.page-preloader-active {
    overflow: hidden;
}

.page-preloader[hidden] {
    display: none !important;
}

.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1rem;
    background: rgba(11, 61, 92, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
}

.page-preloader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-preloader-dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    min-width: 11rem;
    padding: 1.65rem 2rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(11, 61, 92, 0.28);
    text-align: center;
}

.page-preloader-spinner-svg {
    display: block;
    width: 3rem;
    height: 3rem;
    animation: page-preloader-spin 0.85s linear infinite;
}

.page-preloader-label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-dark);
}

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

@keyframes page-preloader-spin {
    to { transform: rotate(360deg); }
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none !important;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #d5722a; }
.btn-secondary { background: var(--blue-light); color: var(--blue-dark); }
.btn-secondary:hover { background: #d4e7f3; }
.btn-danger { background: var(--white); color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: #fdecec; }
.btn-block { width: 100%; text-align: center; }

/* --- Layout --- */
.page-content {
    width: 100%;
    margin: 0;
    padding: 1.5rem;
}
@media (min-width: 640px) {
    .page-content { padding: 2rem; }
}

.page-with-sidebar {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    align-items: start;
    width: 100%;
    margin: 0;
}
.page-browse {
    width: 100%;
    margin: 0;
}
@media (min-width: 781px) {
    .page-with-sidebar {
        align-items: stretch;
    }
    .filters {
        min-height: calc(100vh - 4.25rem);
        max-height: calc(100vh - 4.25rem);
        overflow-y: auto;
    }
}
@media (max-width: 780px) {
    .page-with-sidebar { grid-template-columns: 1fr; }
}

.filters {
    background: var(--white);
    border: none;
    border-radius: 0;
    padding: 1.2rem;
}
.filters h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin: 1rem 0 0.4rem; }
.filters h3:first-child { margin-top: 0; }
.filters select, .filters input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
}
.price-range { display: flex; gap: 0.5rem; }
.filters .btn { margin-top: 1.2rem; }

.filters-techniques {
    margin-bottom: 0.25rem;
}

.filters-technique-search {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 0.45rem;
}

.filters-techniques-meta {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    min-height: 1.1rem;
}

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

.filters-techniques-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 11rem;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafcfd;
}

.filters-technique-item.is-hidden {
    display: none;
}

.filters-technique-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text);
    border-bottom: 1px solid #eef2f5;
}

.filters-technique-item:last-child .filters-technique-option {
    border-bottom: none;
}

.filters-technique-option:hover {
    background: #f0f5f9;
}

.filters-technique-option input {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.filters-technique-label {
    line-height: 1.35;
}

.btn-clear { display: block; text-align: center; margin-top: 0.6rem; font-size: 0.88rem; color: var(--text-muted); background: none; border: none; cursor: pointer; font-family: inherit; width: 100%; }
.btn-clear:hover { color: var(--blue-dark); }

.listings-search-toolbar {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.listings-filters-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1rem;
    border: none;
    border-right: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}
.listings-filters-toggle:hover {
    color: var(--blue-dark);
    background: var(--blue-light);
}
.listings-filters-toggle.is-active {
    color: var(--blue);
    background: var(--blue-light);
}
.listings-filters-toggle-label {
    display: none;
}
@media (min-width: 480px) {
    .listings-filters-toggle-label { display: inline; }
}

.filters-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
}
.filters-offcanvas:not([hidden]) {
    display: block;
}
.filters-offcanvas.is-open {
    pointer-events: auto;
}
.filters-offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 61, 92, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.filters-offcanvas.is-open .filters-offcanvas-backdrop {
    opacity: 1;
}
.filters-offcanvas-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    max-width: 100%;
    background: var(--white);
    box-shadow: 4px 0 24px rgba(11, 61, 92, 0.15);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.filters-offcanvas.is-open .filters-offcanvas-panel {
    transform: translateX(0);
}
.filters-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    background: var(--blue-light);
}
.filters-offcanvas-header h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--blue-dark);
}
.filters-offcanvas-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.filters-offcanvas-close:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--blue-dark);
}
.filters-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.page-content--narrow {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}
.page-title {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
    color: var(--blue-dark);
}
.profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.profile-card p { margin: 0.35rem 0; }
.profile-edit-form { margin-top: 1.25rem; }
.profile-edit-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.profile-edit-hint { margin: -0.25rem 0 0.85rem; font-size: 0.85rem; }
.profile-avatar-field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.profile-avatar-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.profile-avatar-preview {
    display: flex;
    align-items: center;
}
.profile-avatar-upload span {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.profile-avatar-upload input[type="file"] {
    font-size: 0.88rem;
}
.profile-avatar-remove {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
}
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.page-about .about-share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.page-about .about-share h2 {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
}

.page-about .about-share .listing-share {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.about-contact {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.about-contact h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: var(--blue-dark);
}

.contact-cards {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0 1.75rem;
}

@media (min-width: 640px) {
    .contact-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contact-card,
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 2px 10px rgba(11, 61, 92, 0.04);
}

.contact-card h3,
.contact-form-wrap h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--blue-dark);
}

.contact-card p {
    margin: 0.35rem 0;
}

.contact-phone {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.contact-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.contact-quick-btn--whatsapp:hover {
    border-color: #25d366;
    color: #128c7e;
}

.contact-quick-btn--viber:hover {
    border-color: #7360f2;
    color: #7360f2;
}

.contact-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 9rem;
    resize: vertical;
    line-height: 1.5;
}

.contact-form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.category-tree {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}
.category-tree li {
    margin: 0.35rem 0;
}
.category-tree a {
    font-weight: 600;
    color: var(--blue-dark);
    text-decoration: none;
}
.category-tree a:hover { color: var(--blue); text-decoration: underline; }
.category-tree--nested {
    margin: 0.25rem 0 0.5rem;
    padding-left: 1.25rem;
    border-left: 2px solid var(--border);
}

/* --- Categories browse page (OLX-style cards) --- */
.page-content--categories {
    max-width: 76rem;
    background: #f3f5f7;
    border-radius: var(--radius);
    padding: 1.25rem 1rem 1.75rem;
    margin-top: 0.5rem;
}

.categories-page-header {
    margin-bottom: 1.25rem;
}

.categories-page-title {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
}

.categories-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dfe5eb;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(11, 61, 92, 0.04);
}

.categories-search:focus-within {
    border-color: #c5d6e3;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.12);
}

.categories-search-icon {
    flex-shrink: 0;
    color: #8a9aa8;
}

.categories-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    min-width: 0;
}

.categories-search-input::placeholder {
    color: #8a9aa8;
}

.categories-search-meta {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

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

@media (min-width: 720px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-content--categories {
        padding: 1.5rem 1.25rem 2rem;
    }
}

.categories-card {
    background: var(--white);
    border: 1px solid #e8edf1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(11, 61, 92, 0.05);
    overflow: hidden;
}

.categories-card[hidden] {
    display: none !important;
}

.categories-card-head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.9rem 0.85rem 0.65rem;
    border-bottom: 1px solid #eef2f5;
}

.categories-card-toggle,
.categories-card-toggle-spacer,
.cat-branch-toggle,
.cat-branch-toggle-spacer {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
}

.categories-card-toggle,
.cat-branch-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #6b7c8a;
    cursor: pointer;
    border-radius: 6px;
    padding: 0;
}

.categories-card-toggle:hover,
.cat-branch-toggle:hover {
    background: #f0f4f8;
    color: var(--blue-dark);
}

.cat-branch-chevron {
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid currentColor;
    transition: transform 0.15s ease;
}

.categories-card-toggle[aria-expanded="true"] .cat-branch-chevron,
.cat-branch-toggle[aria-expanded="true"] .cat-branch-chevron {
    transform: rotate(90deg);
}

.categories-card-head-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding: 0.15rem 0.35rem;
}

.categories-card-head-link:hover {
    background: #f8fbfd;
}

.categories-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.categories-card-body {
    padding: 0.35rem 0.65rem 0.75rem 0.35rem;
}

.cat-branch-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-branch-item {
    margin: 0;
}

.cat-branch-item[hidden],
.cat-branch-item--filter-hidden {
    display: none !important;
}

.cat-branch-row {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    min-height: 2.15rem;
}

.cat-branch-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    text-decoration: none;
    color: #3d4f5c;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
}

.cat-branch-link:hover {
    background: #f5f8fa;
    color: var(--blue-dark);
}

.cat-branch-link--match {
    background: #fff8ec;
    color: #8a4b00;
    box-shadow: inset 0 0 0 1px #f0d5a8;
}

.cat-branch-label {
    min-width: 0;
}

.cat-branch-icon {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.72;
}

.cat-branch-icon--lg {
    width: 2rem;
    height: 2rem;
    opacity: 1;
}

.cat-branch-icon--default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa8b3;
}

.cat-branch-icon--default svg {
    width: 1.15rem;
    height: 1.15rem;
}

.cat-branch-icon--lg.cat-branch-icon--default svg {
    width: 1.65rem;
    height: 1.65rem;
}

.cat-branch-children {
    padding-left: 1.65rem;
}

.cat-branch-children .cat-branch-link {
    font-size: 0.88rem;
    color: #566674;
}

.categories-no-results {
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 640px) {
    .page-content--categories {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        border-radius: 0;
    }
}

.listings-main {
    padding: 1.5rem;
    min-width: 0;
}
@media (min-width: 640px) {
    .listings-main { padding: 1.5rem 2rem; }
}

.listings-main--browse {
    padding: 0;
    min-width: 0;
}

.listings-scroll-area {
    min-width: 0;
}

.listings-pagination-sticky {
    flex-shrink: 0;
    z-index: 30;
    width: 100%;
    margin: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 8px rgba(11, 61, 92, 0.06);
}
.listings-pagination-sticky:empty {
    display: none;
}

body.filters-offcanvas-open {
    overflow: hidden;
}
body.nav-offcanvas-open {
    overflow: hidden;
}
body.profile-offcanvas-open,
body.share-modal-open {
    overflow: hidden;
}

.site-nav-profile-btn,
.header-profile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--blue-dark);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.site-nav-profile-btn {
    padding: 0.4rem 0.9rem;
}
.header-profile-toggle {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 8px;
}
.site-nav-profile-btn:hover,
.header-profile-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.profile-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
}
.profile-offcanvas:not([hidden]) {
    pointer-events: auto;
}
.profile-offcanvas.is-open {
    pointer-events: auto;
}
.profile-offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 61, 92, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.profile-offcanvas.is-open .profile-offcanvas-backdrop {
    opacity: 1;
}
.profile-offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    max-width: 100%;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(11, 61, 92, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.profile-offcanvas.is-open .profile-offcanvas-panel {
    transform: translateX(0);
}
.profile-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    background: var(--blue-light);
}
.profile-offcanvas-header h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--blue-dark);
}
.profile-offcanvas-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.profile-offcanvas-close:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--blue-dark);
}
.profile-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 1.2rem 1.25rem;
}
.profile-offcanvas-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.profile-offcanvas-quick--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 420px) {
    .profile-offcanvas-quick--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.profile-offcanvas-quick-btn--saves svg {
    color: #e53935;
}
.profile-offcanvas-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 4.25rem;
    padding: 0.5rem 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: var(--blue-dark);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}
.profile-offcanvas-quick-btn-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.profile-offcanvas-quick-btn--messages.has-unread {
    color: #0d8f7f;
    border-color: #9fe3da;
    background: #f0fbf9;
}
.profile-offcanvas-quick-btn--messages.has-unread svg {
    color: #16a394;
}
.profile-offcanvas-quick-btn--messages.is-new-pulse {
    animation: messages-nav-pulse 1.6s ease-in-out 2;
}
.mobile-bottom-nav__item--messages.has-unread {
    color: #16a394;
}
.mobile-bottom-nav__item--messages.has-unread .mobile-bottom-nav__icon-wrap svg {
    color: #16a394;
}
.mobile-bottom-nav__item--messages.is-new-pulse {
    animation: messages-nav-pulse 1.6s ease-in-out 2;
}
.mobile-bottom-nav__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.messages-nav-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.45rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.05rem;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}
.messages-nav-badge--nav {
    top: -0.2rem;
    right: -0.55rem;
}
.messages-toast {
    position: fixed;
    top: calc(4.5rem + env(safe-area-inset-top, 0));
    left: 50%;
    z-index: 140;
    transform: translate(-50%, -12px);
    max-width: min(92vw, 22rem);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #0b3d5c;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 24px rgba(11, 61, 92, 0.28);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.messages-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
@keyframes messages-nav-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(22, 163, 148, 0.15); }
}
.profile-offcanvas-quick-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: var(--blue);
    text-decoration: none;
}
.profile-offcanvas-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f5;
}
.profile-offcanvas-avatar.seller-avatar-frame {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
}
.profile-offcanvas-name {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.profile-offcanvas-location,
.profile-offcanvas-member {
    margin: 0;
    font-size: 0.82rem;
}
.profile-offcanvas-details {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
}
.profile-offcanvas-detail-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem;
    align-items: start;
    font-size: 0.88rem;
}
.profile-offcanvas-detail-label {
    color: var(--text-muted);
    font-weight: 600;
}
.profile-offcanvas-detail-value {
    color: var(--text);
    word-break: break-word;
}
.profile-offcanvas-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.profile-offcanvas-staff {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.15rem;
}
.profile-offcanvas-staff-btn {
    min-height: 4.5rem;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
}
.profile-offcanvas-staff-btn--users.has-pending {
    color: #b45309;
    border-color: #fcd34d;
    background: #fffbeb;
}
.profile-offcanvas-staff-btn--listings.has-pending {
    color: #c2410c;
    border-color: #fdba74;
    background: #fff7ed;
}
.profile-offcanvas-staff-btn.has-pending svg {
    color: inherit;
}
.profile-offcanvas-staff-btn.is-new-pulse {
    animation: messages-nav-pulse 1.6s ease-in-out 2;
}
.staff-nav-badge {
    background: #ea580c;
}
.staff-nav-badge--listings {
    background: #dc2626;
}
.messages-toast--staff {
    top: calc(5.5rem + env(safe-area-inset-top, 0));
    background: #7c2d12;
}
.profile-offcanvas-logout {
    margin-top: 0.35rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}
.profile-offcanvas-logout:hover {
    color: #c0392b;
    text-decoration: underline;
}

.share-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    pointer-events: none;
}
.share-modal:not([hidden]) {
    pointer-events: auto;
}
.share-modal.is-open {
    pointer-events: auto;
}
.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 61, 92, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.share-modal.is-open .share-modal-backdrop {
    opacity: 1;
}
.share-modal-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(420px, calc(100vw - 2rem));
    transform: translate(-50%, -46%);
    opacity: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(11, 61, 92, 0.2);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.share-modal.is-open .share-modal-dialog {
    transform: translate(-50%, -50%);
    opacity: 1;
}
.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
}
.share-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--blue-dark);
}
.share-modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}
.share-modal-body {
    padding: 1rem;
}
.share-modal-body .listing-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.site-nav-post-ad {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #f5a04a 0%, #e8813a 55%, #d96f28 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(232, 129, 58, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.site-nav-post-ad:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232, 129, 58, 0.4);
    color: #fff;
    text-decoration: none;
}
.header-post-ad-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #f5a04a 0%, #e8813a 55%, #d96f28 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(232, 129, 58, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.header-post-ad-toggle:hover {
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(232, 129, 58, 0.4);
}
.nav-offcanvas-body .nav-offcanvas-post-ad {
    margin-top: 0.35rem;
    background: var(--orange);
    color: var(--white);
    text-align: center;
    font-weight: 600;
}
.nav-offcanvas-body .nav-offcanvas-post-ad:hover {
    background: #d5722a;
    color: var(--white);
}

/* --- Site header (mobile hamburger) --- */
.header-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--blue-dark);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.header-menu-toggle:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.nav-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
}
.nav-offcanvas:not([hidden]) {
    display: block;
}
.nav-offcanvas.is-open {
    pointer-events: auto;
}
.nav-offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 61, 92, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.nav-offcanvas.is-open .nav-offcanvas-backdrop {
    opacity: 1;
}
.nav-offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    max-width: 100%;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(11, 61, 92, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.nav-offcanvas.is-open .nav-offcanvas-panel {
    transform: translateX(0);
}
.nav-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    background: var(--blue-light);
}
.nav-offcanvas-header h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--blue-dark);
}
.nav-offcanvas-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.nav-offcanvas-close:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--blue-dark);
}
.nav-offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.2rem 1.5rem;
    overflow-y: auto;
}
.nav-offcanvas-body a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--blue-dark);
    text-decoration: none;
}
.nav-offcanvas-body a:hover {
    background: var(--blue-light);
    color: var(--blue);
    text-decoration: none;
}
.nav-offcanvas-body .nav-offcanvas-primary {
    margin-top: 0.5rem;
    background: var(--orange);
    color: var(--white);
    text-align: center;
}
.nav-offcanvas-body .nav-offcanvas-primary:hover {
    background: #d5722a;
    color: var(--white);
}

/* --- Mobile bottom nav --- */
.mobile-bottom-nav {
    display: none;
}
@media (max-width: 780px) {
    body.has-mobile-bottom-nav {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0));
    }
    .mobile-bottom-nav {
        display: grid;
        align-items: center;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        min-height: 4.25rem;
        padding: 0.35rem 0.75rem calc(0.35rem + env(safe-area-inset-bottom, 0));
        border-top: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -4px 16px rgba(11, 61, 92, 0.08);
        backdrop-filter: blur(8px);
    }
    .mobile-bottom-nav--two {
        grid-template-columns: 1fr 1fr;
    }
    .mobile-bottom-nav--three {
        grid-template-columns: 1fr auto 1fr;
    }
    .mobile-bottom-nav--listing {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .mobile-bottom-nav--listing .mobile-bottom-nav__item span {
        max-width: 5.5rem;
        text-align: center;
        line-height: 1.15;
    }
    .mobile-bottom-nav__item--center-action {
        color: var(--blue-dark);
    }
    .mobile-bottom-nav__item {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        padding: 0.35rem 0.5rem;
        border: none;
        background: transparent;
        color: var(--text-muted);
        font-family: inherit;
        font-size: 0.72rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        justify-self: center;
    }
    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item.is-active {
        color: var(--blue);
        text-decoration: none;
    }
    .mobile-bottom-nav__item.is-active svg {
        color: var(--blue);
    }
    .mobile-bottom-nav__item--primary {
        align-self: center;
        justify-self: center;
        width: 3.35rem;
        height: 3.35rem;
        margin-bottom: 0.35rem;
        border-radius: 999px;
        background: var(--orange);
        color: var(--white);
        box-shadow: 0 4px 14px rgba(232, 129, 58, 0.45);
    }
    .mobile-bottom-nav__item--action {
        color: var(--blue-dark);
    }
    .mobile-bottom-nav__item--message {
        color: var(--teal);
    }
    .mobile-bottom-nav__item--disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }
    .mobile-bottom-nav__item--primary:hover {
        background: #d5722a;
        color: var(--white);
    }
    .mobile-bottom-nav__plus {
        font-size: 2rem;
        line-height: 1;
        font-weight: 700;
        margin-top: -0.1rem;
    }
    .listings-filters-toggle {
        display: none;
    }
    .site-footer {
        margin-bottom: 0.5rem;
    }
    .listings-pagination-sticky {
        position: sticky;
        bottom: 4.25rem;
        z-index: 30;
    }
    .back-to-top {
        bottom: calc(5.25rem + env(safe-area-inset-bottom, 0));
    }
}

@media (display-mode: standalone) {
    .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.98);
    }
}

.listings-search-sticky {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(11, 61, 92, 0.06);
}

.listings-search-form {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.listings-search-field {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    background: var(--white);
    cursor: text;
}

.listings-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3rem;
    color: var(--text-muted);
    pointer-events: none;
}

.listings-search-field input {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.85rem 1rem 0.85rem 0;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    color: var(--text);
}

.listings-search-field input::-webkit-search-cancel-button {
    cursor: pointer;
}

.listings-results-wrap {
    padding: 1.25rem 1.5rem 1.5rem;
}
@media (min-width: 640px) {
    .listings-results-wrap { padding: 1.5rem 2rem 1.75rem; }
}

.listings-search {
    margin-bottom: 1.25rem;
}

#browse-page.is-loading .listings-results-wrap {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s;
}

.listings-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background: transparent;
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 5.5rem;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(11, 61, 92, 0.12);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s, color 0.15s;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    color: var(--blue-dark);
    border-color: #c5d6e3;
}

/* --- Pagination --- */
.pagination-bar {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.pagination-bar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    padding: 0.85rem 1rem;
}

.pagination-nav-row {
    display: contents;
}

.pagination-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pagination-nav-group--start {
    order: 1;
}

.pagination-pages {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 0.25rem;
    order: 2;
}

.pagination-nav-group--end {
    order: 3;
}

@media (max-width: 780px) {
    .pagination-bar-inner {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.65rem 0.75rem;
    }

    .pagination-pages {
        order: 1;
        width: 100%;
        margin: 0;
    }

    .pagination-nav-row {
        display: flex;
        order: 2;
        width: 100%;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .pagination-nav-group--start,
    .pagination-nav-group--end {
        order: unset;
    }

    .pagination-nav {
        padding: 0.35rem 0.55rem;
        font-size: 0.8rem;
    }
}

.pagination-nav,
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pagination-nav:hover,
.pagination-page:hover {
    background: var(--blue-light);
    border-color: #c5d6e3;
    color: var(--blue-dark);
}

.pagination-nav.is-disabled,
.pagination-page.is-disabled {
    opacity: 0.45;
    cursor: default;
    border-color: var(--border);
    background: #f4f7f9;
    color: var(--text-muted);
}

.pagination-page.is-current {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    font-weight: 700;
    min-width: 2.25rem;
}

.pagination-ellipsis {
    padding: 0 0.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    user-select: none;
}

.pagination.hidden { display: none; }

/* legacy */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.pagination a {
    padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; color: var(--text);
}
.pagination a.active { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.pagination a:hover { text-decoration: none; background: var(--blue-light); }

.filters .btn-clear {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
}
.filters .btn-clear:hover { color: var(--blue); }

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.results-header h1 { margin: 0; font-size: 1.4rem; }

/* --- Listing grid / cards --- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}
.listing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.listing-card:hover { box-shadow: 0 4px 16px rgba(11,61,92,0.1); }
.listing-card-img { position: relative; display: block; aspect-ratio: 4/3; background: var(--blue-light); }
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.85rem;
}
.listing-card-body { padding: 0.8rem 0.9rem 1rem; }
.listing-card-body h3 { font-size: 0.98rem; margin: 0 0 0.3rem; color: var(--text); }
.listing-card-price { margin: 0 0 0.3rem; }
.listing-card-price .listing-price-badges { margin: 0; }
.listing-card-meta { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.listing-card-actions { display: flex; gap: 0.8rem; margin-top: 0.5rem; font-size: 0.85rem; }
.listing-card-actions a.danger, .listing-card-actions a:last-child { color: var(--danger); }

.badge {
    position: absolute; top: 0.5rem; left: 0.5rem;
    padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.72rem; font-weight: 700;
    color: var(--white);
}
.badge-new { background: var(--teal); }
.badge-used { background: var(--blue); }
.badge-sold { background: var(--danger); left: auto; right: 0.5rem; }
.badge--inline {
    position: static;
    display: inline-block;
    margin: 0 0.35rem 0.35rem 0;
    vertical-align: middle;
}

.listing-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f4f7f9;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.listing-chip--new {
    background: #e6f7f4;
    border-color: #b8e6de;
    color: #0d7a6e;
}
.listing-chip--used {
    background: #e8f2fa;
    border-color: #c5d6e3;
    color: #0b3d5c;
}
.listing-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

/* --- TinyMCE editor (opis oglasa) --- */
.listing-editor-label { display: block; }
.listing-description-textarea {
    width: 100%;
    min-height: 12rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.65;
    resize: vertical;
}
.listing-form-tabs .tox-tinymce {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: none !important;
}
.listing-form-tabs .tox .tox-toolbar-overlord,
.listing-form-tabs .tox .tox-toolbar__primary {
    background: var(--blue-light) !important;
}
.listing-form-tabs .tox .tox-toolbar,
.listing-form-tabs .tox .tox-toolbar__overflow,
.listing-form-tabs .tox .tox-toolbar__primary {
    border-color: var(--border) !important;
}
.listing-form-tabs .tox .tox-tbtn {
    color: var(--blue-dark) !important;
}
.listing-form-tabs .tox .tox-tbtn:hover,
.listing-form-tabs .tox .tox-tbtn--enabled {
    background: #dceaf4 !important;
    color: var(--blue) !important;
}
.listing-form-tabs .tox .tox-statusbar {
    display: none !important;
}
.listing-form-tabs .tox .tox-edit-area__iframe {
    background: var(--white) !important;
}

/* --- Tom Select (kategorija) --- */
.listing-category-label { display: flex; flex-direction: column; gap: 0.35rem; }
.listing-category-hint {
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--teal);
    line-height: 1.4;
}
.listing-form-tabs .ts-wrapper.listing-category-select {
    width: 100%;
}
.listing-form-tabs .ts-wrapper.listing-category-select .ts-control {
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 400;
    background: var(--white);
    box-shadow: none;
}
.listing-form-tabs .ts-wrapper.listing-category-select.focus .ts-control {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(42, 125, 168, 0.15);
}
.listing-form-tabs .ts-wrapper.listing-category-select .ts-dropdown {
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-top: 0.25rem;
    box-shadow: 0 8px 24px rgba(11, 61, 92, 0.12);
    font-size: 0.92rem;
}
.listing-form-tabs .ts-wrapper.listing-category-select .ts-dropdown .option {
    padding: 0.55rem 0.75rem;
}
.listing-form-tabs .ts-wrapper.listing-category-select .ts-dropdown .option.active {
    background: var(--blue-light);
    color: var(--blue-dark);
}
.listing-form-tabs .ts-wrapper.listing-category-select .ts-dropdown .option:hover,
.listing-form-tabs .ts-wrapper.listing-category-select .ts-dropdown .option.active:hover {
    background: #dceaf4;
}
.listing-form-tabs .category-option {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.listing-form-tabs .category-option-name {
    font-weight: 600;
    color: var(--text);
}
.listing-form-tabs .category-option-path {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.listing-form-tabs .ts-wrapper.listing-category-select .no-results {
    padding: 0.65rem 0.75rem;
    color: var(--text-muted);
}

.ql-font-titillium-web { font-family: 'Titillium Web', sans-serif; }
.ql-font-arial { font-family: Arial, sans-serif; }
.ql-font-georgia { font-family: Georgia, serif; }
.ql-font-verdana { font-family: Verdana, sans-serif; }
.ql-font-times-new-roman { font-family: 'Times New Roman', serif; }

.listing-description .ql-align-center { text-align: center; }
.listing-description .ql-align-right { text-align: right; }
.listing-description .ql-align-justify { text-align: justify; }
.listing-description ul,
.listing-description ol {
    margin: 0 0 0.75rem 1.25rem;
    padding: 0;
}
.listing-description li { margin-bottom: 0.35rem; }

/* --- Forms --- */
.form-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.5rem;
}
@media (min-width: 640px) {
    .form-page { padding: 2rem; }
}
@media (min-width: 1024px) {
    .form-page { padding: 2rem 3rem; }
}
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.form-page h1 { margin-bottom: 0.3rem; }

body.page-auth main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 1rem 2.5rem;
}
body.page-auth .form-page--auth {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
}
body.page-auth .form-page--auth h1 {
    text-align: center;
    font-size: 1.45rem;
}
body.page-auth .form-page-lead,
body.page-auth .form-page-foot {
    text-align: center;
}
body.page-auth .card-form {
    border-radius: var(--radius);
    margin-top: 0.85rem;
}

.card-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.card-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.listing-form-settings label.settings-row-inner,
.listing-form-settings label.settings-editor-label {
    font-weight: 400;
    font-size: inherit;
    color: inherit;
}
.card-form input, .card-form select, .card-form textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 400;
}
.card-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.brand-field-label { margin-top: 0.25rem; }
.brand-field-hint {
    display: block;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--teal);
    margin-top: 0.25rem;
}

.listing-attributes-wrap {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8fbfd;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.listing-attributes-wrap.is-loading { opacity: 0.6; }
.listing-attrs-subtitle {
    font-size: 1rem;
    color: var(--blue-dark);
    margin: 0 0 0.75rem;
}
.listing-attrs-block { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1rem; }
.listing-attrs-optional { margin-bottom: 0; }
.listing-attr-field { display: flex; flex-direction: column; gap: 0.35rem; }
.listing-attr-label { display: inline-flex; align-items: center; gap: 0.45rem; }
.listing-attr-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.listing-attr-label-text { min-width: 0; }
.listing-attr-help { font-size: 0.82rem; font-weight: 400; }
.listing-attr-number-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}
.listing-attr-number-row select { min-width: 5.5rem; }
.listing-attr-check { font-weight: 400; flex-direction: row; align-items: center; gap: 0.4rem; }
.attr-category-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.65rem;
    background: #fff8e6;
    border-radius: 6px;
    border: 1px solid #f0e0b0;
}

.listing-specs {
    margin: 1.25rem 0;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.listing-specs h3 { margin: 0 0 0.75rem; font-size: 1rem; color: var(--blue-dark); }
.listing-specs-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
}
.listing-specs-list dt { font-weight: 600; color: var(--text-muted); margin: 0; }
.listing-specs-list dd { margin: 0; color: var(--text); }

.listing-form-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}
.listing-form-tab {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
}
.listing-form-tab:hover { color: var(--blue-dark); }
.listing-form-tab.is-active {
    color: var(--blue-dark);
    border-bottom-color: var(--teal);
}
.listing-form-tab.has-errors {
    color: var(--danger);
}
.listing-form-tab.has-errors.is-active {
    border-bottom-color: var(--danger);
}
.listing-form-errors ul {
    margin: 0.45rem 0 0;
    padding-left: 1.2rem;
}
.listing-form-errors li { margin-bottom: 0.2rem; }
.field-has-error,
.card-form input.field-has-error,
.card-form select.field-has-error,
.card-form textarea.field-has-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}
.listing-attr-field.field-has-error {
    padding: 0.65rem 0.75rem;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    background: #fff8f8;
}
.listing-form-tabs .ts-wrapper.field-has-error .ts-control {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}
.listing-form-tabs .tox-tinymce.field-has-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}
.settings-row--category.field-has-error .settings-row-inner--tappable,
.settings-row--description.field-has-error .settings-row-inner--tappable {
    box-shadow: inset 0 0 0 2px rgba(214, 69, 69, 0.35);
}
.listing-form-panel-desc {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.listing-form-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.listing-form-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* --- Listing form: iOS / Samsung Settings style (mobile) --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.settings-panel-heading { display: none; }

.settings-section-title {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.settings-section-foot {
    margin: 0.45rem 0 0;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-muted);
}

.settings-group {
    display: flex;
    flex-direction: column;
}

.settings-row {
    display: block;
}

.settings-row-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    font-weight: 400;
}

.settings-label {
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
}

.settings-control-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.settings-chevron {
    flex-shrink: 0;
    color: #c4cad1;
}

.settings-control--text,
.settings-control--select,
.settings-control--textarea {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
}

.settings-control--file {
    font-size: 0.88rem;
    max-width: 100%;
}

.settings-file-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
}

.settings-section.has-errors .settings-group {
    box-shadow: 0 0 0 2px rgba(214, 69, 69, 0.35);
}

.settings-row-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.settings-value {
    font-size: 0.88rem;
    line-height: 1.35;
    color: #0381fe;
    font-weight: 400;
}

.settings-value.is-placeholder {
    color: #8e8e93;
}

.settings-subvalue {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #8e8e93;
}

.settings-row-inner--oneui {
    align-items: center;
}

.settings-row-inner--tappable {
    cursor: pointer;
}

.settings-control--inline {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #3a3a3c;
}

.settings-control--inline::placeholder {
    color: #aeaeb2;
}

.settings-control--inline:focus {
    outline: none;
}

/* Tekstualna polja (naslov, cijenaâ€¦) â€” plavi tekst, bez okvira */
.settings-control--text-input {
    width: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0.1rem 0 0.2rem;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #0381fe;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.settings-control--text-input::placeholder {
    color: #aeaeb2;
}

.settings-control--text-input:focus {
    outline: none;
}

.settings-row--choice .settings-row-inner--tappable {
    width: 100%;
    margin: 0;
    border: none;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

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

/* Samsung slide-in ekran za izbor */
.listing-slide-screen {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: #f2f2f7;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.listing-slide-screen.is-open {
    transform: translateX(0);
}

body.listing-slide-open {
    overflow: hidden;
}

.listing-slide-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 3.25rem;
    padding: 0.5rem 0.85rem 0.35rem;
    background: #f2f2f7;
    border-bottom: 1px solid rgba(60, 60, 67, 0.08);
}

.listing-slide-back {
    appearance: none;
    border: none;
    background: transparent;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1c1c1e;
    cursor: pointer;
    border-radius: 999px;
}

.listing-slide-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1c1c1e;
}

.listing-slide-body {
    flex: 1;
    overflow: auto;
    padding: 0.65rem 0 1.5rem;
}

.listing-slide-body--techniques .listing-technique-slide-lead {
    margin: 0;
    padding: 0 1rem 0.75rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.listing-technique-count {
    margin: 0;
    padding: 0 1rem 0.5rem;
    font-size: 0.85rem;
}

.listing-technique-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.listing-slide-search-wrap {
    padding: 0 1rem 0.65rem;
}

.listing-slide-search {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: #e3e3e8;
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    color: #1c1c1e;
}

.listing-slide-search:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(3, 129, 254, 0.25);
}

.listing-slide-list {
    list-style: none;
    margin: 0 1rem;
    padding: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.listing-slide-item + .listing-slide-item {
    border-top: 1px solid rgba(60, 60, 67, 0.08);
}

.listing-slide-option {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.85rem 0.95rem;
    cursor: pointer;
    font: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.listing-slide-item.is-selected .listing-slide-option {
    background: #eef5ff;
}

.listing-slide-option-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1c1c1e;
}

.listing-slide-option--brand {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.listing-slide-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.listing-slide-brand-logo {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(60, 60, 67, 0.12);
    flex-shrink: 0;
}

.listing-slide-brand-logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    text-align: center;
    color: #8e8e93;
    background: #f2f2f7;
}

.settings-brand-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.settings-brand-display .listing-slide-brand-logo {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 6px;
}

.settings-brand-name {
    color: #0381fe;
    font-size: 0.88rem;
    line-height: 1.35;
}

.listing-slide-option-path {
    font-size: 0.8rem;
    color: #8e8e93;
}

.listing-slide-empty {
    padding: 1rem;
    text-align: center;
    color: #8e8e93;
    font-size: 0.9rem;
}

.listing-slide-manual {
    padding: 0.75rem 1rem 1rem;
}

.listing-slide-hint {
    margin: 0 0 0.65rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #6d6d72;
}

/* Samsung One UI popup izbor (valuta, jedinicaâ€¦) */
.oneui-select-layer {
    position: fixed;
    inset: 0;
    z-index: 110;
    pointer-events: none;
}

.oneui-select-layer.is-open {
    pointer-events: auto;
}

.oneui-select-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.oneui-select-layer.is-open .oneui-select-backdrop {
    opacity: 1;
}

.oneui-select-popup {
    position: fixed;
    z-index: 2;
    margin: 0;
    background: #fff;
    border-radius: 22px;
    box-shadow:
        0 12px 42px rgba(0, 0, 0, 0.14),
        0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 0.45rem 0;
    opacity: 0;
    transform: scale(0.96) translateY(-6px);
    transform-origin: top center;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.oneui-select-layer.is-open .oneui-select-popup {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.oneui-select-popup-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oneui-select-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.72rem 1.15rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.35;
    text-align: left;
    color: #1c1c1e;
    cursor: pointer;
}

.oneui-select-option-btn:active {
    background: rgba(60, 60, 67, 0.06);
}

.oneui-select-option-label {
    flex: 1;
    min-width: 0;
}

.oneui-select-option.is-selected .oneui-select-option-label {
    color: #0381fe;
    font-weight: 500;
}

.oneui-select-option-check {
    flex-shrink: 0;
    color: #0381fe;
}

body.oneui-select-open {
    overflow: hidden;
}

.listing-slide-body--editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.listing-slide-body--editor .listing-plain-textarea {
    flex: 1;
    min-height: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    resize: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.listing-slide-editor-mount {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
}

.settings-field-host--slide {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    clip: auto !important;
    overflow: hidden !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.settings-field-host--slide .listing-description-textarea {
    flex: 1;
    min-height: 12rem;
}

.settings-field-host--slide .tox-tinymce {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    border-radius: 0 !important;
}

.settings-field-host--slide .tox .tox-edit-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.settings-field-host--slide .tox .tox-edit-area__iframe {
    height: 100% !important;
}

.settings-field-host--slide .tox .tox-toolbar-overlord,
.settings-field-host--slide .tox .tox-toolbar__primary {
    background: #f2f2f7 !important;
}

.oneui-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 2.65rem;
    height: 1.55rem;
    cursor: pointer;
}

.oneui-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.oneui-switch-track {
    position: absolute;
    inset: 0;
    background: #e3e3e8;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.oneui-switch-track::after {
    content: '';
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.oneui-switch input:checked + .oneui-switch-track {
    background: #0381fe;
}

.oneui-switch input:checked + .oneui-switch-track::after {
    transform: translateX(1.05rem);
}

.media-field-hint,
.media-current-label {
    display: block;
    font-weight: 400;
    font-size: 0.82rem;
}
.media-current-label {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.media-current-main,
.media-current-gallery {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fbfd;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.media-preview-thumb {
    display: block;
    max-width: 160px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0.35rem 0 0.5rem;
}
.media-gallery-thumbs { margin-top: 0.35rem; }

/* --- Listing form: custom media picker --- */
.listing-media-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.listing-media-main-wrap {
    padding: 0.72rem 1rem 1rem;
}

.listing-media-main-picker {
    position: relative;
    display: block;
    width: 100%;
    max-width: 9.5rem;
    aspect-ratio: 1;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f2f7;
    cursor: pointer;
}

.listing-media-main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-media-main-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem;
    color: #0381fe;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
}

.listing-media-main-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.55rem 0.45rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.listing-media-main-remove {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
}

.listing-media-gallery-hint {
    margin: 0;
    padding: 0 0 0.55rem;
    font-size: 0.78rem;
}

.listing-media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.listing-media-gallery-cell {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f2f7;
}

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

.listing-media-gallery-add {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 2px dashed #c7c7cc;
    background: #f2f2f7;
    cursor: pointer;
    color: #0381fe;
}

.listing-media-gallery-add-icon {
    font-size: 2rem;
    line-height: 1;
    font-weight: 300;
}

.listing-media-gallery-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.45rem;
    height: 1.45rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.listing-media-upload-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    z-index: 2;
}

.listing-media-upload-overlay[hidden] {
    display: none !important;
}

.listing-media-spinner {
    width: 1.65rem;
    height: 1.65rem;
    border: 2px solid rgba(3, 129, 254, 0.18);
    border-top-color: #0381fe;
    border-radius: 50%;
    animation: listing-media-spin 0.75s linear infinite;
}

@keyframes listing-media-spin {
    to { transform: rotate(360deg); }
}

.settings-group--media .settings-row--media-gallery .settings-row-inner--stack {
    padding-bottom: 1rem;
}

.listing-form-flash {
    margin: 0.65rem 1rem 0;
    border-radius: 14px;
}

.listing-actions-section {
    margin-bottom: 1.25rem;
}

.settings-row--action {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.settings-row--action .settings-row-inner {
    width: 100%;
}

.settings-row--action-danger .settings-label {
    color: #d64545;
}

.settings-row--action-danger .settings-value {
    color: #e57373;
}

.listing-action-body {
    padding: 1rem 1.1rem 1.25rem;
}

.listing-action-message {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1c1c1e;
}

.listing-action-form .btn-danger {
    background: #d64545;
    border-color: #d64545;
}

.listing-card--trash {
    opacity: 0.88;
}

.listing-card-img--static {
    display: block;
    pointer-events: none;
}

.btn-link {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    color: var(--blue);
    cursor: pointer;
    text-decoration: underline;
}

.listing-video { margin: 1.25rem 0; }
.listing-video h3 { margin: 0 0 0.75rem; font-size: 1rem; color: var(--blue-dark); }
.listing-video-embed {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}
.listing-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.alert { padding: 0.8rem 1rem; border-radius: 0; margin-bottom: 0; font-size: 0.9rem; width: 100%; }
.alert-error { background: #fdecec; color: var(--danger); border: 1px solid #f5c6c6; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

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

/* --- Listing detail (OLX-style desktop) --- */
body.page-listing-detail {
    background: #f3f5f7;
    --listing-detail-radius: 6px;
}

body.page-listing-detail .listing-detail-panel,
body.page-listing-detail .listing-content-section,
body.page-listing-detail .listing-sidebar-card,
body.page-listing-detail .seller-card--sidebar,
body.page-listing-detail .seller-card,
body.page-listing-detail .listing-share,
body.page-listing-detail .listing-share--sidebar,
body.page-listing-detail .listing-spec-icons,
body.page-listing-detail .listing-specs-table {
    border-radius: var(--listing-detail-radius) !important;
}

.listing-price-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.15rem 0 0.35rem;
}

.listing-price-badges--compact {
    margin: 0 0 0.35rem;
    gap: 0.35rem;
}

.listing-price-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: var(--listing-detail-radius, 6px);
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.listing-price-badge--current,
.listing-price-badge--sale {
    background: #0b3d5c;
    color: #fff;
    font-size: 1.15rem;
}

.listing-price-badge--sale {
    background: #c62828;
}

.listing-price-badge--regular {
    background: #eef2f5;
    color: #8e8e93;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: line-through;
}

.listing-price-badge--negotiable {
    background: #e8f2fa;
    color: #0b3d5c;
    border: 1px solid #c5d6e3;
    font-size: 0.95rem;
}

.listing-price-badges--compact .listing-price-badge {
    padding: 0.22rem 0.55rem;
    font-size: 0.82rem;
}

.listing-price-badges--compact .listing-price-badge--current,
.listing-price-badges--compact .listing-price-badge--sale {
    font-size: 0.88rem;
}

.listing-price-badges--compact .listing-price-badge--regular {
    font-size: 0.78rem;
}

.listing-detail-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.5rem 1rem 2.5rem;
}

@media (min-width: 640px) {
    .listing-detail-page { padding: 0.75rem 1.5rem 3rem; }
}

.listing-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 781px) {
    .listing-detail-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 1.25rem;
    }
}

@media (min-width: 1100px) {
    .listing-detail-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 1.5rem;
    }
}

.listing-detail-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.listing-detail-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--listing-detail-radius);
    overflow: hidden;
}

.listing-detail-top {
    padding: 1.15rem 1.25rem 1rem;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #eef2f5;
}

.listing-detail-status {
    margin-bottom: 0.45rem;
}

.listing-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.listing-detail-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.listing-detail-title-actions {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.listing-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.listing-save-btn:hover {
    color: #e53935;
    border-color: #fecaca;
    background: #fff5f5;
}

.listing-save-btn.is-saved {
    color: #e53935;
    border-color: #fecaca;
    background: #fff5f5;
}

.listing-save-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.listing-save-icon {
    display: block;
}

.listing-save-icon--filled {
    display: none;
}

.listing-save-btn.is-saved .listing-save-icon--outline {
    display: none;
}

.listing-save-btn.is-saved .listing-save-icon--filled {
    display: block;
}

.listing-detail-price-wrap {
    flex-shrink: 0;
    margin: 0;
    text-align: right;
}

.listing-detail-title-row .listing-price-badges {
    justify-content: flex-end;
    margin: 0;
}

@media (max-width: 640px) {
    .listing-detail-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .listing-detail-title-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .listing-detail-price-wrap {
        text-align: left;
    }

    .listing-detail-title-row .listing-price-badges {
        justify-content: flex-start;
    }
}

.listing-detail-price {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.listing-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.45rem;
    margin: 0.55rem 0 0;
    font-size: 0.86rem;
}

.listing-breadcrumb a {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.listing-breadcrumb a:hover {
    color: var(--blue);
}

.listing-breadcrumb-sep {
    color: var(--text-muted);
    font-size: 0.8rem;
    user-select: none;
}

.listing-short-description--lead {
    margin: 0.65rem 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.listing-detail-panel .listing-gallery {
    padding: 0;
}

.listing-detail-panel .gallery-main {
    border: none;
    border-radius: 0;
    aspect-ratio: 16 / 10;
    min-height: 360px;
}

@media (min-width: 781px) {
    .listing-detail-panel .gallery-main {
        min-height: 440px;
    }
}

.listing-detail-panel .gallery-thumbs {
    padding: 0.65rem 1rem 0.85rem;
    margin: 0;
    border-top: 1px solid #eef2f5;
}

@media (min-width: 781px) {
    .listing-detail-panel .gallery-thumbs {
        display: none;
    }
}

.listing-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #eef2f5;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.listing-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.listing-meta-item svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.listing-spec-icons {
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid #eef2f5;
    background: #f3f6f9;
}

.listing-spec-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.listing-spec-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 5.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease;
}

.listing-spec-icon-btn:hover {
    transform: translateY(-2px);
}

.listing-spec-icon-btn:focus-visible {
    outline: 2px solid var(--blue, #1a6b94);
    outline-offset: 3px;
    border-radius: 12px;
}

.listing-spec-icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.75rem;
    height: 4.75rem;
    padding: 0.45rem;
    border: 1px solid #dde5ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 35, 48, 0.06);
}

.listing-spec-icon-img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.listing-spec-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: #eef3f7;
    color: #1a5270;
    font-size: 1.25rem;
    font-weight: 700;
}

.listing-spec-icon-name {
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 520px) {
    .listing-spec-icon-btn { width: 4.75rem; }
    .listing-spec-icon-tile { width: 4.25rem; height: 4.25rem; }
    .listing-spec-icon-img { width: 3rem; height: 3rem; }
}

.listing-specs-full {
    padding: 0.85rem 1.25rem 1.15rem;
    border-top: 1px solid #eef2f5;
}

.listing-specs-full-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.listing-specs-table {
    margin: 0;
    padding: 0;
    border: 1px solid #e8edf2;
    border-radius: var(--listing-detail-radius);
    overflow: hidden;
}

.listing-specs-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-top: 1px solid #eef2f5;
    font-size: 0.88rem;
}

.listing-specs-table-row:first-child {
    border-top: none;
}

.listing-specs-table-row dt {
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

.listing-specs-table-row dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.listing-spec-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #e6f7f4;
    color: #0d7a6e;
    font-weight: 800;
    font-size: 0.82rem;
}

.listing-spec-table-lines {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    font-weight: 500;
}

.listing-spec-table-lines li + li {
    margin-top: 0.25rem;
}

.listing-spec-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-weight: 500;
}

.listing-spec-matrix th,
.listing-spec-matrix td {
    padding: 0.35rem 0.5rem;
    border: 1px solid #e8edf2;
    text-align: left;
}

.listing-spec-matrix th {
    background: #f6f9fb;
    color: var(--text-muted);
    font-weight: 600;
}

.listing-spec-matrix-unit {
    font-weight: 400;
    font-size: 0.78rem;
}

.listing-specs-table-row--matrix {
    grid-template-columns: 1fr;
}

.listing-specs-table-row--matrix dt {
    margin-bottom: 0.25rem;
}

.listing-specs-table-row--matrix dd {
    text-align: left;
}

@media (min-width: 781px) {
    .listing-specs-table-row--matrix {
        grid-column: 1 / -1;
    }
}

@media (min-width: 781px) {
    .listing-specs-table {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-specs-table-row {
        border-top: 1px solid #eef2f5;
        border-right: 1px solid #eef2f5;
    }

    .listing-specs-table-row:nth-child(-n+2) {
        border-top: none;
    }

    .listing-specs-table-row:nth-child(2n) {
        border-right: none;
    }
}

/* --- Listing spec icon modal --- */
body.listing-spec-open { overflow: hidden; }

.listing-spec-modal {
    position: fixed;
    inset: 0;
    z-index: 1240;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.listing-spec-modal[hidden] { display: none !important; }

.listing-spec-modal.is-open { opacity: 1; }

.listing-spec-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 48, 0.45);
}

.listing-spec-modal-panel {
    position: relative;
    width: min(100%, 24rem);
    max-height: 90vh;
    overflow: auto;
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 35, 48, 0.22);
    transform: translateY(8px);
    transition: transform 0.2s ease;
}

.listing-spec-modal.is-open .listing-spec-modal-panel {
    transform: translateY(0);
}

.listing-spec-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.listing-spec-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark, #13465f);
}

.listing-spec-modal-close {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #eef5fa;
    color: #234;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.listing-spec-modal-close:hover { background: #d4e7f3; }

.listing-spec-modal-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.listing-spec-modal-icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    padding: 0.55rem;
    border: 1px solid #dde5ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 35, 48, 0.08);
}

.listing-spec-modal-icon {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
}

.listing-spec-modal-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: #eef3f7;
    color: #1a5270;
    font-size: 1.5rem;
    font-weight: 700;
}

.listing-spec-modal-value {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
    text-align: center;
}

.listing-spec-modal-body {
    text-align: center;
}

.listing-spec-modal-table {
    text-align: left;
    overflow-x: auto;
}

.listing-spec-check--modal {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.15rem;
}

@media (max-width: 480px) {
    .listing-spec-modal {
        align-items: flex-end;
        padding: 0;
    }

    .listing-spec-modal-panel {
        width: 100%;
        max-height: 92vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

.listing-detail-sidebar-col {
    align-self: stretch;
    min-width: 0;
}

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

@media (min-width: 781px) {
    .listing-detail-sidebar.is-fixed {
        z-index: 25;
    }
}

.listing-sidebar-card,
.seller-card--sidebar,
.listing-share--sidebar,
.listing-content-section {
    border-radius: var(--listing-detail-radius);
}

body.page-listing-detail .listing-share {
    border-radius: var(--listing-detail-radius) !important;
}

.listing-sidebar-card-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.listing-sidebar-card,
.seller-card--sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1rem 1.05rem;
}

.listing-sidebar-card .listing-detail-meta {
    margin: 0;
}

.listing-detail-meta-row {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.65rem;
    padding: 0.45rem 0;
    border-top: 1px solid #eef2f5;
    font-size: 0.88rem;
}

.listing-detail-meta-row:first-child {
    border-top: none;
    padding-top: 0;
}

.listing-detail-meta-row dt {
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

.listing-detail-meta-row dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.listing-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.listing-content-section {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.1rem 1.2rem;
}

.listing-content-section-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.seller-card-heading {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.seller-card-profile {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.seller-avatar-frame,
.profile-avatar.seller-avatar-frame {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: var(--listing-detail-radius, 6px);
    overflow: hidden;
    border: 1px solid #d5dee8;
    background: #b8c9d9;
}

.profile-avatar.seller-avatar-frame {
    width: 96px;
    height: 96px;
}

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

.seller-avatar-placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding-bottom: 0.35rem;
    box-sizing: border-box;
}

.seller-avatar-placeholder--male,
.seller-avatar-placeholder--female,
.seller-avatar-placeholder--neutral {
    background: linear-gradient(180deg, #c5d4e3 0%, #b0c4d8 100%);
    color: #fff;
}

.seller-avatar-silhouette {
    display: block;
    width: 78%;
    height: auto;
    fill: currentColor;
}

.seller-card-meta {
    flex: 1 1 0;
    min-width: 0;
    padding-top: 0.1rem;
}

.seller-card-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    overflow-wrap: break-word;
}

.seller-card-location {
    margin: 0.25rem 0 0;
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.seller-card-contacts {
    margin-top: 0.95rem;
    padding-top: 0.9rem;
    border-top: 1px solid #eef2f5;
}

.seller-card-note {
    margin: 0;
    font-size: 0.9rem;
}

.seller-contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.65rem;
}

.seller-contact-row:last-child {
    margin-bottom: 0;
}

.seller-contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.seller-contact-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--blue-dark);
    text-decoration: none;
    word-break: break-word;
}

.seller-contact-value:hover {
    color: var(--blue);
    text-decoration: underline;
}

.seller-contact-messengers,
.user-profile-messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.seller-contact-messenger-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
}

.seller-contact-messenger-btn--whatsapp:hover {
    border-color: #25d366;
    color: #128c7e;
}

.seller-contact-messenger-btn--viber:hover {
    border-color: #7360f2;
    color: #7360f2;
}

.user-profile-messengers {
    margin-bottom: 0.65rem;
}

.seller-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.seller-contact {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
}

.seller-contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Legacy wrapper — keep for any old refs */
.listing-detail {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.gallery-stage {
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.15s, box-shadow 0.15s;
}

.gallery-nav:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.gallery-nav:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.gallery-nav--prev { left: 0.85rem; }
.gallery-nav--next { right: 0.85rem; }

.gallery-main {
    aspect-ratio: 4/3;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    width: 100%;
}

@media (min-width: 781px) {
    .gallery-main {
        min-height: 0;
    }
}

.gallery-main--zoomable {
    width: 100%;
    cursor: zoom-in;
    border: 1px solid var(--border);
    background: #f8fafb;
}

.gallery-main--zoomable:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.gallery-main--zoomable .gallery-carousel-viewport {
    cursor: grab;
}

.gallery-main--zoomable .gallery-carousel-viewport:active {
    cursor: grabbing;
}

.gallery-main-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: pan-y;
}

.gallery-carousel-viewport {
    overflow: hidden;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-carousel-viewport:active {
    cursor: grabbing;
}

.gallery-carousel-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.gallery-carousel-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafb;
}

.gallery-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transform-origin: center center;
    -webkit-user-drag: none;
    user-select: none;
}

.gallery-carousel-loader {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(23, 116, 179, 0.15);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: gallery-carousel-spin 0.75s linear infinite;
    pointer-events: none;
}

.gallery-carousel-slide.is-loading .gallery-carousel-img {
    opacity: 0;
}

.gallery-carousel-slide:not(.is-loading) .gallery-carousel-loader {
    display: none;
}

@keyframes gallery-carousel-spin {
    to { transform: rotate(360deg); }
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    background: #f8fafb;
}

.gallery-image-counter {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.gallery-zoom-hint {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

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

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.15rem;
}

.thumb-btn {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    line-height: 0;
    flex: 0 0 auto;
}

.thumb-btn.is-active { border-color: var(--blue); }
.thumb-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: block;
}

@media (min-width: 781px) {
    .thumb { width: 84px; height: 84px; }
}

.listing-info h1 { margin: 0 0 0.3rem; font-size: 1.6rem; }
.listing-price { font-size: 1.6rem; font-weight: 800; color: var(--blue-dark); margin: 0 0 0.25rem; }
.listing-stock { font-size: 0.92rem; font-weight: 600; color: var(--teal); margin: 0 0 0.5rem; }
.listing-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.listing-description { margin-bottom: 1.5rem; line-height: 1.65; word-wrap: break-word; }
.listing-description p { margin: 0 0 0.75rem; }
.listing-description p:last-child { margin-bottom: 0; }

.listing-short-description {
    margin: 0.35rem 0 0.75rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
}

.listing-extra-content {
    margin: 0;
}

.listing-extra-content.listing-content-section {
    padding-top: 1rem;
}

.listing-extra-content--detail.listing-content-section {
    padding: 0;
    overflow: hidden;
}

.listing-extra-content--detail .listing-extra-tabs {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0 0.65rem;
    border-bottom: 1px solid var(--border);
    background: #f3f6f9;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.listing-extra-content--detail .listing-extra-tab {
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: var(--listing-detail-radius, 6px) var(--listing-detail-radius, 6px) 0 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.72rem 1.1rem;
    margin-bottom: -1px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.listing-extra-content--detail .listing-extra-tab:hover {
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.7);
}

.listing-extra-content--detail .listing-extra-tab.is-active {
    background: var(--white);
    color: var(--blue-dark);
    border-color: var(--border);
    border-bottom-color: var(--white);
}

.listing-extra-content--detail .listing-extra-panels {
    padding: 1.15rem 1.25rem 1.3rem;
    background: var(--white);
    min-height: 5rem;
}

.listing-extra-content .listing-extra-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
}

.listing-extra-content:not(.listing-extra-content--detail) .listing-extra-tabs::-webkit-scrollbar {
    display: none;
}

.listing-extra-content:not(.listing-extra-content--detail) .listing-extra-tab {
    flex: 0 0 auto;
    border: 1px solid rgba(11, 61, 92, 0.15);
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.listing-extra-content:not(.listing-extra-content--detail) .listing-extra-tab.is-active {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
}

.listing-extra-content .listing-plain-content {
    line-height: 1.65;
    color: var(--text);
    word-wrap: break-word;
}

.listing-extra-content .listing-extra-panel--detail .listing-description {
    margin-bottom: 0;
}

.seller-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
}
.seller-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.seller-card .btn { margin-top: 0.5rem; margin-right: 0.5rem; }

body.page-listing-detail .seller-card,
body.page-listing-detail .seller-card--sidebar,
body.page-listing-detail .listing-share,
body.page-listing-detail .listing-share--sidebar,
body.page-listing-detail .listing-sidebar-card,
body.page-listing-detail .listing-content-section,
body.page-listing-detail .listing-video-embed {
    border-radius: var(--listing-detail-radius, 6px);
}

/* --- Listing share --- */
.listing-share {
    margin-bottom: 0;
    padding: 0.85rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.listing-share--sidebar {
    background: var(--white);
    border-color: var(--border);
}
.listing-share-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}
.listing-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.listing-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.listing-share-btn:hover { border-color: var(--blue); color: var(--blue-dark); }
.listing-share-btn.is-copied {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.listing-share-btn--whatsapp:hover { background: #e8f8ef; border-color: #25d366; color: #128c7e; }
.listing-share-btn--viber:hover { background: #f3ebff; border-color: #7360f2; color: #7360f2; }
.listing-share-btn--facebook:hover { background: #e8f0fe; border-color: #1877f2; color: #1877f2; }
.listing-share-btn--copy:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue-dark); }

.listing-share-stats {
    margin-top: 0;
}

.listing-share-stats-section-title {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
}

/* --- Listing lightbox --- */
body.listing-lightbox-open { overflow: hidden; }
.listing-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.listing-lightbox[hidden] { display: none !important; }
.listing-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}
.listing-lightbox-chrome {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: center;
}
.listing-lightbox-top {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #fff;
}
.listing-lightbox-counter {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}
.listing-lightbox-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.listing-lightbox-tool {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.listing-lightbox-tool:hover { background: rgba(255, 255, 255, 0.22); }
.listing-lightbox-close { font-size: 1rem; }
.listing-lightbox-nav {
    align-self: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 0.35rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.listing-lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.listing-lightbox-nav[hidden] { display: none; }
.listing-lightbox-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}
.listing-lightbox-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.listing-lightbox-viewport .gallery-carousel-slide {
    background: transparent;
}

.listing-lightbox-viewport .gallery-carousel-img {
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

.listing-lightbox-stage.is-dragging { cursor: grabbing; }
@media (max-width: 780px) {
    .listing-share--sidebar .listing-share-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-nav {
        width: 2.35rem;
        height: 2.35rem;
    }

    .gallery-nav--prev { left: 0.5rem; }
    .gallery-nav--next { right: 0.5rem; }
}

@media (max-width: 640px) {
    .listing-lightbox-nav { width: 2.25rem; height: 2.25rem; margin: 0 0.15rem; }
    .listing-share-btn span { display: none; }
    .listing-share-btn { padding: 0.55rem; border-radius: 999px; justify-content: center; }
}

/* --- Listing share sheet (mobilni footer) --- */
body.listing-share-sheet-open { overflow: hidden; }
.listing-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.listing-share-sheet[hidden] { display: none !important; }
.listing-share-sheet.is-open {
    opacity: 1;
    visibility: visible;
}
.listing-share-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 50, 0.45);
}
.listing-share-sheet-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    margin: 0 auto;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0));
    background: var(--white);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(11, 61, 92, 0.14);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.listing-share-sheet.is-open .listing-share-sheet-panel {
    transform: translateY(0);
}
.listing-share-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.listing-share-sheet-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.listing-share-sheet-close {
    appearance: none;
    border: none;
    background: transparent;
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}
.listing-share-sheet-lead {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
}
.listing-share-sheet .listing-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.listing-share-sheet .listing-share-btn span {
    display: inline;
}

/* --- Listing message modal --- */
body.listing-message-open { overflow: hidden; }
.listing-message-modal {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.listing-message-modal[hidden] { display: none !important; }
.listing-message-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.listing-message-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 50, 0.55);
}
.listing-message-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(11, 61, 92, 0.18);
    padding: 1.25rem 1.25rem 1.35rem;
    transform: translateY(12px);
    transition: transform 0.2s ease;
}
.listing-message-modal.is-open .listing-message-modal-panel {
    transform: translateY(0);
}
.listing-message-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.listing-message-modal-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--text);
}
.listing-message-modal-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.listing-message-modal-close:hover { background: #d4e7f3; }
.listing-message-modal-lead {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
}
.listing-message-modal-listing {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
}
.listing-message-modal-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.listing-message-modal-form textarea {
    width: 100%;
    min-height: 6.5rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}
.listing-message-modal-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 116, 179, 0.12);
}
.listing-message-modal-error {
    margin: 0.65rem 0 0;
    color: var(--danger);
    font-size: 0.9rem;
}
.listing-message-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}
@media (max-width: 480px) {
    .listing-message-modal {
        align-items: flex-end;
        padding: 0;
    }
    .listing-message-modal-panel {
        width: 100%;
        max-height: 92vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .listing-message-modal-actions {
        flex-direction: column-reverse;
    }
    .listing-message-modal-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Staff moderation toolbar (listing detail) --- */
.listing-staff-toolbar {
    border: 1px solid #c5dce9;
    background: linear-gradient(180deg, #f4fbff 0%, #eef6fb 100%);
}
.listing-staff-toolbar-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.listing-staff-toolbar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #1a6b94;
    color: #fff;
}
.listing-staff-toolbar-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #13465f;
}
.listing-staff-toolbar-lead {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
}
.listing-staff-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
.listing-staff-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 4.25rem;
    padding: 0.55rem 0.4rem;
    border: 1px solid #b8d4e6;
    border-radius: 10px;
    background: #fff;
    color: #1e4a63;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.listing-staff-btn:hover {
    background: #f8fcff;
    border-color: #7eb6d4;
    transform: translateY(-1px);
}
.listing-staff-btn span {
    display: block;
}
.listing-staff-btn--edit:hover { color: #0f6b8f; }
.listing-staff-btn--hold:hover { color: #9a6700; border-color: #e3c76a; background: #fffdf5; }
.listing-staff-btn--approve:hover { color: #1f7a43; border-color: #8fd4a8; background: #f4fff8; }
.listing-staff-btn--reject:hover,
.listing-staff-btn--delete:hover { color: #b42318; border-color: #f1b4ae; background: #fff8f7; }

.listing-staff-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.listing-staff-modal[hidden] { display: none !important; }
.listing-staff-modal.is-open { opacity: 1; }
.listing-staff-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 48, 0.45);
}
.listing-staff-modal-panel {
    position: relative;
    width: min(100%, 28rem);
    max-height: 90vh;
    overflow: auto;
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 35, 48, 0.22);
    transform: translateY(8px);
    transition: transform 0.2s ease;
}
.listing-staff-modal.is-open .listing-staff-modal-panel { transform: translateY(0); }
.listing-staff-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.listing-staff-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}
.listing-staff-modal-close {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #eef5fa;
    color: #234;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.listing-staff-modal-close:hover { background: #d4e7f3; }
.listing-staff-modal-lead {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
}
.listing-staff-modal-listing {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: #f3f8fb;
    font-size: 0.92rem;
}
.listing-staff-modal-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.listing-staff-modal-form textarea {
    width: 100%;
    min-height: 6.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    resize: vertical;
}
.listing-staff-modal-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 107, 148, 0.15);
}
.listing-staff-modal-error {
    margin: 0.55rem 0 0;
    color: #b42318;
    font-size: 0.85rem;
}
.listing-staff-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 1rem;
}
body.listing-staff-open { overflow: hidden; }
@media (max-width: 480px) {
    .listing-staff-toolbar-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .listing-staff-modal {
        align-items: flex-end;
        padding: 0;
    }
    .listing-staff-modal-panel {
        width: 100%;
        max-height: 92vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .listing-staff-modal-actions {
        flex-direction: column-reverse;
    }
    .listing-staff-modal-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: 0;
}
.empty-state p { color: var(--text-muted); margin-bottom: 1rem; }

/* --- Pitanja na oglasu --- */
.listing-questions-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.listing-question-item {
    padding: 0.85rem 0.95rem;
    border: 1px solid #e8edf2;
    border-radius: var(--listing-detail-radius, 6px);
    background: #fafbfc;
}
.listing-question-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.75rem;
    margin-bottom: 0.35rem;
}
.listing-question-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.listing-question-text {
    margin: 0;
    line-height: 1.55;
}
.listing-question-answer {
    margin-top: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-left: 3px solid var(--teal);
    background: #fff;
    border-radius: 0 var(--listing-detail-radius, 6px) var(--listing-detail-radius, 6px) 0;
}
.listing-question-answer-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--teal);
    margin-bottom: 0.25rem;
}
.listing-question-answer p {
    margin: 0;
    line-height: 1.5;
}
.listing-question-form,
.listing-question-answer-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.85rem;
}
.listing-question-form label {
    font-weight: 600;
    font-size: 0.9rem;
}
.listing-question-form textarea,
.listing-question-answer-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

/* --- Poruke (WhatsApp stil) --- */
html:has(body.page-messages) {
    height: 100%;
    overflow: hidden;
}

body.page-messages {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.page-messages .site-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 200;
}

body.page-messages main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

body.page-messages .alert {
    margin: 0;
    border-radius: 0;
    flex-shrink: 0;
}

body.page-messages .mobile-bottom-nav {
    z-index: 210;
}

@media (max-width: 780px) {
    body.page-messages.has-mobile-bottom-nav .messages-app {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0));
    }
}

.messages-app {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    overflow: hidden;
}

.messages-app__sidebar {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border-right: 1px solid #e9edef;
    overflow-x: hidden;
    overflow-y: auto;
}

.messages-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: #f0f2f5;
    min-height: 60px;
    flex-shrink: 0;
}

.messages-sidebar-head-text {
    min-width: 0;
}

.messages-sidebar-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.76rem;
    color: #667781;
}

.messages-sidebar-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111b21;
}

.messages-sidebar-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.messages-sidebar-section {
    border-bottom: 1px solid #e9edef;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.messages-sidebar-section .messages-chat-list,
.messages-sidebar-section .messages-sidebar-empty {
    flex: 1;
    min-height: 0;
}

.messages-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0.5rem 0.65rem 0;
    background: #f0f2f5;
    border-bottom: 1px solid #e9edef;
    flex-shrink: 0;
}

.messages-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.5rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #667781;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.messages-tab:hover {
    color: #111b21;
    text-decoration: none;
}

.messages-tab.is-active {
    color: #0b3d5c;
    border-bottom-color: #e8813a;
    background: rgba(255, 255, 255, 0.55);
}

.messages-tab-badge {
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.15rem;
    text-align: center;
}

.messages-tab.has-unread:not(.is-active) {
    color: #111b21;
}

.messages-sidebar-section-title {
    margin: 0;
    padding: 0.75rem 1rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #667781;
}

.messages-sidebar-section-empty {
    margin: 0;
    padding: 0.35rem 1rem 0.85rem;
    font-size: 0.88rem;
}

.messages-contact-thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: #e8f2fa;
    color: #0b3d5c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.messages-chat-head-meta--contact {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.messages-contact-body {
    background: #f0f2f5;
}

.messages-contact-card {
    max-width: 42rem;
    margin: 1rem auto;
    background: #fff;
    border: 1px solid #e9edef;
    border-radius: 14px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 1px 4px rgba(11, 61, 92, 0.05);
}

.messages-contact-card__head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    color: #111b21;
}

.messages-contact-card__head time {
    font-size: 0.82rem;
    color: #667781;
}

.messages-contact-meta {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
    padding: 0.85rem 0;
    border-top: 1px solid #eef3f7;
    border-bottom: 1px solid #eef3f7;
}

.messages-contact-meta div {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem;
    align-items: start;
}

.messages-contact-meta dt {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #667781;
}

.messages-contact-meta dd {
    margin: 0;
    font-size: 0.92rem;
    color: #111b21;
    word-break: break-word;
}

.messages-contact-meta a {
    color: #1774b3;
    text-decoration: none;
    font-weight: 600;
}

.messages-contact-message h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #111b21;
}

.messages-contact-message-body {
    line-height: 1.6;
    color: #111b21;
    white-space: pre-wrap;
}

.messages-contact-actions {
    margin-top: 1rem;
}

.messages-chat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.messages-chat-list__item {
    border-bottom: 1px solid #f0f2f5;
}

.messages-chat-list__link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.messages-chat-list__link:hover {
    background: #f5f6f6;
    text-decoration: none;
}

.messages-chat-list__item.is-active .messages-chat-list__link {
    background: #f0f2f5;
}

.messages-chat-list__item.is-unread .messages-chat-list__name {
    font-weight: 700;
}

.messages-listing-thumb {
    width: 49px;
    height: 49px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #dfe5e7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.messages-listing-thumb--empty {
    color: #8696a0;
}

.messages-chat-list__party {
    font-size: 0.76rem;
    color: #8696a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-avatar.seller-avatar-frame {
    width: 49px;
    height: 49px;
    flex-shrink: 0;
}

.messages-avatar--head.seller-avatar-frame {
    width: 40px;
    height: 40px;
}

.messages-chat-list__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.messages-chat-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.messages-chat-list__name {
    font-size: 1rem;
    font-weight: 500;
    color: #111b21;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-chat-list__time {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #667781;
}

.messages-chat-list__preview {
    flex: 1;
    min-width: 0;
    font-size: 0.86rem;
    color: #667781;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-chat-list__preview-muted {
    font-style: italic;
}

.messages-chat-list__unread {
    flex-shrink: 0;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.messages-chat-list__listing {
    display: none;
}

.messages-sidebar-empty,
.messages-panel-empty,
.messages-chat-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem;
    color: #667781;
}

.messages-sidebar-empty {
    flex: 1;
}

.messages-app__panel {
    display: none;
    flex: 1;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    background: #efeae2;
    overflow: hidden;
}

.messages-app--chat-open .messages-app__sidebar {
    display: none;
}

.messages-app--chat-open .messages-app__panel {
    display: flex;
}

.messages-chat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.messages-chat-head {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.55rem 0.85rem;
    background: #f0f2f5;
    border-bottom: 1px solid #e9edef;
    min-height: 60px;
    flex-shrink: 0;
}

.messages-chat-back {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #54656f;
    text-decoration: none;
    border-radius: 999px;
    flex-shrink: 0;
}

.messages-chat-back:hover {
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.messages-chat-head-listing-link {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.messages-chat-head-listing-link:hover {
    text-decoration: none;
}

.messages-chat-head-listing-link .messages-listing-thumb {
    width: 40px;
    height: 40px;
}

.messages-chat-head-party {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.78rem;
    color: #667781;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: calc(40px + 0.65rem);
}

.messages-chat-head-party:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.messages-chat-head-price {
    display: block;
    margin-top: 0.1rem;
}

.messages-chat-head-price .listing-price-badges {
    gap: 0.25rem;
}

.messages-chat-head-price .listing-price-badge {
    font-size: 0.72rem;
    padding: 0.08rem 0.35rem;
}

.messages-topic-card {
    margin-bottom: 0.85rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
    overflow: hidden;
}

.messages-topic-card__main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    text-decoration: none;
    color: inherit;
}

.messages-topic-card__main:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.messages-topic-card__main .messages-listing-thumb {
    width: 56px;
    height: 56px;
}

.messages-topic-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.messages-topic-card__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #25d366;
}

.messages-topic-card__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #111b21;
    line-height: 1.3;
}

.messages-topic-card__price .listing-price-badge {
    font-size: 0.75rem;
}

.messages-topic-card__party {
    display: block;
    padding: 0.45rem 0.85rem 0.6rem;
    border-top: 1px solid #f0f2f5;
    font-size: 0.78rem;
    color: #667781;
    text-decoration: none;
}

.messages-topic-card__party:hover {
    background: #fafafa;
    color: var(--blue-dark);
}

.messages-topic-card__party--static {
    display: block;
    padding: 0.45rem 0.85rem 0.6rem;
    border-top: 1px solid #f0f2f5;
    font-size: 0.78rem;
    color: #667781;
}

.messages-topic-card__arrow {
    color: #8696a0;
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.messages-bubble-sender {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #25d366;
    margin-bottom: 0.15rem;
}

.messages-chat-head-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.messages-chat-head-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111b21;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-chat-head-listing {
    font-size: 0.78rem;
    color: #667781;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-chat-head-listing:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.messages-chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 4%;
    background-color: #efeae2;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d9d0c3' fill-opacity='0.35' fill-rule='evenodd'%3E%3Cpath d='M10 10h4v4h-4zM30 50h4v4h-4zM50 20h4v4h-4zM70 60h4v4h-4z'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.messages-bubble-wrap {
    display: flex;
    margin-bottom: 0.35rem;
}

.messages-bubble-wrap--mine {
    justify-content: flex-end;
}

.messages-bubble-wrap--theirs {
    justify-content: flex-start;
}

@keyframes messages-bubble-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.messages-bubble-wrap.is-new {
    animation: messages-bubble-in 0.22s ease-out;
}

.messages-bubble {
    max-width: min(85%, 520px);
    padding: 0.4rem 0.55rem 0.3rem 0.65rem;
    border-radius: 8px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    position: relative;
}

.messages-bubble-wrap--mine .messages-bubble {
    background: #d9fdd3;
    border-top-right-radius: 0;
}

.messages-bubble-wrap--theirs .messages-bubble {
    background: #fff;
    border-top-left-radius: 0;
}

.messages-bubble-text {
    margin: 0 0 0.15rem;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #111b21;
    word-break: break-word;
}

.messages-bubble-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    float: right;
    margin-left: 0.75rem;
    margin-top: -0.1rem;
    position: relative;
    top: 0.25rem;
}

.messages-bubble-meta time {
    font-size: 0.68rem;
    color: #667781;
    line-height: 1;
}

.messages-bubble-status {
    color: #8696a0;
    display: inline-flex;
    line-height: 0;
}

.messages-bubble-status.is-read {
    color: #53bdeb;
}

.messages-chat-compose {
    padding: 0.45rem 0.65rem 0.55rem;
    background: #f0f2f5;
    flex-shrink: 0;
}

.messages-compose-form {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
}

.messages-compose-field {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    border: 1px solid #fff;
}

.messages-compose-field textarea {
    width: 100%;
    border: 0;
    outline: none;
    resize: none;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.35;
    max-height: 120px;
    background: transparent;
    padding: 0;
    margin: 0;
}

.messages-compose-send {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.messages-compose-send:hover {
    background: #20bd5a;
}

.messages-panel-empty {
    flex: 1;
    background: #f8f9fa;
    border-left: 1px solid #e9edef;
}

.messages-panel-empty-inner {
    max-width: 420px;
}

.messages-panel-empty-inner svg {
    color: #cfd8dc;
    margin-bottom: 1rem;
}

.messages-panel-empty-inner h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 300;
    color: #41525d;
}

.messages-panel-empty-inner p {
    margin: 0;
    color: #667781;
    line-height: 1.5;
}

@media (max-width: 780px) {
    .messages-app {
        flex: 1;
        min-height: 0;
    }

    .messages-app__sidebar {
        flex: 1;
        min-height: 0;
    }

    .messages-app--chat-open .messages-app__panel {
        display: flex;
        flex: 1;
        min-height: 0;
    }

    .messages-chat-head {
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .messages-sidebar-head {
        position: sticky;
        top: 0;
        z-index: 10;
    }
}

@media (min-width: 781px) {
    .messages-app {
        height: calc(100dvh - 73px);
        border-top: 0;
    }

    .messages-app__sidebar {
        width: 38%;
        max-width: 420px;
        flex-shrink: 0;
    }

    .messages-app__panel {
        display: flex;
    }

    .messages-app--chat-open .messages-app__sidebar {
        display: flex;
    }

    .messages-chat-back {
        display: none;
    }

    .messages-chat-head {
        grid-template-columns: 1fr auto;
    }

    .messages-chat-head-listing-link {
        grid-column: 1;
        grid-row: 1;
    }

    .messages-chat-head-party {
        grid-column: 2;
        grid-row: 1;
        padding-left: 0;
        align-self: center;
        max-width: 42%;
    }
}

@media (min-width: 1100px) {
    .messages-app__sidebar {
        width: 32%;
        max-width: 460px;
    }
}

/* --- Profil korisnika / prodavca --- */
body.page-user-profile {
    --listing-detail-radius: 6px;
}

.user-profile-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.75rem 1rem 2.5rem;
}

@media (min-width: 640px) {
    .user-profile-page { padding: 1rem 1.5rem 3rem; }
}

.user-profile-flash {
    margin-bottom: 0.85rem;
}

.user-profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 781px) {
    .user-profile-layout {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1100px) {
    .user-profile-layout {
        grid-template-columns: 340px minmax(0, 1fr);
        gap: 1.5rem;
    }
}

.user-profile-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 781px) {
    .user-profile-sidebar {
        position: sticky;
        top: 1rem;
        align-self: start;
    }
}

.user-profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--listing-detail-radius, 6px);
    padding: 1.1rem 1.15rem 1.15rem;
}

.user-profile-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.user-profile-avatar.seller-avatar-frame {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.user-profile-card-meta {
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
}

.user-profile-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    word-break: break-word;
}

.user-profile-location {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.user-profile-member {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.user-profile-badge {
    margin: 0 0 0.75rem;
}

.user-profile-details {
    padding: 0.85rem 0;
    border-top: 1px solid #eef2f5;
    border-bottom: 1px solid #eef2f5;
    margin-bottom: 0.85rem;
}

.user-profile-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    margin-bottom: 0.6rem;
}

.user-profile-detail-row:last-child {
    margin-bottom: 0;
}

.user-profile-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.user-profile-detail-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.user-profile-detail-link {
    color: var(--blue-dark);
    text-decoration: none;
}

.user-profile-detail-link:hover {
    color: var(--blue);
    text-decoration: underline;
}

.user-profile-login-hint {
    margin: 0;
    font-size: 0.9rem;
}

.user-profile-edit {
    margin: 0 0 0.85rem;
    padding: 0.85rem 0 0;
    border: none;
    border-radius: 0;
    border-top: 1px solid #eef2f5;
    background: transparent;
    gap: 0.75rem;
}

.user-profile-edit-link {
    margin-top: 0.85rem;
}

.user-profile-icon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eef2f5;
}

.user-profile-icon-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 4.5rem;
    padding: 0.55rem 0.45rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--blue-dark);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.user-profile-icon-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: var(--blue);
    text-decoration: none;
}

.user-profile-icon-btn--admin {
    color: var(--teal);
}

.user-profile-icon-btn-label {
    max-width: 100%;
    text-align: center;
}

.user-profile-logout-wrap {
    margin: 0.85rem 0 0;
    text-align: center;
}

.user-profile-logout-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.user-profile-logout-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

.edit-profile-shell {
    max-width: 560px;
    margin: 0 auto;
}

.edit-profile-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-dark);
}

.edit-profile-lead {
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
}

.edit-profile-form {
    margin-top: 0.5rem;
}

.edit-profile-hint {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.82rem;
}

.edit-profile-phone-apps {
    border: 1px solid #e5eaef;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    margin: 0 0 0.85rem;
}

.edit-profile-phone-apps-legend {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 0.25rem;
}

.edit-profile-phone-apps-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    cursor: pointer;
}

.edit-profile-phone-apps-option:first-of-type {
    margin-top: 0.15rem;
}

.edit-profile-phone-apps-option input[disabled] {
    cursor: not-allowed;
}

.edit-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.user-profile-edit-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.user-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-profile-main {
    min-width: 0;
}

.user-profile-listings-header {
    margin-bottom: 0.85rem;
}

.user-profile-listings-title {
    margin: 0 0 0.2rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.user-profile-listings-count {
    margin: 0;
    font-size: 0.88rem;
}

.user-profile-listings-grid {
    margin-top: 0;
}

.user-profile-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.user-profile-pagination-info {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.seller-card-name-link {
    color: inherit;
    text-decoration: none;
}

.seller-card-name-link:hover {
    color: var(--blue);
    text-decoration: underline;
}

.seller-card-profile-link {
    margin-top: 0.5rem;
}

/* --- Novosti --- */
.page-content--news {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.news-page-header {
    margin-bottom: 1.5rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 2px 10px rgba(11, 61, 92, 0.05);
}

.news-card-date {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.news-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.news-card-title a {
    color: var(--blue-dark);
    text-decoration: none;
}

.news-card-title a:hover {
    color: var(--blue);
}

.news-card-excerpt {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.news-card-link {
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

.news-card-link:hover {
    text-decoration: underline;
}

.news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.news-breadcrumb a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.news-article {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 2px 12px rgba(11, 61, 92, 0.06);
}

.news-article-header {
    margin-bottom: 1.25rem;
}

.news-article-top {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.news-article-meta-sep {
    opacity: 0.55;
}

.news-article-author {
    font-weight: 600;
    color: var(--blue-dark);
}

.news-article-share .listing-share {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}


.news-article-date {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-article-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.2;
    color: var(--blue-dark);
}

.news-article-lead {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.news-article-body {
    line-height: 1.65;
    color: var(--text);
}

.news-article-body p {
    margin: 0 0 1rem;
}

.news-article-body p:last-child {
    margin-bottom: 0;
}

.news-article-body h2,
.news-article-body h3 {
    color: var(--blue-dark);
    line-height: 1.3;
    margin: 1.75rem 0 0.75rem;
}

.news-article-body h2 {
    font-size: 1.35rem;
}

.news-article-body h3 {
    font-size: 1.15rem;
}

.news-article-body ul,
.news-article-body ol {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.news-article-body li {
    margin-bottom: 0.35rem;
}

.news-article-body li:last-child {
    margin-bottom: 0;
}

.news-article-body a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-article-body img,
.news-article-body .news-inline-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(11, 61, 92, 0.08);
}

.news-article-body em {
    color: var(--text-muted);
    font-style: italic;
}

.news-article-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* --- Custom context menu --- */
.site-context-menu {
    position: fixed;
    z-index: 12000;
    min-width: 220px;
    max-width: min(92vw, 280px);
    pointer-events: none;
}

.site-context-menu:not([hidden]) {
    pointer-events: auto;
}

.site-context-menu-panel,
.site-context-menu-submenu {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(11, 61, 92, 0.18);
    padding: 0.35rem;
    overflow: hidden;
}

.site-context-menu-submenu {
    position: absolute;
    top: 0;
    min-width: 190px;
}

.site-context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    text-align: left;
    padding: 0.58rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
}

.site-context-menu-item:hover,
.site-context-menu-item:focus-visible {
    background: var(--blue-light);
    color: var(--blue-dark);
    outline: none;
}

.site-context-menu-item svg {
    flex-shrink: 0;
    opacity: 0.82;
}

.site-context-menu-label {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.site-context-menu-item--has-submenu .site-context-menu-label {
    padding-right: 0.15rem;
}

.site-context-menu-item.is-saved {
    color: #d64545;
}

.site-context-menu-sep {
    height: 1px;
    margin: 0.28rem 0.4rem;
    background: var(--border);
}

/* --- Release hero / banner (početna) --- */
.release-hero {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #eef6fb 0%, #f8fbfe 50%, #fff7f0 100%);
    border-bottom: 1px solid var(--border);
}

.release-hero[hidden] {
    display: none !important;
}

.release-hero-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.release-hero-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    transition: transform 0.4s ease;
    will-change: transform;
}

.release-banner-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

.release-banner {
    width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.release-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.35rem;
    padding: 0.45rem 2.4rem 0.45rem 0.85rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .release-banner-inner {
        padding: 0.5rem 2.75rem 0.5rem 1rem;
        gap: 0.85rem;
    }
}

.release-banner-media {
    display: block;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    width: 52px;
    height: 52px;
    background: var(--blue-light);
}

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

.release-banner-content {
    flex: 1;
    min-width: 0;
}

.release-banner-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.release-banner-badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--blue-dark);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.4;
}

.release-banner-badge--news {
    background: #0d9488;
}

.release-banner-title {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.25;
    min-width: 0;
}

.release-banner-title a {
    color: var(--blue-dark);
    text-decoration: none;
}

.release-banner-title a:hover {
    color: var(--blue);
}

.release-banner-excerpt {
    margin: 0.15rem 0 0;
    color: var(--text-muted);
    line-height: 1.35;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-banner-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.35rem;
}

.release-banner-actions .btn-sm {
    padding: 0.3rem 0.55rem;
    font-size: 0.74rem;
    white-space: nowrap;
}

.release-banner-close {
    position: absolute;
    top: 0.35rem;
    right: 0.4rem;
    z-index: 4;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.release-banner-close:hover {
    color: var(--blue-dark);
}

.release-hero-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid rgba(11, 61, 92, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue-dark);
    box-shadow: 0 2px 8px rgba(11, 61, 92, 0.08);
    cursor: pointer;
    padding: 0;
}

.release-hero-nav:hover {
    background: var(--white);
    color: var(--blue);
}

.release-hero-nav--prev {
    left: 0.35rem;
}

.release-hero-nav--next {
    right: 0.35rem;
}

.release-hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0 0.35rem;
}

.release-hero-dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(11, 61, 92, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.release-hero-dot.is-active {
    width: 1.1rem;
    background: var(--blue-dark);
}

.release-hero--single .release-hero-nav,
.release-hero--single .release-hero-dots {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .release-hero-track {
        transition: none;
    }
}

@media (max-width: 780px) {
    .release-banner-inner {
        flex-wrap: wrap;
        align-items: flex-start;
        min-height: 0;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .release-banner-actions {
        width: 100%;
        justify-content: flex-start;
        padding-left: 0;
    }

    .release-banner-excerpt {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .release-banner--has-cover .release-banner-actions {
        padding-left: calc(52px + 0.75rem);
    }
}

/* --- Maintenance page --- */
.maintenance-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #f4f9fc 0%, #eef4f8 100%);
}

.maintenance-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    text-align: center;
}

.maintenance-logo {
    margin-bottom: 1.5rem;
    max-width: min(220px, 70vw);
    height: auto;
}

.maintenance-card {
    width: min(100%, 34rem);
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 36px rgba(11, 61, 92, 0.08);
}

.maintenance-scene {
    position: relative;
    height: 9.5rem;
    margin: 0 0 1.25rem;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(180deg, #e8f4fa 0%, #d4ebf5 42%, #7ec8e3 42%, #4aa3c7 100%);
}

.maintenance-rod {
    position: absolute;
    top: 0.35rem;
    right: 1.1rem;
    width: 5.5rem;
    height: 5.5rem;
    z-index: 3;
    transform-origin: 100% 0;
    animation: maintenance-rod-sway 4.5s ease-in-out infinite;
}

.maintenance-rod-pole {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.28rem;
    height: 4.8rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #8b5a2b 0%, #5c3d1e 100%);
    transform: rotate(24deg);
    transform-origin: top center;
}

.maintenance-rod-line {
    position: absolute;
    top: 4.1rem;
    right: 0.55rem;
    width: 1px;
    height: 3.2rem;
    background: rgba(11, 61, 92, 0.45);
    transform-origin: top center;
    animation: maintenance-line-sway 4.5s ease-in-out infinite;
}

.maintenance-water {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58%;
}

.maintenance-wave {
    position: absolute;
    left: -20%;
    width: 140%;
    height: 1.2rem;
    border-radius: 45%;
    opacity: 0.35;
}

.maintenance-wave--back {
    bottom: 1.4rem;
    background: rgba(255, 255, 255, 0.45);
    animation: maintenance-wave 5s linear infinite;
}

.maintenance-wave--front {
    bottom: 0.55rem;
    background: rgba(255, 255, 255, 0.25);
    animation: maintenance-wave 3.8s linear infinite reverse;
}

.maintenance-bobber-wrap {
    position: absolute;
    left: 38%;
    bottom: 1.45rem;
    width: 1.2rem;
    height: 3.5rem;
    animation: maintenance-bobber-bob 2.2s ease-in-out infinite;
}

.maintenance-bobber {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1rem;
    height: 1.35rem;
    margin-left: -0.5rem;
    border-radius: 999px 999px 0.35rem 0.35rem;
    background: linear-gradient(180deg, #ff6b35 0%, #ff6b35 48%, #ffffff 48%, #ffffff 100%);
    box-shadow: 0 2px 6px rgba(11, 61, 92, 0.25);
}

.maintenance-ripple {
    position: absolute;
    bottom: -0.15rem;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: -0.25rem;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    opacity: 0;
    animation: maintenance-ripple 2.2s ease-out infinite;
}

.maintenance-ripple--2 {
    animation-delay: 1.1s;
}

.maintenance-fish {
    position: absolute;
    bottom: 0.85rem;
    left: -4rem;
    width: 3.4rem;
    height: auto;
    color: #0b3d5c;
    opacity: 0.88;
    animation: maintenance-fish-jump 7s ease-in-out infinite;
}

.maintenance-progress {
    margin-bottom: 1.1rem;
}

.maintenance-progress-track {
    position: relative;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(11, 61, 92, 0.1);
    overflow: hidden;
}

.maintenance-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b3d5c 0%, #2a9d8f 45%, #ff6b35 100%);
    animation: maintenance-progress-slide 2.4s ease-in-out infinite;
}

.maintenance-progress-caption {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

@keyframes maintenance-rod-sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(3deg); }
}

@keyframes maintenance-line-sway {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(6deg); }
}

@keyframes maintenance-bobber-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.55rem); }
}

@keyframes maintenance-ripple {
    0% {
        transform: scale(0.4);
        opacity: 0.75;
    }
    100% {
        transform: scale(3.2);
        opacity: 0;
    }
}

@keyframes maintenance-wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-18%); }
}

@keyframes maintenance-fish-jump {
    0%, 72%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: 0.9;
    }
    18% {
        transform: translate(6.5rem, -2.8rem) rotate(-18deg);
        opacity: 1;
    }
    28% {
        transform: translate(10rem, 0.2rem) rotate(8deg);
        opacity: 0.85;
    }
    38% {
        transform: translate(14rem, 0) rotate(0deg);
        opacity: 0;
    }
}

@keyframes maintenance-progress-slide {
    0% {
        left: -40%;
        width: 38%;
    }
    50% {
        width: 52%;
    }
    100% {
        left: 100%;
        width: 38%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maintenance-rod,
    .maintenance-rod-line,
    .maintenance-bobber-wrap,
    .maintenance-ripple,
    .maintenance-wave,
    .maintenance-fish,
    .maintenance-progress-fill {
        animation: none !important;
    }

    .maintenance-progress-fill {
        left: 0;
        width: 65%;
    }

    .maintenance-fish {
        opacity: 0.35;
        left: 55%;
        transform: none;
    }
}

.maintenance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue-dark);
}

.maintenance-card h1 {
    margin: 0 0 0.75rem;
    color: var(--blue-dark);
    font-size: 1.45rem;
}

.maintenance-card p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.maintenance-version {
    margin-top: 1rem !important;
    font-size: 0.85rem;
}

/* --- News cover & release badges --- */
.news-article-cover {
    margin: 0 0 1.15rem;
    border-radius: 14px;
    overflow: hidden;
    background: var(--blue-light);
}

.news-article-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

.news-article-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--blue-dark);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.news-article-badge--release {
    background: #e85d04;
}

.news-card {
    overflow: hidden;
    padding: 0;
}

.news-card-cover-link {
    display: block;
}

.news-card-cover {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--blue-light);
}

.news-card-body {
    padding: 1.15rem 1.25rem;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.news-card-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #e85d04;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-card-meta-sep {
    color: var(--text-muted);
}

.news-card--release {
    border-color: rgba(232, 93, 4, 0.25);
}
