/* ══════════════════════════════════════
   minhaconta.css
══════════════════════════════════════ */

.conta-main {
    display: flex;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    align-items: flex-start;
}

/* ── Sidebar ── */
.conta-sidebar {
    width: 240px;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.perfil-resumo {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.avatar-grande {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    overflow: hidden;
}

.avatar-grande img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-nome {
    font-weight: 600;
    font-size: 1rem;
}

.perfil-email {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 3px;
}

.conta-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    transition: all .2s;
}

.nav-item:hover {
    background: var(--bg3);
    color: var(--text);
}

.nav-item.active {
    background: rgba(255, 85, 51, .12);
    color: var(--accent);
    font-weight: 500;
}

.btn-sair-conta {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: .82rem;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    margin-top: auto;
}

.btn-sair-conta:hover {
    color: #f87171;
    border-color: #f87171;
}

/* ── Conteúdo ── */
.conta-conteudo {
    flex: 1;
    min-width: 0;
}

.aba-conteudo {
    display: none;
}

.aba-conteudo.active {
    display: block;
}

.aba-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.aba-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.btn-novo-anuncio {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    transition: background .2s;
}

.btn-novo-anuncio:hover {
    background: var(--accent2);
}

/* ── Cards de anúncio do usuário ── */
.meu-anuncio-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 10px;
    transition: border-color .2s;
}

.meu-anuncio-card:hover {
    border-color: var(--border2);
}

.meu-anuncio-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: var(--bg3);
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--border2);
}

.meu-anuncio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.meu-anuncio-info {
    flex: 1;
}

.meu-anuncio-info h3 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.meu-anuncio-info .preco {
    color: var(--accent);
    font-weight: 700;
    font-size: .95rem;
}

.meu-anuncio-info .meta {
    color: var(--muted);
    font-size: .78rem;
    margin-top: 2px;
}

.btn-excluir-anuncio {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.btn-excluir-anuncio:hover {
    border-color: #f87171;
    color: #f87171;
}

/* ── Form cards ── */
.form-card-conta {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.form-card-conta h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s;
}

.field input:focus {
    border-color: var(--accent);
}

.field input::placeholder {
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.perfil-foto-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-upload-foto {
    display: inline-block;
    background: var(--bg3);
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .85rem;
    transition: all .2s;
}

.btn-upload-foto:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-salvar {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    margin-top: .5rem;
}

.btn-salvar:hover {
    background: var(--accent2);
}

.msg-config {
    font-size: .85rem;
    margin-top: .75rem;
    min-height: 18px;
}

.msg-config.sucesso {
    color: #4ade80;
}

.msg-config.erro {
    color: #f87171;
}

/* ── Estado vazio ── */
.vazio-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}

.vazio-state span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.vazio-state p {
    font-size: 1rem;
    margin-bottom: .4rem;
}

.vazio-state small {
    font-size: .85rem;
}

/* ── Ações do card de anúncio ── */
.meu-anuncio-acoes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.meu-anuncio-acoes button {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: .8rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    border: 1px solid var(--border2);
    background: transparent;
    color: var(--muted);
}

.meu-anuncio-acoes button:hover {
    color: var(--text);
    border-color: var(--border2);
}

.meu-anuncio-acoes .btn-ver:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.meu-anuncio-acoes .btn-editar:hover {
    border-color: #facc15;
    color: #facc15;
}

.meu-anuncio-acoes .btn-renovar:hover {
    border-color: #4ade80;
    color: #4ade80;
}

.meu-anuncio-acoes .btn-excluir-anuncio:hover {
    border-color: #f87171;
    color: #f87171;
}

/* ── Badge de status ── */
.status-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    margin-top: 6px;
}

.status-badge.ativo {
    background: rgba(74, 222, 128, .12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, .3);
}

.status-badge.inativo {
    background: rgba(248, 113, 113, .12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, .3);
}

@media (max-width: 768px) {
    .conta-main {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    .conta-sidebar {
        width: 100%;
        position: static;
    }

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

    .meu-anuncio-card {
        flex-direction: column;
    }

    .meu-anuncio-thumb {
        width: 100%;
        height: 160px;
    }

    .meu-anuncio-acoes {
        flex-direction: row;
        flex-wrap: wrap;
    }
}