/* 13. Mi Panel / Perfil */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    margin-top: 30px;
}

.profile-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.profile-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.profile-role {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    background: var(--primary-light);
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-info {
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    font-size: 14px;
}

.profile-info p {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.profile-info strong {
    color: var(--dark);
}

/* Pestañas del Panel */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 25px;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.profile-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    outline: none;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Acciones en anuncios propios */
.own-post-card {
    position: relative;
}

.btn-delete-post {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #EF4444;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    z-index: 3;
}

.btn-delete-post:hover {
    background: #DC2626;
}