:root {
    --bg: #0c0d10;
    --surface: #14161b;
    --surface-2: #1a1d24;
    --surface-raised: #22262e;
    --stroke: rgba(255, 255, 255, 0.08);
    --stroke-strong: rgba(255, 255, 255, 0.14);
    --yellow: #f5b800;
    --yellow-soft: rgba(245, 184, 0, 0.15);
    --yellow-glow: rgba(245, 184, 0, 0.25);
    --steel: #7a9ab8;
    --text: #f2f0eb;
    --text-muted: #8b919a;
    --ok: #3d9a5c;
    --ok-soft: rgba(61, 154, 92, 0.15);
    --sold: #6b7078;
    --danger: #c45a42;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 999px;
    --display: 'Oswald', system-ui, sans-serif;
    --body: 'Inter', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    /* tokens extras usados pela página de cadastro */
    --surface-hover: #252a36;
    --stroke-focus: rgba(245, 184, 0, 0.35);
    --text-dim: #4a5060;
    --ok-glow: rgba(61, 154, 92, 0.2);
    --danger-soft: rgba(196, 90, 66, 0.12);
    --radius-md: 12px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(245, 184, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* noise sutil */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- HAZARD ---------- */
.hazard {
    height: 4px;
    background: repeating-linear-gradient(-45deg,
            var(--yellow) 0 12px,
            #0c0d10 12px 24px);
}

/* ---------- HEADER ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 13, 16, 0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--stroke);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 1120px;
    margin: 0 auto;
}

.brand {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
    opacity: 0.9;
    transform: translateY(-0.5px);
}

.brand-separator {
    color: var(--yellow);
    font-weight: 500;
}

.nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--stroke-strong);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.nav-back-btn svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.nav-back-btn:hover {
    background: var(--surface-raised);
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateX(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nav-back-btn:hover svg {
    transform: translateX(-3px);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ok);
    color: #0a160e;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 16px rgba(61, 154, 92, 0.25);
}

.nav-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(61, 154, 92, 0.35);
}

.nav-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- AÇÕES DO HEADER (login / logout / novo anúncio) ---------- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#btnNovoAnuncio,
#btnLogout {
    display: none;
}

body.admin-ativo #btnLogin {
    display: none;
}

body.admin-ativo #btnNovoAnuncio,
body.admin-ativo #btnLogout {
    display: inline-flex;
}


/* ---------- HERO ---------- */
.hero {
    padding: 28px 20px 24px;
    border-bottom: 1px solid var(--stroke);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-inner h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.hero-inner h1 em {
    font-style: normal;
    color: var(--yellow);
}


/* ---------- CATALOG ---------- */
.catalog {
    padding: 40px 20px 56px;
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
}

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

.catalog-head h2 {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    letter-spacing: 0.02em;
    font-weight: 600;
}

.catalog-head .sub {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 6px;
}

.tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--stroke);
    padding: 4px;
    border-radius: var(--radius-full);
}

.tab {
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab.active {
    background: var(--yellow);
    color: #1a1400;
    font-weight: 600;
    box-shadow: 0 2px 12px var(--yellow-glow);
}

.tab:not(.active):hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

/* ---------- BARRA DE FILTROS SECUNDÁRIOS ---------- */
.catalog-filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    width: 17px;
    height: 17px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-box input {
    width: 100%;
    height: 42px;
    padding: 0 38px 0 40px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    font-family: var(--body);
    font-size: 0.875rem;
    color: var(--text);
    transition: all 0.2s ease;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.search-box input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.28);
    background: var(--surface-raised);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-box:focus-within .search-icon {
    color: var(--text);
}

.btn-clear-search {
    position: absolute;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-clear-search svg {
    width: 11px;
    height: 11px;
}

.btn-clear-search:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text);
}

/* Filtro Select de Ano */
.filter-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 140px;
}

.filter-select-icon {
    position: absolute;
    left: 14px;
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.filter-select-ano {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 34px 0 38px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b919a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: all 0.2s ease;
}

.filter-select-ano:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background-color: var(--surface-2);
}

.filter-select-ano:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.28);
    background-color: var(--surface-raised);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.filter-select-ano option {
    background: #181b22;
    color: #f2f0eb;
    font-family: var(--body);
    font-size: 14px;
    padding: 8px 12px;
}

/* Botão Limpar Filtros */
.btn-reset-filtros {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-filtros svg {
    width: 14px;
    height: 14px;
}

.btn-reset-filtros:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- GRID & CARDS ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: rgba(245, 184, 0, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #1e2229, #15181e);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.card-media svg {
    width: 48%;
    opacity: 0.4;
    color: var(--text-muted);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-media img {
    transform: scale(1.04);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 5px;
    font-weight: 700;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.badge.disponivel {
    background: rgba(10, 15, 12, 0.438);
    color: #34d399;
}

.badge.disponivel::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    flex-shrink: 0;
}

.badge.vendido {
    background: rgba(18, 20, 26, 0.9);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card.is-vendido .card-media {
    filter: grayscale(0.7) brightness(0.55);
}

.card.is-vendido .card-media::after {
    content: "VENDIDO";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    color: rgba(242, 240, 235, 0.9);
    background: rgba(12, 13, 16, 0.4);
    z-index: 2;
}

.card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-cat {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel);
    font-weight: 500;
}

.card-ano {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffd257;
    /* background: rgba(245, 184, 0, 0.14); */
    border: 1px solid rgba(245, 184, 0, 0.38);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.card-ano svg {
    color: var(--yellow);
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.card-title {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--stroke);
}

.price {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--yellow);
}

.price small {
    display: block;
    font-family: var(--body);
    font-weight: 400;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.card-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid var(--stroke);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover .card-arrow {
    border-color: rgba(245, 184, 0, 0.4);
    background: var(--yellow-soft);
}

.card-arrow svg {
    width: 14px;
    height: 14px;
}

/* ---------- AÇÕES DE ADMIN NO CARD (editar/excluir) ---------- */
.card-admin-actions {
    display: none;
    gap: 8px;
    margin-top: 10px;
}

body.admin-ativo .card-admin-actions {
    display: flex;
}

.card-admin-actions .btn-acao {
    flex: 1;
}

/* ---------- MODAL ---------- */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(6, 7, 9, 0.82);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: var(--surface);
    border: 1px solid var(--stroke-strong);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    height: min(600px, 90vh);
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-admin-actions {
    max-width: 500px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(12, 13, 16, 0.7);
    border: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
    border-color: var(--text-muted);
    background: rgba(12, 13, 16, 0.9);
}

.modal-close svg {
    width: 14px;
    height: 14px;
}

.carousel {
    position: relative;
    background: #0e1014;
    overflow: hidden;
    height: 100%;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a1e25, #12151a);
    position: relative;
}

.carousel-slide svg {
    width: 42%;
    opacity: 0.35;
    color: var(--text-muted);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(12, 13, 16, 0.75);
    border: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-nav:hover {
    background: rgba(12, 13, 16, 0.95);
    border-color: var(--text-muted);
}

.carousel-nav svg {
    width: 16px;
    height: 16px;
}

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

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

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(242, 240, 235, 0.3);
    transition: background 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
}

.dot.active {
    background: var(--yellow);
    width: 18px;
    border-radius: 3px;
}

.modal-info {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.modal-cat-tag {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel);
    font-weight: 500;
}

.modal-ano-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffd257;
    background: rgba(245, 184, 0, 0.14);
    border: 1px solid rgba(245, 184, 0, 0.38);
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.modal-ano-tag svg {
    color: var(--yellow);
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.modal-title {
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    line-height: 1.2;
    font-weight: 600;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 24px;
    flex: 1;
}

.modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--stroke);
    padding-top: 20px;
    margin-bottom: 20px;
}

.modal-price {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--yellow);
}

.modal-price small {
    display: block;
    font-family: var(--body);
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.modal-status {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-status.disponivel {
    background: rgba(10, 15, 12, 0.88);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.modal-status.disponivel::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    flex-shrink: 0;
}

.modal-status.vendido {
    background: rgba(18, 20, 26, 0.9);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whats-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--ok);
    color: #0a160e;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px;
    border-radius: var(--radius);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(61, 154, 92, 0.25);
}

.whats-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(61, 154, 92, 0.35);
}

.whats-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.whats-btn.disabled {
    background: var(--surface-raised);
    color: var(--text-muted);
    pointer-events: none;
    box-shadow: none;
}

/* ---------- BOTÃO DE COMPARTILHAR ---------- */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: inherit;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.32);
}

.share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- FLOATING WHATSAPP ---------- */
.float-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--ok);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(61, 154, 92, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-wa:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(61, 154, 92, 0.5);
}

.float-wa svg {
    width: 28px;
    height: 28px;
    color: #0a160e;
}

/* ---------- FOOTER ---------- */
footer {
    padding: 28px 20px;
    border-top: 1px solid var(--stroke);
    background: var(--surface);
}

.foot-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.foot-inner .mono {
    font-family: var(--mono);
    font-size: 0.75rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
    .modal {
        grid-template-columns: 1fr;
        max-height: 92vh;
        overflow-y: auto;
        height: auto;
    }

    .carousel,
    .carousel-track {
        height: 240px;
    }

    .modal-info {
        padding: 24px 20px 28px;
    }
}

@media (max-width: 560px) {
    .nav {
        padding: 12px 16px;
        flex-wrap: wrap;
        row-gap: 8px;
    }

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

    .brand {
        font-size: 1rem;
    }

    .nav-cta {
        font-size: 0.75rem;
        padding: 9px 12px;
    }


    .catalog {
        padding: 28px 16px 48px;
    }

    .catalog-filters-bar {
        gap: 10px;
        margin-bottom: 22px;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-select-wrap {
        flex: 1;
        min-width: 130px;
    }

    .btn-reset-filtros {
        height: 42px;
    }

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

    .tabs {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .float-wa {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

/* ---------- DROPDOWN DE FILTRO (mobile) ---------- */
.filter-dropdown {
    display: none;
    position: relative;
    /* Quando estiver dentro da barra de filtros ocupa espaço proporcional */
}

/* Dentro da barra de filtros: ocupa toda a linha no mobile */
.catalog-filters-bar .filter-dropdown {
    flex: 1 1 100%;
    order: 2;
    /* busca = 1, categoria = 2, ano = 3 */
}

.filter-trigger {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 0 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-trigger:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--surface-2);
}

.filter-trigger svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Ícone + texto dentro do trigger */
.filter-trigger-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-trigger-icon {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.filter-dropdown.open .filter-trigger>svg:last-child {
    transform: rotate(180deg);
}

.filter-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface-raised);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 30;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.filter-dropdown.open .filter-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-options button {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--stroke);
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-options button:last-child {
    border-bottom: none;
}

.filter-options button:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.filter-options button.active {
    color: var(--yellow);
    font-weight: 600;
}

.filter-options button.active::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    display: inline-block;
}

/* ---------- RESPONSIVO (mobile: mostra dropdown, esconde tabs) ---------- */
@media (max-width: 640px) {
    .tabs {
        display: none;
    }

    .filter-dropdown {
        display: block;
    }

    /* Dentro da barra de filtros: busca full-width, categoria e ano lado a lado */
    .catalog-filters-bar {
        flex-wrap: wrap;
    }

    .catalog-filters-bar .search-box {
        flex: 1 1 100%;
        order: 1;
    }

    .catalog-filters-bar .filter-dropdown {
        flex: 1 1 0;
        min-width: 0;
        order: 2;
    }

    .catalog-filters-bar .filter-select-wrap {
        flex: 1 1 0;
        min-width: 0;
        order: 3;
    }

    .catalog-filters-bar .btn-reset-filtros {
        order: 4;
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
    }

    /* Trunca texto longo no label do dropdown de categoria */
    .filter-trigger-inner {
        overflow: hidden;
        min-width: 0;
        flex: 1;
    }

    .filter-trigger-inner span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Garante que o trigger não quebre linha internamente */
    .filter-trigger {
        overflow: hidden;
    }
}

/* ==================================================================
   CADASTRO DE ANÚNCIOS (cadastro-anuncios.html)
   Header, footer, reset e :root são compartilhados com o site acima.
   Este bloco só contém o que é específico dessa página, mais os
   ajustes de variáveis (.pagina-cadastro) para a paleta ligeiramente
   mais escura que essa página já usava.
   ================================================================== */

.pagina-cadastro {
    --bg: #090a0f;
    --surface: #0f1117;
    --surface-2: #161922;
    --surface-raised: #1e212b;
    --stroke: rgba(255, 255, 255, 0.06);
    --stroke-strong: rgba(255, 255, 255, 0.12);
    --yellow-soft: rgba(245, 184, 0, 0.12);
    --text: #f0ede8;
    --text-muted: #7d8390;
    --ok-soft: rgba(61, 154, 92, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* header/nav/brand/footer usam as regras já definidas acima —
   só os detalhes que essa página tinha diferentes ficam aqui */
.pagina-cadastro .foot-inner {
    font-family: var(--mono);
    font-size: 0.78rem;
    align-items: center;
    gap: 8px;
}

.pagina-cadastro footer {
    padding: 28px 24px;
}

.pagina-cadastro::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pagina-cadastro::-webkit-scrollbar-track {
    background: var(--bg);
}

.pagina-cadastro::-webkit-scrollbar-thumb {
    background: var(--surface-raised);
    border-radius: 4px;
}

.pagina-cadastro::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ---------- TÍTULO DA PÁGINA ---------- */
.page-title {
    padding: 24px 24px 22px;
    border-bottom: 1px solid var(--stroke);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.page-title-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.page-title-top {
    margin-bottom: 8px;
}

.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--steel);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    font-weight: 500;
}

.page-back-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.page-back-link:hover {
    color: var(--yellow);
    transform: translateX(-3px);
}

.page-back-link:hover svg {
    transform: translateX(-2px);
}

.page-title h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

/* ---------- LAYOUT CENTRALIZADO ---------- */
main {
    flex: 1 0 auto;
    padding: 32px 24px 64px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.pagina-cadastro .wrap {
    width: 100%;
    max-width: 560px;
    padding: 0;
}

@media (min-width: 1024px) {
    .form-card {
        padding: 32px;
    }

    .pagina-cadastro .wrap {
        max-width: 600px;
    }
}

/* ---------- TELA DE LOGIN ---------- */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 20px 0;
    /* Faz o bloco "vazar" para além do .wrap e centralizar na viewport */
    width: 100vw;
    margin-left: calc(-1 * ((100vw - 100%) / 2));
}

#tela-login {
    width: 100%;
    margin: 0;
}

.login-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--yellow-soft);
    border: 1px solid rgba(245, 184, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--yellow);
}

.login-icon svg {
    width: 20px;
    height: 20px;
}

#tela-login .form-card-title {
    font-size: 1.5rem;
}

#tela-login .form-card-subtitle {
    margin-top: 6px;
}

#tela-login form>label:first-of-type {
    margin-top: 4px;
}

#tela-login .btn-salvar {
    margin-top: 24px;
}

@media (max-width: 480px) {
    .login-screen {
        min-height: calc(100vh - 160px);
    }

    #tela-login {
        padding: 26px 22px;
    }
}

/* ---------- MODAL DE FORMULÁRIO (login / cadastro de anúncio) ---------- */
.modal-form {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 90vh;
}

.modal-form-body {
    padding: 32px 28px;
    overflow-y: auto;
    max-height: 90vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-form-body::-webkit-scrollbar {
    display: none;
}

.modal-form-body .form-card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.modal-form-body .form-card:hover {
    box-shadow: none;
}

.modal-form-body .login-icon {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 560px) {
    .modal-form-body {
        padding: 26px 20px;
    }
}

/* ---------- CARDS DO FORMULÁRIO ---------- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header do formulário */
.form-card-top-header {
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--stroke);
    text-align: center;
}

.form-card-title {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text);
    margin: 0;
    transition: color 0.2s ease;
    line-height: 1.2;
}

.form-card.modo-edicao .form-card-title {
    color: var(--yellow);
}

.form-card-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.badge-modo {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.badge-modo.badge-cadastro {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--stroke);
}

.badge-modo.badge-edicao {
    background: var(--yellow-soft);
    color: var(--yellow);
    border: 1px solid rgba(245, 184, 0, 0.45);
    box-shadow: 0 0 16px var(--yellow-glow);
}

.section-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--yellow);
    display: inline-block;
}

/* ---------- SELETOR DE TIPO/CATEGORIA (tabs desktop + select mobile) ---------- */
.tabs-desktop {
    display: none;
    gap: 4px;
    flex-wrap: wrap;
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    padding: 4px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.tabs-desktop .tab {
    flex: 1;
    min-width: max-content;
    padding: 10px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tabs-desktop .tab::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(245, 184, 0, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tabs-desktop .tab.active {
    background: var(--yellow);
    color: #1a1400;
    font-weight: 700;
    box-shadow: 0 2px 16px var(--yellow-glow);
}

.tabs-desktop .tab.active::after {
    opacity: 1;
}

.tabs-desktop .tab:not(.active):hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .tabs-desktop {
        display: flex;
    }
}

.select-mobile {
    display: block;
    margin-bottom: 24px;
}

.select-mobile select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: var(--surface-2);
    font-family: var(--body);
    font-size: 15px;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d8390' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-mobile select:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-soft);
    background-color: var(--surface-raised);
}

.select-mobile select option {
    background: var(--surface-2);
    color: var(--text);
}

@media (min-width: 640px) {
    .select-mobile {
        display: none;
    }
}

/* ---------- CAMPOS DO FORMULÁRIO ---------- */
.form-card label:not(.btn-add-foto) {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel);
    margin: 20px 0 8px;
}

.form-card form>label:first-of-type {
    margin-top: 0;
}

.form-card input[type=text],
.form-card input[type=number],
.form-card input[type=email],
.form-card input[type=password],
.form-card select:not(.status-select),
.form-card textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: var(--surface-2);
    font-family: var(--body);
    font-size: 15px;
    color: var(--text);
    transition: all 0.2s ease;
}

.form-card textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
    color: var(--text-dim);
}

.form-card input:focus,
.form-card select:not(.status-select):focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-soft), 0 0 20px var(--yellow-glow);
    background: var(--surface-raised);
}

.campo-condicional {
    display: none;
}

.preco-wrap {
    position: relative;
}

.form-card .preco-wrap input,
.preco-wrap input {
    padding-left: 48px !important;
    font-family: var(--mono);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.preco-prefixo {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--mono);
    font-size: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

/* ---------- UPLOAD DE FOTOS ---------- */
.fotos-area {
    border: 1.5px dashed var(--stroke-strong);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    background: var(--surface-2);
    transition: all 0.25s ease;
}

.fotos-area input[type=file] {
    display: none;
}

.form-card .btn-add-foto,
.btn-add-foto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface-raised);
    border: 1px solid var(--stroke-strong);
    color: var(--text);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--body);
    font-size: 14px;
    font-weight: 500;
    margin: 0 auto;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.form-card .btn-add-foto svg,
.btn-add-foto svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.form-card .btn-add-foto:hover,
.btn-add-foto:hover {
    border-color: var(--yellow);
    background: var(--surface-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fotos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.thumb {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--stroke);
    background: var(--surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumb:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

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

.thumb button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(9, 10, 15, 0.9);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.15s ease;
    opacity: 0;
}

.thumb:hover button {
    opacity: 1;
}

.thumb button:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.thumb.thumb-existente {
    opacity: 0.9;
}

/* ---------- BOTÃO SALVAR ---------- */
.btn-salvar {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--yellow);
    color: #1a1400;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 28px;
    box-shadow: 0 4px 24px var(--yellow-glow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-salvar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn-salvar:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--yellow-glow);
}

.btn-salvar:hover::after {
    opacity: 1;
}

.btn-salvar:active {
    transform: translateY(0);
}

.btn-salvar:disabled {
    opacity: 0.45;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* ---------- MENSAGENS / ETIQUETA DE SUCESSO ---------- */
.msg-erro {
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--danger);
    display: none;
    padding: 10px 14px;
    background: var(--danger-soft);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(196, 90, 66, 0.2);
}

.etiqueta {
    display: none;
    margin-top: 20px;
    padding: 20px 22px;
    border: 1px solid var(--ok-soft);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(61, 154, 92, 0.08), rgba(61, 154, 92, 0.02));
    position: relative;
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.etiqueta::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ok);
    border-radius: 2px 0 0 2px;
}

.etiqueta.show {
    display: block;
}

.etiqueta .selo {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.etiqueta .codigo {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--yellow);
    letter-spacing: 0.02em;
}

.etiqueta .titulo-conf {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- AVISO DE MODO EDIÇÃO ---------- */
.edicao-aviso {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--yellow-soft);
    border: 1px solid var(--stroke-focus);
    font-size: 13px;
    color: var(--text);
}

.edicao-aviso.show {
    display: flex;
}

.edicao-aviso strong {
    font-family: var(--mono);
    color: var(--yellow);
}

.edicao-aviso button {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    flex-shrink: 0;
}

.edicao-aviso button:hover {
    color: var(--text);
}

/* ---------- LISTA "ÚLTIMOS ANÚNCIOS" ---------- */
.item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--stroke);
}

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

.item .thumb-item {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    flex-shrink: 0;
    overflow: hidden;
}

.item .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item .info {
    flex: 1;
    min-width: 0;
}

.item .info .cod {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.85;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.item .info .tit {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- STATUS SELECT DROPDOWN ---------- */
.status-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.status-select,
.form-card select.status-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto;
    height: 28px;
    padding: 0 24px 0 10px;
    border-radius: var(--radius-full);
    font-family: var(--mono);
    font-size: 0.67rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 26px;
    border: 1px solid transparent;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-select.disponivel,
.form-card select.status-select.disponivel {
    background-color: rgba(61, 154, 92, 0.06) !important;
    color: #52d67e !important;
    border: 1px solid rgba(61, 154, 92, 0.38) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2352d67e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 10px 10px !important;
}

.status-select.disponivel:hover,
.status-select.disponivel:focus,
.form-card select.status-select.disponivel:hover,
.form-card select.status-select.disponivel:focus {
    border-color: #52d67e !important;
    background-color: rgba(61, 154, 92, 0.12) !important;
    box-shadow: 0 0 10px rgba(61, 154, 92, 0.2) !important;
    outline: none !important;
}

.status-select.vendido,
.form-card select.status-select.vendido {
    background-color: transparent !important;
    color: var(--text-dim) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 10px 10px !important;
}

.status-select.vendido:hover,
.status-select.vendido:focus,
.form-card select.status-select.vendido:hover,
.form-card select.status-select.vendido:focus {
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: var(--text-muted) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    outline: none !important;
}

.status-select:disabled,
.form-card select.status-select:disabled {
    opacity: 0.6;
    cursor: wait;
}

.status-select option,
.form-card select.status-select option {
    background: #181b22;
    color: #f2f0eb;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
}

.status-btn {
    flex-shrink: 0;
    padding: 7px 13px;
    border-radius: var(--radius-full);
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.status-btn.disponivel {
    background: var(--ok-soft);
    color: #6bcf8a;
    border-color: rgba(61, 154, 92, 0.3);
}

.status-btn.vendido {
    background: rgba(107, 112, 120, 0.2);
    color: #b0b4ba;
    border-color: rgba(107, 112, 120, 0.35);
}

.item-linha {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.item-acoes {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-left: 60px;
    flex-wrap: wrap;
}

.btn-acao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-xs);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-acao svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Botão Editar Neutro */
.btn-acao.editar {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--stroke);
}

.btn-acao.editar:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* Botão Excluir (ação perigosa com destaque em vermelho) */
.btn-acao.excluir {
    background: rgba(196, 90, 66, 0.12);
    color: #eb775d;
    border: 1px solid rgba(196, 90, 66, 0.35);
}

.btn-acao.excluir:hover {
    background: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
    box-shadow: 0 3px 12px rgba(196, 90, 66, 0.35);
    transform: translateY(-1px);
}

.btn-acao:active {
    transform: translateY(0);
}

.link-acao {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.link-acao:hover {
    color: var(--text);
}

.link-acao.excluir:hover {
    color: var(--danger);
}

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

/* ---------- RESPONSIVO (cadastro) ---------- */
@media (max-width: 1023px) {
    .pagina-cadastro .nav {
        padding: 12px 20px;
    }

    .pagina-cadastro .brand {
        font-size: 1.05rem;
    }

    main {
        padding: 24px 20px 48px;
    }

    .form-card {
        padding: 22px 20px;
    }
}

@media (max-width: 560px) {
    main {
        padding: 20px 16px 40px;
    }

    .form-card {
        padding: 20px 16px;
    }

    .thumb {
        width: 64px;
        height: 64px;
    }
}

/* ---------- SKELETON & EMPTY STATE ---------- */
.skeleton-card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skeleton-media {
    aspect-ratio: 4 / 3;
}

.skeleton-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
}

.skeleton-line.w-30 { width: 30%; height: 10px; }
.skeleton-line.w-70 { width: 70%; height: 16px; }
.skeleton-line.w-100 { width: 100%; }
.skeleton-line.w-90 { width: 90%; }

.skeleton-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--stroke);
}

.skeleton-price {
    width: 40%;
    height: 18px;
    border-radius: 4px;
}

.skeleton-media,
.skeleton-line,
.skeleton-price {
    background: linear-gradient(90deg,
        var(--stroke) 0%,
        rgba(255, 255, 255, 0.08) 20%,
        var(--stroke) 40%,
        var(--stroke) 100%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.5s ease-in-out infinite;
}

@keyframes skeleton-shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-media,
    .skeleton-line,
    .skeleton-price {
        animation: none;
    }
}

.grid-empty {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 24px;
    min-height: 220px;
    text-align: center;
}

.empty-msg {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
}

.btn-empty-reset {
    padding: 10px 22px;
    border-radius: 10px;
    color: var(--text-muted);
    border: 1px solid var(--stroke-strong);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-empty-reset:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

#modalStatus {
    display: none;
}